@smarterplan/ngx-smarterplan-admin 0.1.52 → 0.1.53
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/README.md +24 -24
- package/esm2020/lib/chevron/chevron.component.mjs +1 -1
- package/esm2020/lib/ngx-smarterplan-admin.service.mjs +1 -1
- package/esm2020/lib/organisation/organisation.component.mjs +1 -1
- package/esm2020/lib/user/detail-organisation/detail-organisation.component.mjs +37 -22
- package/esm2020/lib/user/user.component.mjs +19 -8
- package/esm2020/public-api.mjs +1 -1
- package/fesm2015/smarterplan-ngx-smarterplan-admin.mjs +54 -26
- package/fesm2015/smarterplan-ngx-smarterplan-admin.mjs.map +1 -1
- package/fesm2020/smarterplan-ngx-smarterplan-admin.mjs +52 -24
- package/fesm2020/smarterplan-ngx-smarterplan-admin.mjs.map +1 -1
- package/lib/user/detail-organisation/detail-organisation.component.d.ts +10 -3
- package/lib/user/user.component.d.ts +4 -3
- package/package.json +4 -3
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup, FormBuilder, AbstractControl } from '@angular/forms';
|
|
3
|
-
import { Organisation, OrganisationService } from '@smarterplan/ngx-smarterplan-core';
|
|
3
|
+
import { Organisation, OrganisationService, PropertyService, MissionService } from '@smarterplan/ngx-smarterplan-core';
|
|
4
|
+
import { TranslateService } from "@ngx-translate/core";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class DetailOrganisationComponent implements OnInit {
|
|
6
7
|
private organisationService;
|
|
7
8
|
private formBuilder;
|
|
9
|
+
private propertyService;
|
|
10
|
+
private missionService;
|
|
11
|
+
private translate;
|
|
8
12
|
org: Organisation;
|
|
9
13
|
currentOrg: Organisation;
|
|
10
14
|
isSP: boolean;
|
|
@@ -18,10 +22,12 @@ export declare class DetailOrganisationComponent implements OnInit {
|
|
|
18
22
|
editForm: FormGroup;
|
|
19
23
|
fileToUpload: File;
|
|
20
24
|
signedLogo: string;
|
|
21
|
-
constructor(organisationService: OrganisationService, formBuilder: FormBuilder);
|
|
25
|
+
constructor(organisationService: OrganisationService, formBuilder: FormBuilder, propertyService: PropertyService, missionService: MissionService, translate: TranslateService);
|
|
22
26
|
ngOnInit(): Promise<void>;
|
|
23
27
|
ngOnChanges(): void;
|
|
24
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Tokens were supposed to be used if Organisation exists already (created by one account) and it should be resused (by another account) instead of creating a duplicate.
|
|
30
|
+
*/
|
|
25
31
|
prettifyToken(): string;
|
|
26
32
|
/**
|
|
27
33
|
* Created New Stripe Account and launches onboarding procedure (mail, phone, business details..) by Stripe
|
|
@@ -37,6 +43,7 @@ export declare class DetailOrganisationComponent implements OnInit {
|
|
|
37
43
|
onSubmit(): Promise<void>;
|
|
38
44
|
onCancel(): void;
|
|
39
45
|
handleFileInput(event: Event): void;
|
|
46
|
+
onDelete(): Promise<void>;
|
|
40
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<DetailOrganisationComponent, never>;
|
|
41
48
|
static ɵcmp: i0.ɵɵComponentDeclaration<DetailOrganisationComponent, "lib-detail-organisation", never, { "org": "org"; "currentOrg": "currentOrg"; "isSP": "isSP"; }, { "orgChanged": "orgChanged"; }, never, never>;
|
|
42
49
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import { BaseUserService, Domain, DomainService, Mission, MissionService, Organisation, OrganisationService, Profile, ProfileEntity } from '@smarterplan/ngx-smarterplan-core';
|
|
3
|
+
import { BaseUserService, Domain, DomainService, Mission, MissionService, Organisation, OrganisationService, Profile, ProfileEntity, ProfileService } from '@smarterplan/ngx-smarterplan-core';
|
|
4
4
|
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class UserComponent implements OnInit {
|
|
@@ -10,6 +10,7 @@ export declare class UserComponent implements OnInit {
|
|
|
10
10
|
private organisationService;
|
|
11
11
|
private modalService;
|
|
12
12
|
private translate;
|
|
13
|
+
private profileService;
|
|
13
14
|
users: Array<Mission & {
|
|
14
15
|
name: string;
|
|
15
16
|
}>;
|
|
@@ -25,7 +26,6 @@ export declare class UserComponent implements OnInit {
|
|
|
25
26
|
userForAddingMission: ProfileEntity;
|
|
26
27
|
currentOrg: Organisation;
|
|
27
28
|
me: ProfileEntity;
|
|
28
|
-
isManager: boolean;
|
|
29
29
|
hideList: boolean;
|
|
30
30
|
orgsUsersMissions: Array<{
|
|
31
31
|
org: Organisation;
|
|
@@ -54,7 +54,8 @@ export declare class UserComponent implements OnInit {
|
|
|
54
54
|
}>;
|
|
55
55
|
loading: boolean;
|
|
56
56
|
private destroy$;
|
|
57
|
-
|
|
57
|
+
profilesWithoutMission: ProfileEntity[];
|
|
58
|
+
constructor(userService: BaseUserService, missionService: MissionService, domainService: DomainService, organisationService: OrganisationService, modalService: NgbModal, translate: TranslateService, profileService: ProfileService);
|
|
58
59
|
ngOnInit(): Promise<void>;
|
|
59
60
|
ngOnDestroy(): void;
|
|
60
61
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smarterplan/ngx-smarterplan-admin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.53",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^13.3.0",
|
|
6
6
|
"@angular/core": "^13.3.0",
|
|
@@ -9,9 +9,10 @@
|
|
|
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": "^1.0.
|
|
12
|
+
"@smarterplan/ngx-smarterplan-core": "^1.0.29",
|
|
13
13
|
"papaparse": "^5.3.2",
|
|
14
|
-
"uuidv4": "^6.2.13"
|
|
14
|
+
"uuidv4": "^6.2.13",
|
|
15
|
+
"crypto-js": "^4.1.1"
|
|
15
16
|
},
|
|
16
17
|
"dependencies": {
|
|
17
18
|
"tslib": "^2.3.0"
|