@posiwise/resource-module 0.0.174 → 0.0.175
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-B1VDj9Pa.mjs → posiwise-resource-module-base-top-banner.component-C2g4MD3r.mjs} +2 -2
- package/fesm2022/{posiwise-resource-module-base-top-banner.component-B1VDj9Pa.mjs.map → posiwise-resource-module-base-top-banner.component-C2g4MD3r.mjs.map} +1 -1
- package/fesm2022/{posiwise-resource-module-posiwise-resource-module-BDjUl99k.mjs → posiwise-resource-module-posiwise-resource-module-BWslnrHV.mjs} +19 -13
- package/fesm2022/posiwise-resource-module-posiwise-resource-module-BWslnrHV.mjs.map +1 -0
- package/fesm2022/{posiwise-resource-module-resource-blogs.module-BtsmIdeZ.mjs → posiwise-resource-module-resource-blogs.module-Cc8zD-lN.mjs} +3 -3
- package/fesm2022/{posiwise-resource-module-resource-blogs.module-BtsmIdeZ.mjs.map → posiwise-resource-module-resource-blogs.module-Cc8zD-lN.mjs.map} +1 -1
- package/fesm2022/{posiwise-resource-module-resource-case-studies.module-C5_GZA5n.mjs → posiwise-resource-module-resource-case-studies.module-CCELeYa-.mjs} +2 -2
- package/fesm2022/{posiwise-resource-module-resource-case-studies.module-C5_GZA5n.mjs.map → posiwise-resource-module-resource-case-studies.module-CCELeYa-.mjs.map} +1 -1
- package/fesm2022/{posiwise-resource-module-resource-events.module-kpQ6MUuU.mjs → posiwise-resource-module-resource-events.module-BMTTYJnv.mjs} +2 -2
- package/fesm2022/{posiwise-resource-module-resource-events.module-kpQ6MUuU.mjs.map → posiwise-resource-module-resource-events.module-BMTTYJnv.mjs.map} +1 -1
- package/fesm2022/{posiwise-resource-module-resource-hub.module-DZEVxtqh.mjs → posiwise-resource-module-resource-hub.module-C4nwzXkB.mjs} +2 -2
- package/fesm2022/{posiwise-resource-module-resource-hub.module-DZEVxtqh.mjs.map → posiwise-resource-module-resource-hub.module-C4nwzXkB.mjs.map} +1 -1
- package/fesm2022/{posiwise-resource-module-resource-integrations.module-BV4WqS7f.mjs → posiwise-resource-module-resource-integrations.module-DkIlPFkX.mjs} +5 -5
- package/fesm2022/posiwise-resource-module-resource-integrations.module-DkIlPFkX.mjs.map +1 -0
- package/fesm2022/{posiwise-resource-module-resource-post.module-Dyw3T43i.mjs → posiwise-resource-module-resource-post.module-CfemK1FG.mjs} +2 -2
- package/fesm2022/{posiwise-resource-module-resource-post.module-Dyw3T43i.mjs.map → posiwise-resource-module-resource-post.module-CfemK1FG.mjs.map} +1 -1
- package/fesm2022/{posiwise-resource-module-resource-release-notes.module-DyNHGuZA.mjs → posiwise-resource-module-resource-release-notes.module-CmuBp5-e.mjs} +3 -3
- package/fesm2022/{posiwise-resource-module-resource-release-notes.module-DyNHGuZA.mjs.map → posiwise-resource-module-resource-release-notes.module-CmuBp5-e.mjs.map} +1 -1
- package/fesm2022/{posiwise-resource-module-resource-root.module-wm6sn4e5.mjs → posiwise-resource-module-resource-root.module-B4NJk2zq.mjs} +2 -2
- package/fesm2022/{posiwise-resource-module-resource-root.module-wm6sn4e5.mjs.map → posiwise-resource-module-resource-root.module-B4NJk2zq.mjs.map} +1 -1
- package/fesm2022/{posiwise-resource-module-resource-videos.module-DN6p6mbL.mjs → posiwise-resource-module-resource-videos.module-DPom0ksC.mjs} +3 -3
- package/fesm2022/{posiwise-resource-module-resource-videos.module-DN6p6mbL.mjs.map → posiwise-resource-module-resource-videos.module-DPom0ksC.mjs.map} +1 -1
- package/fesm2022/{posiwise-resource-module-resource-white-papers.module-CVDeNCp0.mjs → posiwise-resource-module-resource-white-papers.module-D-5ZRjjs.mjs} +3 -3
- package/fesm2022/{posiwise-resource-module-resource-white-papers.module-CVDeNCp0.mjs.map → posiwise-resource-module-resource-white-papers.module-D-5ZRjjs.mjs.map} +1 -1
- package/fesm2022/posiwise-resource-module.mjs +1 -1
- package/lib/public/components/resource-company-card/resource-company-card.component.d.ts +2 -0
- package/package.json +1 -1
- package/fesm2022/posiwise-resource-module-posiwise-resource-module-BDjUl99k.mjs.map +0 -1
- package/fesm2022/posiwise-resource-module-resource-integrations.module-BV4WqS7f.mjs.map +0 -1
|
@@ -4,7 +4,7 @@ import * as i3 from '@angular/platform-browser';
|
|
|
4
4
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
5
5
|
import * as i2 from '@posiwise/common-services';
|
|
6
6
|
import { HelperService } from '@posiwise/helper-service';
|
|
7
|
-
import { e as ResourceService } from './posiwise-resource-module-posiwise-resource-module-
|
|
7
|
+
import { e as ResourceService } from './posiwise-resource-module-posiwise-resource-module-BWslnrHV.mjs';
|
|
8
8
|
|
|
9
9
|
class BaseTopBannerComponent extends AppBaseComponent {
|
|
10
10
|
constructor(resourceService, tagService, authService, titleService, injector) {
|
|
@@ -109,4 +109,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
109
109
|
}], ctorParameters: () => [{ type: ResourceService }, { type: i2.TagService }, { type: i2.AuthService }, { type: i3.Title }, { type: i0.Injector }] });
|
|
110
110
|
|
|
111
111
|
export { BaseTopBannerComponent as B };
|
|
112
|
-
//# sourceMappingURL=posiwise-resource-module-base-top-banner.component-
|
|
112
|
+
//# sourceMappingURL=posiwise-resource-module-base-top-banner.component-C2g4MD3r.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posiwise-resource-module-base-top-banner.component-
|
|
1
|
+
{"version":3,"file":"posiwise-resource-module-base-top-banner.component-C2g4MD3r.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,WACuB,CAAA,eAAgC,EAChC,UAAsB,EACxB,WAAwB,EACxB,YAAmB,EACpC,QAAkB,EAAA;QAElB,KAAK,CAAC,QAAQ,CAAC;QANI,IAAe,CAAA,eAAA,GAAf,eAAe;QACf,IAAU,CAAA,UAAA,GAAV,UAAU;QACZ,IAAW,CAAA,WAAA,GAAX,WAAW;QACX,IAAY,CAAA,YAAA,GAAZ,YAAY;QAjBjC,IAAoB,CAAA,oBAAA,GAAG,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,eAAe;QACzE,IAAK,CAAA,KAAA,GAAe,EAAE;QACtB,IAAiB,CAAA,iBAAA,GAAG,EAAE;QAKtB,IAAQ,CAAA,QAAA,GAAG,KAAK;QAIhB,IAAqB,CAAA,qBAAA,GAAG,KAAK;;IAY7B,QAAQ,GAAA;QACJ,IAAI,CAAC,qBAAqB,EAAE,CAAC,SAAS,CAAC,QAAQ,IAAG;AAC9C,YAAA,IAAI,CAAC,cAAc,GAAG,QAAQ;AAClC,SAAC,CAAC;QACF,IAAI,CAAC,WAAW,CAAC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B,IAAI,CAAC,iBAAiB,CACzB;;aACE;AACH,YAAA,IAAI,CAAC,qBAAqB,GAAG,KAAK;;;IAI1C,gBAAgB,GAAA;QACZ,OAAO,IAAI,CAAC,qBAAqB;;+GA3HnB,sBAAsB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,eAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,KAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,QAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,gGAJ9B,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;;4FAIM,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAL3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,EAAE;AAEZ,oBAAA,UAAU,EAAE;AACf,iBAAA;;;;;"}
|
|
@@ -120,43 +120,43 @@ const routes = [
|
|
|
120
120
|
{
|
|
121
121
|
path: '',
|
|
122
122
|
pathMatch: 'full',
|
|
123
|
-
loadChildren: () => import('./posiwise-resource-module-resource-root.module-
|
|
123
|
+
loadChildren: () => import('./posiwise-resource-module-resource-root.module-B4NJk2zq.mjs').then(m => m.ResourceRootModule)
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
path: 'hub',
|
|
127
|
-
loadChildren: () => import('./posiwise-resource-module-resource-hub.module-
|
|
127
|
+
loadChildren: () => import('./posiwise-resource-module-resource-hub.module-C4nwzXkB.mjs').then(m => m.ResourceHubModule)
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
path: 'blogs',
|
|
131
|
-
loadChildren: () => import('./posiwise-resource-module-resource-blogs.module-
|
|
131
|
+
loadChildren: () => import('./posiwise-resource-module-resource-blogs.module-Cc8zD-lN.mjs').then(m => m.ResourceBlogsModule)
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
path: 'videos',
|
|
135
|
-
loadChildren: () => import('./posiwise-resource-module-resource-videos.module-
|
|
135
|
+
loadChildren: () => import('./posiwise-resource-module-resource-videos.module-DPom0ksC.mjs').then(m => m.ResourceVideosModule)
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
path: 'integrations',
|
|
139
|
-
loadChildren: () => import('./posiwise-resource-module-resource-integrations.module-
|
|
139
|
+
loadChildren: () => import('./posiwise-resource-module-resource-integrations.module-DkIlPFkX.mjs').then(m => m.ResourceIntegrationsModule)
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
path: 'release-notes',
|
|
143
|
-
loadChildren: () => import('./posiwise-resource-module-resource-release-notes.module-
|
|
143
|
+
loadChildren: () => import('./posiwise-resource-module-resource-release-notes.module-CmuBp5-e.mjs').then(m => m.ResourceReleaseNotesModule)
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
path: 'events',
|
|
147
|
-
loadChildren: () => import('./posiwise-resource-module-resource-events.module-
|
|
147
|
+
loadChildren: () => import('./posiwise-resource-module-resource-events.module-BMTTYJnv.mjs').then(m => m.ResourceEventsModule)
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
path: 'white-papers',
|
|
151
|
-
loadChildren: () => import('./posiwise-resource-module-resource-white-papers.module-
|
|
151
|
+
loadChildren: () => import('./posiwise-resource-module-resource-white-papers.module-D-5ZRjjs.mjs').then(m => m.ResourceWhitePapersModule)
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
path: 'case-studies',
|
|
155
|
-
loadChildren: () => import('./posiwise-resource-module-resource-case-studies.module-
|
|
155
|
+
loadChildren: () => import('./posiwise-resource-module-resource-case-studies.module-CCELeYa-.mjs').then(m => m.ResourceCaseStudiesModule)
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
path: 'view/:slug',
|
|
159
|
-
loadChildren: () => import('./posiwise-resource-module-resource-post.module-
|
|
159
|
+
loadChildren: () => import('./posiwise-resource-module-resource-post.module-CfemK1FG.mjs').then(m => m.ResourcePostModule)
|
|
160
160
|
}
|
|
161
161
|
];
|
|
162
162
|
class BlogPublicRoutingModule {
|
|
@@ -340,12 +340,18 @@ class ResourceCompanyCardComponent extends AppBaseComponent {
|
|
|
340
340
|
canEditResources() {
|
|
341
341
|
return this.canEditResourcesValue;
|
|
342
342
|
}
|
|
343
|
+
/** Show no-data when there is integration count but no posts (postData is false, filteredData empty). */
|
|
344
|
+
get showNoPostsMessage() {
|
|
345
|
+
return (this.integrationCountDisplay > 0 &&
|
|
346
|
+
!this.postData &&
|
|
347
|
+
(!this.filteredData || this.filteredData.length === 0));
|
|
348
|
+
}
|
|
343
349
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ResourceCompanyCardComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
344
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: ResourceCompanyCardComponent, isStandalone: false, selector: "pw-resource-company-card", inputs: { header: "header", data: "data", integrationCountDisplay: "integrationCountDisplay", vendor: "vendor", user: "user", userLoggedIn: "userLoggedIn" }, outputs: { getPosts: "getPosts" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div [ngClass]=\"{ 'vendors-distributor-wrapper': !vendor }\">\n <div class=\"d-flex justify-content-between align-items-center mb-3 search-container\">\n <div>\n <span class=\"int-span\">{{header}}</span>\n </div>\n <div class=\"search-wrapper position-relative\" *ngIf=\"integrationCountDisplay > 0\">\n <i class=\"fa fa-search search-icon\"></i>\n <input type=\"text\"\n\n (keyup)=\"search($event.target.value)\"\n placeholder=\"Search eg security\"\n class=\"search-input top-search-input\" />\n </div>\n\n </div>\n\n <div *ngIf=\"
|
|
350
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: ResourceCompanyCardComponent, isStandalone: false, selector: "pw-resource-company-card", inputs: { header: "header", data: "data", integrationCountDisplay: "integrationCountDisplay", vendor: "vendor", user: "user", userLoggedIn: "userLoggedIn" }, outputs: { getPosts: "getPosts" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div [ngClass]=\"{ 'vendors-distributor-wrapper': !vendor }\">\n <div class=\"d-flex justify-content-between align-items-center mb-3 search-container\">\n <div>\n <span class=\"int-span\">{{header}}</span>\n </div>\n <div class=\"search-wrapper position-relative\" *ngIf=\"integrationCountDisplay > 0\">\n <i class=\"fa fa-search search-icon\"></i>\n <input type=\"text\"\n\n (keyup)=\"search($event.target.value)\"\n placeholder=\"Search eg security\"\n class=\"search-input top-search-input\" />\n </div>\n\n </div>\n\n <div *ngIf=\"postData\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\"> </pw-no-data>\n </div>\n\n <div *ngIf=\"showNoPostsMessage\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Resource.NoDataMessage' | transloco\"></pw-no-data>\n </div>\n\n <div class=\"row\" *ngIf=\"!postData && integrationCountDisplay > 0 && filteredData.length > 0\">\n <div class=\"col-md-3 mt-4\"\n *ngFor=\"let img of filteredData | slice:first:(first + rows)\">\n <div class=\"boxes d-flex align-items-center justify-content-center\">\n <ng-container *ngIf=\"img?.companyImg; else checkRectangular\">\n <img [src]=\"img.companyImg\" alt=\"Vendor Company Icon\" class=\"vendor-icon\" />\n </ng-container>\n\n <ng-template #checkRectangular>\n <ng-container *ngIf=\"img?.rectangular_picture?.url; else noImage\">\n <ng-container *ngIf=\"!img.rectangular_picture.url.includes('default-photo'); else showPostName\">\n <ng-container *ngIf=\"img?.showcase; else noLinkImage\">\n <a class=\"vendor-link\" [href]=\"img.external_url || ('/resources/view/' + img.slug)\">\n <img [src]=\"img.rectangular_picture.url\" alt=\"Vendor Rectangular Company Icon\" class=\"vendor-icon\" />\n </a>\n </ng-container>\n <ng-template #noLinkImage>\n <img [src]=\"img.rectangular_picture.url\" alt=\"Vendor Rectangular Company Icon\" class=\"vendor-icon\" />\n </ng-template>\n\n <pw-resource-edit-card-lazy\n [canEdit]=\"canEditResourcesValue\"\n [id]=\"img?.id\"\n [resourceData]=\"img\"\n (updated)=\"getPosts.emit()\">\n </pw-resource-edit-card-lazy>\n </ng-container>\n </ng-container>\n </ng-template>\n\n <ng-template #showPostName>\n <ng-container *ngIf=\"img?.showcase; else noLinkTitle\">\n <a class=\"vendor-link\" [href]=\"img.external_url || ('/resources/view/' + img.slug)\">\n <span class=\"vendor-name text-center mt-2\">{{ img?.title }}</span>\n </a>\n </ng-container>\n <ng-template #noLinkTitle>\n <span class=\"vendor-name text-center\">{{ img?.title }}</span>\n </ng-template>\n\n <pw-resource-edit-card-lazy\n [canEdit]=\"canEditResourcesValue\"\n [id]=\"img?.id\"\n [resourceData]=\"img\"\n (updated)=\"getPosts.emit()\">\n </pw-resource-edit-card-lazy>\n </ng-template>\n </div>\n </div>\n\n <div class=\"customPaginator d-flex align-items-center mt-5 justify-content-center\"\n *ngIf=\"filteredData.length > 0\"\n >\n <p-paginator\n [first]=\"first\"\n [rows]=\"rows\"\n [totalRecords]=\"filteredData.length\"\n (onPageChange)=\"onPageChange($event)\"></p-paginator>\n </div>\n </div>\n</div>\n", styles: [".top-search-input{color:#000!important;border:3px solid #d4d4d4!important;padding:5px 30px!important;border-radius:29px!important}::placeholder{color:#d4d4d4}.vendors-distributor-wrapper{margin-top:5rem!important}.vendor-icon{max-width:180px;max-height:100%;width:100%!important}.vendor-name{font-size:3rem;line-height:3rem;color:var(--text-color, black)}::ng-deep .customPaginator .p-paginator{border:none!important}::ng-deep .customPaginator .p-paginator button{border:none!important}.int-span{text-transform:uppercase;font-size:2.5rem;color:var(--first)}.boxes{width:100%;min-height:150px;display:flex;align-items:center;justify-content:center;text-align:center;padding:15px;border:1px dashed #ccc;border-radius:8px;word-break:break-word;white-space:normal;height:100%}a.vendor-link{display:inline-block;transition:transform .2s ease}a.vendor-link:hover{transform:scale(1.05);cursor:pointer}.search-wrapper{position:relative;width:300px}.search-input{width:100%;padding:10px 20px 10px 40px;border:2px solid #d4d4d4;border-radius:30px;font-size:1rem;color:#000;background-color:#fff}.search-input::placeholder{color:silver}.search-input:focus{outline:none;border-color:var(--first)}.search-icon{position:absolute;top:50%;left:14px;transform:translateY(-50%);color:#d4d4d4;font-size:1.1rem}@media (width <= 768px){.vendor-icon{width:50!important}.search-container{flex-wrap:wrap!important;gap:2rem}.int-span{font-size:1.75rem}}\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: "component", type: i6.NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "directive", type: i8.LazyImgDirective, selector: "img" }, { kind: "component", type: ResourceEditCardLazyComponent, selector: "pw-resource-edit-card-lazy", inputs: ["id", "resourceData", "canEdit"], outputs: ["updated"] }, { kind: "component", type: i5.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "style", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "appendTo", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "first"], outputs: ["onPageChange"] }, { kind: "pipe", type: i3.SlicePipe, name: "slice" }, { kind: "pipe", type: i10.TranslocoPipe, name: "transloco" }] }); }
|
|
345
351
|
}
|
|
346
352
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ResourceCompanyCardComponent, decorators: [{
|
|
347
353
|
type: Component,
|
|
348
|
-
args: [{ selector: 'pw-resource-company-card', standalone: false, template: "<div [ngClass]=\"{ 'vendors-distributor-wrapper': !vendor }\">\n <div class=\"d-flex justify-content-between align-items-center mb-3 search-container\">\n <div>\n <span class=\"int-span\">{{header}}</span>\n </div>\n <div class=\"search-wrapper position-relative\" *ngIf=\"integrationCountDisplay > 0\">\n <i class=\"fa fa-search search-icon\"></i>\n <input type=\"text\"\n\n (keyup)=\"search($event.target.value)\"\n placeholder=\"Search eg security\"\n class=\"search-input top-search-input\" />\n </div>\n\n </div>\n\n <div *ngIf=\"
|
|
354
|
+
args: [{ selector: 'pw-resource-company-card', standalone: false, template: "<div [ngClass]=\"{ 'vendors-distributor-wrapper': !vendor }\">\n <div class=\"d-flex justify-content-between align-items-center mb-3 search-container\">\n <div>\n <span class=\"int-span\">{{header}}</span>\n </div>\n <div class=\"search-wrapper position-relative\" *ngIf=\"integrationCountDisplay > 0\">\n <i class=\"fa fa-search search-icon\"></i>\n <input type=\"text\"\n\n (keyup)=\"search($event.target.value)\"\n placeholder=\"Search eg security\"\n class=\"search-input top-search-input\" />\n </div>\n\n </div>\n\n <div *ngIf=\"postData\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\"> </pw-no-data>\n </div>\n\n <div *ngIf=\"showNoPostsMessage\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Resource.NoDataMessage' | transloco\"></pw-no-data>\n </div>\n\n <div class=\"row\" *ngIf=\"!postData && integrationCountDisplay > 0 && filteredData.length > 0\">\n <div class=\"col-md-3 mt-4\"\n *ngFor=\"let img of filteredData | slice:first:(first + rows)\">\n <div class=\"boxes d-flex align-items-center justify-content-center\">\n <ng-container *ngIf=\"img?.companyImg; else checkRectangular\">\n <img [src]=\"img.companyImg\" alt=\"Vendor Company Icon\" class=\"vendor-icon\" />\n </ng-container>\n\n <ng-template #checkRectangular>\n <ng-container *ngIf=\"img?.rectangular_picture?.url; else noImage\">\n <ng-container *ngIf=\"!img.rectangular_picture.url.includes('default-photo'); else showPostName\">\n <ng-container *ngIf=\"img?.showcase; else noLinkImage\">\n <a class=\"vendor-link\" [href]=\"img.external_url || ('/resources/view/' + img.slug)\">\n <img [src]=\"img.rectangular_picture.url\" alt=\"Vendor Rectangular Company Icon\" class=\"vendor-icon\" />\n </a>\n </ng-container>\n <ng-template #noLinkImage>\n <img [src]=\"img.rectangular_picture.url\" alt=\"Vendor Rectangular Company Icon\" class=\"vendor-icon\" />\n </ng-template>\n\n <pw-resource-edit-card-lazy\n [canEdit]=\"canEditResourcesValue\"\n [id]=\"img?.id\"\n [resourceData]=\"img\"\n (updated)=\"getPosts.emit()\">\n </pw-resource-edit-card-lazy>\n </ng-container>\n </ng-container>\n </ng-template>\n\n <ng-template #showPostName>\n <ng-container *ngIf=\"img?.showcase; else noLinkTitle\">\n <a class=\"vendor-link\" [href]=\"img.external_url || ('/resources/view/' + img.slug)\">\n <span class=\"vendor-name text-center mt-2\">{{ img?.title }}</span>\n </a>\n </ng-container>\n <ng-template #noLinkTitle>\n <span class=\"vendor-name text-center\">{{ img?.title }}</span>\n </ng-template>\n\n <pw-resource-edit-card-lazy\n [canEdit]=\"canEditResourcesValue\"\n [id]=\"img?.id\"\n [resourceData]=\"img\"\n (updated)=\"getPosts.emit()\">\n </pw-resource-edit-card-lazy>\n </ng-template>\n </div>\n </div>\n\n <div class=\"customPaginator d-flex align-items-center mt-5 justify-content-center\"\n *ngIf=\"filteredData.length > 0\"\n >\n <p-paginator\n [first]=\"first\"\n [rows]=\"rows\"\n [totalRecords]=\"filteredData.length\"\n (onPageChange)=\"onPageChange($event)\"></p-paginator>\n </div>\n </div>\n</div>\n", styles: [".top-search-input{color:#000!important;border:3px solid #d4d4d4!important;padding:5px 30px!important;border-radius:29px!important}::placeholder{color:#d4d4d4}.vendors-distributor-wrapper{margin-top:5rem!important}.vendor-icon{max-width:180px;max-height:100%;width:100%!important}.vendor-name{font-size:3rem;line-height:3rem;color:var(--text-color, black)}::ng-deep .customPaginator .p-paginator{border:none!important}::ng-deep .customPaginator .p-paginator button{border:none!important}.int-span{text-transform:uppercase;font-size:2.5rem;color:var(--first)}.boxes{width:100%;min-height:150px;display:flex;align-items:center;justify-content:center;text-align:center;padding:15px;border:1px dashed #ccc;border-radius:8px;word-break:break-word;white-space:normal;height:100%}a.vendor-link{display:inline-block;transition:transform .2s ease}a.vendor-link:hover{transform:scale(1.05);cursor:pointer}.search-wrapper{position:relative;width:300px}.search-input{width:100%;padding:10px 20px 10px 40px;border:2px solid #d4d4d4;border-radius:30px;font-size:1rem;color:#000;background-color:#fff}.search-input::placeholder{color:silver}.search-input:focus{outline:none;border-color:var(--first)}.search-icon{position:absolute;top:50%;left:14px;transform:translateY(-50%);color:#d4d4d4;font-size:1.1rem}@media (width <= 768px){.vendor-icon{width:50!important}.search-container{flex-wrap:wrap!important;gap:2rem}.int-span{font-size:1.75rem}}\n"] }]
|
|
349
355
|
}], ctorParameters: () => [{ type: i0.Injector }], propDecorators: { getPosts: [{
|
|
350
356
|
type: Output
|
|
351
357
|
}], header: [{
|
|
@@ -1792,4 +1798,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
1792
1798
|
*/
|
|
1793
1799
|
|
|
1794
1800
|
export { BaseResourceComponent as B, CaseStudyCardComponent as C, ResourceVideoCardComponent as R, TestimonialCardListComponent as T, UpcomingEventCardComponent as U, ResourceCardComponent as a, ResourceNoteCardComponent as b, ResourceVaultComponent as c, ResourceCardsModule as d, ResourceService as e, ResourceEditCardLazyComponent as f, ResourceSharedModule as g, ResourceTopBannerEditComponent as h, ResourceCompanyCardComponent as i, ResourceModule as j, Trial4ContactUsModule as k, ResourcePublicModule as l, ResourceEditModule as m, ResourceEditCardComponent as n };
|
|
1795
|
-
//# sourceMappingURL=posiwise-resource-module-posiwise-resource-module-
|
|
1801
|
+
//# sourceMappingURL=posiwise-resource-module-posiwise-resource-module-BWslnrHV.mjs.map
|