@posiwise/dashboard-module 0.0.30 → 0.0.31
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/esm2020/index.mjs +1 -4
- package/esm2020/lib/dashboard.module.mjs +1 -6
- package/fesm2015/dashboard-module.mjs +14 -651
- package/fesm2015/dashboard-module.mjs.map +1 -1
- package/fesm2020/dashboard-module.mjs +14 -642
- package/fesm2020/dashboard-module.mjs.map +1 -1
- package/index.d.ts +0 -3
- package/lib/dashboard.module.d.ts +18 -19
- package/package.json +1 -1
- package/esm2020/lib/sidebar/sidebar-routes.config.mjs +0 -338
- package/esm2020/lib/sidebar/sidebar.component.mjs +0 -300
- package/esm2020/lib/sidebar/sidebar.metadata.mjs +0 -2
- package/lib/sidebar/sidebar-routes.config.d.ts +0 -64
- package/lib/sidebar/sidebar.component.d.ts +0 -56
- package/lib/sidebar/sidebar.metadata.d.ts +0 -15
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i2 from '@angular/common';
|
|
2
|
-
import {
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Component, NgModule, Input, ViewChild,
|
|
4
|
+
import { Component, NgModule, Input, ViewChild, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
5
5
|
import * as i3 from '@angular/forms';
|
|
6
6
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
7
|
import * as i1$2 from '@ng-bootstrap/ng-bootstrap';
|
|
8
8
|
import { NgbDropdownConfig, NgbNavModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
|
|
9
|
-
import * as i4$
|
|
9
|
+
import * as i4$2 from 'primeng/radiobutton';
|
|
10
10
|
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
11
11
|
import * as i3$1 from 'primeng/progressspinner';
|
|
12
12
|
import { ProgressSpinnerModule } from 'primeng/progressspinner';
|
|
@@ -21,7 +21,7 @@ import { PermissionService, SubscriptionService } from '@posiwise/common-service
|
|
|
21
21
|
import sortBy from 'lodash/sortBy';
|
|
22
22
|
import * as i4 from '@posiwise/shared-components';
|
|
23
23
|
import { PrivacyAndTosComponent, SharedComponentsModule } from '@posiwise/shared-components';
|
|
24
|
-
import * as
|
|
24
|
+
import * as i4$1 from '@posiwise/pipes';
|
|
25
25
|
import { PipesModule } from '@posiwise/pipes';
|
|
26
26
|
import { UserProfilePageComponent, UserModuleModule } from '@posiwise/user-module';
|
|
27
27
|
import moment from 'moment';
|
|
@@ -29,13 +29,9 @@ import * as i5 from '@ngneat/transloco';
|
|
|
29
29
|
import * as i3$2 from '@ngrx/store';
|
|
30
30
|
import { getUser } from '@posiwise/app-store';
|
|
31
31
|
import { orderBy } from 'lodash';
|
|
32
|
-
import * as i6
|
|
32
|
+
import * as i6 from 'primeng/tooltip';
|
|
33
33
|
import { HelperService } from '@posiwise/helper-service';
|
|
34
|
-
import
|
|
35
|
-
import isEqual from 'lodash/isEqual';
|
|
36
|
-
import uniqBy from 'lodash/uniqBy';
|
|
37
|
-
import { Subscription, timer, Subject, takeUntil, filter } from 'rxjs';
|
|
38
|
-
import { SOCKET_TYPE, ADMIN_SUB_MENU_WHITELIST } from '@posiwise/common-utilities';
|
|
34
|
+
import { Subject, takeUntil, filter } from 'rxjs';
|
|
39
35
|
import { CoreTranslocoModule } from '@posiwise/core-transloco';
|
|
40
36
|
|
|
41
37
|
class CustomizerComponent {
|
|
@@ -142,7 +138,7 @@ class FaqComponent extends AppBaseComponent {
|
|
|
142
138
|
}
|
|
143
139
|
}
|
|
144
140
|
FaqComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqComponent, deps: [{ token: i1.CommonService }, { token: i0.Injector }, { token: i1.ProductService }], target: i0.ɵɵFactoryTarget.Component });
|
|
145
|
-
FaqComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: FaqComponent, selector: "pw-faq", usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid overflow-hidden\">\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=\"showSupport\"\n class=\"ms-auto d-block btn btn-sm btn-outline-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\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 <!-- Non Product FAQ -->\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 [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]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <!-- Product based FAQ -->\n <div *ngFor=\"let product of objectKeys(productFaq); let idx2 = index\">\n <ng-container *ngIf=\"productFaq[product]?.length\">\n <h6 class=\"text-uppercase p-1\">{{ product }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of productFaq[product];\n let idx = index;\n trackBy: trackByNonProductFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse1' + idx + idx2\">\n {{ faq.question }}\n </a>\n </h5>\n </div>\n <div [id]=\"'collapse1' + idx + idx2\"\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]=\"faq?.answer |safe:'html'\">\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=\"totalRecords === 0 || allFaqFalse\">\n <pw-no-data message=\"No faqs present\"> </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_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);border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:rgb(255,255,255)}.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}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["style", "styleClass", "strokeWidth", "fill", "animationDuration"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message"] }, { kind: "pipe", type:
|
|
141
|
+
FaqComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: FaqComponent, selector: "pw-faq", usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid overflow-hidden\">\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=\"showSupport\"\n class=\"ms-auto d-block btn btn-sm btn-outline-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\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 <!-- Non Product FAQ -->\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 [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]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <!-- Product based FAQ -->\n <div *ngFor=\"let product of objectKeys(productFaq); let idx2 = index\">\n <ng-container *ngIf=\"productFaq[product]?.length\">\n <h6 class=\"text-uppercase p-1\">{{ product }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of productFaq[product];\n let idx = index;\n trackBy: trackByNonProductFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse1' + idx + idx2\">\n {{ faq.question }}\n </a>\n </h5>\n </div>\n <div [id]=\"'collapse1' + idx + idx2\"\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]=\"faq?.answer |safe:'html'\">\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=\"totalRecords === 0 || allFaqFalse\">\n <pw-no-data message=\"No faqs present\"> </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_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);border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:rgb(255,255,255)}.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}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["style", "styleClass", "strokeWidth", "fill", "animationDuration"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message"] }, { kind: "pipe", type: i4$1.DOMSanitizerPipe, name: "safe" }] });
|
|
146
142
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqComponent, decorators: [{
|
|
147
143
|
type: Component,
|
|
148
144
|
args: [{ selector: 'pw-faq', template: "<div class=\"container-fluid overflow-hidden\">\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=\"showSupport\"\n class=\"ms-auto d-block btn btn-sm btn-outline-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\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 <!-- Non Product FAQ -->\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 [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]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <!-- Product based FAQ -->\n <div *ngFor=\"let product of objectKeys(productFaq); let idx2 = index\">\n <ng-container *ngIf=\"productFaq[product]?.length\">\n <h6 class=\"text-uppercase p-1\">{{ product }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of productFaq[product];\n let idx = index;\n trackBy: trackByNonProductFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse1' + idx + idx2\">\n {{ faq.question }}\n </a>\n </h5>\n </div>\n <div [id]=\"'collapse1' + idx + idx2\"\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]=\"faq?.answer |safe:'html'\">\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=\"totalRecords === 0 || allFaqFalse\">\n <pw-no-data message=\"No faqs present\"> </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_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);border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:rgb(255,255,255)}.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}\n"] }]
|
|
@@ -272,7 +268,7 @@ class UserFeedbackComponent extends AppBaseComponent {
|
|
|
272
268
|
}
|
|
273
269
|
}
|
|
274
270
|
UserFeedbackComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: UserFeedbackComponent, deps: [{ token: i0.Injector }, { token: i1.CommonService }], target: i0.ɵɵFactoryTarget.Component });
|
|
275
|
-
UserFeedbackComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: UserFeedbackComponent, selector: "pw-user-feedback", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"showSection\">\n <div class=\"mt-4\"\n *ngIf=\"questions?.length\">\n <div class=\"card pb-1\">\n <h3 class=\"text-end me-3 pt-2 cursor-pointer\"\n (click)=\"closeSection()\">×</h3>\n <div class=\"card-content p-0\"\n *ngFor=\"let question of questions; let first = first; trackBy: trackByQuestion\">\n <div class=\"card-header\">\n <form #feedbackForm=\"ngForm\">\n <div class=\"col-lg-8 p-0 mx-auto\">\n <h3 class=\"mb-1\"\n *ngIf=\"first\">Your input is valuable to us</h3>\n <p class=\"mb-4\"\n *ngIf=\"first\">\n Please take a moment to answer these questions\n </p>\n <h6 class=\"fw-bold pb-3 mx-auto\">{{ question?.question }}</h6>\n <div class=\"text-center row p-2 mx-md-2 feedback-value\">\n <span class=\"col-auto me-0\">Not at all</span>\n <div *ngFor=\"let val of counter(10); let i = index\"\n class=\"p-field-checkbox col-auto ms-0 me-0\">\n <p-radioButton name=\"feedback\"\n ngModel\n [value]=\"i + 1\"\n [inputId]=\"i + 1\"></p-radioButton>\n <br />\n <label [for]=\"i + 1\">{{ i + 1 }}</label>\n </div>\n <span class=\"col-auto ms-0\">Extremely</span>\n </div>\n\n <div class=\"text mt-3\">\n <textarea rows=\"4\"\n name=\"description\"\n placeholder=\"\u201CWhat is the primary reason for your score?\u201D\"\n ngModel\n type=\"text\"\n pInputTextarea\n class=\"form-control\">\n </textarea>\n </div>\n <div class=\"mt-3\">\n <button class=\"btn btn-primary d-block mx-auto\"\n (click)=\"onSubmit(question?.id, feedbackForm.value)\">\n Submit\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n\n</ng-container>\n", styles: [".feedback-value{justify-content:center}.feedback-value label{color:#000000de;cursor:pointer;font-size:1rem;font-weight:400;letter-spacing:normal;margin-left:10px;margin-right:10px;text-transform:none}.feedback-value .p-field-checkbox{margin:0 10px}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i4$
|
|
271
|
+
UserFeedbackComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: UserFeedbackComponent, selector: "pw-user-feedback", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"showSection\">\n <div class=\"mt-4\"\n *ngIf=\"questions?.length\">\n <div class=\"card pb-1\">\n <h3 class=\"text-end me-3 pt-2 cursor-pointer\"\n (click)=\"closeSection()\">×</h3>\n <div class=\"card-content p-0\"\n *ngFor=\"let question of questions; let first = first; trackBy: trackByQuestion\">\n <div class=\"card-header\">\n <form #feedbackForm=\"ngForm\">\n <div class=\"col-lg-8 p-0 mx-auto\">\n <h3 class=\"mb-1\"\n *ngIf=\"first\">Your input is valuable to us</h3>\n <p class=\"mb-4\"\n *ngIf=\"first\">\n Please take a moment to answer these questions\n </p>\n <h6 class=\"fw-bold pb-3 mx-auto\">{{ question?.question }}</h6>\n <div class=\"text-center row p-2 mx-md-2 feedback-value\">\n <span class=\"col-auto me-0\">Not at all</span>\n <div *ngFor=\"let val of counter(10); let i = index\"\n class=\"p-field-checkbox col-auto ms-0 me-0\">\n <p-radioButton name=\"feedback\"\n ngModel\n [value]=\"i + 1\"\n [inputId]=\"i + 1\"></p-radioButton>\n <br />\n <label [for]=\"i + 1\">{{ i + 1 }}</label>\n </div>\n <span class=\"col-auto ms-0\">Extremely</span>\n </div>\n\n <div class=\"text mt-3\">\n <textarea rows=\"4\"\n name=\"description\"\n placeholder=\"\u201CWhat is the primary reason for your score?\u201D\"\n ngModel\n type=\"text\"\n pInputTextarea\n class=\"form-control\">\n </textarea>\n </div>\n <div class=\"mt-3\">\n <button class=\"btn btn-primary d-block mx-auto\"\n (click)=\"onSubmit(question?.id, feedbackForm.value)\">\n Submit\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n\n</ng-container>\n", styles: [".feedback-value{justify-content:center}.feedback-value label{color:#000000de;cursor:pointer;font-size:1rem;font-weight:400;letter-spacing:normal;margin-left:10px;margin-right:10px;text-transform:none}.feedback-value .p-field-checkbox{margin:0 10px}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i4$2.RadioButton, selector: "p-radioButton", inputs: ["value", "formControlName", "name", "disabled", "label", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "style", "styleClass", "labelStyleClass"], outputs: ["onClick", "onFocus", "onBlur"] }] });
|
|
276
272
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: UserFeedbackComponent, decorators: [{
|
|
277
273
|
type: Component,
|
|
278
274
|
args: [{ selector: 'pw-user-feedback', template: "<ng-container *ngIf=\"showSection\">\n <div class=\"mt-4\"\n *ngIf=\"questions?.length\">\n <div class=\"card pb-1\">\n <h3 class=\"text-end me-3 pt-2 cursor-pointer\"\n (click)=\"closeSection()\">×</h3>\n <div class=\"card-content p-0\"\n *ngFor=\"let question of questions; let first = first; trackBy: trackByQuestion\">\n <div class=\"card-header\">\n <form #feedbackForm=\"ngForm\">\n <div class=\"col-lg-8 p-0 mx-auto\">\n <h3 class=\"mb-1\"\n *ngIf=\"first\">Your input is valuable to us</h3>\n <p class=\"mb-4\"\n *ngIf=\"first\">\n Please take a moment to answer these questions\n </p>\n <h6 class=\"fw-bold pb-3 mx-auto\">{{ question?.question }}</h6>\n <div class=\"text-center row p-2 mx-md-2 feedback-value\">\n <span class=\"col-auto me-0\">Not at all</span>\n <div *ngFor=\"let val of counter(10); let i = index\"\n class=\"p-field-checkbox col-auto ms-0 me-0\">\n <p-radioButton name=\"feedback\"\n ngModel\n [value]=\"i + 1\"\n [inputId]=\"i + 1\"></p-radioButton>\n <br />\n <label [for]=\"i + 1\">{{ i + 1 }}</label>\n </div>\n <span class=\"col-auto ms-0\">Extremely</span>\n </div>\n\n <div class=\"text mt-3\">\n <textarea rows=\"4\"\n name=\"description\"\n placeholder=\"\u201CWhat is the primary reason for your score?\u201D\"\n ngModel\n type=\"text\"\n pInputTextarea\n class=\"form-control\">\n </textarea>\n </div>\n <div class=\"mt-3\">\n <button class=\"btn btn-primary d-block mx-auto\"\n (click)=\"onSubmit(question?.id, feedbackForm.value)\">\n Submit\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n\n</ng-container>\n", styles: [".feedback-value{justify-content:center}.feedback-value label{color:#000000de;cursor:pointer;font-size:1rem;font-weight:400;letter-spacing:normal;margin-left:10px;margin-right:10px;text-transform:none}.feedback-value .p-field-checkbox{margin:0 10px}\n"] }]
|
|
@@ -480,7 +476,7 @@ class NavbarComponent extends AppBaseComponent {
|
|
|
480
476
|
}
|
|
481
477
|
}
|
|
482
478
|
NavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NavbarComponent, deps: [{ token: i0.Injector }, { token: i1.NotificationService }, { token: i1$2.NgbDropdownConfig }, { token: i1.ScriptLoaderService }, { token: i3$2.Store }], target: i0.ɵɵFactoryTarget.Component });
|
|
483
|
-
NavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: NavbarComponent, selector: "pw-navbar", inputs: { logo: "logo" }, providers: [NgbDropdownConfig], viewQueries: [{ propertyName: "notiDrop", first: true, predicate: ["notiDrop"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!-- Navbar (Header) Starts -->\n<nav class=\"navbar navbar-expand-lg navbar-light fixed-top bg-faded shadow-sm\">\n <div class=\"container-fluid\">\n <div class=\"navbar-header\">\n <button type=\"button\"\n class=\"navbar-toggle d-lg-none float-start\"\n data-bs-toggle=\"collapse\">\n <span class=\"sr-only\">Toggle navigation</span> <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </button>\n <form class=\"navbar-form navbar-right mt-1\"\n role=\"search\"\n (ngSubmit)=\"onSearch(search)\">\n <div class=\"input-group navbar-search-input\">\n <input type=\"text\"\n #search\n class=\"form-control\"\n placeholder=\"Search\" />\n <button class=\"input-group-text btn\"\n type=\"submit\">\n <i class=\"ft-search\" aria-hidden=\"true\"></i>\n </button>\n </div>\n <div id=\"tips-onboarding-step6\"></div>\n </form>\n </div>\n <div class=\"logo-img\">\n <ng-template [ngIf]=\"logo\">\n <img [src]=\"logo.full\"\n onerror=\"this.onerror=null;this.src='assets/img/logos/logo_text_big_dark.png';\"\n alt=\"img\" />\n </ng-template>\n </div>\n <div *rbacAllow=\"'SuperAdmin'\">\n <div class=\"mb-0\">\n <select class=\"form-select form-control-sm\"\n data-flag=\"true\"\n (change)=\"onLangChange($event.target.value)\">\n <option value=\"en\">English</option>\n <option value=\"es\">Spanish</option>\n <option value=\"de\">German</option>\n <option value=\"pt\">Portuguese</option>\n </select>\n </div>\n </div>\n <div class=\"navbar-container\">\n <div id=\"navbarSupportedContent\">\n <ul class=\"navbar-nav\">\n <li class=\"nav-item\"\n ngbDropdown\n #notiDrop=\"ngbDropdown\"\n placement=\"bottom-left\"\n autoClose=\"true\">\n <a class=\"nav-link position-relative\"\n id=\"dropdownBasic2\"\n ngbDropdownToggle\n (click)=\"checkNoti()\">\n <i\n class=\"ft-bell font-medium-3 blue-grey darken-4\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"notification badge rounded-pill bg-danger\"\n *ngIf=\"notificationCount > 0\">\n {{ notificationCount }}\n </span>\n <p class=\"d-none\">Notifications</p>\n </a>\n <div id=\"tips-onboarding-step5\"></div>\n <div ngbDropdownMenu\n aria-labelledby=\"dropdownBasic2\"\n class=\"notification-dropdown\">\n <div class=\"noti-list\"\n *ngIf=\"noNoti === false\">\n <li *ngFor=\"let noti of notifications; let idx = index\"\n #notiRef\n [id]=\"'noti' + idx\"\n [pTooltip]=\"noti?.content\"\n tooltipPosition=\"top\"\n class=\"dropdown-item noti-container border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <div class=\"d-flex justify-content-between w-100\">\n <div>\n <div class=\"btn btn-circle me-3\"\n [ngClass]=\"{\n 'btn-danger':\n noti.note_type === 'administrative',\n 'btn-secondary':\n noti.note_type === 'object_event',\n 'btn-primary':\n noti.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell':\n noti.note_type === 'administrative',\n 'fa-share-alt':\n noti.note_type === 'object_event',\n 'fa-bells':\n noti.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </div>\n <div class=\"d-inline-block text-truncate noti-content\">\n {{ noti?.content }}\n <span class=\"noti-text d-block\">\n <span class=\"fal fa-clock\"></span>\n {{ noti?.created_at | sinceAgo }}\n </span>\n </div>\n </div>\n <div>\n <a (click)=\"dismiss(noti.id, $event)\">\n <i class=\"far fa-times\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </li>\n </div>\n <div class=\"noti-list\"\n *ngIf=\"noNoti === true\">\n <a class=\"dropdown-item noti-container border-bottom border-bottom-blue-grey border-bottom-lighten-4\">\n <i\n class=\"ft-bell success float-start d-block font-large-1 mt-1 me-2\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"noti-wrapper\">\n <span class=\"noti-title line-height-1 d-block success\">You are all caught up.</span>\n <span class=\"noti-text\">You currently do not have any notifications.</span>\n </span>\n </a>\n </div>\n <a (click)=\"redirectToNotification()\"\n class=\"noti-footer text-center d-block border-top border-top-blue-grey border-top-lighten-4 text-bold-400 p-3\">Read All Notifications</a>\n </div>\n </li>\n <li class=\"nav-item\"\n ngbDropdown\n placement=\"bottom-left\"\n autoClose=\"true\">\n <button class=\"nav-link position-relative dropdown-toggle\"\n type=\"button\"\n id=\"dropdownBasic3\"\n data-bs-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n style=\"border: none\">\n <i\n class=\"ft-user font-medium-3 blue-grey darken-4\"\n aria-hidden=\"true\"\n ></i>\n <p class=\"d-none\">User Settings</p>\n </button>\n <div ngbDropdownMenu\n aria-labelledby=\"dropdownBasic3\">\n <button class=\"dropdown-item py-2\"\n [routerLink]=\"['/members', slug]\">\n <i class=\"ft-edit me-2\" aria-hidden=\"true\"></i>\n <span>My Profile</span>\n </button>\n <button class=\"dropdown-item py-2\"\n routerLink=\"/account/details\">\n <i class=\"ft-user me-2\" aria-hidden=\"true\"></i> <span>Account</span>\n </button>\n <button class=\"dropdown-item py-2\"\n routerLink=\"/settings/communication\">\n <i class=\"ft-settings me-2\" aria-hidden=\"true\"></i>\n <span>Settings</span>\n </button>\n <button *ngIf=\"isSupportMenu\"\n class=\"dropdown-item py-2\"\n routerLink=\"/support\">\n <i class=\"fa fa-question me-2\" aria-hidden=\"true\"></i>\n <span> Support</span>\n </button>\n <div class=\"dropdown-divider\"></div>\n <button class=\"dropdown-item logout\"\n (click)=\"logout()\">\n <i class=\"fa fa-sign-out-alt me-2\" aria-hidden=\"true\"></i>\n <span>Logout</span>\n </button>\n </div>\n </li>\n </ul>\n </div>\n </div>\n </div>\n</nav>\n<!-- Navbar (Header) Ends -->\n", styles: [".navbar,.fixed-top{position:fixed!important;background-color:#fff;padding:0 30px 5px;height:45px}.mb-0{margin-bottom:-4px!important}.navbar-nav>li{margin-right:20px}.logo-img img{margin-right:15px;max-height:30px}.logo-text{color:#000;display:block;font-size:1.4rem;font-weight:400;letter-spacing:2px;padding:5px 0;text-align:left;text-transform:uppercase}.dropdown-menu{left:auto;right:0;z-index:25000!important}.noti-container{cursor:pointer}.noti-content{vertical-align:top!important;width:280px}.noti-container,.icon-dismiss{padding:15px;position:relative;z-index:9}.noti-list{max-height:400px;overflow:auto}.nav-link{background-color:#fff}@media screen and (max-width: 991px){.navbar{padding:0 30px 5px}}@media screen and (max-width: 575px){.navbar{padding:0 15px 5px 10px}}@media screen and (max-width: 575px){.noti-content{width:250px}}@media only screen and (max-width: 480px){.logo-img{max-width:100px}.logo-img img{width:100%}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i6$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i8.LazyImgDirective, selector: "img" }, { kind: "directive", type: i8.RbacAllowDirective, selector: "[rbacAllow]", inputs: ["rbacAllow"] }, { kind: "directive", type: i1$2.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "popperOptions", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i1$2.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i1$2.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i1$2.NgbNavbar, selector: ".navbar" }, { kind: "pipe", type: i6.SinceAgoPipe, name: "sinceAgo" }] });
|
|
479
|
+
NavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: NavbarComponent, selector: "pw-navbar", inputs: { logo: "logo" }, providers: [NgbDropdownConfig], viewQueries: [{ propertyName: "notiDrop", first: true, predicate: ["notiDrop"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!-- Navbar (Header) Starts -->\n<nav class=\"navbar navbar-expand-lg navbar-light fixed-top bg-faded shadow-sm\">\n <div class=\"container-fluid\">\n <div class=\"navbar-header\">\n <button type=\"button\"\n class=\"navbar-toggle d-lg-none float-start\"\n data-bs-toggle=\"collapse\">\n <span class=\"sr-only\">Toggle navigation</span> <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </button>\n <form class=\"navbar-form navbar-right mt-1\"\n role=\"search\"\n (ngSubmit)=\"onSearch(search)\">\n <div class=\"input-group navbar-search-input\">\n <input type=\"text\"\n #search\n class=\"form-control\"\n placeholder=\"Search\" />\n <button class=\"input-group-text btn\"\n type=\"submit\">\n <i class=\"ft-search\" aria-hidden=\"true\"></i>\n </button>\n </div>\n <div id=\"tips-onboarding-step6\"></div>\n </form>\n </div>\n <div class=\"logo-img\">\n <ng-template [ngIf]=\"logo\">\n <img [src]=\"logo.full\"\n onerror=\"this.onerror=null;this.src='assets/img/logos/logo_text_big_dark.png';\"\n alt=\"img\" />\n </ng-template>\n </div>\n <div *rbacAllow=\"'SuperAdmin'\">\n <div class=\"mb-0\">\n <select class=\"form-select form-control-sm\"\n data-flag=\"true\"\n (change)=\"onLangChange($event.target.value)\">\n <option value=\"en\">English</option>\n <option value=\"es\">Spanish</option>\n <option value=\"de\">German</option>\n <option value=\"pt\">Portuguese</option>\n </select>\n </div>\n </div>\n <div class=\"navbar-container\">\n <div id=\"navbarSupportedContent\">\n <ul class=\"navbar-nav\">\n <li class=\"nav-item\"\n ngbDropdown\n #notiDrop=\"ngbDropdown\"\n placement=\"bottom-left\"\n autoClose=\"true\">\n <a class=\"nav-link position-relative\"\n id=\"dropdownBasic2\"\n ngbDropdownToggle\n (click)=\"checkNoti()\">\n <i\n class=\"ft-bell font-medium-3 blue-grey darken-4\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"notification badge rounded-pill bg-danger\"\n *ngIf=\"notificationCount > 0\">\n {{ notificationCount }}\n </span>\n <p class=\"d-none\">Notifications</p>\n </a>\n <div id=\"tips-onboarding-step5\"></div>\n <div ngbDropdownMenu\n aria-labelledby=\"dropdownBasic2\"\n class=\"notification-dropdown\">\n <div class=\"noti-list\"\n *ngIf=\"noNoti === false\">\n <li *ngFor=\"let noti of notifications; let idx = index\"\n #notiRef\n [id]=\"'noti' + idx\"\n [pTooltip]=\"noti?.content\"\n tooltipPosition=\"top\"\n class=\"dropdown-item noti-container border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <div class=\"d-flex justify-content-between w-100\">\n <div>\n <div class=\"btn btn-circle me-3\"\n [ngClass]=\"{\n 'btn-danger':\n noti.note_type === 'administrative',\n 'btn-secondary':\n noti.note_type === 'object_event',\n 'btn-primary':\n noti.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell':\n noti.note_type === 'administrative',\n 'fa-share-alt':\n noti.note_type === 'object_event',\n 'fa-bells':\n noti.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </div>\n <div class=\"d-inline-block text-truncate noti-content\">\n {{ noti?.content }}\n <span class=\"noti-text d-block\">\n <span class=\"fal fa-clock\"></span>\n {{ noti?.created_at | sinceAgo }}\n </span>\n </div>\n </div>\n <div>\n <a (click)=\"dismiss(noti.id, $event)\">\n <i class=\"far fa-times\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </li>\n </div>\n <div class=\"noti-list\"\n *ngIf=\"noNoti === true\">\n <a class=\"dropdown-item noti-container border-bottom border-bottom-blue-grey border-bottom-lighten-4\">\n <i\n class=\"ft-bell success float-start d-block font-large-1 mt-1 me-2\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"noti-wrapper\">\n <span class=\"noti-title line-height-1 d-block success\">You are all caught up.</span>\n <span class=\"noti-text\">You currently do not have any notifications.</span>\n </span>\n </a>\n </div>\n <a (click)=\"redirectToNotification()\"\n class=\"noti-footer text-center d-block border-top border-top-blue-grey border-top-lighten-4 text-bold-400 p-3\">Read All Notifications</a>\n </div>\n </li>\n <li class=\"nav-item\"\n ngbDropdown\n placement=\"bottom-left\"\n autoClose=\"true\">\n <button class=\"nav-link position-relative dropdown-toggle\"\n type=\"button\"\n id=\"dropdownBasic3\"\n data-bs-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n style=\"border: none\">\n <i\n class=\"ft-user font-medium-3 blue-grey darken-4\"\n aria-hidden=\"true\"\n ></i>\n <p class=\"d-none\">User Settings</p>\n </button>\n <div ngbDropdownMenu\n aria-labelledby=\"dropdownBasic3\">\n <button class=\"dropdown-item py-2\"\n [routerLink]=\"['/members', slug]\">\n <i class=\"ft-edit me-2\" aria-hidden=\"true\"></i>\n <span>My Profile</span>\n </button>\n <button class=\"dropdown-item py-2\"\n routerLink=\"/account/details\">\n <i class=\"ft-user me-2\" aria-hidden=\"true\"></i> <span>Account</span>\n </button>\n <button class=\"dropdown-item py-2\"\n routerLink=\"/settings/communication\">\n <i class=\"ft-settings me-2\" aria-hidden=\"true\"></i>\n <span>Settings</span>\n </button>\n <button *ngIf=\"isSupportMenu\"\n class=\"dropdown-item py-2\"\n routerLink=\"/support\">\n <i class=\"fa fa-question me-2\" aria-hidden=\"true\"></i>\n <span> Support</span>\n </button>\n <div class=\"dropdown-divider\"></div>\n <button class=\"dropdown-item logout\"\n (click)=\"logout()\">\n <i class=\"fa fa-sign-out-alt me-2\" aria-hidden=\"true\"></i>\n <span>Logout</span>\n </button>\n </div>\n </li>\n </ul>\n </div>\n </div>\n </div>\n</nav>\n<!-- Navbar (Header) Ends -->\n", styles: [".navbar,.fixed-top{position:fixed!important;background-color:#fff;padding:0 30px 5px;height:45px}.mb-0{margin-bottom:-4px!important}.navbar-nav>li{margin-right:20px}.logo-img img{margin-right:15px;max-height:30px}.logo-text{color:#000;display:block;font-size:1.4rem;font-weight:400;letter-spacing:2px;padding:5px 0;text-align:left;text-transform:uppercase}.dropdown-menu{left:auto;right:0;z-index:25000!important}.noti-container{cursor:pointer}.noti-content{vertical-align:top!important;width:280px}.noti-container,.icon-dismiss{padding:15px;position:relative;z-index:9}.noti-list{max-height:400px;overflow:auto}.nav-link{background-color:#fff}@media screen and (max-width: 991px){.navbar{padding:0 30px 5px}}@media screen and (max-width: 575px){.navbar{padding:0 15px 5px 10px}}@media screen and (max-width: 575px){.noti-content{width:250px}}@media only screen and (max-width: 480px){.logo-img{max-width:100px}.logo-img img{width:100%}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i8.LazyImgDirective, selector: "img" }, { kind: "directive", type: i8.RbacAllowDirective, selector: "[rbacAllow]", inputs: ["rbacAllow"] }, { kind: "directive", type: i1$2.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "popperOptions", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i1$2.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i1$2.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i1$2.NgbNavbar, selector: ".navbar" }, { kind: "pipe", type: i4$1.SinceAgoPipe, name: "sinceAgo" }] });
|
|
484
480
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NavbarComponent, decorators: [{
|
|
485
481
|
type: Component,
|
|
486
482
|
args: [{ selector: 'pw-navbar', providers: [NgbDropdownConfig], template: "<!-- Navbar (Header) Starts -->\n<nav class=\"navbar navbar-expand-lg navbar-light fixed-top bg-faded shadow-sm\">\n <div class=\"container-fluid\">\n <div class=\"navbar-header\">\n <button type=\"button\"\n class=\"navbar-toggle d-lg-none float-start\"\n data-bs-toggle=\"collapse\">\n <span class=\"sr-only\">Toggle navigation</span> <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </button>\n <form class=\"navbar-form navbar-right mt-1\"\n role=\"search\"\n (ngSubmit)=\"onSearch(search)\">\n <div class=\"input-group navbar-search-input\">\n <input type=\"text\"\n #search\n class=\"form-control\"\n placeholder=\"Search\" />\n <button class=\"input-group-text btn\"\n type=\"submit\">\n <i class=\"ft-search\" aria-hidden=\"true\"></i>\n </button>\n </div>\n <div id=\"tips-onboarding-step6\"></div>\n </form>\n </div>\n <div class=\"logo-img\">\n <ng-template [ngIf]=\"logo\">\n <img [src]=\"logo.full\"\n onerror=\"this.onerror=null;this.src='assets/img/logos/logo_text_big_dark.png';\"\n alt=\"img\" />\n </ng-template>\n </div>\n <div *rbacAllow=\"'SuperAdmin'\">\n <div class=\"mb-0\">\n <select class=\"form-select form-control-sm\"\n data-flag=\"true\"\n (change)=\"onLangChange($event.target.value)\">\n <option value=\"en\">English</option>\n <option value=\"es\">Spanish</option>\n <option value=\"de\">German</option>\n <option value=\"pt\">Portuguese</option>\n </select>\n </div>\n </div>\n <div class=\"navbar-container\">\n <div id=\"navbarSupportedContent\">\n <ul class=\"navbar-nav\">\n <li class=\"nav-item\"\n ngbDropdown\n #notiDrop=\"ngbDropdown\"\n placement=\"bottom-left\"\n autoClose=\"true\">\n <a class=\"nav-link position-relative\"\n id=\"dropdownBasic2\"\n ngbDropdownToggle\n (click)=\"checkNoti()\">\n <i\n class=\"ft-bell font-medium-3 blue-grey darken-4\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"notification badge rounded-pill bg-danger\"\n *ngIf=\"notificationCount > 0\">\n {{ notificationCount }}\n </span>\n <p class=\"d-none\">Notifications</p>\n </a>\n <div id=\"tips-onboarding-step5\"></div>\n <div ngbDropdownMenu\n aria-labelledby=\"dropdownBasic2\"\n class=\"notification-dropdown\">\n <div class=\"noti-list\"\n *ngIf=\"noNoti === false\">\n <li *ngFor=\"let noti of notifications; let idx = index\"\n #notiRef\n [id]=\"'noti' + idx\"\n [pTooltip]=\"noti?.content\"\n tooltipPosition=\"top\"\n class=\"dropdown-item noti-container border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <div class=\"d-flex justify-content-between w-100\">\n <div>\n <div class=\"btn btn-circle me-3\"\n [ngClass]=\"{\n 'btn-danger':\n noti.note_type === 'administrative',\n 'btn-secondary':\n noti.note_type === 'object_event',\n 'btn-primary':\n noti.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell':\n noti.note_type === 'administrative',\n 'fa-share-alt':\n noti.note_type === 'object_event',\n 'fa-bells':\n noti.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </div>\n <div class=\"d-inline-block text-truncate noti-content\">\n {{ noti?.content }}\n <span class=\"noti-text d-block\">\n <span class=\"fal fa-clock\"></span>\n {{ noti?.created_at | sinceAgo }}\n </span>\n </div>\n </div>\n <div>\n <a (click)=\"dismiss(noti.id, $event)\">\n <i class=\"far fa-times\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </li>\n </div>\n <div class=\"noti-list\"\n *ngIf=\"noNoti === true\">\n <a class=\"dropdown-item noti-container border-bottom border-bottom-blue-grey border-bottom-lighten-4\">\n <i\n class=\"ft-bell success float-start d-block font-large-1 mt-1 me-2\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"noti-wrapper\">\n <span class=\"noti-title line-height-1 d-block success\">You are all caught up.</span>\n <span class=\"noti-text\">You currently do not have any notifications.</span>\n </span>\n </a>\n </div>\n <a (click)=\"redirectToNotification()\"\n class=\"noti-footer text-center d-block border-top border-top-blue-grey border-top-lighten-4 text-bold-400 p-3\">Read All Notifications</a>\n </div>\n </li>\n <li class=\"nav-item\"\n ngbDropdown\n placement=\"bottom-left\"\n autoClose=\"true\">\n <button class=\"nav-link position-relative dropdown-toggle\"\n type=\"button\"\n id=\"dropdownBasic3\"\n data-bs-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n style=\"border: none\">\n <i\n class=\"ft-user font-medium-3 blue-grey darken-4\"\n aria-hidden=\"true\"\n ></i>\n <p class=\"d-none\">User Settings</p>\n </button>\n <div ngbDropdownMenu\n aria-labelledby=\"dropdownBasic3\">\n <button class=\"dropdown-item py-2\"\n [routerLink]=\"['/members', slug]\">\n <i class=\"ft-edit me-2\" aria-hidden=\"true\"></i>\n <span>My Profile</span>\n </button>\n <button class=\"dropdown-item py-2\"\n routerLink=\"/account/details\">\n <i class=\"ft-user me-2\" aria-hidden=\"true\"></i> <span>Account</span>\n </button>\n <button class=\"dropdown-item py-2\"\n routerLink=\"/settings/communication\">\n <i class=\"ft-settings me-2\" aria-hidden=\"true\"></i>\n <span>Settings</span>\n </button>\n <button *ngIf=\"isSupportMenu\"\n class=\"dropdown-item py-2\"\n routerLink=\"/support\">\n <i class=\"fa fa-question me-2\" aria-hidden=\"true\"></i>\n <span> Support</span>\n </button>\n <div class=\"dropdown-divider\"></div>\n <button class=\"dropdown-item logout\"\n (click)=\"logout()\">\n <i class=\"fa fa-sign-out-alt me-2\" aria-hidden=\"true\"></i>\n <span>Logout</span>\n </button>\n </div>\n </li>\n </ul>\n </div>\n </div>\n </div>\n</nav>\n<!-- Navbar (Header) Ends -->\n", styles: [".navbar,.fixed-top{position:fixed!important;background-color:#fff;padding:0 30px 5px;height:45px}.mb-0{margin-bottom:-4px!important}.navbar-nav>li{margin-right:20px}.logo-img img{margin-right:15px;max-height:30px}.logo-text{color:#000;display:block;font-size:1.4rem;font-weight:400;letter-spacing:2px;padding:5px 0;text-align:left;text-transform:uppercase}.dropdown-menu{left:auto;right:0;z-index:25000!important}.noti-container{cursor:pointer}.noti-content{vertical-align:top!important;width:280px}.noti-container,.icon-dismiss{padding:15px;position:relative;z-index:9}.noti-list{max-height:400px;overflow:auto}.nav-link{background-color:#fff}@media screen and (max-width: 991px){.navbar{padding:0 30px 5px}}@media screen and (max-width: 575px){.navbar{padding:0 15px 5px 10px}}@media screen and (max-width: 575px){.noti-content{width:250px}}@media only screen and (max-width: 480px){.logo-img{max-width:100px}.logo-img img{width:100%}}\n"] }]
|
|
@@ -536,7 +532,7 @@ class CurrentNotificationsComponent {
|
|
|
536
532
|
}
|
|
537
533
|
}
|
|
538
534
|
CurrentNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CurrentNotificationsComponent, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
539
|
-
CurrentNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: CurrentNotificationsComponent, selector: "pw-current-notifications", ngImport: i0, template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"notifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of notifications; trackBy: trackByNotification\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <h3 class=\"noti-title line-height-1p5 d-block text-bold-400 primary\">\n You are all caught up.\n </h3>\n <p class=\"text-secondary\">You currently do not have any notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["style", "styleClass", "strokeWidth", "fill", "animationDuration"] }, { kind: "pipe", type:
|
|
535
|
+
CurrentNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: CurrentNotificationsComponent, selector: "pw-current-notifications", ngImport: i0, template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"notifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of notifications; trackBy: trackByNotification\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <h3 class=\"noti-title line-height-1p5 d-block text-bold-400 primary\">\n You are all caught up.\n </h3>\n <p class=\"text-secondary\">You currently do not have any notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["style", "styleClass", "strokeWidth", "fill", "animationDuration"] }, { kind: "pipe", type: i4$1.SinceAgoPipe, name: "sinceAgo" }] });
|
|
540
536
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CurrentNotificationsComponent, decorators: [{
|
|
541
537
|
type: Component,
|
|
542
538
|
args: [{ selector: 'pw-current-notifications', template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"notifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of notifications; trackBy: trackByNotification\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <h3 class=\"noti-title line-height-1p5 d-block text-bold-400 primary\">\n You are all caught up.\n </h3>\n <p class=\"text-secondary\">You currently do not have any notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"] }]
|
|
@@ -601,7 +597,7 @@ class DismissedNotificationsComponent {
|
|
|
601
597
|
}
|
|
602
598
|
}
|
|
603
599
|
DismissedNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DismissedNotificationsComponent, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
604
|
-
DismissedNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: DismissedNotificationsComponent, selector: "pw-dismissed-notifications", ngImport: i0, template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"dismissedNotifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of dismissedNotifications; trackBy: trackByNotification\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n <button class=\"btn float-end\">\n <i\n class=\"fas fa-trash-restore-alt\"\n (click)=\"restoreNotification(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <p class=\"text-secondary\">You currently do not have any dismissed notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["style", "styleClass", "strokeWidth", "fill", "animationDuration"] }, { kind: "pipe", type:
|
|
600
|
+
DismissedNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: DismissedNotificationsComponent, selector: "pw-dismissed-notifications", ngImport: i0, template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"dismissedNotifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of dismissedNotifications; trackBy: trackByNotification\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n <button class=\"btn float-end\">\n <i\n class=\"fas fa-trash-restore-alt\"\n (click)=\"restoreNotification(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <p class=\"text-secondary\">You currently do not have any dismissed notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["style", "styleClass", "strokeWidth", "fill", "animationDuration"] }, { kind: "pipe", type: i4$1.SinceAgoPipe, name: "sinceAgo" }] });
|
|
605
601
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DismissedNotificationsComponent, decorators: [{
|
|
606
602
|
type: Component,
|
|
607
603
|
args: [{ selector: 'pw-dismissed-notifications', template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"dismissedNotifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of dismissedNotifications; trackBy: trackByNotification\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n <button class=\"btn float-end\">\n <i\n class=\"fas fa-trash-restore-alt\"\n (click)=\"restoreNotification(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <p class=\"text-secondary\">You currently do not have any dismissed notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"] }]
|
|
@@ -653,626 +649,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
|
|
|
653
649
|
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=\"row faqlist search-result\">\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=\"gradient-custom-branding\">\n {{ group | uppercase }}\n </h6>\n <div class=\"row px-2\">\n <div class=\"col-12 ms-2 faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"accordion\">\n <div class=\"accord-title p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a href=\"javascript:void(0)\"\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=\"\"\n onerror=\"this.onerror=null;this.src='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 </div>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"gradient-custom-branding\">\n {{ group | uppercase }}\n </h6>\n <div class=\"row px-2\">\n <div class=\"col-12 ms-2 faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"p-2\">\n <div class=\"accord-title1s\">\n <h5 class=\"accordion-title mt-2\">\n <a href=\"javascript:void(0)\"\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 <p class=\"faq-search-answer mb-0 pt-3 px-2\"\n [innerHtml]=\"faq.answer\"></p>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <pw-no-data message=\"No result found.\"\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_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}h6{background-color:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem}a{color:#333;display:block;margin:6px 0;position:relative;transition:all .5s}a:hover{color:var(--titles);text-decoration:underline}.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);border-radius:3px;margin:10px;transition:all .2s ease-in-out}.faq-item.faq-item{flex:auto;padding:0}.faq-item a{text-decoration:none}.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}\n"] }]
|
|
654
650
|
}], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute }, { type: i1.DashboardService }]; } });
|
|
655
651
|
|
|
656
|
-
// Sidebar menu Routes and data
|
|
657
|
-
const ROUTES = [
|
|
658
|
-
// Dashboard Home
|
|
659
|
-
{
|
|
660
|
-
permission: 'Pages.Dashboard',
|
|
661
|
-
path: '/home',
|
|
662
|
-
title: 'Home',
|
|
663
|
-
icon: 'ft-home',
|
|
664
|
-
class: '',
|
|
665
|
-
badge: '',
|
|
666
|
-
badgeClass: '',
|
|
667
|
-
isExternalLink: false,
|
|
668
|
-
submenu: [],
|
|
669
|
-
visible: true,
|
|
670
|
-
order: 1
|
|
671
|
-
},
|
|
672
|
-
// Menus for Admin page
|
|
673
|
-
{
|
|
674
|
-
permission: 'Pages.Admin',
|
|
675
|
-
path: null,
|
|
676
|
-
title: 'Admin',
|
|
677
|
-
icon: 'ft-user',
|
|
678
|
-
class: 'has-sub',
|
|
679
|
-
badge: '',
|
|
680
|
-
badgeClass: '',
|
|
681
|
-
isExternalLink: false,
|
|
682
|
-
visible: true,
|
|
683
|
-
order: 3,
|
|
684
|
-
submenu: [
|
|
685
|
-
{
|
|
686
|
-
permission: 'Pages.Admin',
|
|
687
|
-
path: '/admin/generic',
|
|
688
|
-
title: 'Generic',
|
|
689
|
-
icon: 'far fa-book',
|
|
690
|
-
class: '',
|
|
691
|
-
badge: '',
|
|
692
|
-
badgeClass: '',
|
|
693
|
-
isExternalLink: false,
|
|
694
|
-
submenu: [],
|
|
695
|
-
visible: true
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
permission: 'Pages.Admin.FAQ',
|
|
699
|
-
path: '/admin/faq/list',
|
|
700
|
-
title: 'FAQs',
|
|
701
|
-
icon: 'fa fa-question',
|
|
702
|
-
class: '',
|
|
703
|
-
badge: '',
|
|
704
|
-
badgeClass: '',
|
|
705
|
-
isExternalLink: false,
|
|
706
|
-
submenu: [],
|
|
707
|
-
visible: true
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
permission: 'Pages.Admin.ContactUs',
|
|
711
|
-
path: '/admin/contact-us/list',
|
|
712
|
-
title: 'Contact Us',
|
|
713
|
-
icon: 'fa fa-address-book',
|
|
714
|
-
class: '',
|
|
715
|
-
badge: '',
|
|
716
|
-
badgeClass: '',
|
|
717
|
-
isExternalLink: false,
|
|
718
|
-
submenu: [],
|
|
719
|
-
visible: true
|
|
720
|
-
},
|
|
721
|
-
{
|
|
722
|
-
permission: 'Pages.Admin.DomainConfig',
|
|
723
|
-
path: '/admin/domain-config/list',
|
|
724
|
-
title: 'Domain Config',
|
|
725
|
-
icon: 'fa fa-fw fa-cog',
|
|
726
|
-
class: '',
|
|
727
|
-
badge: '',
|
|
728
|
-
badgeClass: '',
|
|
729
|
-
isExternalLink: false,
|
|
730
|
-
submenu: [],
|
|
731
|
-
visible: true
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
permission: 'Pages.Admin.LoginNotification',
|
|
735
|
-
path: '/admin/login-notifications/list',
|
|
736
|
-
title: 'Notifications',
|
|
737
|
-
icon: 'fa fa-fw fa-bell',
|
|
738
|
-
class: '',
|
|
739
|
-
badge: '',
|
|
740
|
-
badgeClass: '',
|
|
741
|
-
isExternalLink: false,
|
|
742
|
-
submenu: [],
|
|
743
|
-
visible: true
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
permission: 'Pages.Admin.Users',
|
|
747
|
-
path: '/admin/users',
|
|
748
|
-
title: 'Users',
|
|
749
|
-
icon: 'far fa-user-cog',
|
|
750
|
-
class: '',
|
|
751
|
-
badge: '',
|
|
752
|
-
badgeClass: '',
|
|
753
|
-
isExternalLink: false,
|
|
754
|
-
submenu: [],
|
|
755
|
-
visible: true
|
|
756
|
-
},
|
|
757
|
-
{
|
|
758
|
-
permission: 'Pages.Admin.Subscription',
|
|
759
|
-
path: '/admin/subscriptions',
|
|
760
|
-
title: 'Subscriptions',
|
|
761
|
-
icon: 'ft-box',
|
|
762
|
-
class: '',
|
|
763
|
-
badge: '',
|
|
764
|
-
badgeClass: '',
|
|
765
|
-
isExternalLink: false,
|
|
766
|
-
submenu: [],
|
|
767
|
-
visible: true
|
|
768
|
-
},
|
|
769
|
-
{
|
|
770
|
-
permission: 'Pages.Admin.Product',
|
|
771
|
-
path: '/admin/products',
|
|
772
|
-
title: 'Products',
|
|
773
|
-
icon: 'far fa-parking',
|
|
774
|
-
class: '',
|
|
775
|
-
badge: '',
|
|
776
|
-
badgeClass: '',
|
|
777
|
-
isExternalLink: false,
|
|
778
|
-
submenu: [],
|
|
779
|
-
visible: true
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
permission: 'Pages.Admin.Newsletter',
|
|
783
|
-
path: '/admin/newsletter',
|
|
784
|
-
title: 'Newsletters',
|
|
785
|
-
icon: 'far fa-newspaper',
|
|
786
|
-
class: '',
|
|
787
|
-
badge: '',
|
|
788
|
-
badgeClass: '',
|
|
789
|
-
isExternalLink: false,
|
|
790
|
-
submenu: [],
|
|
791
|
-
visible: true
|
|
792
|
-
},
|
|
793
|
-
{
|
|
794
|
-
permission: 'Pages.Admin.Tags',
|
|
795
|
-
path: '/admin/tags',
|
|
796
|
-
title: 'Tags',
|
|
797
|
-
icon: 'far fa-tags',
|
|
798
|
-
class: '',
|
|
799
|
-
badge: '',
|
|
800
|
-
badgeClass: '',
|
|
801
|
-
isExternalLink: false,
|
|
802
|
-
submenu: [],
|
|
803
|
-
visible: true
|
|
804
|
-
},
|
|
805
|
-
{
|
|
806
|
-
permission: 'Pages.Admin.Tips',
|
|
807
|
-
path: '/admin/tips/list',
|
|
808
|
-
title: 'Tips',
|
|
809
|
-
icon: 'far fa-lightbulb',
|
|
810
|
-
class: '',
|
|
811
|
-
badge: '',
|
|
812
|
-
badgeClass: '',
|
|
813
|
-
isExternalLink: false,
|
|
814
|
-
submenu: [],
|
|
815
|
-
visible: true
|
|
816
|
-
},
|
|
817
|
-
{
|
|
818
|
-
permission: 'Pages.Admin.Roles',
|
|
819
|
-
path: '/admin/permissions',
|
|
820
|
-
title: 'Permissions',
|
|
821
|
-
icon: 'fas fa-key',
|
|
822
|
-
class: '',
|
|
823
|
-
badge: '',
|
|
824
|
-
badgeClass: '',
|
|
825
|
-
isExternalLink: false,
|
|
826
|
-
submenu: [],
|
|
827
|
-
visible: true
|
|
828
|
-
},
|
|
829
|
-
{
|
|
830
|
-
permission: 'Pages.Admin.Tos',
|
|
831
|
-
path: '/admin/tos/list',
|
|
832
|
-
title: 'Privacy & TOS',
|
|
833
|
-
icon: 'fas fa-sticky-note',
|
|
834
|
-
class: '',
|
|
835
|
-
badge: '',
|
|
836
|
-
badgeClass: '',
|
|
837
|
-
isExternalLink: false,
|
|
838
|
-
submenu: [],
|
|
839
|
-
visible: true
|
|
840
|
-
},
|
|
841
|
-
{
|
|
842
|
-
permission: 'Pages.Admin.Credential',
|
|
843
|
-
path: '/admin/credentials',
|
|
844
|
-
title: 'Credentials',
|
|
845
|
-
icon: 'fas fa-file-signature',
|
|
846
|
-
class: '',
|
|
847
|
-
badge: '',
|
|
848
|
-
badgeClass: '',
|
|
849
|
-
isExternalLink: false,
|
|
850
|
-
submenu: [],
|
|
851
|
-
visible: true
|
|
852
|
-
},
|
|
853
|
-
{
|
|
854
|
-
permission: 'Pages.Admin.Tracking',
|
|
855
|
-
path: '/admin/tracking',
|
|
856
|
-
title: 'Tracking',
|
|
857
|
-
icon: 'fa fa-map-marker',
|
|
858
|
-
class: '',
|
|
859
|
-
badge: '',
|
|
860
|
-
badgeClass: '',
|
|
861
|
-
isExternalLink: false,
|
|
862
|
-
submenu: [],
|
|
863
|
-
visible: true
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
permission: 'Pages.Admin.Global-Config',
|
|
867
|
-
path: '/admin/global-config',
|
|
868
|
-
title: 'Global Configs',
|
|
869
|
-
icon: 'fa fa-fw fa-cog',
|
|
870
|
-
class: '',
|
|
871
|
-
badge: '',
|
|
872
|
-
badgeClass: '',
|
|
873
|
-
isExternalLink: false,
|
|
874
|
-
submenu: [],
|
|
875
|
-
visible: true
|
|
876
|
-
}
|
|
877
|
-
]
|
|
878
|
-
}
|
|
879
|
-
];
|
|
880
|
-
// THE FOLLOWING GOES INTO THE BOTTOM OF THE SIDEBAR
|
|
881
|
-
const FAQ_Menu = {
|
|
882
|
-
permission: 'Pages.Product.{permission_key}.{feature_key}.FAQ',
|
|
883
|
-
path: '/faq',
|
|
884
|
-
title: 'FAQ',
|
|
885
|
-
icon: 'ft-info',
|
|
886
|
-
class: '',
|
|
887
|
-
badge: '',
|
|
888
|
-
badgeClass: '',
|
|
889
|
-
isExternalLink: false,
|
|
890
|
-
submenu: [],
|
|
891
|
-
visible: true,
|
|
892
|
-
order: 999
|
|
893
|
-
};
|
|
894
|
-
const ENTERPRISE_MENU = {
|
|
895
|
-
permission: 'Pages.Product.{permission_key}.{feature_key}.Enterprise',
|
|
896
|
-
path: '/enterprise',
|
|
897
|
-
title: 'Enterprise',
|
|
898
|
-
icon: 'ft-package',
|
|
899
|
-
class: 'has-sub',
|
|
900
|
-
badge: '',
|
|
901
|
-
badgeClass: 'badge rounded-pill bg-danger float-end mt-1',
|
|
902
|
-
isExternalLink: false,
|
|
903
|
-
order: 4,
|
|
904
|
-
submenu: [
|
|
905
|
-
{
|
|
906
|
-
permission: '',
|
|
907
|
-
path: ':slug/enterprise/members',
|
|
908
|
-
title: 'Members',
|
|
909
|
-
icon: 'far fa-users',
|
|
910
|
-
class: '',
|
|
911
|
-
badge: '',
|
|
912
|
-
badgeClass: '',
|
|
913
|
-
isExternalLink: false,
|
|
914
|
-
submenu: [],
|
|
915
|
-
visible: true
|
|
916
|
-
},
|
|
917
|
-
{
|
|
918
|
-
permission: 'Pages.Beta',
|
|
919
|
-
path: ':slug/enterprise/groups',
|
|
920
|
-
title: 'Teams',
|
|
921
|
-
icon: 'far fa-users-class',
|
|
922
|
-
class: '',
|
|
923
|
-
badge: '',
|
|
924
|
-
badgeClass: '',
|
|
925
|
-
isExternalLink: false,
|
|
926
|
-
submenu: [],
|
|
927
|
-
visible: true
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
permission: 'Pages.Beta',
|
|
931
|
-
path: ':slug/enterprise/communications',
|
|
932
|
-
title: 'Communications',
|
|
933
|
-
icon: 'fas fa-comments',
|
|
934
|
-
class: '',
|
|
935
|
-
badge: '',
|
|
936
|
-
badgeClass: '',
|
|
937
|
-
isExternalLink: false,
|
|
938
|
-
submenu: [],
|
|
939
|
-
visible: true
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
permission: 'Pages.Beta',
|
|
943
|
-
path: ':slug/enterprise/wiki',
|
|
944
|
-
title: 'Documentation',
|
|
945
|
-
icon: 'fab fa-wikipedia-w',
|
|
946
|
-
class: '',
|
|
947
|
-
badge: '',
|
|
948
|
-
badgeClass: '',
|
|
949
|
-
isExternalLink: false,
|
|
950
|
-
submenu: [],
|
|
951
|
-
visible: true
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
permission: 'Pages.Beta',
|
|
955
|
-
path: ':slug/enterprise/insights',
|
|
956
|
-
title: 'Insights',
|
|
957
|
-
icon: 'far fa-tag',
|
|
958
|
-
class: '',
|
|
959
|
-
badge: '',
|
|
960
|
-
badgeClass: '',
|
|
961
|
-
isExternalLink: false,
|
|
962
|
-
submenu: [],
|
|
963
|
-
visible: true
|
|
964
|
-
}
|
|
965
|
-
],
|
|
966
|
-
visible: true
|
|
967
|
-
};
|
|
968
|
-
const CHAT_MENU = {
|
|
969
|
-
permission: 'Pages.Product.{permission_key}.{feature_key}.Chat',
|
|
970
|
-
path: '/message',
|
|
971
|
-
title: 'Chat',
|
|
972
|
-
icon: 'ft-message-square',
|
|
973
|
-
class: '',
|
|
974
|
-
badge: '',
|
|
975
|
-
badgeClass: 'badge rounded-pill bg-danger float-end mt-1',
|
|
976
|
-
isExternalLink: false,
|
|
977
|
-
submenu: [],
|
|
978
|
-
order: 2,
|
|
979
|
-
visible: true
|
|
980
|
-
};
|
|
981
|
-
const BLOG_MENU = {
|
|
982
|
-
permission: 'Pages.Product.{permission_key}.{feature_key}.Blog',
|
|
983
|
-
path: '/posts/list',
|
|
984
|
-
title: 'Blog',
|
|
985
|
-
icon: 'far fa-blog',
|
|
986
|
-
class: '',
|
|
987
|
-
badge: '',
|
|
988
|
-
badgeClass: '',
|
|
989
|
-
isExternalLink: false,
|
|
990
|
-
submenu: [],
|
|
991
|
-
visible: true
|
|
992
|
-
};
|
|
993
|
-
|
|
994
|
-
class SidebarComponent extends AppBaseComponent {
|
|
995
|
-
constructor(mailboxService, cdr, googleAnalyticService, webSocket, document, injector) {
|
|
996
|
-
super(injector);
|
|
997
|
-
this.mailboxService = mailboxService;
|
|
998
|
-
this.cdr = cdr;
|
|
999
|
-
this.googleAnalyticService = googleAnalyticService;
|
|
1000
|
-
this.webSocket = webSocket;
|
|
1001
|
-
this.document = document;
|
|
1002
|
-
this.sidebarRenderEvent = new EventEmitter();
|
|
1003
|
-
this.subscription = new Subscription();
|
|
1004
|
-
this.productMenus = []; // List of products to be populated contains 'Pages.Product'
|
|
1005
|
-
this.menus = [];
|
|
1006
|
-
this.webSocket.webSocket$.subscribe(response => {
|
|
1007
|
-
if (response.event === SOCKET_TYPE.MSG) {
|
|
1008
|
-
this.mailboxService.incrementUnreadCount(1);
|
|
1009
|
-
}
|
|
1010
|
-
});
|
|
1011
|
-
}
|
|
1012
|
-
get selectedSubscription() {
|
|
1013
|
-
return PermissionService.selectedSubscription;
|
|
1014
|
-
}
|
|
1015
|
-
get selectedProduct() {
|
|
1016
|
-
return PermissionService.selectedProduct;
|
|
1017
|
-
}
|
|
1018
|
-
ngOnInit() {
|
|
1019
|
-
const a = 1;
|
|
1020
|
-
// Get the company name to bind the side bar nav
|
|
1021
|
-
this.companyName = this.appConfig.company.name;
|
|
1022
|
-
// Load the app-sidebar.js which contain DOM logic/script
|
|
1023
|
-
$.getScript('/assets/js/app-sidebar.js');
|
|
1024
|
-
// Appends all the products menus to the sidebar
|
|
1025
|
-
this.productSidebarMenus.forEach(product => {
|
|
1026
|
-
ROUTES.push(product);
|
|
1027
|
-
});
|
|
1028
|
-
this.userStore().subscribe(user => {
|
|
1029
|
-
this.user = user;
|
|
1030
|
-
this.googleAnalyticService.setUserContext(this.user);
|
|
1031
|
-
// Check for side effect
|
|
1032
|
-
if (this.user) {
|
|
1033
|
-
this.permissionService.user = user;
|
|
1034
|
-
this.populateSidebarMenus();
|
|
1035
|
-
}
|
|
1036
|
-
});
|
|
1037
|
-
timer(1000).subscribe(() => {
|
|
1038
|
-
if (localStorage.getItem('sidebarState') === 'true') {
|
|
1039
|
-
this.document.getElementById('sidebarToggle').click();
|
|
1040
|
-
}
|
|
1041
|
-
});
|
|
1042
|
-
}
|
|
1043
|
-
/** *
|
|
1044
|
-
* Appends all the products menus and assign the first default product
|
|
1045
|
-
*/
|
|
1046
|
-
populateSidebarMenus() {
|
|
1047
|
-
this.menus = [];
|
|
1048
|
-
const subs = this.constructProductsMenus();
|
|
1049
|
-
// Check if there is subscription slug in the url
|
|
1050
|
-
const subscriptionSlug = this.route?.firstChild?.firstChild?.firstChild?.snapshot?.params['slug'];
|
|
1051
|
-
let currentSubscription;
|
|
1052
|
-
if (subscriptionSlug) {
|
|
1053
|
-
currentSubscription = subs.find(x => x.slug === subscriptionSlug);
|
|
1054
|
-
PermissionService.selectedProduct = this.productMenus.find(x => x?.subscriptionId === currentSubscription?.id);
|
|
1055
|
-
}
|
|
1056
|
-
else {
|
|
1057
|
-
// Sets the first product as default
|
|
1058
|
-
PermissionService.selectedProduct = this.productMenus[0] || null;
|
|
1059
|
-
currentSubscription = this.user.subscriptions.find(x => x.id === PermissionService.selectedProduct?.subscriptionId);
|
|
1060
|
-
}
|
|
1061
|
-
this.menus = uniqBy(this.menus, 'title');
|
|
1062
|
-
if (currentSubscription) {
|
|
1063
|
-
this.permissionService.setCurrentProduct(PermissionService.selectedProduct);
|
|
1064
|
-
this.permissionService.setCurrentSubscription(currentSubscription);
|
|
1065
|
-
// Appends the product menus to the sidebar
|
|
1066
|
-
this.addProductMenusOnPermission(PermissionService.selectedProduct);
|
|
1067
|
-
this.appendSlugForNonProductMenus();
|
|
1068
|
-
}
|
|
1069
|
-
this.setLogo();
|
|
1070
|
-
if (!currentSubscription) {
|
|
1071
|
-
this.router.navigate(['/account/subscriptions']);
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
constructProductsMenus() {
|
|
1075
|
-
// filter non product permissions from the auth.granted
|
|
1076
|
-
const grantedNonProductPermissions = Object.keys(this.user.auth.granted).filter(x => !x.includes('Pages.Product'));
|
|
1077
|
-
grantedNonProductPermissions.forEach(permission_name => {
|
|
1078
|
-
const menu = ROUTES.find(x => x.permission.includes(permission_name) &&
|
|
1079
|
-
this.permissionService.isGranted(permission_name));
|
|
1080
|
-
if (menu) {
|
|
1081
|
-
this.menus.push(menu);
|
|
1082
|
-
}
|
|
1083
|
-
}, this);
|
|
1084
|
-
// Show only the first product of the same subscription
|
|
1085
|
-
const subscriptions = cloneDeep(this.user.subscriptions).map(subs => {
|
|
1086
|
-
subs.products = subs.products.filter((_, index) => index === 0);
|
|
1087
|
-
return subs;
|
|
1088
|
-
});
|
|
1089
|
-
subscriptions.forEach(subscription => {
|
|
1090
|
-
subscription.products.forEach(product => {
|
|
1091
|
-
product['organisation'] = subscription.organisation;
|
|
1092
|
-
product['subscriptionId'] = subscription.id;
|
|
1093
|
-
product['subscription_slug'] = subscription.slug;
|
|
1094
|
-
});
|
|
1095
|
-
});
|
|
1096
|
-
subscriptions
|
|
1097
|
-
.flatMap(x => x.products)
|
|
1098
|
-
.forEach(product => {
|
|
1099
|
-
const productMenu = ROUTES.find(x => x?.permissionKeys?.includes(product.permission_key));
|
|
1100
|
-
if (product.subscriptionId && productMenu) {
|
|
1101
|
-
const item = cloneDeep(productMenu);
|
|
1102
|
-
item['id'] = product.id;
|
|
1103
|
-
item['subscriptionId'] = product.subscriptionId;
|
|
1104
|
-
item['privacyServiceId'] = product.product_privacy_service_id;
|
|
1105
|
-
item['subscription_slug'] = product.subscription_slug;
|
|
1106
|
-
item['permission_key'] = product.permission_key;
|
|
1107
|
-
item['feature_key'] = product.feature_key;
|
|
1108
|
-
item['nickname'] = product.nickname;
|
|
1109
|
-
item['organisation'] = product.organisation;
|
|
1110
|
-
item['gitlab_service_desk_email'] = product.gitlab_service_desk_email;
|
|
1111
|
-
item.menus.forEach(menu => {
|
|
1112
|
-
menu.path = `/${product.subscription_slug}${menu.path}`;
|
|
1113
|
-
});
|
|
1114
|
-
this.productMenus.push(item);
|
|
1115
|
-
}
|
|
1116
|
-
});
|
|
1117
|
-
return subscriptions;
|
|
1118
|
-
}
|
|
1119
|
-
/**
|
|
1120
|
-
* Performing search functionality & closing the sidebar
|
|
1121
|
-
* */
|
|
1122
|
-
onSearch(search) {
|
|
1123
|
-
if (search.value) {
|
|
1124
|
-
this.router.navigate(['search'], { queryParams: { keyword: search.value } });
|
|
1125
|
-
$('.navbar-toggle').on('click', () => {
|
|
1126
|
-
console.log('clicked!');
|
|
1127
|
-
});
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
navigateToProductDashboard(product) {
|
|
1131
|
-
if (PermissionService.selectedProduct?.subscriptionId &&
|
|
1132
|
-
product?.subscriptionId &&
|
|
1133
|
-
PermissionService.selectedProduct?.subscriptionId !== product?.subscriptionId) {
|
|
1134
|
-
// Remove the previous product menus
|
|
1135
|
-
const tabsToRemove = PermissionService.selectedProduct.menus;
|
|
1136
|
-
tabsToRemove.forEach(item => {
|
|
1137
|
-
this.menus = this.menus.filter(x => x.path !== item.path);
|
|
1138
|
-
});
|
|
1139
|
-
}
|
|
1140
|
-
// add the current product menus
|
|
1141
|
-
if ((!PermissionService.selectedProduct ||
|
|
1142
|
-
!isEqual(PermissionService.selectedProduct.subscriptionId, product.subscriptionId)) &&
|
|
1143
|
-
product) {
|
|
1144
|
-
this.addProductMenusOnPermission(product);
|
|
1145
|
-
}
|
|
1146
|
-
PermissionService.selectedProduct = product;
|
|
1147
|
-
this.permissionService.setCurrentProduct(product);
|
|
1148
|
-
const subscription = this.user.subscriptions.find(x => x.id === product.subscriptionId);
|
|
1149
|
-
this.permissionService.setCurrentSubscription(subscription);
|
|
1150
|
-
this.appendSlugForNonProductMenus();
|
|
1151
|
-
this.router.navigateByUrl('/splash', { skipLocationChange: true }).then(() => {
|
|
1152
|
-
this.router.navigate([`${subscription.slug}${product.path}`]);
|
|
1153
|
-
this.setLogo();
|
|
1154
|
-
});
|
|
1155
|
-
}
|
|
1156
|
-
addProductMenusOnPermission(product) {
|
|
1157
|
-
if (product?.menus?.length) {
|
|
1158
|
-
// Replaces the product key and permission key for chat and enterprise
|
|
1159
|
-
product.menus
|
|
1160
|
-
.filter(menu => menu.permission.includes('{feature_key}'))
|
|
1161
|
-
.forEach(menu => {
|
|
1162
|
-
menu.permission = menu.permission
|
|
1163
|
-
.replace('{feature_key}', product?.feature_key)
|
|
1164
|
-
.replace('{permission_key}', product.permission_key);
|
|
1165
|
-
}, this);
|
|
1166
|
-
// appends the product menus having permission to the sidebar
|
|
1167
|
-
product?.menus.forEach((product_menu) => {
|
|
1168
|
-
if (product_menu.visible &&
|
|
1169
|
-
this.permissionService.evaluatePermissions(product_menu.permission, product.feature_key, product.permission_key)) {
|
|
1170
|
-
const subMenu = [];
|
|
1171
|
-
// binds the sub menus to the main menu for both product and non-product
|
|
1172
|
-
product_menu?.submenu?.forEach((sub_menu) => {
|
|
1173
|
-
if (this.permissionService.evaluatePermissions(sub_menu?.permission, product.feature_key, product.permission_key) ||
|
|
1174
|
-
sub_menu?.permission === '') {
|
|
1175
|
-
subMenu.push(sub_menu);
|
|
1176
|
-
}
|
|
1177
|
-
});
|
|
1178
|
-
product_menu.submenu = subMenu;
|
|
1179
|
-
this.menus.push(product_menu);
|
|
1180
|
-
}
|
|
1181
|
-
});
|
|
1182
|
-
this.appendAdminMenu(product);
|
|
1183
|
-
this.getUnreadMessages();
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
appendAdminMenu(product) {
|
|
1187
|
-
// Add Admin menu if user is super_admin
|
|
1188
|
-
// Admin menu should be populated if user has SubscriptionSuperAdmin or
|
|
1189
|
-
// SubscriptionAdmin or SubscriptionOwner of a master_product
|
|
1190
|
-
if (this.permissionService.isSuperAdmin()) {
|
|
1191
|
-
this.menus.push(ROUTES.find(x => x.permission.includes('Pages.Admin')));
|
|
1192
|
-
}
|
|
1193
|
-
else {
|
|
1194
|
-
// appends Admin Menus in case of SubscriptionSuperAdmin
|
|
1195
|
-
// eslint-disable-next-line no-lonely-if
|
|
1196
|
-
if (this.user.auth.granted[`Pages.Product.${product.permission_key}.${product.feature_key}.SubscriptionSuperAdmin`] ||
|
|
1197
|
-
this.user.auth.granted[`Pages.Product.${product.permission_key}.${product.feature_key}.SubscriptionSuperOwner`]) {
|
|
1198
|
-
// Incase of SubscriptionAdmin, populate few admin submenus as whitelisted in ADMIN_SUB_MENU_WHITELIST
|
|
1199
|
-
const adminRoute = cloneDeep(ROUTES.find(x => x.permission === 'Pages.Admin'));
|
|
1200
|
-
if (this.menus.findIndex(x => x.permission === 'Pages.Admin') === -1) {
|
|
1201
|
-
adminRoute.submenu = adminRoute.submenu.filter(x => ADMIN_SUB_MENU_WHITELIST.includes(x.permission));
|
|
1202
|
-
this.menus.push(adminRoute);
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
else {
|
|
1206
|
-
this.menus = this.menus.filter(x => x.permission !== 'Pages.Admin');
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
this.menus = uniqBy(this.menus, 'title');
|
|
1210
|
-
}
|
|
1211
|
-
setLogo() {
|
|
1212
|
-
if (PermissionService.selectedSubscription) {
|
|
1213
|
-
this.logo = HelperService.getLogoUrl(PermissionService.selectedSubscription, this.appConfig?.company?.logos);
|
|
1214
|
-
}
|
|
1215
|
-
else {
|
|
1216
|
-
this.logo = HelperService.getLogoFromSubscription(this.user?.subscriptions[0], this.appConfig?.company?.logos);
|
|
1217
|
-
}
|
|
1218
|
-
this.sidebarRenderEvent.emit(this.logo);
|
|
1219
|
-
}
|
|
1220
|
-
/**
|
|
1221
|
-
* Populates the Enterprise option to the side bar menu
|
|
1222
|
-
* Enterprise is not populated from the auth.granted.
|
|
1223
|
-
* If user subscription has more than 4 units
|
|
1224
|
-
*/
|
|
1225
|
-
appendSlugForNonProductMenus() {
|
|
1226
|
-
// remove the enterprise menu first and then append if max_units > 1d
|
|
1227
|
-
this.menus.forEach(route => {
|
|
1228
|
-
if (route?.path?.includes(':slug') && PermissionService.selectedSubscription?.slug) {
|
|
1229
|
-
route.path = route.path.replace(':slug', PermissionService.selectedSubscription.slug);
|
|
1230
|
-
}
|
|
1231
|
-
if (route?.submenu?.length) {
|
|
1232
|
-
route.submenu.forEach(subRoute => {
|
|
1233
|
-
if (subRoute?.path?.includes(':slug') &&
|
|
1234
|
-
PermissionService.selectedSubscription?.slug) {
|
|
1235
|
-
subRoute.path = subRoute.path.replace(':slug', PermissionService.selectedSubscription.slug);
|
|
1236
|
-
}
|
|
1237
|
-
});
|
|
1238
|
-
}
|
|
1239
|
-
});
|
|
1240
|
-
}
|
|
1241
|
-
/**
|
|
1242
|
-
* Gets the unread message count to bind the the message badge
|
|
1243
|
-
*/
|
|
1244
|
-
getUnreadMessages() {
|
|
1245
|
-
const chatMenu = this.menus.find(x => x.title.includes('Chat'));
|
|
1246
|
-
if (chatMenu) {
|
|
1247
|
-
this.mailboxService.totalUnreadCount$.subscribe(data => {
|
|
1248
|
-
chatMenu.badge = data > 0 ? String(data) : '';
|
|
1249
|
-
this.cdr.detectChanges();
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
}
|
|
1253
|
-
// set state in localstorage
|
|
1254
|
-
onSidebarToggle(event) {
|
|
1255
|
-
localStorage.setItem('sidebarState', `${event.target.dataset.bsToggle !== 'collapsed'}`);
|
|
1256
|
-
}
|
|
1257
|
-
ngOnDestroy() {
|
|
1258
|
-
super.ngOnDestroy();
|
|
1259
|
-
this.subscription.unsubscribe();
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
SidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: SidebarComponent, deps: [{ token: i1.MailBoxService }, { token: i0.ChangeDetectorRef }, { token: i1.GoogleAnalyticsService }, { token: i1.WebsocketService }, { token: DOCUMENT }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1263
|
-
SidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: SidebarComponent, selector: "pw-sidebar", inputs: { productSidebarMenus: "productSidebarMenus" }, outputs: { sidebarRenderEvent: "sidebarRenderEvent" }, usesInheritance: true, ngImport: i0, template: "<!-- Sidebar Header starts -->\n<div class=\"sidebar-header\">\n <div class=\"logo clearfix\">\n <span class=\"logo-text float-start\">\n <div class=\"dropdown\">\n <button [ngClass]=\"{ 'dropdown-toggle': productMenus.length > 1 }\"\n type=\"button\"\n id=\"dropdownMenuButton\"\n [attr.data-bs-toggle]=\"productMenus.length > 1 ? 'dropdown' : ''\"\n style=\"background: none; border: none; padding: 0\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\">\n <div class=\"logo-img logo-text float-start\">\n <ng-template [ngIf]=\"logo\">\n <img [src]=\"logo.square\"\n alt=\"img\"\n onerror=\"this.onerror=null;this.src='assets/img/logos/logo-white.png';\" />\n </ng-template>\n <span class=\"text align-middle fw-bold text-truncate d-inline-block org-text\"\n [title]=\"selectedSubscription?.organisation\"\n [id]=\"selectedSubscription?.id\">\n {{ selectedProduct?.title || companyName }}\n </span>\n </div>\n </button>\n <div class=\"sidebar-title\">\n {{ selectedSubscription?.organisation || companyName }}\n </div>\n <!-- Product Dropdown -->\n <div class=\"dropdown-menu product-dropdown\"\n aria-labelledby=\"dropdownMenuButton\"\n style=\"text-transform: none\"\n *ngIf=\"productMenus.length > 1\">\n <button class=\"dropdown-item text-truncate\"\n *ngFor=\"let product of productMenus | uniqBy: 'subscriptionId'\"\n [attr.subscription_id]=\"product.subscriptionId\"\n (click)=\"navigateToProductDashboard(product)\">\n {{ product.nickname }}\n <span>\n by {{ product.organisation || product.master_sub_name || companyName }}\n </span>\n </button>\n </div>\n </div>\n </span>\n <a class=\"nav-toggle d-none d-sm-none d-md-none d-lg-block\"\n id=\"sidebarToggle\"\n (click)=\"onSidebarToggle($event)\"\n href=\"javascript:;\">\n <i class=\"ft-toggle-right toggle-icon\" data-bs-toggle=\"expanded\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"nav-close d-block d-md-block d-lg-none d-xl-none\"\n id=\"sidebarClose\"\n href=\"javascript:;\">\n <i class=\"ft-x\" aria-hidden=\"true\"></i>\n </a>\n </div>\n</div>\n<!-- Sidebar Header Ends -->\n<!-- Sidebar Content starts -->\n<div class=\"sidebar-content\">\n <div class=\"nav-container\">\n <ul class=\"navigation side-menu\"\n *ngIf=\"menus.length\">\n <li class=\"sidebar-search mx-3 mb-3\"\n (click)=\"$event.stopPropagation()\">\n <form role=\"search\"\n (ngSubmit)=\"onSearch(search)\">\n <div class=\"position-relative has-icon-right\">\n <i class=\"fa fa-search position-absolute\" aria-hidden=\"true\"></i>\n <input type=\"text\"\n class=\"form-control ps-4\"\n placeholder=\"Search\"\n #search />\n </div>\n </form>\n </li>\n <!-- First level menu -->\n <li *ngFor=\"let menuItem of menus | sort\"\n [ngClass]=\"[menuItem.class]\"\n [routerLinkActive]=\"menuItem.submenu.length !== 0 ? '' : 'active'\">\n <ng-container>\n <a [routerLink]=\"menuItem.class === '' ? [menuItem.path] : null\"\n *ngIf=\"!menuItem.isExternalLink; else externalLinkBlock\">\n <i [ngClass]=\"[menuItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">\n <span>{{ menuItem?.title | textTruncate: 14 }}</span>\n </span>\n <span *ngIf=\"menuItem.badge !== ''\"\n [ngClass]=\"[menuItem.badgeClass]\">{{\n menuItem.badge\n }}</span>\n </a>\n <ng-template #externalLinkBlock>\n <a [href]=\"[menuItem.path]\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n <i [ngClass]=\"[menuItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuItem.title }}</span>\n <span *ngIf=\"menuItem.badge !== ''\"\n [ngClass]=\"[menuItem.badgeClass]\">{{\n menuItem.badge\n }}</span>\n </a>\n </ng-template>\n </ng-container>\n <!-- Second level menu -->\n <ul class=\"menu-content\"\n *ngIf=\"menuItem.submenu.length > 0\">\n <li *ngFor=\"let menuSubItem of menuItem.submenu\"\n [routerLinkActive]=\"menuSubItem.submenu.length > 0 ? '' : 'active'\"\n [ngClass]=\"[menuSubItem.class]\">\n <ng-container>\n <a [routerLink]=\"\n menuSubItem.submenu.length > 0 ? null : [menuSubItem.path]\n \"\n class=\"sub-menu\"\n *ngIf=\"!menuSubItem.isExternalLink; else externalSubLinkBlock\">\n <i [ngClass]=\"[menuSubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubItem.title }}</span>\n <span *ngIf=\"menuSubItem.badge !== ''\"\n [ngClass]=\"[menuSubItem.badgeClass]\">\n {{ menuSubItem.badge }}\n </span>\n </a>\n <ng-template #externalSubLinkBlock>\n <a [href]=\"[menuSubItem.path]\">\n <i [ngClass]=\"[menuSubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubItem.title }}</span>\n <span *ngIf=\"menuSubItem.badge !== ''\"\n [ngClass]=\"[menuSubItem.badgeClass]\">\n {{ menuSubItem.badge }}\n </span>\n </a>\n </ng-template>\n </ng-container>\n <!-- Third level menu -->\n <ul class=\"menu-content\"\n *ngIf=\"menuSubItem.submenu.length > 0\">\n <li *ngFor=\"let menuSubsubItem of menuSubItem.submenu\"\n routerLinkActive=\"active\"\n [ngClass]=\"[menuSubsubItem.class]\">\n <a [routerLink]=\"[menuSubsubItem.path]\"\n *ngIf=\"\n !menuSubsubItem.isExternalLink;\n else externalSubSubLinkBlock\n \">\n <i [ngClass]=\"[menuSubsubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubsubItem.title }}</span>\n <span *ngIf=\"menuSubsubItem.badge !== ''\"\n [ngClass]=\"[menuSubsubItem.badgeClass]\">\n {{ menuSubsubItem.badge }}</span>\n </a>\n <ng-template #externalSubSubLinkBlock>\n <a [href]=\"[menuSubsubItem.path]\">\n <i [ngClass]=\"[menuSubsubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubsubItem.title }}</span>\n <span *ngIf=\"menuSubsubItem.badge !== ''\"\n [ngClass]=\"[menuSubsubItem.badgeClass]\">\n {{ menuSubsubItem.badge }}</span>\n </a>\n </ng-template>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n </ul>\n </div>\n</div>\n<!-- Sidebar Content Ends -->\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i8.LazyImgDirective, selector: "img" }, { kind: "pipe", type: i6.TextTruncatePipe, name: "textTruncate" }, { kind: "pipe", type: i6.SortArrayPipe, name: "sort" }, { kind: "pipe", type: i6.UniqByListPipe, name: "uniqBy" }] });
|
|
1264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: SidebarComponent, decorators: [{
|
|
1265
|
-
type: Component,
|
|
1266
|
-
args: [{ selector: 'pw-sidebar', template: "<!-- Sidebar Header starts -->\n<div class=\"sidebar-header\">\n <div class=\"logo clearfix\">\n <span class=\"logo-text float-start\">\n <div class=\"dropdown\">\n <button [ngClass]=\"{ 'dropdown-toggle': productMenus.length > 1 }\"\n type=\"button\"\n id=\"dropdownMenuButton\"\n [attr.data-bs-toggle]=\"productMenus.length > 1 ? 'dropdown' : ''\"\n style=\"background: none; border: none; padding: 0\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\">\n <div class=\"logo-img logo-text float-start\">\n <ng-template [ngIf]=\"logo\">\n <img [src]=\"logo.square\"\n alt=\"img\"\n onerror=\"this.onerror=null;this.src='assets/img/logos/logo-white.png';\" />\n </ng-template>\n <span class=\"text align-middle fw-bold text-truncate d-inline-block org-text\"\n [title]=\"selectedSubscription?.organisation\"\n [id]=\"selectedSubscription?.id\">\n {{ selectedProduct?.title || companyName }}\n </span>\n </div>\n </button>\n <div class=\"sidebar-title\">\n {{ selectedSubscription?.organisation || companyName }}\n </div>\n <!-- Product Dropdown -->\n <div class=\"dropdown-menu product-dropdown\"\n aria-labelledby=\"dropdownMenuButton\"\n style=\"text-transform: none\"\n *ngIf=\"productMenus.length > 1\">\n <button class=\"dropdown-item text-truncate\"\n *ngFor=\"let product of productMenus | uniqBy: 'subscriptionId'\"\n [attr.subscription_id]=\"product.subscriptionId\"\n (click)=\"navigateToProductDashboard(product)\">\n {{ product.nickname }}\n <span>\n by {{ product.organisation || product.master_sub_name || companyName }}\n </span>\n </button>\n </div>\n </div>\n </span>\n <a class=\"nav-toggle d-none d-sm-none d-md-none d-lg-block\"\n id=\"sidebarToggle\"\n (click)=\"onSidebarToggle($event)\"\n href=\"javascript:;\">\n <i class=\"ft-toggle-right toggle-icon\" data-bs-toggle=\"expanded\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"nav-close d-block d-md-block d-lg-none d-xl-none\"\n id=\"sidebarClose\"\n href=\"javascript:;\">\n <i class=\"ft-x\" aria-hidden=\"true\"></i>\n </a>\n </div>\n</div>\n<!-- Sidebar Header Ends -->\n<!-- Sidebar Content starts -->\n<div class=\"sidebar-content\">\n <div class=\"nav-container\">\n <ul class=\"navigation side-menu\"\n *ngIf=\"menus.length\">\n <li class=\"sidebar-search mx-3 mb-3\"\n (click)=\"$event.stopPropagation()\">\n <form role=\"search\"\n (ngSubmit)=\"onSearch(search)\">\n <div class=\"position-relative has-icon-right\">\n <i class=\"fa fa-search position-absolute\" aria-hidden=\"true\"></i>\n <input type=\"text\"\n class=\"form-control ps-4\"\n placeholder=\"Search\"\n #search />\n </div>\n </form>\n </li>\n <!-- First level menu -->\n <li *ngFor=\"let menuItem of menus | sort\"\n [ngClass]=\"[menuItem.class]\"\n [routerLinkActive]=\"menuItem.submenu.length !== 0 ? '' : 'active'\">\n <ng-container>\n <a [routerLink]=\"menuItem.class === '' ? [menuItem.path] : null\"\n *ngIf=\"!menuItem.isExternalLink; else externalLinkBlock\">\n <i [ngClass]=\"[menuItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">\n <span>{{ menuItem?.title | textTruncate: 14 }}</span>\n </span>\n <span *ngIf=\"menuItem.badge !== ''\"\n [ngClass]=\"[menuItem.badgeClass]\">{{\n menuItem.badge\n }}</span>\n </a>\n <ng-template #externalLinkBlock>\n <a [href]=\"[menuItem.path]\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n <i [ngClass]=\"[menuItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuItem.title }}</span>\n <span *ngIf=\"menuItem.badge !== ''\"\n [ngClass]=\"[menuItem.badgeClass]\">{{\n menuItem.badge\n }}</span>\n </a>\n </ng-template>\n </ng-container>\n <!-- Second level menu -->\n <ul class=\"menu-content\"\n *ngIf=\"menuItem.submenu.length > 0\">\n <li *ngFor=\"let menuSubItem of menuItem.submenu\"\n [routerLinkActive]=\"menuSubItem.submenu.length > 0 ? '' : 'active'\"\n [ngClass]=\"[menuSubItem.class]\">\n <ng-container>\n <a [routerLink]=\"\n menuSubItem.submenu.length > 0 ? null : [menuSubItem.path]\n \"\n class=\"sub-menu\"\n *ngIf=\"!menuSubItem.isExternalLink; else externalSubLinkBlock\">\n <i [ngClass]=\"[menuSubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubItem.title }}</span>\n <span *ngIf=\"menuSubItem.badge !== ''\"\n [ngClass]=\"[menuSubItem.badgeClass]\">\n {{ menuSubItem.badge }}\n </span>\n </a>\n <ng-template #externalSubLinkBlock>\n <a [href]=\"[menuSubItem.path]\">\n <i [ngClass]=\"[menuSubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubItem.title }}</span>\n <span *ngIf=\"menuSubItem.badge !== ''\"\n [ngClass]=\"[menuSubItem.badgeClass]\">\n {{ menuSubItem.badge }}\n </span>\n </a>\n </ng-template>\n </ng-container>\n <!-- Third level menu -->\n <ul class=\"menu-content\"\n *ngIf=\"menuSubItem.submenu.length > 0\">\n <li *ngFor=\"let menuSubsubItem of menuSubItem.submenu\"\n routerLinkActive=\"active\"\n [ngClass]=\"[menuSubsubItem.class]\">\n <a [routerLink]=\"[menuSubsubItem.path]\"\n *ngIf=\"\n !menuSubsubItem.isExternalLink;\n else externalSubSubLinkBlock\n \">\n <i [ngClass]=\"[menuSubsubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubsubItem.title }}</span>\n <span *ngIf=\"menuSubsubItem.badge !== ''\"\n [ngClass]=\"[menuSubsubItem.badgeClass]\">\n {{ menuSubsubItem.badge }}</span>\n </a>\n <ng-template #externalSubSubLinkBlock>\n <a [href]=\"[menuSubsubItem.path]\">\n <i [ngClass]=\"[menuSubsubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubsubItem.title }}</span>\n <span *ngIf=\"menuSubsubItem.badge !== ''\"\n [ngClass]=\"[menuSubsubItem.badgeClass]\">\n {{ menuSubsubItem.badge }}</span>\n </a>\n </ng-template>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n </ul>\n </div>\n</div>\n<!-- Sidebar Content Ends -->\n" }]
|
|
1267
|
-
}], ctorParameters: function () { return [{ type: i1.MailBoxService }, { type: i0.ChangeDetectorRef }, { type: i1.GoogleAnalyticsService }, { type: i1.WebsocketService }, { type: Document, decorators: [{
|
|
1268
|
-
type: Inject,
|
|
1269
|
-
args: [DOCUMENT]
|
|
1270
|
-
}] }, { type: i0.Injector }]; }, propDecorators: { sidebarRenderEvent: [{
|
|
1271
|
-
type: Output
|
|
1272
|
-
}], productSidebarMenus: [{
|
|
1273
|
-
type: Input
|
|
1274
|
-
}] } });
|
|
1275
|
-
|
|
1276
652
|
class UserNotificationsComponent extends AppBaseComponent {
|
|
1277
653
|
constructor(injector, commonService) {
|
|
1278
654
|
super(injector);
|
|
@@ -1321,7 +697,7 @@ class UserNotificationsComponent extends AppBaseComponent {
|
|
|
1321
697
|
}
|
|
1322
698
|
}
|
|
1323
699
|
UserNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: UserNotificationsComponent, deps: [{ token: i0.Injector }, { token: i1.CommonService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1324
|
-
UserNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: UserNotificationsComponent, selector: "pw-user-notifications", usesInheritance: true, ngImport: i0, template: "<div class=\"row mt-4 mb-0 notification-wrapper\"\n id=\"user-message\">\n <ng-container *ngFor=\"let noti of notifications\">\n <div class=\"col-12 col-sm-12 col-md-12 mb-2\"\n *ngIf=\"isHomePage || noti?.can_disregard\">\n <div class=\"card pb-0\">\n <div class=\"alert border-0 card-body d-flex align-items-center justify-content-between px-3 mb-0\"\n [ngClass]=\"noti.type ? 'alert-' + noti.type : 'alert-panel'\">\n <p class=\"mb-0\"\n [innerHtml]=\"noti.message | safe: 'html'\"\n appAnchorRouter></p>\n <a class=\"icon-dismiss float-end text-white\"\n *ngIf=\"noti?.can_disregard\"\n (click)=\"hideNoty(noti?.notification_id)\">\n <i class=\"ft-x\" aria-hidden=\"true\"></i>\n </a>\n </div>\n </div>\n </div>\n </ng-container>\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_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.alert-panel{background-color:#fff!important;border-color:#ddd!important;border-radius:8px;box-shadow:3px 3px 40px #d2d2d2;color:#021a11!important}.alert-info{background-color:var(--tabs_bg)!important}p{color:#fff}.notification-wrapper:empty{display:none}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i8.AnchorRouterDirective, selector: "[appAnchorRouter]" }, { kind: "pipe", type:
|
|
700
|
+
UserNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: UserNotificationsComponent, selector: "pw-user-notifications", usesInheritance: true, ngImport: i0, template: "<div class=\"row mt-4 mb-0 notification-wrapper\"\n id=\"user-message\">\n <ng-container *ngFor=\"let noti of notifications\">\n <div class=\"col-12 col-sm-12 col-md-12 mb-2\"\n *ngIf=\"isHomePage || noti?.can_disregard\">\n <div class=\"card pb-0\">\n <div class=\"alert border-0 card-body d-flex align-items-center justify-content-between px-3 mb-0\"\n [ngClass]=\"noti.type ? 'alert-' + noti.type : 'alert-panel'\">\n <p class=\"mb-0\"\n [innerHtml]=\"noti.message | safe: 'html'\"\n appAnchorRouter></p>\n <a class=\"icon-dismiss float-end text-white\"\n *ngIf=\"noti?.can_disregard\"\n (click)=\"hideNoty(noti?.notification_id)\">\n <i class=\"ft-x\" aria-hidden=\"true\"></i>\n </a>\n </div>\n </div>\n </div>\n </ng-container>\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_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.alert-panel{background-color:#fff!important;border-color:#ddd!important;border-radius:8px;box-shadow:3px 3px 40px #d2d2d2;color:#021a11!important}.alert-info{background-color:var(--tabs_bg)!important}p{color:#fff}.notification-wrapper:empty{display:none}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i8.AnchorRouterDirective, selector: "[appAnchorRouter]" }, { kind: "pipe", type: i4$1.DOMSanitizerPipe, name: "safe" }] });
|
|
1325
701
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: UserNotificationsComponent, decorators: [{
|
|
1326
702
|
type: Component,
|
|
1327
703
|
args: [{ selector: 'pw-user-notifications', template: "<div class=\"row mt-4 mb-0 notification-wrapper\"\n id=\"user-message\">\n <ng-container *ngFor=\"let noti of notifications\">\n <div class=\"col-12 col-sm-12 col-md-12 mb-2\"\n *ngIf=\"isHomePage || noti?.can_disregard\">\n <div class=\"card pb-0\">\n <div class=\"alert border-0 card-body d-flex align-items-center justify-content-between px-3 mb-0\"\n [ngClass]=\"noti.type ? 'alert-' + noti.type : 'alert-panel'\">\n <p class=\"mb-0\"\n [innerHtml]=\"noti.message | safe: 'html'\"\n appAnchorRouter></p>\n <a class=\"icon-dismiss float-end text-white\"\n *ngIf=\"noti?.can_disregard\"\n (click)=\"hideNoty(noti?.notification_id)\">\n <i class=\"ft-x\" aria-hidden=\"true\"></i>\n </a>\n </div>\n </div>\n </div>\n </ng-container>\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_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.alert-panel{background-color:#fff!important;border-color:#ddd!important;border-radius:8px;box-shadow:3px 3px 40px #d2d2d2;color:#021a11!important}.alert-info{background-color:var(--tabs_bg)!important}p{color:#fff}.notification-wrapper:empty{display:none}\n"] }]
|
|
@@ -1348,7 +724,7 @@ class FaqDetailsComponent extends AppBaseComponent {
|
|
|
1348
724
|
}
|
|
1349
725
|
}
|
|
1350
726
|
FaqDetailsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqDetailsComponent, deps: [{ token: i1.CommonService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1351
|
-
FaqDetailsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: FaqDetailsComponent, selector: "pw-faq-details", usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid overflow-hidden mt-4 p-3\">\n <h2>{{faq?.question}}</h2>\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 <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\"> </pw-no-data>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["style", "styleClass", "strokeWidth", "fill", "animationDuration"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message"] }, { kind: "pipe", type:
|
|
727
|
+
FaqDetailsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: FaqDetailsComponent, selector: "pw-faq-details", usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid overflow-hidden mt-4 p-3\">\n <h2>{{faq?.question}}</h2>\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 <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\"> </pw-no-data>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["style", "styleClass", "strokeWidth", "fill", "animationDuration"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message"] }, { kind: "pipe", type: i4$1.DOMSanitizerPipe, name: "safe" }] });
|
|
1352
728
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqDetailsComponent, decorators: [{
|
|
1353
729
|
type: Component,
|
|
1354
730
|
args: [{ selector: 'pw-faq-details', template: "<div class=\"container-fluid overflow-hidden mt-4 p-3\">\n <h2>{{faq?.question}}</h2>\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 <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\"> </pw-no-data>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n" }]
|
|
@@ -1364,7 +740,6 @@ DashboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
1364
740
|
FooterComponent,
|
|
1365
741
|
NavbarComponent,
|
|
1366
742
|
UserNotificationsComponent,
|
|
1367
|
-
SidebarComponent,
|
|
1368
743
|
CustomizerComponent,
|
|
1369
744
|
FaqComponent,
|
|
1370
745
|
SearchComponent,
|
|
@@ -1383,7 +758,6 @@ DashboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
1383
758
|
UserModuleModule,
|
|
1384
759
|
RadioButtonModule,
|
|
1385
760
|
ProgressSpinnerModule], exports: [FooterComponent,
|
|
1386
|
-
SidebarComponent,
|
|
1387
761
|
NavbarComponent,
|
|
1388
762
|
UserNotificationsComponent,
|
|
1389
763
|
CustomizerComponent] });
|
|
@@ -1425,7 +799,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
|
|
|
1425
799
|
FooterComponent,
|
|
1426
800
|
NavbarComponent,
|
|
1427
801
|
UserNotificationsComponent,
|
|
1428
|
-
SidebarComponent,
|
|
1429
802
|
CustomizerComponent,
|
|
1430
803
|
FaqComponent,
|
|
1431
804
|
SearchComponent,
|
|
@@ -1435,7 +808,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
|
|
|
1435
808
|
],
|
|
1436
809
|
exports: [
|
|
1437
810
|
FooterComponent,
|
|
1438
|
-
SidebarComponent,
|
|
1439
811
|
NavbarComponent,
|
|
1440
812
|
UserNotificationsComponent,
|
|
1441
813
|
CustomizerComponent
|
|
@@ -1449,5 +821,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
|
|
|
1449
821
|
* Generated bundle index. Do not edit.
|
|
1450
822
|
*/
|
|
1451
823
|
|
|
1452
|
-
export {
|
|
824
|
+
export { CurrentNotificationsComponent, CustomizerComponent, DashboardModule, DismissedNotificationsComponent, FaqComponent, FaqDetailsComponent, FooterComponent, HomeComponent, NavbarComponent, NotificationsPageComponent, SearchComponent, UserFeedbackComponent, UserNotificationsComponent };
|
|
1453
825
|
//# sourceMappingURL=dashboard-module.mjs.map
|