@posiwise/dashboard-module 0.0.29 → 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 +2 -2
- 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 { getUser } from '@posiwise/app-store';
|
|
30
30
|
import { orderBy } from 'lodash';
|
|
31
31
|
import * as i3$2 from '@ngrx/store';
|
|
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 {
|
|
@@ -144,7 +140,7 @@ class FaqComponent extends AppBaseComponent {
|
|
|
144
140
|
}
|
|
145
141
|
}
|
|
146
142
|
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 });
|
|
147
|
-
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:
|
|
143
|
+
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" }] });
|
|
148
144
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqComponent, decorators: [{
|
|
149
145
|
type: Component,
|
|
150
146
|
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"] }]
|
|
@@ -276,7 +272,7 @@ class UserFeedbackComponent extends AppBaseComponent {
|
|
|
276
272
|
}
|
|
277
273
|
}
|
|
278
274
|
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 });
|
|
279
|
-
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$
|
|
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$2.RadioButton, selector: "p-radioButton", inputs: ["value", "formControlName", "name", "disabled", "label", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "style", "styleClass", "labelStyleClass"], outputs: ["onClick", "onFocus", "onBlur"] }] });
|
|
280
276
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: UserFeedbackComponent, decorators: [{
|
|
281
277
|
type: Component,
|
|
282
278
|
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"] }]
|
|
@@ -489,7 +485,7 @@ class NavbarComponent extends AppBaseComponent {
|
|
|
489
485
|
}
|
|
490
486
|
}
|
|
491
487
|
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 });
|
|
492
|
-
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" }] });
|
|
488
|
+
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" }] });
|
|
493
489
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NavbarComponent, decorators: [{
|
|
494
490
|
type: Component,
|
|
495
491
|
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"] }]
|
|
@@ -546,7 +542,7 @@ class CurrentNotificationsComponent {
|
|
|
546
542
|
}
|
|
547
543
|
}
|
|
548
544
|
CurrentNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CurrentNotificationsComponent, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
549
|
-
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:
|
|
545
|
+
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" }] });
|
|
550
546
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CurrentNotificationsComponent, decorators: [{
|
|
551
547
|
type: Component,
|
|
552
548
|
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"] }]
|
|
@@ -611,7 +607,7 @@ class DismissedNotificationsComponent {
|
|
|
611
607
|
}
|
|
612
608
|
}
|
|
613
609
|
DismissedNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DismissedNotificationsComponent, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
614
|
-
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:
|
|
610
|
+
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" }] });
|
|
615
611
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DismissedNotificationsComponent, decorators: [{
|
|
616
612
|
type: Component,
|
|
617
613
|
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"] }]
|
|
@@ -663,635 +659,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
|
|
|
663
659
|
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"] }]
|
|
664
660
|
}], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute }, { type: i1.DashboardService }]; } });
|
|
665
661
|
|
|
666
|
-
// Sidebar menu Routes and data
|
|
667
|
-
const ROUTES = [
|
|
668
|
-
// Dashboard Home
|
|
669
|
-
{
|
|
670
|
-
permission: 'Pages.Dashboard',
|
|
671
|
-
path: '/home',
|
|
672
|
-
title: 'Home',
|
|
673
|
-
icon: 'ft-home',
|
|
674
|
-
class: '',
|
|
675
|
-
badge: '',
|
|
676
|
-
badgeClass: '',
|
|
677
|
-
isExternalLink: false,
|
|
678
|
-
submenu: [],
|
|
679
|
-
visible: true,
|
|
680
|
-
order: 1
|
|
681
|
-
},
|
|
682
|
-
// Menus for Admin page
|
|
683
|
-
{
|
|
684
|
-
permission: 'Pages.Admin',
|
|
685
|
-
path: null,
|
|
686
|
-
title: 'Admin',
|
|
687
|
-
icon: 'ft-user',
|
|
688
|
-
class: 'has-sub',
|
|
689
|
-
badge: '',
|
|
690
|
-
badgeClass: '',
|
|
691
|
-
isExternalLink: false,
|
|
692
|
-
visible: true,
|
|
693
|
-
order: 3,
|
|
694
|
-
submenu: [
|
|
695
|
-
{
|
|
696
|
-
permission: 'Pages.Admin',
|
|
697
|
-
path: '/admin/generic',
|
|
698
|
-
title: 'Generic',
|
|
699
|
-
icon: 'far fa-book',
|
|
700
|
-
class: '',
|
|
701
|
-
badge: '',
|
|
702
|
-
badgeClass: '',
|
|
703
|
-
isExternalLink: false,
|
|
704
|
-
submenu: [],
|
|
705
|
-
visible: true
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
permission: 'Pages.Admin.FAQ',
|
|
709
|
-
path: '/admin/faq/list',
|
|
710
|
-
title: 'FAQs',
|
|
711
|
-
icon: 'fa fa-question',
|
|
712
|
-
class: '',
|
|
713
|
-
badge: '',
|
|
714
|
-
badgeClass: '',
|
|
715
|
-
isExternalLink: false,
|
|
716
|
-
submenu: [],
|
|
717
|
-
visible: true
|
|
718
|
-
},
|
|
719
|
-
{
|
|
720
|
-
permission: 'Pages.Admin.ContactUs',
|
|
721
|
-
path: '/admin/contact-us/list',
|
|
722
|
-
title: 'Contact Us',
|
|
723
|
-
icon: 'fa fa-address-book',
|
|
724
|
-
class: '',
|
|
725
|
-
badge: '',
|
|
726
|
-
badgeClass: '',
|
|
727
|
-
isExternalLink: false,
|
|
728
|
-
submenu: [],
|
|
729
|
-
visible: true
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
permission: 'Pages.Admin.DomainConfig',
|
|
733
|
-
path: '/admin/domain-config/list',
|
|
734
|
-
title: 'Domain Config',
|
|
735
|
-
icon: 'fa fa-fw fa-cog',
|
|
736
|
-
class: '',
|
|
737
|
-
badge: '',
|
|
738
|
-
badgeClass: '',
|
|
739
|
-
isExternalLink: false,
|
|
740
|
-
submenu: [],
|
|
741
|
-
visible: true
|
|
742
|
-
},
|
|
743
|
-
{
|
|
744
|
-
permission: 'Pages.Admin.LoginNotification',
|
|
745
|
-
path: '/admin/login-notifications/list',
|
|
746
|
-
title: 'Notifications',
|
|
747
|
-
icon: 'fa fa-fw fa-bell',
|
|
748
|
-
class: '',
|
|
749
|
-
badge: '',
|
|
750
|
-
badgeClass: '',
|
|
751
|
-
isExternalLink: false,
|
|
752
|
-
submenu: [],
|
|
753
|
-
visible: true
|
|
754
|
-
},
|
|
755
|
-
{
|
|
756
|
-
permission: 'Pages.Admin.Users',
|
|
757
|
-
path: '/admin/users',
|
|
758
|
-
title: 'Users',
|
|
759
|
-
icon: 'far fa-user-cog',
|
|
760
|
-
class: '',
|
|
761
|
-
badge: '',
|
|
762
|
-
badgeClass: '',
|
|
763
|
-
isExternalLink: false,
|
|
764
|
-
submenu: [],
|
|
765
|
-
visible: true
|
|
766
|
-
},
|
|
767
|
-
{
|
|
768
|
-
permission: 'Pages.Admin.Subscription',
|
|
769
|
-
path: '/admin/subscriptions',
|
|
770
|
-
title: 'Subscriptions',
|
|
771
|
-
icon: 'ft-box',
|
|
772
|
-
class: '',
|
|
773
|
-
badge: '',
|
|
774
|
-
badgeClass: '',
|
|
775
|
-
isExternalLink: false,
|
|
776
|
-
submenu: [],
|
|
777
|
-
visible: true
|
|
778
|
-
},
|
|
779
|
-
{
|
|
780
|
-
permission: 'Pages.Admin.Product',
|
|
781
|
-
path: '/admin/products',
|
|
782
|
-
title: 'Products',
|
|
783
|
-
icon: 'far fa-parking',
|
|
784
|
-
class: '',
|
|
785
|
-
badge: '',
|
|
786
|
-
badgeClass: '',
|
|
787
|
-
isExternalLink: false,
|
|
788
|
-
submenu: [],
|
|
789
|
-
visible: true
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
permission: 'Pages.Admin.Newsletter',
|
|
793
|
-
path: '/admin/newsletter',
|
|
794
|
-
title: 'Newsletters',
|
|
795
|
-
icon: 'far fa-newspaper',
|
|
796
|
-
class: '',
|
|
797
|
-
badge: '',
|
|
798
|
-
badgeClass: '',
|
|
799
|
-
isExternalLink: false,
|
|
800
|
-
submenu: [],
|
|
801
|
-
visible: true
|
|
802
|
-
},
|
|
803
|
-
{
|
|
804
|
-
permission: 'Pages.Admin.Tags',
|
|
805
|
-
path: '/admin/tags',
|
|
806
|
-
title: 'Tags',
|
|
807
|
-
icon: 'far fa-tags',
|
|
808
|
-
class: '',
|
|
809
|
-
badge: '',
|
|
810
|
-
badgeClass: '',
|
|
811
|
-
isExternalLink: false,
|
|
812
|
-
submenu: [],
|
|
813
|
-
visible: true
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
permission: 'Pages.Admin.Tips',
|
|
817
|
-
path: '/admin/tips/list',
|
|
818
|
-
title: 'Tips',
|
|
819
|
-
icon: 'far fa-lightbulb',
|
|
820
|
-
class: '',
|
|
821
|
-
badge: '',
|
|
822
|
-
badgeClass: '',
|
|
823
|
-
isExternalLink: false,
|
|
824
|
-
submenu: [],
|
|
825
|
-
visible: true
|
|
826
|
-
},
|
|
827
|
-
{
|
|
828
|
-
permission: 'Pages.Admin.Roles',
|
|
829
|
-
path: '/admin/permissions',
|
|
830
|
-
title: 'Permissions',
|
|
831
|
-
icon: 'fas fa-key',
|
|
832
|
-
class: '',
|
|
833
|
-
badge: '',
|
|
834
|
-
badgeClass: '',
|
|
835
|
-
isExternalLink: false,
|
|
836
|
-
submenu: [],
|
|
837
|
-
visible: true
|
|
838
|
-
},
|
|
839
|
-
{
|
|
840
|
-
permission: 'Pages.Admin.Tos',
|
|
841
|
-
path: '/admin/tos/list',
|
|
842
|
-
title: 'Privacy & TOS',
|
|
843
|
-
icon: 'fas fa-sticky-note',
|
|
844
|
-
class: '',
|
|
845
|
-
badge: '',
|
|
846
|
-
badgeClass: '',
|
|
847
|
-
isExternalLink: false,
|
|
848
|
-
submenu: [],
|
|
849
|
-
visible: true
|
|
850
|
-
},
|
|
851
|
-
{
|
|
852
|
-
permission: 'Pages.Admin.Credential',
|
|
853
|
-
path: '/admin/credentials',
|
|
854
|
-
title: 'Credentials',
|
|
855
|
-
icon: 'fas fa-file-signature',
|
|
856
|
-
class: '',
|
|
857
|
-
badge: '',
|
|
858
|
-
badgeClass: '',
|
|
859
|
-
isExternalLink: false,
|
|
860
|
-
submenu: [],
|
|
861
|
-
visible: true
|
|
862
|
-
},
|
|
863
|
-
{
|
|
864
|
-
permission: 'Pages.Admin.Tracking',
|
|
865
|
-
path: '/admin/tracking',
|
|
866
|
-
title: 'Tracking',
|
|
867
|
-
icon: 'fa fa-map-marker',
|
|
868
|
-
class: '',
|
|
869
|
-
badge: '',
|
|
870
|
-
badgeClass: '',
|
|
871
|
-
isExternalLink: false,
|
|
872
|
-
submenu: [],
|
|
873
|
-
visible: true
|
|
874
|
-
},
|
|
875
|
-
{
|
|
876
|
-
permission: 'Pages.Admin.Global-Config',
|
|
877
|
-
path: '/admin/global-config',
|
|
878
|
-
title: 'Global Configs',
|
|
879
|
-
icon: 'fa fa-fw fa-cog',
|
|
880
|
-
class: '',
|
|
881
|
-
badge: '',
|
|
882
|
-
badgeClass: '',
|
|
883
|
-
isExternalLink: false,
|
|
884
|
-
submenu: [],
|
|
885
|
-
visible: true
|
|
886
|
-
}
|
|
887
|
-
]
|
|
888
|
-
}
|
|
889
|
-
];
|
|
890
|
-
// THE FOLLOWING GOES INTO THE BOTTOM OF THE SIDEBAR
|
|
891
|
-
const FAQ_Menu = {
|
|
892
|
-
permission: 'Pages.Product.{permission_key}.{feature_key}.FAQ',
|
|
893
|
-
path: '/faq',
|
|
894
|
-
title: 'FAQ',
|
|
895
|
-
icon: 'ft-info',
|
|
896
|
-
class: '',
|
|
897
|
-
badge: '',
|
|
898
|
-
badgeClass: '',
|
|
899
|
-
isExternalLink: false,
|
|
900
|
-
submenu: [],
|
|
901
|
-
visible: true,
|
|
902
|
-
order: 999
|
|
903
|
-
};
|
|
904
|
-
const ENTERPRISE_MENU = {
|
|
905
|
-
permission: 'Pages.Product.{permission_key}.{feature_key}.Enterprise',
|
|
906
|
-
path: '/enterprise',
|
|
907
|
-
title: 'Enterprise',
|
|
908
|
-
icon: 'ft-package',
|
|
909
|
-
class: 'has-sub',
|
|
910
|
-
badge: '',
|
|
911
|
-
badgeClass: 'badge rounded-pill bg-danger float-end mt-1',
|
|
912
|
-
isExternalLink: false,
|
|
913
|
-
order: 4,
|
|
914
|
-
submenu: [
|
|
915
|
-
{
|
|
916
|
-
permission: '',
|
|
917
|
-
path: ':slug/enterprise/members',
|
|
918
|
-
title: 'Members',
|
|
919
|
-
icon: 'far fa-users',
|
|
920
|
-
class: '',
|
|
921
|
-
badge: '',
|
|
922
|
-
badgeClass: '',
|
|
923
|
-
isExternalLink: false,
|
|
924
|
-
submenu: [],
|
|
925
|
-
visible: true
|
|
926
|
-
},
|
|
927
|
-
{
|
|
928
|
-
permission: 'Pages.Beta',
|
|
929
|
-
path: ':slug/enterprise/groups',
|
|
930
|
-
title: 'Teams',
|
|
931
|
-
icon: 'far fa-users-class',
|
|
932
|
-
class: '',
|
|
933
|
-
badge: '',
|
|
934
|
-
badgeClass: '',
|
|
935
|
-
isExternalLink: false,
|
|
936
|
-
submenu: [],
|
|
937
|
-
visible: true
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
permission: 'Pages.Beta',
|
|
941
|
-
path: ':slug/enterprise/communications',
|
|
942
|
-
title: 'Communications',
|
|
943
|
-
icon: 'fas fa-comments',
|
|
944
|
-
class: '',
|
|
945
|
-
badge: '',
|
|
946
|
-
badgeClass: '',
|
|
947
|
-
isExternalLink: false,
|
|
948
|
-
submenu: [],
|
|
949
|
-
visible: true
|
|
950
|
-
},
|
|
951
|
-
{
|
|
952
|
-
permission: 'Pages.Beta',
|
|
953
|
-
path: ':slug/enterprise/wiki',
|
|
954
|
-
title: 'Documentation',
|
|
955
|
-
icon: 'fab fa-wikipedia-w',
|
|
956
|
-
class: '',
|
|
957
|
-
badge: '',
|
|
958
|
-
badgeClass: '',
|
|
959
|
-
isExternalLink: false,
|
|
960
|
-
submenu: [],
|
|
961
|
-
visible: true
|
|
962
|
-
},
|
|
963
|
-
{
|
|
964
|
-
permission: 'Pages.Beta',
|
|
965
|
-
path: ':slug/enterprise/insights',
|
|
966
|
-
title: 'Insights',
|
|
967
|
-
icon: 'far fa-tag',
|
|
968
|
-
class: '',
|
|
969
|
-
badge: '',
|
|
970
|
-
badgeClass: '',
|
|
971
|
-
isExternalLink: false,
|
|
972
|
-
submenu: [],
|
|
973
|
-
visible: true
|
|
974
|
-
}
|
|
975
|
-
],
|
|
976
|
-
visible: true
|
|
977
|
-
};
|
|
978
|
-
const CHAT_MENU = {
|
|
979
|
-
permission: 'Pages.Product.{permission_key}.{feature_key}.Chat',
|
|
980
|
-
path: '/message',
|
|
981
|
-
title: 'Chat',
|
|
982
|
-
icon: 'ft-message-square',
|
|
983
|
-
class: '',
|
|
984
|
-
badge: '',
|
|
985
|
-
badgeClass: 'badge rounded-pill bg-danger float-end mt-1',
|
|
986
|
-
isExternalLink: false,
|
|
987
|
-
submenu: [],
|
|
988
|
-
order: 2,
|
|
989
|
-
visible: true
|
|
990
|
-
};
|
|
991
|
-
const BLOG_MENU = {
|
|
992
|
-
permission: 'Pages.Product.{permission_key}.{feature_key}.Blog',
|
|
993
|
-
path: '/posts/list',
|
|
994
|
-
title: 'Blog',
|
|
995
|
-
icon: 'far fa-blog',
|
|
996
|
-
class: '',
|
|
997
|
-
badge: '',
|
|
998
|
-
badgeClass: '',
|
|
999
|
-
isExternalLink: false,
|
|
1000
|
-
submenu: [],
|
|
1001
|
-
visible: true
|
|
1002
|
-
};
|
|
1003
|
-
|
|
1004
|
-
class SidebarComponent extends AppBaseComponent {
|
|
1005
|
-
constructor(mailboxService, cdr, googleAnalyticService, webSocket, document, injector) {
|
|
1006
|
-
super(injector);
|
|
1007
|
-
this.mailboxService = mailboxService;
|
|
1008
|
-
this.cdr = cdr;
|
|
1009
|
-
this.googleAnalyticService = googleAnalyticService;
|
|
1010
|
-
this.webSocket = webSocket;
|
|
1011
|
-
this.document = document;
|
|
1012
|
-
this.sidebarRenderEvent = new EventEmitter();
|
|
1013
|
-
this.subscription = new Subscription();
|
|
1014
|
-
this.productMenus = []; // List of products to be populated contains 'Pages.Product'
|
|
1015
|
-
this.menus = [];
|
|
1016
|
-
this.webSocket.webSocket$.subscribe(response => {
|
|
1017
|
-
if (response.event === SOCKET_TYPE.MSG) {
|
|
1018
|
-
this.mailboxService.incrementUnreadCount(1);
|
|
1019
|
-
}
|
|
1020
|
-
});
|
|
1021
|
-
}
|
|
1022
|
-
get selectedSubscription() {
|
|
1023
|
-
return PermissionService.selectedSubscription;
|
|
1024
|
-
}
|
|
1025
|
-
get selectedProduct() {
|
|
1026
|
-
return PermissionService.selectedProduct;
|
|
1027
|
-
}
|
|
1028
|
-
ngOnInit() {
|
|
1029
|
-
const a = 1;
|
|
1030
|
-
// Get the company name to bind the side bar nav
|
|
1031
|
-
this.companyName = this.appConfig.company.name;
|
|
1032
|
-
// Load the app-sidebar.js which contain DOM logic/script
|
|
1033
|
-
$.getScript('/assets/js/app-sidebar.js');
|
|
1034
|
-
// Appends all the products menus to the sidebar
|
|
1035
|
-
this.productSidebarMenus.forEach(product => {
|
|
1036
|
-
ROUTES.push(product);
|
|
1037
|
-
});
|
|
1038
|
-
this.userStore().subscribe(user => {
|
|
1039
|
-
this.user = user;
|
|
1040
|
-
this.googleAnalyticService.setUserContext(this.user);
|
|
1041
|
-
// Check for side effect
|
|
1042
|
-
if (this.user) {
|
|
1043
|
-
this.permissionService.user = user;
|
|
1044
|
-
this.populateSidebarMenus();
|
|
1045
|
-
}
|
|
1046
|
-
});
|
|
1047
|
-
timer(1000).subscribe(() => {
|
|
1048
|
-
if (localStorage.getItem('sidebarState') === 'true') {
|
|
1049
|
-
this.document.getElementById('sidebarToggle').click();
|
|
1050
|
-
}
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
/** *
|
|
1054
|
-
* Appends all the products menus and assign the first default product
|
|
1055
|
-
*/
|
|
1056
|
-
populateSidebarMenus() {
|
|
1057
|
-
var _a, _b, _c, _d, _e;
|
|
1058
|
-
this.menus = [];
|
|
1059
|
-
const subs = this.constructProductsMenus();
|
|
1060
|
-
// Check if there is subscription slug in the url
|
|
1061
|
-
const subscriptionSlug = (_e = (_d = (_c = (_b = (_a = this.route) === null || _a === void 0 ? void 0 : _a.firstChild) === null || _b === void 0 ? void 0 : _b.firstChild) === null || _c === void 0 ? void 0 : _c.firstChild) === null || _d === void 0 ? void 0 : _d.snapshot) === null || _e === void 0 ? void 0 : _e.params['slug'];
|
|
1062
|
-
let currentSubscription;
|
|
1063
|
-
if (subscriptionSlug) {
|
|
1064
|
-
currentSubscription = subs.find(x => x.slug === subscriptionSlug);
|
|
1065
|
-
PermissionService.selectedProduct = this.productMenus.find(x => (x === null || x === void 0 ? void 0 : x.subscriptionId) === (currentSubscription === null || currentSubscription === void 0 ? void 0 : currentSubscription.id));
|
|
1066
|
-
}
|
|
1067
|
-
else {
|
|
1068
|
-
// Sets the first product as default
|
|
1069
|
-
PermissionService.selectedProduct = this.productMenus[0] || null;
|
|
1070
|
-
currentSubscription = this.user.subscriptions.find(x => { var _a; return x.id === ((_a = PermissionService.selectedProduct) === null || _a === void 0 ? void 0 : _a.subscriptionId); });
|
|
1071
|
-
}
|
|
1072
|
-
this.menus = uniqBy(this.menus, 'title');
|
|
1073
|
-
if (currentSubscription) {
|
|
1074
|
-
this.permissionService.setCurrentProduct(PermissionService.selectedProduct);
|
|
1075
|
-
this.permissionService.setCurrentSubscription(currentSubscription);
|
|
1076
|
-
// Appends the product menus to the sidebar
|
|
1077
|
-
this.addProductMenusOnPermission(PermissionService.selectedProduct);
|
|
1078
|
-
this.appendSlugForNonProductMenus();
|
|
1079
|
-
}
|
|
1080
|
-
this.setLogo();
|
|
1081
|
-
if (!currentSubscription) {
|
|
1082
|
-
this.router.navigate(['/account/subscriptions']);
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
constructProductsMenus() {
|
|
1086
|
-
// filter non product permissions from the auth.granted
|
|
1087
|
-
const grantedNonProductPermissions = Object.keys(this.user.auth.granted).filter(x => !x.includes('Pages.Product'));
|
|
1088
|
-
grantedNonProductPermissions.forEach(permission_name => {
|
|
1089
|
-
const menu = ROUTES.find(x => x.permission.includes(permission_name) &&
|
|
1090
|
-
this.permissionService.isGranted(permission_name));
|
|
1091
|
-
if (menu) {
|
|
1092
|
-
this.menus.push(menu);
|
|
1093
|
-
}
|
|
1094
|
-
}, this);
|
|
1095
|
-
// Show only the first product of the same subscription
|
|
1096
|
-
const subscriptions = cloneDeep(this.user.subscriptions).map(subs => {
|
|
1097
|
-
subs.products = subs.products.filter((_, index) => index === 0);
|
|
1098
|
-
return subs;
|
|
1099
|
-
});
|
|
1100
|
-
subscriptions.forEach(subscription => {
|
|
1101
|
-
subscription.products.forEach(product => {
|
|
1102
|
-
product['organisation'] = subscription.organisation;
|
|
1103
|
-
product['subscriptionId'] = subscription.id;
|
|
1104
|
-
product['subscription_slug'] = subscription.slug;
|
|
1105
|
-
});
|
|
1106
|
-
});
|
|
1107
|
-
subscriptions
|
|
1108
|
-
.flatMap(x => x.products)
|
|
1109
|
-
.forEach(product => {
|
|
1110
|
-
const productMenu = ROUTES.find(x => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.permissionKeys) === null || _a === void 0 ? void 0 : _a.includes(product.permission_key); });
|
|
1111
|
-
if (product.subscriptionId && productMenu) {
|
|
1112
|
-
const item = cloneDeep(productMenu);
|
|
1113
|
-
item['id'] = product.id;
|
|
1114
|
-
item['subscriptionId'] = product.subscriptionId;
|
|
1115
|
-
item['privacyServiceId'] = product.product_privacy_service_id;
|
|
1116
|
-
item['subscription_slug'] = product.subscription_slug;
|
|
1117
|
-
item['permission_key'] = product.permission_key;
|
|
1118
|
-
item['feature_key'] = product.feature_key;
|
|
1119
|
-
item['nickname'] = product.nickname;
|
|
1120
|
-
item['organisation'] = product.organisation;
|
|
1121
|
-
item['gitlab_service_desk_email'] = product.gitlab_service_desk_email;
|
|
1122
|
-
item.menus.forEach(menu => {
|
|
1123
|
-
menu.path = `/${product.subscription_slug}${menu.path}`;
|
|
1124
|
-
});
|
|
1125
|
-
this.productMenus.push(item);
|
|
1126
|
-
}
|
|
1127
|
-
});
|
|
1128
|
-
return subscriptions;
|
|
1129
|
-
}
|
|
1130
|
-
/**
|
|
1131
|
-
* Performing search functionality & closing the sidebar
|
|
1132
|
-
* */
|
|
1133
|
-
onSearch(search) {
|
|
1134
|
-
if (search.value) {
|
|
1135
|
-
this.router.navigate(['search'], { queryParams: { keyword: search.value } });
|
|
1136
|
-
$('.navbar-toggle').on('click', () => {
|
|
1137
|
-
console.log('clicked!');
|
|
1138
|
-
});
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
navigateToProductDashboard(product) {
|
|
1142
|
-
var _a, _b;
|
|
1143
|
-
if (((_a = PermissionService.selectedProduct) === null || _a === void 0 ? void 0 : _a.subscriptionId) &&
|
|
1144
|
-
(product === null || product === void 0 ? void 0 : product.subscriptionId) &&
|
|
1145
|
-
((_b = PermissionService.selectedProduct) === null || _b === void 0 ? void 0 : _b.subscriptionId) !== (product === null || product === void 0 ? void 0 : product.subscriptionId)) {
|
|
1146
|
-
// Remove the previous product menus
|
|
1147
|
-
const tabsToRemove = PermissionService.selectedProduct.menus;
|
|
1148
|
-
tabsToRemove.forEach(item => {
|
|
1149
|
-
this.menus = this.menus.filter(x => x.path !== item.path);
|
|
1150
|
-
});
|
|
1151
|
-
}
|
|
1152
|
-
// add the current product menus
|
|
1153
|
-
if ((!PermissionService.selectedProduct ||
|
|
1154
|
-
!isEqual(PermissionService.selectedProduct.subscriptionId, product.subscriptionId)) &&
|
|
1155
|
-
product) {
|
|
1156
|
-
this.addProductMenusOnPermission(product);
|
|
1157
|
-
}
|
|
1158
|
-
PermissionService.selectedProduct = product;
|
|
1159
|
-
this.permissionService.setCurrentProduct(product);
|
|
1160
|
-
const subscription = this.user.subscriptions.find(x => x.id === product.subscriptionId);
|
|
1161
|
-
this.permissionService.setCurrentSubscription(subscription);
|
|
1162
|
-
this.appendSlugForNonProductMenus();
|
|
1163
|
-
this.router.navigateByUrl('/splash', { skipLocationChange: true }).then(() => {
|
|
1164
|
-
this.router.navigate([`${subscription.slug}${product.path}`]);
|
|
1165
|
-
this.setLogo();
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
addProductMenusOnPermission(product) {
|
|
1169
|
-
var _a;
|
|
1170
|
-
if ((_a = product === null || product === void 0 ? void 0 : product.menus) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1171
|
-
// Replaces the product key and permission key for chat and enterprise
|
|
1172
|
-
product.menus
|
|
1173
|
-
.filter(menu => menu.permission.includes('{feature_key}'))
|
|
1174
|
-
.forEach(menu => {
|
|
1175
|
-
menu.permission = menu.permission
|
|
1176
|
-
.replace('{feature_key}', product === null || product === void 0 ? void 0 : product.feature_key)
|
|
1177
|
-
.replace('{permission_key}', product.permission_key);
|
|
1178
|
-
}, this);
|
|
1179
|
-
// appends the product menus having permission to the sidebar
|
|
1180
|
-
product === null || product === void 0 ? void 0 : product.menus.forEach((product_menu) => {
|
|
1181
|
-
var _a;
|
|
1182
|
-
if (product_menu.visible &&
|
|
1183
|
-
this.permissionService.evaluatePermissions(product_menu.permission, product.feature_key, product.permission_key)) {
|
|
1184
|
-
const subMenu = [];
|
|
1185
|
-
// binds the sub menus to the main menu for both product and non-product
|
|
1186
|
-
(_a = product_menu === null || product_menu === void 0 ? void 0 : product_menu.submenu) === null || _a === void 0 ? void 0 : _a.forEach((sub_menu) => {
|
|
1187
|
-
if (this.permissionService.evaluatePermissions(sub_menu === null || sub_menu === void 0 ? void 0 : sub_menu.permission, product.feature_key, product.permission_key) ||
|
|
1188
|
-
(sub_menu === null || sub_menu === void 0 ? void 0 : sub_menu.permission) === '') {
|
|
1189
|
-
subMenu.push(sub_menu);
|
|
1190
|
-
}
|
|
1191
|
-
});
|
|
1192
|
-
product_menu.submenu = subMenu;
|
|
1193
|
-
this.menus.push(product_menu);
|
|
1194
|
-
}
|
|
1195
|
-
});
|
|
1196
|
-
this.appendAdminMenu(product);
|
|
1197
|
-
this.getUnreadMessages();
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
appendAdminMenu(product) {
|
|
1201
|
-
// Add Admin menu if user is super_admin
|
|
1202
|
-
// Admin menu should be populated if user has SubscriptionSuperAdmin or
|
|
1203
|
-
// SubscriptionAdmin or SubscriptionOwner of a master_product
|
|
1204
|
-
if (this.permissionService.isSuperAdmin()) {
|
|
1205
|
-
this.menus.push(ROUTES.find(x => x.permission.includes('Pages.Admin')));
|
|
1206
|
-
}
|
|
1207
|
-
else {
|
|
1208
|
-
// appends Admin Menus in case of SubscriptionSuperAdmin
|
|
1209
|
-
// eslint-disable-next-line no-lonely-if
|
|
1210
|
-
if (this.user.auth.granted[`Pages.Product.${product.permission_key}.${product.feature_key}.SubscriptionSuperAdmin`] ||
|
|
1211
|
-
this.user.auth.granted[`Pages.Product.${product.permission_key}.${product.feature_key}.SubscriptionSuperOwner`]) {
|
|
1212
|
-
// Incase of SubscriptionAdmin, populate few admin submenus as whitelisted in ADMIN_SUB_MENU_WHITELIST
|
|
1213
|
-
const adminRoute = cloneDeep(ROUTES.find(x => x.permission === 'Pages.Admin'));
|
|
1214
|
-
if (this.menus.findIndex(x => x.permission === 'Pages.Admin') === -1) {
|
|
1215
|
-
adminRoute.submenu = adminRoute.submenu.filter(x => ADMIN_SUB_MENU_WHITELIST.includes(x.permission));
|
|
1216
|
-
this.menus.push(adminRoute);
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
else {
|
|
1220
|
-
this.menus = this.menus.filter(x => x.permission !== 'Pages.Admin');
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
this.menus = uniqBy(this.menus, 'title');
|
|
1224
|
-
}
|
|
1225
|
-
setLogo() {
|
|
1226
|
-
var _a, _b, _c, _d, _e;
|
|
1227
|
-
if (PermissionService.selectedSubscription) {
|
|
1228
|
-
this.logo = HelperService.getLogoUrl(PermissionService.selectedSubscription, (_b = (_a = this.appConfig) === null || _a === void 0 ? void 0 : _a.company) === null || _b === void 0 ? void 0 : _b.logos);
|
|
1229
|
-
}
|
|
1230
|
-
else {
|
|
1231
|
-
this.logo = HelperService.getLogoFromSubscription((_c = this.user) === null || _c === void 0 ? void 0 : _c.subscriptions[0], (_e = (_d = this.appConfig) === null || _d === void 0 ? void 0 : _d.company) === null || _e === void 0 ? void 0 : _e.logos);
|
|
1232
|
-
}
|
|
1233
|
-
this.sidebarRenderEvent.emit(this.logo);
|
|
1234
|
-
}
|
|
1235
|
-
/**
|
|
1236
|
-
* Populates the Enterprise option to the side bar menu
|
|
1237
|
-
* Enterprise is not populated from the auth.granted.
|
|
1238
|
-
* If user subscription has more than 4 units
|
|
1239
|
-
*/
|
|
1240
|
-
appendSlugForNonProductMenus() {
|
|
1241
|
-
// remove the enterprise menu first and then append if max_units > 1d
|
|
1242
|
-
this.menus.forEach(route => {
|
|
1243
|
-
var _a, _b, _c;
|
|
1244
|
-
if (((_a = route === null || route === void 0 ? void 0 : route.path) === null || _a === void 0 ? void 0 : _a.includes(':slug')) && ((_b = PermissionService.selectedSubscription) === null || _b === void 0 ? void 0 : _b.slug)) {
|
|
1245
|
-
route.path = route.path.replace(':slug', PermissionService.selectedSubscription.slug);
|
|
1246
|
-
}
|
|
1247
|
-
if ((_c = route === null || route === void 0 ? void 0 : route.submenu) === null || _c === void 0 ? void 0 : _c.length) {
|
|
1248
|
-
route.submenu.forEach(subRoute => {
|
|
1249
|
-
var _a, _b;
|
|
1250
|
-
if (((_a = subRoute === null || subRoute === void 0 ? void 0 : subRoute.path) === null || _a === void 0 ? void 0 : _a.includes(':slug')) &&
|
|
1251
|
-
((_b = PermissionService.selectedSubscription) === null || _b === void 0 ? void 0 : _b.slug)) {
|
|
1252
|
-
subRoute.path = subRoute.path.replace(':slug', PermissionService.selectedSubscription.slug);
|
|
1253
|
-
}
|
|
1254
|
-
});
|
|
1255
|
-
}
|
|
1256
|
-
});
|
|
1257
|
-
}
|
|
1258
|
-
/**
|
|
1259
|
-
* Gets the unread message count to bind the the message badge
|
|
1260
|
-
*/
|
|
1261
|
-
getUnreadMessages() {
|
|
1262
|
-
const chatMenu = this.menus.find(x => x.title.includes('Chat'));
|
|
1263
|
-
if (chatMenu) {
|
|
1264
|
-
this.mailboxService.totalUnreadCount$.subscribe(data => {
|
|
1265
|
-
chatMenu.badge = data > 0 ? String(data) : '';
|
|
1266
|
-
this.cdr.detectChanges();
|
|
1267
|
-
});
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
// set state in localstorage
|
|
1271
|
-
onSidebarToggle(event) {
|
|
1272
|
-
localStorage.setItem('sidebarState', `${event.target.dataset.bsToggle !== 'collapsed'}`);
|
|
1273
|
-
}
|
|
1274
|
-
ngOnDestroy() {
|
|
1275
|
-
super.ngOnDestroy();
|
|
1276
|
-
this.subscription.unsubscribe();
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
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 });
|
|
1280
|
-
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" }] });
|
|
1281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: SidebarComponent, decorators: [{
|
|
1282
|
-
type: Component,
|
|
1283
|
-
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" }]
|
|
1284
|
-
}], ctorParameters: function () {
|
|
1285
|
-
return [{ type: i1.MailBoxService }, { type: i0.ChangeDetectorRef }, { type: i1.GoogleAnalyticsService }, { type: i1.WebsocketService }, { type: Document, decorators: [{
|
|
1286
|
-
type: Inject,
|
|
1287
|
-
args: [DOCUMENT]
|
|
1288
|
-
}] }, { type: i0.Injector }];
|
|
1289
|
-
}, propDecorators: { sidebarRenderEvent: [{
|
|
1290
|
-
type: Output
|
|
1291
|
-
}], productSidebarMenus: [{
|
|
1292
|
-
type: Input
|
|
1293
|
-
}] } });
|
|
1294
|
-
|
|
1295
662
|
class UserNotificationsComponent extends AppBaseComponent {
|
|
1296
663
|
constructor(injector, commonService) {
|
|
1297
664
|
super(injector);
|
|
@@ -1340,7 +707,7 @@ class UserNotificationsComponent extends AppBaseComponent {
|
|
|
1340
707
|
}
|
|
1341
708
|
}
|
|
1342
709
|
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 });
|
|
1343
|
-
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:
|
|
710
|
+
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" }] });
|
|
1344
711
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: UserNotificationsComponent, decorators: [{
|
|
1345
712
|
type: Component,
|
|
1346
713
|
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"] }]
|
|
@@ -1367,7 +734,7 @@ class FaqDetailsComponent extends AppBaseComponent {
|
|
|
1367
734
|
}
|
|
1368
735
|
}
|
|
1369
736
|
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 });
|
|
1370
|
-
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:
|
|
737
|
+
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" }] });
|
|
1371
738
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqDetailsComponent, decorators: [{
|
|
1372
739
|
type: Component,
|
|
1373
740
|
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" }]
|
|
@@ -1383,7 +750,6 @@ DashboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
1383
750
|
FooterComponent,
|
|
1384
751
|
NavbarComponent,
|
|
1385
752
|
UserNotificationsComponent,
|
|
1386
|
-
SidebarComponent,
|
|
1387
753
|
CustomizerComponent,
|
|
1388
754
|
FaqComponent,
|
|
1389
755
|
SearchComponent,
|
|
@@ -1402,7 +768,6 @@ DashboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
1402
768
|
UserModuleModule,
|
|
1403
769
|
RadioButtonModule,
|
|
1404
770
|
ProgressSpinnerModule], exports: [FooterComponent,
|
|
1405
|
-
SidebarComponent,
|
|
1406
771
|
NavbarComponent,
|
|
1407
772
|
UserNotificationsComponent,
|
|
1408
773
|
CustomizerComponent] });
|
|
@@ -1444,7 +809,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
|
|
|
1444
809
|
FooterComponent,
|
|
1445
810
|
NavbarComponent,
|
|
1446
811
|
UserNotificationsComponent,
|
|
1447
|
-
SidebarComponent,
|
|
1448
812
|
CustomizerComponent,
|
|
1449
813
|
FaqComponent,
|
|
1450
814
|
SearchComponent,
|
|
@@ -1454,7 +818,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
|
|
|
1454
818
|
],
|
|
1455
819
|
exports: [
|
|
1456
820
|
FooterComponent,
|
|
1457
|
-
SidebarComponent,
|
|
1458
821
|
NavbarComponent,
|
|
1459
822
|
UserNotificationsComponent,
|
|
1460
823
|
CustomizerComponent
|
|
@@ -1468,5 +831,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
|
|
|
1468
831
|
* Generated bundle index. Do not edit.
|
|
1469
832
|
*/
|
|
1470
833
|
|
|
1471
|
-
export {
|
|
834
|
+
export { CurrentNotificationsComponent, CustomizerComponent, DashboardModule, DismissedNotificationsComponent, FaqComponent, FaqDetailsComponent, FooterComponent, HomeComponent, NavbarComponent, NotificationsPageComponent, SearchComponent, UserFeedbackComponent, UserNotificationsComponent };
|
|
1472
835
|
//# sourceMappingURL=dashboard-module.mjs.map
|