@posiwise/resource-module 0.0.129 → 0.0.131
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/public/components/resource-blogs/resource-blog.component.mjs +1 -3
- package/esm2022/lib/public/components/resource-case-studies/resource-case-studies.component.mjs +1 -4
- package/esm2022/lib/public/components/resource-company-card/resource-company-card.component.mjs +4 -4
- package/esm2022/lib/public/components/resource-edit-card/resource-edit-card.component.mjs +1 -2
- package/esm2022/lib/public/components/resource-integration/integration-top-banner/integration-top-banner.component.mjs +1 -2
- package/esm2022/lib/public/components/resource-integration/resource-integration.component.mjs +1 -2
- package/esm2022/lib/public/components/resource-post/related-resources/related-resources.component.mjs +2 -9
- package/esm2022/lib/public/components/resource-post/related-resources/resource-cards/resource-cards.component.mjs +3 -3
- package/esm2022/lib/public/components/resource-videos/resource-video-cards/resource-video-cards.component.mjs +1 -2
- package/esm2022/lib/public/components/resource-videos/resource-videos.component.mjs +1 -3
- package/esm2022/lib/public/components/resource-webinars/upcoming-event-cards/upcoming-event-cards.component.mjs +1 -2
- package/esm2022/lib/public/components/resources/resource-tags/resource-tags.component.mjs +12 -4
- package/esm2022/lib/public/components/resources-hub/resources-hub.component.mjs +4 -4
- package/fesm2022/posiwise-resource-module.mjs +20 -31
- package/fesm2022/posiwise-resource-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -216,7 +216,6 @@ class ResourceEditCardComponent extends AppBaseComponent {
|
|
|
216
216
|
this.imageModalRef?.close();
|
|
217
217
|
}
|
|
218
218
|
onRectangularImageSelection(base64) {
|
|
219
|
-
console.log('In this');
|
|
220
219
|
this.rectangularImage = base64;
|
|
221
220
|
this.rectangularFile = HelperService.convertBase64ToFile(base64);
|
|
222
221
|
this.imageModalRef?.close();
|
|
@@ -520,11 +519,11 @@ class ResourceCardComponent extends AppBaseComponent {
|
|
|
520
519
|
});
|
|
521
520
|
}
|
|
522
521
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ResourceCardComponent, deps: [{ token: i0.Injector }, { token: ResourceService }, { token: i2.TagService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
523
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: ResourceCardComponent, selector: "pw-resource-cards", inputs: { categoryId: "categoryId", isHeaderVisible: "isHeaderVisible", isRelated: "isRelated", resourceTitle: "resourceTitle", postSlice: "postSlice", header: "header", tag: "tag", resourceLink: "resourceLink" }, usesInheritance: true, ngImport: i0, template: "<section class=\"msp-vault-section bg-white\">\n <div class=\"container\">\n <div class=\"d-flex justify-content-between align-items-center flex-wrap\" *ngIf=\"isHeaderVisible\">\n <h2 class=\"section-heading d-flex align-items-center\" [ngClass]=\"{ 'w-50': isEditingTitle }\">\n <ng-container *ngIf=\"!isEditingTitle; else editTitleBlock\">\n <span *ngIf=\"resourceTitle; else fallback\" [innerHTML]=\"resourceTitle\"></span>\n <ng-template #fallback>Our team\u2019s articles</ng-template>\n <i *ngIf=\"!isRelated && userLoggedIn && user?.auth?.granted['Pages.Admin']\" class=\"fa fa-edit in-page-edit-icon ms-3 cursor-pointer\" (click)=\"toggleTagEditTitle()\" title=\"Edit Title\"></i>\n </ng-container>\n\n <ng-template #editTitleBlock>\n <input [(ngModel)]=\"editedTitle\" class=\"form-control d-inline w-auto me-2\" [ngClass]=\"{ 'w-100': isEditingTitle }\" />\n <button class=\"btn btn-sm btn-primary me-1\" (click)=\"saveEditedTitle()\">Save</button>\n <button class=\"btn btn-sm btn-secondary\" (click)=\"isEditingTitle = false\">Cancel</button>\n </ng-template>\n </h2>\n <a class=\"view-all\" [routerLink]=\"resourceLink\">VIEW ALL ></a>\n </div>\n\n <div class=\"w-100 text-center mt-3\" *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <div *ngIf=\"posts.length === 0 && isLoaded\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Resource.NoDataMessage' | transloco\"/>\n </div>\n\n <div class=\"row d-flex flex-wrap justify-content-center gap-4 video-row\" *ngIf=\"posts.length !== 0 && isLoaded\">\n <div class=\"resource-blog-card p-4\" *ngFor=\"let post of posts\">\n <pw-resource-edit-card\n *ngIf=\"userLoggedIn && user?.auth?.granted['Pages.Admin']\"\n [id]=\"post.id\"\n [resourceData]=\"post\"\n (updated)=\"getPosts(1, 100)\"></pw-resource-edit-card>\n
|
|
522
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: ResourceCardComponent, selector: "pw-resource-cards", inputs: { categoryId: "categoryId", isHeaderVisible: "isHeaderVisible", isRelated: "isRelated", resourceTitle: "resourceTitle", postSlice: "postSlice", header: "header", tag: "tag", resourceLink: "resourceLink" }, usesInheritance: true, ngImport: i0, template: "<section class=\"msp-vault-section bg-white\">\n <div class=\"container\">\n <div class=\"d-flex justify-content-between align-items-center flex-wrap\" *ngIf=\"isHeaderVisible\">\n <h2 class=\"section-heading d-flex align-items-center\" [ngClass]=\"{ 'w-50': isEditingTitle }\">\n <ng-container *ngIf=\"!isEditingTitle; else editTitleBlock\">\n <span *ngIf=\"resourceTitle; else fallback\" [innerHTML]=\"resourceTitle\"></span>\n <ng-template #fallback>Our team\u2019s articles</ng-template>\n <i *ngIf=\"!isRelated && userLoggedIn && user?.auth?.granted['Pages.Admin']\" class=\"fa fa-edit in-page-edit-icon ms-3 cursor-pointer\" (click)=\"toggleTagEditTitle()\" title=\"Edit Title\"></i>\n </ng-container>\n\n <ng-template #editTitleBlock>\n <input [(ngModel)]=\"editedTitle\" class=\"form-control d-inline w-auto me-2\" [ngClass]=\"{ 'w-100': isEditingTitle }\" />\n <button class=\"btn btn-sm btn-primary me-1\" (click)=\"saveEditedTitle()\">Save</button>\n <button class=\"btn btn-sm btn-secondary\" (click)=\"isEditingTitle = false\">Cancel</button>\n </ng-template>\n </h2>\n <a class=\"view-all\" [routerLink]=\"resourceLink\">VIEW ALL ></a>\n </div>\n\n <div class=\"w-100 text-center mt-3\" *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <div *ngIf=\"posts.length === 0 && isLoaded\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Resource.NoDataMessage' | transloco\"/>\n </div>\n\n <div class=\"row d-flex flex-wrap justify-content-center gap-4 video-row\" *ngIf=\"posts.length !== 0 && isLoaded\">\n <div class=\"resource-blog-card p-4\" *ngFor=\"let post of posts\">\n <pw-resource-edit-card\n *ngIf=\"userLoggedIn && user?.auth?.granted['Pages.Admin']\"\n [id]=\"post.id\"\n [resourceData]=\"post\"\n (updated)=\"getPosts(1, 100)\"></pw-resource-edit-card>\n <p class=\"resource-title\" [innerHTML]=\"post.title \"></p>\n <a\n [href]=\"post.external_url || ('/resources/view/' + post?.slug)\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n aria-label=\"Navigate to resource\"\n >\n <img\n [src]=\"post.picture.url\"\n class=\"img-fluid my-3 mt-auto\"\n alt=\"Webinar\"\n /></a>\n <a *ngIf=\"post?.external_url; else internalLink\"\n class=\"resource-btn mt-3\"\n [href]=\"post.external_url\"\n aria-label=\"Navigate to external url\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n <span>{{ post?.cta_text && post.cta_text !== 'null' ? post.cta_text : 'Read Now' }}</span>\n <span class=\"arrow\">\u2192</span>\n </a>\n\n <ng-template #internalLink>\n <a class=\"resource-btn mt-3\" aria-label=\"Navigate to resource view\" [href]=\"'/resources/view/' + post?.slug\" target=\"_blank\">\n <span>{{ post?.cta_text && post.cta_text !== 'null' ? post.cta_text : 'Read Now' }}</span>\n <span class=\"arrow\">\u2192</span>\n </a>\n </ng-template>\n </div>\n </div>\n </div>\n </section>", styles: [".bold{font-weight:700}.nce-heading{margin-bottom:2rem}.nce-note{margin-top:1rem;font-size:.85rem;color:#555}.nce-divider{border:0;height:40px;width:100%;background:linear-gradient(to bottom,#0000,#00000026);margin:0}.press-release-icon{height:auto!important;margin:0 11px 1.9rem;display:block;align-self:center;width:auto!important;aspect-ratio:0!important;object-fit:cover;margin-top:auto;margin-right:0!important}.msp-vault-section{padding:60px 0;background:#fff;padding-bottom:9rem!important;padding-top:7rem!important;box-shadow:0 4px 32px -14px #40576d4d!important}.msp-vault-section .vault-heading{font-size:3rem;font-weight:300}.msp-vault-section .explore-link{color:#000;font-weight:400;text-decoration:none;font-size:1.5rem}.msp-vault-section .resource-blog-card{display:flex;flex-direction:column;justify-content:space-between;background-color:#fff;border-radius:30px;box-shadow:0 20px 40px #00000014;padding:25px;text-align:center;width:338px;height:auto!important}.msp-vault-section .resource-blog-card h5{font-size:1.5rem;font-weight:400;margin-bottom:.5rem;color:var(--text-color, black)}.msp-vault-section .resource-blog-card p{font-size:1.5rem;color:var(--text-color, black);line-height:2rem}.msp-vault-section .resource-blog-card img{width:100%;border-radius:10px;aspect-ratio:1/1;object-fit:cover;margin-top:auto;margin-right:0!important;max-width:250px!important;align-self:center!important}.msp-vault-section .resource-blog-card iframe{height:210px;border-radius:10px;object-fit:cover;margin-right:0!important;max-width:280px!important}.msp-vault-section .resource-blog-card .resource-btn{background-color:var(--text-color, black);color:#fff;margin-top:auto;padding:10px 24px;border-radius:24px;font-size:1.5rem;font-weight:500;width:100%;max-width:240px;cursor:pointer;transition:background .3s ease;display:flex;justify-content:space-between;align-self:center;align-items:center;text-align:left;text-decoration:none;border:1px solid;box-shadow:none!important;border-color:var(--text-color, black)}.msp-vault-section .resource-blog-card .resource-btn:hover{background:#fff;color:var(--text-color, black)!important}.msp-vault-section .vault-description{text-align:left;max-width:657px;color:#182527;line-height:2.3rem!important;font-size:1.65rem}@media (width <= 1200px){.msp-vault-section .vault-heading{font-size:3.5rem}.msp-vault-section .vault-description{margin-top:1.35rem}.msp-vault-section .resource-btn{margin-left:0!important}}.video-row{gap:5.5rem!important;margin-top:3rem!important}@media (width >= 991px){section.bg-white.text-center.extra-top-padding{position:relative;overflow:hidden}section.bg-white.text-center.extra-top-padding .banner-header{margin-bottom:4rem!important}}.vault-header{text-align:left}@media (width >= 768px) and (width <= 1200px){.container{padding:0 6rem!important}}@media (width <= 768px){.video-row{gap:3rem!important}}@media (width <= 768px){.vault-header{text-align:center!important}.vault-heading{font-size:3rem!important}}@media (width <= 1200px){.container{padding:1rem 3rem!important}}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i5$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i6$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i5.NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "directive", type: i8.LazyImgDirective, selector: "img" }, { kind: "component", type: ResourceEditCardComponent, selector: "pw-resource-edit-card", inputs: ["id", "resourceData"], outputs: ["updated"] }, { kind: "pipe", type: i10$1.TranslocoPipe, name: "transloco" }] }); }
|
|
524
523
|
}
|
|
525
524
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ResourceCardComponent, decorators: [{
|
|
526
525
|
type: Component,
|
|
527
|
-
args: [{ selector: 'pw-resource-cards', template: "<section class=\"msp-vault-section bg-white\">\n <div class=\"container\">\n <div class=\"d-flex justify-content-between align-items-center flex-wrap\" *ngIf=\"isHeaderVisible\">\n <h2 class=\"section-heading d-flex align-items-center\" [ngClass]=\"{ 'w-50': isEditingTitle }\">\n <ng-container *ngIf=\"!isEditingTitle; else editTitleBlock\">\n <span *ngIf=\"resourceTitle; else fallback\" [innerHTML]=\"resourceTitle\"></span>\n <ng-template #fallback>Our team\u2019s articles</ng-template>\n <i *ngIf=\"!isRelated && userLoggedIn && user?.auth?.granted['Pages.Admin']\" class=\"fa fa-edit in-page-edit-icon ms-3 cursor-pointer\" (click)=\"toggleTagEditTitle()\" title=\"Edit Title\"></i>\n </ng-container>\n\n <ng-template #editTitleBlock>\n <input [(ngModel)]=\"editedTitle\" class=\"form-control d-inline w-auto me-2\" [ngClass]=\"{ 'w-100': isEditingTitle }\" />\n <button class=\"btn btn-sm btn-primary me-1\" (click)=\"saveEditedTitle()\">Save</button>\n <button class=\"btn btn-sm btn-secondary\" (click)=\"isEditingTitle = false\">Cancel</button>\n </ng-template>\n </h2>\n <a class=\"view-all\" [routerLink]=\"resourceLink\">VIEW ALL ></a>\n </div>\n\n <div class=\"w-100 text-center mt-3\" *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <div *ngIf=\"posts.length === 0 && isLoaded\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Resource.NoDataMessage' | transloco\"/>\n </div>\n\n <div class=\"row d-flex flex-wrap justify-content-center gap-4 video-row\" *ngIf=\"posts.length !== 0 && isLoaded\">\n <div class=\"resource-blog-card p-4\" *ngFor=\"let post of posts\">\n <pw-resource-edit-card\n *ngIf=\"userLoggedIn && user?.auth?.granted['Pages.Admin']\"\n [id]=\"post.id\"\n [resourceData]=\"post\"\n (updated)=\"getPosts(1, 100)\"></pw-resource-edit-card>\n
|
|
526
|
+
args: [{ selector: 'pw-resource-cards', template: "<section class=\"msp-vault-section bg-white\">\n <div class=\"container\">\n <div class=\"d-flex justify-content-between align-items-center flex-wrap\" *ngIf=\"isHeaderVisible\">\n <h2 class=\"section-heading d-flex align-items-center\" [ngClass]=\"{ 'w-50': isEditingTitle }\">\n <ng-container *ngIf=\"!isEditingTitle; else editTitleBlock\">\n <span *ngIf=\"resourceTitle; else fallback\" [innerHTML]=\"resourceTitle\"></span>\n <ng-template #fallback>Our team\u2019s articles</ng-template>\n <i *ngIf=\"!isRelated && userLoggedIn && user?.auth?.granted['Pages.Admin']\" class=\"fa fa-edit in-page-edit-icon ms-3 cursor-pointer\" (click)=\"toggleTagEditTitle()\" title=\"Edit Title\"></i>\n </ng-container>\n\n <ng-template #editTitleBlock>\n <input [(ngModel)]=\"editedTitle\" class=\"form-control d-inline w-auto me-2\" [ngClass]=\"{ 'w-100': isEditingTitle }\" />\n <button class=\"btn btn-sm btn-primary me-1\" (click)=\"saveEditedTitle()\">Save</button>\n <button class=\"btn btn-sm btn-secondary\" (click)=\"isEditingTitle = false\">Cancel</button>\n </ng-template>\n </h2>\n <a class=\"view-all\" [routerLink]=\"resourceLink\">VIEW ALL ></a>\n </div>\n\n <div class=\"w-100 text-center mt-3\" *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <div *ngIf=\"posts.length === 0 && isLoaded\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Resource.NoDataMessage' | transloco\"/>\n </div>\n\n <div class=\"row d-flex flex-wrap justify-content-center gap-4 video-row\" *ngIf=\"posts.length !== 0 && isLoaded\">\n <div class=\"resource-blog-card p-4\" *ngFor=\"let post of posts\">\n <pw-resource-edit-card\n *ngIf=\"userLoggedIn && user?.auth?.granted['Pages.Admin']\"\n [id]=\"post.id\"\n [resourceData]=\"post\"\n (updated)=\"getPosts(1, 100)\"></pw-resource-edit-card>\n <p class=\"resource-title\" [innerHTML]=\"post.title \"></p>\n <a\n [href]=\"post.external_url || ('/resources/view/' + post?.slug)\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n aria-label=\"Navigate to resource\"\n >\n <img\n [src]=\"post.picture.url\"\n class=\"img-fluid my-3 mt-auto\"\n alt=\"Webinar\"\n /></a>\n <a *ngIf=\"post?.external_url; else internalLink\"\n class=\"resource-btn mt-3\"\n [href]=\"post.external_url\"\n aria-label=\"Navigate to external url\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n <span>{{ post?.cta_text && post.cta_text !== 'null' ? post.cta_text : 'Read Now' }}</span>\n <span class=\"arrow\">\u2192</span>\n </a>\n\n <ng-template #internalLink>\n <a class=\"resource-btn mt-3\" aria-label=\"Navigate to resource view\" [href]=\"'/resources/view/' + post?.slug\" target=\"_blank\">\n <span>{{ post?.cta_text && post.cta_text !== 'null' ? post.cta_text : 'Read Now' }}</span>\n <span class=\"arrow\">\u2192</span>\n </a>\n </ng-template>\n </div>\n </div>\n </div>\n </section>", styles: [".bold{font-weight:700}.nce-heading{margin-bottom:2rem}.nce-note{margin-top:1rem;font-size:.85rem;color:#555}.nce-divider{border:0;height:40px;width:100%;background:linear-gradient(to bottom,#0000,#00000026);margin:0}.press-release-icon{height:auto!important;margin:0 11px 1.9rem;display:block;align-self:center;width:auto!important;aspect-ratio:0!important;object-fit:cover;margin-top:auto;margin-right:0!important}.msp-vault-section{padding:60px 0;background:#fff;padding-bottom:9rem!important;padding-top:7rem!important;box-shadow:0 4px 32px -14px #40576d4d!important}.msp-vault-section .vault-heading{font-size:3rem;font-weight:300}.msp-vault-section .explore-link{color:#000;font-weight:400;text-decoration:none;font-size:1.5rem}.msp-vault-section .resource-blog-card{display:flex;flex-direction:column;justify-content:space-between;background-color:#fff;border-radius:30px;box-shadow:0 20px 40px #00000014;padding:25px;text-align:center;width:338px;height:auto!important}.msp-vault-section .resource-blog-card h5{font-size:1.5rem;font-weight:400;margin-bottom:.5rem;color:var(--text-color, black)}.msp-vault-section .resource-blog-card p{font-size:1.5rem;color:var(--text-color, black);line-height:2rem}.msp-vault-section .resource-blog-card img{width:100%;border-radius:10px;aspect-ratio:1/1;object-fit:cover;margin-top:auto;margin-right:0!important;max-width:250px!important;align-self:center!important}.msp-vault-section .resource-blog-card iframe{height:210px;border-radius:10px;object-fit:cover;margin-right:0!important;max-width:280px!important}.msp-vault-section .resource-blog-card .resource-btn{background-color:var(--text-color, black);color:#fff;margin-top:auto;padding:10px 24px;border-radius:24px;font-size:1.5rem;font-weight:500;width:100%;max-width:240px;cursor:pointer;transition:background .3s ease;display:flex;justify-content:space-between;align-self:center;align-items:center;text-align:left;text-decoration:none;border:1px solid;box-shadow:none!important;border-color:var(--text-color, black)}.msp-vault-section .resource-blog-card .resource-btn:hover{background:#fff;color:var(--text-color, black)!important}.msp-vault-section .vault-description{text-align:left;max-width:657px;color:#182527;line-height:2.3rem!important;font-size:1.65rem}@media (width <= 1200px){.msp-vault-section .vault-heading{font-size:3.5rem}.msp-vault-section .vault-description{margin-top:1.35rem}.msp-vault-section .resource-btn{margin-left:0!important}}.video-row{gap:5.5rem!important;margin-top:3rem!important}@media (width >= 991px){section.bg-white.text-center.extra-top-padding{position:relative;overflow:hidden}section.bg-white.text-center.extra-top-padding .banner-header{margin-bottom:4rem!important}}.vault-header{text-align:left}@media (width >= 768px) and (width <= 1200px){.container{padding:0 6rem!important}}@media (width <= 768px){.video-row{gap:3rem!important}}@media (width <= 768px){.vault-header{text-align:center!important}.vault-heading{font-size:3rem!important}}@media (width <= 1200px){.container{padding:1rem 3rem!important}}\n"] }]
|
|
528
527
|
}], ctorParameters: () => [{ type: i0.Injector }, { type: ResourceService }, { type: i2.TagService }], propDecorators: { categoryId: [{
|
|
529
528
|
type: Input
|
|
530
529
|
}], isHeaderVisible: [{
|
|
@@ -720,11 +719,9 @@ class ResourceBlogComponent extends AppBaseComponent {
|
|
|
720
719
|
});
|
|
721
720
|
}
|
|
722
721
|
getPosts(page, pageSize) {
|
|
723
|
-
console.log(this.blogPostTag);
|
|
724
722
|
this.resourceService
|
|
725
723
|
.getPublicPosts(this.subscriptionId || this.masterSubscriptionId, page, pageSize, '', this.blogPostTag?.tag_category_id)
|
|
726
724
|
.subscribe(response => {
|
|
727
|
-
console.log(response.posts, this.blogPostTag);
|
|
728
725
|
this.posts = response.posts
|
|
729
726
|
.filter(post => post.tags?.some(tag => tag?.tag_category_id === this.blogPostTag?.tag_category_id))
|
|
730
727
|
.sort((a, b) => new Date(b.published_at).getTime() - new Date(a.published_at).getTime())
|
|
@@ -942,7 +939,6 @@ class ResourceCaseStudiesComponent extends AppBaseComponent {
|
|
|
942
939
|
this.tagService
|
|
943
940
|
.getTagsByType('post_categories', {}, this.subscriptionId || this.masterSubscriptionId)
|
|
944
941
|
.subscribe(response => {
|
|
945
|
-
console.log(this.tagCategory);
|
|
946
942
|
this.blogPostTag = response.tags.find(tag => tag.tag_category_id === this.tagCategory?.id);
|
|
947
943
|
})
|
|
948
944
|
.add(() => {
|
|
@@ -958,11 +954,9 @@ class ResourceCaseStudiesComponent extends AppBaseComponent {
|
|
|
958
954
|
});
|
|
959
955
|
}
|
|
960
956
|
getTestimonialsPosts(page, pageSize) {
|
|
961
|
-
console.log(this.blogTestimonialsPostTag?.tag_category_id, 'sop');
|
|
962
957
|
this.resourceService
|
|
963
958
|
.getPublicPosts(this.subscriptionId || this.masterSubscriptionId, page, pageSize, '', this.blogTestimonialsPostTag?.tag_category_id)
|
|
964
959
|
.subscribe(response => {
|
|
965
|
-
console.log(response.posts);
|
|
966
960
|
this.testimonialsPosts = response.posts
|
|
967
961
|
.filter(post => post.showcase === true)
|
|
968
962
|
.sort((a, b) => new Date(b.published_at).getTime() - new Date(a.published_at).getTime());
|
|
@@ -999,10 +993,10 @@ class ResourceCompanyCardComponent extends AppBaseComponent {
|
|
|
999
993
|
const data = res ? JSON.parse(res) : null;
|
|
1000
994
|
this.subscriptionId = data?.subscriptionId;
|
|
1001
995
|
});
|
|
996
|
+
this.userService.getUserInfo().subscribe(data => {
|
|
997
|
+
this.user = data;
|
|
998
|
+
});
|
|
1002
999
|
}
|
|
1003
|
-
this.userService.getUserInfo().subscribe(data => {
|
|
1004
|
-
this.user = data;
|
|
1005
|
-
});
|
|
1006
1000
|
});
|
|
1007
1001
|
}
|
|
1008
1002
|
search(keywords) {
|
|
@@ -1084,7 +1078,6 @@ class IntegrationTopBannerComponent extends AppBaseComponent {
|
|
|
1084
1078
|
this.tagService
|
|
1085
1079
|
.getTagsByType('post_categories', {}, this.subscriptionId || this.masterSubscriptionId)
|
|
1086
1080
|
.subscribe(response => {
|
|
1087
|
-
console.log(this.tagCategory, response.tags, 'sop');
|
|
1088
1081
|
this.blogPostTag = response.tags.find(tag => tag.tag_category_id === this.tagCategory?.id);
|
|
1089
1082
|
})
|
|
1090
1083
|
.add(() => {
|
|
@@ -1129,7 +1122,6 @@ class ResourceIntegrationComponent extends AppBaseComponent {
|
|
|
1129
1122
|
this.domainId = this.appConfig.domain_id;
|
|
1130
1123
|
}
|
|
1131
1124
|
ngOnInit() {
|
|
1132
|
-
console.log(this.guideData);
|
|
1133
1125
|
this.companyName = this.appConfig.company.name;
|
|
1134
1126
|
document.documentElement.style.setProperty('--text-color', this.textColor);
|
|
1135
1127
|
this.getUserSubscriptionId().subscribe(response => {
|
|
@@ -1330,7 +1322,6 @@ class RelatedResourcesComponent extends AppBaseComponent {
|
|
|
1330
1322
|
this.slug = params['slug'] ?? '';
|
|
1331
1323
|
this.getBlogItem(this.slug);
|
|
1332
1324
|
});
|
|
1333
|
-
console.log(this.linkedInUrl, this.appConfig);
|
|
1334
1325
|
this.localStorage.getItem$(TOKEN_KEY).subscribe(res => {
|
|
1335
1326
|
this.userLoggedIn = !!res;
|
|
1336
1327
|
if (this.userLoggedIn) {
|
|
@@ -1363,7 +1354,6 @@ class RelatedResourcesComponent extends AppBaseComponent {
|
|
|
1363
1354
|
}
|
|
1364
1355
|
const date = new Date(response?.when);
|
|
1365
1356
|
const formatted = date.toISOString().split('T')[0];
|
|
1366
|
-
console.log(formatted); //
|
|
1367
1357
|
this.postComments = response.entity_comments;
|
|
1368
1358
|
this.post = { ...response, body: blogBody, when: formatted };
|
|
1369
1359
|
});
|
|
@@ -1373,15 +1363,10 @@ class RelatedResourcesComponent extends AppBaseComponent {
|
|
|
1373
1363
|
data.related_entity_id = this.post?.id;
|
|
1374
1364
|
data.related_entity_type = 'Post';
|
|
1375
1365
|
data.user_id = this.user?.id;
|
|
1376
|
-
this.resourceService
|
|
1377
|
-
.postComments(data)
|
|
1378
|
-
.subscribe(() => {
|
|
1366
|
+
this.resourceService.postComments(data).subscribe(() => {
|
|
1379
1367
|
this.getBlogItem(this.slug);
|
|
1380
1368
|
this.commentForm.reset();
|
|
1381
1369
|
this.toastr.success(this.translation.translate('Resource.Posts.CommentAdded'));
|
|
1382
|
-
})
|
|
1383
|
-
.add(() => {
|
|
1384
|
-
console.log('In this');
|
|
1385
1370
|
});
|
|
1386
1371
|
}
|
|
1387
1372
|
trackByComment(_index, item) {
|
|
@@ -1675,7 +1660,6 @@ class ResourceVideoCardComponent extends AppBaseComponent {
|
|
|
1675
1660
|
}
|
|
1676
1661
|
getPosts(page, pageSize) {
|
|
1677
1662
|
this.isLoaded = false;
|
|
1678
|
-
console.log('pop', this.categoryId);
|
|
1679
1663
|
this.resourceService
|
|
1680
1664
|
.getPublicPosts(this.subscriptionId || this.masterSubscriptionId, page, pageSize, '', this.categoryId)
|
|
1681
1665
|
.subscribe(response => {
|
|
@@ -1812,11 +1796,9 @@ class ResourceVideoComponent extends AppBaseComponent {
|
|
|
1812
1796
|
});
|
|
1813
1797
|
}
|
|
1814
1798
|
getPosts(page, pageSize) {
|
|
1815
|
-
console.log(this.blogPostTag);
|
|
1816
1799
|
this.resourceService
|
|
1817
1800
|
.getPublicPosts(this.subscriptionId || this.masterSubscriptionId, page, pageSize, '', this.blogPostTag?.tag_category_id)
|
|
1818
1801
|
.subscribe(response => {
|
|
1819
|
-
console.log(response.posts, this.blogPostTag);
|
|
1820
1802
|
this.posts = response.posts
|
|
1821
1803
|
.filter(post => post.tags?.some(tag => tag.tag_category_id === this.blogPostTag?.tag_category_id))
|
|
1822
1804
|
.sort((a, b) => new Date(b.published_at).getTime() - new Date(a.published_at).getTime())
|
|
@@ -1955,7 +1937,6 @@ class UpcomingEventCardComponent extends AppBaseComponent {
|
|
|
1955
1937
|
this.posts = sortedPosts;
|
|
1956
1938
|
})
|
|
1957
1939
|
.add(() => {
|
|
1958
|
-
console.log('Bang New');
|
|
1959
1940
|
this.isLoaded = true;
|
|
1960
1941
|
});
|
|
1961
1942
|
}
|
|
@@ -2079,9 +2060,17 @@ class ResourceTagComponent extends AppBaseComponent {
|
|
|
2079
2060
|
});
|
|
2080
2061
|
this.localStorage.getItem$(TOKEN_KEY).subscribe(res => {
|
|
2081
2062
|
this.userLoggedIn = !!res;
|
|
2082
|
-
this.
|
|
2083
|
-
this.
|
|
2084
|
-
|
|
2063
|
+
if (this.userLoggedIn) {
|
|
2064
|
+
this.userService.getUserInfo().subscribe({
|
|
2065
|
+
next: data => {
|
|
2066
|
+
console.log(data);
|
|
2067
|
+
this.user = data;
|
|
2068
|
+
},
|
|
2069
|
+
error: err => {
|
|
2070
|
+
console.error('Failed to fetch user info', err);
|
|
2071
|
+
}
|
|
2072
|
+
});
|
|
2073
|
+
}
|
|
2085
2074
|
});
|
|
2086
2075
|
}
|
|
2087
2076
|
navigateToTagList() {
|
|
@@ -2287,10 +2276,10 @@ class ResourceHubComponent extends AppBaseComponent {
|
|
|
2287
2276
|
const data = res ? JSON.parse(res) : null;
|
|
2288
2277
|
this.subscriptionId = data?.subscriptionId;
|
|
2289
2278
|
});
|
|
2279
|
+
this.userService.getUserInfo().subscribe(data => {
|
|
2280
|
+
this.user = data;
|
|
2281
|
+
});
|
|
2290
2282
|
}
|
|
2291
|
-
this.userService.getUserInfo().subscribe(data => {
|
|
2292
|
-
this.user = data;
|
|
2293
|
-
});
|
|
2294
2283
|
});
|
|
2295
2284
|
this.masterSubscriptionId = this.appConfig.master_subscription.subscription_id;
|
|
2296
2285
|
this.getPostsAndTags();
|