@c8y/ngx-components 1021.2.0 → 1021.3.1
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/alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.component.d.ts +6 -3
- package/alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.component.d.ts.map +1 -1
- package/alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.service.d.ts +9 -0
- package/alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.service.d.ts.map +1 -0
- package/alarm-event-selector/custom-alarm-event-form/custom-alarm-event-form.component.d.ts +2 -1
- package/alarm-event-selector/custom-alarm-event-form/custom-alarm-event-form.component.d.ts.map +1 -1
- package/auth-configuration/sso-configuration/template-parts/basic-configuration.component.d.ts +1 -0
- package/auth-configuration/sso-configuration/template-parts/basic-configuration.component.d.ts.map +1 -1
- package/context-dashboard/context-dashboard.service.d.ts.map +1 -1
- package/core/common/get-group-icon.pipe.d.ts.map +1 -1
- package/core/common/global-config.service.d.ts +1 -1
- package/core/common/global-config.service.d.ts.map +1 -1
- package/device-profile/device-profile-list.component.d.ts +31 -14
- package/device-profile/device-profile-list.component.d.ts.map +1 -1
- package/esm2022/alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.component.mjs +24 -10
- package/esm2022/alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.service.mjs +20 -0
- package/esm2022/alarm-event-selector/alarm-event-selector-list-item/alarm-event-selector-list-item.component.mjs +1 -1
- package/esm2022/alarm-event-selector/alarm-event-selector.component.mjs +3 -3
- package/esm2022/alarm-event-selector/custom-alarm-event-form/custom-alarm-event-form.component.mjs +6 -3
- package/esm2022/auth-configuration/sso-configuration/template-parts/basic-configuration.component.mjs +5 -3
- package/esm2022/context-dashboard/context-dashboard.service.mjs +3 -2
- package/esm2022/core/common/get-group-icon.pipe.mjs +4 -1
- package/esm2022/core/common/global-config.service.mjs +3 -2
- package/esm2022/device-profile/device-profile-list.component.mjs +102 -27
- package/esm2022/repository/shared/repository.model.mjs +2 -1
- package/fesm2022/c8y-ngx-components-alarm-event-selector.mjs +46 -13
- package/fesm2022/c8y-ngx-components-alarm-event-selector.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-auth-configuration.mjs +4 -2
- package/fesm2022/c8y-ngx-components-auth-configuration.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs +2 -1
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-profile.mjs +110 -35
- package/fesm2022/c8y-ngx-components-device-profile.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-shared.mjs +1 -0
- package/fesm2022/c8y-ngx-components-repository-shared.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +5 -1
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/locales.pot +17 -2
- package/package.json +1 -1
- package/repository/shared/repository.model.d.ts +2 -1
- package/repository/shared/repository.model.d.ts.map +1 -1
- package/repository/shared/repository.service.d.ts +1 -1
package/alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.component.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, FormBuilder, FormGroup, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import {
|
|
3
|
+
import { AlarmEventAttributesFormService } from './alarm-event-attributes-form.service';
|
|
4
|
+
import { AlarmOrEvent, OmitSelectorProperties, TimelineType } from '../alarm-event-selector.model';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class AlarmEventAttributesFormComponent implements ControlValueAccessor, Validator, OnInit {
|
|
6
7
|
private formBuilder;
|
|
8
|
+
private alarmEventAttributesFormService;
|
|
7
9
|
timelineType: TimelineType;
|
|
8
10
|
omitProperties: OmitSelectorProperties;
|
|
11
|
+
selectedItems: AlarmOrEvent[];
|
|
9
12
|
formGroup: FormGroup;
|
|
10
|
-
constructor(formBuilder: FormBuilder);
|
|
13
|
+
constructor(formBuilder: FormBuilder, alarmEventAttributesFormService: AlarmEventAttributesFormService);
|
|
11
14
|
ngOnInit(): void;
|
|
12
15
|
validate(_control: AbstractControl): ValidationErrors;
|
|
13
16
|
writeValue(obj: any): void;
|
|
@@ -15,6 +18,6 @@ export declare class AlarmEventAttributesFormComponent implements ControlValueAc
|
|
|
15
18
|
registerOnTouched(fn: any): void;
|
|
16
19
|
setDisabledState(isDisabled: boolean): void;
|
|
17
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlarmEventAttributesFormComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlarmEventAttributesFormComponent, "c8y-alarm-event-attributes-form", never, { "timelineType": { "alias": "timelineType"; "required": false; }; "omitProperties": { "alias": "omitProperties"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlarmEventAttributesFormComponent, "c8y-alarm-event-attributes-form", never, { "timelineType": { "alias": "timelineType"; "required": false; }; "omitProperties": { "alias": "omitProperties"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
22
|
}
|
|
20
23
|
//# sourceMappingURL=alarm-event-attributes-form.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alarm-event-attributes-form.component.d.ts","sourceRoot":"","sources":["../../../alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,MAAM,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,WAAW,EAEX,SAAS,EAGT,gBAAgB,EAChB,SAAS,EAEV,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;;
|
|
1
|
+
{"version":3,"file":"alarm-event-attributes-form.component.d.ts","sourceRoot":"","sources":["../../../alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,MAAM,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,WAAW,EAEX,SAAS,EAGT,gBAAgB,EAChB,SAAS,EAEV,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;;AAEnG,qBAgBa,iCAAkC,YAAW,oBAAoB,EAAE,SAAS,EAAE,MAAM;IAO7F,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,+BAA+B;IAPhC,YAAY,EAAE,YAAY,CAAC;IAC3B,cAAc,EAAE,sBAAsB,CAAM;IAC5C,aAAa,EAAE,YAAY,EAAE,CAAM;IAC5C,SAAS,EAAE,SAAS,CAAC;gBAGX,WAAW,EAAE,WAAW,EACxB,+BAA+B,EAAE,+BAA+B;IAG1E,QAAQ;IAmBR,QAAQ,CAAC,QAAQ,EAAE,eAAe,GAAG,gBAAgB;IAIrD,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IAI1B,gBAAgB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAI/B,iBAAiB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAIhC,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;yCA9ChC,iCAAiC;2CAAjC,iCAAiC;CAiD7C"}
|
package/alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.service.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
|
+
import { AlarmOrEvent } from '../alarm-event-selector.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AlarmEventAttributesFormService {
|
|
5
|
+
duplicateTypeValidator(selectedItems: AlarmOrEvent[]): (control: AbstractControl) => ValidationErrors | null;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlarmEventAttributesFormService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AlarmEventAttributesFormService>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=alarm-event-attributes-form.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alarm-event-attributes-form.service.d.ts","sourceRoot":"","sources":["../../../alarm-event-selector/alarm-event-attributes-form/alarm-event-attributes-form.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;;AAE7D,qBACa,+BAA+B;IAC1C,sBAAsB,CAAC,aAAa,EAAE,YAAY,EAAE,aACjC,eAAe,KAAG,gBAAgB,GAAG,IAAI;yCAFjD,+BAA+B;6CAA/B,+BAA+B;CAY3C"}
|
|
@@ -9,6 +9,7 @@ export declare class CustomAlarmEventFormComponent implements OnInit, OnDestroy
|
|
|
9
9
|
timelineType: TimelineType;
|
|
10
10
|
target: IIdentified;
|
|
11
11
|
omitProperties: OmitSelectorProperties;
|
|
12
|
+
selectedItems: AlarmOrEvent[];
|
|
12
13
|
defaultColor: string;
|
|
13
14
|
added: EventEmitter<AlarmOrEvent>;
|
|
14
15
|
cancel: EventEmitter<void>;
|
|
@@ -21,6 +22,6 @@ export declare class CustomAlarmEventFormComponent implements OnInit, OnDestroy
|
|
|
21
22
|
add(): void;
|
|
22
23
|
private transformFormValue;
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomAlarmEventFormComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomAlarmEventFormComponent, "c8y-custom-alarm-event-form", never, { "timelineType": { "alias": "timelineType"; "required": false; }; "target": { "alias": "target"; "required": false; }; "omitProperties": { "alias": "omitProperties"; "required": false; }; "defaultColor": { "alias": "defaultColor"; "required": false; }; }, { "added": "added"; "cancel": "cancel"; }, never, never, false, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomAlarmEventFormComponent, "c8y-custom-alarm-event-form", never, { "timelineType": { "alias": "timelineType"; "required": false; }; "target": { "alias": "target"; "required": false; }; "omitProperties": { "alias": "omitProperties"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "defaultColor": { "alias": "defaultColor"; "required": false; }; }, { "added": "added"; "cancel": "cancel"; }, never, never, false, never>;
|
|
25
26
|
}
|
|
26
27
|
//# sourceMappingURL=custom-alarm-event-form.component.d.ts.map
|
package/alarm-event-selector/custom-alarm-event-form/custom-alarm-event-form.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-alarm-event-form.component.d.ts","sourceRoot":"","sources":["../../../alarm-event-selector/custom-alarm-event-form/custom-alarm-event-form.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAEnG,OAAO,EAAE,UAAU,EAAW,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;;AAE1C,qBAIa,6BAA8B,YAAW,MAAM,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"custom-alarm-event-form.component.d.ts","sourceRoot":"","sources":["../../../alarm-event-selector/custom-alarm-event-form/custom-alarm-event-form.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAEnG,OAAO,EAAE,UAAU,EAAW,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;;AAE1C,qBAIa,6BAA8B,YAAW,MAAM,EAAE,SAAS;IAazD,OAAO,CAAC,WAAW;IAZtB,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,WAAW,CAAC;IACpB,cAAc,EAAE,sBAAsB,CAAM;IAC5C,aAAa,EAAE,YAAY,EAAE,CAAM;IACnC,YAAY,EAAE,MAAM,CAAC;IACpB,KAAK,6BAAoC;IACzC,MAAM,qBAA4B;IAE5C,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC5B,OAAO,CAAC,QAAQ,CAAuB;gBAEnB,WAAW,EAAE,WAAW;IAe5C,QAAQ;IAQR,WAAW;IAKX,GAAG;IAOH,OAAO,CAAC,kBAAkB;yCAhDf,6BAA6B;2CAA7B,6BAA6B;CAqDzC"}
|
package/auth-configuration/sso-configuration/template-parts/basic-configuration.component.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare class BasicConfigurationComponent implements OnChanges {
|
|
|
10
10
|
host?: string;
|
|
11
11
|
};
|
|
12
12
|
flowControlledByUI: boolean;
|
|
13
|
+
redirectToPlatform: string;
|
|
13
14
|
constructor(tenantService: TenantService);
|
|
14
15
|
shouldShow(field: string): boolean;
|
|
15
16
|
ngOnChanges(): Promise<void>;
|
package/auth-configuration/sso-configuration/template-parts/basic-configuration.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-configuration.component.d.ts","sourceRoot":"","sources":["../../../../auth-configuration/sso-configuration/template-parts/basic-configuration.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,eAAe,CAAC;AAG5D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;;AAG5C,qBAKa,2BAA4B,YAAW,SAAS;
|
|
1
|
+
{"version":3,"file":"basic-configuration.component.d.ts","sourceRoot":"","sources":["../../../../auth-configuration/sso-configuration/template-parts/basic-configuration.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,eAAe,CAAC;AAG5D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;;AAG5C,qBAKa,2BAA4B,YAAW,SAAS;IAW/C,OAAO,CAAC,aAAa;IAVxB,aAAa,MAAC;IAEvB,kDAAkD,8JAEhD;IAEF,+BAA+B,EAAE;QAAE,kBAAkB,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/E,kBAAkB,UAAS;IAC3B,kBAAkB,SAAM;gBAEJ,aAAa,EAAE,aAAa;IAGhD,UAAU,CAAC,KAAK,EAAE,MAAM;IAIlB,WAAW;yCAlBN,2BAA2B;2CAA3B,2BAA2B;CA4BvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-dashboard.service.d.ts","sourceRoot":"","sources":["../../context-dashboard/context-dashboard.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACzF,OAAO,EACL,YAAY,EACZ,WAAW,EACX,uBAAuB,EAGvB,YAAY,EACZ,YAAY,EAEZ,gBAAgB,EAEhB,WAAW,EAEX,GAAG,EACH,WAAW,EAEX,MAAM,EACP,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MA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2BAA2B;YA4CrB,sBAAsB;IAgBpC,OAAO,CAAC,0BAA0B;IA4ClC,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,0BAA0B;IAWlC,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,QAAQ;IAYhB,OAAO,CAAC,4BAA4B;IAepC,OAAO,CAAC,qBAAqB;IAQ7B;;;;OAIG;YACW,yBAAyB;IAwBvC,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,kBAAkB;IAiB1B,OAAO,CAAC,KAAK;IAWb,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,uBAAuB;IAU/B,OAAO,CAAC,eAAe;yCAp0BZ,uBAAuB;6CAAvB,uBAAuB;CA60BnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-group-icon.pipe.d.ts","sourceRoot":"","sources":["../../../core/common/get-group-icon.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;AAE/C,qBAGa,gBAAiB,YAAW,aAAa;IACxC,OAAO,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY;IAExC,SAAS,CAAC,EAAE,EAAE,cAAc,EAAE,IAAI,UAAQ,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;yCAH7E,gBAAgB;uCAAhB,gBAAgB;
|
|
1
|
+
{"version":3,"file":"get-group-icon.pipe.d.ts","sourceRoot":"","sources":["../../../core/common/get-group-icon.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;AAE/C,qBAGa,gBAAiB,YAAW,aAAa;IACxC,OAAO,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY;IAExC,SAAS,CAAC,EAAE,EAAE,cAAc,EAAE,IAAI,UAAQ,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;yCAH7E,gBAAgB;uCAAhB,gBAAgB;CAS5B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IManagedObject, InventoryService, IResultList } from '@c8y/client';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export type ManagedObjectTypeForConfig = 'c8y_Software' | 'c8y_Firmware' | 'c8y_ConfigurationDump' | 'c8y_ModbusDeviceType' | 'c8y_CANopenDeviceType' | 'c8y_LoraDeviceType' | 'c8y_SigfoxDeviceType' | 'c8y_DeviceShellTemplate';
|
|
3
|
+
export type ManagedObjectTypeForConfig = 'c8y_Software' | 'c8y_Firmware' | 'c8y_ConfigurationDump' | 'c8y_ModbusDeviceType' | 'c8y_CANopenDeviceType' | 'c8y_LoraDeviceType' | 'c8y_SigfoxDeviceType' | 'c8y_DeviceShellTemplate' | 'c8y_Profile';
|
|
4
4
|
export declare class GlobalConfigService {
|
|
5
5
|
private inventory;
|
|
6
6
|
protected cache: Promise<IResultList<IManagedObject | undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-config.service.d.ts","sourceRoot":"","sources":["../../../core/common/global-config.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;;AAE5E,MAAM,MAAM,0BAA0B,GAClC,cAAc,GACd,cAAc,GACd,uBAAuB,GACvB,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,sBAAsB,GACtB,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"global-config.service.d.ts","sourceRoot":"","sources":["../../../core/common/global-config.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;;AAE5E,MAAM,MAAM,0BAA0B,GAClC,cAAc,GACd,cAAc,GACd,uBAAuB,GACvB,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,sBAAsB,GACtB,yBAAyB,GACzB,aAAa,CAAC;AAClB,qBACa,mBAAmB;IAelB,OAAO,CAAC,SAAS;IAd7B,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC,CAAC;IAElE,OAAO,CAAC,mBAAmB,CAUhB;gBAES,SAAS,EAAE,gBAAgB;IAI/C;;;;OAIG;IACG,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAehF;;;;;;;OAOG;IACH,cAAc,CAAC,UAAU,EAAE,0BAA0B,GAAG,OAAO,CAAC,OAAO,CAAC;yCA/C7D,mBAAmB;6CAAnB,mBAAmB;CAsD/B"}
|
|
@@ -1,30 +1,47 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { IManagedObject
|
|
4
|
-
import { AlertService, ModalService, ProductExperienceEvent,
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { IManagedObject } from '@c8y/client';
|
|
4
|
+
import { ActionControl, AlertService, Column, DataGridService, DataSourceModifier, ModalService, ProductExperienceEvent, ServerSideDataCallback, ServerSideDataResult } from '@c8y/ngx-components';
|
|
5
|
+
import { RepositoryService } from '@c8y/ngx-components/repository/shared';
|
|
5
6
|
import { TranslateService } from '@ngx-translate/core';
|
|
6
7
|
import { BsModalService } from 'ngx-bootstrap/modal';
|
|
7
|
-
import {
|
|
8
|
+
import { Observable } from 'rxjs';
|
|
8
9
|
import { DeviceProfileService } from './device-profile.service';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class DeviceProfileListComponent implements OnInit
|
|
11
|
-
private
|
|
12
|
-
private
|
|
11
|
+
export declare class DeviceProfileListComponent implements OnInit {
|
|
12
|
+
private repositoryService;
|
|
13
|
+
private gridService;
|
|
13
14
|
private modalService;
|
|
14
|
-
private alertService;
|
|
15
15
|
private bsModalService;
|
|
16
|
+
private translateService;
|
|
17
|
+
private alertService;
|
|
16
18
|
private router;
|
|
19
|
+
private activatedRoute;
|
|
17
20
|
private deviceProfileService;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
sizeRequest: Promise<number>;
|
|
22
|
+
sizeRequestDone: boolean;
|
|
23
|
+
refresh$: EventEmitter<void>;
|
|
24
|
+
isDataPresent$: Observable<boolean>;
|
|
25
|
+
columns: Column[];
|
|
26
|
+
actionControls: ActionControl[];
|
|
27
|
+
serverSideDataCallback: ServerSideDataCallback;
|
|
28
|
+
pagination: {
|
|
29
|
+
pageSize: number;
|
|
30
|
+
currentPage: number;
|
|
31
|
+
};
|
|
21
32
|
productExperienceEvent: ProductExperienceEvent;
|
|
22
|
-
|
|
33
|
+
noResultsMessage: "No results to display.";
|
|
34
|
+
noDataMessage: "No device profiles to display.";
|
|
35
|
+
noResultsSubtitle: "Refine your search terms or check your spelling.";
|
|
36
|
+
noDataSubtitle: "Add a new device profile by clicking below.";
|
|
37
|
+
constructor(repositoryService: RepositoryService, gridService: DataGridService, modalService: ModalService, bsModalService: BsModalService, translateService: TranslateService, alertService: AlertService, router: Router, activatedRoute: ActivatedRoute, deviceProfileService: DeviceProfileService);
|
|
23
38
|
ngOnInit(): void;
|
|
24
|
-
|
|
39
|
+
onDataSourceModifier(dataSourceModifier: DataSourceModifier): Promise<ServerSideDataResult>;
|
|
40
|
+
editDeviceProfile(deviceProfile: Partial<IManagedObject>): void;
|
|
25
41
|
createDeviceProfile(): Promise<void>;
|
|
26
42
|
duplicateDeviceProfile(deviceProfile: any): Promise<void>;
|
|
27
43
|
deleteDeviceProfile(deviceProfile: any): Promise<void>;
|
|
44
|
+
trackByName(_index: any, column: Column): string;
|
|
28
45
|
private delete;
|
|
29
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<DeviceProfileListComponent, never>;
|
|
30
47
|
static ɵcmp: i0.ɵɵComponentDeclaration<DeviceProfileListComponent, "c8y-device-profile-list", never, {}, {}, never, never, false, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-profile-list.component.d.ts","sourceRoot":"","sources":["../../device-profile/device-profile-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"device-profile-list.component.d.ts","sourceRoot":"","sources":["../../device-profile/device-profile-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAc,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAe,MAAM,aAAa,CAAC;AAC1D,OAAO,EACL,aAAa,EACb,YAAY,EAEZ,MAAM,EACN,eAAe,EACf,kBAAkB,EAElB,YAAY,EAEZ,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EAErB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,iBAAiB,EAElB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAQ,UAAU,EAAE,MAAM,MAAM,CAAC;AAIxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;;AAEhE,qBAUa,0BAA2B,YAAW,MAAM;IAkCrD,OAAO,CAAC,iBAAiB;IACzB,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC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ACCESSOR, Validators } from '@angular/forms';
|
|
3
3
|
import { take } from 'rxjs/operators';
|
|
4
|
+
import { AlarmEventAttributesFormService } from './alarm-event-attributes-form.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
import * as i1 from "@angular/forms";
|
|
6
|
-
import * as i2 from "
|
|
7
|
-
import * as i3 from "@
|
|
7
|
+
import * as i2 from "./alarm-event-attributes-form.service";
|
|
8
|
+
import * as i3 from "@angular/common";
|
|
9
|
+
import * as i4 from "@c8y/ngx-components";
|
|
8
10
|
export class AlarmEventAttributesFormComponent {
|
|
9
|
-
constructor(formBuilder) {
|
|
11
|
+
constructor(formBuilder, alarmEventAttributesFormService) {
|
|
10
12
|
this.formBuilder = formBuilder;
|
|
13
|
+
this.alarmEventAttributesFormService = alarmEventAttributesFormService;
|
|
11
14
|
this.omitProperties = {};
|
|
15
|
+
this.selectedItems = [];
|
|
12
16
|
}
|
|
13
17
|
ngOnInit() {
|
|
14
18
|
this.formGroup = this.formBuilder.group({
|
|
15
|
-
filters: this.formBuilder.group({
|
|
19
|
+
filters: this.formBuilder.group({
|
|
20
|
+
type: [
|
|
21
|
+
'',
|
|
22
|
+
[
|
|
23
|
+
Validators.required,
|
|
24
|
+
this.alarmEventAttributesFormService.duplicateTypeValidator(this.selectedItems)
|
|
25
|
+
]
|
|
26
|
+
]
|
|
27
|
+
}),
|
|
16
28
|
timelineType: ''
|
|
17
29
|
});
|
|
18
30
|
if (!this.omitProperties.label) {
|
|
@@ -34,8 +46,8 @@ export class AlarmEventAttributesFormComponent {
|
|
|
34
46
|
setDisabledState(isDisabled) {
|
|
35
47
|
isDisabled ? this.formGroup.disable() : this.formGroup.enable();
|
|
36
48
|
}
|
|
37
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: AlarmEventAttributesFormComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
38
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: AlarmEventAttributesFormComponent, selector: "c8y-alarm-event-attributes-form", inputs: { timelineType: "timelineType", omitProperties: "omitProperties" }, providers: [
|
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: AlarmEventAttributesFormComponent, deps: [{ token: i1.FormBuilder }, { token: i2.AlarmEventAttributesFormService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
50
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: AlarmEventAttributesFormComponent, selector: "c8y-alarm-event-attributes-form", inputs: { timelineType: "timelineType", omitProperties: "omitProperties", selectedItems: "selectedItems" }, providers: [
|
|
39
51
|
{
|
|
40
52
|
provide: NG_VALUE_ACCESSOR,
|
|
41
53
|
useExisting: forwardRef(() => AlarmEventAttributesFormComponent),
|
|
@@ -46,7 +58,7 @@ export class AlarmEventAttributesFormComponent {
|
|
|
46
58
|
useExisting: forwardRef(() => AlarmEventAttributesFormComponent),
|
|
47
59
|
multi: true
|
|
48
60
|
}
|
|
49
|
-
], ngImport: i0, template: "<div [formGroup]=\"formGroup\">\n <c8y-form-group *ngIf=\"formGroup.controls.label\">\n <label class=\"m-0\">{{ 'Label' | translate }}</label>\n <input\n class=\"form-control flex-grow\"\n name=\"label\"\n formControlName=\"label\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate\n : {\n example
|
|
61
|
+
], ngImport: i0, template: "<div [formGroup]=\"formGroup\">\n <c8y-form-group *ngIf=\"formGroup.controls.label\">\n <label class=\"m-0\">{{ 'Label' | translate }}</label>\n <input\n class=\"form-control flex-grow\"\n name=\"label\"\n formControlName=\"label\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate\n : {\n example: timelineType === 'ALARM' ? 'Alarm unavailable' : 'Location update'\n }\n \"\n />\n </c8y-form-group>\n\n <div formGroupName=\"filters\">\n <c8y-form-group>\n <label class=\"m-0\">{{ 'Type' | translate }}</label>\n <input\n class=\"form-control flex-grow\"\n name=\"type\"\n formControlName=\"type\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate\n : {\n example:\n timelineType === 'ALARM' ? 'c8y_UnavailabilityAlarm' : 'c8y_LocationUpdate'\n }\n \"\n />\n <c8y-messages>\n <c8y-message\n name=\"duplicateType\"\n [text]=\"'Type already used.' | translate\"\n ></c8y-message>\n </c8y-messages>\n </c8y-form-group>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: i4.FormGroupComponent, selector: "c8y-form-group", inputs: ["hasError", "hasWarning", "hasSuccess", "novalidation", "status"] }, { kind: "directive", type: i4.MessageDirective, selector: "c8y-message", inputs: ["name", "text"] }, { kind: "component", type: i4.MessagesComponent, selector: "c8y-messages", inputs: ["show", "defaults", "helpMessage"] }, { kind: "directive", type: i4.RequiredInputPlaceholderDirective, selector: "input[required], input[formControlName]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "pipe", type: i4.C8yTranslatePipe, name: "translate" }] }); }
|
|
50
62
|
}
|
|
51
63
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: AlarmEventAttributesFormComponent, decorators: [{
|
|
52
64
|
type: Component,
|
|
@@ -61,10 +73,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImpor
|
|
|
61
73
|
useExisting: forwardRef(() => AlarmEventAttributesFormComponent),
|
|
62
74
|
multi: true
|
|
63
75
|
}
|
|
64
|
-
], template: "<div [formGroup]=\"formGroup\">\n <c8y-form-group *ngIf=\"formGroup.controls.label\">\n <label class=\"m-0\">{{ 'Label' | translate }}</label>\n <input\n class=\"form-control flex-grow\"\n name=\"label\"\n formControlName=\"label\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate\n : {\n example
|
|
65
|
-
}], ctorParameters: () => [{ type: i1.FormBuilder }], propDecorators: { timelineType: [{
|
|
76
|
+
], template: "<div [formGroup]=\"formGroup\">\n <c8y-form-group *ngIf=\"formGroup.controls.label\">\n <label class=\"m-0\">{{ 'Label' | translate }}</label>\n <input\n class=\"form-control flex-grow\"\n name=\"label\"\n formControlName=\"label\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate\n : {\n example: timelineType === 'ALARM' ? 'Alarm unavailable' : 'Location update'\n }\n \"\n />\n </c8y-form-group>\n\n <div formGroupName=\"filters\">\n <c8y-form-group>\n <label class=\"m-0\">{{ 'Type' | translate }}</label>\n <input\n class=\"form-control flex-grow\"\n name=\"type\"\n formControlName=\"type\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate\n : {\n example:\n timelineType === 'ALARM' ? 'c8y_UnavailabilityAlarm' : 'c8y_LocationUpdate'\n }\n \"\n />\n <c8y-messages>\n <c8y-message\n name=\"duplicateType\"\n [text]=\"'Type already used.' | translate\"\n ></c8y-message>\n </c8y-messages>\n </c8y-form-group>\n </div>\n</div>\n" }]
|
|
77
|
+
}], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i2.AlarmEventAttributesFormService }], propDecorators: { timelineType: [{
|
|
66
78
|
type: Input
|
|
67
79
|
}], omitProperties: [{
|
|
68
80
|
type: Input
|
|
81
|
+
}], selectedItems: [{
|
|
82
|
+
type: Input
|
|
69
83
|
}] } });
|
|
70
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
84
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxhcm0tZXZlbnQtYXR0cmlidXRlcy1mb3JtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2FsYXJtLWV2ZW50LXNlbGVjdG9yL2FsYXJtLWV2ZW50LWF0dHJpYnV0ZXMtZm9ybS9hbGFybS1ldmVudC1hdHRyaWJ1dGVzLWZvcm0uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vYWxhcm0tZXZlbnQtc2VsZWN0b3IvYWxhcm0tZXZlbnQtYXR0cmlidXRlcy1mb3JtL2FsYXJtLWV2ZW50LWF0dHJpYnV0ZXMtZm9ybS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDckUsT0FBTyxFQUdMLFdBQVcsRUFDWCxXQUFXLEVBRVgsYUFBYSxFQUNiLGlCQUFpQixFQUdqQixVQUFVLEVBQ1gsTUFBTSxnQkFBZ0IsQ0FBQztBQUN4QixPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDdEMsT0FBTyxFQUFFLCtCQUErQixFQUFFLE1BQU0sdUNBQXVDLENBQUM7Ozs7OztBQW1CeEYsTUFBTSxPQUFPLGlDQUFpQztJQU01QyxZQUNVLFdBQXdCLEVBQ3hCLCtCQUFnRTtRQURoRSxnQkFBVy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V0XG4gICAgICAgIGNsYXNzPVwiZm9ybS1jb250cm9sIGZsZXgtZ3Jvd1wiXG4gICAgICAgIG5hbWU9XCJ0eXBlXCJcbiAgICAgICAgZm9ybUNvbnRyb2xOYW1lPVwidHlwZVwiXG4gICAgICAgIFtwbGFjZWhvbGRlcl09XCJcbiAgICAgICAgICAnZS5nLiB7eyBleGFtcGxlIH19J1xuICAgICAgICAgICAgfCB0cmFuc2xhdGVcbiAgICAgICAgICAgICAgOiB7XG4gICAgICAgICAgICAgICAgICBleGFtcGxlOlxuICAgICAgICAgICAgICAgICAgICB0aW1lbGluZVR5cGUgPT09ICdBTEFSTScgPyAnYzh5X1VuYXZhaWxhYmlsaXR5QWxhcm0nIDogJ2M4eV9Mb2NhdGlvblVwZGF0ZSdcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgIFwiXG4gICAgICAvPlxuICAgICAgPGM4eS1tZXNzYWdlcz5cbiAgICAgICAgPGM4eS1tZXNzYWdlXG4gICAgICAgICAgbmFtZT1cImR1cGxpY2F0ZVR5cGVcIlxuICAgICAgICAgIFt0ZXh0XT1cIidUeXBlIGFscmVhZHkgdXNlZC4nIHwgdHJhbnNsYXRlXCJcbiAgICAgICAgPjwvYzh5LW1lc3NhZ2U+XG4gICAgICA8L2M4eS1tZXNzYWdlcz5cbiAgICA8L2M4eS1mb3JtLWdyb3VwPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class AlarmEventAttributesFormService {
|
|
4
|
+
duplicateTypeValidator(selectedItems) {
|
|
5
|
+
return (control) => {
|
|
6
|
+
if (!control.value || !selectedItems?.length) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
const isDuplicate = selectedItems.some(item => item.filters?.type?.toLowerCase() === control.value.toLowerCase());
|
|
10
|
+
return isDuplicate ? { duplicateType: true } : null;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: AlarmEventAttributesFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: AlarmEventAttributesFormService, providedIn: 'root' }); }
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: AlarmEventAttributesFormService, decorators: [{
|
|
17
|
+
type: Injectable,
|
|
18
|
+
args: [{ providedIn: 'root' }]
|
|
19
|
+
}] });
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxhcm0tZXZlbnQtYXR0cmlidXRlcy1mb3JtLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9hbGFybS1ldmVudC1zZWxlY3Rvci9hbGFybS1ldmVudC1hdHRyaWJ1dGVzLWZvcm0vYWxhcm0tZXZlbnQtYXR0cmlidXRlcy1mb3JtLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFLM0MsTUFBTSxPQUFPLCtCQUErQjtJQUMxQyxzQkFBc0IsQ0FBQyxhQUE2QjtRQUNsRCxPQUFPLENBQUMsT0FBd0IsRUFBMkIsRUFBRTtZQUMzRCxJQUFJLENBQUMsT0FBTyxDQUFDLEtBQUssSUFBSSxDQUFDLGFBQWEsRUFBRSxNQUFNLEVBQUUsQ0FBQztnQkFDN0MsT0FBTyxJQUFJLENBQUM7WUFDZCxDQUFDO1lBQ0QsTUFBTSxXQUFXLEdBQUcsYUFBYSxDQUFDLElBQUks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9XG4gICAgICBjb25zdCBpc0R1cGxpY2F0ZSA9IHNlbGVjdGVkSXRlbXMuc29tZShcbiAgICAgICAgaXRlbSA9PiBpdGVtLmZpbHRlcnM/LnR5cGU/LnRvTG93ZXJDYXNlKCkgPT09IGNvbnRyb2wudmFsdWUudG9Mb3dlckNhc2UoKVxuICAgICAgKTtcbiAgICAgIHJldHVybiBpc0R1cGxpY2F0ZSA/IHsgZHVwbGljYXRlVHlwZTogdHJ1ZSB9IDogbnVsbDtcbiAgICB9O1xuICB9XG59XG4iXX0=
|
|
@@ -87,7 +87,7 @@ export class AlarmEventSelectorListItemComponent {
|
|
|
87
87
|
useExisting: forwardRef(() => AlarmEventSelectorListItemComponent),
|
|
88
88
|
multi: true
|
|
89
89
|
}
|
|
90
|
-
], ngImport: i0, template: "<c8y-li\n class=\"c8y-list__item__collapse--container-small\"\n [formGroup]=\"formGroup\"\n #li\n>\n <c8y-li-drag-handle><ng-content select=\"c8y-li-drag-handle\"></ng-content></c8y-li-drag-handle>\n <c8y-li-icon\n class=\"a-s-center p-r-4\"\n *ngIf=\"showAddRemoveButton\"\n >\n <button\n class=\"btn btn-clean text-primary\"\n [title]=\"'Remove' | translate\"\n *ngIf=\"isSelected\"\n (click)=\"addOrRemoveItem()\"\n >\n <i\n class=\"text-danger\"\n c8yIcon=\"minus-circle\"\n ></i>\n </button>\n <button\n class=\"btn btn-clean text-primary\"\n [title]=\"'Select' | translate\"\n *ngIf=\"!isSelected\"\n (click)=\"addOrRemoveItem()\"\n [disabled]=\"(valid$ | async) === false\"\n >\n <i\n class=\"text-primary\"\n c8yIcon=\"plus-circle\"\n ></i>\n </button>\n </c8y-li-icon>\n\n <c8y-li-checkbox\n class=\"a-s-center p-r-0\"\n *ngIf=\"showActiveToggle\"\n [displayAsSwitch]=\"displayAsSwitch\"\n formControlName=\"__active\"\n (click)=\"$event.stopPropagation()\"\n ></c8y-li-checkbox>\n\n <div class=\"d-flex a-i-center p-l-4\">\n <div\n class=\"c8y-list__item__colorpicker p-t-0 p-b-0 p-l-0\"\n [title]=\"colorPickerTitle | translate\"\n >\n <div\n class=\"c8y-colorpicker\"\n [ngClass]=\"{\n 'c8y-colorpicker--alarm': timelineType === 'ALARM',\n 'c8y-colorpicker--event': timelineType === 'EVENT'\n }\"\n >\n <input\n [ngStyle]=\"{ 'pointer-events': allowItemEdit && !omitProperties.color ? 'auto' : 'none' }\"\n type=\"color\"\n formControlName=\"color\"\n (click)=\"$event.stopPropagation()\"\n />\n <span\n class=\"circle-icon-wrapper\"\n [ngStyle]=\"{ 'background-color': formGroup.value.color }\"\n >\n <i\n class=\"stroked-icon\"\n [c8yIcon]=\"timelineType === 'EVENT' ? 'c8y-events' : 'bell'\"\n ></i>\n </span>\n </div>\n </div>\n <button\n class=\"btn-clean text-truncate\"\n [title]=\"formGroup.value.details?.label\"\n (click)=\"\n allowItemEdit\n ? (li.collapsed = !li.collapsed)\n : showActiveToggle\n ? toggleActive()\n : addOrRemoveItem()\n \"\n >\n <span class=\"text-truncate\">\n <c8y-highlight\n [text]=\"\n omitProperties.label\n ? formGroup.value.details?.filters?.type\n : formGroup.value.details?.label\n \"\n [pattern]=\"highlightText\"\n [shouldTrimPattern]=\"true\"\n ></c8y-highlight>\n </span>\n <small\n class=\"text-truncate text-muted icon-flex\"\n *ngIf=\"formGroup.value.__target && !hideSource\"\n >\n <i c8yIcon=\"exchange\"></i>\n <span class=\"text-truncate\">{{ formGroup.value.__target.name }}</span>\n </small>\n </button>\n\n <button\n class=\"btn-dot btn-dot--danger m-l-auto\"\n title=\"{{ 'Invalid entries' | translate }}\"\n [popover]=\"'Some entries are invalid. Check the required input fields.' | translate\"\n container=\"body\"\n *ngIf=\"(valid$ | async) === false && li.collapsed\"\n [outsideClick]=\"true\"\n >\n <i c8yIcon=\"exclamation-circle\"></i>\n </button>\n </div>\n\n <c8y-li-action\n [icon]=\"'minus-circle'\"\n *ngIf=\"optionToRemove\"\n [label]=\"'Remove from list' | translate\"\n (click)=\"remove()\"\n ></c8y-li-action>\n <c8y-li-collapse *ngIf=\"allowItemEdit\">\n <div class=\"data-point-details\">\n <c8y-alarm-event-attributes-form\n formControlName=\"details\"\n [timelineType]=\"timelineType\"\n [omitProperties]=\"omitProperties\"\n ></c8y-alarm-event-attributes-form>\n </div>\n </c8y-li-collapse>\n</c8y-li>\n", dependencies: [{ kind: "directive", type: i2.IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.HighlightComponent, selector: "c8y-highlight", inputs: ["pattern", "text", "elementClass", "shouldTrimPattern"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.RequiredInputPlaceholderDirective, selector: "input[required], input[formControlName]" }, { kind: "component", type: i2.ListItemComponent, selector: "c8y-list-item, c8y-li", inputs: ["active", "highlighted", "emptyActions", "dense", "collapsed", "selectable"], outputs: ["collapsedChange"] }, { kind: "component", type: i2.ListItemIconComponent, selector: "c8y-list-item-icon, c8y-li-icon", inputs: ["icon", "status"] }, { kind: "component", type: i2.ListItemActionComponent, selector: "c8y-list-item-action, c8y-li-action", inputs: ["label", "icon", "disabled"], outputs: ["click"] }, { kind: "component", type: i2.ListItemCollapseComponent, selector: "c8y-list-item-collapse, c8y-li-collapse", inputs: ["collapseWay"] }, { kind: "component", type: i2.ListItemCheckboxComponent, selector: "c8y-list-item-checkbox, c8y-li-checkbox", inputs: ["selected", "indeterminate", "disabled", "displayAsSwitch"], outputs: ["onSelect"] }, { kind: "component", type: i2.ListItemDragHandleComponent, selector: "c8y-list-item-drag-handle, c8y-li-drag-handle" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i4.PopoverDirective, selector: "[popover]", inputs: ["adaptivePosition", "boundariesElement", "popover", "popoverContext", "popoverTitle", "placement", "outsideClick", "triggers", "container", "containerClass", "isOpen", "delay"], outputs: ["onShown", "onHidden"], exportAs: ["bs-popover"] }, { kind: "component", type: i5.AlarmEventAttributesFormComponent, selector: "c8y-alarm-event-attributes-form", inputs: ["timelineType", "omitProperties"] }, { kind: "pipe", type: i2.C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }] }); }
|
|
90
|
+
], ngImport: i0, template: "<c8y-li\n class=\"c8y-list__item__collapse--container-small\"\n [formGroup]=\"formGroup\"\n #li\n>\n <c8y-li-drag-handle><ng-content select=\"c8y-li-drag-handle\"></ng-content></c8y-li-drag-handle>\n <c8y-li-icon\n class=\"a-s-center p-r-4\"\n *ngIf=\"showAddRemoveButton\"\n >\n <button\n class=\"btn btn-clean text-primary\"\n [title]=\"'Remove' | translate\"\n *ngIf=\"isSelected\"\n (click)=\"addOrRemoveItem()\"\n >\n <i\n class=\"text-danger\"\n c8yIcon=\"minus-circle\"\n ></i>\n </button>\n <button\n class=\"btn btn-clean text-primary\"\n [title]=\"'Select' | translate\"\n *ngIf=\"!isSelected\"\n (click)=\"addOrRemoveItem()\"\n [disabled]=\"(valid$ | async) === false\"\n >\n <i\n class=\"text-primary\"\n c8yIcon=\"plus-circle\"\n ></i>\n </button>\n </c8y-li-icon>\n\n <c8y-li-checkbox\n class=\"a-s-center p-r-0\"\n *ngIf=\"showActiveToggle\"\n [displayAsSwitch]=\"displayAsSwitch\"\n formControlName=\"__active\"\n (click)=\"$event.stopPropagation()\"\n ></c8y-li-checkbox>\n\n <div class=\"d-flex a-i-center p-l-4\">\n <div\n class=\"c8y-list__item__colorpicker p-t-0 p-b-0 p-l-0\"\n [title]=\"colorPickerTitle | translate\"\n >\n <div\n class=\"c8y-colorpicker\"\n [ngClass]=\"{\n 'c8y-colorpicker--alarm': timelineType === 'ALARM',\n 'c8y-colorpicker--event': timelineType === 'EVENT'\n }\"\n >\n <input\n [ngStyle]=\"{ 'pointer-events': allowItemEdit && !omitProperties.color ? 'auto' : 'none' }\"\n type=\"color\"\n formControlName=\"color\"\n (click)=\"$event.stopPropagation()\"\n />\n <span\n class=\"circle-icon-wrapper\"\n [ngStyle]=\"{ 'background-color': formGroup.value.color }\"\n >\n <i\n class=\"stroked-icon\"\n [c8yIcon]=\"timelineType === 'EVENT' ? 'c8y-events' : 'bell'\"\n ></i>\n </span>\n </div>\n </div>\n <button\n class=\"btn-clean text-truncate\"\n [title]=\"formGroup.value.details?.label\"\n (click)=\"\n allowItemEdit\n ? (li.collapsed = !li.collapsed)\n : showActiveToggle\n ? toggleActive()\n : addOrRemoveItem()\n \"\n >\n <span class=\"text-truncate\">\n <c8y-highlight\n [text]=\"\n omitProperties.label\n ? formGroup.value.details?.filters?.type\n : formGroup.value.details?.label\n \"\n [pattern]=\"highlightText\"\n [shouldTrimPattern]=\"true\"\n ></c8y-highlight>\n </span>\n <small\n class=\"text-truncate text-muted icon-flex\"\n *ngIf=\"formGroup.value.__target && !hideSource\"\n >\n <i c8yIcon=\"exchange\"></i>\n <span class=\"text-truncate\">{{ formGroup.value.__target.name }}</span>\n </small>\n </button>\n\n <button\n class=\"btn-dot btn-dot--danger m-l-auto\"\n title=\"{{ 'Invalid entries' | translate }}\"\n [popover]=\"'Some entries are invalid. Check the required input fields.' | translate\"\n container=\"body\"\n *ngIf=\"(valid$ | async) === false && li.collapsed\"\n [outsideClick]=\"true\"\n >\n <i c8yIcon=\"exclamation-circle\"></i>\n </button>\n </div>\n\n <c8y-li-action\n [icon]=\"'minus-circle'\"\n *ngIf=\"optionToRemove\"\n [label]=\"'Remove from list' | translate\"\n (click)=\"remove()\"\n ></c8y-li-action>\n <c8y-li-collapse *ngIf=\"allowItemEdit\">\n <div class=\"data-point-details\">\n <c8y-alarm-event-attributes-form\n formControlName=\"details\"\n [timelineType]=\"timelineType\"\n [omitProperties]=\"omitProperties\"\n ></c8y-alarm-event-attributes-form>\n </div>\n </c8y-li-collapse>\n</c8y-li>\n", dependencies: [{ kind: "directive", type: i2.IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.HighlightComponent, selector: "c8y-highlight", inputs: ["pattern", "text", "elementClass", "shouldTrimPattern"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.RequiredInputPlaceholderDirective, selector: "input[required], input[formControlName]" }, { kind: "component", type: i2.ListItemComponent, selector: "c8y-list-item, c8y-li", inputs: ["active", "highlighted", "emptyActions", "dense", "collapsed", "selectable"], outputs: ["collapsedChange"] }, { kind: "component", type: i2.ListItemIconComponent, selector: "c8y-list-item-icon, c8y-li-icon", inputs: ["icon", "status"] }, { kind: "component", type: i2.ListItemActionComponent, selector: "c8y-list-item-action, c8y-li-action", inputs: ["label", "icon", "disabled"], outputs: ["click"] }, { kind: "component", type: i2.ListItemCollapseComponent, selector: "c8y-list-item-collapse, c8y-li-collapse", inputs: ["collapseWay"] }, { kind: "component", type: i2.ListItemCheckboxComponent, selector: "c8y-list-item-checkbox, c8y-li-checkbox", inputs: ["selected", "indeterminate", "disabled", "displayAsSwitch"], outputs: ["onSelect"] }, { kind: "component", type: i2.ListItemDragHandleComponent, selector: "c8y-list-item-drag-handle, c8y-li-drag-handle" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i4.PopoverDirective, selector: "[popover]", inputs: ["adaptivePosition", "boundariesElement", "popover", "popoverContext", "popoverTitle", "placement", "outsideClick", "triggers", "container", "containerClass", "isOpen", "delay"], outputs: ["onShown", "onHidden"], exportAs: ["bs-popover"] }, { kind: "component", type: i5.AlarmEventAttributesFormComponent, selector: "c8y-alarm-event-attributes-form", inputs: ["timelineType", "omitProperties", "selectedItems"] }, { kind: "pipe", type: i2.C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }] }); }
|
|
91
91
|
}
|
|
92
92
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: AlarmEventSelectorListItemComponent, decorators: [{
|
|
93
93
|
type: Component,
|