@tuki-io/tuki-widgets 0.0.163 → 0.0.165
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/esm2020/di2mt/shared/services/api.service.mjs +2 -2
- package/esm2020/user-creation/src/app.constants.mjs +8 -6
- package/esm2020/user-creation/src/classes/site.mjs +1 -1
- package/esm2020/user-creation/src/shared/api/api.service.mjs +2 -2
- package/esm2020/user-creation/src/shared/services/user-creation-api.service.mjs +18 -7
- package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.mjs +3 -3
- package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.mjs +68 -22
- package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.mjs +9 -4
- package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.service.mjs +112 -31
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs +1 -1
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs +230 -74
- package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs +1 -1
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs +215 -72
- package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs.map +1 -1
- package/package.json +1 -1
- package/user-creation/src/app.constants.d.ts +2 -0
- package/user-creation/src/classes/site.d.ts +15 -0
- package/user-creation/src/shared/services/user-creation-api.service.d.ts +6 -2
- package/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.d.ts +18 -8
- package/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.d.ts +4 -2
- package/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.service.d.ts +6 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class UserCreationWizardComponent implements OnDestroy {
|
|
3
|
+
export declare class UserCreationWizardComponent implements OnInit, OnDestroy {
|
|
4
|
+
private readonly apiService;
|
|
4
5
|
title: string;
|
|
5
6
|
token: string;
|
|
6
7
|
customerId: number;
|
|
@@ -8,6 +9,7 @@ export declare class UserCreationWizardComponent implements OnDestroy {
|
|
|
8
9
|
submit: EventEmitter<void>;
|
|
9
10
|
isSubmitting: boolean;
|
|
10
11
|
private submitTimerId;
|
|
12
|
+
ngOnInit(): void;
|
|
11
13
|
onCancel(): void;
|
|
12
14
|
onSubmit(): void;
|
|
13
15
|
ngOnDestroy(): void;
|
|
@@ -66,6 +66,8 @@ export declare class UserCreationWizardService {
|
|
|
66
66
|
constructor();
|
|
67
67
|
setSelectedSite(site: string | null): void;
|
|
68
68
|
setSelectedTemplate(template: string | null): void;
|
|
69
|
+
resetTemplateDrivenData(): void;
|
|
70
|
+
applyTemplateTokenPayload(payload: any): void;
|
|
69
71
|
setSelectedUserCreationType(type: UserCreationType): void;
|
|
70
72
|
setUserDetailsField(field: keyof UserDetailsForm, value: string): void;
|
|
71
73
|
setLineSelection(index: number, lineNumber: string | null): void;
|
|
@@ -75,6 +77,10 @@ export declare class UserCreationWizardService {
|
|
|
75
77
|
private rebuildOverviewUsers;
|
|
76
78
|
private rebuildOverviewLines;
|
|
77
79
|
private rebuildOverviewDevices;
|
|
80
|
+
private extractTemplateFromTokenPayload;
|
|
81
|
+
private uniqueByNumber;
|
|
82
|
+
private uniqueStrings;
|
|
83
|
+
private valueToString;
|
|
78
84
|
loadDataFromApi(): void;
|
|
79
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserCreationWizardService, never>;
|
|
80
86
|
static ɵprov: i0.ɵɵInjectableDeclaration<UserCreationWizardService>;
|