@smarterplan/ngx-smarterplan-admin 0.1.45 → 0.1.47

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.
@@ -1,12 +1,13 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { FormGroup, FormBuilder, AbstractControl } from '@angular/forms';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
- import { Organisation, Mission, Profile, BaseUserService } from '@smarterplan/ngx-smarterplan-core';
4
+ import { Organisation, Mission, Profile, BaseUserService, ValidatorsService } from '@smarterplan/ngx-smarterplan-core';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class UserMissionFormComponent implements OnInit {
7
7
  private fb;
8
8
  private userService;
9
9
  private translate;
10
+ validatorsService: ValidatorsService;
10
11
  addToOrganisation: Organisation;
11
12
  isSP: boolean;
12
13
  createForExistingUser: boolean;
@@ -16,13 +17,16 @@ export declare class UserMissionFormComponent implements OnInit {
16
17
  working: boolean;
17
18
  missionInput: Mission;
18
19
  createdUser: Profile;
19
- constructor(fb: FormBuilder, userService: BaseUserService, translate: TranslateService);
20
+ errorForm: boolean;
21
+ constructor(fb: FormBuilder, userService: BaseUserService, translate: TranslateService, validatorsService: ValidatorsService);
20
22
  ngOnInit(): void;
21
23
  onAddNewUserMissionToOrg(): Promise<void>;
22
24
  onCancel(): void;
23
25
  get email(): AbstractControl;
24
26
  onSubmit(): Promise<void>;
25
27
  onMissionInput(mission: Mission): Promise<void>;
28
+ isFormError(control: any): boolean;
29
+ onFormChange(): void;
26
30
  static ɵfac: i0.ɵɵFactoryDeclaration<UserMissionFormComponent, never>;
27
31
  static ɵcmp: i0.ɵɵComponentDeclaration<UserMissionFormComponent, "lib-user-mission-form", never, { "addToOrganisation": "addToOrganisation"; "isSP": "isSP"; "createForExistingUser": "createForExistingUser"; "currentOrg": "currentOrg"; }, { "added": "added"; }, never, never>;
28
32
  }
@@ -60,6 +60,10 @@ export declare class VisitorComponent implements OnInit {
60
60
  onDeleteChosen(): Promise<void>;
61
61
  onDuplicateTemplate(template: VisitTemplate): void;
62
62
  onCleanTimeTemplate(template: VisitTemplate): Promise<void>;
63
+ /**
64
+ * Sets mission status to SATISFACTION_TO_DELIVER for visitors, who assited to live visit.
65
+ * @param template VisitTemplate
66
+ */
63
67
  onSendSatisfaction(template: VisitTemplate): Promise<void>;
64
68
  static ɵfac: i0.ɵɵFactoryDeclaration<VisitorComponent, never>;
65
69
  static ɵcmp: i0.ɵɵComponentDeclaration<VisitorComponent, "lib-visitor", never, {}, {}, never, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smarterplan/ngx-smarterplan-admin",
3
- "version": "0.1.45",
3
+ "version": "0.1.47",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.3.0",
6
6
  "@angular/core": "^13.3.0",
@@ -9,7 +9,7 @@
9
9
  "@ngx-translate/core": "^14.0.0",
10
10
  "luxon": "^2.3.1",
11
11
  "ngx-clipboard": "^15.1.0",
12
- "@smarterplan/ngx-smarterplan-core": "^0.4.40",
12
+ "@smarterplan/ngx-smarterplan-core": "^0.4.44",
13
13
  "papaparse": "^5.3.2",
14
14
  "uuidv4": "^6.2.13"
15
15
  },