@posiwise/admin-module 0.0.151 → 0.0.153

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 (96) hide show
  1. package/esm2022/lib/admin-module.routing.mjs +20 -10
  2. package/esm2022/lib/admin.module.mjs +4 -1
  3. package/esm2022/lib/components/config/global-config-details/global-config-details.component.mjs +7 -4
  4. package/esm2022/lib/components/config/global-config-list/global-config-list.component.mjs +1 -1
  5. package/esm2022/lib/components/contact-us/contact-us-list/contact-us-list.component.mjs +3 -3
  6. package/esm2022/lib/components/credentials/credentials/credentials.component.mjs +1 -1
  7. package/esm2022/lib/components/credentials/subscription-credentials-details/subscription-credentials-details.component.mjs +3 -3
  8. package/esm2022/lib/components/domain-config/domain-config-details/domain-config-build/domain-config-build.component.mjs +135 -21
  9. package/esm2022/lib/components/domain-config/domain-config-details/domain-config-core/domain-config-core.component.mjs +1 -2
  10. package/esm2022/lib/components/domain-config/domain-config-list/domain-config-list.component.mjs +1 -1
  11. package/esm2022/lib/components/faqs/faqs-list/faqs-list.component.mjs +1 -1
  12. package/esm2022/lib/components/login-notifications/login-notification-details/login-notification-details.component.mjs +3 -3
  13. package/esm2022/lib/components/login-notifications/login-notifications-list/login-notifications-list.component.mjs +3 -3
  14. package/esm2022/lib/components/mailer/mailer-list/mailer-list.component.mjs +1 -1
  15. package/esm2022/lib/components/newsletters/newsletters-insight/newsletters-insight.component.mjs +3 -3
  16. package/esm2022/lib/components/newsletters/newsletters-items/newsletters-items.component.mjs +1 -1
  17. package/esm2022/lib/components/newsletters/newsletters-list/newsletters-list.component.mjs +1 -1
  18. package/esm2022/lib/components/permissions/permissions-list/permissions-list.component.mjs +1 -1
  19. package/esm2022/lib/components/permissions/roles-list/roles-list.component.mjs +1 -1
  20. package/esm2022/lib/components/products/product-details/product-details.component.mjs +1 -1
  21. package/esm2022/lib/components/products/products-list/products-list.component.mjs +1 -1
  22. package/esm2022/lib/components/resources/resources-admin-details/resources-admin-details.component.mjs +67 -6
  23. package/esm2022/lib/components/resources/resources-admin-tabs/resources-index/resources-index.component.mjs +51 -20
  24. package/esm2022/lib/components/resources/resources-admin-tabs/resources-insight/resources-insight.component.mjs +3 -3
  25. package/esm2022/lib/components/subscriptions/subscription-details/subscription-details.component.mjs +28 -6
  26. package/esm2022/lib/components/subscriptions/subscription-products/subscription-products.component.mjs +1 -1
  27. package/esm2022/lib/components/subscriptions/subscription-users/subscription-users.component.mjs +3 -3
  28. package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-average-price/subscription-insight-average-price.component.mjs +3 -3
  29. package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-average-user/subscription-insight-average-user.component.mjs +3 -3
  30. package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-churn/subscription-insight-churn.component.mjs +3 -3
  31. package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-nps/subscription-insight-nps.component.mjs +3 -3
  32. package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-product-session/subscription-insight-product-session.component.mjs +3 -3
  33. package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-revenue/subscription-insight-revenue.component.mjs +3 -3
  34. package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-user-session/subscription-insight-user-session.component.mjs +3 -3
  35. package/esm2022/lib/components/subscriptions/subscriptions-insight/subscriptions-insight.component.mjs +3 -3
  36. package/esm2022/lib/components/subscriptions/subscriptions-list/subscriptions-list.component.mjs +1 -1
  37. package/esm2022/lib/components/tags/tags-details/tags-details.component.mjs +135 -0
  38. package/esm2022/lib/components/tags/tags-list/tags-list.component.mjs +18 -45
  39. package/esm2022/lib/components/tips/tips-list/tips-list.component.mjs +1 -1
  40. package/esm2022/lib/components/tracking/versions/versions.component.mjs +1 -1
  41. package/esm2022/lib/components/users/users-insight/users-insight.component.mjs +3 -3
  42. package/esm2022/lib/components/users/users-list/users-list.component.mjs +3 -3
  43. package/esm2022/lib/shared/interface/domain-config.interface.mjs +1 -1
  44. package/esm2022/lib/shared/routers/routers.mjs +3 -1
  45. package/fesm2022/posiwise-admin-module.mjs +518 -188
  46. package/fesm2022/posiwise-admin-module.mjs.map +1 -1
  47. package/lib/admin.module.d.ts +72 -71
  48. package/lib/components/TOS/terms-of-service/terms-of-service.component.d.ts +2 -0
  49. package/lib/components/config/global-config-details/global-config-details.component.d.ts +1 -1
  50. package/lib/components/config/global-config-list/global-config-list.component.d.ts +2 -0
  51. package/lib/components/credentials/credentials/credentials.component.d.ts +2 -0
  52. package/lib/components/credentials/subscription-credentials/subscription-credentials.component.d.ts +2 -0
  53. package/lib/components/domain-config/domain-config-details/domain-config-build/domain-config-build.component.d.ts +16 -2
  54. package/lib/components/domain-config/domain-config-details/domain-config-core/domain-config-core.component.d.ts +4 -2
  55. package/lib/components/domain-config/domain-config-details/domain-config-details.component.d.ts +2 -0
  56. package/lib/components/domain-config/domain-config-details/domain-config-integrations/domain-config-integrations.component.d.ts +2 -0
  57. package/lib/components/domain-config/domain-config-details/domain-config-interface/domain-config-interface.component.d.ts +2 -0
  58. package/lib/components/domain-config/domain-config-details/domain-config-organization/domain-config-organization.component.d.ts +2 -0
  59. package/lib/components/domain-config/domain-config-details/domain-config-security/domain-config-security.component.d.ts +2 -0
  60. package/lib/components/domain-config/domain-config-details/domain-config-social/domain-config-social.component.d.ts +2 -0
  61. package/lib/components/domain-config/domain-config-list/domain-config-list.component.d.ts +2 -0
  62. package/lib/components/faqs/add-faq/add-faq.component.d.ts +2 -0
  63. package/lib/components/faqs/edit-faq/edit-faq.component.d.ts +2 -0
  64. package/lib/components/faqs/faqs-list/faqs-list.component.d.ts +2 -0
  65. package/lib/components/feedback-questions/feedback-questions-details/feedback-questions-details.component.d.ts +2 -0
  66. package/lib/components/feedback-questions/feedback-questions-list/feedback-questions-list.component.d.ts +2 -0
  67. package/lib/components/incidents/add-edit-incident/add-edit-incident.component.d.ts +2 -0
  68. package/lib/components/incidents/incidents-list/incidents-list.component.d.ts +2 -0
  69. package/lib/components/login-notifications/login-notification-details/login-notification-details.component.d.ts +2 -0
  70. package/lib/components/login-notifications/login-notifications-list/login-notifications-list.component.d.ts +2 -0
  71. package/lib/components/mailer/mailer-details/mailer-details.component.d.ts +2 -0
  72. package/lib/components/mailer/mailer-list/mailer-list.component.d.ts +2 -0
  73. package/lib/components/newsletters/newsletter-details/newsletter-details.component.d.ts +2 -0
  74. package/lib/components/newsletters/newsletter-item-details/newsletter-item-details.component.d.ts +2 -0
  75. package/lib/components/newsletters/newsletters-items/newsletters-items-view-details/newsletters-items-view-details.component.d.ts +2 -0
  76. package/lib/components/newsletters/newsletters-items/newsletters-items.component.d.ts +2 -0
  77. package/lib/components/newsletters/newsletters-list/newsletters-list.component.d.ts +2 -0
  78. package/lib/components/permissions/permissions-details/permissions-details.component.d.ts +2 -0
  79. package/lib/components/permissions/permissions-list/permissions-list.component.d.ts +2 -0
  80. package/lib/components/permissions/roles-list/roles-list.component.d.ts +2 -0
  81. package/lib/components/products/products-list/products-list.component.d.ts +2 -0
  82. package/lib/components/resources/resources-admin-details/resources-admin-details.component.d.ts +8 -0
  83. package/lib/components/resources/resources-admin-tabs/resources-index/resources-index.component.d.ts +9 -1
  84. package/lib/components/subscriptions/subscription-details/subscription-details.component.d.ts +5 -3
  85. package/lib/components/subscriptions/subscription-product-details/subscription-product-details.component.d.ts +2 -0
  86. package/lib/components/subscriptions/subscription-products/subscription-products.component.d.ts +2 -0
  87. package/lib/components/subscriptions/subscription-users/subscription-users.component.d.ts +2 -0
  88. package/lib/components/subscriptions/subscriptions-list/invite-users/invite-users.component.d.ts +2 -0
  89. package/lib/components/subscriptions/subscriptions-list/subscriptions-list.component.d.ts +2 -0
  90. package/lib/components/tags/tags-details/tags-details.component.d.ts +32 -0
  91. package/lib/components/tags/tags-list/tags-list.component.d.ts +39 -1
  92. package/lib/components/tips/tips-list/tips-list.component.d.ts +2 -0
  93. package/lib/components/users/users-list/users-list.component.d.ts +2 -0
  94. package/lib/shared/interface/domain-config.interface.d.ts +17 -0
  95. package/lib/shared/routers/routers.d.ts +2 -0
  96. package/package.json +1 -1
@@ -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 { TagService } from '@posiwise/common-services';
4
5
  import { ResourcePost, Subscription } from '@posiwise/common-utilities';
5
6
  import { LazyLoadEvent } from 'primeng/api';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class ResourcesIndexComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
8
9
  private readonly adminService;
10
+ private readonly tagService;
9
11
  private readonly cdr;
10
12
  private readonly postsTotal;
11
13
  private page;
@@ -16,6 +18,8 @@ export declare class ResourcesIndexComponent extends AppBaseComponent implements
16
18
  };
17
19
  loading: boolean;
18
20
  isLoaded: boolean;
21
+ tagOptions: any[];
22
+ selectedTags: string[];
19
23
  searchTextItems: string;
20
24
  subscriptionId: any;
21
25
  subscription: Subscription;
@@ -52,13 +56,17 @@ export declare class ResourcesIndexComponent extends AppBaseComponent implements
52
56
  inviteUsers: string;
53
57
  subscriptionList: string;
54
58
  createResource: string;
59
+ createTag: string;
60
+ tags: string;
55
61
  posts: string;
56
62
  resourcesList: string;
57
63
  };
58
64
  blogPermission: string;
59
65
  isBlogAdmin: string;
60
- constructor(adminService: AdminService, injector: Injector, cdr: ChangeDetectorRef);
66
+ constructor(adminService: AdminService, tagService: TagService, injector: Injector, cdr: ChangeDetectorRef);
61
67
  ngOnInit(): void;
68
+ getTags(): void;
69
+ onTagChange(): void;
62
70
  ngAfterViewChecked(): void;
63
71
  onLazyLoad(event: LazyLoadEvent): void;
64
72
  private getPosts;
@@ -15,9 +15,11 @@ export declare class SubscriptionDetailsComponent extends AppBaseComponent imple
15
15
  private readonly commonService;
16
16
  private readonly dateFormatService;
17
17
  private subscribeRoles;
18
- organizationSizes$: Observable<string>;
19
- organizationTypes$: Observable<string>;
20
- organizationIndustries$: Observable<string>;
18
+ organizationSizes$: Observable<unknown>;
19
+ organizationTypes$: Observable<unknown>;
20
+ organizationIndustries$: Observable<{
21
+ organization_industries: unknown[];
22
+ }>;
21
23
  form: UntypedFormGroup;
22
24
  id: number;
23
25
  submitted: boolean;
@@ -49,6 +49,8 @@ export declare class SubscriptionProductDetailsComponent extends AppBaseComponen
49
49
  inviteUsers: string;
50
50
  subscriptionList: string;
51
51
  createResource: string;
52
+ createTag: string;
53
+ tags: string;
52
54
  posts: string;
53
55
  resourcesList: string;
54
56
  };
@@ -47,6 +47,8 @@ export declare class SubscriptionProductsComponent extends AppBaseComponent impl
47
47
  inviteUsers: string;
48
48
  subscriptionList: string;
49
49
  createResource: string;
50
+ createTag: string;
51
+ tags: string;
50
52
  posts: string;
51
53
  resourcesList: string;
52
54
  };
@@ -58,6 +58,8 @@ export declare class SubscriptionUsersComponent extends AppBaseComponent impleme
58
58
  inviteUsers: string;
59
59
  subscriptionList: string;
60
60
  createResource: string;
61
+ createTag: string;
62
+ tags: string;
61
63
  posts: string;
62
64
  resourcesList: string;
63
65
  };
@@ -66,6 +66,8 @@ export declare class InviteUsersComponent extends AppBaseComponent implements On
66
66
  inviteUsers: string;
67
67
  subscriptionList: string;
68
68
  createResource: string;
69
+ createTag: string;
70
+ tags: string;
69
71
  posts: string;
70
72
  resourcesList: string;
71
73
  };
@@ -69,6 +69,8 @@ export declare class SubscriptionsListComponent extends AppBaseComponent impleme
69
69
  inviteUsers: string;
70
70
  subscriptionList: string;
71
71
  createResource: string;
72
+ createTag: string;
73
+ tags: string;
72
74
  posts: string;
73
75
  resourcesList: string;
74
76
  };
@@ -0,0 +1,32 @@
1
+ import { ChangeDetectorRef, Injector, OnInit } from '@angular/core';
2
+ import { UntypedFormGroup } from '@angular/forms';
3
+ import { AppBaseComponent } from '@posiwise/app-base-component';
4
+ import { TagService } from '@posiwise/common-services';
5
+ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
6
+ import * as i0 from "@angular/core";
7
+ export declare class TagDetailsComponent extends AppBaseComponent implements OnInit {
8
+ private readonly tagService;
9
+ private cdRef;
10
+ private modalService;
11
+ form: UntypedFormGroup;
12
+ tagTypes: any[];
13
+ tagCategories: any[];
14
+ buttonBusy: boolean;
15
+ subscriptionId: number;
16
+ currentTag: any;
17
+ image: string | null;
18
+ file: File;
19
+ constructor(injector: Injector, tagService: TagService, cdRef: ChangeDetectorRef, modalService: NgbModal);
20
+ ngOnInit(): void;
21
+ openModal(modalRef: any): void;
22
+ onClose(): void;
23
+ onImageSelected(dataUrl: string): void;
24
+ dataURLtoBlob(dataUrl: string): Blob;
25
+ handleImageError(event: Event, fallbackPath: string): void;
26
+ patchForm(data: any): void;
27
+ onSave(): void;
28
+ private getTagTypes;
29
+ private getTagCategories;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagDetailsComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<TagDetailsComponent, "pw-tag-details", never, {}, {}, never, never, false, never>;
32
+ }
@@ -24,15 +24,53 @@ export declare class TagsListComponent extends AppBaseComponent implements OnDes
24
24
  tagTypes: any[];
25
25
  tagCategoryNames: any[];
26
26
  totalTagRecordsUnFilter: number;
27
+ routers: {
28
+ globalConfigDetails: string;
29
+ adminCredentialsDetails: string;
30
+ subscriptionCredentialDetails: string;
31
+ newsletter: string;
32
+ mailerDetails: string;
33
+ newsletterItemDetails: string;
34
+ newsletterItemView: string;
35
+ newslettersUserList: string;
36
+ newsletterDetails: string;
37
+ permissionsList: string;
38
+ permissionsDetails: string;
39
+ rolesDetails: string;
40
+ productDetails: string;
41
+ productsUserList: string;
42
+ feedbackQuestions: string;
43
+ feedbackQuestionsDetails: string;
44
+ subscriptionDetails: string;
45
+ subscriptionProductDetails: string;
46
+ tipsDetails: string;
47
+ tosAndPrivacyDetails: string;
48
+ tosAndPrivacyView: string;
49
+ usersDetails: string;
50
+ domainConfig: string;
51
+ domainConfigDetails: string;
52
+ loginNotifications: string;
53
+ incidentConfig: string;
54
+ incidentDetails: string;
55
+ faqConfig: string;
56
+ faqDetails: string;
57
+ inviteUsers: string;
58
+ subscriptionList: string;
59
+ createResource: string;
60
+ createTag: string;
61
+ tags: string;
62
+ posts: string;
63
+ resourcesList: string;
64
+ };
27
65
  constructor(injector: Injector, modalService: NgbModal, tagService: TagService, cdr: ChangeDetectorRef);
28
66
  ngAfterViewChecked(): void;
29
67
  ngOnInit(): void;
68
+ navigateToEdit(item: any): void;
30
69
  onLazyLoad(event: LazyLoadEvent): void;
31
70
  private getTags;
32
71
  private getTagTypes;
33
72
  onDelete(tag: any): void;
34
73
  onTagEdit(content: any, item: any): void;
35
- onSave(): void;
36
74
  ngOnDestroy(): void;
37
75
  static ɵfac: i0.ɵɵFactoryDeclaration<TagsListComponent, never>;
38
76
  static ɵcmp: i0.ɵɵComponentDeclaration<TagsListComponent, "pw-admin-tags-list", never, {}, {}, never, never, false, never>;
@@ -40,6 +40,8 @@ export declare class TipsComponent extends AppBaseComponent implements OnInit, O
40
40
  inviteUsers: string;
41
41
  subscriptionList: string;
42
42
  createResource: string;
43
+ createTag: string;
44
+ tags: string;
43
45
  posts: string;
44
46
  resourcesList: string;
45
47
  };
@@ -72,6 +72,8 @@ export declare class UserListComponent extends AppBaseComponent implements OnIni
72
72
  inviteUsers: string;
73
73
  subscriptionList: string;
74
74
  createResource: string;
75
+ createTag: string;
76
+ tags: string;
75
77
  posts: string;
76
78
  resourcesList: string;
77
79
  };
@@ -10,7 +10,24 @@ interface Logo {
10
10
  url: string;
11
11
  };
12
12
  }
13
+ export interface BookDemoLink {
14
+ title: string;
15
+ url: string;
16
+ }
17
+ export interface BookDemo {
18
+ title: string;
19
+ description: string;
20
+ items: BookDemoLink[];
21
+ }
13
22
  export interface DomainConfig {
23
+ partners: {
24
+ description: string;
25
+ title: string;
26
+ items: Array<{
27
+ image_url: string;
28
+ }>;
29
+ };
30
+ book_demo: BookDemo;
14
31
  id: number;
15
32
  active: boolean;
16
33
  frontend_repo_name?: string;
@@ -31,6 +31,8 @@ export declare const ROUTERS: {
31
31
  inviteUsers: string;
32
32
  subscriptionList: string;
33
33
  createResource: string;
34
+ createTag: string;
35
+ tags: string;
34
36
  posts: string;
35
37
  resourcesList: string;
36
38
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/admin-module",
3
- "version": "0.0.151",
3
+ "version": "0.0.153",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "17.3.11",
6
6
  "@angular/core": "17.3.11",