@posiwise/dashboard-module 0.0.116 → 0.0.118
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/index.mjs +2 -1
- package/esm2022/lib/dashboard.module.mjs +4 -1
- package/esm2022/lib/documenatation/documentation.component.mjs +26 -0
- package/esm2022/lib/faq/faq.component.mjs +10 -3
- package/esm2022/lib/search/search.component.mjs +2 -2
- package/fesm2022/posiwise-dashboard-module.mjs +34 -5
- package/fesm2022/posiwise-dashboard-module.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/dashboard.module.d.ts +16 -15
- package/lib/documenatation/documentation.component.d.ts +13 -0
- package/lib/faq/faq.component.d.ts +3 -0
- package/package.json +1 -1
|
@@ -60,6 +60,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
|
|
|
60
60
|
args: [{ selector: 'pw-customizer', template: "<!--Theme customizer Starts-->\n<div class=\"customizer border-left-blue-grey border-left-lighten-4 d-none d-sm-none d-md-block open\">\n <a class=\"customizer-close\" aria-label=\"Close\">\n <i class=\"ft-x font-medium-3\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"customizer-toggle bg-danger\"\n aria-label=\"Customize Spinner\"\n id=\"customizer-toggle-icon\">\n <i class=\"ft-settings font-medium-4 fa fa-spin white align-middle\" aria-hidden=\"true\"></i>\n </a>\n <div class=\"customizer-content p-3 ps-container ps-theme-dark\"\n data-ps-id=\"df6a5ce4-a175-9172-4402-dabd98fc9c0a\">\n <h4 class=\"text-uppercase mb-0 text-bold-400\">Theme Customizer</h4>\n <p>Customize & Preview in Real Time</p>\n <hr />\n <!--Sidebar Options Starts-->\n <h6 class=\"text-center text-bold-500 mb-3 text-uppercase\">Sidebar Color Options</h6>\n <div class=\"cz-bg-color\">\n <div class=\"row p-1\">\n <div class=\"col\">\n <span class=\"gradient-pomegranate d-block rounded-circle\"\n data-bg-color=\"pomegranate\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-king-yna d-block rounded-circle\"\n data-bg-color=\"king-yna\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-ibiza-sunset d-block rounded-circle\"\n data-bg-color=\"ibiza-sunset\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-flickr d-block rounded-circle\"\n data-bg-color=\"flickr\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-purple-bliss d-block rounded-circle\"\n data-bg-color=\"purple-bliss\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-man-of-steel d-block rounded-circle\"\n data-bg-color=\"man-of-steel\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-custom-branding d-block rounded-circle\"\n data-bg-color=\"custom-branding\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-purple-love d-block rounded-circle\"\n data-bg-color=\"purple-love\"></span>\n </div>\n </div>\n <div class=\"row p-1\">\n <div class=\"col\">\n <span class=\"bg-black d-block rounded-circle\"\n data-bg-color=\"black\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-grey d-block rounded-circle\"\n data-bg-color=\"white\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-primary d-block rounded-circle\"\n data-bg-color=\"primary\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-success d-block rounded-circle\"\n data-bg-color=\"success\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-warning d-block rounded-circle\"\n data-bg-color=\"warning\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-info d-block rounded-circle\"\n data-bg-color=\"info\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-default d-block rounded-circle\"\n data-bg-color=\"default\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-danger d-block rounded-circle\"\n data-bg-color=\"danger\"></span>\n </div>\n </div>\n </div>\n <!--Sidebar Options Ends-->\n <hr />\n\n <!--Sidebar BG Image Starts-->\n <h6 class=\"text-center text-bold-500 mb-3 text-uppercase\">Sidebar Bg Image</h6>\n <div class=\"cz-bg-image row\">\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/01.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/02.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/03.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/04.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/05.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/06.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n </div>\n <!--Sidebar BG Image Ends-->\n <hr />\n\n <!--Sidebar BG Image Toggle Starts-->\n <div class=\"togglebutton\">\n <div class=\"switch\">\n <span>Sidebar Bg Image</span>\n <div class=\"float-end\">\n <div class=\"form-check custom-checkbox mb-2 me-sm-2 mb-sm-0\">\n <input type=\"checkbox\"\n class=\"form-check-input cz-bg-image-display\"\n checked\n id=\"sidebar-bg-img\" />\n <label class=\"form-check-label\"\n for=\"sidebar-bg-img\"></label>\n </div>\n </div>\n </div>\n </div>\n <!--Sidebar BG Image Toggle Ends-->\n <hr />\n\n <!--Compact Menu Starts-->\n <div class=\"togglebutton\">\n <div class=\"switch\">\n <span>Compact Menu</span>\n <div class=\"float-end\">\n <div class=\"form-check custom-checkbox mb-2 me-sm-2 mb-sm-0\">\n <input type=\"checkbox\"\n class=\"form-check-input cz-compact-menu\"\n id=\"cz-compact-menu\" />\n <label class=\"form-check-label\"\n aria-label=\"Compact Menu\"\n for=\"cz-compact-menu\"></label>\n </div>\n </div>\n </div>\n </div>\n <!--Compact Menu Ends-->\n <hr />\n\n <!--Sidebar Width Starts-->\n <div>\n <label for=\"cz-sidebar-width\">Sidebar Width</label>\n <p-dropdown\n [options]=\"sidebarWidths\"\n [(ngModel)]=\"selectedSidebarWidth\"\n class=\"cz-sidebar-width float-end\"\n placeholder=\"Select Width\">\n </p-dropdown>\n </div>\n <!--Sidebar Width Ends-->\n </div>\n</div>\n<!--Theme customizer Ends-->\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: rgb(70, 136, 236);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.customizer{backface-visibility:hidden;background-color:#fff;border-left:1px solid rgba(0,0,0,.05);bottom:0;box-shadow:0 0 8px #0000001a;height:100vh;padding:0;position:fixed;right:-400px;top:0;transition:right .4s cubic-bezier(.05,.74,.2,.99);width:400px;z-index:1051}.customizer.open{right:0}.customizer .customizer-content{height:100%;position:relative}.customizer a.customizer-toggle{background:#fff;box-shadow:-3px 0 8px #0000001a;color:#1769e1;display:block}.customizer a.customizer-close{color:#000}.customizer .customizer-close{padding:7px;position:absolute;right:10px;top:10px;width:auto;z-index:10}.customizer .customizer-toggle{cursor:pointer;height:40px;left:-54px;line-height:50px;position:absolute;text-align:center;top:35%;width:54px}.customizer .color-options a{white-space:pre}.customizer .cz-bg-color{margin:0 auto}.customizer .cz-bg-color span:hover{cursor:pointer}.customizer .cz-bg-color span.white{color:#ddd!important}.customizer .cz-bg-color .selected{border:3px solid rgb(49,79,229)}.customizer .cz-bg-image:hover{cursor:pointer}.customizer .cz-bg-image img.rounded{border:2px solid rgb(230,230,230);border-radius:1rem!important}.customizer .cz-bg-image img.rounded.selected{border:2px solid rgb(255,88,107)}.rounded-circle{height:20px;width:20px}\n"] }]
|
|
61
61
|
}] });
|
|
62
62
|
|
|
63
|
+
class DocumentationComponent {
|
|
64
|
+
constructor(sanitizer) {
|
|
65
|
+
this.sanitizer = sanitizer;
|
|
66
|
+
this.isLoaded = false;
|
|
67
|
+
}
|
|
68
|
+
ngOnInit() {
|
|
69
|
+
const rawUrl = history.state?.documentation_url;
|
|
70
|
+
this.iframeUrl = this.sanitizer.bypassSecurityTrustResourceUrl(rawUrl);
|
|
71
|
+
}
|
|
72
|
+
onIframeLoad() {
|
|
73
|
+
this.isLoaded = true;
|
|
74
|
+
}
|
|
75
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DocumentationComponent, deps: [{ token: i2$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
76
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: DocumentationComponent, selector: "pw-documentation", ngImport: i0, template: "<div class=\"w-100 text-center mt-3\" *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"></p-progressSpinner>\n</div>\n\n<div class=\"documentation-wrapper\" [hidden]=\"!isLoaded\">\n <iframe\n [src]=\"iframeUrl\"\n width=\"100%\"\n height=\"100%\"\n frameborder=\"0\"\n allowfullscreen\n (load)=\"onIframeLoad()\"\n ></iframe>\n</div>\n", styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"], dependencies: [{ kind: "directive", type: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$2.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }] }); }
|
|
77
|
+
}
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DocumentationComponent, decorators: [{
|
|
79
|
+
type: Component,
|
|
80
|
+
args: [{ selector: 'pw-documentation', template: "<div class=\"w-100 text-center mt-3\" *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"></p-progressSpinner>\n</div>\n\n<div class=\"documentation-wrapper\" [hidden]=\"!isLoaded\">\n <iframe\n [src]=\"iframeUrl\"\n width=\"100%\"\n height=\"100%\"\n frameborder=\"0\"\n allowfullscreen\n (load)=\"onIframeLoad()\"\n ></iframe>\n</div>\n", styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"] }]
|
|
81
|
+
}], ctorParameters: () => [{ type: i2$1.DomSanitizer }] });
|
|
82
|
+
|
|
63
83
|
class FaqComponent extends AppBaseComponent {
|
|
64
84
|
constructor(commonService, injector, productService, sanitizer) {
|
|
65
85
|
super(injector);
|
|
@@ -78,6 +98,8 @@ class FaqComponent extends AppBaseComponent {
|
|
|
78
98
|
ngOnInit() {
|
|
79
99
|
this.faqHashMap = {};
|
|
80
100
|
this.showSupport = PermissionService.selectedProduct?.gitlab_service_desk_email;
|
|
101
|
+
this.showDocumentation = PermissionService.selectedProduct?.documentation_url;
|
|
102
|
+
this.slug = PermissionService.selectedSubscription?.slug;
|
|
81
103
|
this.subscriptionId = PermissionService?.selectedSubscription?.id;
|
|
82
104
|
this.masterProductId = this.appConfig.master_subscription.product_id;
|
|
83
105
|
this.getProducts();
|
|
@@ -140,6 +162,11 @@ class FaqComponent extends AppBaseComponent {
|
|
|
140
162
|
navigateToSupport() {
|
|
141
163
|
this.router.navigate(['/support']);
|
|
142
164
|
}
|
|
165
|
+
navigateToDocumentation() {
|
|
166
|
+
this.router.navigate([this.slug, 'documentation'], {
|
|
167
|
+
state: { documentation_url: this.showDocumentation }
|
|
168
|
+
});
|
|
169
|
+
}
|
|
143
170
|
trackByProductFaqId(_index, item) {
|
|
144
171
|
return item.id;
|
|
145
172
|
}
|
|
@@ -160,11 +187,11 @@ class FaqComponent extends AppBaseComponent {
|
|
|
160
187
|
super.ngOnDestroy();
|
|
161
188
|
}
|
|
162
189
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FaqComponent, deps: [{ token: i1.CommonService }, { token: i0.Injector }, { token: i1.ProductService }, { token: i2$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
163
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FaqComponent, selector: "pw-faq", usesInheritance: true, ngImport: i0, template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <button *ngIf=\"
|
|
190
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FaqComponent, selector: "pw-faq", usesInheritance: true, ngImport: i0, template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <div class=\"d-flex justify-content-between align-items-start mb-3 mb-md-0\">\n <div>\n <button *ngIf=\"showDocumentation\"\n class=\"btn btn-sm document-btn\"\n (click)=\"navigateToDocumentation()\">\n Documentation\n </button>\n </div>\n <div>\n <button *ngIf=\"showSupport\"\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n </div>\n </div>\n\n <h1>You need help?</h1>\n <p><em>Please search through our frequently asked questions first.</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <input type=\"text\"\n class=\"form-control bg-white\"\n placeholder=\"Search in faqs..\"\n (input)=\"filter($event.target.value)\"\n #messageInput />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <ng-container *ngIf=\"faqs\">\n <div *ngFor=\"let category of objectKeys(faqs); let idx1 = index\">\n <ng-container *ngIf=\"faqs[category]?.length\">\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of faqs[category];\n let idx = index;\n trackBy: trackByProductFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\n [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"sanitizedFaqAnswers[idx + '-' + idx1]\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && (totalRecords === 0 || allFaqFalse)\">\n <pw-no-data [withImage]=\"true\" message=\"This is embarrassing - we couldn't find any FAQ.\"> </pw-no-data>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: rgb(70, 136, 236);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.document-btn{background-color:var(--second);border-color:var(--second)!important;color:#fff}.document-btn:hover{color:var(--second)!important;background-color:transparent!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.accordion-title a{color:var(--sidebar_bg)!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"], dependencies: [{ kind: "directive", type: i2$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$2.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }] }); }
|
|
164
191
|
}
|
|
165
192
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FaqComponent, decorators: [{
|
|
166
193
|
type: Component,
|
|
167
|
-
args: [{ selector: 'pw-faq', template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <button *ngIf=\"
|
|
194
|
+
args: [{ selector: 'pw-faq', template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <div class=\"d-flex justify-content-between align-items-start mb-3 mb-md-0\">\n <div>\n <button *ngIf=\"showDocumentation\"\n class=\"btn btn-sm document-btn\"\n (click)=\"navigateToDocumentation()\">\n Documentation\n </button>\n </div>\n <div>\n <button *ngIf=\"showSupport\"\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n </div>\n </div>\n\n <h1>You need help?</h1>\n <p><em>Please search through our frequently asked questions first.</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <input type=\"text\"\n class=\"form-control bg-white\"\n placeholder=\"Search in faqs..\"\n (input)=\"filter($event.target.value)\"\n #messageInput />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <ng-container *ngIf=\"faqs\">\n <div *ngFor=\"let category of objectKeys(faqs); let idx1 = index\">\n <ng-container *ngIf=\"faqs[category]?.length\">\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of faqs[category];\n let idx = index;\n trackBy: trackByProductFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\n [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"sanitizedFaqAnswers[idx + '-' + idx1]\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && (totalRecords === 0 || allFaqFalse)\">\n <pw-no-data [withImage]=\"true\" message=\"This is embarrassing - we couldn't find any FAQ.\"> </pw-no-data>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: rgb(70, 136, 236);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.document-btn{background-color:var(--second);border-color:var(--second)!important;color:#fff}.document-btn:hover{color:var(--second)!important;background-color:transparent!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.accordion-title a{color:var(--sidebar_bg)!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"] }]
|
|
168
195
|
}], ctorParameters: () => [{ type: i1.CommonService }, { type: i0.Injector }, { type: i1.ProductService }, { type: i2$1.DomSanitizer }] });
|
|
169
196
|
|
|
170
197
|
class FaqDetailsComponent extends AppBaseComponent {
|
|
@@ -734,11 +761,11 @@ class SearchComponent {
|
|
|
734
761
|
return item.id;
|
|
735
762
|
}
|
|
736
763
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SearchComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i1.DashboardService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
737
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: SearchComponent, selector: "pw-search", ngImport: i0, template: "<div class=\"container-fluid dashboard-card overflow-hidden\">\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <div class=\"row\">\n <div class=\"col-12 my-3 mt-4\">\n <h2>Search Results</h2>\n </div>\n </div>\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <div class=\"row faqlist search-result\" *ngIf=\"isLoaded\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n <ng-container *ngIf=\"result\">\n <div *ngFor=\"let group of objectKeys(result); let idx = index\"\n [ngSwitch]=\"group\">\n <ng-container *ngSwitchCase=\"'users'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n\n <a aria-label=\"Navigate to Target\"\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx1 + idx\"><span>{{\n user.first_name !== null\n ? user.first_name\n : user?.email\n }}</span></a>\n </h5>\n <p class=\"m-0 title-font\">\n <strong *ngIf=\"user.user_skills?.length > 0\">Skills :\n </strong>\n <span class=\"badge bg-success m-1\"\n *ngFor=\"\n let skill of user.user_skills;\n let isLast = last;\n trackBy: trackBySkill\n \">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.headline\n ?.length > 0\n \">\n {{ user?.user_profile?.headline }}\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.country\n ?.length > 0\n \">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\n </div>\n <div [id]=\"'collapse' + idx1 + idx\"\n class=\"panel-collapse collapse in p-3\">\n <div class=\"display-block overflow-hidden\">\n <div class=\"row align-items-center\">\n <div class=\"col-sm-3\">\n <ng-container *ngIf=\"\n user?.user_avatar\n ?.length > 0;\n else noProfileImg\n \">\n <ng-container *ngFor=\"\n let profile_image of user.user_avatar\n \">\n <div class=\"text-center my-2\"\n *ngIf=\"\n profile_image.width ===\n 200\n \">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"\n profile_image.url\n \"\n alt=\"Male Icon\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\" />\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-template #noProfileImg>\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img src=\"/assets/img/icons/male.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n </ng-template>\n </div>\n <div class=\"col-sm-9\">\n <ul class=\"name-fl\">\n <li>\n <strong>First Name:\n </strong>\n <span>{{\n user.first_name !==\n null\n ? user.first_name\n : 'N/A'\n }}</span>\n </li>\n <li>\n <strong>Last Name:\n </strong>\n <span>{{\n user.last_name !==\n null\n ? user.last_name\n : 'N/A'\n }}</span>\n </li>\n </ul>\n <p>\n <strong>Email: </strong>\n <span>{{\n user.email !== null\n ? user.email\n : 'N/A'\n }}</span>\n </p>\n <p>\n <strong>Description:\n </strong>\n <span>{{\n user?.user_profile\n ?.description !==\n null\n ? user?.user_profile\n ?.description\n : 'N/A'\n }}</span>\n </p>\n <div class=\"view-btn text-end\">\n <a class=\"btn btn-outline-primary inline-block\"\n [routerLink]=\"[\n '/members/' +\n user.slug\n ]\">View More</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6>\n {{ group | uppercase }}\n </h6>\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a aria-label=\"Navigate to Target\"\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx2 + idx\">{{ faq.question }}</a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx2 + idx\"\n class=\"panel-collapse collapse in\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\"\n *ngIf=\"\n result.users?.length === 0 &&\n result.faqs?.length === 0 &&\n result.recipients?.length === 0\n \">\n </pw-no-data>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: rgb(70, 136, 236);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fafafa;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1)}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"], dependencies: [{ kind: "directive", type: i2$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2$2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i3$2.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "directive", type: i3$1.LazyImgDirective, selector: "img" }, { kind: "pipe", type: i2$2.UpperCasePipe, name: "uppercase" }, { kind: "pipe", type: i5.DOMSanitizerPipe, name: "safe" }, { kind: "pipe", type: i6.TranslocoPipe, name: "transloco" }] }); }
|
|
764
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: SearchComponent, selector: "pw-search", ngImport: i0, template: "<div class=\"container-fluid dashboard-card overflow-hidden\">\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <div class=\"row\">\n <div class=\"col-12 my-3 mt-4\">\n <h2>Search Results</h2>\n </div>\n </div>\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <div class=\"row faqlist search-result\" *ngIf=\"isLoaded\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n <ng-container *ngIf=\"result\">\n <div *ngFor=\"let group of objectKeys(result); let idx = index\"\n [ngSwitch]=\"group\">\n <ng-container *ngSwitchCase=\"'users'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n\n <a aria-label=\"Navigate to Target\"\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx1 + idx\"><span>{{\n user.first_name !== null\n ? user.first_name\n : user?.email\n }}</span></a>\n </h5>\n <p class=\"m-0 title-font\">\n <strong *ngIf=\"user.user_skills?.length > 0\">Skills :\n </strong>\n <span class=\"badge bg-success m-1\"\n *ngFor=\"\n let skill of user.user_skills;\n let isLast = last;\n trackBy: trackBySkill\n \">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.headline\n ?.length > 0\n \">\n {{ user?.user_profile?.headline }}\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.country\n ?.length > 0\n \">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\n </div>\n <div [id]=\"'collapse' + idx1 + idx\"\n class=\"panel-collapse collapse in p-3\">\n <div class=\"display-block overflow-hidden\">\n <div class=\"row align-items-center\">\n <div class=\"col-sm-3\">\n <ng-container *ngIf=\"\n user?.user_avatar\n ?.length > 0;\n else noProfileImg\n \">\n <ng-container *ngFor=\"\n let profile_image of user.user_avatar\n \">\n <div class=\"text-center my-2\"\n *ngIf=\"\n profile_image.width ===\n 200\n \">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"\n profile_image.url\n \"\n alt=\"Male Icon\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\" />\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-template #noProfileImg>\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img src=\"/assets/img/icons/male.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n </ng-template>\n </div>\n <div class=\"col-sm-9\">\n <ul class=\"name-fl\">\n <li>\n <strong>First Name:\n </strong>\n <span>{{\n user.first_name !==\n null\n ? user.first_name\n : 'N/A'\n }}</span>\n </li>\n <li>\n <strong>Last Name:\n </strong>\n <span>{{\n user.last_name !==\n null\n ? user.last_name\n : 'N/A'\n }}</span>\n </li>\n </ul>\n <p>\n <strong>Email: </strong>\n <span>{{\n user.email !== null\n ? user.email\n : 'N/A'\n }}</span>\n </p>\n <p>\n <strong>Description:\n </strong>\n <span>{{\n user?.user_profile\n ?.description !==\n null\n ? user?.user_profile\n ?.description\n : 'N/A'\n }}</span>\n </p>\n <div class=\"view-btn text-end\">\n <a class=\"btn btn-outline-primary inline-block\"\n [routerLink]=\"[\n '/members/' +\n user.slug\n ]\">View More</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6>\n {{ group | uppercase }}\n </h6>\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a aria-label=\"Navigate to Target\"\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx2 + idx\">{{ faq.question }}</a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx2 + idx\"\n class=\"panel-collapse collapse in\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\"\n *ngIf=\"\n result.users?.length === 0 &&\n result.faqs?.length === 0 &&\n result.recipients?.length === 0\n \">\n </pw-no-data>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: rgb(70, 136, 236);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}::ng-deep .ql-snow *{font-size:16px!important}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1);padding-top:20px;padding-bottom:20px}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"], dependencies: [{ kind: "directive", type: i2$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2$2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i3$2.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "directive", type: i3$1.LazyImgDirective, selector: "img" }, { kind: "pipe", type: i2$2.UpperCasePipe, name: "uppercase" }, { kind: "pipe", type: i5.DOMSanitizerPipe, name: "safe" }, { kind: "pipe", type: i6.TranslocoPipe, name: "transloco" }] }); }
|
|
738
765
|
}
|
|
739
766
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SearchComponent, decorators: [{
|
|
740
767
|
type: Component,
|
|
741
|
-
args: [{ selector: 'pw-search', template: "<div class=\"container-fluid dashboard-card overflow-hidden\">\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <div class=\"row\">\n <div class=\"col-12 my-3 mt-4\">\n <h2>Search Results</h2>\n </div>\n </div>\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <div class=\"row faqlist search-result\" *ngIf=\"isLoaded\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n <ng-container *ngIf=\"result\">\n <div *ngFor=\"let group of objectKeys(result); let idx = index\"\n [ngSwitch]=\"group\">\n <ng-container *ngSwitchCase=\"'users'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n\n <a aria-label=\"Navigate to Target\"\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx1 + idx\"><span>{{\n user.first_name !== null\n ? user.first_name\n : user?.email\n }}</span></a>\n </h5>\n <p class=\"m-0 title-font\">\n <strong *ngIf=\"user.user_skills?.length > 0\">Skills :\n </strong>\n <span class=\"badge bg-success m-1\"\n *ngFor=\"\n let skill of user.user_skills;\n let isLast = last;\n trackBy: trackBySkill\n \">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.headline\n ?.length > 0\n \">\n {{ user?.user_profile?.headline }}\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.country\n ?.length > 0\n \">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\n </div>\n <div [id]=\"'collapse' + idx1 + idx\"\n class=\"panel-collapse collapse in p-3\">\n <div class=\"display-block overflow-hidden\">\n <div class=\"row align-items-center\">\n <div class=\"col-sm-3\">\n <ng-container *ngIf=\"\n user?.user_avatar\n ?.length > 0;\n else noProfileImg\n \">\n <ng-container *ngFor=\"\n let profile_image of user.user_avatar\n \">\n <div class=\"text-center my-2\"\n *ngIf=\"\n profile_image.width ===\n 200\n \">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"\n profile_image.url\n \"\n alt=\"Male Icon\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\" />\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-template #noProfileImg>\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img src=\"/assets/img/icons/male.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n </ng-template>\n </div>\n <div class=\"col-sm-9\">\n <ul class=\"name-fl\">\n <li>\n <strong>First Name:\n </strong>\n <span>{{\n user.first_name !==\n null\n ? user.first_name\n : 'N/A'\n }}</span>\n </li>\n <li>\n <strong>Last Name:\n </strong>\n <span>{{\n user.last_name !==\n null\n ? user.last_name\n : 'N/A'\n }}</span>\n </li>\n </ul>\n <p>\n <strong>Email: </strong>\n <span>{{\n user.email !== null\n ? user.email\n : 'N/A'\n }}</span>\n </p>\n <p>\n <strong>Description:\n </strong>\n <span>{{\n user?.user_profile\n ?.description !==\n null\n ? user?.user_profile\n ?.description\n : 'N/A'\n }}</span>\n </p>\n <div class=\"view-btn text-end\">\n <a class=\"btn btn-outline-primary inline-block\"\n [routerLink]=\"[\n '/members/' +\n user.slug\n ]\">View More</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6>\n {{ group | uppercase }}\n </h6>\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a aria-label=\"Navigate to Target\"\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx2 + idx\">{{ faq.question }}</a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx2 + idx\"\n class=\"panel-collapse collapse in\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\"\n *ngIf=\"\n result.users?.length === 0 &&\n result.faqs?.length === 0 &&\n result.recipients?.length === 0\n \">\n </pw-no-data>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: rgb(70, 136, 236);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fafafa;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1)}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"] }]
|
|
768
|
+
args: [{ selector: 'pw-search', template: "<div class=\"container-fluid dashboard-card overflow-hidden\">\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <div class=\"row\">\n <div class=\"col-12 my-3 mt-4\">\n <h2>Search Results</h2>\n </div>\n </div>\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <div class=\"row faqlist search-result\" *ngIf=\"isLoaded\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n <ng-container *ngIf=\"result\">\n <div *ngFor=\"let group of objectKeys(result); let idx = index\"\n [ngSwitch]=\"group\">\n <ng-container *ngSwitchCase=\"'users'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n\n <a aria-label=\"Navigate to Target\"\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx1 + idx\"><span>{{\n user.first_name !== null\n ? user.first_name\n : user?.email\n }}</span></a>\n </h5>\n <p class=\"m-0 title-font\">\n <strong *ngIf=\"user.user_skills?.length > 0\">Skills :\n </strong>\n <span class=\"badge bg-success m-1\"\n *ngFor=\"\n let skill of user.user_skills;\n let isLast = last;\n trackBy: trackBySkill\n \">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.headline\n ?.length > 0\n \">\n {{ user?.user_profile?.headline }}\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.country\n ?.length > 0\n \">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\n </div>\n <div [id]=\"'collapse' + idx1 + idx\"\n class=\"panel-collapse collapse in p-3\">\n <div class=\"display-block overflow-hidden\">\n <div class=\"row align-items-center\">\n <div class=\"col-sm-3\">\n <ng-container *ngIf=\"\n user?.user_avatar\n ?.length > 0;\n else noProfileImg\n \">\n <ng-container *ngFor=\"\n let profile_image of user.user_avatar\n \">\n <div class=\"text-center my-2\"\n *ngIf=\"\n profile_image.width ===\n 200\n \">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"\n profile_image.url\n \"\n alt=\"Male Icon\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\" />\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-template #noProfileImg>\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img src=\"/assets/img/icons/male.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n </ng-template>\n </div>\n <div class=\"col-sm-9\">\n <ul class=\"name-fl\">\n <li>\n <strong>First Name:\n </strong>\n <span>{{\n user.first_name !==\n null\n ? user.first_name\n : 'N/A'\n }}</span>\n </li>\n <li>\n <strong>Last Name:\n </strong>\n <span>{{\n user.last_name !==\n null\n ? user.last_name\n : 'N/A'\n }}</span>\n </li>\n </ul>\n <p>\n <strong>Email: </strong>\n <span>{{\n user.email !== null\n ? user.email\n : 'N/A'\n }}</span>\n </p>\n <p>\n <strong>Description:\n </strong>\n <span>{{\n user?.user_profile\n ?.description !==\n null\n ? user?.user_profile\n ?.description\n : 'N/A'\n }}</span>\n </p>\n <div class=\"view-btn text-end\">\n <a class=\"btn btn-outline-primary inline-block\"\n [routerLink]=\"[\n '/members/' +\n user.slug\n ]\">View More</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6>\n {{ group | uppercase }}\n </h6>\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a aria-label=\"Navigate to Target\"\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx2 + idx\">{{ faq.question }}</a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx2 + idx\"\n class=\"panel-collapse collapse in\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\"\n *ngIf=\"\n result.users?.length === 0 &&\n result.faqs?.length === 0 &&\n result.recipients?.length === 0\n \">\n </pw-no-data>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: rgb(70, 136, 236);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}::ng-deep .ql-snow *{font-size:16px!important}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1);padding-top:20px;padding-bottom:20px}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"] }]
|
|
742
769
|
}], ctorParameters: () => [{ type: i1$1.ActivatedRoute }, { type: i1.DashboardService }] });
|
|
743
770
|
|
|
744
771
|
class UserNotificationsComponent extends AppBaseComponent {
|
|
@@ -807,6 +834,7 @@ class DashboardLibModule {
|
|
|
807
834
|
CustomizerComponent,
|
|
808
835
|
FaqComponent,
|
|
809
836
|
SearchComponent,
|
|
837
|
+
DocumentationComponent,
|
|
810
838
|
CurrentNotificationsComponent,
|
|
811
839
|
DismissedNotificationsComponent,
|
|
812
840
|
FaqDetailsComponent], imports: [CommonModule,
|
|
@@ -864,6 +892,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
|
|
|
864
892
|
CustomizerComponent,
|
|
865
893
|
FaqComponent,
|
|
866
894
|
SearchComponent,
|
|
895
|
+
DocumentationComponent,
|
|
867
896
|
CurrentNotificationsComponent,
|
|
868
897
|
DismissedNotificationsComponent,
|
|
869
898
|
FaqDetailsComponent
|
|
@@ -1264,5 +1293,5 @@ const BLOG_MENU = {
|
|
|
1264
1293
|
* Generated bundle index. Do not edit.
|
|
1265
1294
|
*/
|
|
1266
1295
|
|
|
1267
|
-
export { BLOG_MENU, CHAT_MENU, CurrentNotificationsComponent, CustomizerComponent, DashboardLibModule, DismissedNotificationsComponent, ENTERPRISE_MENU, FAQ_Menu, FaqComponent, FaqDetailsComponent, FooterComponent, HomeComponent, NavbarComponent, NotificationsPageComponent, ROUTES, SearchComponent, UserFeedbackComponent, UserNotificationsComponent };
|
|
1296
|
+
export { BLOG_MENU, CHAT_MENU, CurrentNotificationsComponent, CustomizerComponent, DashboardLibModule, DismissedNotificationsComponent, DocumentationComponent, ENTERPRISE_MENU, FAQ_Menu, FaqComponent, FaqDetailsComponent, FooterComponent, HomeComponent, NavbarComponent, NotificationsPageComponent, ROUTES, SearchComponent, UserFeedbackComponent, UserNotificationsComponent };
|
|
1268
1297
|
//# sourceMappingURL=posiwise-dashboard-module.mjs.map
|