@c8y/ngx-components 1021.2.1 → 1021.4.3
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/assets-navigator/asset-selector/asset-selector-node.component.d.ts +2 -1
- package/assets-navigator/asset-selector/asset-selector-node.component.d.ts.map +1 -1
- package/assets-navigator/asset-selector/asset-selector.component.d.ts +2 -1
- package/assets-navigator/asset-selector/asset-selector.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/cockpit-config/cockpit-config.service.d.ts.map +1 -1
- package/cockpit-config/cockpit-configuration.component.d.ts +1 -0
- package/cockpit-config/cockpit-configuration.component.d.ts.map +1 -1
- package/cockpit-config/root-node-config.component.d.ts +2 -1
- package/cockpit-config/root-node-config.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/core/login/login.component.d.ts.map +1 -1
- package/core/login/login.service.d.ts +1 -1
- package/core/login/login.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/assets-navigator/asset-selector/asset-selector-node.component.mjs +6 -3
- package/esm2022/assets-navigator/asset-selector/asset-selector.component.mjs +7 -4
- package/esm2022/assets-navigator/asset-selector/miller-view.component.mjs +1 -1
- package/esm2022/auth-configuration/sso-configuration/template-parts/access-mapping/inventory-roles-modal.component.mjs +1 -1
- package/esm2022/auth-configuration/sso-configuration/template-parts/basic-configuration.component.mjs +5 -3
- package/esm2022/cockpit-config/cockpit-config.service.mjs +7 -3
- package/esm2022/cockpit-config/cockpit-configuration.component.mjs +6 -3
- package/esm2022/cockpit-config/root-node-config.component.mjs +8 -4
- package/esm2022/cockpit-config/setup/cockpit-setup-step3.component.mjs +1 -1
- 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/core/login/login.component.mjs +8 -3
- package/esm2022/core/login/login.service.mjs +5 -2
- package/esm2022/device-grid/columns/group.filtering-form-renderer.component.mjs +1 -1
- package/esm2022/device-profile/device-profile-list.component.mjs +102 -27
- package/esm2022/protocol-lwm2m/components/configuration/typed-forms/firmware-settings.component.mjs +11 -2
- package/esm2022/repository/shared/repository.model.mjs +2 -1
- package/fesm2022/c8y-ngx-components-assets-navigator.mjs +12 -6
- package/fesm2022/c8y-ngx-components-assets-navigator.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-auth-configuration.mjs +5 -3
- package/fesm2022/c8y-ngx-components-auth-configuration.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-cockpit-config.mjs +19 -9
- package/fesm2022/c8y-ngx-components-cockpit-config.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-grid.mjs +1 -1
- package/fesm2022/c8y-ngx-components-device-grid.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-protocol-lwm2m-components-configuration.mjs +10 -1
- package/fesm2022/c8y-ngx-components-protocol-lwm2m-components-configuration.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 +16 -4
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/locales.pot +20 -2
- package/package.json +1 -1
- package/protocol-lwm2m/components/configuration/typed-forms/firmware-settings.component.d.ts +10 -0
- package/protocol-lwm2m/components/configuration/typed-forms/firmware-settings.component.d.ts.map +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
|
@@ -5954,6 +5954,9 @@ class GetGroupIconPipe {
|
|
|
5954
5954
|
this.groupService = groupService;
|
|
5955
5955
|
}
|
|
5956
5956
|
async transform(mo, open = false, defaultIcon) {
|
|
5957
|
+
if (!mo.c8y_IsDevice) {
|
|
5958
|
+
return this.groupService.getIcon(mo, open, 'c8y-group-open');
|
|
5959
|
+
}
|
|
5957
5960
|
return this.groupService.getIcon(mo, open, defaultIcon);
|
|
5958
5961
|
}
|
|
5959
5962
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: GetGroupIconPipe, deps: [{ token: GroupService }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
@@ -7537,7 +7540,8 @@ class GlobalConfigService {
|
|
|
7537
7540
|
c8y_ModbusDeviceType: 'c8y_FieldbusAsGlobal',
|
|
7538
7541
|
c8y_CANopenDeviceType: 'c8y_CANOpenAsGlobal',
|
|
7539
7542
|
c8y_LoraDeviceType: 'c8y_LoraAsGlobal',
|
|
7540
|
-
c8y_SigfoxDeviceType: 'c8y_SigfoxAsGlobal'
|
|
7543
|
+
c8y_SigfoxDeviceType: 'c8y_SigfoxAsGlobal',
|
|
7544
|
+
c8y_Profile: 'c8y_ProfileAsGlobal'
|
|
7541
7545
|
};
|
|
7542
7546
|
this.cache = undefined;
|
|
7543
7547
|
}
|
|
@@ -12453,7 +12457,10 @@ class LoginService {
|
|
|
12453
12457
|
return this.client
|
|
12454
12458
|
.fetch(`/tenant/oauth?session_state=${sessionState}&code=${code}`, params)
|
|
12455
12459
|
.then(res => this.handleErrorStatusCodes(res))
|
|
12456
|
-
.
|
|
12460
|
+
.catch(ex => {
|
|
12461
|
+
this.showSsoError(ex);
|
|
12462
|
+
throw new Error();
|
|
12463
|
+
});
|
|
12457
12464
|
}
|
|
12458
12465
|
autoLogout() {
|
|
12459
12466
|
const errorPattern = /invalid\scredentials.*pin.*generate/i;
|
|
@@ -16486,9 +16493,14 @@ class LoginComponent {
|
|
|
16486
16493
|
this.reset();
|
|
16487
16494
|
}
|
|
16488
16495
|
else {
|
|
16489
|
-
this.loginService
|
|
16490
|
-
|
|
16496
|
+
this.loginService
|
|
16497
|
+
.loginBySso(ssoData.sessionState, ssoData.code)
|
|
16498
|
+
.then(() => this.loginService.login())
|
|
16499
|
+
.catch(e => {
|
|
16491
16500
|
this.reset();
|
|
16501
|
+
if (e.res?.status) {
|
|
16502
|
+
this.alert.addServerFailure(e);
|
|
16503
|
+
}
|
|
16492
16504
|
});
|
|
16493
16505
|
}
|
|
16494
16506
|
}
|