@smarterplan/ngx-smarterplan-admin 0.1.47 → 0.1.48
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/lib/helpers.mjs +25 -0
- package/esm2020/lib/visitor/template/template.component.mjs +52 -44
- package/fesm2015/smarterplan-ngx-smarterplan-admin.mjs +106 -74
- package/fesm2015/smarterplan-ngx-smarterplan-admin.mjs.map +1 -1
- package/fesm2020/smarterplan-ngx-smarterplan-admin.mjs +104 -72
- package/fesm2020/smarterplan-ngx-smarterplan-admin.mjs.map +1 -1
- package/lib/helpers.d.ts +2 -0
- package/lib/visitor/template/template.component.d.ts +6 -9
- package/package.json +1 -1
package/lib/helpers.d.ts
ADDED
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup, FormBuilder, AbstractControl } from '@angular/forms';
|
|
3
|
-
import { ActivatedRoute } from '@angular/router';
|
|
4
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
4
|
import { ValidatorsService } from "@smarterplan/ngx-smarterplan-core";
|
|
6
|
-
import { Organisation, LevelStatus, Zone, Space, Hashtag, Locale, BaseUserService, SpaceService, ZoneService, HashtagService, VisitTemplate
|
|
7
|
-
import { Location } from '@angular/common';
|
|
5
|
+
import { Organisation, LevelStatus, Zone, Space, Hashtag, Locale, BaseUserService, SpaceService, ZoneService, HashtagService, VisitTemplate } from '@smarterplan/ngx-smarterplan-core';
|
|
8
6
|
import { EventEmitter } from '@angular/core';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
10
8
|
export declare class TemplateComponent implements OnInit {
|
|
11
|
-
private route;
|
|
12
9
|
private fb;
|
|
13
10
|
private userService;
|
|
14
11
|
private spaceService;
|
|
15
12
|
private zoneService;
|
|
16
|
-
private location;
|
|
17
13
|
private hashtagService;
|
|
18
14
|
private translate;
|
|
19
|
-
private templateService;
|
|
20
15
|
validatorsService: ValidatorsService;
|
|
21
16
|
currentOrg: Organisation;
|
|
22
17
|
editTemplate: VisitTemplate;
|
|
@@ -37,7 +32,9 @@ export declare class TemplateComponent implements OnInit {
|
|
|
37
32
|
locales: string[];
|
|
38
33
|
dateError: boolean;
|
|
39
34
|
errorForm: boolean;
|
|
40
|
-
|
|
35
|
+
startDateInvalid: boolean;
|
|
36
|
+
endDateInvalid: boolean;
|
|
37
|
+
constructor(fb: FormBuilder, userService: BaseUserService, spaceService: SpaceService, zoneService: ZoneService, hashtagService: HashtagService, translate: TranslateService, validatorsService: ValidatorsService);
|
|
41
38
|
ngOnInit(): void;
|
|
42
39
|
setup(): Promise<void>;
|
|
43
40
|
updateUserInfo(): Promise<void>;
|
|
@@ -50,11 +47,11 @@ export declare class TemplateComponent implements OnInit {
|
|
|
50
47
|
onHashtagClick(hashtag: Hashtag): void;
|
|
51
48
|
setHashtags(spaceID: string): Promise<void>;
|
|
52
49
|
isFormError(control: any): boolean;
|
|
53
|
-
onVerifDate():
|
|
50
|
+
onVerifDate(): {
|
|
54
51
|
startDateString?: string;
|
|
55
52
|
endDateString?: string;
|
|
56
53
|
error?: boolean;
|
|
57
|
-
}
|
|
54
|
+
};
|
|
58
55
|
onVerifForm(): Promise<void>;
|
|
59
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateComponent, never>;
|
|
60
57
|
static ɵcmp: i0.ɵɵComponentDeclaration<TemplateComponent, "lib-template", never, { "currentOrg": "currentOrg"; "editTemplate": "editTemplate"; "zoneID": "zoneID"; }, { "updatedTemplate": "updatedTemplate"; "createdTemplate": "createdTemplate"; }, never, never>;
|