@c8y/ngx-components 1018.503.52 → 1018.503.56

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.
Files changed (35) hide show
  1. package/context-dashboard/device-info-dashboard/device-info-dashboard.component.d.ts +1 -1
  2. package/core/common/ApplicationOptions.d.ts +4 -1
  3. package/esm2020/context-dashboard/device-info-dashboard/device-info-dashboard.component.mjs +12 -12
  4. package/esm2020/core/common/ApplicationOptions.mjs +1 -1
  5. package/esm2020/core/dashboard/wiget-time-context/widget-time-context.component.mjs +4 -3
  6. package/esm2020/protocol-lwm2m/components/configuration/lwm2m-configuration.component.mjs +2 -1
  7. package/esm2020/protocol-lwm2m/components/configuration/typed-forms/connectivity-settings.component.mjs +8 -12
  8. package/esm2020/protocol-lwm2m/components/configuration/typed-forms/single-server-settings.component.mjs +21 -9
  9. package/esm2020/protocol-lwm2m/model/index.mjs +3 -1
  10. package/esm2020/protocol-lwm2m/services/lwm2m-configuration.service.mjs +64 -5
  11. package/fesm2015/c8y-ngx-components-context-dashboard.mjs +10 -10
  12. package/fesm2015/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  13. package/fesm2015/c8y-ngx-components-protocol-lwm2m-components-configuration.mjs +30 -21
  14. package/fesm2015/c8y-ngx-components-protocol-lwm2m-components-configuration.mjs.map +1 -1
  15. package/fesm2015/c8y-ngx-components-protocol-lwm2m-model.mjs +2 -0
  16. package/fesm2015/c8y-ngx-components-protocol-lwm2m-model.mjs.map +1 -1
  17. package/fesm2015/c8y-ngx-components-protocol-lwm2m-services.mjs +63 -4
  18. package/fesm2015/c8y-ngx-components-protocol-lwm2m-services.mjs.map +1 -1
  19. package/fesm2015/c8y-ngx-components.mjs +3 -2
  20. package/fesm2015/c8y-ngx-components.mjs.map +1 -1
  21. package/fesm2020/c8y-ngx-components-context-dashboard.mjs +10 -10
  22. package/fesm2020/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  23. package/fesm2020/c8y-ngx-components-protocol-lwm2m-components-configuration.mjs +27 -19
  24. package/fesm2020/c8y-ngx-components-protocol-lwm2m-components-configuration.mjs.map +1 -1
  25. package/fesm2020/c8y-ngx-components-protocol-lwm2m-model.mjs +2 -0
  26. package/fesm2020/c8y-ngx-components-protocol-lwm2m-model.mjs.map +1 -1
  27. package/fesm2020/c8y-ngx-components-protocol-lwm2m-services.mjs +63 -4
  28. package/fesm2020/c8y-ngx-components-protocol-lwm2m-services.mjs.map +1 -1
  29. package/fesm2020/c8y-ngx-components.mjs +3 -2
  30. package/fesm2020/c8y-ngx-components.mjs.map +1 -1
  31. package/package.json +1 -1
  32. package/protocol-lwm2m/components/configuration/typed-forms/connectivity-settings.component.d.ts +1 -4
  33. package/protocol-lwm2m/components/configuration/typed-forms/single-server-settings.component.d.ts +16 -22
  34. package/protocol-lwm2m/model/index.d.ts +11 -1
  35. package/protocol-lwm2m/services/lwm2m-configuration.service.d.ts +8 -1
@@ -2,7 +2,7 @@ import { OnInit } from '@angular/core';
2
2
  import { AlertService, DroppedFile } from '@c8y/ngx-components';
3
3
  import { Lwm2mConfigurationService } from '@c8y/ngx-components/protocol-lwm2m/services';
4
4
  import { FormlyFieldConfig } from '@ngx-formly/core';
5
- import { BindingMode, CertificateUsage, Endpoint, Mode, ServerSettings } from '@c8y/ngx-components/protocol-lwm2m/model';
5
+ import { BindingMode, CertificateUsage, Endpoint, ServerSettings } from '@c8y/ngx-components/protocol-lwm2m/model';
6
6
  import { Lwm2mFormWrapperBase } from './form-wrapper-base.component';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class Lwm2mFormSingleServerSettings extends Lwm2mFormWrapperBase<ServerSettings> implements OnInit {
@@ -60,29 +60,17 @@ export declare class Lwm2mFormSingleServerSettings extends Lwm2mFormWrapperBase<
60
60
  };
61
61
  fieldGroup: ({
62
62
  type: string;
63
- props: {
64
- options: {
65
- label: string;
66
- value: Mode;
67
- }[];
68
- label?: undefined;
69
- placeholder?: undefined;
70
- acceptUndefined?: undefined;
71
- removeExempliGratia?: undefined;
72
- accept?: undefined;
73
- description?: undefined;
74
- forceHideList?: undefined;
75
- dropped?: undefined;
76
- remove?: undefined;
77
- onPick?: undefined;
78
- disabled?: undefined;
63
+ hooks: {
64
+ onInit: (field: FormlyFieldConfig) => import("rxjs").Observable<import("@ngx-formly/core/lib/models").FormlyValueChangeEvent>;
79
65
  };
80
66
  key?: undefined;
67
+ props?: undefined;
81
68
  expressions?: undefined;
82
69
  } | {
83
70
  type: string;
84
- props?: undefined;
71
+ hooks?: undefined;
85
72
  key?: undefined;
73
+ props?: undefined;
86
74
  expressions?: undefined;
87
75
  } | {
88
76
  key: string;
@@ -108,6 +96,7 @@ export declare class Lwm2mFormSingleServerSettings extends Lwm2mFormWrapperBase<
108
96
  'props.disabled': (field: FormlyFieldConfig) => any;
109
97
  hide: (field: FormlyFieldConfig) => boolean;
110
98
  };
99
+ hooks?: undefined;
111
100
  } | {
112
101
  key: string;
113
102
  type: string;
@@ -132,6 +121,7 @@ export declare class Lwm2mFormSingleServerSettings extends Lwm2mFormWrapperBase<
132
121
  'props.disabled': (field: FormlyFieldConfig) => any;
133
122
  hide: (field: FormlyFieldConfig) => boolean;
134
123
  };
124
+ hooks?: undefined;
135
125
  } | {
136
126
  key: string;
137
127
  type: string;
@@ -141,10 +131,10 @@ export declare class Lwm2mFormSingleServerSettings extends Lwm2mFormWrapperBase<
141
131
  description: "One .pem file may be uploaded";
142
132
  forceHideList: boolean;
143
133
  dropped: (files: DroppedFile[]) => Promise<void>;
144
- options?: undefined;
145
134
  placeholder?: undefined;
146
135
  acceptUndefined?: undefined;
147
136
  removeExempliGratia?: undefined;
137
+ options?: undefined;
148
138
  remove?: undefined;
149
139
  onPick?: undefined;
150
140
  disabled?: undefined;
@@ -153,6 +143,7 @@ export declare class Lwm2mFormSingleServerSettings extends Lwm2mFormWrapperBase<
153
143
  hide: (field: FormlyFieldConfig) => boolean;
154
144
  'props.disabled'?: undefined;
155
145
  };
146
+ hooks?: undefined;
156
147
  } | {
157
148
  key: string;
158
149
  type: string;
@@ -160,10 +151,10 @@ export declare class Lwm2mFormSingleServerSettings extends Lwm2mFormWrapperBase<
160
151
  label: "Certificate Common Name";
161
152
  remove: () => void;
162
153
  onPick: (certificate: any) => void;
163
- options?: undefined;
164
154
  placeholder?: undefined;
165
155
  acceptUndefined?: undefined;
166
156
  removeExempliGratia?: undefined;
157
+ options?: undefined;
167
158
  accept?: undefined;
168
159
  description?: undefined;
169
160
  forceHideList?: undefined;
@@ -174,6 +165,7 @@ export declare class Lwm2mFormSingleServerSettings extends Lwm2mFormWrapperBase<
174
165
  'props.disabled': (field: FormlyFieldConfig) => any;
175
166
  hide: (field: FormlyFieldConfig) => boolean;
176
167
  };
168
+ hooks?: undefined;
177
169
  } | {
178
170
  key: string;
179
171
  type: string;
@@ -184,10 +176,10 @@ export declare class Lwm2mFormSingleServerSettings extends Lwm2mFormWrapperBase<
184
176
  forceHideList: boolean;
185
177
  disabled: boolean;
186
178
  dropped: (files: DroppedFile[]) => Promise<void>;
187
- options?: undefined;
188
179
  placeholder?: undefined;
189
180
  acceptUndefined?: undefined;
190
181
  removeExempliGratia?: undefined;
182
+ options?: undefined;
191
183
  remove?: undefined;
192
184
  onPick?: undefined;
193
185
  };
@@ -195,6 +187,7 @@ export declare class Lwm2mFormSingleServerSettings extends Lwm2mFormWrapperBase<
195
187
  'props.disabled': (field: FormlyFieldConfig) => any;
196
188
  hide: (field: FormlyFieldConfig) => boolean;
197
189
  };
190
+ hooks?: undefined;
198
191
  } | {
199
192
  key: string;
200
193
  type: string;
@@ -202,10 +195,10 @@ export declare class Lwm2mFormSingleServerSettings extends Lwm2mFormWrapperBase<
202
195
  label: "Fingerprint of the private key";
203
196
  remove: () => void;
204
197
  onPick: (privateKey: any) => void;
205
- options?: undefined;
206
198
  placeholder?: undefined;
207
199
  acceptUndefined?: undefined;
208
200
  removeExempliGratia?: undefined;
201
+ options?: undefined;
209
202
  accept?: undefined;
210
203
  description?: undefined;
211
204
  forceHideList?: undefined;
@@ -216,6 +209,7 @@ export declare class Lwm2mFormSingleServerSettings extends Lwm2mFormWrapperBase<
216
209
  'props.disabled': (field: FormlyFieldConfig) => any;
217
210
  hide: (field: FormlyFieldConfig) => boolean;
218
211
  };
212
+ hooks?: undefined;
219
213
  })[];
220
214
  type?: undefined;
221
215
  defaultValue?: undefined;
@@ -41,9 +41,11 @@ export declare enum SecurityMode {
41
41
  PSK = "PSK"
42
42
  }
43
43
  export declare enum Mode {
44
+ DISABLED = "DISABLED",
44
45
  NO_SEC = "NO_SEC",
45
46
  PSK = "PSK",
46
- X509 = "X509"
47
+ X509 = "X509",
48
+ X509_EST = "X509_USING_EST"
47
49
  }
48
50
  export declare enum BindingMode {
49
51
  U = "U",
@@ -154,4 +156,12 @@ export interface BootstrapSettings {
154
156
  securityInstanceOffset: number;
155
157
  generateBootstrapServer: boolean;
156
158
  }
159
+ export interface SecurityModeDictionaryObj {
160
+ name?: string | Mode;
161
+ description?: string;
162
+ label?: string;
163
+ value?: string;
164
+ useInBootstrapConnectivity: boolean;
165
+ useInServerConnectivity: boolean;
166
+ }
157
167
  export declare const permissionAlert: Alert;
@@ -3,7 +3,7 @@ import { FetchClient, IFetchOptions, IResult, IResultList } from '@c8y/client';
3
3
  import { Observable } from 'rxjs';
4
4
  import { Lwm2mClientService } from './lwm2m-client.service';
5
5
  import { AlertService } from '@c8y/ngx-components';
6
- import { Endpoint, ServerSettings, Entity, UrlConfig, ValidationType } from '@c8y/ngx-components/protocol-lwm2m/model';
6
+ import { Endpoint, ServerSettings, Entity, UrlConfig, ValidationType, SecurityModeDictionaryObj } from '@c8y/ngx-components/protocol-lwm2m/model';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class Lwm2mConfigurationService<T = Entity> extends Lwm2mClientService<T> implements OnDestroy {
9
9
  private alertService;
@@ -14,9 +14,13 @@ export declare class Lwm2mConfigurationService<T = Entity> extends Lwm2mClientSe
14
14
  private readonly _servers$;
15
15
  private readonly _settings$;
16
16
  private readonly _certificates$;
17
+ private readonly _securityModeDictRaw$;
18
+ private readonly _securityModeByScope$;
17
19
  servers$: Observable<ServerSettings[]>;
18
20
  settings$: Observable<T>;
19
21
  certificates$: Observable<string[]>;
22
+ securityModesByScope$: Observable<SecurityModeDictionaryObj[]>;
23
+ securityModesRaw$: Observable<SecurityModeDictionaryObj[]>;
20
24
  constructor(client: FetchClient, alertService: AlertService);
21
25
  ngOnDestroy(): void;
22
26
  getSettingsFor(urlCfg: UrlConfig): void;
@@ -28,6 +32,9 @@ export declare class Lwm2mConfigurationService<T = Entity> extends Lwm2mClientSe
28
32
  validate(certificate: string, type: ValidationType): Observable<string>;
29
33
  getServerCertificates(): void;
30
34
  fetchServerCertificates$(): Observable<string[]>;
35
+ getSecurityModes(): void;
36
+ fetchSecurityModes$(): Observable<SecurityModeDictionaryObj[]>;
37
+ getSecurityModeByScope(scope: 'useInBootstrapConnectivity' | 'useInServerConnectivity'): void;
31
38
  cleanUpBase64Data(fileReadAsDataURL: string): string;
32
39
  listServers$(): Observable<IResultList<ServerSettings>>;
33
40
  createServer$(server: ServerSettings): Observable<IResult<ServerSettings>>;