@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.
- package/esm2022/lib/public/components/base/base-resource.component.mjs +127 -0
- package/esm2022/lib/public/components/base/base-top-banner.component.mjs +69 -0
- package/esm2022/lib/public/components/reslease-note-card/release-note-card.component.mjs +9 -9
- package/esm2022/lib/public/components/resource-blogs/resource-blog-top-banner/resource-blog-top-banner.component.mjs +10 -51
- package/esm2022/lib/public/components/resource-blogs/resource-blog.component.mjs +10 -45
- package/esm2022/lib/public/components/resource-case-studies/case-studies-cards/case-studies-cards.component.mjs +9 -9
- package/esm2022/lib/public/components/resource-case-studies/resource-case-studies.component.mjs +16 -66
- package/esm2022/lib/public/components/resource-company-card/resource-company-card.component.mjs +15 -13
- package/esm2022/lib/public/components/resource-edit-card/resource-edit-card.component.mjs +15 -15
- package/esm2022/lib/public/components/resource-integration/integration-top-banner/integration-top-banner.component.mjs +10 -52
- package/esm2022/lib/public/components/resource-integration/resource-integration.component.mjs +11 -10
- package/esm2022/lib/public/components/resource-post/related-resources/related-resources.component.mjs +7 -7
- package/esm2022/lib/public/components/resource-post/related-resources/resource-cards/resource-cards.component.mjs +9 -9
- package/esm2022/lib/public/components/resource-post/resource-post-details/resource-post-details.component.mjs +8 -7
- package/esm2022/lib/public/components/resource-release-notes/resource-release-notes-top-banner/resource-release-notes-top-banner.component.mjs +10 -51
- package/esm2022/lib/public/components/resource-release-notes/resource-release-notes.component.mjs +14 -17
- package/esm2022/lib/public/components/resource-top-banner-edit/resource-top-banner-edit.component.mjs +16 -16
- package/esm2022/lib/public/components/resource-vault/resource-vault.component.mjs +14 -28
- package/esm2022/lib/public/components/resource-videos/resource-video-cards/resource-video-cards.component.mjs +9 -9
- package/esm2022/lib/public/components/resource-videos/resource-videos-top-banner/resource-videos-top-banner.component.mjs +10 -51
- package/esm2022/lib/public/components/resource-videos/resource-videos.component.mjs +10 -45
- package/esm2022/lib/public/components/resource-webinars/replay-event-cards/replay-event-cards.component.mjs +7 -7
- package/esm2022/lib/public/components/resource-webinars/resource-webinars.component.mjs +7 -7
- package/esm2022/lib/public/components/resource-webinars/upcoming-event-cards/upcoming-event-cards.component.mjs +9 -9
- package/esm2022/lib/public/components/resources/resource-tags/resource-tags.component.mjs +9 -9
- package/esm2022/lib/public/components/resources/vault-section/vault-section.component.mjs +20 -18
- package/esm2022/lib/public/components/resources-hub/resources-hub.component.mjs +9 -9
- package/esm2022/lib/public/components/resources-read/resources-read.component.mjs +7 -7
- package/esm2022/lib/public/components/testimonial-card/testimonial-card.component.mjs +3 -3
- package/esm2022/lib/public/components/white-papers/white-papers-top-banner/white-papers-top-banner.component.mjs +10 -51
- package/esm2022/lib/public/components/white-papers/white-papers.component.mjs +10 -45
- package/fesm2022/posiwise-resource-module.mjs +420 -586
- package/fesm2022/posiwise-resource-module.mjs.map +1 -1
- package/lib/public/components/base/base-resource.component.d.ts +39 -0
- package/lib/public/components/base/base-top-banner.component.d.ts +30 -0
- package/lib/public/components/reslease-note-card/release-note-card.component.d.ts +3 -2
- package/lib/public/components/resource-blogs/resource-blog-top-banner/resource-blog-top-banner.component.d.ts +6 -21
- package/lib/public/components/resource-blogs/resource-blog.component.d.ts +6 -16
- package/lib/public/components/resource-case-studies/case-studies-cards/case-studies-cards.component.d.ts +3 -2
- package/lib/public/components/resource-case-studies/resource-case-studies.component.d.ts +9 -23
- package/lib/public/components/resource-company-card/resource-company-card.component.d.ts +4 -2
- package/lib/public/components/resource-edit-card/resource-edit-card.component.d.ts +7 -6
- package/lib/public/components/resource-integration/integration-top-banner/integration-top-banner.component.d.ts +6 -22
- package/lib/public/components/resource-integration/resource-integration.component.d.ts +3 -2
- package/lib/public/components/resource-post/related-resources/related-resources.component.d.ts +3 -2
- package/lib/public/components/resource-post/related-resources/resource-cards/resource-cards.component.d.ts +3 -2
- package/lib/public/components/resource-post/resource-post-details/resource-post-details.component.d.ts +3 -2
- package/lib/public/components/resource-release-notes/resource-release-notes-top-banner/resource-release-notes-top-banner.component.d.ts +6 -21
- package/lib/public/components/resource-release-notes/resource-release-notes.component.d.ts +3 -4
- package/lib/public/components/resource-top-banner-edit/resource-top-banner-edit.component.d.ts +6 -5
- package/lib/public/components/resource-vault/resource-vault.component.d.ts +6 -14
- package/lib/public/components/resource-videos/resource-video-cards/resource-video-cards.component.d.ts +3 -2
- package/lib/public/components/resource-videos/resource-videos-top-banner/resource-videos-top-banner.component.d.ts +6 -21
- package/lib/public/components/resource-videos/resource-videos.component.d.ts +6 -16
- package/lib/public/components/resource-webinars/replay-event-cards/replay-event-cards.component.d.ts +3 -2
- package/lib/public/components/resource-webinars/resource-webinars.component.d.ts +3 -2
- package/lib/public/components/resource-webinars/upcoming-event-cards/upcoming-event-cards.component.d.ts +3 -2
- package/lib/public/components/resources/resource-tags/resource-tags.component.d.ts +3 -2
- package/lib/public/components/resources/vault-section/vault-section.component.d.ts +3 -1
- package/lib/public/components/resources-hub/resources-hub.component.d.ts +3 -2
- package/lib/public/components/resources-read/resources-read.component.d.ts +3 -2
- package/lib/public/components/white-papers/white-papers-top-banner/white-papers-top-banner.component.d.ts +6 -21
- package/lib/public/components/white-papers/white-papers.component.d.ts +6 -16
- package/package.json +1 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Component, Injector } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { TagService } from '@posiwise/common-services';
|
|
4
|
-
import { TOKEN_KEY } from '@posiwise/common-utilities';
|
|
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
6
|
import * as i1 from "../../../resource.service";
|
|
8
7
|
import * as i2 from "@posiwise/common-services";
|
|
@@ -11,52 +10,18 @@ import * as i4 from "@posiwise/alpha-module";
|
|
|
11
10
|
import * as i5 from "@posiwise/shared-components";
|
|
12
11
|
import * as i6 from "./white-papers-top-banner/white-papers-top-banner.component";
|
|
13
12
|
import * as i7 from "../resource-vault/resource-vault.component";
|
|
14
|
-
export class WhitePaperComponent extends
|
|
15
|
-
constructor(resourceService, tagService, injector) {
|
|
16
|
-
super(injector);
|
|
17
|
-
this.resourceService = resourceService;
|
|
18
|
-
this.tagService = tagService;
|
|
19
|
-
this.masterSubscriptionId = this.appConfig.master_subscription.subscription_id;
|
|
20
|
-
this.posts = [];
|
|
13
|
+
export class WhitePaperComponent extends BaseResourceComponent {
|
|
14
|
+
constructor(resourceService, tagService, injector, authService) {
|
|
15
|
+
super(resourceService, tagService, authService, injector);
|
|
21
16
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
this.subscriptionId = response;
|
|
25
|
-
});
|
|
26
|
-
this.localStorage.getItem$(TOKEN_KEY).subscribe(res => {
|
|
27
|
-
this.userLoggedIn = !!res;
|
|
28
|
-
if (this.userLoggedIn) {
|
|
29
|
-
this.localStorage.getItem$('product').subscribe(res => {
|
|
30
|
-
const data = res ? JSON.parse(res) : null;
|
|
31
|
-
this.subscriptionId = data?.subscriptionId;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
this.getPostTags();
|
|
35
|
-
});
|
|
17
|
+
getResourceType() {
|
|
18
|
+
return 'White Papers';
|
|
36
19
|
}
|
|
37
|
-
|
|
38
|
-
this.tagService
|
|
39
|
-
.getTagsByType('post_categories', {}, this.subscriptionId || this.masterSubscriptionId)
|
|
40
|
-
.subscribe(response => {
|
|
41
|
-
this.blogPostTag = response.tags.find(tag => tag.name === 'White Papers');
|
|
42
|
-
this.getPosts(1, 100);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
getPosts(page, pageSize) {
|
|
46
|
-
this.resourceService
|
|
47
|
-
.getPublicPosts(this.subscriptionId || this.masterSubscriptionId, page, pageSize, '', this.blogPostTag?.tag_category_id)
|
|
48
|
-
.subscribe(response => {
|
|
49
|
-
this.posts = response.posts
|
|
50
|
-
.filter(post => post.tags?.some(tag => tag.tag_category_id === this.blogPostTag?.tag_category_id))
|
|
51
|
-
.sort((a, b) => new Date(b.published_at).getTime() - new Date(a.published_at).getTime())
|
|
52
|
-
.slice(0, 12);
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: WhitePaperComponent, deps: [{ token: i1.ResourceService }, { token: i2.TagService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: WhitePaperComponent, deps: [{ token: i1.ResourceService }, { token: i2.TagService }, { token: i0.Injector }, { token: i2.AuthService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
56
21
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: WhitePaperComponent, selector: "pw-resource-white-papers", usesInheritance: true, ngImport: i0, template: "<pw-resource-header></pw-resource-header>\n\n<pw-white-paper-top-banner></pw-white-paper-top-banner>\n\n<pw-resource--vault *ngIf=\"blogPostTag?.tag_category_id\" [tag]=\"blogPostTag\" [categoryId]=\"blogPostTag?.tag_category_id\" [resourceTitle]=\"blogPostTag?.title\" [postSlice]=\"true\"></pw-resource--vault>\n\n<pw-trial-4-contact-us></pw-trial-4-contact-us>\n", dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.Trial4ContactUsComponent, selector: "pw-trial-4-contact-us", inputs: ["subscriptionId", "sourceId", "masterSubscriptionId", "experimentName", "microserviceName", "shardName"] }, { kind: "component", type: i5.ResourceHeaderComponent, selector: "pw-resource-header" }, { kind: "component", type: i6.WhitePaperTopBannerComponent, selector: "pw-white-paper-top-banner" }, { kind: "component", type: i7.ResourceVaultComponent, selector: "pw-resource--vault", inputs: ["showVaultSection", "postSlice", "categoryId", "resourceTitle", "tag"] }] }); }
|
|
57
22
|
}
|
|
58
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: WhitePaperComponent, decorators: [{
|
|
59
24
|
type: Component,
|
|
60
25
|
args: [{ selector: 'pw-resource-white-papers', template: "<pw-resource-header></pw-resource-header>\n\n<pw-white-paper-top-banner></pw-white-paper-top-banner>\n\n<pw-resource--vault *ngIf=\"blogPostTag?.tag_category_id\" [tag]=\"blogPostTag\" [categoryId]=\"blogPostTag?.tag_category_id\" [resourceTitle]=\"blogPostTag?.title\" [postSlice]=\"true\"></pw-resource--vault>\n\n<pw-trial-4-contact-us></pw-trial-4-contact-us>\n" }]
|
|
61
|
-
}], ctorParameters: () => [{ type: i1.ResourceService }, { type: i2.TagService }, { type: i0.Injector }] });
|
|
62
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
26
|
+
}], ctorParameters: () => [{ type: i1.ResourceService }, { type: i2.TagService }, { type: i0.Injector }, { type: i2.AuthService }] });
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2hpdGUtcGFwZXJzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcmVzb3VyY2UtbW9kdWxlL3NyYy9saWIvcHVibGljL2NvbXBvbmVudHMvd2hpdGUtcGFwZXJzL3doaXRlLXBhcGVycy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3Jlc291cmNlLW1vZHVsZS9zcmMvbGliL3B1YmxpYy9jb21wb25lbnRzL3doaXRlLXBhcGVycy93aGl0ZS1wYXBlcnMuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBT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