@posiwise/admin-module 0.0.169 → 0.0.170
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/esm2022/lib/components/domain-config/domain-config-details/base-domain-config.component.mjs +88 -0
- package/esm2022/lib/components/domain-config/domain-config-details/domain-config-organization/domain-config-organization.component.mjs +9 -82
- package/esm2022/lib/components/domain-config/domain-config-details/domain-config-security/domain-config-security.component.mjs +9 -70
- package/esm2022/lib/components/domain-config/domain-config-details/domain-config-social/domain-config-social.component.mjs +9 -70
- package/esm2022/lib/components/mailer/mailer-list/mailer-list.component.mjs +23 -20
- package/esm2022/lib/components/newsletters/newsletter-item-details/newsletter-item-details.component.mjs +8 -7
- package/esm2022/lib/components/newsletters/newsletters-items/newsletters-items.component.mjs +23 -21
- package/esm2022/lib/components/newsletters/newsletters-list/newsletters-list.component.mjs +21 -19
- package/esm2022/lib/components/products/products-list/products-list.component.mjs +8 -7
- package/esm2022/lib/components/subscriptions/subscriptions-insight/base-subscription-insight.component.mjs +47 -0
- package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-average-price/subscription-insight-average-price.component.mjs +9 -39
- package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-average-user/subscription-insight-average-user.component.mjs +9 -39
- package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-product-session/subscription-insight-product-session.component.mjs +9 -39
- package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-user-session/subscription-insight-user-session.component.mjs +9 -38
- package/fesm2022/posiwise-admin-module.mjs +147 -313
- package/fesm2022/posiwise-admin-module.mjs.map +1 -1
- package/lib/components/domain-config/domain-config-details/base-domain-config.component.d.ts +66 -0
- package/lib/components/domain-config/domain-config-details/domain-config-organization/domain-config-organization.component.d.ts +6 -58
- package/lib/components/domain-config/domain-config-details/domain-config-security/domain-config-security.component.d.ts +6 -57
- package/lib/components/domain-config/domain-config-details/domain-config-social/domain-config-social.component.d.ts +6 -57
- package/lib/components/mailer/mailer-list/mailer-list.component.d.ts +3 -1
- package/lib/components/newsletters/newsletter-item-details/newsletter-item-details.component.d.ts +3 -2
- package/lib/components/newsletters/newsletters-items/newsletters-items.component.d.ts +3 -1
- package/lib/components/newsletters/newsletters-list/newsletters-list.component.d.ts +3 -1
- package/lib/components/products/products-list/products-list.component.d.ts +3 -2
- package/lib/components/subscriptions/subscriptions-insight/base-subscription-insight.component.d.ts +32 -0
- package/lib/components/subscriptions/subscriptions-insight/subscription-insight-average-price/subscription-insight-average-price.component.d.ts +5 -29
- package/lib/components/subscriptions/subscriptions-insight/subscription-insight-average-user/subscription-insight-average-user.component.d.ts +5 -29
- package/lib/components/subscriptions/subscriptions-insight/subscription-insight-product-session/subscription-insight-product-session.component.d.ts +5 -29
- package/lib/components/subscriptions/subscriptions-insight/subscription-insight-user-session/subscription-insight-user-session.component.d.ts +5 -28
- package/package.json +1 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { AdminService } from '@posiwise/admin-module-utils';
|
|
4
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
5
|
+
import { DomainConfig } from '../../../shared/interface/domain-config.interface';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare abstract class BaseDomainConfigComponent extends AppBaseComponent implements OnInit {
|
|
8
|
+
protected readonly adminService: AdminService;
|
|
9
|
+
form: UntypedFormGroup;
|
|
10
|
+
submitted: boolean;
|
|
11
|
+
buttonBusy: boolean;
|
|
12
|
+
id: number;
|
|
13
|
+
subscriptionId: number;
|
|
14
|
+
duplicateConfigId: number;
|
|
15
|
+
data: DomainConfig;
|
|
16
|
+
routers: {
|
|
17
|
+
globalConfigDetails: string;
|
|
18
|
+
adminCredentialsDetails: string;
|
|
19
|
+
subscriptionCredentialDetails: string;
|
|
20
|
+
newsletter: string;
|
|
21
|
+
mailerDetails: string;
|
|
22
|
+
newsletterItemDetails: string;
|
|
23
|
+
newsletterItemView: string;
|
|
24
|
+
newslettersUserList: string;
|
|
25
|
+
newsletterDetails: string;
|
|
26
|
+
permissionsList: string;
|
|
27
|
+
permissionsDetails: string;
|
|
28
|
+
rolesDetails: string;
|
|
29
|
+
productDetails: string;
|
|
30
|
+
productsUserList: string;
|
|
31
|
+
feedbackQuestions: string;
|
|
32
|
+
feedbackQuestionsDetails: string;
|
|
33
|
+
subscriptionDetails: string;
|
|
34
|
+
subscriptionProductDetails: string;
|
|
35
|
+
tipsDetails: string;
|
|
36
|
+
tosAndPrivacyDetails: string;
|
|
37
|
+
tosAndPrivacyView: string;
|
|
38
|
+
usersDetails: string;
|
|
39
|
+
domainConfig: string;
|
|
40
|
+
domainConfigDetails: string;
|
|
41
|
+
loginNotifications: string;
|
|
42
|
+
incidentConfig: string;
|
|
43
|
+
incidentDetails: string;
|
|
44
|
+
faqConfig: string;
|
|
45
|
+
faqDetails: string;
|
|
46
|
+
inviteUsers: string;
|
|
47
|
+
subscriptionList: string;
|
|
48
|
+
createResource: string;
|
|
49
|
+
createTag: string;
|
|
50
|
+
tags: string;
|
|
51
|
+
posts: string;
|
|
52
|
+
resourcesList: string;
|
|
53
|
+
};
|
|
54
|
+
isLoading: boolean;
|
|
55
|
+
constructor(injector: Injector, adminService: AdminService);
|
|
56
|
+
ngOnInit(): void;
|
|
57
|
+
get f(): {
|
|
58
|
+
[key: string]: import("@angular/forms").AbstractControl<any, any>;
|
|
59
|
+
};
|
|
60
|
+
private getDomainConfigDetails;
|
|
61
|
+
onSave(): void;
|
|
62
|
+
protected abstract getForm(): UntypedFormGroup;
|
|
63
|
+
protected abstract getTabId(): string;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseDomainConfigComponent, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseDomainConfigComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
66
|
+
}
|
|
@@ -1,65 +1,13 @@
|
|
|
1
|
-
import { Injector
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
4
|
-
import {
|
|
5
|
-
import { DomainConfig } from '../../../../shared/interface/domain-config.interface';
|
|
4
|
+
import { BaseDomainConfigComponent } from '../base-domain-config.component';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DomainConfigOrganizationComponent extends
|
|
8
|
-
|
|
9
|
-
form: UntypedFormGroup;
|
|
10
|
-
submitted: boolean;
|
|
11
|
-
buttonBusy: boolean;
|
|
12
|
-
id: number;
|
|
13
|
-
subscriptionId: number;
|
|
14
|
-
duplicateConfigId: any;
|
|
15
|
-
data: DomainConfig;
|
|
16
|
-
routers: {
|
|
17
|
-
globalConfigDetails: string;
|
|
18
|
-
adminCredentialsDetails: string;
|
|
19
|
-
subscriptionCredentialDetails: string;
|
|
20
|
-
newsletter: string;
|
|
21
|
-
mailerDetails: string;
|
|
22
|
-
newsletterItemDetails: string;
|
|
23
|
-
newsletterItemView: string;
|
|
24
|
-
newslettersUserList: string;
|
|
25
|
-
newsletterDetails: string;
|
|
26
|
-
permissionsList: string;
|
|
27
|
-
permissionsDetails: string;
|
|
28
|
-
rolesDetails: string;
|
|
29
|
-
productDetails: string;
|
|
30
|
-
productsUserList: string;
|
|
31
|
-
feedbackQuestions: string;
|
|
32
|
-
feedbackQuestionsDetails: string;
|
|
33
|
-
subscriptionDetails: string;
|
|
34
|
-
subscriptionProductDetails: string;
|
|
35
|
-
tipsDetails: string;
|
|
36
|
-
tosAndPrivacyDetails: string;
|
|
37
|
-
tosAndPrivacyView: string;
|
|
38
|
-
usersDetails: string;
|
|
39
|
-
domainConfig: string;
|
|
40
|
-
domainConfigDetails: string;
|
|
41
|
-
loginNotifications: string;
|
|
42
|
-
incidentConfig: string;
|
|
43
|
-
incidentDetails: string;
|
|
44
|
-
faqConfig: string;
|
|
45
|
-
faqDetails: string;
|
|
46
|
-
inviteUsers: string;
|
|
47
|
-
subscriptionList: string;
|
|
48
|
-
createResource: string;
|
|
49
|
-
createTag: string;
|
|
50
|
-
tags: string;
|
|
51
|
-
posts: string;
|
|
52
|
-
resourcesList: string;
|
|
53
|
-
};
|
|
54
|
-
isLoading: boolean;
|
|
6
|
+
export declare class DomainConfigOrganizationComponent extends BaseDomainConfigComponent {
|
|
7
|
+
protected readonly adminService: AdminService;
|
|
55
8
|
constructor(injector: Injector, adminService: AdminService);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
get f(): {
|
|
59
|
-
[key: string]: import("@angular/forms").AbstractControl<any, any>;
|
|
60
|
-
};
|
|
61
|
-
private getDomainConfigDetails;
|
|
62
|
-
onSave(): void;
|
|
9
|
+
protected getForm(): UntypedFormGroup;
|
|
10
|
+
protected getTabId(): string;
|
|
63
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DomainConfigOrganizationComponent, never>;
|
|
64
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<DomainConfigOrganizationComponent, "pw-domain-config-organization", never, {}, {}, never, never, false, never>;
|
|
65
13
|
}
|
|
@@ -1,64 +1,13 @@
|
|
|
1
|
-
import { Injector
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
4
|
-
import {
|
|
5
|
-
import { DomainConfig } from '../../../../shared/interface/domain-config.interface';
|
|
4
|
+
import { BaseDomainConfigComponent } from '../base-domain-config.component';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DomainConfigSecurityComponent extends
|
|
8
|
-
|
|
9
|
-
form: UntypedFormGroup;
|
|
10
|
-
submitted: boolean;
|
|
11
|
-
buttonBusy: boolean;
|
|
12
|
-
id: number;
|
|
13
|
-
data: DomainConfig;
|
|
14
|
-
routers: {
|
|
15
|
-
globalConfigDetails: string;
|
|
16
|
-
adminCredentialsDetails: string;
|
|
17
|
-
subscriptionCredentialDetails: string;
|
|
18
|
-
newsletter: string;
|
|
19
|
-
mailerDetails: string;
|
|
20
|
-
newsletterItemDetails: string;
|
|
21
|
-
newsletterItemView: string;
|
|
22
|
-
newslettersUserList: string;
|
|
23
|
-
newsletterDetails: string;
|
|
24
|
-
permissionsList: string;
|
|
25
|
-
permissionsDetails: string;
|
|
26
|
-
rolesDetails: string;
|
|
27
|
-
productDetails: string;
|
|
28
|
-
productsUserList: string;
|
|
29
|
-
feedbackQuestions: string;
|
|
30
|
-
feedbackQuestionsDetails: string;
|
|
31
|
-
subscriptionDetails: string;
|
|
32
|
-
subscriptionProductDetails: string;
|
|
33
|
-
tipsDetails: string;
|
|
34
|
-
tosAndPrivacyDetails: string;
|
|
35
|
-
tosAndPrivacyView: string;
|
|
36
|
-
usersDetails: string;
|
|
37
|
-
domainConfig: string;
|
|
38
|
-
domainConfigDetails: string;
|
|
39
|
-
loginNotifications: string;
|
|
40
|
-
incidentConfig: string;
|
|
41
|
-
incidentDetails: string;
|
|
42
|
-
faqConfig: string;
|
|
43
|
-
faqDetails: string;
|
|
44
|
-
inviteUsers: string;
|
|
45
|
-
subscriptionList: string;
|
|
46
|
-
createResource: string;
|
|
47
|
-
createTag: string;
|
|
48
|
-
tags: string;
|
|
49
|
-
posts: string;
|
|
50
|
-
resourcesList: string;
|
|
51
|
-
};
|
|
52
|
-
subscriptionId: number;
|
|
53
|
-
duplicateConfigId: any;
|
|
54
|
-
isLoading: boolean;
|
|
6
|
+
export declare class DomainConfigSecurityComponent extends BaseDomainConfigComponent {
|
|
7
|
+
protected readonly adminService: AdminService;
|
|
55
8
|
constructor(injector: Injector, adminService: AdminService);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
[key: string]: import("@angular/forms").AbstractControl<any, any>;
|
|
59
|
-
};
|
|
60
|
-
private getDomainConfigDetails;
|
|
61
|
-
onSave(): void;
|
|
9
|
+
protected getForm(): UntypedFormGroup;
|
|
10
|
+
protected getTabId(): string;
|
|
62
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DomainConfigSecurityComponent, never>;
|
|
63
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<DomainConfigSecurityComponent, "pw-domain-config-security", never, {}, {}, never, never, false, never>;
|
|
64
13
|
}
|
|
@@ -1,64 +1,13 @@
|
|
|
1
|
-
import { Injector
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
4
|
-
import {
|
|
5
|
-
import { DomainConfig } from '../../../../shared/interface/domain-config.interface';
|
|
4
|
+
import { BaseDomainConfigComponent } from '../base-domain-config.component';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DomainConfigSocialComponent extends
|
|
8
|
-
|
|
9
|
-
form: UntypedFormGroup;
|
|
10
|
-
submitted: boolean;
|
|
11
|
-
buttonBusy: boolean;
|
|
12
|
-
id: number;
|
|
13
|
-
subscriptionId: number;
|
|
14
|
-
duplicateConfigId: any;
|
|
15
|
-
data: DomainConfig;
|
|
16
|
-
routers: {
|
|
17
|
-
globalConfigDetails: string;
|
|
18
|
-
adminCredentialsDetails: string;
|
|
19
|
-
subscriptionCredentialDetails: string;
|
|
20
|
-
newsletter: string;
|
|
21
|
-
mailerDetails: string;
|
|
22
|
-
newsletterItemDetails: string;
|
|
23
|
-
newsletterItemView: string;
|
|
24
|
-
newslettersUserList: string;
|
|
25
|
-
newsletterDetails: string;
|
|
26
|
-
permissionsList: string;
|
|
27
|
-
permissionsDetails: string;
|
|
28
|
-
rolesDetails: string;
|
|
29
|
-
productDetails: string;
|
|
30
|
-
productsUserList: string;
|
|
31
|
-
feedbackQuestions: string;
|
|
32
|
-
feedbackQuestionsDetails: string;
|
|
33
|
-
subscriptionDetails: string;
|
|
34
|
-
subscriptionProductDetails: string;
|
|
35
|
-
tipsDetails: string;
|
|
36
|
-
tosAndPrivacyDetails: string;
|
|
37
|
-
tosAndPrivacyView: string;
|
|
38
|
-
usersDetails: string;
|
|
39
|
-
domainConfig: string;
|
|
40
|
-
domainConfigDetails: string;
|
|
41
|
-
loginNotifications: string;
|
|
42
|
-
incidentConfig: string;
|
|
43
|
-
incidentDetails: string;
|
|
44
|
-
faqConfig: string;
|
|
45
|
-
faqDetails: string;
|
|
46
|
-
inviteUsers: string;
|
|
47
|
-
subscriptionList: string;
|
|
48
|
-
createResource: string;
|
|
49
|
-
createTag: string;
|
|
50
|
-
tags: string;
|
|
51
|
-
posts: string;
|
|
52
|
-
resourcesList: string;
|
|
53
|
-
};
|
|
54
|
-
isLoading: boolean;
|
|
6
|
+
export declare class DomainConfigSocialComponent extends BaseDomainConfigComponent {
|
|
7
|
+
protected readonly adminService: AdminService;
|
|
55
8
|
constructor(injector: Injector, adminService: AdminService);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
[key: string]: import("@angular/forms").AbstractControl<any, any>;
|
|
59
|
-
};
|
|
60
|
-
private getDomainConfigDetails;
|
|
61
|
-
onSave(): void;
|
|
9
|
+
protected getForm(): UntypedFormGroup;
|
|
10
|
+
protected getTabId(): string;
|
|
62
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DomainConfigSocialComponent, never>;
|
|
63
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<DomainConfigSocialComponent, "pw-domain-config-social", never, {}, {}, never, never, false, never>;
|
|
64
13
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
3
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
+
import { AuthService } from '@posiwise/common-services';
|
|
4
5
|
import { LazyLoadEvent } from 'primeng/api';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class MailerListComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
7
8
|
private readonly adminService;
|
|
9
|
+
private readonly authService;
|
|
8
10
|
private readonly cdr;
|
|
9
11
|
private page;
|
|
10
12
|
data: {
|
|
@@ -56,7 +58,7 @@ export declare class MailerListComponent extends AppBaseComponent implements OnI
|
|
|
56
58
|
};
|
|
57
59
|
subscriptionId: number;
|
|
58
60
|
userLoggedIn: boolean;
|
|
59
|
-
constructor(adminService: AdminService, injector: Injector, cdr: ChangeDetectorRef);
|
|
61
|
+
constructor(adminService: AdminService, authService: AuthService, injector: Injector, cdr: ChangeDetectorRef);
|
|
60
62
|
ngOnInit(): void;
|
|
61
63
|
ngAfterViewChecked(): void;
|
|
62
64
|
onLazyLoad(event: LazyLoadEvent): void;
|
package/lib/components/newsletters/newsletter-item-details/newsletter-item-details.component.d.ts
CHANGED
|
@@ -4,13 +4,14 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
4
4
|
import { NgxGpAutocompleteDirective } from '@angular-magic/ngx-gp-autocomplete';
|
|
5
5
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
6
6
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
|
-
import { ProductService, TagService } from '@posiwise/common-services';
|
|
7
|
+
import { AuthService, ProductService, TagService } from '@posiwise/common-services';
|
|
8
8
|
import { NewsLetterItem, Tag } from '../../../shared/interface/newsletter.interface';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class NewsletterItemDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
11
11
|
private readonly adminService;
|
|
12
12
|
private readonly tagService;
|
|
13
13
|
private readonly productService;
|
|
14
|
+
private readonly authService;
|
|
14
15
|
private readonly sanitizer;
|
|
15
16
|
private readonly page;
|
|
16
17
|
placesRef: NgxGpAutocompleteDirective;
|
|
@@ -71,7 +72,7 @@ export declare class NewsletterItemDetailsComponent extends AppBaseComponent imp
|
|
|
71
72
|
userLoggedIn: boolean;
|
|
72
73
|
userNameSyntax: string;
|
|
73
74
|
editorConfig: any;
|
|
74
|
-
constructor(adminService: AdminService, tagService: TagService, productService: ProductService, injector: Injector, sanitizer: DomSanitizer);
|
|
75
|
+
constructor(adminService: AdminService, tagService: TagService, productService: ProductService, authService: AuthService, injector: Injector, sanitizer: DomSanitizer);
|
|
75
76
|
ngAfterViewInit(): void;
|
|
76
77
|
ngOnInit(): void;
|
|
77
78
|
get f(): {
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
3
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
+
import { AuthService } from '@posiwise/common-services';
|
|
4
5
|
import { User } from '@posiwise/common-utilities';
|
|
5
6
|
import { LazyLoadEvent } from 'primeng/api';
|
|
6
7
|
import { NewsLetterItem } from '../../../shared/interface/newsletter.interface';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class NewslettersItemsComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
9
10
|
private readonly adminService;
|
|
11
|
+
private readonly authService;
|
|
10
12
|
private readonly cdr;
|
|
11
13
|
searchTextItems: string;
|
|
12
14
|
newslettersItems: NewsLetterItem[];
|
|
@@ -65,7 +67,7 @@ export declare class NewslettersItemsComponent extends AppBaseComponent implemen
|
|
|
65
67
|
resourcesList: string;
|
|
66
68
|
};
|
|
67
69
|
userLoggedIn: boolean;
|
|
68
|
-
constructor(adminService: AdminService, injector: Injector, cdr: ChangeDetectorRef);
|
|
70
|
+
constructor(adminService: AdminService, authService: AuthService, injector: Injector, cdr: ChangeDetectorRef);
|
|
69
71
|
ngOnInit(): void;
|
|
70
72
|
ngAfterViewChecked(): void;
|
|
71
73
|
onLazyLoadNewsletterItems(event: LazyLoadEvent): void;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
3
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
+
import { AuthService } from '@posiwise/common-services';
|
|
4
5
|
import { LazyLoadEvent } from 'primeng/api';
|
|
5
6
|
import { NewsLetter, NewsLetterResponse } from '../../../shared/interface/newsletter.interface';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class NewslettersListComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
8
9
|
private readonly adminService;
|
|
10
|
+
private readonly authService;
|
|
9
11
|
private readonly cdr;
|
|
10
12
|
data: NewsLetterResponse;
|
|
11
13
|
searchText: string;
|
|
@@ -52,7 +54,7 @@ export declare class NewslettersListComponent extends AppBaseComponent implement
|
|
|
52
54
|
};
|
|
53
55
|
subscriptionId: number;
|
|
54
56
|
userLoggedIn: boolean;
|
|
55
|
-
constructor(adminService: AdminService, injector: Injector, cdr: ChangeDetectorRef);
|
|
57
|
+
constructor(adminService: AdminService, authService: AuthService, injector: Injector, cdr: ChangeDetectorRef);
|
|
56
58
|
ngOnInit(): void;
|
|
57
59
|
ngAfterViewChecked(): void;
|
|
58
60
|
onLazyLoad(event: LazyLoadEvent): void;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
3
|
-
import { ProductService } from '@posiwise/common-services';
|
|
3
|
+
import { AuthService, ProductService } from '@posiwise/common-services';
|
|
4
4
|
import { Product } from '@posiwise/common-utilities';
|
|
5
5
|
import { PasswordValidationComponent } from '@posiwise/shared-components';
|
|
6
6
|
import { LazyLoadEvent } from 'primeng/api';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ProductsListComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
9
9
|
private readonly productService;
|
|
10
|
+
private readonly authService;
|
|
10
11
|
private readonly cdr;
|
|
11
12
|
passwordValidationModalForProductDelete: PasswordValidationComponent;
|
|
12
13
|
private productToDelete;
|
|
@@ -62,7 +63,7 @@ export declare class ProductsListComponent extends AppBaseComponent implements O
|
|
|
62
63
|
regions: any[];
|
|
63
64
|
filterByFeatureKeys: any[];
|
|
64
65
|
featureKeysList: any[];
|
|
65
|
-
constructor(productService: ProductService, injector: Injector, cdr: ChangeDetectorRef);
|
|
66
|
+
constructor(productService: ProductService, authService: AuthService, injector: Injector, cdr: ChangeDetectorRef);
|
|
66
67
|
ngOnInit(): void;
|
|
67
68
|
ngAfterViewChecked(): void;
|
|
68
69
|
onLazyLoad(event: LazyLoadEvent): void;
|
package/lib/components/subscriptions/subscriptions-insight/base-subscription-insight.component.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
3
|
+
import { Plotly, User } from '@posiwise/common-utilities';
|
|
4
|
+
import { CommentContext } from '../../../shared/interface/admin-module-shared.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare abstract class BaseSubscriptionInsightComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
7
|
+
protected readonly cdr: ChangeDetectorRef;
|
|
8
|
+
content: TemplateRef<CommentContext>;
|
|
9
|
+
graph: Plotly.Figure;
|
|
10
|
+
totalRecords: number;
|
|
11
|
+
feedbacks: any[];
|
|
12
|
+
loading: boolean;
|
|
13
|
+
isLoaded: boolean;
|
|
14
|
+
page: number;
|
|
15
|
+
graphLoading: boolean;
|
|
16
|
+
subscriptionId: number;
|
|
17
|
+
currentUser: User;
|
|
18
|
+
commentToShow: string;
|
|
19
|
+
selectedDateRange: any;
|
|
20
|
+
dateRanges: any;
|
|
21
|
+
constructor(injector: Injector, cdr: ChangeDetectorRef);
|
|
22
|
+
ngAfterViewChecked(): void;
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
onDateRangeSelect(event: {
|
|
25
|
+
startDate: moment.Moment;
|
|
26
|
+
endDate: moment.Moment;
|
|
27
|
+
}): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
protected abstract getChartData(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseSubscriptionInsightComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseSubscriptionInsightComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
32
|
+
}
|
|
@@ -1,35 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, Injector } from '@angular/core';
|
|
2
2
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
3
|
-
import {
|
|
4
|
-
import { Plotly, User } from '@posiwise/common-utilities';
|
|
5
|
-
import { CommentContext } from '../../../../shared/interface/admin-module-shared.interface';
|
|
3
|
+
import { BaseSubscriptionInsightComponent } from '../base-subscription-insight.component';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class SubscriptionInsightAveragePriceComponent extends
|
|
5
|
+
export declare class SubscriptionInsightAveragePriceComponent extends BaseSubscriptionInsightComponent {
|
|
8
6
|
private readonly adminService;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
graph: Plotly.Figure;
|
|
12
|
-
totalRecords: number;
|
|
13
|
-
feedbacks: any[];
|
|
14
|
-
loading: boolean;
|
|
15
|
-
isLoaded: boolean;
|
|
16
|
-
page: number;
|
|
17
|
-
graphLoading: boolean;
|
|
18
|
-
subscriptionId: number;
|
|
19
|
-
currentUser: User;
|
|
20
|
-
commentToShow: string;
|
|
21
|
-
selectedDateRange: any;
|
|
22
|
-
dateRanges: any;
|
|
23
|
-
constructor(adminService: AdminService, injector: Injector, cdr: ChangeDetectorRef);
|
|
24
|
-
ngAfterViewChecked(): void;
|
|
25
|
-
ngOnInit(): void;
|
|
26
|
-
/** Function to get the data for the graph */
|
|
27
|
-
private getChartData;
|
|
28
|
-
onDateRangeSelect(event: {
|
|
29
|
-
startDate: moment.Moment;
|
|
30
|
-
endDate: moment.Moment;
|
|
31
|
-
}): void;
|
|
32
|
-
ngOnDestroy(): void;
|
|
7
|
+
constructor(injector: Injector, cdr: ChangeDetectorRef, adminService: AdminService);
|
|
8
|
+
protected getChartData(): void;
|
|
33
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionInsightAveragePriceComponent, never>;
|
|
34
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionInsightAveragePriceComponent, "pw-subscription-insight-average-price", never, {}, {}, never, never, false, never>;
|
|
35
11
|
}
|
|
@@ -1,35 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, Injector } from '@angular/core';
|
|
2
2
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
3
|
-
import {
|
|
4
|
-
import { Plotly, User } from '@posiwise/common-utilities';
|
|
5
|
-
import { CommentContext } from '../../../../shared/interface/admin-module-shared.interface';
|
|
3
|
+
import { BaseSubscriptionInsightComponent } from '../base-subscription-insight.component';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class SubscriptionInsightAverageUserComponent extends
|
|
5
|
+
export declare class SubscriptionInsightAverageUserComponent extends BaseSubscriptionInsightComponent {
|
|
8
6
|
private readonly adminService;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
graph: Plotly.Figure;
|
|
12
|
-
totalRecords: number;
|
|
13
|
-
feedbacks: any[];
|
|
14
|
-
loading: boolean;
|
|
15
|
-
isLoaded: boolean;
|
|
16
|
-
page: number;
|
|
17
|
-
graphLoading: boolean;
|
|
18
|
-
subscriptionId: number;
|
|
19
|
-
currentUser: User;
|
|
20
|
-
commentToShow: string;
|
|
21
|
-
selectedDateRange: any;
|
|
22
|
-
dateRanges: any;
|
|
23
|
-
constructor(adminService: AdminService, injector: Injector, cdr: ChangeDetectorRef);
|
|
24
|
-
ngAfterViewChecked(): void;
|
|
25
|
-
ngOnInit(): void;
|
|
26
|
-
/** Function to get the data for the graph */
|
|
27
|
-
private getChartData;
|
|
28
|
-
onDateRangeSelect(event: {
|
|
29
|
-
startDate: moment.Moment;
|
|
30
|
-
endDate: moment.Moment;
|
|
31
|
-
}): void;
|
|
32
|
-
ngOnDestroy(): void;
|
|
7
|
+
constructor(injector: Injector, cdr: ChangeDetectorRef, adminService: AdminService);
|
|
8
|
+
protected getChartData(): void;
|
|
33
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionInsightAverageUserComponent, never>;
|
|
34
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionInsightAverageUserComponent, "pw-subscription-insight-average-user", never, {}, {}, never, never, false, never>;
|
|
35
11
|
}
|
|
@@ -1,35 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, Injector } from '@angular/core';
|
|
2
2
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
3
|
-
import {
|
|
4
|
-
import { Plotly, User } from '@posiwise/common-utilities';
|
|
5
|
-
import { CommentContext } from '../../../../shared/interface/admin-module-shared.interface';
|
|
3
|
+
import { BaseSubscriptionInsightComponent } from '../base-subscription-insight.component';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class SubscriptionInsightProcuctSessionComponent extends
|
|
5
|
+
export declare class SubscriptionInsightProcuctSessionComponent extends BaseSubscriptionInsightComponent {
|
|
8
6
|
private readonly adminService;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
graph: Plotly.Figure;
|
|
12
|
-
totalRecords: number;
|
|
13
|
-
feedbacks: any[];
|
|
14
|
-
loading: boolean;
|
|
15
|
-
isLoaded: boolean;
|
|
16
|
-
page: number;
|
|
17
|
-
graphLoading: boolean;
|
|
18
|
-
subscriptionId: number;
|
|
19
|
-
currentUser: User;
|
|
20
|
-
commentToShow: string;
|
|
21
|
-
selectedDateRange: any;
|
|
22
|
-
dateRanges: any;
|
|
23
|
-
constructor(adminService: AdminService, injector: Injector, cdr: ChangeDetectorRef);
|
|
24
|
-
ngAfterViewChecked(): void;
|
|
25
|
-
ngOnInit(): void;
|
|
26
|
-
/** Function to get the data for the graph */
|
|
27
|
-
private getChartData;
|
|
28
|
-
onDateRangeSelect(event: {
|
|
29
|
-
startDate: moment.Moment;
|
|
30
|
-
endDate: moment.Moment;
|
|
31
|
-
}): void;
|
|
32
|
-
ngOnDestroy(): void;
|
|
7
|
+
constructor(injector: Injector, cdr: ChangeDetectorRef, adminService: AdminService);
|
|
8
|
+
protected getChartData(): void;
|
|
33
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionInsightProcuctSessionComponent, never>;
|
|
34
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionInsightProcuctSessionComponent, "pw-subscription-insight-product-session", never, {}, {}, never, never, false, never>;
|
|
35
11
|
}
|
|
@@ -1,34 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, Injector } from '@angular/core';
|
|
2
2
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
3
|
-
import {
|
|
4
|
-
import { Plotly, User } from '@posiwise/common-utilities';
|
|
5
|
-
import { CommentContext } from '../../../../shared/interface/admin-module-shared.interface';
|
|
3
|
+
import { BaseSubscriptionInsightComponent } from '../base-subscription-insight.component';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class SubscriptionInsightUserSessionComponent extends
|
|
5
|
+
export declare class SubscriptionInsightUserSessionComponent extends BaseSubscriptionInsightComponent {
|
|
8
6
|
private readonly adminService;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
graph: Plotly.Figure;
|
|
12
|
-
totalRecords: number;
|
|
13
|
-
feedbacks: any[];
|
|
14
|
-
loading: boolean;
|
|
15
|
-
isLoaded: boolean;
|
|
16
|
-
page: number;
|
|
17
|
-
graphLoading: boolean;
|
|
18
|
-
subscriptionId: number;
|
|
19
|
-
currentUser: User;
|
|
20
|
-
commentToShow: string;
|
|
21
|
-
selectedDateRange: any;
|
|
22
|
-
dateRanges: any;
|
|
23
|
-
constructor(adminService: AdminService, injector: Injector, cdr: ChangeDetectorRef);
|
|
24
|
-
ngAfterViewChecked(): void;
|
|
25
|
-
ngOnInit(): void;
|
|
26
|
-
private getChartData;
|
|
27
|
-
onDateRangeSelect(event: {
|
|
28
|
-
startDate: moment.Moment;
|
|
29
|
-
endDate: moment.Moment;
|
|
30
|
-
}): void;
|
|
31
|
-
ngOnDestroy(): void;
|
|
7
|
+
constructor(injector: Injector, cdr: ChangeDetectorRef, adminService: AdminService);
|
|
8
|
+
protected getChartData(): void;
|
|
32
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionInsightUserSessionComponent, never>;
|
|
33
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionInsightUserSessionComponent, "pw-subscription-insight-user-session", never, {}, {}, never, never, false, never>;
|
|
34
11
|
}
|