@c8y/ngx-components 1023.52.0 → 1023.55.5
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/index.d.ts +2 -1
- package/alarms/index.d.ts.map +1 -1
- package/application-access/list/index.d.ts +36 -0
- package/application-access/list/index.d.ts.map +1 -0
- package/application-access/user/application-access-user-details-wrapper/index.d.ts +33 -0
- package/application-access/user/application-access-user-details-wrapper/index.d.ts.map +1 -0
- package/application-access/user/index.d.ts +6 -0
- package/application-access/user/index.d.ts.map +1 -0
- package/asset-properties/index.d.ts +247 -28
- package/asset-properties/index.d.ts.map +1 -1
- package/context-dashboard/index.d.ts +1 -1
- package/datapoints-export-selector/index.d.ts +2 -2
- package/device-enrolment/index.d.ts +6 -0
- package/device-enrolment/index.d.ts.map +1 -0
- package/device-enrolment/modal/index.d.ts +88 -0
- package/device-enrolment/modal/index.d.ts.map +1 -0
- package/device-grid/index.d.ts +1 -1
- package/device-list/index.d.ts +1 -1
- package/device-shell/index.d.ts +1 -1
- package/echart/index.d.ts +1 -1
- package/echart/models/index.d.ts +2 -2
- package/fesm2022/c8y-ngx-components-alarms-cockpit.mjs +1 -1
- package/fesm2022/c8y-ngx-components-alarms-devicemanagement.mjs +1 -1
- package/fesm2022/c8y-ngx-components-alarms.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-application-access-list.mjs +180 -0
- package/fesm2022/c8y-ngx-components-application-access-list.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-application-access-user-application-access-user-details-wrapper.mjs +113 -0
- package/fesm2022/c8y-ngx-components-application-access-user-application-access-user-details-wrapper.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-application-access-user.mjs +20 -0
- package/fesm2022/c8y-ngx-components-application-access-user.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-asset-properties.mjs +640 -119
- package/fesm2022/c8y-ngx-components-asset-properties.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-branding-shared.mjs +1 -1
- package/fesm2022/c8y-ngx-components-child-devices.mjs +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard-asset-add.mjs +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard-device-add.mjs +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard-devicemanagement.mjs +1 -1
- package/fesm2022/{c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-D0C7SH6L.mjs → c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-DvKsV_Fs.mjs} +14 -12
- package/fesm2022/c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-DvKsV_Fs.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-dashboard-details-advanced-tab.mjs +2 -2
- package/fesm2022/c8y-ngx-components-datapoint-explorer-devicemanagement.mjs +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-explorer.mjs +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-library.mjs +1 -1
- package/fesm2022/c8y-ngx-components-device-enrolment-modal.mjs +570 -0
- package/fesm2022/c8y-ngx-components-device-enrolment-modal.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-device-enrolment.mjs +147 -0
- package/fesm2022/c8y-ngx-components-device-enrolment.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-ecosystem.mjs +2 -2
- package/fesm2022/c8y-ngx-components-ecosystem.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-exports.mjs +1 -1
- package/fesm2022/c8y-ngx-components-feature-toggles.mjs +1 -1
- package/fesm2022/c8y-ngx-components-register-device.mjs +1 -1
- package/fesm2022/c8y-ngx-components-remote-access-ssh.mjs +1 -1
- package/fesm2022/c8y-ngx-components-remote-access-telnet.mjs +1 -1
- package/fesm2022/c8y-ngx-components-remote-access-vnc.mjs +1 -1
- package/fesm2022/c8y-ngx-components-report-dashboard.mjs +1 -1
- package/fesm2022/c8y-ngx-components-repository-firmware.mjs +1 -1
- package/fesm2022/c8y-ngx-components-repository-shared.mjs +3 -5
- package/fesm2022/c8y-ngx-components-repository-shared.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-sub-assets.mjs +132 -55
- package/fesm2022/c8y-ngx-components-sub-assets.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-tenants.mjs +71 -32
- package/fesm2022/c8y-ngx-components-tenants.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-upgrade.mjs +7 -1
- package/fesm2022/c8y-ngx-components-upgrade.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-cockpit-welcome.mjs +4 -4
- package/fesm2022/c8y-ngx-components-widgets-implementations-cockpit-welcome.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +454 -225
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/index.d.ts +109 -39
- package/index.d.ts.map +1 -1
- package/locales/de.po +190 -13
- package/locales/es.po +189 -13
- package/locales/fr.po +189 -13
- package/locales/ja_JP.po +168 -13
- package/locales/ko.po +190 -13
- package/locales/locales.pot +169 -8
- package/locales/nl.po +189 -13
- package/locales/pl.po +189 -13
- package/locales/pt_BR.po +189 -13
- package/locales/zh_CN.po +190 -13
- package/locales/zh_TW.po +189 -13
- package/map/index.d.ts +1 -0
- package/map/index.d.ts.map +1 -1
- package/operations/bulk-operations-service/index.d.ts +1 -1
- package/package.json +1 -1
- package/protocol-opcua/mappings/index.d.ts +1 -1
- package/register-device/index.d.ts +1 -1
- package/remote-access/data/index.d.ts +1 -0
- package/remote-access/data/index.d.ts.map +1 -1
- package/repository/shared/index.d.ts.map +1 -1
- package/sub-assets/index.d.ts +9 -3
- package/sub-assets/index.d.ts.map +1 -1
- package/tenants/index.d.ts +1 -0
- package/tenants/index.d.ts.map +1 -1
- package/upgrade/index.d.ts.map +1 -1
- package/widgets/implementations/asset-table/index.d.ts +1 -1
- package/widgets/implementations/datapoints-table/index.d.ts +2 -2
- package/widgets/implementations/kpi/index.d.ts +1 -1
- package/fesm2022/c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-D0C7SH6L.mjs.map +0 -1
package/alarms/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, PipeTransform, OnDestroy, OnInit, OnChanges, SimpleChanges, AfterViewInit, EventEmitter, ModuleWithProviders } from '@angular/core';
|
|
3
|
-
import { IAlarm, IManagedObject,
|
|
3
|
+
import { IAlarm, IManagedObject, SeverityType, AlarmStatusType, SeverityFilter, AlarmStatusSettings, IAuditRecord, AlarmService, AlarmQueryFilter, IResultList, IApplication, AuditService, InventoryService } from '@c8y/client';
|
|
4
4
|
import * as rxjs from 'rxjs';
|
|
5
5
|
import { Observable, BehaviorSubject, Subject } from 'rxjs';
|
|
6
6
|
import * as i3 from '@c8y/ngx-components';
|
|
@@ -177,6 +177,7 @@ declare const PRODUCT_EXPERIENCE_ALARMS: {
|
|
|
177
177
|
};
|
|
178
178
|
};
|
|
179
179
|
type ReloadAlarmsListType = 'gainsightTypeFilters' | null;
|
|
180
|
+
|
|
180
181
|
declare global {
|
|
181
182
|
namespace CumulocityServiceRegistry {
|
|
182
183
|
interface SpecificExtensionKeys {
|
package/alarms/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../alarms/alarms.model.ts","../../alarms/alarm-details-custom-button/alarm-details-button.service.ts","../../alarms/alarm-details-custom-button/alarm-details-button.pipe.ts","../../alarms/alarm-details.service.ts","../../alarms/alarms-activity-tracker.service.ts","../../alarms/alarms-view.service.ts","../../alarms/ng1-smart-rules-upgrade.service.ts","../../alarms/alarm-details.component.ts","../../alarms/alarm-empty.component.ts","../../alarms/alarm-info.component.ts","../../alarms/alarm-list-custom-indicator/alarm-list-indicator.service.ts","../../alarms/alarm-list-custom-indicator/alarm-list-indicator.pipe.ts","../../alarms/alarm-severities-to-title.pipe.ts","../../alarms/alarm-severity-to-icon.pipe.ts","../../alarms/alarm-severity-to-icon-class.pipe.ts","../../alarms/alarm-severity-to-label.pipe.ts","../../alarms/alarm-status-to-icon.pipe.ts","../../alarms/alarm-status-to-label.pipe.ts","../../alarms/alarms-filter.component.ts","../../alarms/alarms-icon.component.ts","../../alarms/alarms-interval-refresh.component.ts","../../alarms/alarms-list.component.ts","../../alarms/alarms.component.ts","../../alarms/alarms.helper.ts","../../alarms/audit-changes-message.pipe.ts","../../alarms/alarms-date-filter.component.ts","../../alarms/alarms-type-filter.component.ts","../../alarms/alarms.module.ts","../../alarms/alarms.guard.ts","../../alarms/alarms-navigation.factory.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAuBE;;;AAGG;;AAGH;;;;AAIG;AACH;AAEA;;;;AAIG;AACH;AAEA;;;;AAIG;AACH;AACD;AAED;AAEM;;;AAEN;;;;;AAMM;AAEN;;AAEG;AACH;AAMA;;;;;;AAOA;AAEM;AACN;;AAEG;AACH;AAOM;;;;;AAMN;;AAEG;AACH;AAKA;AAQM;;AAEJ;;;AAKF;AAEA;AAOA;AAMA;AAEM;AACJ;;AAGF;;AAEG;AACH;AAiBA;AAEA;;AAEG;AACG;AACJ;;AAEG;;AAEH;;;;AAIG;;AAEH;;;AAGG;;AAEH;;;;;;;AAOG;;;;;;;;;;AAWH;;;;AAIG;AACH;;AAED;;;AAIA;AAEK;;;;AAIL;AAEK;AAEN
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../alarms/alarms.model.ts","../../alarms/alarm-details-custom-button/alarm-details-button.service.ts","../../alarms/alarm-details-custom-button/alarm-details-button.pipe.ts","../../alarms/alarm-details.service.ts","../../alarms/alarms-activity-tracker.service.ts","../../alarms/alarms-view.service.ts","../../alarms/ng1-smart-rules-upgrade.service.ts","../../alarms/alarm-details.component.ts","../../alarms/alarm-empty.component.ts","../../alarms/alarm-info.component.ts","../../alarms/alarm-list-custom-indicator/alarm-list-indicator.service.ts","../../alarms/alarm-list-custom-indicator/alarm-list-indicator.pipe.ts","../../alarms/alarm-severities-to-title.pipe.ts","../../alarms/alarm-severity-to-icon.pipe.ts","../../alarms/alarm-severity-to-icon-class.pipe.ts","../../alarms/alarm-severity-to-label.pipe.ts","../../alarms/alarm-status-to-icon.pipe.ts","../../alarms/alarm-status-to-label.pipe.ts","../../alarms/alarms-filter.component.ts","../../alarms/alarms-icon.component.ts","../../alarms/alarms-interval-refresh.component.ts","../../alarms/alarms-list.component.ts","../../alarms/alarms.component.ts","../../alarms/alarms.helper.ts","../../alarms/audit-changes-message.pipe.ts","../../alarms/alarms-date-filter.component.ts","../../alarms/alarms-type-filter.component.ts","../../alarms/alarms.module.ts","../../alarms/alarms.guard.ts","../../alarms/alarms-navigation.factory.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAuBE;;;AAGG;;AAGH;;;;AAIG;AACH;AAEA;;;;AAIG;AACH;AAEA;;;;AAIG;AACH;AACD;AAED;AAEM;;;AAEN;;;;;AAMM;AAEN;;AAEG;AACH;AAMA;;;;;;AAOA;AAEM;AACN;;AAEG;AACH;AAOM;;;;;AAMN;;AAEG;AACH;AAKA;AAQM;;AAEJ;;;AAKF;AAEA;AAOA;AAMA;AAEM;AACJ;;AAGF;;AAEG;AACH;AAiBA;AAEA;;AAEG;AACG;AACJ;;AAEG;;AAEH;;;;AAIG;;AAEH;;;AAGG;;AAEH;;;;;;;AAOG;;;;;;;;;;AAWH;;;;AAIG;AACH;;AAED;;;AAIA;AAEK;;;;AAIL;AAEK;AAEN;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA;AAEE;AACE;;;AAGC;AAED;AACE;;;;;AAKG;AACH;AAID;AAED;AACE;;;;AAIG;;AAEJ;AACF;AACF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IApplication, IUser } from '@c8y/client';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
|
|
6
|
+
declare class ApplicationAccessListComponent implements OnInit, ControlValueAccessor {
|
|
7
|
+
allApps: _angular_core.WritableSignal<IApplication[]>;
|
|
8
|
+
nonMicroserviceApps: _angular_core.Signal<IApplication[]>;
|
|
9
|
+
marketApps: _angular_core.Signal<IApplication[]>;
|
|
10
|
+
privateApps: _angular_core.Signal<IApplication[]>;
|
|
11
|
+
userWithOwner: _angular_core.InputSignal<{
|
|
12
|
+
user: IUser;
|
|
13
|
+
owner: IUser | null;
|
|
14
|
+
}>;
|
|
15
|
+
appIdsOfGlobalRoles: _angular_core.Signal<(string | number)[]>;
|
|
16
|
+
disabledEdit: _angular_core.WritableSignal<boolean>;
|
|
17
|
+
userOwnerAvailable: _angular_core.Signal<boolean>;
|
|
18
|
+
selectedApps: _angular_core.WritableSignal<IApplication[]>;
|
|
19
|
+
selectedAppIds: _angular_core.Signal<(string | number)[]>;
|
|
20
|
+
allSelected: _angular_core.InputSignal<boolean>;
|
|
21
|
+
private applicationService;
|
|
22
|
+
private appState;
|
|
23
|
+
private onChange;
|
|
24
|
+
private onTouched;
|
|
25
|
+
ngOnInit(): Promise<void>;
|
|
26
|
+
toggleAccess(app: IApplication): void;
|
|
27
|
+
writeValue(selectedApps: Partial<IApplication>[]): void;
|
|
28
|
+
registerOnChange(fn: (selectedApps: Partial<IApplication>[]) => void): void;
|
|
29
|
+
registerOnTouched(fn: () => void): void;
|
|
30
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
31
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ApplicationAccessListComponent, never>;
|
|
32
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ApplicationAccessListComponent, "c8y-application-access-list", never, { "userWithOwner": { "alias": "userWithOwner"; "required": false; "isSignal": true; }; "allSelected": { "alias": "allSelected"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { ApplicationAccessListComponent };
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../application-access/list/application-access-list/application-access-list.component.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAMA,cAAA,8BAAA,YAAA,MAAA,EAAA,oBAAA;AAaE,aAAO,aAAA,CAAA,cAAA,CAAA,YAAA;AACP,yBAAmB,aAAA,CAAA,MAAA,CAAA,YAAA;AAGnB,gBAAU,aAAA,CAAA,MAAA,CAAA,YAAA;AAKV,iBAAW,aAAA,CAAA,MAAA,CAAA,YAAA;mBAKE,aAAA,CAAA,WAAA;;AAA+B,eAAA,KAAA;AAA6B;AACzE,yBAAmB,aAAA,CAAA,MAAA;AAWnB,kBAAY,aAAA,CAAA,cAAA;AACZ,wBAAkB,aAAA,CAAA,MAAA;AAOlB,kBAAY,aAAA,CAAA,cAAA,CAAA,YAAA;AACZ,oBAAc,aAAA,CAAA,MAAA;AAGd,iBAAW,aAAA,CAAA,WAAA;;;;;;AAmBX,sBAAA,YAAA;;AAmBA,wCAAA,OAAA,CAAA,YAAA;AAIA;AAIA;;;AAGD;;;;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as _angular_forms from '@angular/forms';
|
|
2
|
+
import * as _c8y_client from '@c8y/client';
|
|
3
|
+
import { IUser } from '@c8y/client';
|
|
4
|
+
import * as _angular_core from '@angular/core';
|
|
5
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
6
|
+
|
|
7
|
+
declare class ApplicationAccessUserDetailsWrapperComponent implements OnInit, OnDestroy {
|
|
8
|
+
userWithOwner: _angular_core.WritableSignal<{
|
|
9
|
+
user: IUser;
|
|
10
|
+
owner: IUser | null;
|
|
11
|
+
}>;
|
|
12
|
+
hasAppManagement: _angular_core.Signal<boolean>;
|
|
13
|
+
formGroup: ReturnType<typeof this.initForm>;
|
|
14
|
+
private contextService;
|
|
15
|
+
private activatedRoute;
|
|
16
|
+
private userService;
|
|
17
|
+
private formBuilder;
|
|
18
|
+
private alertService;
|
|
19
|
+
private router;
|
|
20
|
+
ngOnInit(): Promise<void>;
|
|
21
|
+
initForm(user: IUser): _angular_forms.FormGroup<{
|
|
22
|
+
applications: _angular_forms.FormControl<_c8y_client.IIdentified[]>;
|
|
23
|
+
}>;
|
|
24
|
+
save(): Promise<void>;
|
|
25
|
+
cancel(): void;
|
|
26
|
+
ngOnDestroy(): void;
|
|
27
|
+
private hasApplicationManagementRoles;
|
|
28
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ApplicationAccessUserDetailsWrapperComponent, never>;
|
|
29
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ApplicationAccessUserDetailsWrapperComponent, "c8y-application-access-user-details-wrapper", never, {}, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { ApplicationAccessUserDetailsWrapperComponent };
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../../application-access/user/application-access-user-details-wrapper/application-access-user-details-wrapper.component.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAiBA,cAAA,4CAAA,YAAA,MAAA,EAAA,SAAA;mBAce,aAAA,CAAA,cAAA;;AAAgC,eAAA,KAAA;AAA6B;AAC1E,sBAAgB,aAAA,CAAA,MAAA;;;;;;;;AAeV,gBAAA,OAAA;2BAqBc,cAAA,CAAA,SAAA;;;;;AA0CpB;AAKA;;;AAMD;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare const userApplicationAccessProviders: (_angular_core.ValueProvider | _angular_core.ClassProvider | _angular_core.ExistingProvider)[];
|
|
4
|
+
|
|
5
|
+
export { userApplicationAccessProviders };
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../application-access/user/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGA,cAAA,8BAAA,GAA2C,aAAA,CAAA,aAAA,GAAA,aAAA,CAAA,aAAA,GAAA,aAAA,CAAA,gBAAA;;;;"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injector, Type, TemplateRef, ElementRef, ViewContainerRef, OnInit, OnChanges, OnDestroy, EventEmitter, SimpleChanges, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as _c8y_client from '@c8y/client';
|
|
4
|
-
import { IManagedObject, IAlarm, IEvent } from '@c8y/client';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
4
|
+
import { IManagedObject, IAlarm, IEvent, Paging } from '@c8y/client';
|
|
5
|
+
import { Observable, BehaviorSubject } from 'rxjs';
|
|
6
6
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
7
7
|
import { CdkTree } from '@angular/cdk/tree';
|
|
8
8
|
import { DataSource } from '@angular/cdk/collections';
|
|
9
|
-
import { BottomDrawerRef,
|
|
9
|
+
import { BottomDrawerRef, ExtensionPointForPlugins, PluginsResolveService, GenericHookType, GenericHookOptions } from '@c8y/ngx-components';
|
|
10
10
|
import { Router } from '@angular/router';
|
|
11
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
12
|
+
import { AssetSelectionChangeEvent } from '@c8y/ngx-components/assets-navigator';
|
|
11
13
|
|
|
12
14
|
interface ComputedPropertyContextMap {
|
|
13
15
|
device: {
|
|
@@ -94,9 +96,10 @@ type AssetPropertyListConfig = {
|
|
|
94
96
|
* The mode of the asset property list describing how the properties are selected.
|
|
95
97
|
* - `single` - only one property can be selected at a time
|
|
96
98
|
* - `multi` - multiple properties can be selected at a time
|
|
99
|
+
* - `plus` - multiple properties can be selected using add/remove buttons
|
|
97
100
|
* - `none` - no properties can be selected
|
|
98
101
|
*/
|
|
99
|
-
selectMode?: 'single' | 'multi' | 'none';
|
|
102
|
+
selectMode?: 'single' | 'multi' | 'plus' | 'none';
|
|
100
103
|
/**
|
|
101
104
|
* The mode of the asset property list describing how the properties are expanded.
|
|
102
105
|
* - `expandedByDefault` - all properties are expanded by default and collapse button is shown
|
|
@@ -141,7 +144,6 @@ type AssetPropertyListConfig = {
|
|
|
141
144
|
allowDragAndDrop?: boolean;
|
|
142
145
|
/**
|
|
143
146
|
* Tabs to hide in the custom properties drawer.
|
|
144
|
-
* At most one tab can be hidden at a time.
|
|
145
147
|
*/
|
|
146
148
|
hiddenTabs?: HiddenTabs;
|
|
147
149
|
};
|
|
@@ -215,14 +217,9 @@ interface NestedPropertyFields extends BaseProperty {
|
|
|
215
217
|
}
|
|
216
218
|
type AssetPropertyType = BaseProperty | NestedPropertyFields;
|
|
217
219
|
type HiddenTabs = {
|
|
218
|
-
regular
|
|
219
|
-
computed?:
|
|
220
|
-
|
|
221
|
-
computed: true;
|
|
222
|
-
regular?: false;
|
|
223
|
-
} | {
|
|
224
|
-
regular?: false;
|
|
225
|
-
computed?: false;
|
|
220
|
+
regular?: boolean;
|
|
221
|
+
computed?: boolean;
|
|
222
|
+
asset?: boolean;
|
|
226
223
|
};
|
|
227
224
|
type AssetPropertyTab = keyof Required<HiddenTabs>;
|
|
228
225
|
|
|
@@ -537,13 +534,13 @@ declare class AssetPropertyListComponent implements OnInit, OnChanges, OnDestroy
|
|
|
537
534
|
* @param selected True if the node is selected.
|
|
538
535
|
* @param node The node to select.
|
|
539
536
|
*/
|
|
540
|
-
onSelectSingle(selected: boolean, node: AssetPropertyFlatNode): void;
|
|
537
|
+
onSelectSingle(selected: boolean, node: AssetPropertyFlatNode, emit?: boolean): void;
|
|
541
538
|
/**
|
|
542
539
|
* Handles multi-selection mode.
|
|
543
540
|
* @param selected True if the node is selected.
|
|
544
541
|
* @param node The node to select.
|
|
545
542
|
*/
|
|
546
|
-
onSelectMulti(selected: boolean, node: AssetPropertyFlatNode): void;
|
|
543
|
+
onSelectMulti(selected: boolean, node: AssetPropertyFlatNode, emit?: boolean): void;
|
|
547
544
|
/**
|
|
548
545
|
* Initiates a filter operation.
|
|
549
546
|
*/
|
|
@@ -653,6 +650,7 @@ declare class AssetPropertyListComponent implements OnInit, OnChanges, OnDestroy
|
|
|
653
650
|
|
|
654
651
|
/**
|
|
655
652
|
* Represents a drawer component for selecting asset properties.
|
|
653
|
+
* This is a thin wrapper around AssetPropertySelectorComponent that handles drawer-specific logic.
|
|
656
654
|
*/
|
|
657
655
|
declare class AssetPropertySelectorDrawerComponent {
|
|
658
656
|
/**
|
|
@@ -662,7 +660,7 @@ declare class AssetPropertySelectorDrawerComponent {
|
|
|
662
660
|
/**
|
|
663
661
|
* Managed object representing the asset.
|
|
664
662
|
*/
|
|
665
|
-
|
|
663
|
+
contextAsset: IManagedObject;
|
|
666
664
|
/**
|
|
667
665
|
* Configuration for the asset property list.
|
|
668
666
|
*/
|
|
@@ -672,17 +670,25 @@ declare class AssetPropertySelectorDrawerComponent {
|
|
|
672
670
|
*/
|
|
673
671
|
extraProperties: AssetPropertyType[];
|
|
674
672
|
/**
|
|
675
|
-
*
|
|
673
|
+
* List of selected properties.
|
|
676
674
|
*/
|
|
677
|
-
|
|
675
|
+
selectedProperties: AssetPropertyType[];
|
|
678
676
|
/**
|
|
679
|
-
*
|
|
677
|
+
* Flag to allow changing the context (asset) within the drawer.
|
|
680
678
|
*/
|
|
681
|
-
|
|
679
|
+
allowChangingContext: boolean;
|
|
682
680
|
/**
|
|
683
|
-
*
|
|
681
|
+
* Flag to hide the selection
|
|
682
|
+
* */
|
|
683
|
+
hideSelection: boolean;
|
|
684
|
+
/**
|
|
685
|
+
* Flag to allow selecting properties from multiple assets (if context change is allowed).
|
|
684
686
|
*/
|
|
685
|
-
|
|
687
|
+
allowPropertiesFromMultipleAssets: boolean;
|
|
688
|
+
/**
|
|
689
|
+
* Flag to enable search functionality for asset properties.
|
|
690
|
+
*/
|
|
691
|
+
allowSearch: boolean;
|
|
686
692
|
/**
|
|
687
693
|
* Reference to the bottom drawer.
|
|
688
694
|
*/
|
|
@@ -699,11 +705,12 @@ declare class AssetPropertySelectorDrawerComponent {
|
|
|
699
705
|
* Internal cancel handler.
|
|
700
706
|
*/
|
|
701
707
|
private _cancel;
|
|
708
|
+
ngOnInit(): void;
|
|
702
709
|
/**
|
|
703
|
-
*
|
|
704
|
-
* @param
|
|
710
|
+
* Handles selection changes from the selector component.
|
|
711
|
+
* @param selection The selected properties.
|
|
705
712
|
*/
|
|
706
|
-
|
|
713
|
+
selectionChange(selection: AssetPropertyType[]): void;
|
|
707
714
|
/**
|
|
708
715
|
* Saves the selected properties and closes the drawer.
|
|
709
716
|
*/
|
|
@@ -714,11 +721,11 @@ declare class AssetPropertySelectorDrawerComponent {
|
|
|
714
721
|
onCancel(): void;
|
|
715
722
|
/**
|
|
716
723
|
* Checks if the select button should be disabled.
|
|
717
|
-
* @returns True if
|
|
724
|
+
* @returns True if no active properties are selected.
|
|
718
725
|
*/
|
|
719
726
|
selectIsDisabled(): boolean;
|
|
720
727
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssetPropertySelectorDrawerComponent, never>;
|
|
721
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AssetPropertySelectorDrawerComponent, "c8y-asset-property-selector-drawer-component", never, { "title": { "alias": "title"; "required": false; }; }, {
|
|
728
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AssetPropertySelectorDrawerComponent, "c8y-asset-property-selector-drawer-component", never, { "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
|
|
722
729
|
}
|
|
723
730
|
|
|
724
731
|
declare const HOOK_COMPUTED_PROPERTY: InjectionToken<ComputedPropertyDefinition[]>;
|
|
@@ -742,6 +749,218 @@ declare class ComputedPropertiesService extends ExtensionPointForPlugins<Compute
|
|
|
742
749
|
static ɵprov: i0.ɵɵInjectableDeclaration<ComputedPropertiesService>;
|
|
743
750
|
}
|
|
744
751
|
|
|
745
|
-
|
|
752
|
+
/**
|
|
753
|
+
* Represents a reusable component for displaying and managing library properties (regular and computed).
|
|
754
|
+
* This component handles the search, tabs, and property list display logic.
|
|
755
|
+
*/
|
|
756
|
+
declare class AssetPropertyTabsComponent implements OnInit, OnChanges, OnDestroy {
|
|
757
|
+
/**
|
|
758
|
+
* The asset context for loading properties.
|
|
759
|
+
*/
|
|
760
|
+
asset: IManagedObject;
|
|
761
|
+
/**
|
|
762
|
+
* Configuration for the asset property list.
|
|
763
|
+
*/
|
|
764
|
+
config: AssetPropertyListConfig;
|
|
765
|
+
/**
|
|
766
|
+
* Currently selected properties to be highlighted in the list.
|
|
767
|
+
*/
|
|
768
|
+
selectedProperties: AssetPropertyType[];
|
|
769
|
+
/**
|
|
770
|
+
* Controls which tabs are hidden.
|
|
771
|
+
*/
|
|
772
|
+
hiddenTabs: HiddenTabs;
|
|
773
|
+
/**
|
|
774
|
+
* The name of the tabs outlet.
|
|
775
|
+
*/
|
|
776
|
+
tabsOutletName: string;
|
|
777
|
+
/**
|
|
778
|
+
* Whether to show the search input.
|
|
779
|
+
*/
|
|
780
|
+
showSearch: boolean;
|
|
781
|
+
/**
|
|
782
|
+
* Emits when the selected properties change.
|
|
783
|
+
*/
|
|
784
|
+
selectedPropertiesChange: EventEmitter<AssetPropertyType[]>;
|
|
785
|
+
tabNames: Record<AssetPropertyTab, string>;
|
|
786
|
+
paging: Paging<IManagedObject>;
|
|
787
|
+
inputText: string;
|
|
788
|
+
selectedTab: AssetPropertyTab;
|
|
789
|
+
assetProperties: AssetPropertyType[];
|
|
790
|
+
regularProperties: AssetPropertyType[];
|
|
791
|
+
computedProperties: AssetPropertyType[];
|
|
792
|
+
displayedProperties: AssetPropertyType[];
|
|
793
|
+
assetCount: number;
|
|
794
|
+
regularCount: number;
|
|
795
|
+
computedCount: number;
|
|
796
|
+
allComputedProperties: AssetPropertyType[];
|
|
797
|
+
get showAsset(): boolean;
|
|
798
|
+
get showRegular(): boolean;
|
|
799
|
+
get showComputed(): boolean;
|
|
800
|
+
get showTabBar(): boolean;
|
|
801
|
+
private searchSubject$;
|
|
802
|
+
private destroy$;
|
|
803
|
+
private readonly assetPropertiesService;
|
|
804
|
+
private readonly computedPropertiesService;
|
|
805
|
+
private selectedAssetProperties;
|
|
806
|
+
private selectedRegularProperties;
|
|
807
|
+
private selectedComputedProperties;
|
|
808
|
+
ngOnInit(): Promise<void>;
|
|
809
|
+
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
810
|
+
ngOnDestroy(): void;
|
|
811
|
+
/**
|
|
812
|
+
* Updates the selected properties.
|
|
813
|
+
* @param properties The selected properties.
|
|
814
|
+
*/
|
|
815
|
+
onSelectedProperties(properties: AssetPropertyType[]): void;
|
|
816
|
+
onTabChange(tabName: keyof typeof this.tabNames): void;
|
|
817
|
+
onSearch(): void;
|
|
818
|
+
clearSearch(): void;
|
|
819
|
+
loadMore(): Promise<void>;
|
|
820
|
+
private loadComputedProperties;
|
|
821
|
+
private loadAssetProperties;
|
|
822
|
+
private updateProperties;
|
|
823
|
+
private updateDisplayedProperties;
|
|
824
|
+
/**
|
|
825
|
+
* Updates the config to show only the current tab's selected properties.
|
|
826
|
+
*/
|
|
827
|
+
private updateConfigWithCurrentTabSelections;
|
|
828
|
+
/**
|
|
829
|
+
* Categorizes incoming selectedProperties by matching them against loaded properties.
|
|
830
|
+
*/
|
|
831
|
+
private categorizeSelectedProperties;
|
|
832
|
+
/**
|
|
833
|
+
* Categorizes and flattens hierarchical properties.
|
|
834
|
+
* @param properties The properties to categorize.
|
|
835
|
+
* @returns The flattened list of properties.
|
|
836
|
+
*/
|
|
837
|
+
private categorizeAndFlattenHierarchicalProperties;
|
|
838
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AssetPropertyTabsComponent, never>;
|
|
839
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AssetPropertyTabsComponent, "c8y-asset-property-tabs", never, { "asset": { "alias": "asset"; "required": false; }; "config": { "alias": "config"; "required": false; }; "selectedProperties": { "alias": "selectedProperties"; "required": false; }; "hiddenTabs": { "alias": "hiddenTabs"; "required": false; }; "tabsOutletName": { "alias": "tabsOutletName"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; }, { "selectedPropertiesChange": "selectedPropertiesChange"; }, never, never, true, never>;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Represents a component for selecting asset properties.
|
|
844
|
+
* This component handles all selection logic and can be used standalone or within drawer/modal wrappers.
|
|
845
|
+
*/
|
|
846
|
+
declare class AssetPropertySelectorComponent implements OnInit, ControlValueAccessor {
|
|
847
|
+
/**
|
|
848
|
+
* Managed object representing the initial/context asset.
|
|
849
|
+
*/
|
|
850
|
+
contextAsset: IManagedObject;
|
|
851
|
+
/**
|
|
852
|
+
* Configuration for the asset property list.
|
|
853
|
+
*/
|
|
854
|
+
config: AssetPropertyListConfig;
|
|
855
|
+
/**
|
|
856
|
+
* Extra properties to be displayed in the list.
|
|
857
|
+
*/
|
|
858
|
+
extraProperties: AssetPropertyType[];
|
|
859
|
+
/**
|
|
860
|
+
* Flag to allow changing the context (asset) within the selector.
|
|
861
|
+
*/
|
|
862
|
+
allowChangingContext: boolean;
|
|
863
|
+
/**
|
|
864
|
+
* Flag to allow properties from multiple assets to be selected at once.
|
|
865
|
+
*/
|
|
866
|
+
allowPropertiesFromMultipleAssets: boolean;
|
|
867
|
+
/**
|
|
868
|
+
* Flag to hide the selection panel.
|
|
869
|
+
*/
|
|
870
|
+
hideSelection: boolean;
|
|
871
|
+
/**
|
|
872
|
+
* Flag to allow search in asset selector.
|
|
873
|
+
*/
|
|
874
|
+
allowSearch: boolean;
|
|
875
|
+
/**
|
|
876
|
+
* List of selected properties.
|
|
877
|
+
*/
|
|
878
|
+
selectedProperties: AssetPropertyType[];
|
|
879
|
+
/**
|
|
880
|
+
* Current asset selection as observable.
|
|
881
|
+
*/
|
|
882
|
+
assetSelection: BehaviorSubject<IManagedObject>;
|
|
883
|
+
hiddenTabs: HiddenTabs;
|
|
884
|
+
private touched;
|
|
885
|
+
private onChange;
|
|
886
|
+
private onTouched;
|
|
887
|
+
private modalService;
|
|
888
|
+
private computedPropertiesService;
|
|
889
|
+
private assetPropertiesService;
|
|
890
|
+
ngOnInit(): void;
|
|
891
|
+
/**
|
|
892
|
+
* ControlValueAccessor implementation - write value from form model.
|
|
893
|
+
*/
|
|
894
|
+
writeValue(obj: AssetPropertyType[]): void;
|
|
895
|
+
/**
|
|
896
|
+
* ControlValueAccessor implementation - register onChange callback.
|
|
897
|
+
*/
|
|
898
|
+
registerOnChange(fn: (properties: AssetPropertyType[]) => void): void;
|
|
899
|
+
/**
|
|
900
|
+
* ControlValueAccessor implementation - register onTouched callback.
|
|
901
|
+
*/
|
|
902
|
+
registerOnTouched(fn: () => void): void;
|
|
903
|
+
/**
|
|
904
|
+
* Updates the selected properties.
|
|
905
|
+
* @param properties The selected properties.
|
|
906
|
+
*/
|
|
907
|
+
onSelectedProperties(properties: AssetPropertyType[]): Promise<void>;
|
|
908
|
+
/**
|
|
909
|
+
* Handles asset selection changes.
|
|
910
|
+
* @param evt Asset selection change event.
|
|
911
|
+
*/
|
|
912
|
+
selectionChanged(evt: AssetSelectionChangeEvent): void;
|
|
913
|
+
/**
|
|
914
|
+
* Removes a property from the selection.
|
|
915
|
+
* @param property The property to remove.
|
|
916
|
+
*/
|
|
917
|
+
propertyRemoved(property: AssetPropertyType): void;
|
|
918
|
+
/**
|
|
919
|
+
* Edits (reconfigures) a computed property.
|
|
920
|
+
* @param property The property to edit.
|
|
921
|
+
*/
|
|
922
|
+
editProperty(property: AssetPropertyType): Promise<void>;
|
|
923
|
+
/**
|
|
924
|
+
* Selects an asset and updates the selection.
|
|
925
|
+
* @param asset The asset to select.
|
|
926
|
+
*/
|
|
927
|
+
private selectAsset;
|
|
928
|
+
/**
|
|
929
|
+
* Clears all selected properties.
|
|
930
|
+
*/
|
|
931
|
+
private clearSelection;
|
|
932
|
+
/**
|
|
933
|
+
* Emits the current selection to the form model.
|
|
934
|
+
*/
|
|
935
|
+
private emitCurrentSelection;
|
|
936
|
+
/**
|
|
937
|
+
* Marks the control as touched.
|
|
938
|
+
*/
|
|
939
|
+
private markAsTouched;
|
|
940
|
+
/**
|
|
941
|
+
* Handles configuration for newly added computed properties.
|
|
942
|
+
* @param properties The selected properties.
|
|
943
|
+
* @returns The properties with configured ones included.
|
|
944
|
+
*/
|
|
945
|
+
private handleComputedPropertiesConfiguration;
|
|
946
|
+
/**
|
|
947
|
+
* Displays the configuration modal for multiple computed properties and updates their configurations.
|
|
948
|
+
* @param properties Properties to configure.
|
|
949
|
+
* @param definitions Computed property definitions including config components.
|
|
950
|
+
* @returns Promise resolving to array of configurations.
|
|
951
|
+
*/
|
|
952
|
+
private configureMultipleProperties;
|
|
953
|
+
/**
|
|
954
|
+
* Displays the configuration modal for a single computed property and updates its configuration.
|
|
955
|
+
* @param property Property to configure.
|
|
956
|
+
* @param definition Computed property definition including config component.
|
|
957
|
+
* @returns true if the property was configured, false if cancelled.
|
|
958
|
+
*/
|
|
959
|
+
private configureProperty;
|
|
960
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AssetPropertySelectorComponent, never>;
|
|
961
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AssetPropertySelectorComponent, "c8y-asset-property-selector", never, { "contextAsset": { "alias": "contextAsset"; "required": false; }; "config": { "alias": "config"; "required": false; }; "extraProperties": { "alias": "extraProperties"; "required": false; }; "allowChangingContext": { "alias": "allowChangingContext"; "required": false; }; "allowPropertiesFromMultipleAssets": { "alias": "allowPropertiesFromMultipleAssets"; "required": false; }; "hideSelection": { "alias": "hideSelection"; "required": false; }; "allowSearch": { "alias": "allowSearch"; "required": false; }; }, {}, never, never, true, never>;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
export { AssetPropertiesService, AssetPropertyActionDirective, AssetPropertyListComponent, AssetPropertySelectorComponent, AssetPropertySelectorDrawerComponent, AssetPropertyTabsComponent, ComputedPropertiesService, CustomPropertiesDrawerService, HOOK_COMPUTED_PROPERTY, RESULT_TYPES, defaultAssetProperties, defaultAssetPropertyListConfig, hookComputedProperty };
|
|
746
965
|
export type { AssetPropertyListConfig, AssetPropertyTab, AssetPropertyType, BaseProperty, C8yJsonSchema, C8yJsonSchemaProperty, C8yPropertyType, ComputedPropertyComponent, ComputedPropertyContextType, ComputedPropertyContextValue, ComputedPropertyDefinition, HiddenTabs, NestedPropertyFields, ValueCallbackMetadata };
|
|
747
966
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../asset-properties/asset-properties.model.ts","../../asset-properties/asset-properties.service.ts","../../asset-properties/custom-properties-drawer.service.ts","../../asset-properties/asset-property-list/tree-data-source.ts","../../asset-properties/asset-property-list/asset-property-action.directive.ts","../../asset-properties/asset-property-list/asset-property-list.component.ts","../../asset-properties/asset-property-selector-drawer/asset-property-selector-drawer.component.ts","../../asset-properties/computed-properties.service.ts"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../asset-properties/asset-properties.model.ts","../../asset-properties/asset-properties.service.ts","../../asset-properties/custom-properties-drawer.service.ts","../../asset-properties/asset-property-list/tree-data-source.ts","../../asset-properties/asset-property-list/asset-property-action.directive.ts","../../asset-properties/asset-property-list/asset-property-list.component.ts","../../asset-properties/asset-property-selector-drawer/asset-property-selector-drawer.component.ts","../../asset-properties/computed-properties.service.ts","../../asset-properties/asset-property-tabs/asset-property-tabs.component.ts","../../asset-properties/asset-property-selector/asset-property-selector.component.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;AAKA;AACE;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACD;AAEK;AACJ;;;;AAIG;AACH;AACA;;;;;AAKG;AACH;;AAGI;AACA;AAGN;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AEG;;AAEH;;AAEG;AACM;AACT;;AAEG;AACM;AAET;;AAEG;AACO;AAEV;AAKA;AACA;;;;;;AAMA;AACA;AACA;;;;;;;;AAsBA;AACA;;;;;;;AAwDA;;;AAGG;AACH;;;AA2BA;;;;;AAsGA;AAWA;;AAEG;AACH;AAcA;;AAEG;AACH;AAkDA;;;;AAIG;AACH;;;AAOD;;ACnYD;;;AAGG;AACH;AA2BE;;AAEG;;AAEH;;AAEG;;AAEH;;AAEG;;AAEH;;AAEG;AACM;AACT;;AAEG;AACM;AACT;;AAEG;AACM;AACT;;AAEG;AACM;AAET;;AAEG;;AAEH;;AAEG;AACH;;;;;;;;AAWA;AAUA;;AAEG;AACH;AAIA;;AAEG;;AAKH;;AAEG;AACH;AAIA;;;AAGG;;AAWH;;;AAGG;AACH;AASA;;;AAGG;AACH;AAMA;;;AAGG;;AAaH;;;AAGG;AACH;AAOA;;AAEG;AACH;AAKA;;AAEG;AACH;AAMA;;AAEG;AACH;AAOA;;;;AAIG;;AAoFH;;;;;AAKG;AACH;AAmBA;;;;;AAKG;;;;AAaJ;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _c8y_ngx_components from '@c8y/ngx-components';
|
|
2
|
-
import { TabsService, ExtensionFactory, Tab, ViewContext, ContextData, DynamicComponentDefinition, Route,
|
|
2
|
+
import { TabsService, ExtensionFactory, Tab, ViewContext, ContextData, Widget, DynamicComponentDefinition, Route, WidgetSettings, WidgetDisplaySettings, TabWithTemplate, ModalService, NavigatorService, Permissions, AlertService, DynamicComponentService, GroupService, OptionsService, AppStateService, ContextRouteService, GainsightService, BreadcrumbItem, WidgetsDashboardComponent, DashboardCopyPermission, BottomDrawerService, ActionBarService, DashboardChildChange, DashboardChange, RevertChangeType, WidgetChange, GenericHookType, GenericHookOptions, ExtensionPointForPlugins, PluginsResolveService, DynamicComponentComponent, WIDGET_CONFIGURATION_GRID_SIZE, BottomDrawerRef, ActionBarFactory, PreviewService } from '@c8y/ngx-components';
|
|
3
3
|
import * as i8 from '@angular/router';
|
|
4
4
|
import { Router, ActivatedRoute, ActivatedRouteSnapshot } from '@angular/router';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
@@ -2,9 +2,9 @@ import { MeasurementService, IFetchResponse, IMeasurementFilter, IMeasurement, I
|
|
|
2
2
|
import { AggregationOption, AlertService, AggregationOptionStatus, AggregationService, GainsightService, ModalLabels } from '@c8y/ngx-components';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import {
|
|
5
|
+
import { OnInit, OnDestroy, EventEmitter, InjectionToken } from '@angular/core';
|
|
6
6
|
import { SupportedIconsSuggestions } from '@c8y/ngx-components/icon-selector/icons';
|
|
7
|
-
import {
|
|
7
|
+
import { FormBuilder, ValidatorFn } from '@angular/forms';
|
|
8
8
|
import * as packages_client_lib from 'packages/client/lib';
|
|
9
9
|
import { AggregationOptionStatus as AggregationOptionStatus$1, AggregationOption as AggregationOption$1 } from '@c8y/ngx-components/global-context';
|
|
10
10
|
import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../device-enrolment/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGA,cAAA,wBAAA,GAAqC,aAAA,CAAA,aAAA,GAAA,aAAA,CAAA,aAAA,GAAA,aAAA,CAAA,gBAAA;;;;"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { AfterViewInit, Renderer2 } from '@angular/core';
|
|
3
|
+
import { C8yStepper, ClipboardService, GainsightService } from '@c8y/ngx-components';
|
|
4
|
+
import { BsModalRef } from 'ngx-bootstrap/modal';
|
|
5
|
+
import { CdkStep } from '@angular/cdk/stepper';
|
|
6
|
+
|
|
7
|
+
declare class DeviceEnrolmentService {
|
|
8
|
+
private trustedCertificateService;
|
|
9
|
+
private deviceRegistrationService;
|
|
10
|
+
private featureCacheService;
|
|
11
|
+
getRegistrationCode(name: string): Promise<{
|
|
12
|
+
error: "Device ID already exists. Please choose a different name.";
|
|
13
|
+
statusCode: any;
|
|
14
|
+
errorType: string;
|
|
15
|
+
script?: undefined;
|
|
16
|
+
docker?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
error: "Device ID cannot contain whitespace, slashes or any of (+$:). Please choose a different name.";
|
|
19
|
+
statusCode: any;
|
|
20
|
+
errorType: string;
|
|
21
|
+
script?: undefined;
|
|
22
|
+
docker?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
script: string;
|
|
25
|
+
docker: string;
|
|
26
|
+
error?: undefined;
|
|
27
|
+
statusCode?: undefined;
|
|
28
|
+
errorType?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
error: "Certificate authority not available.";
|
|
31
|
+
statusCode?: undefined;
|
|
32
|
+
errorType?: undefined;
|
|
33
|
+
script?: undefined;
|
|
34
|
+
docker?: undefined;
|
|
35
|
+
}>;
|
|
36
|
+
generateSecurePassword(length?: number): string;
|
|
37
|
+
showQuicklink(): Promise<boolean>;
|
|
38
|
+
caAvailableAndConfigured(): Promise<boolean>;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeviceEnrolmentService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DeviceEnrolmentService>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare class DeviceEnrolmentModalComponent implements AfterViewInit {
|
|
44
|
+
private bsModalRef;
|
|
45
|
+
private renderer;
|
|
46
|
+
private deviceEnrolmentService;
|
|
47
|
+
private clipboardService;
|
|
48
|
+
private gainsightService;
|
|
49
|
+
stepper: C8yStepper;
|
|
50
|
+
success: boolean | undefined;
|
|
51
|
+
deviceId: string;
|
|
52
|
+
waitOrRetry: string;
|
|
53
|
+
readonly connectSmartphoneTitle: string;
|
|
54
|
+
readonly enterDeviceName: string;
|
|
55
|
+
readonly generateCodeTitle: string;
|
|
56
|
+
readonly resultTitle: string;
|
|
57
|
+
readonly gainsightStepName: string[];
|
|
58
|
+
private destroyRef;
|
|
59
|
+
private interAppService;
|
|
60
|
+
codeDevice: string;
|
|
61
|
+
codeContainer: string;
|
|
62
|
+
errorMessage: string;
|
|
63
|
+
externalId: string;
|
|
64
|
+
isCodeRequestPending: boolean;
|
|
65
|
+
isCAAvailable: Promise<boolean>;
|
|
66
|
+
hasDeviceIdError: boolean;
|
|
67
|
+
constructor(bsModalRef: BsModalRef, renderer: Renderer2, deviceEnrolmentService: DeviceEnrolmentService, clipboardService: ClipboardService, gainsightService: GainsightService);
|
|
68
|
+
ngAfterViewInit(): void;
|
|
69
|
+
onStepperSelectionChange(stepper: Partial<C8yStepper>): void;
|
|
70
|
+
onComplete(): void;
|
|
71
|
+
generateDeviceId(): string;
|
|
72
|
+
back(): void;
|
|
73
|
+
next($event: {
|
|
74
|
+
stepper: C8yStepper;
|
|
75
|
+
step: CdkStep;
|
|
76
|
+
}): void;
|
|
77
|
+
cancel(): void;
|
|
78
|
+
close(): void;
|
|
79
|
+
retry(): void;
|
|
80
|
+
generateCode(): Promise<void>;
|
|
81
|
+
copyIt(text: string): void;
|
|
82
|
+
manageCertificates(): void;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeviceEnrolmentModalComponent, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DeviceEnrolmentModalComponent, "c8y-device-enrolment", never, {}, {}, never, never, true, never>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { DeviceEnrolmentModalComponent };
|
|
88
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../device-enrolment/modal/device-enrolment.service.ts","../../../device-enrolment/modal/device-enrolment-modal.component.ts"],"sourcesContent":[null,null],"names":[],"mappings":";;;;;;AAKA,cAAA,sBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDE;;AAyBM,gCAAA,OAAA;;;AAmBP;;ACpFD,cAAA,6BAAA,YAAA,aAAA;AAwCI;AACA;AACA;AACA;AACA;;AAxBF;;;AAGA;AACA;AACA;AACA;;;;AAKA;AACA;AACA;;AAEA;AACA,mBAAA,OAAA;AACA;AAGU,4BAAA,UAAA,YAAA,SAAA,0BAAA,sBAAA,oBAAA,gBAAA,oBAAA,gBAAA;;AAoBV,sCAAA,OAAA,CAAA,UAAA;;;;;;;AA0BmD;;;;;AAiEnD;;;;AAUD;;;;"}
|