@posiwise/dashboard-module 0.0.154 → 0.0.155
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.
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import * as i2 from "@angular/common";
|
|
1
|
+
import * as i2$1 from "@angular/common";
|
|
2
2
|
import { CommonModule } from "@angular/common";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import { CUSTOM_ELEMENTS_SCHEMA, Component, Inject, InjectionToken, NgModule, Optional } from "@angular/core";
|
|
5
|
-
import * as i2$
|
|
4
|
+
import { CUSTOM_ELEMENTS_SCHEMA, Component, DestroyRef, EventEmitter, Inject, InjectionToken, NgModule, Optional, Output, inject } from "@angular/core";
|
|
5
|
+
import * as i2$2 from "@angular/forms";
|
|
6
6
|
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
|
7
|
-
import * as i1
|
|
7
|
+
import * as i1 from "@posiwise/common-services";
|
|
8
8
|
import { PermissionService, SubscriptionService } from "@posiwise/common-services";
|
|
9
9
|
import { CoreTranslocoModule } from "@posiwise/core-transloco";
|
|
10
10
|
import * as i4 from "@posiwise/directives";
|
|
11
11
|
import { DirectivesModule } from "@posiwise/directives";
|
|
12
|
-
import * as
|
|
12
|
+
import * as i6 from "@posiwise/pipes";
|
|
13
13
|
import { PipesModule } from "@posiwise/pipes";
|
|
14
14
|
import { UserModuleModule } from "@posiwise/user-module";
|
|
15
|
-
import * as i2$
|
|
15
|
+
import * as i2$3 from "primeng/progressspinner";
|
|
16
16
|
import { ProgressSpinnerModule } from "primeng/progressspinner";
|
|
17
17
|
import * as i3 from "primeng/radiobutton";
|
|
18
18
|
import { RadioButtonModule } from "primeng/radiobutton";
|
|
19
19
|
import { SelectModule } from "primeng/select";
|
|
20
|
-
import * as
|
|
20
|
+
import * as i2 from "@ng-bootstrap/ng-bootstrap";
|
|
21
21
|
import { NgbDropdownModule, NgbNavModule } from "@ng-bootstrap/ng-bootstrap";
|
|
22
22
|
import * as i3$1 from "@angular/router";
|
|
23
23
|
import { NavigationEnd, RouterModule } from "@angular/router";
|
|
24
|
-
import * as i6 from "@posiwise/shared-components";
|
|
24
|
+
import * as i6$1 from "@posiwise/shared-components";
|
|
25
25
|
import { ResourceSharedComponentsModule } from "@posiwise/shared-components";
|
|
26
|
-
import * as i5
|
|
26
|
+
import * as i5 from "primeng/tooltip";
|
|
27
27
|
import { TooltipModule } from "primeng/tooltip";
|
|
28
|
-
import * as i1$
|
|
28
|
+
import * as i1$1 from "@angular/platform-browser";
|
|
29
|
+
import * as i3$2 from "@jsverse/transloco";
|
|
29
30
|
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
30
31
|
import { ADMIN_ROUTERS } from "@posiwise/common-utilities";
|
|
31
32
|
import { HelperService } from "@posiwise/helper-service";
|
|
@@ -33,8 +34,8 @@ import { Subject, filter, forkJoin, of } from "rxjs";
|
|
|
33
34
|
import { catchError, debounceTime, finalize, map, switchMap, take, takeUntil } from "rxjs/operators";
|
|
34
35
|
import groupBy from "lodash/groupBy";
|
|
35
36
|
import sortBy from "lodash/sortBy";
|
|
36
|
-
import * as i7 from "@jsverse/transloco";
|
|
37
37
|
import moment from "moment";
|
|
38
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
38
39
|
var DocumentationComponent = class DocumentationComponent {
|
|
39
40
|
constructor(sanitizer) {
|
|
40
41
|
this.sanitizer = sanitizer;
|
|
@@ -56,7 +57,7 @@ var DocumentationComponent = class DocumentationComponent {
|
|
|
56
57
|
version: "22.2.3",
|
|
57
58
|
ngImport: i0,
|
|
58
59
|
type: DocumentationComponent,
|
|
59
|
-
deps: [{ token: i1$
|
|
60
|
+
deps: [{ token: i1$1.DomSanitizer }],
|
|
60
61
|
target: i0.ɵɵFactoryTarget.Component
|
|
61
62
|
});
|
|
62
63
|
}
|
|
@@ -68,11 +69,11 @@ var DocumentationComponent = class DocumentationComponent {
|
|
|
68
69
|
isStandalone: false,
|
|
69
70
|
selector: "pw-documentation",
|
|
70
71
|
ngImport: i0,
|
|
71
|
-
template: "@if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"></p-progress-spinner>\n </div>\n}\n\n<div class=\"documentation-wrapper\" [hidden]=\"!isLoaded || !iframeUrl\">\n @if (iframeUrl) {\n <iframe\n [src]=\"iframeUrl\"\n width=\"100%\"\n height=\"100%\"\n allowfullscreen\n title=\"
|
|
72
|
+
template: "@if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"></p-progress-spinner>\n </div>\n}\n\n<div class=\"documentation-wrapper\" [hidden]=\"!isLoaded || !iframeUrl\">\n @if (iframeUrl) {\n <iframe\n [src]=\"iframeUrl\"\n width=\"100%\"\n height=\"100%\"\n allowfullscreen\n [title]=\"'Dashboard.Docs.FrameTitle' | transloco\"\n (load)=\"onIframeLoad()\"\n ></iframe>\n }\n</div>\n",
|
|
72
73
|
styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"],
|
|
73
74
|
dependencies: [{
|
|
74
75
|
kind: "component",
|
|
75
|
-
type: i2$
|
|
76
|
+
type: i2$3.ProgressSpinner,
|
|
76
77
|
selector: "p-progress-spinner, p-progressspinner",
|
|
77
78
|
inputs: [
|
|
78
79
|
"value",
|
|
@@ -83,6 +84,10 @@ var DocumentationComponent = class DocumentationComponent {
|
|
|
83
84
|
"ariaLabel",
|
|
84
85
|
"fill"
|
|
85
86
|
]
|
|
87
|
+
}, {
|
|
88
|
+
kind: "pipe",
|
|
89
|
+
type: i3$2.TranslocoPipe,
|
|
90
|
+
name: "transloco"
|
|
86
91
|
}]
|
|
87
92
|
});
|
|
88
93
|
}
|
|
@@ -97,11 +102,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
97
102
|
args: [{
|
|
98
103
|
selector: "pw-documentation",
|
|
99
104
|
standalone: false,
|
|
100
|
-
template: "@if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"></p-progress-spinner>\n </div>\n}\n\n<div class=\"documentation-wrapper\" [hidden]=\"!isLoaded || !iframeUrl\">\n @if (iframeUrl) {\n <iframe\n [src]=\"iframeUrl\"\n width=\"100%\"\n height=\"100%\"\n allowfullscreen\n title=\"
|
|
105
|
+
template: "@if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"></p-progress-spinner>\n </div>\n}\n\n<div class=\"documentation-wrapper\" [hidden]=\"!isLoaded || !iframeUrl\">\n @if (iframeUrl) {\n <iframe\n [src]=\"iframeUrl\"\n width=\"100%\"\n height=\"100%\"\n allowfullscreen\n [title]=\"'Dashboard.Docs.FrameTitle' | transloco\"\n (load)=\"onIframeLoad()\"\n ></iframe>\n }\n</div>\n",
|
|
101
106
|
styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"]
|
|
102
107
|
}]
|
|
103
108
|
}],
|
|
104
|
-
ctorParameters: () => [{ type: i1$
|
|
109
|
+
ctorParameters: () => [{ type: i1$1.DomSanitizer }]
|
|
105
110
|
});
|
|
106
111
|
const FAQ_ADMIN_PERMISSION = "Pages.Admin.FAQ || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager";
|
|
107
112
|
function groupFaqsByCategory(nonProductFaqs, productFaqs) {
|
|
@@ -226,10 +231,10 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
226
231
|
ngImport: i0,
|
|
227
232
|
type: FaqComponent,
|
|
228
233
|
deps: [
|
|
229
|
-
{ token: i1
|
|
234
|
+
{ token: i1.CommonService },
|
|
230
235
|
{ token: i0.Injector },
|
|
231
|
-
{ token: i1
|
|
232
|
-
{ token: i1$
|
|
236
|
+
{ token: i1.ProductService },
|
|
237
|
+
{ token: i1$1.DomSanitizer },
|
|
233
238
|
{ token: i0.ChangeDetectorRef }
|
|
234
239
|
],
|
|
235
240
|
target: i0.ɵɵFactoryTarget.Component
|
|
@@ -244,8 +249,8 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
244
249
|
selector: "pw-faq",
|
|
245
250
|
usesInheritance: true,
|
|
246
251
|
ngImport: i0,
|
|
247
|
-
template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <div class=\"d-flex justify-content-between align-items-start mb-3 mb-md-0\">\n <div>\n @if (showDocumentation) {\n <button\n class=\"btn btn-sm document-btn\"\n (click)=\"navigateToDocumentation()\">\n Documentation\n </button>\n }\n </div>\n <div>\n @if (showSupport) {\n <button\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n }\n </div>\n </div>\n\n <h1>
|
|
248
|
-
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--public-btn-radius: 24px}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px solid rgb(224,224,224);background-color:#fff;border-radius:8px;margin:8px 0;overflow:hidden;transition:border-color .16s ease-out,box-shadow .16s ease-out}.faq-item:hover{border-color:#bdbdbd}.faq-item .dashboard-header{background:transparent;padding:0;display:flex;align-items:center;position:relative}.faq-item .dashboard-header:after{content:\"\\f078\";font-family:\"Font Awesome 5 Pro\",sans-serif;font-weight:600;font-size:13px;color:#9e9e9e;flex:0 0 auto;margin-left:auto;margin-right:18px;transition:transform .18s ease-out,color .18s ease-out}.faq-item .dashboard-header:hover:after{color:var(--titles)}.faq-item .dashboard-header:has(.accordion-toggle:not(.collapsed)):after{transform:rotate(180deg);color:var(--titles)}.faq-item .accordion-title{margin:0;flex:0 1 auto;min-width:0}.faq-item .faq-edit-link{position:relative;z-index:1;display:inline-flex;align-items:center;flex:0 0 auto;padding:14px 8px;text-decoration:none}.faq-item .faq-edit-link .edit-icon{font-size:14px}.faq-item .accordion-toggle{display:flex;align-items:center;padding:14px 4px 14px 18px;font-size:15px;font-weight:600;line-height:1.45;color:var(--titles);text-decoration:none;cursor:pointer}.faq-item .accordion-toggle:before{content:\"\"!important;position:absolute;inset:0;width:auto;padding:0}.faq-item .accordion-toggle:focus-visible{outline:2px solid var(--first);outline-offset:-2px}.faq-item .panel-collapse{padding:0!important}.faq-item .card-block{padding:4px 18px 16px;border-top:1px solid rgb(238,238,238)}.faq-item .ql-editor{font-size:14px;line-height:1.65;color:#616161;text-align:left}.document-btn{background-color:var(--second);border-color:var(--second)!important;color:#fff}.document-btn:hover{color:var(--second)!important;background-color:transparent!important}.card{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}h6{color:var(--titles)!important;font-size:17px;font-weight:700;letter-spacing:.04em;padding:0 0 10px!important;margin:32px 0 14px!important;border-bottom:1px solid rgb(224,224,224)}.accordion-title a{color:var(--titles)!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"],
|
|
252
|
+
template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <div class=\"d-flex justify-content-between align-items-start mb-3 mb-md-0\">\n <div>\n @if (showDocumentation) {\n <button\n class=\"btn btn-sm document-btn\"\n (click)=\"navigateToDocumentation()\">\n {{ 'Navbar.Documentation' | transloco }}\n </button>\n }\n </div>\n <div>\n @if (showSupport) {\n <button\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n {{ 'Navbar.Support' | transloco }}\n </button>\n }\n </div>\n </div>\n\n <h1>{{ 'Dashboard.Faq.Title' | transloco }}</h1>\n <p><em>{{ 'Dashboard.Faq.Intro' | transloco }}</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <label for=\"faq-search\" class=\"visually-hidden\">{{ 'Dashboard.Faq.SearchLabel' | transloco }}</label>\n <input type=\"text\"\n id=\"faq-search\"\n name=\"faq-search\"\n class=\"form-control bg-white\"\n [placeholder]=\"'Admin.Faq.List.SearchPlaceholder' | transloco\"\n (input)=\"filter($event.target.value)\"\n #messageInput\n [attr.aria-label]=\"'Admin.Faq.List.SearchPlaceholder' | transloco\" />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (faqs) {\n @for (category of objectKeys(faqs); track category; let idx1 = $index) {\n <div>\n @if (faqs[category]?.length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n @for (\n faq of faqs[category]; track trackByProductFaqId(idx,\n faq); let idx = $index) {\n <div class=\"faq-item\"\n >\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\n [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n @if (canEditFaq && faq?.id) {\n <a class=\"faq-edit-link\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + faq.id]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"sanitizedFaqAnswers[idx + '-' + idx1]\">\n </div>\n </div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (isLoaded && (totalRecords === 0 || allFaqFalse)) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Dashboard.Faq.NoData' | transloco\"> </pw-no-data>\n </div>\n }\n</div>\n",
|
|
253
|
+
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--pw-hairline: #e2e5ea;--public-btn-radius: 24px}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px solid rgb(224,224,224);background-color:#fff;border-radius:8px;margin:8px 0;overflow:hidden;transition:border-color .16s ease-out,box-shadow .16s ease-out}.faq-item:hover{border-color:#bdbdbd}.faq-item .dashboard-header{background:transparent;padding:0;display:flex;align-items:center;position:relative}.faq-item .dashboard-header:after{content:\"\\f078\";font-family:\"Font Awesome 5 Pro\",sans-serif;font-weight:600;font-size:13px;color:#9e9e9e;flex:0 0 auto;margin-left:auto;margin-right:18px;transition:transform .18s ease-out,color .18s ease-out}.faq-item .dashboard-header:hover:after{color:var(--titles)}.faq-item .dashboard-header:has(.accordion-toggle:not(.collapsed)):after{transform:rotate(180deg);color:var(--titles)}.faq-item .accordion-title{margin:0;flex:0 1 auto;min-width:0}.faq-item .faq-edit-link{position:relative;z-index:1;display:inline-flex;align-items:center;flex:0 0 auto;padding:14px 8px;text-decoration:none}.faq-item .faq-edit-link .edit-icon{font-size:14px}.faq-item .accordion-toggle{display:flex;align-items:center;padding:14px 4px 14px 18px;font-size:15px;font-weight:600;line-height:1.45;color:var(--titles);text-decoration:none;cursor:pointer}.faq-item .accordion-toggle:before{content:\"\"!important;position:absolute;inset:0;width:auto;padding:0}.faq-item .accordion-toggle:focus-visible{outline:2px solid var(--first);outline-offset:-2px}.faq-item .panel-collapse{padding:0!important}.faq-item .card-block{padding:4px 18px 16px;border-top:1px solid rgb(238,238,238)}.faq-item .ql-editor{font-size:14px;line-height:1.65;color:#616161;text-align:left}.document-btn{background-color:var(--second);border-color:var(--second)!important;color:#fff}.document-btn:hover{color:var(--second)!important;background-color:transparent!important}.card{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}h6{color:var(--titles)!important;font-size:17px;font-weight:700;letter-spacing:.04em;padding:0 0 10px!important;margin:32px 0 14px!important;border-bottom:1px solid rgb(224,224,224)}.accordion-title a{color:var(--titles)!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"],
|
|
249
254
|
dependencies: [
|
|
250
255
|
{
|
|
251
256
|
kind: "directive",
|
|
@@ -268,7 +273,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
268
273
|
},
|
|
269
274
|
{
|
|
270
275
|
kind: "component",
|
|
271
|
-
type: i2$
|
|
276
|
+
type: i2$3.ProgressSpinner,
|
|
272
277
|
selector: "p-progress-spinner, p-progressspinner",
|
|
273
278
|
inputs: [
|
|
274
279
|
"value",
|
|
@@ -282,7 +287,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
282
287
|
},
|
|
283
288
|
{
|
|
284
289
|
kind: "directive",
|
|
285
|
-
type: i5
|
|
290
|
+
type: i5.Tooltip,
|
|
286
291
|
selector: "[pTooltip]",
|
|
287
292
|
inputs: [
|
|
288
293
|
"tooltipPosition",
|
|
@@ -310,7 +315,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
310
315
|
},
|
|
311
316
|
{
|
|
312
317
|
kind: "component",
|
|
313
|
-
type: i6.NoDataComponent,
|
|
318
|
+
type: i6$1.NoDataComponent,
|
|
314
319
|
selector: "pw-no-data",
|
|
315
320
|
inputs: [
|
|
316
321
|
"message",
|
|
@@ -320,7 +325,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
320
325
|
},
|
|
321
326
|
{
|
|
322
327
|
kind: "pipe",
|
|
323
|
-
type:
|
|
328
|
+
type: i3$2.TranslocoPipe,
|
|
324
329
|
name: "transloco"
|
|
325
330
|
}
|
|
326
331
|
]
|
|
@@ -337,15 +342,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
337
342
|
args: [{
|
|
338
343
|
selector: "pw-faq",
|
|
339
344
|
standalone: false,
|
|
340
|
-
template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <div class=\"d-flex justify-content-between align-items-start mb-3 mb-md-0\">\n <div>\n @if (showDocumentation) {\n <button\n class=\"btn btn-sm document-btn\"\n (click)=\"navigateToDocumentation()\">\n Documentation\n </button>\n }\n </div>\n <div>\n @if (showSupport) {\n <button\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n }\n </div>\n </div>\n\n <h1>
|
|
341
|
-
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--public-btn-radius: 24px}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px solid rgb(224,224,224);background-color:#fff;border-radius:8px;margin:8px 0;overflow:hidden;transition:border-color .16s ease-out,box-shadow .16s ease-out}.faq-item:hover{border-color:#bdbdbd}.faq-item .dashboard-header{background:transparent;padding:0;display:flex;align-items:center;position:relative}.faq-item .dashboard-header:after{content:\"\\f078\";font-family:\"Font Awesome 5 Pro\",sans-serif;font-weight:600;font-size:13px;color:#9e9e9e;flex:0 0 auto;margin-left:auto;margin-right:18px;transition:transform .18s ease-out,color .18s ease-out}.faq-item .dashboard-header:hover:after{color:var(--titles)}.faq-item .dashboard-header:has(.accordion-toggle:not(.collapsed)):after{transform:rotate(180deg);color:var(--titles)}.faq-item .accordion-title{margin:0;flex:0 1 auto;min-width:0}.faq-item .faq-edit-link{position:relative;z-index:1;display:inline-flex;align-items:center;flex:0 0 auto;padding:14px 8px;text-decoration:none}.faq-item .faq-edit-link .edit-icon{font-size:14px}.faq-item .accordion-toggle{display:flex;align-items:center;padding:14px 4px 14px 18px;font-size:15px;font-weight:600;line-height:1.45;color:var(--titles);text-decoration:none;cursor:pointer}.faq-item .accordion-toggle:before{content:\"\"!important;position:absolute;inset:0;width:auto;padding:0}.faq-item .accordion-toggle:focus-visible{outline:2px solid var(--first);outline-offset:-2px}.faq-item .panel-collapse{padding:0!important}.faq-item .card-block{padding:4px 18px 16px;border-top:1px solid rgb(238,238,238)}.faq-item .ql-editor{font-size:14px;line-height:1.65;color:#616161;text-align:left}.document-btn{background-color:var(--second);border-color:var(--second)!important;color:#fff}.document-btn:hover{color:var(--second)!important;background-color:transparent!important}.card{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}h6{color:var(--titles)!important;font-size:17px;font-weight:700;letter-spacing:.04em;padding:0 0 10px!important;margin:32px 0 14px!important;border-bottom:1px solid rgb(224,224,224)}.accordion-title a{color:var(--titles)!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"]
|
|
345
|
+
template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <div class=\"d-flex justify-content-between align-items-start mb-3 mb-md-0\">\n <div>\n @if (showDocumentation) {\n <button\n class=\"btn btn-sm document-btn\"\n (click)=\"navigateToDocumentation()\">\n {{ 'Navbar.Documentation' | transloco }}\n </button>\n }\n </div>\n <div>\n @if (showSupport) {\n <button\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n {{ 'Navbar.Support' | transloco }}\n </button>\n }\n </div>\n </div>\n\n <h1>{{ 'Dashboard.Faq.Title' | transloco }}</h1>\n <p><em>{{ 'Dashboard.Faq.Intro' | transloco }}</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <label for=\"faq-search\" class=\"visually-hidden\">{{ 'Dashboard.Faq.SearchLabel' | transloco }}</label>\n <input type=\"text\"\n id=\"faq-search\"\n name=\"faq-search\"\n class=\"form-control bg-white\"\n [placeholder]=\"'Admin.Faq.List.SearchPlaceholder' | transloco\"\n (input)=\"filter($event.target.value)\"\n #messageInput\n [attr.aria-label]=\"'Admin.Faq.List.SearchPlaceholder' | transloco\" />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (faqs) {\n @for (category of objectKeys(faqs); track category; let idx1 = $index) {\n <div>\n @if (faqs[category]?.length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n @for (\n faq of faqs[category]; track trackByProductFaqId(idx,\n faq); let idx = $index) {\n <div class=\"faq-item\"\n >\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\n [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n @if (canEditFaq && faq?.id) {\n <a class=\"faq-edit-link\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + faq.id]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"sanitizedFaqAnswers[idx + '-' + idx1]\">\n </div>\n </div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (isLoaded && (totalRecords === 0 || allFaqFalse)) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Dashboard.Faq.NoData' | transloco\"> </pw-no-data>\n </div>\n }\n</div>\n",
|
|
346
|
+
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--pw-hairline: #e2e5ea;--public-btn-radius: 24px}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px solid rgb(224,224,224);background-color:#fff;border-radius:8px;margin:8px 0;overflow:hidden;transition:border-color .16s ease-out,box-shadow .16s ease-out}.faq-item:hover{border-color:#bdbdbd}.faq-item .dashboard-header{background:transparent;padding:0;display:flex;align-items:center;position:relative}.faq-item .dashboard-header:after{content:\"\\f078\";font-family:\"Font Awesome 5 Pro\",sans-serif;font-weight:600;font-size:13px;color:#9e9e9e;flex:0 0 auto;margin-left:auto;margin-right:18px;transition:transform .18s ease-out,color .18s ease-out}.faq-item .dashboard-header:hover:after{color:var(--titles)}.faq-item .dashboard-header:has(.accordion-toggle:not(.collapsed)):after{transform:rotate(180deg);color:var(--titles)}.faq-item .accordion-title{margin:0;flex:0 1 auto;min-width:0}.faq-item .faq-edit-link{position:relative;z-index:1;display:inline-flex;align-items:center;flex:0 0 auto;padding:14px 8px;text-decoration:none}.faq-item .faq-edit-link .edit-icon{font-size:14px}.faq-item .accordion-toggle{display:flex;align-items:center;padding:14px 4px 14px 18px;font-size:15px;font-weight:600;line-height:1.45;color:var(--titles);text-decoration:none;cursor:pointer}.faq-item .accordion-toggle:before{content:\"\"!important;position:absolute;inset:0;width:auto;padding:0}.faq-item .accordion-toggle:focus-visible{outline:2px solid var(--first);outline-offset:-2px}.faq-item .panel-collapse{padding:0!important}.faq-item .card-block{padding:4px 18px 16px;border-top:1px solid rgb(238,238,238)}.faq-item .ql-editor{font-size:14px;line-height:1.65;color:#616161;text-align:left}.document-btn{background-color:var(--second);border-color:var(--second)!important;color:#fff}.document-btn:hover{color:var(--second)!important;background-color:transparent!important}.card{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}h6{color:var(--titles)!important;font-size:17px;font-weight:700;letter-spacing:.04em;padding:0 0 10px!important;margin:32px 0 14px!important;border-bottom:1px solid rgb(224,224,224)}.accordion-title a{color:var(--titles)!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"]
|
|
342
347
|
}]
|
|
343
348
|
}],
|
|
344
349
|
ctorParameters: () => [
|
|
345
|
-
{ type: i1
|
|
350
|
+
{ type: i1.CommonService },
|
|
346
351
|
{ type: i0.Injector },
|
|
347
|
-
{ type: i1
|
|
348
|
-
{ type: i1$
|
|
352
|
+
{ type: i1.ProductService },
|
|
353
|
+
{ type: i1$1.DomSanitizer },
|
|
349
354
|
{ type: i0.ChangeDetectorRef }
|
|
350
355
|
]
|
|
351
356
|
});
|
|
@@ -436,9 +441,9 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
436
441
|
ngImport: i0,
|
|
437
442
|
type: FaqDetailsComponent,
|
|
438
443
|
deps: [
|
|
439
|
-
{ token: i1
|
|
444
|
+
{ token: i1.CommonService },
|
|
440
445
|
{ token: i0.Injector },
|
|
441
|
-
{ token: i1$
|
|
446
|
+
{ token: i1$1.DomSanitizer },
|
|
442
447
|
{ token: i0.ChangeDetectorRef }
|
|
443
448
|
],
|
|
444
449
|
target: i0.ɵɵFactoryTarget.Component
|
|
@@ -453,7 +458,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
453
458
|
selector: "pw-faq-details",
|
|
454
459
|
usesInheritance: true,
|
|
455
460
|
ngImport: i0,
|
|
456
|
-
template: "@if (!isLoading) {\n <div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\">\n <div class=\"content-quill-box\">\n <h2 [class.mb-3]=\"!showStatusBadges\" [class.mb-2]=\"showStatusBadges\">\n {{faq?.question}}\n @if (canEditFaq && editFaqId) {\n <a class=\"faq-edit-link ms-3\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + editFaqId]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </h2>\n @if (showStatusBadges) {\n <!-- `badge-soft` opts these out of Bootstrap's saturated fills and into\n the platform badge doctrine (admin-list-view §B-1..B-5: light tint +\n dark ink, status dot on success/danger, no dot on a taxonomy value).\n Defined once in @posiwise/core-styles — never restate the hexes. -->\n <div class=\"faq-status-badges d-flex flex-wrap align-items-center gap-2 mb-3\">\n @if (badges.categoryLabel) {\n <span class=\"badge badge-soft\"\n [appDynamicBadge]=\"{ itemsArray: badges.categoryKeys, item: badges.category }\"\n color=\"cyan\"\n [pTooltip]=\"badges.featureKeys.length ? badges.featureKeys.join(', ') : ''\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ badges.categoryLabel }}</span>\n }\n @if (badges.isPublic) {\n <span class=\"badge badge-soft bg-success\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Public' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Public' | transloco }}</span>\n }\n @if (badges.isHidden) {\n <span class=\"badge badge-soft bg-danger\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Hidden' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Hidden' | transloco }}</span>\n }\n </div>\n }\n <ng-container>\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer\">\n </div>\n </div>\n </ng-container>\n </div>\n @if (!faq && !isLoading) {\n <pw-no-data\n message=\"
|
|
461
|
+
template: "@if (!isLoading) {\n <div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\">\n <div class=\"content-quill-box\">\n <h2 [class.mb-3]=\"!showStatusBadges\" [class.mb-2]=\"showStatusBadges\">\n {{faq?.question}}\n @if (canEditFaq && editFaqId) {\n <a class=\"faq-edit-link ms-3\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + editFaqId]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </h2>\n @if (showStatusBadges) {\n <!-- `badge-soft` opts these out of Bootstrap's saturated fills and into\n the platform badge doctrine (admin-list-view §B-1..B-5: light tint +\n dark ink, status dot on success/danger, no dot on a taxonomy value).\n Defined once in @posiwise/core-styles — never restate the hexes. -->\n <div class=\"faq-status-badges d-flex flex-wrap align-items-center gap-2 mb-3\">\n @if (badges.categoryLabel) {\n <span class=\"badge badge-soft\"\n [appDynamicBadge]=\"{ itemsArray: badges.categoryKeys, item: badges.category }\"\n color=\"cyan\"\n [pTooltip]=\"badges.featureKeys.length ? badges.featureKeys.join(', ') : ''\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ badges.categoryLabel }}</span>\n }\n @if (badges.isPublic) {\n <span class=\"badge badge-soft bg-success\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Public' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Public' | transloco }}</span>\n }\n @if (badges.isHidden) {\n <span class=\"badge badge-soft bg-danger\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Hidden' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Hidden' | transloco }}</span>\n }\n </div>\n }\n <ng-container>\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer\">\n </div>\n </div>\n </ng-container>\n </div>\n @if (!faq && !isLoading) {\n <pw-no-data\n [message]=\"'Dashboard.Faq.NotFound' | transloco\">\n </pw-no-data>\n }\n <div class=\"text-end mt-3\">\n <button class=\"btn btn-outline-primary\"\n [routerLink]=\"['/',slug,'faq']\">{{ 'Dashboard.Faq.SeeAll' | transloco }}</button>\n </div>\n </div>\n}\n@if (isLoading) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n}\n",
|
|
457
462
|
styles: [".ql-container{resize:none!important}.faq-edit-link{text-decoration:none;vertical-align:middle}.faq-edit-link .edit-icon{font-size:16px}\n"],
|
|
458
463
|
dependencies: [
|
|
459
464
|
{
|
|
@@ -488,7 +493,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
488
493
|
},
|
|
489
494
|
{
|
|
490
495
|
kind: "component",
|
|
491
|
-
type: i2$
|
|
496
|
+
type: i2$3.ProgressSpinner,
|
|
492
497
|
selector: "p-progress-spinner, p-progressspinner",
|
|
493
498
|
inputs: [
|
|
494
499
|
"value",
|
|
@@ -502,7 +507,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
502
507
|
},
|
|
503
508
|
{
|
|
504
509
|
kind: "directive",
|
|
505
|
-
type: i5
|
|
510
|
+
type: i5.Tooltip,
|
|
506
511
|
selector: "[pTooltip]",
|
|
507
512
|
inputs: [
|
|
508
513
|
"tooltipPosition",
|
|
@@ -530,7 +535,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
530
535
|
},
|
|
531
536
|
{
|
|
532
537
|
kind: "component",
|
|
533
|
-
type: i6.NoDataComponent,
|
|
538
|
+
type: i6$1.NoDataComponent,
|
|
534
539
|
selector: "pw-no-data",
|
|
535
540
|
inputs: [
|
|
536
541
|
"message",
|
|
@@ -540,7 +545,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
540
545
|
},
|
|
541
546
|
{
|
|
542
547
|
kind: "pipe",
|
|
543
|
-
type:
|
|
548
|
+
type: i3$2.TranslocoPipe,
|
|
544
549
|
name: "transloco"
|
|
545
550
|
}
|
|
546
551
|
]
|
|
@@ -557,14 +562,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
557
562
|
args: [{
|
|
558
563
|
selector: "pw-faq-details",
|
|
559
564
|
standalone: false,
|
|
560
|
-
template: "@if (!isLoading) {\n <div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\">\n <div class=\"content-quill-box\">\n <h2 [class.mb-3]=\"!showStatusBadges\" [class.mb-2]=\"showStatusBadges\">\n {{faq?.question}}\n @if (canEditFaq && editFaqId) {\n <a class=\"faq-edit-link ms-3\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + editFaqId]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </h2>\n @if (showStatusBadges) {\n <!-- `badge-soft` opts these out of Bootstrap's saturated fills and into\n the platform badge doctrine (admin-list-view §B-1..B-5: light tint +\n dark ink, status dot on success/danger, no dot on a taxonomy value).\n Defined once in @posiwise/core-styles — never restate the hexes. -->\n <div class=\"faq-status-badges d-flex flex-wrap align-items-center gap-2 mb-3\">\n @if (badges.categoryLabel) {\n <span class=\"badge badge-soft\"\n [appDynamicBadge]=\"{ itemsArray: badges.categoryKeys, item: badges.category }\"\n color=\"cyan\"\n [pTooltip]=\"badges.featureKeys.length ? badges.featureKeys.join(', ') : ''\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ badges.categoryLabel }}</span>\n }\n @if (badges.isPublic) {\n <span class=\"badge badge-soft bg-success\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Public' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Public' | transloco }}</span>\n }\n @if (badges.isHidden) {\n <span class=\"badge badge-soft bg-danger\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Hidden' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Hidden' | transloco }}</span>\n }\n </div>\n }\n <ng-container>\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer\">\n </div>\n </div>\n </ng-container>\n </div>\n @if (!faq && !isLoading) {\n <pw-no-data\n message=\"
|
|
565
|
+
template: "@if (!isLoading) {\n <div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\">\n <div class=\"content-quill-box\">\n <h2 [class.mb-3]=\"!showStatusBadges\" [class.mb-2]=\"showStatusBadges\">\n {{faq?.question}}\n @if (canEditFaq && editFaqId) {\n <a class=\"faq-edit-link ms-3\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + editFaqId]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </h2>\n @if (showStatusBadges) {\n <!-- `badge-soft` opts these out of Bootstrap's saturated fills and into\n the platform badge doctrine (admin-list-view §B-1..B-5: light tint +\n dark ink, status dot on success/danger, no dot on a taxonomy value).\n Defined once in @posiwise/core-styles — never restate the hexes. -->\n <div class=\"faq-status-badges d-flex flex-wrap align-items-center gap-2 mb-3\">\n @if (badges.categoryLabel) {\n <span class=\"badge badge-soft\"\n [appDynamicBadge]=\"{ itemsArray: badges.categoryKeys, item: badges.category }\"\n color=\"cyan\"\n [pTooltip]=\"badges.featureKeys.length ? badges.featureKeys.join(', ') : ''\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ badges.categoryLabel }}</span>\n }\n @if (badges.isPublic) {\n <span class=\"badge badge-soft bg-success\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Public' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Public' | transloco }}</span>\n }\n @if (badges.isHidden) {\n <span class=\"badge badge-soft bg-danger\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Hidden' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Hidden' | transloco }}</span>\n }\n </div>\n }\n <ng-container>\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer\">\n </div>\n </div>\n </ng-container>\n </div>\n @if (!faq && !isLoading) {\n <pw-no-data\n [message]=\"'Dashboard.Faq.NotFound' | transloco\">\n </pw-no-data>\n }\n <div class=\"text-end mt-3\">\n <button class=\"btn btn-outline-primary\"\n [routerLink]=\"['/',slug,'faq']\">{{ 'Dashboard.Faq.SeeAll' | transloco }}</button>\n </div>\n </div>\n}\n@if (isLoading) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n}\n",
|
|
561
566
|
styles: [".ql-container{resize:none!important}.faq-edit-link{text-decoration:none;vertical-align:middle}.faq-edit-link .edit-icon{font-size:16px}\n"]
|
|
562
567
|
}]
|
|
563
568
|
}],
|
|
564
569
|
ctorParameters: () => [
|
|
565
|
-
{ type: i1
|
|
570
|
+
{ type: i1.CommonService },
|
|
566
571
|
{ type: i0.Injector },
|
|
567
|
-
{ type: i1$
|
|
572
|
+
{ type: i1$1.DomSanitizer },
|
|
568
573
|
{ type: i0.ChangeDetectorRef }
|
|
569
574
|
]
|
|
570
575
|
});
|
|
@@ -633,7 +638,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
|
|
|
633
638
|
type: UserFeedbackComponent,
|
|
634
639
|
deps: [
|
|
635
640
|
{ token: i0.Injector },
|
|
636
|
-
{ token: i1
|
|
641
|
+
{ token: i1.CommonService },
|
|
637
642
|
{ token: i0.ChangeDetectorRef }
|
|
638
643
|
],
|
|
639
644
|
target: i0.ɵɵFactoryTarget.Component
|
|
@@ -653,27 +658,27 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
|
|
|
653
658
|
dependencies: [
|
|
654
659
|
{
|
|
655
660
|
kind: "directive",
|
|
656
|
-
type: i2$
|
|
661
|
+
type: i2$2.ɵNgNoValidate,
|
|
657
662
|
selector: "form:not([ngNoForm]):not([ngNativeValidate])"
|
|
658
663
|
},
|
|
659
664
|
{
|
|
660
665
|
kind: "directive",
|
|
661
|
-
type: i2$
|
|
666
|
+
type: i2$2.DefaultValueAccessor,
|
|
662
667
|
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
663
668
|
},
|
|
664
669
|
{
|
|
665
670
|
kind: "directive",
|
|
666
|
-
type: i2$
|
|
671
|
+
type: i2$2.NgControlStatus,
|
|
667
672
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
668
673
|
},
|
|
669
674
|
{
|
|
670
675
|
kind: "directive",
|
|
671
|
-
type: i2$
|
|
676
|
+
type: i2$2.NgControlStatusGroup,
|
|
672
677
|
selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
|
|
673
678
|
},
|
|
674
679
|
{
|
|
675
680
|
kind: "directive",
|
|
676
|
-
type: i2$
|
|
681
|
+
type: i2$2.NgModel,
|
|
677
682
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
678
683
|
inputs: [
|
|
679
684
|
"name",
|
|
@@ -686,7 +691,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
|
|
|
686
691
|
},
|
|
687
692
|
{
|
|
688
693
|
kind: "directive",
|
|
689
|
-
type: i2$
|
|
694
|
+
type: i2$2.NgForm,
|
|
690
695
|
selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]",
|
|
691
696
|
inputs: ["ngFormOptions"],
|
|
692
697
|
outputs: ["ngSubmit"],
|
|
@@ -715,7 +720,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
|
|
|
715
720
|
},
|
|
716
721
|
{
|
|
717
722
|
kind: "pipe",
|
|
718
|
-
type:
|
|
723
|
+
type: i3$2.TranslocoPipe,
|
|
719
724
|
name: "transloco"
|
|
720
725
|
}
|
|
721
726
|
]
|
|
@@ -738,7 +743,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
738
743
|
}],
|
|
739
744
|
ctorParameters: () => [
|
|
740
745
|
{ type: i0.Injector },
|
|
741
|
-
{ type: i1
|
|
746
|
+
{ type: i1.CommonService },
|
|
742
747
|
{ type: i0.ChangeDetectorRef }
|
|
743
748
|
]
|
|
744
749
|
});
|
|
@@ -803,7 +808,7 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
|
|
|
803
808
|
type: HomeComponent,
|
|
804
809
|
deps: [
|
|
805
810
|
{ token: i0.Injector },
|
|
806
|
-
{ token: i1
|
|
811
|
+
{ token: i1.HopscotchService },
|
|
807
812
|
{ token: i0.ChangeDetectorRef },
|
|
808
813
|
{
|
|
809
814
|
token: HOME_PRODUCT_SECTIONS,
|
|
@@ -822,12 +827,12 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
|
|
|
822
827
|
selector: "pw-home",
|
|
823
828
|
usesInheritance: true,
|
|
824
829
|
ngImport: i0,
|
|
825
|
-
template: "<pw-user-feedback></pw-user-feedback>\n@if (productSections?.length) {\n @for (section of productSections; track section) {\n <ng-container *ngComponentOutlet=\"section\"></ng-container>\n }\n}\n<div class=\"row mt-3\">\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <div id=\"cards\"></div>\n <h3 class=\"mb-3\">{{'ManageYourAccount'|transloco}}</h3>\n <p>{{'ManageYourAccountDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/ManageYourAccount.png\"\n alt=\"
|
|
830
|
+
template: "<pw-user-feedback></pw-user-feedback>\n@if (productSections?.length) {\n @for (section of productSections; track section) {\n <ng-container *ngComponentOutlet=\"section\"></ng-container>\n }\n}\n<div class=\"row mt-3\">\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <div id=\"cards\"></div>\n <h3 class=\"mb-3\">{{'ManageYourAccount'|transloco}}</h3>\n <p>{{'ManageYourAccountDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/ManageYourAccount.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/account/details\"\n class=\"d-block\">{{'ManageYourAccount'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step2\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'UpdateYourProfile'|transloco}}</h3>\n <p>{{'UpdateYourProfileDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/UpdateYourProfile.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"['/members', userSlug]\"\n class=\"d-block\">{{'UpdateYourProfile'|transloco}}</a>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'CommunicationSettings'|transloco}}</h3>\n <p>\n {{'CommunicationSettingsDescription'|transloco}}\n </p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/CommunicationSettings.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/settings/communication\"\n class=\"d-block\">{{'GotoCommunicationSettings'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step3\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'NeedHelp'|transloco}}</h3>\n <p>{{'NeedHelpDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/NeedHelp.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"'/' + selectedSubscriptionSlug + '/faq'\"\n class=\"d-block\">{{'SeeAllOurFaq'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step4\"></div>\n </div>\n </div>\n </div>\n</div>\n",
|
|
826
831
|
styles: ["::ng-deep .hopscotch-title{text-align:center!important;margin-bottom:20px!important}::ng-deep .hopscotch-title h2{margin:0}::ng-deep .hopscotch-content{text-align:center;padding:20px;margin:0!important}::ng-deep .hopscotch-content img{width:150px;margin:20px 0}::ng-deep .hopscotch-content p{font-size:16px;color:#555}::ng-deep .hopscotch-step-title{text-align:left;margin-bottom:15px}::ng-deep .hopscotch-step-content{padding:20px;text-align:left!important}::ng-deep .hopscotch-step-content p{font-size:14px;color:#555;margin-bottom:10px;text-align:left!important}\n"],
|
|
827
832
|
dependencies: [
|
|
828
833
|
{
|
|
829
834
|
kind: "directive",
|
|
830
|
-
type: i2.NgComponentOutlet,
|
|
835
|
+
type: i2$1.NgComponentOutlet,
|
|
831
836
|
selector: "[ngComponentOutlet]",
|
|
832
837
|
inputs: [
|
|
833
838
|
"ngComponentOutlet",
|
|
@@ -870,7 +875,7 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
|
|
|
870
875
|
},
|
|
871
876
|
{
|
|
872
877
|
kind: "pipe",
|
|
873
|
-
type:
|
|
878
|
+
type: i3$2.TranslocoPipe,
|
|
874
879
|
name: "transloco"
|
|
875
880
|
}
|
|
876
881
|
]
|
|
@@ -887,13 +892,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
887
892
|
args: [{
|
|
888
893
|
selector: "pw-home",
|
|
889
894
|
standalone: false,
|
|
890
|
-
template: "<pw-user-feedback></pw-user-feedback>\n@if (productSections?.length) {\n @for (section of productSections; track section) {\n <ng-container *ngComponentOutlet=\"section\"></ng-container>\n }\n}\n<div class=\"row mt-3\">\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <div id=\"cards\"></div>\n <h3 class=\"mb-3\">{{'ManageYourAccount'|transloco}}</h3>\n <p>{{'ManageYourAccountDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/ManageYourAccount.png\"\n alt=\"
|
|
895
|
+
template: "<pw-user-feedback></pw-user-feedback>\n@if (productSections?.length) {\n @for (section of productSections; track section) {\n <ng-container *ngComponentOutlet=\"section\"></ng-container>\n }\n}\n<div class=\"row mt-3\">\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <div id=\"cards\"></div>\n <h3 class=\"mb-3\">{{'ManageYourAccount'|transloco}}</h3>\n <p>{{'ManageYourAccountDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/ManageYourAccount.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/account/details\"\n class=\"d-block\">{{'ManageYourAccount'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step2\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'UpdateYourProfile'|transloco}}</h3>\n <p>{{'UpdateYourProfileDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/UpdateYourProfile.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"['/members', userSlug]\"\n class=\"d-block\">{{'UpdateYourProfile'|transloco}}</a>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'CommunicationSettings'|transloco}}</h3>\n <p>\n {{'CommunicationSettingsDescription'|transloco}}\n </p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/CommunicationSettings.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/settings/communication\"\n class=\"d-block\">{{'GotoCommunicationSettings'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step3\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'NeedHelp'|transloco}}</h3>\n <p>{{'NeedHelpDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/NeedHelp.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"'/' + selectedSubscriptionSlug + '/faq'\"\n class=\"d-block\">{{'SeeAllOurFaq'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step4\"></div>\n </div>\n </div>\n </div>\n</div>\n",
|
|
891
896
|
styles: ["::ng-deep .hopscotch-title{text-align:center!important;margin-bottom:20px!important}::ng-deep .hopscotch-title h2{margin:0}::ng-deep .hopscotch-content{text-align:center;padding:20px;margin:0!important}::ng-deep .hopscotch-content img{width:150px;margin:20px 0}::ng-deep .hopscotch-content p{font-size:16px;color:#555}::ng-deep .hopscotch-step-title{text-align:left;margin-bottom:15px}::ng-deep .hopscotch-step-content{padding:20px;text-align:left!important}::ng-deep .hopscotch-step-content p{font-size:14px;color:#555;margin-bottom:10px;text-align:left!important}\n"]
|
|
892
897
|
}]
|
|
893
898
|
}],
|
|
894
899
|
ctorParameters: () => [
|
|
895
900
|
{ type: i0.Injector },
|
|
896
|
-
{ type: i1
|
|
901
|
+
{ type: i1.HopscotchService },
|
|
897
902
|
{ type: i0.ChangeDetectorRef },
|
|
898
903
|
{
|
|
899
904
|
type: void 0,
|
|
@@ -904,12 +909,30 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
904
909
|
}
|
|
905
910
|
]
|
|
906
911
|
});
|
|
912
|
+
function rowAction(host, id, action, request, cdr) {
|
|
913
|
+
host.busyId = id;
|
|
914
|
+
host.busyAction = action;
|
|
915
|
+
cdr.markForCheck();
|
|
916
|
+
return request.pipe(finalize(() => {
|
|
917
|
+
host.busyId = null;
|
|
918
|
+
host.busyAction = null;
|
|
919
|
+
cdr.markForCheck();
|
|
920
|
+
}));
|
|
921
|
+
}
|
|
922
|
+
function applyReadEvent(notes, event) {
|
|
923
|
+
notes.filter((note) => event.id === "all" || note.id === event.id).forEach((note) => note.unread = false);
|
|
924
|
+
}
|
|
907
925
|
var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
908
|
-
constructor(notificationService, cdr) {
|
|
926
|
+
constructor(notificationService, opener, cdr) {
|
|
909
927
|
this.notificationService = notificationService;
|
|
928
|
+
this.opener = opener;
|
|
910
929
|
this.cdr = cdr;
|
|
930
|
+
this.moved = new EventEmitter();
|
|
911
931
|
this.notificationCount = 0;
|
|
912
932
|
this.noNoti = true;
|
|
933
|
+
this.busyId = null;
|
|
934
|
+
this.busyAction = null;
|
|
935
|
+
this.destroyRef = inject(DestroyRef);
|
|
913
936
|
this.itemsPerPage = 100;
|
|
914
937
|
this.notifications = [];
|
|
915
938
|
this.currentPage = 1;
|
|
@@ -919,9 +942,13 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
|
919
942
|
}
|
|
920
943
|
ngOnInit() {
|
|
921
944
|
this.getNotifications();
|
|
945
|
+
this.notificationService.noteRead$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((event) => {
|
|
946
|
+
applyReadEvent(this.notifications, event);
|
|
947
|
+
this.cdr.markForCheck();
|
|
948
|
+
});
|
|
922
949
|
}
|
|
923
950
|
getNotifications() {
|
|
924
|
-
this.notificationService.
|
|
951
|
+
this.notificationService.getCurrentNotifications({
|
|
925
952
|
page: this.currentPage,
|
|
926
953
|
page_size: this.itemsPerPage
|
|
927
954
|
}).subscribe((data) => {
|
|
@@ -951,16 +978,17 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
|
951
978
|
}
|
|
952
979
|
}
|
|
953
980
|
dismiss(id, e) {
|
|
954
|
-
this.
|
|
955
|
-
|
|
956
|
-
this.notifications.splice(
|
|
957
|
-
|
|
958
|
-
this.
|
|
959
|
-
|
|
960
|
-
$("#noty").remove();
|
|
961
|
-
});
|
|
981
|
+
if (this.busyId !== null) return;
|
|
982
|
+
rowAction(this, id, "dismiss", this.notificationService.dismissNotification(id), this.cdr).subscribe(() => {
|
|
983
|
+
this.notifications.splice(this.notifications.indexOf(e), 1);
|
|
984
|
+
this.noNoti = this.notifications.length === 0;
|
|
985
|
+
this.totalRecords = Math.max(0, this.totalRecords - 1);
|
|
986
|
+
this.moved.emit("dismissed");
|
|
962
987
|
});
|
|
963
988
|
}
|
|
989
|
+
open(note) {
|
|
990
|
+
this.opener.open(note);
|
|
991
|
+
}
|
|
964
992
|
trackByNotification(_index, item) {
|
|
965
993
|
return item.id;
|
|
966
994
|
}
|
|
@@ -970,7 +998,11 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
|
970
998
|
version: "22.2.3",
|
|
971
999
|
ngImport: i0,
|
|
972
1000
|
type: CurrentNotificationsComponent,
|
|
973
|
-
deps: [
|
|
1001
|
+
deps: [
|
|
1002
|
+
{ token: i1.NotificationService },
|
|
1003
|
+
{ token: i6$1.NotificationOpenerService },
|
|
1004
|
+
{ token: i0.ChangeDetectorRef }
|
|
1005
|
+
],
|
|
974
1006
|
target: i0.ɵɵFactoryTarget.Component
|
|
975
1007
|
});
|
|
976
1008
|
}
|
|
@@ -981,19 +1013,20 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
|
981
1013
|
type: CurrentNotificationsComponent,
|
|
982
1014
|
isStandalone: false,
|
|
983
1015
|
selector: "pw-current-notifications",
|
|
1016
|
+
outputs: { moved: "moved" },
|
|
984
1017
|
ngImport: i0,
|
|
985
|
-
template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (notifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of notifications; track trackByNotification($index, item)) {\n <li\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\"
|
|
986
|
-
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}}.pagination-container{padding:0 1rem}\n"],
|
|
1018
|
+
template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (notifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of notifications; track trackByNotification($index, item)) {\n <li\n [class.noti-read]=\"!item.unread\"\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 role=\"button\"\n tabindex=\"0\"\n (click)=\"open(item)\"\n (keydown.enter)=\"open(item)\">\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 type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Navbar.DismissNotifications' | transloco\"\n [attr.aria-busy]=\"busyId === item.id\"\n (click)=\"dismiss(item.id, item)\">\n @if (busyId === item.id) {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"far fa-trash-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>{{ 'Dashboard.Notifications.PageOf' | transloco: { currentPage: currentPage, totalPages: totalPages } }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" [message]=\"'Navbar.AllCaughtUp' | transloco\" [description]=\"'Navbar.NoNotifications' | transloco\">\n </pw-no-data>\n </div>\n}\n</div>\n",
|
|
1019
|
+
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}.noty-body{cursor:pointer}.noty-body .noti-text{width:auto}.noti-read{opacity:.6}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"],
|
|
987
1020
|
dependencies: [
|
|
988
1021
|
{
|
|
989
1022
|
kind: "directive",
|
|
990
|
-
type: i2.NgClass,
|
|
1023
|
+
type: i2$1.NgClass,
|
|
991
1024
|
selector: "[ngClass]",
|
|
992
1025
|
inputs: ["class", "ngClass"]
|
|
993
1026
|
},
|
|
994
1027
|
{
|
|
995
1028
|
kind: "component",
|
|
996
|
-
type: i2$
|
|
1029
|
+
type: i2$3.ProgressSpinner,
|
|
997
1030
|
selector: "p-progress-spinner, p-progressspinner",
|
|
998
1031
|
inputs: [
|
|
999
1032
|
"value",
|
|
@@ -1007,7 +1040,7 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
|
1007
1040
|
},
|
|
1008
1041
|
{
|
|
1009
1042
|
kind: "component",
|
|
1010
|
-
type: i6.NoDataComponent,
|
|
1043
|
+
type: i6$1.NoDataComponent,
|
|
1011
1044
|
selector: "pw-no-data",
|
|
1012
1045
|
inputs: [
|
|
1013
1046
|
"message",
|
|
@@ -1017,13 +1050,18 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
|
1017
1050
|
},
|
|
1018
1051
|
{
|
|
1019
1052
|
kind: "component",
|
|
1020
|
-
type: i6.RecordsSummaryComponent,
|
|
1053
|
+
type: i6$1.RecordsSummaryComponent,
|
|
1021
1054
|
selector: "pw-records-summary",
|
|
1022
1055
|
inputs: ["showing", "total"]
|
|
1023
1056
|
},
|
|
1024
1057
|
{
|
|
1025
1058
|
kind: "pipe",
|
|
1026
|
-
type:
|
|
1059
|
+
type: i3$2.TranslocoPipe,
|
|
1060
|
+
name: "transloco"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
kind: "pipe",
|
|
1064
|
+
type: i6.SinceAgoPipe,
|
|
1027
1065
|
name: "sinceAgo"
|
|
1028
1066
|
}
|
|
1029
1067
|
]
|
|
@@ -1040,18 +1078,29 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1040
1078
|
args: [{
|
|
1041
1079
|
selector: "pw-current-notifications",
|
|
1042
1080
|
standalone: false,
|
|
1043
|
-
template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (notifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of notifications; track trackByNotification($index, item)) {\n <li\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\"
|
|
1044
|
-
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}}.pagination-container{padding:0 1rem}\n"]
|
|
1081
|
+
template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (notifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of notifications; track trackByNotification($index, item)) {\n <li\n [class.noti-read]=\"!item.unread\"\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 role=\"button\"\n tabindex=\"0\"\n (click)=\"open(item)\"\n (keydown.enter)=\"open(item)\">\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 type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Navbar.DismissNotifications' | transloco\"\n [attr.aria-busy]=\"busyId === item.id\"\n (click)=\"dismiss(item.id, item)\">\n @if (busyId === item.id) {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"far fa-trash-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>{{ 'Dashboard.Notifications.PageOf' | transloco: { currentPage: currentPage, totalPages: totalPages } }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" [message]=\"'Navbar.AllCaughtUp' | transloco\" [description]=\"'Navbar.NoNotifications' | transloco\">\n </pw-no-data>\n </div>\n}\n</div>\n",
|
|
1082
|
+
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}.noty-body{cursor:pointer}.noty-body .noti-text{width:auto}.noti-read{opacity:.6}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"]
|
|
1045
1083
|
}]
|
|
1046
1084
|
}],
|
|
1047
|
-
ctorParameters: () => [
|
|
1085
|
+
ctorParameters: () => [
|
|
1086
|
+
{ type: i1.NotificationService },
|
|
1087
|
+
{ type: i6$1.NotificationOpenerService },
|
|
1088
|
+
{ type: i0.ChangeDetectorRef }
|
|
1089
|
+
],
|
|
1090
|
+
propDecorators: { moved: [{ type: Output }] }
|
|
1048
1091
|
});
|
|
1049
1092
|
var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
1050
|
-
constructor(notificationService, cdr) {
|
|
1093
|
+
constructor(notificationService, opener, confirmDialog, cdr) {
|
|
1051
1094
|
this.notificationService = notificationService;
|
|
1095
|
+
this.opener = opener;
|
|
1096
|
+
this.confirmDialog = confirmDialog;
|
|
1052
1097
|
this.cdr = cdr;
|
|
1098
|
+
this.moved = new EventEmitter();
|
|
1053
1099
|
this.notificationCount = 0;
|
|
1054
1100
|
this.noNoti = true;
|
|
1101
|
+
this.busyId = null;
|
|
1102
|
+
this.busyAction = null;
|
|
1103
|
+
this.destroyRef = inject(DestroyRef);
|
|
1055
1104
|
this.dismissedNotifications = [];
|
|
1056
1105
|
this.isLoaded = false;
|
|
1057
1106
|
this.itemsPerPage = 100;
|
|
@@ -1061,6 +1110,10 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
|
1061
1110
|
}
|
|
1062
1111
|
ngOnInit() {
|
|
1063
1112
|
this.getNotifications();
|
|
1113
|
+
this.notificationService.noteRead$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((event) => {
|
|
1114
|
+
applyReadEvent(this.dismissedNotifications, event);
|
|
1115
|
+
this.cdr.markForCheck();
|
|
1116
|
+
});
|
|
1064
1117
|
}
|
|
1065
1118
|
getNotifications() {
|
|
1066
1119
|
this.notificationService.getDismissedNotifications({
|
|
@@ -1092,29 +1145,26 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
|
1092
1145
|
}
|
|
1093
1146
|
}
|
|
1094
1147
|
dismiss(id, e) {
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
this.dismissedNotifications.splice(index, 1);
|
|
1099
|
-
if (this.dismissedNotifications.length === 0) this.noNoti = true;
|
|
1100
|
-
this.cdr.markForCheck();
|
|
1101
|
-
$("#noty").slideUp("slow", () => {
|
|
1102
|
-
$("#noty").remove();
|
|
1103
|
-
});
|
|
1104
|
-
});
|
|
1148
|
+
if (this.busyId !== null) return;
|
|
1149
|
+
this.confirmDialog.confirmDelete().then((ok) => {
|
|
1150
|
+
if (ok) this.removeAfter(id, e, "delete", this.notificationService.deleteNotifications(id), "deleted");
|
|
1105
1151
|
});
|
|
1106
1152
|
}
|
|
1107
1153
|
restoreNotification(id, e) {
|
|
1108
|
-
this.
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1154
|
+
if (this.busyId !== null) return;
|
|
1155
|
+
this.removeAfter(id, e, "restore", this.notificationService.reinstateNotification(id), "restored");
|
|
1156
|
+
}
|
|
1157
|
+
removeAfter(id, e, action, request, outcome) {
|
|
1158
|
+
rowAction(this, id, action, request, this.cdr).subscribe(() => {
|
|
1159
|
+
this.dismissedNotifications.splice(this.dismissedNotifications.indexOf(e), 1);
|
|
1160
|
+
this.noNoti = this.dismissedNotifications.length === 0;
|
|
1161
|
+
this.totalRecords = Math.max(0, this.totalRecords - 1);
|
|
1162
|
+
this.moved.emit(outcome);
|
|
1116
1163
|
});
|
|
1117
1164
|
}
|
|
1165
|
+
open(note) {
|
|
1166
|
+
this.opener.open(note);
|
|
1167
|
+
}
|
|
1118
1168
|
trackByNotification(_index, item) {
|
|
1119
1169
|
return item.id;
|
|
1120
1170
|
}
|
|
@@ -1124,7 +1174,12 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
|
1124
1174
|
version: "22.2.3",
|
|
1125
1175
|
ngImport: i0,
|
|
1126
1176
|
type: DismissedNotificationsComponent,
|
|
1127
|
-
deps: [
|
|
1177
|
+
deps: [
|
|
1178
|
+
{ token: i1.NotificationService },
|
|
1179
|
+
{ token: i6$1.NotificationOpenerService },
|
|
1180
|
+
{ token: i6$1.ConfirmDialogService },
|
|
1181
|
+
{ token: i0.ChangeDetectorRef }
|
|
1182
|
+
],
|
|
1128
1183
|
target: i0.ɵɵFactoryTarget.Component
|
|
1129
1184
|
});
|
|
1130
1185
|
}
|
|
@@ -1135,19 +1190,20 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
|
1135
1190
|
type: DismissedNotificationsComponent,
|
|
1136
1191
|
isStandalone: false,
|
|
1137
1192
|
selector: "pw-dismissed-notifications",
|
|
1193
|
+
outputs: { moved: "moved" },
|
|
1138
1194
|
ngImport: i0,
|
|
1139
|
-
template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (dismissedNotifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of dismissedNotifications; track trackByNotification($index, item)) {\n <li\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\"
|
|
1140
|
-
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}}.pagination-container{padding:0 1rem}\n"],
|
|
1195
|
+
template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (dismissedNotifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of dismissedNotifications; track trackByNotification($index, item)) {\n <li\n [class.noti-read]=\"!item.unread\"\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 role=\"button\"\n tabindex=\"0\"\n (click)=\"open(item)\"\n (keydown.enter)=\"open(item)\">\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 type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Button.Delete' | transloco\"\n [attr.aria-busy]=\"busyId === item.id && busyAction === 'delete'\"\n (click)=\"dismiss(item.id, item)\">\n @if (busyId === item.id && busyAction === 'delete') {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"far fa-trash-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n <button type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Dashboard.Notifications.Restore' | transloco\"\n [attr.aria-busy]=\"busyId === item.id && busyAction === 'restore'\"\n (click)=\"restoreNotification(item.id, item)\">\n @if (busyId === item.id && busyAction === 'restore') {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"fas fa-trash-restore-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>{{ 'Dashboard.Notifications.PageOf' | transloco: { currentPage: currentPage, totalPages: totalPages } }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" [message]=\"'Dashboard.Notifications.NoDismissed' | transloco\">\n </pw-no-data>\n </div>\n}\n</div>\n",
|
|
1196
|
+
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}.noty-body{cursor:pointer}.noty-body .noti-text{width:auto}.noti-read{opacity:.6}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"],
|
|
1141
1197
|
dependencies: [
|
|
1142
1198
|
{
|
|
1143
1199
|
kind: "directive",
|
|
1144
|
-
type: i2.NgClass,
|
|
1200
|
+
type: i2$1.NgClass,
|
|
1145
1201
|
selector: "[ngClass]",
|
|
1146
1202
|
inputs: ["class", "ngClass"]
|
|
1147
1203
|
},
|
|
1148
1204
|
{
|
|
1149
1205
|
kind: "component",
|
|
1150
|
-
type: i2$
|
|
1206
|
+
type: i2$3.ProgressSpinner,
|
|
1151
1207
|
selector: "p-progress-spinner, p-progressspinner",
|
|
1152
1208
|
inputs: [
|
|
1153
1209
|
"value",
|
|
@@ -1161,7 +1217,7 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
|
1161
1217
|
},
|
|
1162
1218
|
{
|
|
1163
1219
|
kind: "component",
|
|
1164
|
-
type: i6.NoDataComponent,
|
|
1220
|
+
type: i6$1.NoDataComponent,
|
|
1165
1221
|
selector: "pw-no-data",
|
|
1166
1222
|
inputs: [
|
|
1167
1223
|
"message",
|
|
@@ -1171,13 +1227,18 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
|
1171
1227
|
},
|
|
1172
1228
|
{
|
|
1173
1229
|
kind: "component",
|
|
1174
|
-
type: i6.RecordsSummaryComponent,
|
|
1230
|
+
type: i6$1.RecordsSummaryComponent,
|
|
1175
1231
|
selector: "pw-records-summary",
|
|
1176
1232
|
inputs: ["showing", "total"]
|
|
1177
1233
|
},
|
|
1178
1234
|
{
|
|
1179
1235
|
kind: "pipe",
|
|
1180
|
-
type:
|
|
1236
|
+
type: i3$2.TranslocoPipe,
|
|
1237
|
+
name: "transloco"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
kind: "pipe",
|
|
1241
|
+
type: i6.SinceAgoPipe,
|
|
1181
1242
|
name: "sinceAgo"
|
|
1182
1243
|
}
|
|
1183
1244
|
]
|
|
@@ -1194,42 +1255,72 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1194
1255
|
args: [{
|
|
1195
1256
|
selector: "pw-dismissed-notifications",
|
|
1196
1257
|
standalone: false,
|
|
1197
|
-
template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (dismissedNotifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of dismissedNotifications; track trackByNotification($index, item)) {\n <li\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\"
|
|
1198
|
-
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}}.pagination-container{padding:0 1rem}\n"]
|
|
1258
|
+
template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (dismissedNotifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of dismissedNotifications; track trackByNotification($index, item)) {\n <li\n [class.noti-read]=\"!item.unread\"\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 role=\"button\"\n tabindex=\"0\"\n (click)=\"open(item)\"\n (keydown.enter)=\"open(item)\">\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 type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Button.Delete' | transloco\"\n [attr.aria-busy]=\"busyId === item.id && busyAction === 'delete'\"\n (click)=\"dismiss(item.id, item)\">\n @if (busyId === item.id && busyAction === 'delete') {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"far fa-trash-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n <button type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Dashboard.Notifications.Restore' | transloco\"\n [attr.aria-busy]=\"busyId === item.id && busyAction === 'restore'\"\n (click)=\"restoreNotification(item.id, item)\">\n @if (busyId === item.id && busyAction === 'restore') {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"fas fa-trash-restore-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>{{ 'Dashboard.Notifications.PageOf' | transloco: { currentPage: currentPage, totalPages: totalPages } }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" [message]=\"'Dashboard.Notifications.NoDismissed' | transloco\">\n </pw-no-data>\n </div>\n}\n</div>\n",
|
|
1259
|
+
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}.noty-body{cursor:pointer}.noty-body .noti-text{width:auto}.noti-read{opacity:.6}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"]
|
|
1199
1260
|
}]
|
|
1200
1261
|
}],
|
|
1201
|
-
ctorParameters: () => [
|
|
1262
|
+
ctorParameters: () => [
|
|
1263
|
+
{ type: i1.NotificationService },
|
|
1264
|
+
{ type: i6$1.NotificationOpenerService },
|
|
1265
|
+
{ type: i6$1.ConfirmDialogService },
|
|
1266
|
+
{ type: i0.ChangeDetectorRef }
|
|
1267
|
+
],
|
|
1268
|
+
propDecorators: { moved: [{ type: Output }] }
|
|
1202
1269
|
});
|
|
1203
1270
|
var NotificationsPageComponent = class NotificationsPageComponent {
|
|
1271
|
+
constructor(notificationService, cdr) {
|
|
1272
|
+
this.notificationService = notificationService;
|
|
1273
|
+
this.cdr = cdr;
|
|
1274
|
+
this.counts = null;
|
|
1275
|
+
}
|
|
1276
|
+
ngOnInit() {
|
|
1277
|
+
this.notificationService.getNotificationCounts().subscribe((counts) => {
|
|
1278
|
+
this.counts = counts;
|
|
1279
|
+
this.cdr.markForCheck();
|
|
1280
|
+
});
|
|
1281
|
+
}
|
|
1282
|
+
onMoved(moved) {
|
|
1283
|
+
if (!this.counts) return;
|
|
1284
|
+
const step = {
|
|
1285
|
+
dismissed: [-1, 1],
|
|
1286
|
+
restored: [1, -1],
|
|
1287
|
+
deleted: [0, -1]
|
|
1288
|
+
}[moved];
|
|
1289
|
+
this.counts = {
|
|
1290
|
+
current: Math.max(0, this.counts.current + step[0]),
|
|
1291
|
+
dismissed: Math.max(0, this.counts.dismissed + step[1])
|
|
1292
|
+
};
|
|
1293
|
+
this.cdr.markForCheck();
|
|
1294
|
+
}
|
|
1204
1295
|
static {
|
|
1205
1296
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1206
1297
|
minVersion: "12.0.0",
|
|
1207
1298
|
version: "22.2.3",
|
|
1208
1299
|
ngImport: i0,
|
|
1209
1300
|
type: NotificationsPageComponent,
|
|
1210
|
-
deps: [],
|
|
1301
|
+
deps: [{ token: i1.NotificationService }, { token: i0.ChangeDetectorRef }],
|
|
1211
1302
|
target: i0.ɵɵFactoryTarget.Component
|
|
1212
1303
|
});
|
|
1213
1304
|
}
|
|
1214
1305
|
static {
|
|
1215
1306
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1216
|
-
minVersion: "
|
|
1307
|
+
minVersion: "17.0.0",
|
|
1217
1308
|
version: "22.2.3",
|
|
1218
1309
|
type: NotificationsPageComponent,
|
|
1219
1310
|
isStandalone: false,
|
|
1220
1311
|
selector: "pw-notifications-page",
|
|
1221
1312
|
ngImport: i0,
|
|
1222
|
-
template: "<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12 mt-4\">\n <h2 class=\"p-2\">Notifications</h2>\n </div>\n</div>\n\n<ul ngbNav\n #nav=\"ngbNav\"\n class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\">\n <a ngbNavLink
|
|
1223
|
-
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}}.pagination-container{padding:0 1rem}\n"],
|
|
1313
|
+
template: "<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12 mt-4\">\n <h2 class=\"p-2\">{{ 'Navbar.Notifications' | transloco }}</h2>\n </div>\n</div>\n\n<ul ngbNav\n #nav=\"ngbNav\"\n class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\">\n <a ngbNavLink>\n {{ 'Dashboard.Notifications.Tabs.Current' | transloco }}\n @if (counts) {\n <span class=\"badge badge-soft bg-blue-grey ms-2\">{{ counts.current }}</span>\n }\n </a>\n <ng-template ngbNavContent>\n <pw-current-notifications (moved)=\"onMoved($event)\"></pw-current-notifications>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"2\">\n <a ngbNavLink>\n {{ 'Dashboard.Notifications.Tabs.Dismissed' | transloco }}\n @if (counts) {\n <span class=\"badge badge-soft bg-blue-grey ms-2\">{{ counts.dismissed }}</span>\n }\n </a>\n <ng-template ngbNavContent>\n <pw-dismissed-notifications (moved)=\"onMoved($event)\"></pw-dismissed-notifications>\n </ng-template>\n </li>\n</ul>\n\n<div [ngbNavOutlet]=\"nav\"></div>\n",
|
|
1314
|
+
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}.noty-body{cursor:pointer}.noty-body .noti-text{width:auto}.noti-read{opacity:.6}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"],
|
|
1224
1315
|
dependencies: [
|
|
1225
1316
|
{
|
|
1226
1317
|
kind: "directive",
|
|
1227
|
-
type:
|
|
1318
|
+
type: i2.NgbNavContent,
|
|
1228
1319
|
selector: "ng-template[ngbNavContent]"
|
|
1229
1320
|
},
|
|
1230
1321
|
{
|
|
1231
1322
|
kind: "directive",
|
|
1232
|
-
type:
|
|
1323
|
+
type: i2.NgbNav,
|
|
1233
1324
|
selector: "[ngbNav]",
|
|
1234
1325
|
inputs: [
|
|
1235
1326
|
"activeId",
|
|
@@ -1249,7 +1340,7 @@ var NotificationsPageComponent = class NotificationsPageComponent {
|
|
|
1249
1340
|
},
|
|
1250
1341
|
{
|
|
1251
1342
|
kind: "directive",
|
|
1252
|
-
type:
|
|
1343
|
+
type: i2.NgbNavItem,
|
|
1253
1344
|
selector: "[ngbNavItem]",
|
|
1254
1345
|
inputs: [
|
|
1255
1346
|
"destroyOnHide",
|
|
@@ -1262,34 +1353,41 @@ var NotificationsPageComponent = class NotificationsPageComponent {
|
|
|
1262
1353
|
},
|
|
1263
1354
|
{
|
|
1264
1355
|
kind: "directive",
|
|
1265
|
-
type:
|
|
1356
|
+
type: i2.NgbNavItemRole,
|
|
1266
1357
|
selector: "[ngbNavItem]:not(ng-container)"
|
|
1267
1358
|
},
|
|
1268
1359
|
{
|
|
1269
1360
|
kind: "directive",
|
|
1270
|
-
type:
|
|
1361
|
+
type: i2.NgbNavLink,
|
|
1271
1362
|
selector: "a[ngbNavLink]"
|
|
1272
1363
|
},
|
|
1273
1364
|
{
|
|
1274
1365
|
kind: "directive",
|
|
1275
|
-
type:
|
|
1366
|
+
type: i2.NgbNavLinkBase,
|
|
1276
1367
|
selector: "[ngbNavLink]"
|
|
1277
1368
|
},
|
|
1278
1369
|
{
|
|
1279
1370
|
kind: "component",
|
|
1280
|
-
type:
|
|
1371
|
+
type: i2.NgbNavOutlet,
|
|
1281
1372
|
selector: "[ngbNavOutlet]",
|
|
1282
1373
|
inputs: ["paneRole", "ngbNavOutlet"]
|
|
1283
1374
|
},
|
|
1284
1375
|
{
|
|
1285
1376
|
kind: "component",
|
|
1286
1377
|
type: CurrentNotificationsComponent,
|
|
1287
|
-
selector: "pw-current-notifications"
|
|
1378
|
+
selector: "pw-current-notifications",
|
|
1379
|
+
outputs: ["moved"]
|
|
1288
1380
|
},
|
|
1289
1381
|
{
|
|
1290
1382
|
kind: "component",
|
|
1291
1383
|
type: DismissedNotificationsComponent,
|
|
1292
|
-
selector: "pw-dismissed-notifications"
|
|
1384
|
+
selector: "pw-dismissed-notifications",
|
|
1385
|
+
outputs: ["moved"]
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
kind: "pipe",
|
|
1389
|
+
type: i3$2.TranslocoPipe,
|
|
1390
|
+
name: "transloco"
|
|
1293
1391
|
}
|
|
1294
1392
|
]
|
|
1295
1393
|
});
|
|
@@ -1305,10 +1403,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1305
1403
|
args: [{
|
|
1306
1404
|
selector: "pw-notifications-page",
|
|
1307
1405
|
standalone: false,
|
|
1308
|
-
template: "<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12 mt-4\">\n <h2 class=\"p-2\">Notifications</h2>\n </div>\n</div>\n\n<ul ngbNav\n #nav=\"ngbNav\"\n class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\">\n <a ngbNavLink
|
|
1309
|
-
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}}.pagination-container{padding:0 1rem}\n"]
|
|
1406
|
+
template: "<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12 mt-4\">\n <h2 class=\"p-2\">{{ 'Navbar.Notifications' | transloco }}</h2>\n </div>\n</div>\n\n<ul ngbNav\n #nav=\"ngbNav\"\n class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\">\n <a ngbNavLink>\n {{ 'Dashboard.Notifications.Tabs.Current' | transloco }}\n @if (counts) {\n <span class=\"badge badge-soft bg-blue-grey ms-2\">{{ counts.current }}</span>\n }\n </a>\n <ng-template ngbNavContent>\n <pw-current-notifications (moved)=\"onMoved($event)\"></pw-current-notifications>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"2\">\n <a ngbNavLink>\n {{ 'Dashboard.Notifications.Tabs.Dismissed' | transloco }}\n @if (counts) {\n <span class=\"badge badge-soft bg-blue-grey ms-2\">{{ counts.dismissed }}</span>\n }\n </a>\n <ng-template ngbNavContent>\n <pw-dismissed-notifications (moved)=\"onMoved($event)\"></pw-dismissed-notifications>\n </ng-template>\n </li>\n</ul>\n\n<div [ngbNavOutlet]=\"nav\"></div>\n",
|
|
1407
|
+
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}.noty-body{cursor:pointer}.noty-body .noti-text{width:auto}.noti-read{opacity:.6}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"]
|
|
1310
1408
|
}]
|
|
1311
|
-
}]
|
|
1409
|
+
}],
|
|
1410
|
+
ctorParameters: () => [{ type: i1.NotificationService }, { type: i0.ChangeDetectorRef }]
|
|
1312
1411
|
});
|
|
1313
1412
|
var SearchComponent = class SearchComponent {
|
|
1314
1413
|
constructor(route, service, cdr) {
|
|
@@ -1391,7 +1490,7 @@ var SearchComponent = class SearchComponent {
|
|
|
1391
1490
|
type: SearchComponent,
|
|
1392
1491
|
deps: [
|
|
1393
1492
|
{ token: i3$1.ActivatedRoute },
|
|
1394
|
-
{ token: i1
|
|
1493
|
+
{ token: i1.DashboardService },
|
|
1395
1494
|
{ token: i0.ChangeDetectorRef }
|
|
1396
1495
|
],
|
|
1397
1496
|
target: i0.ɵɵFactoryTarget.Component
|
|
@@ -1405,8 +1504,8 @@ var SearchComponent = class SearchComponent {
|
|
|
1405
1504
|
isStandalone: false,
|
|
1406
1505
|
selector: "pw-search",
|
|
1407
1506
|
ngImport: i0,
|
|
1408
|
-
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 @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (isLoaded) {\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n @if (result) {\n @for (group of objectKeys(result); track group; let idx = $index) {\n <div>\n @switch (group) {\n @case ('users') {\n @if (getResultGroup(group).length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n @for (\n user of getResultGroup(group); track trackByUserId($index, user); let idx1 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\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 @if (user.user_skills?.length > 0) {\n <strong>Skills :\n </strong>\n }\n @for (\n skill of (user.user_skills ?? []); track trackBySkill($index, skill); let isLast = $last) {\n <span class=\"badge bg-success m-1\">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n }\n </p>\n @if (\n user?.user_profile?.headline\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n {{ user?.user_profile?.headline }}\n </p>\n }\n @if (\n user?.user_profile?.country\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\n }\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 @if (user?.user_avatar?.length > 0) {\n @for (\n profile_image of user.user_avatar; track profile_image) {\n @if (profile_image.width === 200) {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"profile_image.url\"\n alt=\"Male Icon\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\" />\n </div>\n </div>\n }\n }\n } @else {\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 }\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 !== 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 !== 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 !== 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 }\n </div>\n }\n }\n @case ('faqs') {\n @if (getResultGroup(group).length) {\n <h6>\n {{ group | uppercase }}\n </h6>\n @for (\n faq of getResultGroup(group); track trackByFaqId($index, faq); let idx2 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\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 @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n }\n </div>\n </div>\n }\n }\n }\n }\n </div>\n }\n @if (!hasResults) {\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\">\n </pw-no-data>\n }\n }\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n</div>\n",
|
|
1409
|
-
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--public-btn-radius: 24px}h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}::ng-deep .ql-snow *{font-size:16px!important}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1);padding-top:20px;padding-bottom:20px}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"],
|
|
1507
|
+
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>{{ 'Dashboard.Search.Title' | transloco }}</h2>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (isLoaded) {\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n @if (result) {\n @for (group of objectKeys(result); track group; let idx = $index) {\n <div>\n @switch (group) {\n @case ('users') {\n @if (getResultGroup(group).length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n @for (\n user of getResultGroup(group); track trackByUserId($index, user); let idx1 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\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 @if (user.user_skills?.length > 0) {\n <strong>{{ 'User.Profile.About.Skills' | transloco }}:\n </strong>\n }\n @for (\n skill of (user.user_skills ?? []); track trackBySkill($index, skill); let isLast = $last) {\n <span class=\"badge bg-success m-1\">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n }\n </p>\n @if (\n user?.user_profile?.headline\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n {{ user?.user_profile?.headline }}\n </p>\n }\n @if (\n user?.user_profile?.country\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n <strong>{{ 'User.Account.Details.Location' | transloco }}: </strong>{{ user?.user_profile?.country }}\n </p>\n }\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 @if (user?.user_avatar?.length > 0) {\n @for (\n profile_image of user.user_avatar; track profile_image) {\n @if (profile_image.width === 200) {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"profile_image.url\"\n [alt]=\"'User.Profile.Avatar' | transloco\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\" />\n </div>\n </div>\n }\n }\n } @else {\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 }\n </div>\n <div class=\"col-sm-9\">\n <ul class=\"name-fl\">\n <li>\n <strong>{{ 'Label.FirstName' | transloco }}:\n </strong>\n <span>{{\n user.first_name !== null\n ? user.first_name\n : 'N/A'\n }}</span>\n </li>\n <li>\n <strong>{{ 'Label.LastName' | transloco }}:\n </strong>\n <span>{{\n user.last_name !== null\n ? user.last_name\n : 'N/A'\n }}</span>\n </li>\n </ul>\n <p>\n <strong>{{ 'Label.Email' | transloco }}: </strong>\n <span>{{\n user.email !== null\n ? user.email\n : 'N/A'\n }}</span>\n </p>\n <p>\n <strong>{{ 'User.Profile.Fields.Description' | transloco }}:\n </strong>\n <span>{{\n user?.user_profile\n ?.description !== 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 ]\">{{ 'Dashboard.Search.ViewMore' | transloco }}</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @case ('faqs') {\n @if (getResultGroup(group).length) {\n <h6>\n {{ group | uppercase }}\n </h6>\n @for (\n faq of getResultGroup(group); track trackByFaqId($index, faq); let idx2 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\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 @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n }\n </div>\n </div>\n }\n }\n }\n }\n </div>\n }\n @if (!hasResults) {\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\">\n </pw-no-data>\n }\n }\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n</div>\n",
|
|
1508
|
+
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--pw-hairline: #e2e5ea;--public-btn-radius: 24px}h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}::ng-deep .ql-snow *{font-size:16px!important}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1);padding-top:20px;padding-bottom:20px}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"],
|
|
1410
1509
|
dependencies: [
|
|
1411
1510
|
{
|
|
1412
1511
|
kind: "directive",
|
|
@@ -1434,7 +1533,7 @@ var SearchComponent = class SearchComponent {
|
|
|
1434
1533
|
},
|
|
1435
1534
|
{
|
|
1436
1535
|
kind: "component",
|
|
1437
|
-
type: i2$
|
|
1536
|
+
type: i2$3.ProgressSpinner,
|
|
1438
1537
|
selector: "p-progress-spinner, p-progressspinner",
|
|
1439
1538
|
inputs: [
|
|
1440
1539
|
"value",
|
|
@@ -1448,7 +1547,7 @@ var SearchComponent = class SearchComponent {
|
|
|
1448
1547
|
},
|
|
1449
1548
|
{
|
|
1450
1549
|
kind: "component",
|
|
1451
|
-
type: i6.NoDataComponent,
|
|
1550
|
+
type: i6$1.NoDataComponent,
|
|
1452
1551
|
selector: "pw-no-data",
|
|
1453
1552
|
inputs: [
|
|
1454
1553
|
"message",
|
|
@@ -1458,17 +1557,17 @@ var SearchComponent = class SearchComponent {
|
|
|
1458
1557
|
},
|
|
1459
1558
|
{
|
|
1460
1559
|
kind: "pipe",
|
|
1461
|
-
type: i2.UpperCasePipe,
|
|
1560
|
+
type: i2$1.UpperCasePipe,
|
|
1462
1561
|
name: "uppercase"
|
|
1463
1562
|
},
|
|
1464
1563
|
{
|
|
1465
1564
|
kind: "pipe",
|
|
1466
|
-
type:
|
|
1565
|
+
type: i3$2.TranslocoPipe,
|
|
1467
1566
|
name: "transloco"
|
|
1468
1567
|
},
|
|
1469
1568
|
{
|
|
1470
1569
|
kind: "pipe",
|
|
1471
|
-
type:
|
|
1570
|
+
type: i6.DOMSanitizerPipe,
|
|
1472
1571
|
name: "safe"
|
|
1473
1572
|
}
|
|
1474
1573
|
]
|
|
@@ -1485,13 +1584,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1485
1584
|
args: [{
|
|
1486
1585
|
selector: "pw-search",
|
|
1487
1586
|
standalone: false,
|
|
1488
|
-
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 @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (isLoaded) {\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n @if (result) {\n @for (group of objectKeys(result); track group; let idx = $index) {\n <div>\n @switch (group) {\n @case ('users') {\n @if (getResultGroup(group).length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n @for (\n user of getResultGroup(group); track trackByUserId($index, user); let idx1 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\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 @if (user.user_skills?.length > 0) {\n <strong>Skills :\n </strong>\n }\n @for (\n skill of (user.user_skills ?? []); track trackBySkill($index, skill); let isLast = $last) {\n <span class=\"badge bg-success m-1\">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n }\n </p>\n @if (\n user?.user_profile?.headline\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n {{ user?.user_profile?.headline }}\n </p>\n }\n @if (\n user?.user_profile?.country\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\n }\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 @if (user?.user_avatar?.length > 0) {\n @for (\n profile_image of user.user_avatar; track profile_image) {\n @if (profile_image.width === 200) {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"profile_image.url\"\n alt=\"Male Icon\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\" />\n </div>\n </div>\n }\n }\n } @else {\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 }\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 !== 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 !== 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 !== 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 }\n </div>\n }\n }\n @case ('faqs') {\n @if (getResultGroup(group).length) {\n <h6>\n {{ group | uppercase }}\n </h6>\n @for (\n faq of getResultGroup(group); track trackByFaqId($index, faq); let idx2 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\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 @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n }\n </div>\n </div>\n }\n }\n }\n }\n </div>\n }\n @if (!hasResults) {\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\">\n </pw-no-data>\n }\n }\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n</div>\n",
|
|
1489
|
-
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--public-btn-radius: 24px}h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}::ng-deep .ql-snow *{font-size:16px!important}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1);padding-top:20px;padding-bottom:20px}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"]
|
|
1587
|
+
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>{{ 'Dashboard.Search.Title' | transloco }}</h2>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (isLoaded) {\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n @if (result) {\n @for (group of objectKeys(result); track group; let idx = $index) {\n <div>\n @switch (group) {\n @case ('users') {\n @if (getResultGroup(group).length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n @for (\n user of getResultGroup(group); track trackByUserId($index, user); let idx1 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\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 @if (user.user_skills?.length > 0) {\n <strong>{{ 'User.Profile.About.Skills' | transloco }}:\n </strong>\n }\n @for (\n skill of (user.user_skills ?? []); track trackBySkill($index, skill); let isLast = $last) {\n <span class=\"badge bg-success m-1\">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n }\n </p>\n @if (\n user?.user_profile?.headline\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n {{ user?.user_profile?.headline }}\n </p>\n }\n @if (\n user?.user_profile?.country\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n <strong>{{ 'User.Account.Details.Location' | transloco }}: </strong>{{ user?.user_profile?.country }}\n </p>\n }\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 @if (user?.user_avatar?.length > 0) {\n @for (\n profile_image of user.user_avatar; track profile_image) {\n @if (profile_image.width === 200) {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"profile_image.url\"\n [alt]=\"'User.Profile.Avatar' | transloco\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\" />\n </div>\n </div>\n }\n }\n } @else {\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 }\n </div>\n <div class=\"col-sm-9\">\n <ul class=\"name-fl\">\n <li>\n <strong>{{ 'Label.FirstName' | transloco }}:\n </strong>\n <span>{{\n user.first_name !== null\n ? user.first_name\n : 'N/A'\n }}</span>\n </li>\n <li>\n <strong>{{ 'Label.LastName' | transloco }}:\n </strong>\n <span>{{\n user.last_name !== null\n ? user.last_name\n : 'N/A'\n }}</span>\n </li>\n </ul>\n <p>\n <strong>{{ 'Label.Email' | transloco }}: </strong>\n <span>{{\n user.email !== null\n ? user.email\n : 'N/A'\n }}</span>\n </p>\n <p>\n <strong>{{ 'User.Profile.Fields.Description' | transloco }}:\n </strong>\n <span>{{\n user?.user_profile\n ?.description !== 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 ]\">{{ 'Dashboard.Search.ViewMore' | transloco }}</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @case ('faqs') {\n @if (getResultGroup(group).length) {\n <h6>\n {{ group | uppercase }}\n </h6>\n @for (\n faq of getResultGroup(group); track trackByFaqId($index, faq); let idx2 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\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 @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n }\n </div>\n </div>\n }\n }\n }\n }\n </div>\n }\n @if (!hasResults) {\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\">\n </pw-no-data>\n }\n }\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n</div>\n",
|
|
1588
|
+
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--pw-hairline: #e2e5ea;--public-btn-radius: 24px}h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}::ng-deep .ql-snow *{font-size:16px!important}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1);padding-top:20px;padding-bottom:20px}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"]
|
|
1490
1589
|
}]
|
|
1491
1590
|
}],
|
|
1492
1591
|
ctorParameters: () => [
|
|
1493
1592
|
{ type: i3$1.ActivatedRoute },
|
|
1494
|
-
{ type: i1
|
|
1593
|
+
{ type: i1.DashboardService },
|
|
1495
1594
|
{ type: i0.ChangeDetectorRef }
|
|
1496
1595
|
]
|
|
1497
1596
|
});
|