@c8y/ngx-components 1021.21.0 → 1021.22.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/alarms/alarm-details.component.d.ts +1 -3
- package/alarms/alarm-details.component.d.ts.map +1 -1
- package/alarms/alarm-info.component.d.ts +9 -14
- package/alarms/alarm-info.component.d.ts.map +1 -1
- package/alarms/alarms-view.service.d.ts.map +1 -1
- package/alarms/alarms.component.d.ts.map +1 -1
- package/alarms/alarms.helper.d.ts +5 -0
- package/alarms/alarms.helper.d.ts.map +1 -0
- package/alarms/alarms.module.d.ts.map +1 -1
- package/alarms/cockpit/index.d.ts.map +1 -1
- package/alarms/devicemanagement/index.d.ts.map +1 -1
- package/alarms/index.d.ts +5 -4
- package/alarms/index.d.ts.map +1 -1
- package/core/router/context-route.component.d.ts +8 -3
- package/core/router/context-route.component.d.ts.map +1 -1
- package/core/router/context-route.service.d.ts +29 -3
- package/core/router/context-route.service.d.ts.map +1 -1
- package/core/router/router-tabs.resolver.d.ts +4 -1
- package/core/router/router-tabs.resolver.d.ts.map +1 -1
- package/core/router/router.model.d.ts +40 -3
- package/core/router/router.model.d.ts.map +1 -1
- package/core/router/router.module.d.ts +2 -1
- package/core/router/router.module.d.ts.map +1 -1
- package/core/router/router.service.d.ts +5 -4
- package/core/router/router.service.d.ts.map +1 -1
- package/core/router/scoped-context-route.service.d.ts +57 -0
- package/core/router/scoped-context-route.service.d.ts.map +1 -0
- package/core/router/view-context.service.d.ts +8 -18
- package/core/router/view-context.service.d.ts.map +1 -1
- package/esm2022/alarms/alarm-details.component.mjs +7 -9
- package/esm2022/alarms/alarm-info.component.mjs +23 -33
- package/esm2022/alarms/alarms-view.service.mjs +2 -2
- package/esm2022/alarms/alarms.component.mjs +10 -3
- package/esm2022/alarms/alarms.helper.mjs +32 -0
- package/esm2022/alarms/alarms.module.mjs +5 -5
- package/esm2022/alarms/cockpit/index.mjs +13 -17
- package/esm2022/alarms/devicemanagement/index.mjs +15 -18
- package/esm2022/alarms/index.mjs +6 -5
- package/esm2022/core/router/context-route.component.mjs +23 -13
- package/esm2022/core/router/context-route.service.mjs +37 -5
- package/esm2022/core/router/router-tabs.resolver.mjs +46 -15
- package/esm2022/core/router/router.model.mjs +6 -1
- package/esm2022/core/router/router.module.mjs +20 -13
- package/esm2022/core/router/router.service.mjs +24 -10
- package/esm2022/core/router/scoped-context-route.service.mjs +152 -0
- package/esm2022/core/router/view-context.service.mjs +59 -16
- package/fesm2022/c8y-ngx-components-alarms-cockpit.mjs +12 -16
- package/fesm2022/c8y-ngx-components-alarms-cockpit.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-alarms-devicemanagement.mjs +14 -17
- package/fesm2022/c8y-ngx-components-alarms-devicemanagement.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-alarms.mjs +198 -170
- package/fesm2022/c8y-ngx-components-alarms.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +403 -131
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -20,8 +20,6 @@ export declare class AlarmDetailsComponent implements OnChanges {
|
|
|
20
20
|
private alarmsViewService;
|
|
21
21
|
private colorService;
|
|
22
22
|
selectedAlarm: IAlarm;
|
|
23
|
-
hasAnyRoleAllowingToCreateSmartRule: boolean;
|
|
24
|
-
isSmartRulesServiceSubscribed: boolean;
|
|
25
23
|
readonly ACKNOWLEDGED_STATUS_VALUE: "ACKNOWLEDGED";
|
|
26
24
|
readonly ACTIVE_STATUS_VALUE: "ACTIVE";
|
|
27
25
|
readonly CLEARED_STATUS_VALUE: "CLEARED";
|
|
@@ -179,6 +177,6 @@ export declare class AlarmDetailsComponent implements OnChanges {
|
|
|
179
177
|
private isDeviceManagementView;
|
|
180
178
|
private getCustomFragments;
|
|
181
179
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlarmDetailsComponent, [null, null, null, null, null, null, { optional: true; }, null, null, null, null]>;
|
|
182
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlarmDetailsComponent, "c8y-alarm-details", never, { "selectedAlarm": { "alias": "selectedAlarm"; "required": false; };
|
|
180
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlarmDetailsComponent, "c8y-alarm-details", never, { "selectedAlarm": { "alias": "selectedAlarm"; "required": false; }; }, {}, never, never, false, never>;
|
|
183
181
|
}
|
|
184
182
|
//# sourceMappingURL=alarm-details.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alarm-details.component.d.ts","sourceRoot":"","sources":["../../alarms/alarm-details.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAY,aAAa,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAGL,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,WAAW,EACX,gBAAgB,EAEjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,gBAAgB,EAEjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAGL,kBAAkB,EAClB,cAAc,EACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;;AAE1D,qBAIa,qBAAsB,YAAW,SAAS;
|
|
1
|
+
{"version":3,"file":"alarm-details.component.d.ts","sourceRoot":"","sources":["../../alarms/alarm-details.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAY,aAAa,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAGL,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,YAA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I,CAAC;YAgCrE,iBAAiB;IAa/B;;;;;;;;;;;OAWG;YACW,uBAAuB;IAUrC,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,qBAAqB;IAS7B,OAAO,CAAC,sBAAsB;IAM9B,OAAO,CAAC,4BAA4B;IAuBpC,OAAO,CAAC,uBAAuB;IAe/B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,sBAAsB;IAe9B;;;;;;;;;;;;;;OAcG;YACW,oBAAoB;YAYpB,mBAAmB;IAsBjC,OAAO,CAAC,iCAAiC;IAIzC;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;IAI9B,OAAO,CAAC,kBAAkB;yCAnZf,qBAAqB;2CAArB,qBAAqB;CAgajC"}
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import {
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { AlarmDetailsService } from './alarm-details.service';
|
|
3
|
+
import { IAlarm } from '@c8y/client';
|
|
6
4
|
import { ContextRouteService } from '@c8y/ngx-components';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
7
6
|
import { AlarmsViewService } from './alarms-view.service';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class AlarmInfoComponent implements OnInit
|
|
10
|
-
|
|
11
|
-
private activatedRoute;
|
|
12
|
-
private alarmsService;
|
|
8
|
+
export declare class AlarmInfoComponent implements OnInit {
|
|
9
|
+
activatedRoute: ActivatedRoute;
|
|
13
10
|
private router;
|
|
14
11
|
private contextRouteService;
|
|
15
12
|
private alarmsViewService;
|
|
16
13
|
selectedAlarm$: Observable<IAlarm>;
|
|
17
14
|
hasAnyRoleAllowingToCreateSmartRule: boolean;
|
|
18
|
-
isLoading: boolean;
|
|
19
15
|
isSmartRulesServiceSubscribed: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
loadingDone(): Promise<void>;
|
|
16
|
+
isContextRoute: boolean;
|
|
17
|
+
readonly TITLE: "Alarms";
|
|
18
|
+
constructor(activatedRoute: ActivatedRoute, router: Router, contextRouteService: ContextRouteService, alarmsViewService: AlarmsViewService);
|
|
19
|
+
ngOnInit(): Promise<void>;
|
|
25
20
|
back(): void;
|
|
26
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlarmInfoComponent, never>;
|
|
27
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<AlarmInfoComponent, "c8y-alarm-info", never, {}, {}, never, never, false, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alarm-info.component.d.ts","sourceRoot":"","sources":["../../alarms/alarm-info.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,
|
|
1
|
+
{"version":3,"file":"alarm-info.component.d.ts","sourceRoot":"","sources":["../../alarms/alarm-info.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAwB,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAM,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;;AAE1D,qBAIa,kBAAmB,YAAW,MAAM;IAStC,cAAc,EAAE,cAAc;IACrC,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,mBAAmB;IAC3B,OAAO,CAAC,iBAAiB;IAX3B,cAAc,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IAEnC,mCAAmC,EAAE,OAAO,CAAC;IAC7C,6BAA6B,EAAE,OAAO,CAAC;IACvC,cAAc,UAAS;IACvB,QAAQ,CAAC,KAAK,WAAqB;gBAG1B,cAAc,EAAE,cAAc,EAC7B,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,mBAAmB,EACxC,iBAAiB,EAAE,iBAAiB;IAGxC,QAAQ;IASd,IAAI,IAAI,IAAI;yCAxBD,kBAAkB;2CAAlB,kBAAkB;CA6B9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alarms-view.service.d.ts","sourceRoot":"","sources":["../../alarms/alarms-view.service.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"alarms-view.service.d.ts","sourceRoot":"","sources":["../../alarms/alarms-view.service.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,gBAAgB,EAChB,YAAY,EAGZ,MAAM,EACN,WAAW,EAEX,cAAc,EACd,YAAY,EACb,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,cAAc,EAGf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAmB,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;AAG5D;;;;;;;;GAQG;AACH,qBAGa,iBAAiB;IAa1B,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,cAAc;IAbxB,QAAQ,CAAC,sBAAsB,EAAE,MAAM,kBAAkB,CAAuB;IAChF,QAAQ,CAAC,sBAAsB,SAAU;IACzC,QAAQ,CAAC,4BAA4B,cAAc;IACnD,QAAQ,CAAC,uBAAuB,WAA2C;IAC3E,QAAQ,CAAC,8BAA8B,4CAAsD;IAE7F,kBAAkB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACxC,iBAAiB,gBAAuB;IAExC,OAAO,CAAC,kBAAkB,CAA2B;gBAG3C,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc;IAQxC;;OAEG;IACH,eAAe,IAAI,IAAI;IAIvB;;;;;;;;;OASG;IACH,sBAAsB,CACpB,UAAU,EAAE,YAAY,EAAE,EAC1B,WAAW,UAAQ,EACnB,aAAa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OAAO,CAAC,oBAAoB;YAKd,WAAW;IAqBzB,OAAO,CAAC,eAAe;YAOT,SAAS;YAiCT,YAAY;IAI1B,OAAO,CAAC,0BAA0B;IAgBlC,OAAO,CAAC,yBAAyB;yCA9MtB,eAAe;2CAAf,eAAe;CAwN3B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Routes } from '@angular/router';
|
|
2
|
+
import { ViewContext } from '@c8y/ngx-components';
|
|
3
|
+
export declare function getViewContextRoutes(contexts: ViewContext[]): Routes;
|
|
4
|
+
export declare function getChildrenForViewContext(context: ViewContext): Routes;
|
|
5
|
+
//# sourceMappingURL=alarms.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alarms.helper.d.ts","sourceRoot":"","sources":["../../alarms/alarms.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAML,WAAW,EAEZ,MAAM,qBAAqB,CAAC;AAI7B,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,MAAM,CASpE;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAiBtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alarms.module.d.ts","sourceRoot":"","sources":["../../alarms/alarms.module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAY,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"alarms.module.d.ts","sourceRoot":"","sources":["../../alarms/alarms.module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAY,MAAM,eAAe,CAAC;AA2B9D,OAAO,EAAwB,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAe1E,qBA+Ca,YAAY;IACvB,MAAM,CAAC,MAAM,CAAC,MAAM,GAAE,kBAAuB,GAAG,mBAAmB,CAAC,YAAY,CAAC;yCADtE,YAAY;0CAAZ,YAAY;0CAAZ,YAAY;CAgBxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../alarms/cockpit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAY,MAAM,eAAe,CAAC;AAE9D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../alarms/cockpit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAY,MAAM,eAAe,CAAC;AAE9D,OAAO,EAGL,YAAY,EAGb,MAAM,4BAA4B,CAAC;;;AAEpC,wBAAgB,+BAA+B,IAAI,mBAAmB,CAAC,YAAY,CAAC,CA6CnF;AAED,qBAGa,mBAAoB,SAAQ,YAAY;yCAAxC,mBAAmB;0CAAnB,mBAAmB;0CAAnB,mBAAmB;CAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../alarms/devicemanagement/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../alarms/devicemanagement/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAGL,YAAY,EAGb,MAAM,4BAA4B,CAAC;AAEpC,wBAAgB,wCAAwC,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAmE5F"}
|
package/alarms/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
export * from './alarm-details-custom-button/alarm-details-button.pipe';
|
|
2
|
+
export * from './alarm-details-custom-button/alarm-details-button.service';
|
|
1
3
|
export * from './alarm-details.component';
|
|
2
4
|
export * from './alarm-details.service';
|
|
3
5
|
export * from './alarm-empty.component';
|
|
4
6
|
export * from './alarm-info.component';
|
|
7
|
+
export * from './alarm-list-custom-indicator/alarm-list-indicator.pipe';
|
|
8
|
+
export * from './alarm-list-custom-indicator/alarm-list-indicator.service';
|
|
5
9
|
export * from './alarm-severities-to-title.pipe';
|
|
6
10
|
export * from './alarm-severity-to-icon.pipe';
|
|
7
11
|
export * from './alarm-severity-to-label.pipe';
|
|
@@ -13,12 +17,9 @@ export * from './alarms-interval-refresh.component';
|
|
|
13
17
|
export * from './alarms-list.component';
|
|
14
18
|
export * from './alarms-view.service';
|
|
15
19
|
export * from './alarms.component';
|
|
20
|
+
export * from './alarms.helper';
|
|
16
21
|
export * from './alarms.model';
|
|
17
22
|
export * from './alarms.module';
|
|
18
23
|
export * from './audit-changes-message.pipe';
|
|
19
24
|
export * from './ng1-smart-rules-upgrade.service';
|
|
20
|
-
export * from './alarm-list-custom-indicator/alarm-list-indicator.pipe';
|
|
21
|
-
export * from './alarm-details-custom-button/alarm-details-button.pipe';
|
|
22
|
-
export * from './alarm-details-custom-button/alarm-details-button.service';
|
|
23
|
-
export * from './alarm-list-custom-indicator/alarm-list-indicator.service';
|
|
24
25
|
//# sourceMappingURL=index.d.ts.map
|
package/alarms/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../alarms/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qCAAqC,CAAC;AACpD,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../alarms/index.ts"],"names":[],"mappings":"AAAA,cAAc,yDAAyD,CAAC;AACxE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yDAAyD,CAAC;AACxE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qCAAqC,CAAC;AACpD,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import { DestroyRef, OnInit } from '@angular/core';
|
|
1
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ScopedContextRouteService } from './scoped-context-route.service';
|
|
2
5
|
import { ContextRouteService } from './context-route.service';
|
|
3
6
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ContextRouteComponent {
|
|
7
|
+
export declare class ContextRouteComponent implements OnInit {
|
|
5
8
|
private route;
|
|
9
|
+
private scopedContextRouteService;
|
|
6
10
|
private contextRouteService;
|
|
7
|
-
|
|
11
|
+
private destroyRef;
|
|
12
|
+
isLoading$: Observable<boolean>;
|
|
13
|
+
constructor(route: ActivatedRoute, scopedContextRouteService: ScopedContextRouteService, contextRouteService: ContextRouteService, destroyRef: DestroyRef);
|
|
8
14
|
ngOnInit(): void;
|
|
9
|
-
ngOnDestroy(): void;
|
|
10
15
|
refreshTabs(): void;
|
|
11
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextRouteComponent, never>;
|
|
12
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<ContextRouteComponent, "c8y-context-route", never, {}, {}, never, never, false, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-route.component.d.ts","sourceRoot":"","sources":["../../../core/router/context-route.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context-route.component.d.ts","sourceRoot":"","sources":["../../../core/router/context-route.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;;AAG9D,qBAKa,qBAAsB,YAAW,MAAM;IAIhD,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,yBAAyB;IACjC,OAAO,CAAC,mBAAmB;IAC3B,OAAO,CAAC,UAAU;IANpB,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;gBAGtB,KAAK,EAAE,cAAc,EACrB,yBAAyB,EAAE,yBAAyB,EACpD,mBAAmB,EAAE,mBAAmB,EACxC,UAAU,EAAE,UAAU;IAKhC,QAAQ,IAAI,IAAI;IAShB,WAAW;yCArBA,qBAAqB;2CAArB,qBAAqB;CAwBjC"}
|
|
@@ -2,10 +2,10 @@ import { Injector } from '@angular/core';
|
|
|
2
2
|
import { ActivatedRoute, ActivatedRouteSnapshot, Data, Router } from '@angular/router';
|
|
3
3
|
import { IIdentified } from '@c8y/client';
|
|
4
4
|
import { ApiCall, ApiService } from '@c8y/ngx-components/api';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
5
|
+
import { Observable, Subject } from 'rxjs';
|
|
6
6
|
import { TabsService } from '../tabs/tabs.service';
|
|
7
7
|
import { RouterTabsResolver } from './router-tabs.resolver';
|
|
8
|
-
import { ContextData } from './router.model';
|
|
8
|
+
import { ContextData, ViewContext } from './router.model';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class ContextRouteService {
|
|
11
11
|
private tabsResolver;
|
|
@@ -16,8 +16,8 @@ export declare class ContextRouteService {
|
|
|
16
16
|
private dataSubscription;
|
|
17
17
|
private routerSubscription;
|
|
18
18
|
private lastAddedTabs;
|
|
19
|
-
private refreshTrigger;
|
|
20
19
|
private ID_REGEX;
|
|
20
|
+
refreshTrigger$: Subject<void>;
|
|
21
21
|
/**
|
|
22
22
|
* Last context data snapshot
|
|
23
23
|
*/
|
|
@@ -29,9 +29,32 @@ export declare class ContextRouteService {
|
|
|
29
29
|
* @param activatedRoute The current activated route.
|
|
30
30
|
*/
|
|
31
31
|
getContextData(activatedRoute: ActivatedRoute | ActivatedRouteSnapshot): (Data & ContextData) | null;
|
|
32
|
+
/**
|
|
33
|
+
* Returns a route for the given ContextData.
|
|
34
|
+
*
|
|
35
|
+
* @param contextData The ContextData object.
|
|
36
|
+
* @returns A route with the ids set correctly.
|
|
37
|
+
*/
|
|
32
38
|
getContextRoute(contextData: ContextData): string;
|
|
39
|
+
/**
|
|
40
|
+
* Verifies if a given url is a view context route.
|
|
41
|
+
*
|
|
42
|
+
* @param url A route url.
|
|
43
|
+
* @param contextToCheck The view context(s) to check. If not provided, all contexts are checked.
|
|
44
|
+
* @returns true if the given url is a view context route.
|
|
45
|
+
*/
|
|
46
|
+
isContextRoute(url: string, contextToCheck?: ViewContext[]): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated: Use ScopedContextRouteService instead. Will be removed in 10.22
|
|
49
|
+
*/
|
|
33
50
|
init(route: ActivatedRoute): void;
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated: Use ScopedContextRouteService instead. Will be removed in 10.22
|
|
53
|
+
*/
|
|
34
54
|
destroy(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Reloads all ViewContexts.
|
|
57
|
+
*/
|
|
35
58
|
refreshContext(): void;
|
|
36
59
|
/**
|
|
37
60
|
* Sets a new contextData in the ActivatedRoute.
|
|
@@ -39,6 +62,9 @@ export declare class ContextRouteService {
|
|
|
39
62
|
* @param contextData New contextData.
|
|
40
63
|
*/
|
|
41
64
|
setContext(activatedRoute: ActivatedRoute, contextData: IIdentified): void;
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated: Use ScopedContextRouteService instead. Will be removed in 10.21
|
|
67
|
+
*/
|
|
42
68
|
updatedContext(route: ActivatedRoute): Observable<ApiCall>;
|
|
43
69
|
private updateTabs;
|
|
44
70
|
private redirectToFirstTab;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-route.service.d.ts","sourceRoot":"","sources":["../../../core/router/context-route.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAQ,MAAM,eAAe,CAAC;AAC3D,OAAO,EACL,cAAc,EACd,sBAAsB,EAEtB,IAAI,EAGJ,MAAM,EAGP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAS,UAAU,
|
|
1
|
+
{"version":3,"file":"context-route.service.d.ts","sourceRoot":"","sources":["../../../core/router/context-route.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EA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C,KAAK,EAAE,cAAc,GAAG,IAAI;IAajC;;OAEG;IACH,OAAO,IAAI,IAAI;IAMf;;OAEG;IACH,cAAc;IAId;;;;OAIG;IACH,UAAU,CAAC,cAAc,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,GAAG,IAAI;IAY1E;;OAEG;IACH,cAAc,CAAC,KAAK,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAsB1D,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,kBAAkB;IAY1B,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,WAAW;IASnB,OAAO,CAAC,sBAAsB;yCAhMnB,mBAAmB;6CAAnB,mBAAmB;CA4M/B"}
|
|
@@ -8,7 +8,10 @@ export declare class RouterTabsResolver {
|
|
|
8
8
|
private router;
|
|
9
9
|
constructor(injector: Injector, router: Router);
|
|
10
10
|
get routerStateSnapshot(): import("@angular/router").RouterStateSnapshot;
|
|
11
|
-
resolve(
|
|
11
|
+
resolve(currentRoute: ActivatedRouteSnapshot): Observable<Tab[]>;
|
|
12
|
+
private getBaselUrl;
|
|
13
|
+
private getLatestChildRoutes;
|
|
14
|
+
private findRootContextRoutes;
|
|
12
15
|
private getGuards;
|
|
13
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<RouterTabsResolver, never>;
|
|
14
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<RouterTabsResolver>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router-tabs.resolver.d.ts","sourceRoot":"","sources":["../../../core/router/router-tabs.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAc,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"router-tabs.resolver.d.ts","sourceRoot":"","sources":["../../../core/router/router-tabs.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAc,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,EAAqC,MAAM,iBAAiB,CAAC;AACpG,OAAO,EAA0B,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;;AAGxC,qBAGa,kBAAkB;IAE3B,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,MAAM;gBADN,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM;IAGxB,IAAI,mBAAmB,kDAEtB;IAED,OAAO,CAAC,YAAY,EAAE,sBAAsB,GA+CrC,UAAU,CAAC,GAAG,EAAE,CAAC;IAGxB,OAAO,CAAC,WAAW;IASnB,OAAO,CAAC,oBAAoB;IAK5B,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,SAAS;yCAzFN,kBAAkB;6CAAlB,kBAAkB;CAkG9B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Route as ngRoute } from '@angular/router';
|
|
2
|
-
import { IIdentified } from '@c8y/client';
|
|
2
|
+
import { IIdentified, IResult, IResultList } from '@c8y/client';
|
|
3
3
|
import { ExtensionFactory } from '../common/extension-hooks';
|
|
4
4
|
import { Tab, TabWithTemplate } from '../tabs/tab.model';
|
|
5
|
-
import { Injector } from '@angular/core';
|
|
5
|
+
import { Injector, Type } from '@angular/core';
|
|
6
6
|
export interface ContextData {
|
|
7
7
|
/**
|
|
8
8
|
* The data of this route. E.g. on ViewContext.Device an managed object
|
|
@@ -30,8 +30,45 @@ export declare enum ViewContext {
|
|
|
30
30
|
Report = "reports/:id",
|
|
31
31
|
Service = "service/:id",
|
|
32
32
|
DatapointLibrary = "datapointlibrary/:id",
|
|
33
|
-
Simulators = "simulators/:id"
|
|
33
|
+
Simulators = "simulators/:id",
|
|
34
|
+
Alarms = "alarms/:id",
|
|
35
|
+
GroupAlarms = "group/:id/alarms/:id",
|
|
36
|
+
DeviceAlarms = "device/:id/alarms/:id",
|
|
37
|
+
ServiceAlarms = "service/:id/alarms/:id",
|
|
38
|
+
SimulatorsAlarms = "simulators/:id/alarms/:id"
|
|
34
39
|
}
|
|
40
|
+
export interface ViewContexServiceConfig {
|
|
41
|
+
[key: string]: {
|
|
42
|
+
/**
|
|
43
|
+
* Defines if the route is automatically generated by the router service or
|
|
44
|
+
* if the route is somewhere defined by the developer.
|
|
45
|
+
*/
|
|
46
|
+
autoRoute: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The path used to route.
|
|
49
|
+
*/
|
|
50
|
+
path: string;
|
|
51
|
+
/**
|
|
52
|
+
* The @c8y/client service to use for this context.
|
|
53
|
+
*/
|
|
54
|
+
service: Type<{
|
|
55
|
+
detail(entityOrId: string | number | IIdentified, filter?: object): Promise<IResult<IIdentified>>;
|
|
56
|
+
list(filter?: object): Promise<IResultList<IIdentified>>;
|
|
57
|
+
}>;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* A ViewContext base route.
|
|
62
|
+
*/
|
|
63
|
+
export type ViewContextRootRoute = Route & {
|
|
64
|
+
rootContext: ViewContext;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* A route that is added to a certain view context.
|
|
68
|
+
*/
|
|
69
|
+
export type ViewContextRoute = Route & {
|
|
70
|
+
context: ViewContext;
|
|
71
|
+
};
|
|
35
72
|
/**
|
|
36
73
|
* A route that can be added via the HOOK_ROUTE.
|
|
37
74
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.model.d.ts","sourceRoot":"","sources":["../../../core/router/router.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"router.model.d.ts","sourceRoot":"","sources":["../../../core/router/router.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI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{ Route, ViewContextRootRoute } from './router.model';
|
|
3
4
|
import { RouterService } from './router.service';
|
|
4
|
-
import { Route } from './router.model';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "./context-route.component";
|
|
7
7
|
import * as i2 from "./empty.component";
|
|
@@ -9,6 +9,7 @@ import * as i3 from "@angular/router";
|
|
|
9
9
|
import * as i4 from "../header/header.module";
|
|
10
10
|
import * as i5 from "../common/common.module";
|
|
11
11
|
export declare const extraRoutes: Route[];
|
|
12
|
+
export declare const viewContextRoutes: ViewContextRootRoute[];
|
|
12
13
|
/**
|
|
13
14
|
* A C8Y router implementation. It implements some default routes needed
|
|
14
15
|
* as well as context routes. Context routes are useful, if you want to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.module.d.ts","sourceRoot":"","sources":["../../../core/router/router.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAY,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAkC,MAAM,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"router.module.d.ts","sourceRoot":"","sources":["../../../core/router/router.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAY,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAkC,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAOvF,OAAO,EAAE,KAAK,EAAe,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;;;;;;;AAIjD,eAAO,MAAM,WAAW,EAAE,KAAK,EAS9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,oBAAoB,EAAO,CAAC;AAmB5D;;;;;;;;;GASG;AACH,qBAKa,YAAY;IA6BrB,OAAO,CAAC,aAAa;IA5BvB;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,CAAC,MAAM,GAAE,MAAW,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,mBAAmB,CAAC,YAAY,CAAC;gBAqBnF,aAAa,EAAE,aAAa;yCA7B3B,YAAY;0CAAZ,YAAY;0CAAZ,YAAY;CA+BxB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { InjectionToken, Injector } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
-
import { RouteFactory, Route } from './router.model';
|
|
4
|
-
import { ContextRouteService } from './context-route.service';
|
|
5
3
|
import { IManagedObject } from '@c8y/client';
|
|
6
4
|
import { Observable } from 'rxjs';
|
|
7
|
-
import { ExtensionFactory,
|
|
8
|
-
import { PluginsResolveService } from '../plugins';
|
|
5
|
+
import { ExtensionFactory, ExtensionPointWithoutStateForPlugins, GenericHookOptions, GenericHookType } from '../common/extension-hooks';
|
|
9
6
|
import { OptionsService } from '../common/options.service';
|
|
7
|
+
import { PluginsResolveService } from '../plugins';
|
|
8
|
+
import { ContextRouteService } from './context-route.service';
|
|
9
|
+
import { Route, RouteFactory } from './router.model';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
12
|
* An extension HOOK can use either a pure value:
|
|
@@ -82,6 +82,7 @@ export declare class RouterService extends ExtensionPointWithoutStateForPlugins<
|
|
|
82
82
|
protected setupItemsObservable(): Observable<Route[]>;
|
|
83
83
|
private addRoutes;
|
|
84
84
|
private convertRoute;
|
|
85
|
+
private findAllRootContextRoutes;
|
|
85
86
|
private resolveRouterForChildRoutes;
|
|
86
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<RouterService, never>;
|
|
87
88
|
static ɵprov: i0.ɵɵInjectableDeclaration<RouterService>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.service.d.ts","sourceRoot":"","sources":["../../../core/router/router.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,cAAc,EACd,QAAQ,EAET,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,
|
|
1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IACH,OAAO;IAKP;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,EAAE;IAI/B;;;;;OAKG;IACH,OAAO,CAAC,aAAa,EAAE,cAAc,EAAE,MAAM,SAAO,GAAG,MAAM;IAO7D,SAAS,CAAC,oBAAoB,IAAI,UAAU,CAAC,KAAK,EAAE,CAAC;IAOrD,OAAO,CAAC,SAAS;IAcjB,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,wBAAwB;IAchC,OAAO,CAAC,2BAA2B;yCAzHxB,aAAa;6CAAb,aAAa;CAsIzB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { DestroyRef, Injector, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { ApiService } from '@c8y/ngx-components/api';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { TabsService } from '../tabs/tabs.service';
|
|
6
|
+
import { RouterTabsResolver } from './router-tabs.resolver';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* A service which is injected into the context route component to handle the context data.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ScopedContextRouteService implements OnDestroy {
|
|
12
|
+
private tabsResolver;
|
|
13
|
+
private tabsService;
|
|
14
|
+
private router;
|
|
15
|
+
private apiService;
|
|
16
|
+
private injector;
|
|
17
|
+
private destroyRef;
|
|
18
|
+
private lastAddedTabs;
|
|
19
|
+
private refreshTrigger$;
|
|
20
|
+
private ID_REGEX;
|
|
21
|
+
/**
|
|
22
|
+
* The context used by this service.
|
|
23
|
+
*/
|
|
24
|
+
private currentContext;
|
|
25
|
+
constructor(tabsResolver: RouterTabsResolver, tabsService: TabsService, router: Router, apiService: ApiService, injector: Injector, destroyRef: DestroyRef);
|
|
26
|
+
/**
|
|
27
|
+
* Indicates that the data is loading
|
|
28
|
+
* @returns An boolean observable which indicates if the data is loading.
|
|
29
|
+
*/
|
|
30
|
+
isLoading$(): Observable<boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* Initializes the context route.
|
|
33
|
+
* @param route The current activated route.
|
|
34
|
+
*/
|
|
35
|
+
init(route: ActivatedRoute): void;
|
|
36
|
+
/**
|
|
37
|
+
* Destroys the service.
|
|
38
|
+
*/
|
|
39
|
+
ngOnDestroy(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Refreshes the context.
|
|
42
|
+
*/
|
|
43
|
+
refreshContext(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Sets an API hook to refresh the contextData on changes.
|
|
46
|
+
* @param activatedRoute The current activated route.
|
|
47
|
+
*/
|
|
48
|
+
private updatedContext;
|
|
49
|
+
private updateTabs;
|
|
50
|
+
private redirectToFirstTab;
|
|
51
|
+
private needsRedirectLegacy;
|
|
52
|
+
private needsRedirect;
|
|
53
|
+
private getMatchingContextRoute;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScopedContextRouteService, never>;
|
|
55
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ScopedContextRouteService>;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=scoped-context-route.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scoped-context-route.service.d.ts","sourceRoot":"","sources":["../../../core/router/scoped-context-route.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAc,QAAQ,EAAE,SAAS,EAAQ,MAAM,eAAe,CAAC;AAElF,OAAO,EACL,cAAc,EAKd,MAAM,EAGP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAW,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAS,UAAU,EAAW,MAAM,MAAM,CAAC;AAGlD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;;AAI5D;;GAEG;AACH,qBACa,yBAA0B,YAAW,SAAS;IAWvD,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,UAAU;IAfpB,OAAO,CAAC,aAAa,CAAM;IAC3B,OAAO,CAAC,eAAe,CAAuB;IAC9C,OAAO,CAAC,QAAQ,CAAc;IAE9B;;OAEG;IACH,OAAO,CAAC,cAAc,CAAc;gBAG1B,YAAY,EAAE,kBAAkB,EAChC,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU;IAGhC;;;OAGG;IACH,UAAU,IAAI,UAAU,CAAC,OAAO,CAAC;IAYjC;;;OAGG;IACH,IAAI,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAwBjC;;OAEG;IACH,WAAW,IAAI,IAAI;IAInB;;OAEG;IACH,cAAc;IAId;;;OAGG;IACH,OAAO,CAAC,cAAc;IAsBtB,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,kBAAkB;IA2B1B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,uBAAuB;yCA7JpB,yBAAyB;6CAAzB,yBAAyB;CAoKrC"}
|
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ViewContext } from './router.model';
|
|
1
|
+
import { ViewContexServiceConfig, ViewContext } from './router.model';
|
|
3
2
|
export declare class ViewContextServices {
|
|
4
|
-
static services:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
readonly "ecosystem/application/features/:id": typeof ApplicationService;
|
|
12
|
-
readonly "subscribedApplications/:id": typeof ApplicationService;
|
|
13
|
-
readonly "tenants/:id": typeof TenantService;
|
|
14
|
-
readonly "reports/:id": typeof InventoryService;
|
|
15
|
-
readonly "service/:id": typeof InventoryService;
|
|
16
|
-
readonly "datapointlibrary/:id": typeof InventoryService;
|
|
17
|
-
readonly "simulators/:id": typeof InventoryService;
|
|
18
|
-
};
|
|
19
|
-
static contextToService(context: ViewContext): typeof InventoryService | typeof UserService | typeof ApplicationService | typeof TenantService;
|
|
3
|
+
static services: ViewContexServiceConfig;
|
|
4
|
+
static contextToService(context: ViewContext): import("@angular/core").Type<{
|
|
5
|
+
detail(entityOrId: string | number | import("@c8y/client").IIdentified, filter?: object): Promise<import("@c8y/client").IResult<import("@c8y/client").IIdentified>>;
|
|
6
|
+
list(filter?: object): Promise<import("@c8y/client").IResultList<import("@c8y/client").IIdentified>>;
|
|
7
|
+
}>;
|
|
8
|
+
static getPath(context: ViewContext): string;
|
|
9
|
+
static isAutoRoute(context: ViewContext): boolean;
|
|
20
10
|
}
|
|
21
11
|
//# sourceMappingURL=view-context.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-context.service.d.ts","sourceRoot":"","sources":["../../../core/router/view-context.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"view-context.service.d.ts","sourceRoot":"","sources":["../../../core/router/view-context.service.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEtE,qBAAa,mBAAmB;IAC9B,MAAM,CAAC,QAAQ,EAAE,uBAAuB,CAmD7B;IAEX,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW;;;;IAI5C,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,WAAW;IAInC,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,WAAW;CAGxC"}
|