@tuki-io/tuki-widgets 0.0.162 → 0.0.164

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 (29) hide show
  1. package/esm2020/di2mt/shared/services/api.service.mjs +2 -2
  2. package/esm2020/user-creation/src/app.constants.mjs +14 -0
  3. package/esm2020/user-creation/src/classes/site.mjs +53 -0
  4. package/esm2020/user-creation/src/shared/api/api.service.mjs +86 -0
  5. package/esm2020/user-creation/src/shared/services/user-creation-api.service.mjs +94 -3
  6. package/esm2020/user-creation/src/shared/services/utils.mjs +19 -0
  7. package/esm2020/user-creation/src/shared/shared.module.mjs +2 -2
  8. package/esm2020/user-creation/src/user-creation.module.mjs +25 -14
  9. package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.mjs +3 -3
  10. package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.mjs +59 -10
  11. package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.mjs +21 -4
  12. package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.service.mjs +3 -3
  13. package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs +1 -1
  14. package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
  15. package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs +465 -135
  16. package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs.map +1 -1
  17. package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs +1 -1
  18. package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
  19. package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs +462 -134
  20. package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs.map +1 -1
  21. package/package.json +1 -1
  22. package/user-creation/src/app.constants.d.ts +13 -0
  23. package/user-creation/src/classes/site.d.ts +188 -0
  24. package/user-creation/src/shared/api/api.service.d.ts +20 -0
  25. package/user-creation/src/shared/services/user-creation-api.service.d.ts +15 -0
  26. package/user-creation/src/shared/services/utils.d.ts +1 -0
  27. package/user-creation/src/user-creation.module.d.ts +3 -1
  28. package/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.d.ts +20 -1
  29. package/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.d.ts +5 -2
@@ -8,8 +8,10 @@ import * as i6 from "./shared/shared.module";
8
8
  import * as i7 from "./shared/material.module";
9
9
  import * as i8 from "@angular/material/stepper";
10
10
  import * as i9 from "@angular/material/expansion";
11
+ import * as i10 from "@angular/forms";
12
+ import * as i11 from "@angular/material/radio";
11
13
  export declare class UserCreationModule {
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<UserCreationModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<UserCreationModule, [typeof i1.UserCreationWizardComponent, typeof i2.UserTemplateStepComponent, typeof i3.UserDetailsStepComponent, typeof i4.UserOverviewStepComponent], [typeof i5.CommonModule, typeof i6.SharedModule, typeof i7.MaterialModule, typeof i8.MatStepperModule, typeof i9.MatExpansionModule], [typeof i1.UserCreationWizardComponent]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UserCreationModule, [typeof i1.UserCreationWizardComponent, typeof i2.UserTemplateStepComponent, typeof i3.UserDetailsStepComponent, typeof i4.UserOverviewStepComponent], [typeof i5.CommonModule, typeof i6.SharedModule, typeof i7.MaterialModule, typeof i8.MatStepperModule, typeof i9.MatExpansionModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.MatRadioModule], [typeof i1.UserCreationWizardComponent]>;
14
16
  static ɵinj: i0.ɵɵInjectorDeclaration<UserCreationModule>;
15
17
  }
@@ -1,8 +1,27 @@
1
1
  import { UserCreationWizardService } from "../../user-creation-wizard.service";
2
+ import { FormBuilder } from "@angular/forms";
3
+ import { UserCreationApiService } from "../../../../shared/services/user-creation-api.service";
2
4
  import * as i0 from "@angular/core";
3
5
  export declare class UserTemplateStepComponent {
4
6
  userCreationWizardService: UserCreationWizardService;
5
- constructor(userCreationWizardService: UserCreationWizardService);
7
+ private readonly userCreationService;
8
+ private readonly fb;
9
+ formGroup: import("@angular/forms").FormGroup<{
10
+ userType: import("@angular/forms").FormControl<string | null>;
11
+ siteName: import("@angular/forms").FormControl<string | null>;
12
+ userTemplateName: import("@angular/forms").FormControl<string | null>;
13
+ }>;
14
+ templates: any[];
15
+ userCreationType: string;
16
+ private readonly destroy$;
17
+ private readonly customerId;
18
+ readonly filteredSites$: import("rxjs").Observable<import("../../../../classes/site").Site[]>;
19
+ constructor(userCreationWizardService: UserCreationWizardService, userCreationService: UserCreationApiService, fb: FormBuilder);
20
+ ngOnInit(): void;
21
+ reseFieldstForm(): void;
22
+ private getData;
23
+ private getSites;
24
+ ngOnDestroy(): void;
6
25
  static ɵfac: i0.ɵɵFactoryDeclaration<UserTemplateStepComponent, never>;
7
26
  static ɵcmp: i0.ɵɵComponentDeclaration<UserTemplateStepComponent, "tk-user-template-step", never, {}, {}, never, never, false, never>;
8
27
  }
@@ -1,13 +1,16 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnDestroy } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class UserCreationWizardComponent {
3
+ export declare class UserCreationWizardComponent implements OnDestroy {
4
4
  title: string;
5
5
  token: string;
6
6
  customerId: number;
7
7
  cancel: EventEmitter<void>;
8
8
  submit: EventEmitter<void>;
9
+ isSubmitting: boolean;
10
+ private submitTimerId;
9
11
  onCancel(): void;
10
12
  onSubmit(): void;
13
+ ngOnDestroy(): void;
11
14
  static ɵfac: i0.ɵɵFactoryDeclaration<UserCreationWizardComponent, never>;
12
15
  static ɵcmp: i0.ɵɵComponentDeclaration<UserCreationWizardComponent, "tk-user-creation-wizard", never, { "title": "title"; "token": "token"; "customerId": "customerId"; }, { "cancel": "cancel"; "submit": "submit"; }, never, never, false, never>;
13
16
  }