@c8y/ngx-components 1022.4.17 → 1022.6.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/core/common/ApplicationOptions.d.ts +3 -3
- package/core/common/ApplicationOptions.d.ts.map +1 -1
- package/core/index.d.ts +1 -1
- package/core/index.d.ts.map +1 -1
- package/core/preview-feature/feature-cache.service.d.ts.map +1 -0
- package/core/{beta-feature → preview-feature}/feature-state.pipe.d.ts +1 -1
- package/core/preview-feature/feature-state.pipe.d.ts.map +1 -0
- package/core/preview-feature/index.d.ts +7 -0
- package/core/preview-feature/index.d.ts.map +1 -0
- package/core/preview-feature/preview-feature-button.component.d.ts +17 -0
- package/core/preview-feature/preview-feature-button.component.d.ts.map +1 -0
- package/core/{beta-feature/beta-preview-drawer.factory.d.ts → preview-feature/preview-feature-drawer.factory.d.ts} +6 -6
- package/core/preview-feature/preview-feature-drawer.factory.d.ts.map +1 -0
- package/core/preview-feature/preview-feature-show-notification.service.d.ts +10 -0
- package/core/preview-feature/preview-feature-show-notification.service.d.ts.map +1 -0
- package/core/preview-feature/preview-feature.component.d.ts +23 -0
- package/core/preview-feature/preview-feature.component.d.ts.map +1 -0
- package/core/{beta-feature/beta-preview.model.d.ts → preview-feature/preview-feature.model.d.ts} +6 -6
- package/core/preview-feature/preview-feature.model.d.ts.map +1 -0
- package/core/preview-feature/preview-feature.providers.d.ts +3 -0
- package/core/preview-feature/preview-feature.providers.d.ts.map +1 -0
- package/core/{beta-feature/beta-preview.service.d.ts → preview-feature/preview-feature.service.d.ts} +10 -10
- package/core/preview-feature/preview-feature.service.d.ts.map +1 -0
- package/datapoint-explorer/datapoint-explorer-navigation-factory.d.ts +1 -1
- package/datapoint-explorer/datapoint-explorer-navigation-factory.d.ts.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-explorer.mjs +6 -5
- package/fesm2022/c8y-ngx-components-datapoint-explorer.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-messaging-management.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-graph.mjs +2 -2
- package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-graph.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +43 -43
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/messaging-management/messaging-management-preview.factory.d.ts +2 -2
- package/messaging-management/messaging-management-preview.factory.d.ts.map +1 -1
- package/package.json +1 -1
- package/widgets/definitions/datapoints-graph/datapoint-graph-widget-factory.d.ts +1 -1
- package/widgets/definitions/datapoints-graph/datapoint-graph-widget-factory.d.ts.map +1 -1
- package/core/beta-feature/beta-feature-show-notification.service.d.ts +0 -10
- package/core/beta-feature/beta-feature-show-notification.service.d.ts.map +0 -1
- package/core/beta-feature/beta-feature.providers.d.ts +0 -3
- package/core/beta-feature/beta-feature.providers.d.ts.map +0 -1
- package/core/beta-feature/beta-preview-button.component.d.ts +0 -17
- package/core/beta-feature/beta-preview-button.component.d.ts.map +0 -1
- package/core/beta-feature/beta-preview-drawer.factory.d.ts.map +0 -1
- package/core/beta-feature/beta-preview.component.d.ts +0 -23
- package/core/beta-feature/beta-preview.component.d.ts.map +0 -1
- package/core/beta-feature/beta-preview.model.d.ts.map +0 -1
- package/core/beta-feature/beta-preview.service.d.ts.map +0 -1
- package/core/beta-feature/feature-cache.service.d.ts.map +0 -1
- package/core/beta-feature/feature-state.pipe.d.ts.map +0 -1
- package/core/beta-feature/index.d.ts +0 -7
- package/core/beta-feature/index.d.ts.map +0 -1
- /package/core/{beta-feature → preview-feature}/feature-cache.service.d.ts +0 -0
|
@@ -19,11 +19,11 @@ export declare class ApplicationOptions implements AppOptions {
|
|
|
19
19
|
* Note: This only affects features on the frontend.
|
|
20
20
|
* If a preview feature also requires backend support it must be enabled separately on the backend.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
enableAllPreviewFeatures?: boolean;
|
|
23
23
|
/**
|
|
24
|
-
* Hides the
|
|
24
|
+
* Hides the feature preview section in the right drawer.
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
hidePreviewFeature?: boolean;
|
|
27
27
|
/** Path to tsccnfig.json file if TypeScript is used (default: ./tsconfig.json). */
|
|
28
28
|
tsConfigPath?: string;
|
|
29
29
|
/** Entry module for Angular compiler (only used with lazy loaded routes), e.g. `'app.module.ts#AppModule'`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationOptions.d.ts","sourceRoot":"","sources":["../../../core/common/ApplicationOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,KAAK,EACV,kBAAkB,IAAI,UAAU,EAChC,eAAe,EACf,SAAS,EACT,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,cAAc,EACd,yBAAyB,EACzB,8BAA8B,EAC9B,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,0BAA0B,EAC3B,MAAM,cAAc,CAAC;AAYtB,qBAAa,kBAAmB,YAAW,UAAU;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gGAAgG;IAChG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB;;;;;OAKG;IACH,
|
|
1
|
+
{"version":3,"file":"ApplicationOptions.d.ts","sourceRoot":"","sources":["../../../core/common/ApplicationOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,KAAK,EACV,kBAAkB,IAAI,UAAU,EAChC,eAAe,EACf,SAAS,EACT,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,cAAc,EACd,yB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;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAC5C;;;;;;;;;;;;;;;;;OAiBG;IACH,SAAS,CAAC,EAAE;QACV,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;IACF;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,oBAAY,mBAAmB;IAC7B;;OAEG;IACH,IAAI,SAAS;IACb;;;OAGG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,aAAa,kBAAkB;IAC/B;;OAEG;IACH,OAAO,KAAK;CACb"}
|
package/core/index.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export * from './ui-settings/index';
|
|
|
55
55
|
export * from './countdown-interval/index';
|
|
56
56
|
export * from './color-input/index';
|
|
57
57
|
export * from './aggregation/index';
|
|
58
|
-
export * from './
|
|
58
|
+
export * from './preview-feature/index';
|
|
59
59
|
export * from './change-icon/index';
|
|
60
60
|
export * from './asset-property/index';
|
|
61
61
|
//# sourceMappingURL=index.d.ts.map
|
package/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../core/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;A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,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-cache.service.d.ts","sourceRoot":"","sources":["../../../core/preview-feature/feature-cache.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAkB,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAmC,UAAU,EAAE,MAAM,MAAM,CAAC;;AAEnE,qBACa,mBAAmB;IAMlB,OAAO,CAAC,cAAc;IALlC,OAAO,CAAC,cAAc,CAAwC;IAC9D,OAAO,CAAC,SAAS,CAGf;gBACkB,cAAc,EAAE,cAAc;IAElD;;;OAGG;IACH,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIrD;;;;OAIG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC;IAI/C,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC;IASjD,iBAAiB,IAAI,IAAI;YAIX,YAAY;yCAtCf,mBAAmB;6CAAnB,mBAAmB;CA+C/B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { PreviewService } from './
|
|
3
|
+
import { PreviewService } from './preview-feature.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FeatureStatePipe implements PipeTransform {
|
|
6
6
|
private previewService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-state.pipe.d.ts","sourceRoot":"","sources":["../../../core/preview-feature/feature-state.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;;AAE3D,qBAIa,gBAAiB,YAAW,aAAa;IACxC,OAAO,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAElD,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC;yCAHvC,gBAAgB;uCAAhB,gBAAgB;CAM5B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './preview-feature.service';
|
|
2
|
+
export * from './preview-feature.model';
|
|
3
|
+
export * from './preview-feature-button.component';
|
|
4
|
+
export * from './feature-cache.service';
|
|
5
|
+
export * from './preview-feature.providers';
|
|
6
|
+
export * from './preview-feature-show-notification.service';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/preview-feature/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oCAAoC,CAAC;AACnD,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PreviewFeatureButtonComponent implements OnDestroy {
|
|
5
|
+
open$: Observable<boolean>;
|
|
6
|
+
hasUnseenFeatures$: Observable<boolean>;
|
|
7
|
+
private readonly previewService;
|
|
8
|
+
private readonly bottomDrawerService;
|
|
9
|
+
private readonly headerService;
|
|
10
|
+
private destroy$;
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
openPreviewFeature(): Promise<void>;
|
|
13
|
+
ngOnDestroy(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewFeatureButtonComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PreviewFeatureButtonComponent, "c8y-preview-feature-button", never, {}, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=preview-feature-button.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-feature-button.component.d.ts","sourceRoot":"","sources":["../../../core/preview-feature/preview-feature-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,SAAS,EAAE,MAAM,eAAe,CAAC;AAI7D,OAAO,EAAE,UAAU,EAAsB,MAAM,MAAM,CAAC;;AAKtD,qBAMa,6BAA8B,YAAW,SAAS;IAC7D,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC3B,kBAAkB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACxC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA0B;IACzD,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA+B;IACnE,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAyB;IACvD,OAAO,CAAC,QAAQ,CAAuB;IAEvC,QAAQ;IAKF,kBAAkB;IAqBxB,WAAW,IAAI,IAAI;yCAlCR,6BAA6B;2CAA7B,6BAA6B;CAsCzC"}
|
|
@@ -2,18 +2,18 @@ import { ExtensionFactory } from '../common/extension-hooks';
|
|
|
2
2
|
import { OptionsService } from '../common/options.service';
|
|
3
3
|
import { DrawerItem } from '../drawer/drawer.model';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { PreviewService } from './
|
|
5
|
+
import { PreviewService } from './preview-feature.service';
|
|
6
6
|
import { Permissions } from '../common/permissions.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class PreviewFeatureDrawerFactory implements ExtensionFactory<DrawerItem> {
|
|
9
9
|
private options;
|
|
10
10
|
private previewService;
|
|
11
11
|
private permissions;
|
|
12
12
|
protected drawerItem: DrawerItem;
|
|
13
13
|
constructor(options: OptionsService, previewService: PreviewService, permissions: Permissions);
|
|
14
14
|
get(): Observable<DrawerItem[] | DrawerItem>;
|
|
15
|
-
private
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
15
|
+
private shouldShowPreviewFeature$;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewFeatureDrawerFactory, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PreviewFeatureDrawerFactory>;
|
|
18
18
|
}
|
|
19
|
-
//# sourceMappingURL=
|
|
19
|
+
//# sourceMappingURL=preview-feature-drawer.factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-feature-drawer.factory.d.ts","sourceRoot":"","sources":["../../../core/preview-feature/preview-feature-drawer.factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAiB,UAAU,EAAE,MAAM,MAAM,CAAC;AAGjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;;AAE5D,qBACa,2BAA4B,YAAW,gBAAgB,CAAC,UAAU,CAAC;IAS5E,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,WAAW;IAVrB,SAAS,CAAC,UAAU,EAAE,UAAU,CAK9B;gBAGQ,OAAO,EAAE,cAAc,EACvB,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW;IAGlC,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,GAAG,UAAU,CAAC;IAY5C,OAAO,CAAC,yBAAyB;yCA1BtB,2BAA2B;6CAA3B,2BAA2B;CA+CvC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PreviewService } from './preview-feature.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PreviewFeatureShowNotification implements CumulocityServiceRegistry.NotificationServiceProvider {
|
|
4
|
+
private previewService;
|
|
5
|
+
shouldShowNotification$: import("rxjs").Observable<boolean>;
|
|
6
|
+
constructor(previewService: PreviewService);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewFeatureShowNotification, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PreviewFeatureShowNotification>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=preview-feature-show-notification.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-feature-show-notification.service.d.ts","sourceRoot":"","sources":["../../../core/preview-feature/preview-feature-show-notification.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;;AAE3D,qBACa,8BACX,YAAW,yBAAyB,CAAC,2BAA2B;IAIpD,OAAO,CAAC,cAAc;IAFlC,uBAAuB,qCAA0C;gBAE7C,cAAc,EAAE,cAAc;yCALvC,8BAA8B;6CAA9B,8BAA8B;CAM1C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { PreviewFeature } from './preview-feature.model';
|
|
3
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PreviewFeatureComponent {
|
|
6
|
+
selectedFeature: PreviewFeature;
|
|
7
|
+
shouldClose: Promise<boolean>;
|
|
8
|
+
description$: BehaviorSubject<string | Type<any> | Promise<string | Type<any>>>;
|
|
9
|
+
private resolveClose;
|
|
10
|
+
private readonly previewFeatureService;
|
|
11
|
+
private readonly markdownToHtmlPipe;
|
|
12
|
+
features$: Observable<PreviewFeature[]>;
|
|
13
|
+
constructor();
|
|
14
|
+
ngOnInit(): Promise<void>;
|
|
15
|
+
updateSelectedFeature(feature: PreviewFeature): Promise<void>;
|
|
16
|
+
updateDescription(): Promise<void>;
|
|
17
|
+
isComponent(description: string | Type<any> | Promise<string | Type<any>>): description is Type<any>;
|
|
18
|
+
onToggle(feature: PreviewFeature, event: Event): Promise<void>;
|
|
19
|
+
close(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewFeatureComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PreviewFeatureComponent, "c8y-preview-feature", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=preview-feature.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-feature.component.d.ts","sourceRoot":"","sources":["../../../core/preview-feature/preview-feature.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,IAAI,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAkB,UAAU,EAAE,MAAM,MAAM,CAAC;;AAOnE,qBAQa,uBAAuB;IAClC,eAAe,EAAE,cAAc,CAAC;IAChC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,YAAY,EAAE,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CACrD;IAC1B,OAAO,CAAC,YAAY,CAAmD;IAEvE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAA0B;IAChE,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA8B;IAEjE,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,CAAC,CAAsD;;IAQvF,QAAQ;IAMR,qBAAqB,CAAC,OAAO,EAAE,cAAc;IAK7C,iBAAiB;IAUvB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;IAInE,QAAQ,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAKpE,KAAK;yCAhDM,uBAAuB;2CAAvB,uBAAuB;CAmDnC"}
|
package/core/{beta-feature/beta-preview.model.d.ts → preview-feature/preview-feature.model.d.ts}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
export declare const SHOW_BETA_PREVIEW = "
|
|
4
|
-
export type
|
|
5
|
-
export interface
|
|
3
|
+
export declare const SHOW_BETA_PREVIEW = "showPreviewFeature";
|
|
4
|
+
export type PreviewFeature = PreviewFeatureCustom | PreviewFeatureDefault;
|
|
5
|
+
export interface PreviewFeatureCustom extends BasePreviewFeature {
|
|
6
6
|
key?: never;
|
|
7
7
|
scope?: never;
|
|
8
8
|
onToggle: (state: any) => Promise<boolean>;
|
|
9
9
|
active$: Observable<boolean>;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
11
|
+
export interface PreviewFeatureDefault extends BasePreviewFeature {
|
|
12
12
|
key: string;
|
|
13
13
|
scope?: 'user' | 'tenant' | 'temp' | 'platform';
|
|
14
14
|
onToggle?: never;
|
|
15
15
|
active$?: never;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface BasePreviewFeature {
|
|
18
18
|
label: string;
|
|
19
19
|
description: () => Promise<string | Type<any>>;
|
|
20
20
|
settings?: {
|
|
21
21
|
reload?: boolean;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
//# sourceMappingURL=
|
|
24
|
+
//# sourceMappingURL=preview-feature.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-feature.model.d.ts","sourceRoot":"","sources":["../../../core/preview-feature/preview-feature.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,qBAAqB,CAAC;AAC1E,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB;IAC9D,GAAG,CAAC,EAAE,KAAK,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;IAC/D,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;IAChD,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE;QACT,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-feature.providers.d.ts","sourceRoot":"","sources":["../../../core/preview-feature/preview-feature.providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAMzC,eAAO,MAAM,yBAAyB,EAAE,QAAQ,EAG/C,CAAC"}
|
package/core/{beta-feature/beta-preview.service.d.ts → preview-feature/preview-feature.service.d.ts}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { InjectionToken, Injector } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
3
|
import { GenericHookOptions, GenericHookType, ExtensionPointForPlugins } from '../common/extension-hooks';
|
|
4
|
-
import {
|
|
4
|
+
import { PreviewFeature } from './preview-feature.model';
|
|
5
5
|
import { PluginsResolveService } from '../plugins/plugins-resolve.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare const HOOK_PREVIEW: InjectionToken<
|
|
8
|
-
export declare function hookPreview(preview: GenericHookType<
|
|
9
|
-
export declare class PreviewService extends ExtensionPointForPlugins<
|
|
10
|
-
items$: Observable<
|
|
7
|
+
export declare const HOOK_PREVIEW: InjectionToken<PreviewFeature[]>;
|
|
8
|
+
export declare function hookPreview(preview: GenericHookType<PreviewFeature>, options?: Partial<GenericHookOptions>): import("@angular/core").ValueProvider | import("@angular/core").ExistingProvider | import("@angular/core").ClassProvider;
|
|
9
|
+
export declare class PreviewService extends ExtensionPointForPlugins<PreviewFeature> {
|
|
10
|
+
items$: Observable<PreviewFeature[]>;
|
|
11
11
|
reload$: BehaviorSubject<boolean>;
|
|
12
12
|
private readonly LOCAL_STORAGE_KEY;
|
|
13
13
|
private seenFeatures$;
|
|
@@ -17,10 +17,10 @@ export declare class PreviewService extends ExtensionPointForPlugins<BetaFeature
|
|
|
17
17
|
private readonly optionsService;
|
|
18
18
|
private toggledFeaturesWithReload;
|
|
19
19
|
constructor(rootInjector: Injector, pluginService: PluginsResolveService);
|
|
20
|
-
get state(): Set<
|
|
20
|
+
get state(): Set<PreviewFeature>;
|
|
21
21
|
/**
|
|
22
22
|
* Get the state of a specific feature.
|
|
23
|
-
* @param key The unique key for the feature.
|
|
23
|
+
* @param key The unique key or label for the feature. Label is used to find the custom features.
|
|
24
24
|
* @returns Observable<boolean> representing the state of the feature.
|
|
25
25
|
*/
|
|
26
26
|
getState$(key: string): Observable<boolean>;
|
|
@@ -38,14 +38,14 @@ export declare class PreviewService extends ExtensionPointForPlugins<BetaFeature
|
|
|
38
38
|
/**
|
|
39
39
|
* Filters the features to only include those that are available by checking the feature toggle API.
|
|
40
40
|
*/
|
|
41
|
-
getAvailableFeatures$(): Observable<
|
|
41
|
+
getAvailableFeatures$(): Observable<PreviewFeature[]>;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @returns An array of feature names that have been seen by the user. This is retrieved from local storage.
|
|
45
45
|
*/
|
|
46
46
|
private getSeenFeatures;
|
|
47
|
-
protected setupItemsObservable(): Observable<
|
|
47
|
+
protected setupItemsObservable(): Observable<PreviewFeature[]>;
|
|
48
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewService, never>;
|
|
49
49
|
static ɵprov: i0.ɵɵInjectableDeclaration<PreviewService>;
|
|
50
50
|
}
|
|
51
|
-
//# sourceMappingURL=
|
|
51
|
+
//# sourceMappingURL=preview-feature.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-feature.service.d.ts","sourceRoot":"","sources":["../../../core/preview-feature/preview-feature.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,cAAc,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAiC,UAAU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D;;;OAGG;IACH,OAAO,CAAC,eAAe;IAKvB,SAAS,CAAC,oBAAoB,IAAI,UAAU,CAAC,cAAc,EAAE,CAAC;yCArInD,cAAc;6CAAd,cAAc;CAgJ1B"}
|
|
@@ -2,7 +2,7 @@ import { NavigatorNode, NavigatorNodeFactory } from '@c8y/ngx-components';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DatapointExplorerNavigationFactory implements NavigatorNodeFactory {
|
|
5
|
-
private readonly
|
|
5
|
+
private readonly previewFeatureService;
|
|
6
6
|
get(): Observable<NavigatorNode[]>;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatapointExplorerNavigationFactory, never>;
|
|
8
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<DatapointExplorerNavigationFactory>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datapoint-explorer-navigation-factory.d.ts","sourceRoot":"","sources":["../../datapoint-explorer/datapoint-explorer-navigation-factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,aAAa,EAAE,oBAAoB,EAAkB,MAAM,qBAAqB,CAAC;AACnG,OAAO,EAAO,UAAU,EAAE,MAAM,MAAM,CAAC;;AAEvC,qBACa,kCAAmC,YAAW,oBAAoB;IAC7E,OAAO,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"datapoint-explorer-navigation-factory.d.ts","sourceRoot":"","sources":["../../datapoint-explorer/datapoint-explorer-navigation-factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,aAAa,EAAE,oBAAoB,EAAkB,MAAM,qBAAqB,CAAC;AACnG,OAAO,EAAO,UAAU,EAAE,MAAM,MAAM,CAAC;;AAEvC,qBACa,kCAAmC,YAAW,oBAAoB;IAC7E,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAA0B;IAEhE,GAAG,IAAI,UAAU,CAAC,aAAa,EAAE,CAAC;yCAHvB,kCAAkC;6CAAlC,kCAAkC;CAsB9C"}
|
|
@@ -5,10 +5,10 @@ import { map, first } from 'rxjs';
|
|
|
5
5
|
|
|
6
6
|
class DatapointExplorerNavigationFactory {
|
|
7
7
|
constructor() {
|
|
8
|
-
this.
|
|
8
|
+
this.previewFeatureService = inject(PreviewService);
|
|
9
9
|
}
|
|
10
10
|
get() {
|
|
11
|
-
return this.
|
|
11
|
+
return this.previewFeatureService.getState$('ui.datapoint-explorer.v2').pipe(map(state => {
|
|
12
12
|
if (state) {
|
|
13
13
|
return [
|
|
14
14
|
new NavigatorNode({
|
|
@@ -16,7 +16,8 @@ class DatapointExplorerNavigationFactory {
|
|
|
16
16
|
featureId: 'dataPointExplorer',
|
|
17
17
|
path: 'datapointexplorer-v2',
|
|
18
18
|
icon: 'c8y-data-explorer',
|
|
19
|
-
routerLinkExact: false
|
|
19
|
+
routerLinkExact: false,
|
|
20
|
+
preventDuplicates: true
|
|
20
21
|
})
|
|
21
22
|
];
|
|
22
23
|
}
|
|
@@ -31,8 +32,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
31
32
|
}] });
|
|
32
33
|
|
|
33
34
|
function canActivateDatapointExplorer() {
|
|
34
|
-
const
|
|
35
|
-
return
|
|
35
|
+
const previewFeatureService = inject(PreviewService);
|
|
36
|
+
return previewFeatureService.getState$('ui.datapoint-explorer.v2').pipe(first());
|
|
36
37
|
}
|
|
37
38
|
class DatapointExplorerModule {
|
|
38
39
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DatapointExplorerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-datapoint-explorer.mjs","sources":["../../datapoint-explorer/datapoint-explorer-navigation-factory.ts","../../datapoint-explorer/datapoint-explorer.module.ts","../../datapoint-explorer/c8y-ngx-components-datapoint-explorer.ts"],"sourcesContent":["import { inject, Injectable } from '@angular/core';\nimport { gettext, NavigatorNode, NavigatorNodeFactory, PreviewService } from '@c8y/ngx-components';\nimport { map, Observable } from 'rxjs';\n\n@Injectable()\nexport class DatapointExplorerNavigationFactory implements NavigatorNodeFactory {\n private readonly
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-datapoint-explorer.mjs","sources":["../../datapoint-explorer/datapoint-explorer-navigation-factory.ts","../../datapoint-explorer/datapoint-explorer.module.ts","../../datapoint-explorer/c8y-ngx-components-datapoint-explorer.ts"],"sourcesContent":["import { inject, Injectable } from '@angular/core';\nimport { gettext, NavigatorNode, NavigatorNodeFactory, PreviewService } from '@c8y/ngx-components';\nimport { map, Observable } from 'rxjs';\n\n@Injectable()\nexport class DatapointExplorerNavigationFactory implements NavigatorNodeFactory {\n private readonly previewFeatureService = inject(PreviewService);\n\n get(): Observable<NavigatorNode[]> {\n return this.previewFeatureService.getState$('ui.datapoint-explorer.v2').pipe(\n map(state => {\n if (state) {\n return [\n new NavigatorNode({\n label: gettext('Data explorer'),\n featureId: 'dataPointExplorer',\n path: 'datapointexplorer-v2',\n icon: 'c8y-data-explorer',\n routerLinkExact: false,\n preventDuplicates: true\n })\n ];\n }\n return [];\n })\n );\n }\n}\n","import { inject, NgModule } from '@angular/core';\nimport {\n hookNavigator,\n hookRoute,\n hookPreview,\n gettext,\n ViewContext,\n PreviewService\n} from '@c8y/ngx-components';\nimport { DatapointExplorerNavigationFactory } from './datapoint-explorer-navigation-factory';\nimport { first, Observable } from 'rxjs';\n\nfunction canActivateDatapointExplorer(): Observable<boolean> {\n const previewFeatureService = inject(PreviewService);\n return previewFeatureService.getState$('ui.datapoint-explorer.v2').pipe(first());\n}\n\n@NgModule({\n providers: [\n hookRoute([\n {\n path: 'datapointexplorer-v2',\n loadComponent: () =>\n import('@c8y/ngx-components/datapoint-explorer/view').then(\n m => m.DatapointExplorerComponent\n ),\n canActivate: [canActivateDatapointExplorer]\n },\n {\n context: ViewContext.Group,\n path: 'data_explorer-v2',\n priority: 800,\n icon: 'c8y-data-explorer',\n label: gettext('Data Explorer'),\n loadComponent: () =>\n import('@c8y/ngx-components/datapoint-explorer/view').then(\n m => m.DatapointExplorerComponent\n ),\n featureId: 'dataExplorer',\n canActivate: [canActivateDatapointExplorer]\n },\n {\n context: ViewContext.Device,\n path: 'data_explorer-v2',\n priority: 800,\n icon: 'c8y-data-explorer',\n label: gettext('Data Explorer'),\n loadComponent: () =>\n import('@c8y/ngx-components/datapoint-explorer/view').then(\n m => m.DatapointExplorerComponent\n ),\n featureId: 'dataExplorer'\n }\n ]),\n hookNavigator(DatapointExplorerNavigationFactory),\n hookPreview({\n key: 'ui.datapoint-explorer.v2',\n label: 'Data point explorer',\n description: () =>\n import('@c8y/style/markdown-files/datapoint-explorer-preview.md').then(m => m.default),\n settings: {\n reload: true\n }\n })\n ]\n})\nexport class DatapointExplorerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAKa,kCAAkC,CAAA;AAD/C,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,qBAAqB,GAAG,MAAM,CAAC,cAAc,CAAC;AAqBhE;IAnBC,GAAG,GAAA;AACD,QAAA,OAAO,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC,IAAI,CAC1E,GAAG,CAAC,KAAK,IAAG;YACV,IAAI,KAAK,EAAE;gBACT,OAAO;AACL,oBAAA,IAAI,aAAa,CAAC;AAChB,wBAAA,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC;AAC/B,wBAAA,SAAS,EAAE,mBAAmB;AAC9B,wBAAA,IAAI,EAAE,sBAAsB;AAC5B,wBAAA,IAAI,EAAE,mBAAmB;AACzB,wBAAA,eAAe,EAAE,KAAK;AACtB,wBAAA,iBAAiB,EAAE;qBACpB;iBACF;;AAEH,YAAA,OAAO,EAAE;SACV,CAAC,CACH;;+GApBQ,kCAAkC,E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