@posiwise/resource-module 0.0.184 → 0.0.185
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/fesm2022/{posiwise-resource-module-base-top-banner.component-DwVBOTwY.mjs → posiwise-resource-module-base-top-banner.component-BxV9TVG1.mjs} +15 -7
- package/fesm2022/posiwise-resource-module-base-top-banner.component-BxV9TVG1.mjs.map +1 -0
- package/fesm2022/posiwise-resource-module-posiwise-resource-module-DfgyQYhP.mjs +1870 -0
- package/fesm2022/posiwise-resource-module-posiwise-resource-module-DfgyQYhP.mjs.map +1 -0
- package/fesm2022/posiwise-resource-module-resource-blogs.module-DHqU4Ypf.mjs +68 -0
- package/fesm2022/posiwise-resource-module-resource-blogs.module-DHqU4Ypf.mjs.map +1 -0
- package/fesm2022/posiwise-resource-module-resource-case-studies.module-DghO167h.mjs +134 -0
- package/fesm2022/posiwise-resource-module-resource-case-studies.module-DghO167h.mjs.map +1 -0
- package/fesm2022/posiwise-resource-module-resource-events.module-DtZaPh7n.mjs +240 -0
- package/fesm2022/posiwise-resource-module-resource-events.module-DtZaPh7n.mjs.map +1 -0
- package/fesm2022/posiwise-resource-module-resource-hub.module-jxpqriFN.mjs +241 -0
- package/fesm2022/posiwise-resource-module-resource-hub.module-jxpqriFN.mjs.map +1 -0
- package/fesm2022/posiwise-resource-module-resource-integrations.module-xg0Ziiw8.mjs +294 -0
- package/fesm2022/posiwise-resource-module-resource-integrations.module-xg0Ziiw8.mjs.map +1 -0
- package/fesm2022/posiwise-resource-module-resource-post.module-DcudivrB.mjs +314 -0
- package/fesm2022/posiwise-resource-module-resource-post.module-DcudivrB.mjs.map +1 -0
- package/fesm2022/posiwise-resource-module-resource-release-notes.module-CuQLcCDR.mjs +109 -0
- package/fesm2022/posiwise-resource-module-resource-release-notes.module-CuQLcCDR.mjs.map +1 -0
- package/fesm2022/posiwise-resource-module-resource-root.module-gVu6s-NV.mjs +398 -0
- package/fesm2022/posiwise-resource-module-resource-root.module-gVu6s-NV.mjs.map +1 -0
- package/fesm2022/posiwise-resource-module-resource-videos.module-xt6vq-z-.mjs +68 -0
- package/fesm2022/posiwise-resource-module-resource-videos.module-xt6vq-z-.mjs.map +1 -0
- package/fesm2022/posiwise-resource-module-resource-white-papers.module-Bm2M2II6.mjs +69 -0
- package/fesm2022/posiwise-resource-module-resource-white-papers.module-Bm2M2II6.mjs.map +1 -0
- package/fesm2022/posiwise-resource-module.mjs +1 -1
- package/package.json +6 -6
- package/types/posiwise-resource-module.d.ts +521 -0
- package/fesm2022/posiwise-resource-module-base-top-banner.component-DwVBOTwY.mjs.map +0 -1
- package/fesm2022/posiwise-resource-module-posiwise-resource-module-CBgwfoFQ.mjs +0 -1802
- package/fesm2022/posiwise-resource-module-posiwise-resource-module-CBgwfoFQ.mjs.map +0 -1
- package/fesm2022/posiwise-resource-module-resource-blogs.module-B4QePTqE.mjs +0 -69
- package/fesm2022/posiwise-resource-module-resource-blogs.module-B4QePTqE.mjs.map +0 -1
- package/fesm2022/posiwise-resource-module-resource-case-studies.module-FVdm2xZg.mjs +0 -133
- package/fesm2022/posiwise-resource-module-resource-case-studies.module-FVdm2xZg.mjs.map +0 -1
- package/fesm2022/posiwise-resource-module-resource-events.module-D39_eKV0.mjs +0 -228
- package/fesm2022/posiwise-resource-module-resource-events.module-D39_eKV0.mjs.map +0 -1
- package/fesm2022/posiwise-resource-module-resource-hub.module-BtDEZ2Bi.mjs +0 -233
- package/fesm2022/posiwise-resource-module-resource-hub.module-BtDEZ2Bi.mjs.map +0 -1
- package/fesm2022/posiwise-resource-module-resource-integrations.module-Ccc_gL-v.mjs +0 -284
- package/fesm2022/posiwise-resource-module-resource-integrations.module-Ccc_gL-v.mjs.map +0 -1
- package/fesm2022/posiwise-resource-module-resource-post.module-DK-IjPjS.mjs +0 -294
- package/fesm2022/posiwise-resource-module-resource-post.module-DK-IjPjS.mjs.map +0 -1
- package/fesm2022/posiwise-resource-module-resource-release-notes.module-BCZ7rBO3.mjs +0 -104
- package/fesm2022/posiwise-resource-module-resource-release-notes.module-BCZ7rBO3.mjs.map +0 -1
- package/fesm2022/posiwise-resource-module-resource-root.module-XqP-FANH.mjs +0 -392
- package/fesm2022/posiwise-resource-module-resource-root.module-XqP-FANH.mjs.map +0 -1
- package/fesm2022/posiwise-resource-module-resource-videos.module-CVimxK4w.mjs +0 -69
- package/fesm2022/posiwise-resource-module-resource-videos.module-CVimxK4w.mjs.map +0 -1
- package/fesm2022/posiwise-resource-module-resource-white-papers.module-0VUIWx4N.mjs +0 -70
- package/fesm2022/posiwise-resource-module-resource-white-papers.module-0VUIWx4N.mjs.map +0 -1
- package/index.d.ts +0 -19
- package/lib/public/components/base/base-resource.component.d.ts +0 -43
- package/lib/public/components/base/base-top-banner.component.d.ts +0 -38
- package/lib/public/components/reslease-note-card/release-note-card.component.d.ts +0 -57
- package/lib/public/components/resource-blogs/resource-blog-top-banner/resource-blog-top-banner.component.d.ts +0 -12
- package/lib/public/components/resource-blogs/resource-blog.component.d.ts +0 -11
- package/lib/public/components/resource-case-studies/case-studies-cards/case-studies-cards.component.d.ts +0 -40
- package/lib/public/components/resource-case-studies/resource-case-studies.component.d.ts +0 -20
- package/lib/public/components/resource-company-card/resource-company-card.component.d.ts +0 -39
- package/lib/public/components/resource-contact-us/resource-contact-us.module.d.ts +0 -7
- package/lib/public/components/resource-edit-card/resource-edit-card.component.d.ts +0 -52
- package/lib/public/components/resource-edit-card-lazy/resource-edit-card-lazy.component.d.ts +0 -19
- package/lib/public/components/resource-integration/integration-top-banner/integration-top-banner.component.d.ts +0 -12
- package/lib/public/components/resource-integration/resource-integration.component.d.ts +0 -89
- package/lib/public/components/resource-post/related-resources/related-resources.component.d.ts +0 -46
- package/lib/public/components/resource-post/related-resources/resource-cards/resource-cards.component.d.ts +0 -40
- package/lib/public/components/resource-post/resource-post-details/resource-post-details.component.d.ts +0 -71
- package/lib/public/components/resource-post/resource-post.component.d.ts +0 -17
- package/lib/public/components/resource-release-notes/resource-release-notes-top-banner/resource-release-notes-top-banner.component.d.ts +0 -12
- package/lib/public/components/resource-release-notes/resource-release-notes.component.d.ts +0 -23
- package/lib/public/components/resource-top-banner-edit/resource-top-banner-edit.component.d.ts +0 -37
- package/lib/public/components/resource-vault/resource-vault.component.d.ts +0 -23
- package/lib/public/components/resource-videos/resource-video-cards/resource-video-cards.component.d.ts +0 -48
- package/lib/public/components/resource-videos/resource-videos-top-banner/resource-videos-top-banner.component.d.ts +0 -12
- package/lib/public/components/resource-videos/resource-videos.component.d.ts +0 -11
- package/lib/public/components/resource-webinars/replay-event-cards/replay-event-cards.component.d.ts +0 -33
- package/lib/public/components/resource-webinars/resource-webinars.component.d.ts +0 -36
- package/lib/public/components/resource-webinars/upcoming-event-cards/upcoming-event-cards.component.d.ts +0 -44
- package/lib/public/components/resources/resource-tags/resource-tags.component.d.ts +0 -31
- package/lib/public/components/resources/resources.component.d.ts +0 -24
- package/lib/public/components/resources/vault-section/vault-section.component.d.ts +0 -54
- package/lib/public/components/resources-hub/resources-hub.component.d.ts +0 -52
- package/lib/public/components/testimonial-card/testimonial-card.component.d.ts +0 -14
- package/lib/public/components/white-papers/white-papers-top-banner/white-papers-top-banner.component.d.ts +0 -12
- package/lib/public/components/white-papers/white-papers.component.d.ts +0 -11
- package/lib/public/modules/blogs/resource-blogs.module.d.ts +0 -10
- package/lib/public/modules/case-studies/resource-case-studies.module.d.ts +0 -10
- package/lib/public/modules/events/resource-events.module.d.ts +0 -10
- package/lib/public/modules/hub/resource-hub.module.d.ts +0 -9
- package/lib/public/modules/integrations/resource-integrations.module.d.ts +0 -10
- package/lib/public/modules/post/resource-post.module.d.ts +0 -11
- package/lib/public/modules/release-notes/resource-release-notes.module.d.ts +0 -10
- package/lib/public/modules/root/resource-root-shared.module.d.ts +0 -17
- package/lib/public/modules/root/resource-root.module.d.ts +0 -11
- package/lib/public/modules/videos/resource-videos.module.d.ts +0 -10
- package/lib/public/modules/white-papers/resource-white-papers.module.d.ts +0 -10
- package/lib/public/resource-public.module.d.ts +0 -7
- package/lib/public/resource-public.routing.module.d.ts +0 -7
- package/lib/public/shared/resource-cards.module.d.ts +0 -32
- package/lib/public/shared/resource-edit.module.d.ts +0 -22
- package/lib/public/shared/resource-shared.module.d.ts +0 -20
- package/lib/resource.module.d.ts +0 -7
- package/lib/resource.service.d.ts +0 -21
- package/lib/shared/models/resource.model.d.ts +0 -3
- package/lib/shared/resource-modal.interface.d.ts +0 -6
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnChanges, OnInit, OnDestroy, EventEmitter, Injector, ChangeDetectorRef, TemplateRef, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/router';
|
|
4
|
+
import * as i1$1 from '@posiwise/resource-contact-us';
|
|
5
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
6
|
+
import { ResourcePost, User, Paging, Resource } from '@posiwise/common-utilities';
|
|
7
|
+
import * as i5 from '@angular/forms';
|
|
8
|
+
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
9
|
+
import { TagService, MainApiHttpService, AuthService } from '@posiwise/common-services';
|
|
10
|
+
import { CustomUploaderComponent } from '@posiwise/utils';
|
|
11
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
12
|
+
import * as i3 from '@angular/common';
|
|
13
|
+
import * as i6 from '@posiwise/pipes';
|
|
14
|
+
import * as i7 from '@posiwise/shared-components';
|
|
15
|
+
import * as i8 from '@posiwise/core-transloco';
|
|
16
|
+
import * as i9 from '@jsverse/transloco';
|
|
17
|
+
import * as i10 from '@posiwise/directives';
|
|
18
|
+
import * as i11 from 'primeng/inputtext';
|
|
19
|
+
import * as i12$1 from 'primeng/textarea';
|
|
20
|
+
import { SafeResourceUrl, DomSanitizer } from '@angular/platform-browser';
|
|
21
|
+
import * as rxjs from 'rxjs';
|
|
22
|
+
import * as i12 from 'primeng/paginator';
|
|
23
|
+
import * as i13 from 'primeng/select';
|
|
24
|
+
import * as i18 from '@angular/cdk/drag-drop';
|
|
25
|
+
import * as i19 from 'ngx-captcha';
|
|
26
|
+
import * as i14 from '@posiwise/alpha-module';
|
|
27
|
+
import * as i4 from 'primeng/datepicker';
|
|
28
|
+
import * as i5$1 from 'primeng/autocomplete';
|
|
29
|
+
import * as i10$1 from 'ngx-quill';
|
|
30
|
+
import * as i11$1 from 'ngx-ui-switch';
|
|
31
|
+
|
|
32
|
+
declare class BlogPublicRoutingModule {
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BlogPublicRoutingModule, never>;
|
|
34
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BlogPublicRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
35
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BlogPublicRoutingModule>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare class ResourcePublicModule {
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourcePublicModule, never>;
|
|
40
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourcePublicModule, never, [typeof BlogPublicRoutingModule], never>;
|
|
41
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ResourcePublicModule>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare class ResourceModule {
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceModule, never>;
|
|
46
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceModule, never, [typeof ResourcePublicModule], never>;
|
|
47
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ResourceModule>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare class Trial4ContactUsModule {
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Trial4ContactUsModule, never>;
|
|
52
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<Trial4ContactUsModule, never, [typeof i1$1.Trial4SharedContactUsModule], [typeof i1$1.Trial4SharedContactUsModule]>;
|
|
53
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<Trial4ContactUsModule>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface PageEvent {
|
|
57
|
+
first: number;
|
|
58
|
+
rows: number;
|
|
59
|
+
page: number;
|
|
60
|
+
pageCount: number;
|
|
61
|
+
}
|
|
62
|
+
declare class ResourceCompanyCardComponent extends AppBaseComponent implements OnChanges, OnInit, OnDestroy {
|
|
63
|
+
private readonly cdr;
|
|
64
|
+
getPosts: EventEmitter<ResourcePost[]>;
|
|
65
|
+
private readonly destroy$;
|
|
66
|
+
canEditResourcesValue: boolean;
|
|
67
|
+
header: string;
|
|
68
|
+
data: any[];
|
|
69
|
+
integrationCountDisplay: any;
|
|
70
|
+
vendor: boolean;
|
|
71
|
+
user: User;
|
|
72
|
+
userLoggedIn: boolean;
|
|
73
|
+
postData: boolean;
|
|
74
|
+
filteredData: any[];
|
|
75
|
+
first: number;
|
|
76
|
+
rows: number;
|
|
77
|
+
subscriptionId: string;
|
|
78
|
+
constructor(injector: Injector, cdr: ChangeDetectorRef);
|
|
79
|
+
ngOnChanges(): void;
|
|
80
|
+
ngOnInit(): void;
|
|
81
|
+
search(keywords?: any): void;
|
|
82
|
+
onPageChange(event: PageEvent): void;
|
|
83
|
+
ngOnDestroy(): void;
|
|
84
|
+
private updateCanEditResourcesValue;
|
|
85
|
+
canEditResources(): boolean;
|
|
86
|
+
/** Show no-data when there is integration count but no posts (postData is false, filteredData empty). */
|
|
87
|
+
get showNoPostsMessage(): boolean;
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceCompanyCardComponent, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceCompanyCardComponent, "pw-resource-company-card", never, { "header": { "alias": "header"; "required": false; }; "data": { "alias": "data"; "required": false; }; "integrationCountDisplay": { "alias": "integrationCountDisplay"; "required": false; }; "vendor": { "alias": "vendor"; "required": false; }; "user": { "alias": "user"; "required": false; }; "userLoggedIn": { "alias": "userLoggedIn"; "required": false; }; }, { "getPosts": "getPosts"; }, never, never, false, never>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
declare class ResourceTopBannerEditComponent extends AppBaseComponent implements OnInit {
|
|
93
|
+
private readonly fb;
|
|
94
|
+
private readonly modalService;
|
|
95
|
+
private readonly tagService;
|
|
96
|
+
private readonly cdr;
|
|
97
|
+
blogPostTag: any;
|
|
98
|
+
user: User;
|
|
99
|
+
userLoggedIn: boolean;
|
|
100
|
+
getUpdatedTag: EventEmitter<any>;
|
|
101
|
+
editModal: TemplateRef<CustomUploaderComponent>;
|
|
102
|
+
imageCropContent: TemplateRef<CustomUploaderComponent>;
|
|
103
|
+
form: FormGroup;
|
|
104
|
+
image: string | null;
|
|
105
|
+
defaultImage: string;
|
|
106
|
+
file: File;
|
|
107
|
+
subscriptionId: string;
|
|
108
|
+
imageModalRef: any;
|
|
109
|
+
buttonBusy: boolean;
|
|
110
|
+
constructor(fb: FormBuilder, modalService: NgbModal, tagService: TagService, cdr: ChangeDetectorRef, injector: Injector);
|
|
111
|
+
ngOnInit(): void;
|
|
112
|
+
openEditModal(): void;
|
|
113
|
+
openImageModal(modalRef: any): void;
|
|
114
|
+
onImageSelected(base64: string): void;
|
|
115
|
+
onClose(): void;
|
|
116
|
+
removeImage(): void;
|
|
117
|
+
handleImageError(event: Event): void;
|
|
118
|
+
save(): void;
|
|
119
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceTopBannerEditComponent, never>;
|
|
120
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceTopBannerEditComponent, "pw-resource-top-banner-edit", never, { "blogPostTag": { "alias": "blogPostTag"; "required": false; }; "user": { "alias": "user"; "required": false; }; "userLoggedIn": { "alias": "userLoggedIn"; "required": false; }; }, { "getUpdatedTag": "getUpdatedTag"; }, never, never, false, never>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
declare class ResourceService {
|
|
124
|
+
private readonly api;
|
|
125
|
+
private readonly resource;
|
|
126
|
+
private readonly comments;
|
|
127
|
+
constructor(api: MainApiHttpService);
|
|
128
|
+
getPublicPosts(master_subscription_id: any, page: number, pageSize: number, search: string, tagCategoryIds?: string, tagIds?: string): rxjs.Observable<any>;
|
|
129
|
+
getAdminPosts(subscriptionId: any, paging?: Paging): rxjs.Observable<any>;
|
|
130
|
+
addPost(post: any): rxjs.Observable<any>;
|
|
131
|
+
getPostBySlug(slug: string): rxjs.Observable<any>;
|
|
132
|
+
deletePost(id: any): rxjs.Observable<any>;
|
|
133
|
+
updatePost(post: any, id: any): rxjs.Observable<any>;
|
|
134
|
+
private getComments;
|
|
135
|
+
postComments(post: any): rxjs.Observable<any>;
|
|
136
|
+
getResourceInsight(subscription_id: any, starting_at?: string, ending_at?: string): rxjs.Observable<any>;
|
|
137
|
+
getResourcePostsInsight(id: any): rxjs.Observable<any>;
|
|
138
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceService, never>;
|
|
139
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResourceService>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
declare class ResourceVideoCardComponent extends AppBaseComponent implements OnInit, OnChanges {
|
|
143
|
+
private readonly sanitizer;
|
|
144
|
+
private readonly resourceService;
|
|
145
|
+
private readonly tagService;
|
|
146
|
+
private readonly cdr;
|
|
147
|
+
showVideoSection: boolean;
|
|
148
|
+
categoryId: string;
|
|
149
|
+
tag: any;
|
|
150
|
+
postSlice: boolean;
|
|
151
|
+
resourceTitle: string;
|
|
152
|
+
user: User;
|
|
153
|
+
canEditResourcesValue: boolean;
|
|
154
|
+
userLoggedIn: boolean;
|
|
155
|
+
subscriptionId: number;
|
|
156
|
+
masterSubscriptionId: any;
|
|
157
|
+
posts: Resource[];
|
|
158
|
+
isLoaded: boolean;
|
|
159
|
+
videoStates: {
|
|
160
|
+
[slug: string]: {
|
|
161
|
+
loaded: boolean;
|
|
162
|
+
url: SafeResourceUrl;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
isEditingTitle: boolean;
|
|
166
|
+
editedTitle: string;
|
|
167
|
+
isMasterSubscription: any;
|
|
168
|
+
constructor(sanitizer: DomSanitizer, resourceService: ResourceService, tagService: TagService, cdr: ChangeDetectorRef, injector: Injector);
|
|
169
|
+
ngOnInit(): void;
|
|
170
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
171
|
+
loadVideo(post: any): void;
|
|
172
|
+
getPosts(page: number, pageSize: number): void;
|
|
173
|
+
toggleTagEditTitle(): void;
|
|
174
|
+
saveEditedTitle(): void;
|
|
175
|
+
/** Helper method to get effective subscription ID */
|
|
176
|
+
private getEffectiveSubscriptionId;
|
|
177
|
+
private updateCanEditResourcesValue;
|
|
178
|
+
canEditResources(): boolean;
|
|
179
|
+
trackByPostId(index: number, post: Resource): number;
|
|
180
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceVideoCardComponent, never>;
|
|
181
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceVideoCardComponent, "pw-resource-video-card", never, { "showVideoSection": { "alias": "showVideoSection"; "required": false; }; "categoryId": { "alias": "categoryId"; "required": false; }; "tag": { "alias": "tag"; "required": false; }; "postSlice": { "alias": "postSlice"; "required": false; }; "resourceTitle": { "alias": "resourceTitle"; "required": false; }; "user": { "alias": "user"; "required": false; }; "userLoggedIn": { "alias": "userLoggedIn"; "required": false; }; }, {}, never, never, false, never>;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
declare class UpcomingEventCardComponent extends AppBaseComponent implements OnInit, OnChanges {
|
|
185
|
+
private readonly resourceService;
|
|
186
|
+
private readonly tagService;
|
|
187
|
+
private readonly cdr;
|
|
188
|
+
showEventContent: boolean;
|
|
189
|
+
categoryId: string;
|
|
190
|
+
tag: any;
|
|
191
|
+
postSlice: boolean;
|
|
192
|
+
resourceTitle: string;
|
|
193
|
+
user: User;
|
|
194
|
+
userLoggedIn: boolean;
|
|
195
|
+
canEditResourcesValue: boolean;
|
|
196
|
+
now: number;
|
|
197
|
+
subscriptionId: any;
|
|
198
|
+
isEditingTitle: boolean;
|
|
199
|
+
editedTitle: string;
|
|
200
|
+
masterSubscriptionId: any;
|
|
201
|
+
posts: Resource[];
|
|
202
|
+
isLoaded: boolean;
|
|
203
|
+
blogPostTag: any;
|
|
204
|
+
isMasterSubscription: any;
|
|
205
|
+
constructor(resourceService: ResourceService, tagService: TagService, cdr: ChangeDetectorRef, injector: Injector);
|
|
206
|
+
ngOnInit(): void;
|
|
207
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
208
|
+
private getPostTags;
|
|
209
|
+
getPosts(page: number, pageSize: number): void;
|
|
210
|
+
isUpcoming(post: any): boolean;
|
|
211
|
+
getAllPosts(page: number, pageSize: number): void;
|
|
212
|
+
toggleEditTitle(): void;
|
|
213
|
+
saveEditedTitle(): void;
|
|
214
|
+
/** Helper method to get effective subscription ID */
|
|
215
|
+
private getEffectiveSubscriptionId;
|
|
216
|
+
private updateCanEditResourcesValue;
|
|
217
|
+
canEditResources(): boolean;
|
|
218
|
+
trackByPostId(index: number, post: Resource): number;
|
|
219
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpcomingEventCardComponent, never>;
|
|
220
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UpcomingEventCardComponent, "pw-upcoming-event-card", never, { "showEventContent": { "alias": "showEventContent"; "required": false; }; "categoryId": { "alias": "categoryId"; "required": false; }; "tag": { "alias": "tag"; "required": false; }; "postSlice": { "alias": "postSlice"; "required": false; }; "resourceTitle": { "alias": "resourceTitle"; "required": false; }; "user": { "alias": "user"; "required": false; }; "userLoggedIn": { "alias": "userLoggedIn"; "required": false; }; }, {}, never, never, false, never>;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
declare class ResourceCardComponent extends AppBaseComponent implements OnInit, OnChanges {
|
|
224
|
+
private readonly resourceService;
|
|
225
|
+
private readonly tagService;
|
|
226
|
+
private readonly cdr;
|
|
227
|
+
categoryId: string;
|
|
228
|
+
isHeaderVisible: boolean;
|
|
229
|
+
isRelated: boolean;
|
|
230
|
+
resourceTitle: string;
|
|
231
|
+
postSlice: boolean;
|
|
232
|
+
header: any;
|
|
233
|
+
tag: any;
|
|
234
|
+
resourceLink: any;
|
|
235
|
+
user: User;
|
|
236
|
+
userLoggedIn: boolean;
|
|
237
|
+
isLoaded: boolean;
|
|
238
|
+
subscriptionId: any;
|
|
239
|
+
masterSubscriptionId: any;
|
|
240
|
+
posts: Resource[];
|
|
241
|
+
isEditingTitle: boolean;
|
|
242
|
+
editedTitle: string;
|
|
243
|
+
isMasterSubscription: any;
|
|
244
|
+
canEditResourcesValue: boolean;
|
|
245
|
+
constructor(injector: Injector, resourceService: ResourceService, tagService: TagService, cdr: ChangeDetectorRef);
|
|
246
|
+
ngOnInit(): void;
|
|
247
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
248
|
+
getPosts(page: number, pageSize: number): void;
|
|
249
|
+
toggleTagEditTitle(): void;
|
|
250
|
+
saveEditedTitle(): void;
|
|
251
|
+
/** Helper method to get effective subscription ID */
|
|
252
|
+
private getEffectiveSubscriptionId;
|
|
253
|
+
private updateCanEditResourcesValue;
|
|
254
|
+
canEditResources(): boolean;
|
|
255
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceCardComponent, never>;
|
|
256
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceCardComponent, "pw-resource-cards", never, { "categoryId": { "alias": "categoryId"; "required": false; }; "isHeaderVisible": { "alias": "isHeaderVisible"; "required": false; }; "isRelated": { "alias": "isRelated"; "required": false; }; "resourceTitle": { "alias": "resourceTitle"; "required": false; }; "postSlice": { "alias": "postSlice"; "required": false; }; "header": { "alias": "header"; "required": false; }; "tag": { "alias": "tag"; "required": false; }; "resourceLink": { "alias": "resourceLink"; "required": false; }; "user": { "alias": "user"; "required": false; }; "userLoggedIn": { "alias": "userLoggedIn"; "required": false; }; }, {}, never, never, false, never>;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
declare class CaseStudyCardComponent extends AppBaseComponent implements OnInit, OnChanges {
|
|
260
|
+
private readonly resourceService;
|
|
261
|
+
private readonly tagService;
|
|
262
|
+
private readonly cdr;
|
|
263
|
+
showCaseStudyHeader: boolean;
|
|
264
|
+
categoryId: string;
|
|
265
|
+
postSlice: boolean;
|
|
266
|
+
tag: any;
|
|
267
|
+
resourceTitle: string;
|
|
268
|
+
user: User;
|
|
269
|
+
canEditResourcesValue: boolean;
|
|
270
|
+
userLoggedIn: boolean;
|
|
271
|
+
isLoaded: boolean;
|
|
272
|
+
subscriptionId: any;
|
|
273
|
+
masterSubscriptionId: any;
|
|
274
|
+
companyName: any;
|
|
275
|
+
posts: Resource[];
|
|
276
|
+
isMasterSubscription: any;
|
|
277
|
+
isEditingTitle: boolean;
|
|
278
|
+
editedTitle: string;
|
|
279
|
+
constructor(injector: Injector, resourceService: ResourceService, tagService: TagService, cdr: ChangeDetectorRef);
|
|
280
|
+
ngOnInit(): void;
|
|
281
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
282
|
+
getPosts(page: number, pageSize: number): void;
|
|
283
|
+
toggleEditTitle(): void;
|
|
284
|
+
saveEditedTitle(): void;
|
|
285
|
+
/** Helper method to get effective subscription ID */
|
|
286
|
+
private getEffectiveSubscriptionId;
|
|
287
|
+
private updateCanEditResourcesValue;
|
|
288
|
+
canEditResources(): boolean;
|
|
289
|
+
trackByPostId(index: number, post: Resource): number;
|
|
290
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaseStudyCardComponent, never>;
|
|
291
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaseStudyCardComponent, "pw-case-studies-card", never, { "showCaseStudyHeader": { "alias": "showCaseStudyHeader"; "required": false; }; "categoryId": { "alias": "categoryId"; "required": false; }; "postSlice": { "alias": "postSlice"; "required": false; }; "tag": { "alias": "tag"; "required": false; }; "resourceTitle": { "alias": "resourceTitle"; "required": false; }; "user": { "alias": "user"; "required": false; }; "userLoggedIn": { "alias": "userLoggedIn"; "required": false; }; }, {}, never, never, false, never>;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
declare class ResourceNoteCardComponent extends AppBaseComponent implements OnInit, OnChanges {
|
|
295
|
+
private readonly resourceService;
|
|
296
|
+
private readonly tagService;
|
|
297
|
+
private readonly cdr;
|
|
298
|
+
releaseHeader: boolean;
|
|
299
|
+
categoryId: string;
|
|
300
|
+
isReleasePress: boolean;
|
|
301
|
+
isResource: boolean;
|
|
302
|
+
postSlice: boolean;
|
|
303
|
+
resourceTitle: string;
|
|
304
|
+
tag: any;
|
|
305
|
+
user: User;
|
|
306
|
+
canEditResourcesValue: boolean;
|
|
307
|
+
userLoggedIn: boolean;
|
|
308
|
+
isLoaded: boolean;
|
|
309
|
+
subscriptionId: any;
|
|
310
|
+
masterSubscriptionId: any;
|
|
311
|
+
postTags: {
|
|
312
|
+
[key: string]: {
|
|
313
|
+
id: string;
|
|
314
|
+
title: string;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
releasePosts: {
|
|
318
|
+
[key: string]: Resource[];
|
|
319
|
+
};
|
|
320
|
+
tagCategory: any;
|
|
321
|
+
isEditingTitle: boolean;
|
|
322
|
+
isPressEditingTitle: boolean;
|
|
323
|
+
editedTitle: string;
|
|
324
|
+
isMasterSubscription: any;
|
|
325
|
+
constructor(injector: Injector, resourceService: ResourceService, tagService: TagService, cdr: ChangeDetectorRef);
|
|
326
|
+
ngOnInit(): void;
|
|
327
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
328
|
+
private getTags;
|
|
329
|
+
private getPostTags;
|
|
330
|
+
private findTag;
|
|
331
|
+
hasPressReleases(): boolean;
|
|
332
|
+
hasProductReleases(): boolean;
|
|
333
|
+
getProductReleasePosts(page: number, pageSize: number): void;
|
|
334
|
+
getPressReleasePosts(page: number, pageSize: number): void;
|
|
335
|
+
private getProcessedPosts;
|
|
336
|
+
toggleEditTitle(): void;
|
|
337
|
+
toggleEditPressTitle(): void;
|
|
338
|
+
saveEditedTitle(type: any): void;
|
|
339
|
+
/** Helper method to get effective subscription ID */
|
|
340
|
+
private getEffectiveSubscriptionId;
|
|
341
|
+
private updateCanEditResourcesValue;
|
|
342
|
+
canEditResources(): boolean;
|
|
343
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceNoteCardComponent, never>;
|
|
344
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceNoteCardComponent, "pw-resource-note-card", never, { "releaseHeader": { "alias": "releaseHeader"; "required": false; }; "categoryId": { "alias": "categoryId"; "required": false; }; "isReleasePress": { "alias": "isReleasePress"; "required": false; }; "isResource": { "alias": "isResource"; "required": false; }; "postSlice": { "alias": "postSlice"; "required": false; }; "resourceTitle": { "alias": "resourceTitle"; "required": false; }; "tag": { "alias": "tag"; "required": false; }; "user": { "alias": "user"; "required": false; }; "userLoggedIn": { "alias": "userLoggedIn"; "required": false; }; }, {}, never, never, false, never>;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
declare abstract class BaseResourceComponent extends AppBaseComponent implements OnInit {
|
|
348
|
+
protected readonly resourceService: ResourceService;
|
|
349
|
+
protected readonly tagService: TagService;
|
|
350
|
+
private readonly authService;
|
|
351
|
+
protected readonly cdr: ChangeDetectorRef;
|
|
352
|
+
subscriptionId: number;
|
|
353
|
+
masterSubscriptionId: any;
|
|
354
|
+
posts: Resource[];
|
|
355
|
+
testimonialsPosts: Resource[];
|
|
356
|
+
userLoggedIn: boolean;
|
|
357
|
+
blogPostTag: any;
|
|
358
|
+
tagCategory: any;
|
|
359
|
+
blogTestimonialsPostTag: any;
|
|
360
|
+
isLoaded: boolean;
|
|
361
|
+
user: User;
|
|
362
|
+
isMasterSubscription: any;
|
|
363
|
+
canEditResourcesValue: boolean;
|
|
364
|
+
constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, cdr: ChangeDetectorRef, injector: Injector);
|
|
365
|
+
ngOnInit(): void;
|
|
366
|
+
protected initializeComponent(): void;
|
|
367
|
+
protected getTags(): void;
|
|
368
|
+
protected getPostTags(): void;
|
|
369
|
+
protected getTestimonialTags(): void;
|
|
370
|
+
protected getPosts(page: number, pageSize: number): void;
|
|
371
|
+
getTestimonialsPosts(page: number, pageSize: number): void;
|
|
372
|
+
/** Shared method to fetch posts with common filtering, sorting, and slicing logic */
|
|
373
|
+
private fetchPosts;
|
|
374
|
+
/** Helper method to get effective subscription ID */
|
|
375
|
+
protected getEffectiveSubscriptionId(): number;
|
|
376
|
+
protected abstract getResourceType(): string;
|
|
377
|
+
protected getSearchTerm(): string;
|
|
378
|
+
protected shouldUseTagCategories(): boolean;
|
|
379
|
+
protected shouldLoadTestimonials(): boolean;
|
|
380
|
+
private updateCanEditResourcesValue;
|
|
381
|
+
canEditResources(): boolean;
|
|
382
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseResourceComponent, never>;
|
|
383
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseResourceComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
declare class ResourceVaultComponent extends BaseResourceComponent implements OnInit {
|
|
387
|
+
showVaultSection: boolean;
|
|
388
|
+
postSlice: boolean;
|
|
389
|
+
categoryId: any;
|
|
390
|
+
resourceTitle: any;
|
|
391
|
+
tag: any;
|
|
392
|
+
isLoadedChange: EventEmitter<boolean>;
|
|
393
|
+
isEditingTitle: boolean;
|
|
394
|
+
editedTitle: string;
|
|
395
|
+
constructor(resourceService: ResourceService, tagService: TagService, authService: AuthService, cdr: ChangeDetectorRef, injector: Injector);
|
|
396
|
+
ngOnInit(): void;
|
|
397
|
+
protected getResourceType(): string;
|
|
398
|
+
protected getPosts(page: number, pageSize: number): void;
|
|
399
|
+
toggleEditTitle(): void;
|
|
400
|
+
saveEditedTitle(): void;
|
|
401
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceVaultComponent, never>;
|
|
402
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceVaultComponent, "pw-resource--vault", never, { "showVaultSection": { "alias": "showVaultSection"; "required": false; }; "postSlice": { "alias": "postSlice"; "required": false; }; "categoryId": { "alias": "categoryId"; "required": false; }; "resourceTitle": { "alias": "resourceTitle"; "required": false; }; "tag": { "alias": "tag"; "required": false; }; }, { "isLoadedChange": "isLoadedChange"; }, never, never, false, never>;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Lazy-loading wrapper for ResourceEditCard
|
|
407
|
+
*/
|
|
408
|
+
declare class ResourceEditCardLazyComponent implements OnChanges, OnDestroy {
|
|
409
|
+
private readonly cdr;
|
|
410
|
+
container: ViewContainerRef;
|
|
411
|
+
id: number;
|
|
412
|
+
resourceData: any;
|
|
413
|
+
canEdit: boolean;
|
|
414
|
+
updated: EventEmitter<void>;
|
|
415
|
+
private componentRef;
|
|
416
|
+
private loading;
|
|
417
|
+
constructor(cdr: ChangeDetectorRef);
|
|
418
|
+
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
419
|
+
private loadEditCard;
|
|
420
|
+
ngOnDestroy(): void;
|
|
421
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceEditCardLazyComponent, never>;
|
|
422
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceEditCardLazyComponent, "pw-resource-edit-card-lazy", never, { "id": { "alias": "id"; "required": false; }; "resourceData": { "alias": "resourceData"; "required": false; }; "canEdit": { "alias": "canEdit"; "required": false; }; }, { "updated": "updated"; }, never, never, false, never>;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Module containing resource card components (lightweight version)
|
|
427
|
+
* ResourceEditCard is lazy-loaded on demand to save 145 KB
|
|
428
|
+
* Trial4ContactUs moved to separate module for better tree-shaking
|
|
429
|
+
* Used by both ResourceRootModule and ResourceSharedModule
|
|
430
|
+
*/
|
|
431
|
+
declare class ResourceCardsModule {
|
|
432
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceCardsModule, never>;
|
|
433
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceCardsModule, [typeof ResourceVideoCardComponent, typeof UpcomingEventCardComponent, typeof ResourceCardComponent, typeof CaseStudyCardComponent, typeof ResourceNoteCardComponent, typeof ResourceVaultComponent, typeof ResourceEditCardLazyComponent], [typeof i3.CommonModule, typeof i1.RouterModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.PipesModule, typeof i12.PaginatorModule, typeof i13.SelectModule, typeof i7.ResourceSharedComponentsModule, typeof i8.CoreTranslocoModule, typeof i9.TranslocoModule, typeof i10.DirectivesModule, typeof i18.DragDropModule, typeof i19.NgxCaptchaModule, typeof Trial4ContactUsModule], [typeof ResourceVideoCardComponent, typeof UpcomingEventCardComponent, typeof ResourceCardComponent, typeof CaseStudyCardComponent, typeof ResourceNoteCardComponent, typeof ResourceVaultComponent, typeof Trial4ContactUsModule, typeof ResourceEditCardLazyComponent, typeof i12.PaginatorModule]>;
|
|
434
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ResourceCardsModule>;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
declare class ResourceSharedModule {
|
|
438
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceSharedModule, never>;
|
|
439
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedModule, [typeof ResourceCompanyCardComponent, typeof ResourceTopBannerEditComponent], [typeof i3.CommonModule, typeof i1.RouterModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.PipesModule, typeof i7.ResourceSharedComponentsModule, typeof i8.CoreTranslocoModule, typeof i9.TranslocoModule, typeof i10.DirectivesModule, typeof i11.InputTextModule, typeof i12$1.TextareaModule, typeof ResourceCardsModule, typeof i14.HubSpotMeetingsSharedModule], [typeof ResourceCompanyCardComponent, typeof ResourceTopBannerEditComponent, typeof ResourceCardsModule, typeof i14.HubSpotMeetingsSharedModule, typeof i3.CommonModule, typeof i1.RouterModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.PipesModule, typeof i7.ResourceSharedComponentsModule, typeof i8.CoreTranslocoModule, typeof i9.TranslocoModule, typeof i10.DirectivesModule, typeof i11.InputTextModule, typeof i12$1.TextareaModule]>;
|
|
440
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ResourceSharedModule>;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
declare class ResourceEditCardComponent extends AppBaseComponent implements OnInit {
|
|
444
|
+
private readonly fb;
|
|
445
|
+
private readonly modalService;
|
|
446
|
+
private readonly resourceService;
|
|
447
|
+
private readonly authService;
|
|
448
|
+
private readonly tagService;
|
|
449
|
+
private readonly cdr;
|
|
450
|
+
id: number;
|
|
451
|
+
resourceData: any;
|
|
452
|
+
updated: EventEmitter<void>;
|
|
453
|
+
editForm: FormGroup;
|
|
454
|
+
image: string;
|
|
455
|
+
rectangularImage: string;
|
|
456
|
+
file: File | null;
|
|
457
|
+
rectangularFile: File | null;
|
|
458
|
+
imageModalRef: any;
|
|
459
|
+
selectedTags: any[];
|
|
460
|
+
allTags: any[];
|
|
461
|
+
tagsSuggestion: any[];
|
|
462
|
+
subscriptionId: number;
|
|
463
|
+
userLoggedIn: boolean;
|
|
464
|
+
buttonBusy: boolean;
|
|
465
|
+
constructor(fb: FormBuilder, modalService: NgbModal, resourceService: ResourceService, authService: AuthService, tagService: TagService, cdr: ChangeDetectorRef, injector: Injector);
|
|
466
|
+
ngOnInit(): void;
|
|
467
|
+
navigateToResourceEdit(): void;
|
|
468
|
+
openModal(modalTemplate: any): void;
|
|
469
|
+
search(event: any): void;
|
|
470
|
+
private getPostTags;
|
|
471
|
+
deleteRectangularImage(): void;
|
|
472
|
+
openImageModal(modalTemplate: any): void;
|
|
473
|
+
onImageSelected(base64: string): void;
|
|
474
|
+
onRectangularImageSelection(base64: string): void;
|
|
475
|
+
removeImage(): void;
|
|
476
|
+
saveResource(): void;
|
|
477
|
+
private saveTags;
|
|
478
|
+
private handlePicture;
|
|
479
|
+
private handlePublishedAt;
|
|
480
|
+
private handleAcceptedAt;
|
|
481
|
+
private handleOptionalFields;
|
|
482
|
+
private handleRectangularPicture;
|
|
483
|
+
private handleRemovals;
|
|
484
|
+
openRectModal(content: any): void;
|
|
485
|
+
handleImageError(event: Event, fallbackPath: any): void;
|
|
486
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceEditCardComponent, never>;
|
|
487
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceEditCardComponent, "pw-resource-edit-card", never, { "id": { "alias": "id"; "required": false; }; "resourceData": { "alias": "resourceData"; "required": false; }; }, { "updated": "updated"; }, never, never, false, never>;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Lazy-loadable module for ResourceEditCard
|
|
492
|
+
* Contains heavy dependencies (Quill, Calendar, etc.) that are only needed for admins
|
|
493
|
+
* This module is dynamically imported when edit button is clicked
|
|
494
|
+
*/
|
|
495
|
+
declare class ResourceEditModule {
|
|
496
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceEditModule, never>;
|
|
497
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceEditModule, [typeof ResourceEditCardComponent], [typeof i3.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i4.DatePickerModule, typeof i5$1.AutoCompleteModule, typeof i7.ResourceSharedComponentsModule, typeof i8.CoreTranslocoModule, typeof i9.TranslocoModule, typeof i10.DirectivesModule, typeof i10$1.QuillModule, typeof i11$1.UiSwitchModule], [typeof ResourceEditCardComponent]>;
|
|
498
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ResourceEditModule>;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
interface ResourceModalContext {
|
|
502
|
+
modal: {
|
|
503
|
+
dismiss: () => void;
|
|
504
|
+
close: () => void;
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
declare class TestimonialCardListComponent implements OnChanges {
|
|
509
|
+
editPost: EventEmitter<object>;
|
|
510
|
+
posts: Resource[];
|
|
511
|
+
postHeader: string;
|
|
512
|
+
canEdit: boolean;
|
|
513
|
+
swiper: any;
|
|
514
|
+
ngOnChanges(changes: any): void;
|
|
515
|
+
private initSwiper;
|
|
516
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TestimonialCardListComponent, never>;
|
|
517
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TestimonialCardListComponent, "pw-testimonial-card", never, { "posts": { "alias": "posts"; "required": false; }; "postHeader": { "alias": "postHeader"; "required": false; }; "canEdit": { "alias": "canEdit"; "required": false; }; }, { "editPost": "editPost"; }, never, never, false, never>;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export { CaseStudyCardComponent, ResourceCardComponent, ResourceCardsModule, ResourceCompanyCardComponent, ResourceEditCardComponent, ResourceEditCardLazyComponent, ResourceEditModule, ResourceModule, ResourceNoteCardComponent, ResourcePublicModule, ResourceService, ResourceSharedModule, ResourceTopBannerEditComponent, ResourceVaultComponent, ResourceVideoCardComponent, TestimonialCardListComponent, Trial4ContactUsModule, UpcomingEventCardComponent };
|
|
521
|
+
export type { ResourceModalContext };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"posiwise-resource-module-base-top-banner.component-DwVBOTwY.mjs","sources":["../../../../libs/resource-module/src/lib/public/components/base/base-top-banner.component.ts"],"sourcesContent":["import { Component, Injector, OnInit } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\n\nimport { AppBaseComponent } from '@posiwise/app-base-component';\nimport { AuthService, TagService } from '@posiwise/common-services';\nimport { Resource, User } from '@posiwise/common-utilities';\nimport { HelperService } from '@posiwise/helper-service';\n\nimport { ResourceService } from '../../../resource.service';\n\n@Component({\n template: '',\n\n standalone: false\n})\nexport abstract class BaseTopBannerComponent extends AppBaseComponent implements OnInit {\n subscriptionId: number;\n masterSubscriptionId = this.appConfig.master_subscription.subscription_id;\n posts: Resource[] = [];\n testimonialsPosts = [];\n userLoggedIn: boolean;\n blogPostTag;\n tagCategory;\n blogTestimonialsPostTag;\n isLoaded = false;\n user: User;\n isMasterSubscription;\n\n canEditResourcesValue = false;\n\n constructor(\n protected readonly resourceService: ResourceService,\n protected readonly tagService: TagService,\n private readonly authService: AuthService,\n private readonly titleService: Title,\n injector: Injector\n ) {\n super(injector);\n }\n\n ngOnInit() {\n this.getUserSubscriptionId().subscribe(response => {\n this.subscriptionId = response;\n });\n this.authService.getToken$().subscribe(res => {\n this.userLoggedIn = !!res;\n if (this.userLoggedIn) {\n this.localStorage.getItem$('product').subscribe(res => {\n const data = res ? JSON.parse(res) : null;\n this.subscriptionId = data?.subscriptionId;\n });\n this.userService.getUserInfo().subscribe(data => {\n this.user = data;\n this.updateCanEditResourcesValue();\n this.getTags();\n });\n } else {\n this.getTags();\n }\n });\n }\n\n protected getTags() {\n this.isLoaded = false;\n this.tagService\n .getAllTagCategories(\n { search: this.getSearchTerm() },\n this.getEffectiveSubscriptionId()\n )\n .subscribe(response => {\n this.tagCategory = response?.tag_categories?.[0];\n this.getPostTags();\n });\n }\n\n private getPostTags() {\n this.tagService\n .getTagsByType('post_categories', {}, this.getEffectiveSubscriptionId())\n .subscribe(response => {\n this.blogPostTag = response.tags.find(\n tag => tag.tag_category_id === this.tagCategory?.id\n );\n this.updateSEOMetadata();\n })\n .add(() => {\n this.isLoaded = true;\n });\n }\n\n /** Helper method to get effective subscription ID */\n protected getEffectiveSubscriptionId(): number {\n return HelperService.getEffectiveSubscriptionId(\n this.user,\n this.subscriptionId,\n this.masterSubscriptionId\n );\n }\n\n protected updateSEOMetadata() {\n if (this.blogPostTag) {\n // Update page title if meta_title is available\n if (this.blogPostTag.meta_title) {\n this.titleService.setTitle(this.blogPostTag.meta_title);\n }\n\n // Update meta description if meta_description is available\n if (this.blogPostTag.meta_description) {\n this.updateMetaDescription(this.blogPostTag.meta_description);\n }\n }\n }\n\n private updateMetaDescription(description: string) {\n let metaDescription = document.querySelector('meta[name=\"description\"]');\n if (!metaDescription) {\n metaDescription = document.createElement('meta');\n metaDescription.setAttribute('name', 'description');\n document.head.appendChild(metaDescription);\n }\n metaDescription.setAttribute('content', description);\n }\n\n // Abstract method that each component must implement\n protected abstract getSearchTerm(): string;\n\n private updateCanEditResourcesValue(): void {\n if (this.userLoggedIn && this.user) {\n this.canEditResourcesValue = HelperService.canEditResources(\n this.user,\n this.userLoggedIn,\n this.permissionService\n );\n } else {\n this.canEditResourcesValue = false;\n }\n }\n\n canEditResources(): boolean {\n return this.canEditResourcesValue;\n }\n}\n"],"names":["i1.ResourceService"],"mappings":";;;;;;;;AAeM,MAAgB,sBAAuB,SAAQ,gBAAgB,CAAA;IAejE,WAAA,CACuB,eAAgC,EAChC,UAAsB,EACxB,WAAwB,EACxB,YAAmB,EACpC,QAAkB,EAAA;QAElB,KAAK,CAAC,QAAQ,CAAC;QANI,IAAA,CAAA,eAAe,GAAf,eAAe;QACf,IAAA,CAAA,UAAU,GAAV,UAAU;QACZ,IAAA,CAAA,WAAW,GAAX,WAAW;QACX,IAAA,CAAA,YAAY,GAAZ,YAAY;QAjBjC,IAAA,CAAA,oBAAoB,GAAG,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,eAAe;QACzE,IAAA,CAAA,KAAK,GAAe,EAAE;QACtB,IAAA,CAAA,iBAAiB,GAAG,EAAE;QAKtB,IAAA,CAAA,QAAQ,GAAG,KAAK;QAIhB,IAAA,CAAA,qBAAqB,GAAG,KAAK;IAU7B;IAEA,QAAQ,GAAA;QACJ,IAAI,CAAC,qBAAqB,EAAE,CAAC,SAAS,CAAC,QAAQ,IAAG;AAC9C,YAAA,IAAI,CAAC,cAAc,GAAG,QAAQ;AAClC,QAAA,CAAC,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC,SAAS,CAAC,GAAG,IAAG;AACzC,YAAA,IAAI,CAAC,YAAY,GAAG,CAAC,CA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