@posiwise/resource-module 0.0.135 → 0.0.137

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 (64) hide show
  1. package/esm2022/lib/public/components/base/base-resource.component.mjs +127 -0
  2. package/esm2022/lib/public/components/base/base-top-banner.component.mjs +69 -0
  3. package/esm2022/lib/public/components/reslease-note-card/release-note-card.component.mjs +9 -9
  4. package/esm2022/lib/public/components/resource-blogs/resource-blog-top-banner/resource-blog-top-banner.component.mjs +10 -51
  5. package/esm2022/lib/public/components/resource-blogs/resource-blog.component.mjs +10 -45
  6. package/esm2022/lib/public/components/resource-case-studies/case-studies-cards/case-studies-cards.component.mjs +9 -9
  7. package/esm2022/lib/public/components/resource-case-studies/resource-case-studies.component.mjs +16 -66
  8. package/esm2022/lib/public/components/resource-company-card/resource-company-card.component.mjs +15 -13
  9. package/esm2022/lib/public/components/resource-edit-card/resource-edit-card.component.mjs +15 -15
  10. package/esm2022/lib/public/components/resource-integration/integration-top-banner/integration-top-banner.component.mjs +10 -52
  11. package/esm2022/lib/public/components/resource-integration/resource-integration.component.mjs +11 -10
  12. package/esm2022/lib/public/components/resource-post/related-resources/related-resources.component.mjs +7 -7
  13. package/esm2022/lib/public/components/resource-post/related-resources/resource-cards/resource-cards.component.mjs +9 -9
  14. package/esm2022/lib/public/components/resource-post/resource-post-details/resource-post-details.component.mjs +8 -7
  15. package/esm2022/lib/public/components/resource-release-notes/resource-release-notes-top-banner/resource-release-notes-top-banner.component.mjs +10 -51
  16. package/esm2022/lib/public/components/resource-release-notes/resource-release-notes.component.mjs +14 -17
  17. package/esm2022/lib/public/components/resource-top-banner-edit/resource-top-banner-edit.component.mjs +16 -16
  18. package/esm2022/lib/public/components/resource-vault/resource-vault.component.mjs +14 -28
  19. package/esm2022/lib/public/components/resource-videos/resource-video-cards/resource-video-cards.component.mjs +9 -9
  20. package/esm2022/lib/public/components/resource-videos/resource-videos-top-banner/resource-videos-top-banner.component.mjs +10 -51
  21. package/esm2022/lib/public/components/resource-videos/resource-videos.component.mjs +10 -45
  22. package/esm2022/lib/public/components/resource-webinars/replay-event-cards/replay-event-cards.component.mjs +7 -7
  23. package/esm2022/lib/public/components/resource-webinars/resource-webinars.component.mjs +7 -7
  24. package/esm2022/lib/public/components/resource-webinars/upcoming-event-cards/upcoming-event-cards.component.mjs +9 -9
  25. package/esm2022/lib/public/components/resources/resource-tags/resource-tags.component.mjs +9 -9
  26. package/esm2022/lib/public/components/resources/vault-section/vault-section.component.mjs +20 -18
  27. package/esm2022/lib/public/components/resources-hub/resources-hub.component.mjs +9 -9
  28. package/esm2022/lib/public/components/resources-read/resources-read.component.mjs +7 -7
  29. package/esm2022/lib/public/components/testimonial-card/testimonial-card.component.mjs +3 -3
  30. package/esm2022/lib/public/components/white-papers/white-papers-top-banner/white-papers-top-banner.component.mjs +10 -51
  31. package/esm2022/lib/public/components/white-papers/white-papers.component.mjs +10 -45
  32. package/fesm2022/posiwise-resource-module.mjs +420 -586
  33. package/fesm2022/posiwise-resource-module.mjs.map +1 -1
  34. package/lib/public/components/base/base-resource.component.d.ts +39 -0
  35. package/lib/public/components/base/base-top-banner.component.d.ts +30 -0
  36. package/lib/public/components/reslease-note-card/release-note-card.component.d.ts +3 -2
  37. package/lib/public/components/resource-blogs/resource-blog-top-banner/resource-blog-top-banner.component.d.ts +6 -21
  38. package/lib/public/components/resource-blogs/resource-blog.component.d.ts +6 -16
  39. package/lib/public/components/resource-case-studies/case-studies-cards/case-studies-cards.component.d.ts +3 -2
  40. package/lib/public/components/resource-case-studies/resource-case-studies.component.d.ts +9 -23
  41. package/lib/public/components/resource-company-card/resource-company-card.component.d.ts +4 -2
  42. package/lib/public/components/resource-edit-card/resource-edit-card.component.d.ts +7 -6
  43. package/lib/public/components/resource-integration/integration-top-banner/integration-top-banner.component.d.ts +6 -22
  44. package/lib/public/components/resource-integration/resource-integration.component.d.ts +3 -2
  45. package/lib/public/components/resource-post/related-resources/related-resources.component.d.ts +3 -2
  46. package/lib/public/components/resource-post/related-resources/resource-cards/resource-cards.component.d.ts +3 -2
  47. package/lib/public/components/resource-post/resource-post-details/resource-post-details.component.d.ts +3 -2
  48. package/lib/public/components/resource-release-notes/resource-release-notes-top-banner/resource-release-notes-top-banner.component.d.ts +6 -21
  49. package/lib/public/components/resource-release-notes/resource-release-notes.component.d.ts +3 -4
  50. package/lib/public/components/resource-top-banner-edit/resource-top-banner-edit.component.d.ts +6 -5
  51. package/lib/public/components/resource-vault/resource-vault.component.d.ts +6 -14
  52. package/lib/public/components/resource-videos/resource-video-cards/resource-video-cards.component.d.ts +3 -2
  53. package/lib/public/components/resource-videos/resource-videos-top-banner/resource-videos-top-banner.component.d.ts +6 -21
  54. package/lib/public/components/resource-videos/resource-videos.component.d.ts +6 -16
  55. package/lib/public/components/resource-webinars/replay-event-cards/replay-event-cards.component.d.ts +3 -2
  56. package/lib/public/components/resource-webinars/resource-webinars.component.d.ts +3 -2
  57. package/lib/public/components/resource-webinars/upcoming-event-cards/upcoming-event-cards.component.d.ts +3 -2
  58. package/lib/public/components/resources/resource-tags/resource-tags.component.d.ts +3 -2
  59. package/lib/public/components/resources/vault-section/vault-section.component.d.ts +3 -1
  60. package/lib/public/components/resources-hub/resources-hub.component.d.ts +3 -2
  61. package/lib/public/components/resources-read/resources-read.component.d.ts +3 -2
  62. package/lib/public/components/white-papers/white-papers-top-banner/white-papers-top-banner.component.d.ts +6 -21
  63. package/lib/public/components/white-papers/white-papers.component.d.ts +6 -16
  64. package/package.json +1 -1
@@ -1,11 +1,12 @@
1
1
  import { Injector, OnInit } from '@angular/core';
2
2
  import { AppBaseComponent } from '@posiwise/app-base-component';
3
- import { TagService } from '@posiwise/common-services';
3
+ import { AuthService, TagService } from '@posiwise/common-services';
4
4
  import { Resource, User } from '@posiwise/common-utilities';
5
5
  import { ResourceService } from '../../../../resource.service';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ReplayEventCardComponent extends AppBaseComponent implements OnInit {
8
8
  private readonly resourceService;
9
+ private readonly authService;
9
10
  private readonly tagService;
10
11
  showEventContent: boolean;
11
12
  categoryId: string;
@@ -17,7 +18,7 @@ export declare class ReplayEventCardComponent extends AppBaseComponent implement
17
18
  isLoaded: boolean;
18
19
  blogPostTag: any;
19
20
  user: User;
20
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector);
21
+ constructor(resourceService: ResourceService, authService: AuthService, tagService: TagService, injector: Injector);
21
22
  ngOnInit(): void;
22
23
  private getPostTags;
23
24
  getPosts(page: number, pageSize: number): void;
@@ -1,11 +1,12 @@
1
1
  import { Injector, OnInit } from '@angular/core';
2
2
  import { AppBaseComponent } from '@posiwise/app-base-component';
3
- import { TagService } from '@posiwise/common-services';
3
+ import { AuthService, TagService } from '@posiwise/common-services';
4
4
  import { Resource, User } from '@posiwise/common-utilities';
5
5
  import { ResourceService } from '../../../resource.service';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ResourceWebinarComponent extends AppBaseComponent implements OnInit {
8
8
  private readonly resourceService;
9
+ private readonly authService;
9
10
  private readonly tagService;
10
11
  subscriptionId: number;
11
12
  masterSubscriptionId: any;
@@ -16,7 +17,7 @@ export declare class ResourceWebinarComponent extends AppBaseComponent implement
16
17
  blogPostTag: any;
17
18
  isLoaded: boolean;
18
19
  user: User;
19
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector);
20
+ constructor(resourceService: ResourceService, authService: AuthService, tagService: TagService, injector: Injector);
20
21
  ngOnInit(): void;
21
22
  private getTags;
22
23
  private getPostTags;
@@ -1,11 +1,12 @@
1
1
  import { Injector, OnInit } from '@angular/core';
2
2
  import { AppBaseComponent } from '@posiwise/app-base-component';
3
- import { TagService } from '@posiwise/common-services';
3
+ import { AuthService, TagService } from '@posiwise/common-services';
4
4
  import { Resource, User } from '@posiwise/common-utilities';
5
5
  import { ResourceService } from '../../../../resource.service';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class UpcomingEventCardComponent extends AppBaseComponent implements OnInit {
8
8
  private readonly resourceService;
9
+ private readonly authService;
9
10
  private readonly tagService;
10
11
  showEventContent: boolean;
11
12
  categoryId: string;
@@ -22,7 +23,7 @@ export declare class UpcomingEventCardComponent extends AppBaseComponent impleme
22
23
  isLoaded: boolean;
23
24
  blogPostTag: any;
24
25
  user: User;
25
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector);
26
+ constructor(resourceService: ResourceService, authService: AuthService, tagService: TagService, injector: Injector);
26
27
  ngOnInit(): void;
27
28
  private getPostTags;
28
29
  getPosts(page: number, pageSize: number): void;
@@ -1,10 +1,11 @@
1
1
  import { EventEmitter, Injector, OnInit } from '@angular/core';
2
2
  import { AppBaseComponent } from '@posiwise/app-base-component';
3
- import { TagService } from '@posiwise/common-services';
3
+ import { AuthService, TagService } from '@posiwise/common-services';
4
4
  import { Tag, User } from '@posiwise/common-utilities';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class ResourceTagComponent extends AppBaseComponent implements OnInit {
7
7
  private readonly tagService;
8
+ private readonly authService;
8
9
  tagsLoaded: EventEmitter<Tag[]>;
9
10
  tagSelected: EventEmitter<Tag>;
10
11
  tags: any[];
@@ -14,7 +15,7 @@ export declare class ResourceTagComponent extends AppBaseComponent implements On
14
15
  loaded: boolean;
15
16
  selectedTag: Tag | null;
16
17
  user: User;
17
- constructor(tagService: TagService, injector: Injector);
18
+ constructor(tagService: TagService, authService: AuthService, injector: Injector);
18
19
  ngOnInit(): void;
19
20
  navigateToTagList(): void;
20
21
  selectTag(tag: Tag): void;
@@ -1,12 +1,14 @@
1
1
  import { Injector, OnInit, TemplateRef } 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 { CustomUploaderComponent } from '@posiwise/shared-components';
6
7
  import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class VaultSectionComponent extends AppBaseComponent implements OnInit {
9
10
  private readonly modalService;
11
+ private readonly authService;
10
12
  private readonly adminService;
11
13
  editResourceModalRef: TemplateRef<CustomUploaderComponent>;
12
14
  companyName: any;
@@ -26,7 +28,7 @@ export declare class VaultSectionComponent extends AppBaseComponent implements O
26
28
  url: string;
27
29
  name: string;
28
30
  };
29
- constructor(injector: Injector, modalService: NgbModal, adminService: AdminService);
31
+ constructor(injector: Injector, modalService: NgbModal, authService: AuthService, adminService: AdminService);
30
32
  ngOnInit(): void;
31
33
  openEditResourceModal(): void;
32
34
  saveResourceContent(modal: any): void;
@@ -1,11 +1,12 @@
1
1
  import { Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { AppBaseComponent } from '@posiwise/app-base-component';
3
- import { TagService } from '@posiwise/common-services';
3
+ import { AuthService, TagService } from '@posiwise/common-services';
4
4
  import { Resource, Tag, User } from '@posiwise/common-utilities';
5
5
  import { ResourceService } from '../../../resource.service';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ResourceHubComponent extends AppBaseComponent implements OnInit, OnDestroy {
8
8
  private readonly resourceService;
9
+ private readonly authService;
9
10
  private readonly tagService;
10
11
  private delayTimeout;
11
12
  private userSub;
@@ -28,7 +29,7 @@ export declare class ResourceHubComponent extends AppBaseComponent implements On
28
29
  scrollLocked: boolean;
29
30
  iconClasses: string[];
30
31
  user: User;
31
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector);
32
+ constructor(resourceService: ResourceService, authService: AuthService, tagService: TagService, injector: Injector);
32
33
  ngOnInit(): void;
33
34
  getPostsAndTags(): void;
34
35
  toggleDropdown(event: Event, post: any): void;
@@ -2,13 +2,14 @@ import { Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UntypedFormGroup } from '@angular/forms';
3
3
  import { DomSanitizer } from '@angular/platform-browser';
4
4
  import { AppBaseComponent } from '@posiwise/app-base-component';
5
- import { CustomToastService } from '@posiwise/common-services';
5
+ import { AuthService, CustomToastService } from '@posiwise/common-services';
6
6
  import { RecentPost, Resource, ResourceComment, User } from '@posiwise/common-utilities';
7
7
  import { ResourceService } from '../../../resource.service';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class ResourceReadComponent extends AppBaseComponent implements OnInit, OnDestroy {
10
10
  private readonly resourceService;
11
11
  private readonly toastr;
12
+ private readonly authService;
12
13
  private readonly sanitizer;
13
14
  post: Resource;
14
15
  user: User;
@@ -19,7 +20,7 @@ export declare class ResourceReadComponent extends AppBaseComponent implements O
19
20
  commentForm: UntypedFormGroup;
20
21
  userLoggedIn: boolean;
21
22
  buttonBusy: boolean;
22
- constructor(resourceService: ResourceService, toastr: CustomToastService, injector: Injector, sanitizer: DomSanitizer);
23
+ constructor(resourceService: ResourceService, toastr: CustomToastService, authService: AuthService, injector: Injector, sanitizer: DomSanitizer);
23
24
  ngOnInit(): void;
24
25
  readingTime(text: string): string;
25
26
  handleImageError(event: Event, fallbackPath: any): void;
@@ -1,26 +1,11 @@
1
- import { Injector, OnInit } from '@angular/core';
2
- import { AppBaseComponent } from '@posiwise/app-base-component';
3
- import { TagService } from '@posiwise/common-services';
4
- import { Resource, User } from '@posiwise/common-utilities';
1
+ import { Injector } from '@angular/core';
2
+ import { AuthService, TagService } from '@posiwise/common-services';
5
3
  import { ResourceService } from '../../../../resource.service';
4
+ import { BaseTopBannerComponent } from '../../base/base-top-banner.component';
6
5
  import * as i0 from "@angular/core";
7
- export declare class WhitePaperTopBannerComponent extends AppBaseComponent implements OnInit {
8
- private readonly resourceService;
9
- private readonly tagService;
10
- subscriptionId: number;
11
- masterSubscriptionId: any;
12
- posts: Resource[];
13
- testimonialsPosts: any[];
14
- userLoggedIn: boolean;
15
- blogPostTag: any;
16
- tagCategory: any;
17
- blogTestimonialsPostTag: any;
18
- isLoaded: boolean;
19
- user: User;
20
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector);
21
- ngOnInit(): void;
22
- private getTags;
23
- private getPostTags;
6
+ export declare class WhitePaperTopBannerComponent extends BaseTopBannerComponent {
7
+ constructor(resourceService: ResourceService, tagService: TagService, injector: Injector, authService: AuthService);
8
+ protected getSearchTerm(): string;
24
9
  static ɵfac: i0.ɵɵFactoryDeclaration<WhitePaperTopBannerComponent, never>;
25
10
  static ɵcmp: i0.ɵɵComponentDeclaration<WhitePaperTopBannerComponent, "pw-white-paper-top-banner", never, {}, {}, never, never, false, never>;
26
11
  }
@@ -1,21 +1,11 @@
1
- import { Injector, OnInit } from '@angular/core';
2
- import { AppBaseComponent } from '@posiwise/app-base-component';
3
- import { TagService } from '@posiwise/common-services';
4
- import { Resource } from '@posiwise/common-utilities';
1
+ import { Injector } from '@angular/core';
2
+ import { AuthService, TagService } from '@posiwise/common-services';
5
3
  import { ResourceService } from '../../../resource.service';
4
+ import { BaseResourceComponent } from '../base/base-resource.component';
6
5
  import * as i0 from "@angular/core";
7
- export declare class WhitePaperComponent extends AppBaseComponent implements OnInit {
8
- private readonly resourceService;
9
- private readonly tagService;
10
- subscriptionId: number;
11
- masterSubscriptionId: any;
12
- posts: Resource[];
13
- userLoggedIn: boolean;
14
- blogPostTag: any;
15
- constructor(resourceService: ResourceService, tagService: TagService, injector: Injector);
16
- ngOnInit(): void;
17
- private getPostTags;
18
- getPosts(page: number, pageSize: number): void;
6
+ export declare class WhitePaperComponent extends BaseResourceComponent {
7
+ constructor(resourceService: ResourceService, tagService: TagService, injector: Injector, authService: AuthService);
8
+ protected getResourceType(): string;
19
9
  static ɵfac: i0.ɵɵFactoryDeclaration<WhitePaperComponent, never>;
20
10
  static ɵcmp: i0.ɵɵComponentDeclaration<WhitePaperComponent, "pw-resource-white-papers", never, {}, {}, never, never, false, never>;
21
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/resource-module",
3
- "version": "0.0.135",
3
+ "version": "0.0.137",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "17.3.11",
6
6
  "@angular/core": "17.3.11",