@posiwise/dashboard-module 0.0.155 → 0.0.156
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,32 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CommonModule } from "@angular/common";
|
|
1
|
+
import { CommonModule, NgClass, NgComponentOutlet, UpperCasePipe } from "@angular/common";
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
import { CUSTOM_ELEMENTS_SCHEMA, Component, DestroyRef, EventEmitter,
|
|
5
|
-
import * as
|
|
3
|
+
import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectorRef, Component, DestroyRef, EventEmitter, InjectionToken, NgModule, Output, inject } from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/forms";
|
|
6
5
|
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
|
7
|
-
import
|
|
8
|
-
import { PermissionService, SubscriptionService } from "@posiwise/common-services";
|
|
6
|
+
import { CommonService, DashboardService, HopscotchService, NotificationService, PermissionService, ProductService, SubscriptionService } from "@posiwise/common-services";
|
|
9
7
|
import { CoreTranslocoModule } from "@posiwise/core-transloco";
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import * as i6 from "@posiwise/pipes";
|
|
13
|
-
import { PipesModule } from "@posiwise/pipes";
|
|
8
|
+
import { DirectivesModule, DynamicBadgeDirective, LazyImgDirective } from "@posiwise/directives";
|
|
9
|
+
import { DOMSanitizerPipe, PipesModule, SinceAgoPipe } from "@posiwise/pipes";
|
|
14
10
|
import { UserModuleModule } from "@posiwise/user-module";
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import * as i3 from "primeng/radiobutton";
|
|
18
|
-
import { RadioButtonModule } from "primeng/radiobutton";
|
|
11
|
+
import { ProgressSpinner, ProgressSpinnerModule } from "primeng/progressspinner";
|
|
12
|
+
import { RadioButton, RadioButtonModule } from "primeng/radiobutton";
|
|
19
13
|
import { SelectModule } from "primeng/select";
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import { TooltipModule } from "primeng/tooltip";
|
|
28
|
-
import * as i1$1 from "@angular/platform-browser";
|
|
29
|
-
import * as i3$2 from "@jsverse/transloco";
|
|
14
|
+
import { NgbDropdownModule, NgbNav, NgbNavContent, NgbNavItem, NgbNavItemRole, NgbNavLink, NgbNavLinkBase, NgbNavModule, NgbNavOutlet } from "@ng-bootstrap/ng-bootstrap";
|
|
15
|
+
import { ActivatedRoute, NavigationEnd, RouterLink, RouterModule } from "@angular/router";
|
|
16
|
+
import { ConfirmDialogService, NoDataComponent, NotificationOpenerService, RecordsSummaryComponent, ResourceSharedComponentsModule } from "@posiwise/shared-components";
|
|
17
|
+
import { Tooltip, TooltipModule } from "primeng/tooltip";
|
|
18
|
+
import { DomSanitizer } from "@angular/platform-browser";
|
|
19
|
+
import { Bind } from "primeng/bind";
|
|
20
|
+
import { TranslocoPipe } from "@jsverse/transloco";
|
|
30
21
|
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
31
22
|
import { ADMIN_ROUTERS } from "@posiwise/common-utilities";
|
|
32
23
|
import { HelperService } from "@posiwise/helper-service";
|
|
@@ -37,8 +28,8 @@ import sortBy from "lodash/sortBy";
|
|
|
37
28
|
import moment from "moment";
|
|
38
29
|
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
39
30
|
var DocumentationComponent = class DocumentationComponent {
|
|
40
|
-
constructor(
|
|
41
|
-
this.sanitizer =
|
|
31
|
+
constructor() {
|
|
32
|
+
this.sanitizer = inject(DomSanitizer);
|
|
42
33
|
this.isLoaded = false;
|
|
43
34
|
}
|
|
44
35
|
ngOnInit() {
|
|
@@ -57,7 +48,7 @@ var DocumentationComponent = class DocumentationComponent {
|
|
|
57
48
|
version: "22.2.3",
|
|
58
49
|
ngImport: i0,
|
|
59
50
|
type: DocumentationComponent,
|
|
60
|
-
deps: [
|
|
51
|
+
deps: [],
|
|
61
52
|
target: i0.ɵɵFactoryTarget.Component
|
|
62
53
|
});
|
|
63
54
|
}
|
|
@@ -66,14 +57,14 @@ var DocumentationComponent = class DocumentationComponent {
|
|
|
66
57
|
minVersion: "17.0.0",
|
|
67
58
|
version: "22.2.3",
|
|
68
59
|
type: DocumentationComponent,
|
|
69
|
-
isStandalone:
|
|
60
|
+
isStandalone: true,
|
|
70
61
|
selector: "pw-documentation",
|
|
71
62
|
ngImport: i0,
|
|
72
63
|
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",
|
|
73
64
|
styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"],
|
|
74
65
|
dependencies: [{
|
|
75
66
|
kind: "component",
|
|
76
|
-
type:
|
|
67
|
+
type: ProgressSpinner,
|
|
77
68
|
selector: "p-progress-spinner, p-progressspinner",
|
|
78
69
|
inputs: [
|
|
79
70
|
"value",
|
|
@@ -86,7 +77,7 @@ var DocumentationComponent = class DocumentationComponent {
|
|
|
86
77
|
]
|
|
87
78
|
}, {
|
|
88
79
|
kind: "pipe",
|
|
89
|
-
type:
|
|
80
|
+
type: TranslocoPipe,
|
|
90
81
|
name: "transloco"
|
|
91
82
|
}]
|
|
92
83
|
});
|
|
@@ -101,12 +92,16 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
101
92
|
type: Component,
|
|
102
93
|
args: [{
|
|
103
94
|
selector: "pw-documentation",
|
|
104
|
-
|
|
95
|
+
imports: [
|
|
96
|
+
Bind,
|
|
97
|
+
ProgressSpinner,
|
|
98
|
+
TranslocoPipe
|
|
99
|
+
],
|
|
100
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
105
101
|
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",
|
|
106
102
|
styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"]
|
|
107
103
|
}]
|
|
108
|
-
}]
|
|
109
|
-
ctorParameters: () => [{ type: i1$1.DomSanitizer }]
|
|
104
|
+
}]
|
|
110
105
|
});
|
|
111
106
|
const FAQ_ADMIN_PERMISSION = "Pages.Admin.FAQ || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager";
|
|
112
107
|
function groupFaqsByCategory(nonProductFaqs, productFaqs) {
|
|
@@ -126,12 +121,12 @@ function buildSanitizedAnswers(faqs, sanitize) {
|
|
|
126
121
|
return answers;
|
|
127
122
|
}
|
|
128
123
|
var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
129
|
-
constructor(
|
|
130
|
-
super(
|
|
131
|
-
this.commonService =
|
|
132
|
-
this.productService =
|
|
133
|
-
this.sanitizer =
|
|
134
|
-
this.cdr =
|
|
124
|
+
constructor() {
|
|
125
|
+
super(...arguments);
|
|
126
|
+
this.commonService = inject(CommonService);
|
|
127
|
+
this.productService = inject(ProductService);
|
|
128
|
+
this.sanitizer = inject(DomSanitizer);
|
|
129
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
135
130
|
this.searchSubject = new Subject();
|
|
136
131
|
this.destroy$ = new Subject();
|
|
137
132
|
this.sanitizedFaqAnswers = {};
|
|
@@ -230,13 +225,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
230
225
|
version: "22.2.3",
|
|
231
226
|
ngImport: i0,
|
|
232
227
|
type: FaqComponent,
|
|
233
|
-
deps:
|
|
234
|
-
{ token: i1.CommonService },
|
|
235
|
-
{ token: i0.Injector },
|
|
236
|
-
{ token: i1.ProductService },
|
|
237
|
-
{ token: i1$1.DomSanitizer },
|
|
238
|
-
{ token: i0.ChangeDetectorRef }
|
|
239
|
-
],
|
|
228
|
+
deps: null,
|
|
240
229
|
target: i0.ɵɵFactoryTarget.Component
|
|
241
230
|
});
|
|
242
231
|
}
|
|
@@ -245,35 +234,16 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
245
234
|
minVersion: "17.0.0",
|
|
246
235
|
version: "22.2.3",
|
|
247
236
|
type: FaqComponent,
|
|
248
|
-
isStandalone:
|
|
237
|
+
isStandalone: true,
|
|
249
238
|
selector: "pw-faq",
|
|
250
239
|
usesInheritance: true,
|
|
251
240
|
ngImport: i0,
|
|
252
241
|
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
242
|
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"],
|
|
254
243
|
dependencies: [
|
|
255
|
-
{
|
|
256
|
-
kind: "directive",
|
|
257
|
-
type: i3$1.RouterLink,
|
|
258
|
-
selector: "[routerLink]",
|
|
259
|
-
inputs: [
|
|
260
|
-
"target",
|
|
261
|
-
"queryParams",
|
|
262
|
-
"fragment",
|
|
263
|
-
"queryParamsHandling",
|
|
264
|
-
"state",
|
|
265
|
-
"info",
|
|
266
|
-
"relativeTo",
|
|
267
|
-
"preserveFragment",
|
|
268
|
-
"skipLocationChange",
|
|
269
|
-
"replaceUrl",
|
|
270
|
-
"browserUrl",
|
|
271
|
-
"routerLink"
|
|
272
|
-
]
|
|
273
|
-
},
|
|
274
244
|
{
|
|
275
245
|
kind: "component",
|
|
276
|
-
type:
|
|
246
|
+
type: ProgressSpinner,
|
|
277
247
|
selector: "p-progress-spinner, p-progressspinner",
|
|
278
248
|
inputs: [
|
|
279
249
|
"value",
|
|
@@ -287,7 +257,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
287
257
|
},
|
|
288
258
|
{
|
|
289
259
|
kind: "directive",
|
|
290
|
-
type:
|
|
260
|
+
type: Tooltip,
|
|
291
261
|
selector: "[pTooltip]",
|
|
292
262
|
inputs: [
|
|
293
263
|
"tooltipPosition",
|
|
@@ -313,9 +283,28 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
313
283
|
"pTooltipUnstyled"
|
|
314
284
|
]
|
|
315
285
|
},
|
|
286
|
+
{
|
|
287
|
+
kind: "directive",
|
|
288
|
+
type: RouterLink,
|
|
289
|
+
selector: "[routerLink]",
|
|
290
|
+
inputs: [
|
|
291
|
+
"target",
|
|
292
|
+
"queryParams",
|
|
293
|
+
"fragment",
|
|
294
|
+
"queryParamsHandling",
|
|
295
|
+
"state",
|
|
296
|
+
"info",
|
|
297
|
+
"relativeTo",
|
|
298
|
+
"preserveFragment",
|
|
299
|
+
"skipLocationChange",
|
|
300
|
+
"replaceUrl",
|
|
301
|
+
"browserUrl",
|
|
302
|
+
"routerLink"
|
|
303
|
+
]
|
|
304
|
+
},
|
|
316
305
|
{
|
|
317
306
|
kind: "component",
|
|
318
|
-
type:
|
|
307
|
+
type: NoDataComponent,
|
|
319
308
|
selector: "pw-no-data",
|
|
320
309
|
inputs: [
|
|
321
310
|
"message",
|
|
@@ -325,7 +314,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
325
314
|
},
|
|
326
315
|
{
|
|
327
316
|
kind: "pipe",
|
|
328
|
-
type:
|
|
317
|
+
type: TranslocoPipe,
|
|
329
318
|
name: "transloco"
|
|
330
319
|
}
|
|
331
320
|
]
|
|
@@ -341,18 +330,19 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
341
330
|
type: Component,
|
|
342
331
|
args: [{
|
|
343
332
|
selector: "pw-faq",
|
|
344
|
-
|
|
333
|
+
imports: [
|
|
334
|
+
Bind,
|
|
335
|
+
ProgressSpinner,
|
|
336
|
+
Tooltip,
|
|
337
|
+
RouterLink,
|
|
338
|
+
NoDataComponent,
|
|
339
|
+
TranslocoPipe
|
|
340
|
+
],
|
|
341
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
345
342
|
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
343
|
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"]
|
|
347
344
|
}]
|
|
348
|
-
}]
|
|
349
|
-
ctorParameters: () => [
|
|
350
|
-
{ type: i1.CommonService },
|
|
351
|
-
{ type: i0.Injector },
|
|
352
|
-
{ type: i1.ProductService },
|
|
353
|
-
{ type: i1$1.DomSanitizer },
|
|
354
|
-
{ type: i0.ChangeDetectorRef }
|
|
355
|
-
]
|
|
345
|
+
}]
|
|
356
346
|
});
|
|
357
347
|
const EMPTY_FAQ_STATUS_BADGES = {
|
|
358
348
|
isPublic: false,
|
|
@@ -377,11 +367,11 @@ function buildStatusBadges(faq, categories) {
|
|
|
377
367
|
};
|
|
378
368
|
}
|
|
379
369
|
var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
380
|
-
constructor(
|
|
381
|
-
super(
|
|
382
|
-
this.commonService =
|
|
383
|
-
this.sanitizer =
|
|
384
|
-
this.cdr =
|
|
370
|
+
constructor() {
|
|
371
|
+
super();
|
|
372
|
+
this.commonService = inject(CommonService);
|
|
373
|
+
this.sanitizer = inject(DomSanitizer);
|
|
374
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
385
375
|
this.isLoading = false;
|
|
386
376
|
this.routers = ADMIN_ROUTERS;
|
|
387
377
|
this.canEditFaq = false;
|
|
@@ -440,12 +430,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
440
430
|
version: "22.2.3",
|
|
441
431
|
ngImport: i0,
|
|
442
432
|
type: FaqDetailsComponent,
|
|
443
|
-
deps: [
|
|
444
|
-
{ token: i1.CommonService },
|
|
445
|
-
{ token: i0.Injector },
|
|
446
|
-
{ token: i1$1.DomSanitizer },
|
|
447
|
-
{ token: i0.ChangeDetectorRef }
|
|
448
|
-
],
|
|
433
|
+
deps: [],
|
|
449
434
|
target: i0.ɵɵFactoryTarget.Component
|
|
450
435
|
});
|
|
451
436
|
}
|
|
@@ -454,7 +439,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
454
439
|
minVersion: "17.0.0",
|
|
455
440
|
version: "22.2.3",
|
|
456
441
|
type: FaqDetailsComponent,
|
|
457
|
-
isStandalone:
|
|
442
|
+
isStandalone: true,
|
|
458
443
|
selector: "pw-faq-details",
|
|
459
444
|
usesInheritance: true,
|
|
460
445
|
ngImport: i0,
|
|
@@ -463,7 +448,35 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
463
448
|
dependencies: [
|
|
464
449
|
{
|
|
465
450
|
kind: "directive",
|
|
466
|
-
type:
|
|
451
|
+
type: Tooltip,
|
|
452
|
+
selector: "[pTooltip]",
|
|
453
|
+
inputs: [
|
|
454
|
+
"tooltipPosition",
|
|
455
|
+
"tooltipEvent",
|
|
456
|
+
"positionStyle",
|
|
457
|
+
"tooltipStyleClass",
|
|
458
|
+
"tooltipZIndex",
|
|
459
|
+
"escape",
|
|
460
|
+
"showDelay",
|
|
461
|
+
"hideDelay",
|
|
462
|
+
"life",
|
|
463
|
+
"positionTop",
|
|
464
|
+
"positionLeft",
|
|
465
|
+
"autoHide",
|
|
466
|
+
"fitContent",
|
|
467
|
+
"hideOnEscape",
|
|
468
|
+
"showOnEllipsis",
|
|
469
|
+
"pTooltip",
|
|
470
|
+
"tooltipDisabled",
|
|
471
|
+
"tooltipOptions",
|
|
472
|
+
"appendTo",
|
|
473
|
+
"pTooltipPT",
|
|
474
|
+
"pTooltipUnstyled"
|
|
475
|
+
]
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
kind: "directive",
|
|
479
|
+
type: RouterLink,
|
|
467
480
|
selector: "[routerLink]",
|
|
468
481
|
inputs: [
|
|
469
482
|
"target",
|
|
@@ -482,7 +495,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
482
495
|
},
|
|
483
496
|
{
|
|
484
497
|
kind: "directive",
|
|
485
|
-
type:
|
|
498
|
+
type: DynamicBadgeDirective,
|
|
486
499
|
selector: "[appDynamicBadge]",
|
|
487
500
|
inputs: [
|
|
488
501
|
"appDynamicBadge",
|
|
@@ -493,7 +506,17 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
493
506
|
},
|
|
494
507
|
{
|
|
495
508
|
kind: "component",
|
|
496
|
-
type:
|
|
509
|
+
type: NoDataComponent,
|
|
510
|
+
selector: "pw-no-data",
|
|
511
|
+
inputs: [
|
|
512
|
+
"message",
|
|
513
|
+
"description",
|
|
514
|
+
"withImage"
|
|
515
|
+
]
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
kind: "component",
|
|
519
|
+
type: ProgressSpinner,
|
|
497
520
|
selector: "p-progress-spinner, p-progressspinner",
|
|
498
521
|
inputs: [
|
|
499
522
|
"value",
|
|
@@ -505,47 +528,9 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
505
528
|
"fill"
|
|
506
529
|
]
|
|
507
530
|
},
|
|
508
|
-
{
|
|
509
|
-
kind: "directive",
|
|
510
|
-
type: i5.Tooltip,
|
|
511
|
-
selector: "[pTooltip]",
|
|
512
|
-
inputs: [
|
|
513
|
-
"tooltipPosition",
|
|
514
|
-
"tooltipEvent",
|
|
515
|
-
"positionStyle",
|
|
516
|
-
"tooltipStyleClass",
|
|
517
|
-
"tooltipZIndex",
|
|
518
|
-
"escape",
|
|
519
|
-
"showDelay",
|
|
520
|
-
"hideDelay",
|
|
521
|
-
"life",
|
|
522
|
-
"positionTop",
|
|
523
|
-
"positionLeft",
|
|
524
|
-
"autoHide",
|
|
525
|
-
"fitContent",
|
|
526
|
-
"hideOnEscape",
|
|
527
|
-
"showOnEllipsis",
|
|
528
|
-
"pTooltip",
|
|
529
|
-
"tooltipDisabled",
|
|
530
|
-
"tooltipOptions",
|
|
531
|
-
"appendTo",
|
|
532
|
-
"pTooltipPT",
|
|
533
|
-
"pTooltipUnstyled"
|
|
534
|
-
]
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
kind: "component",
|
|
538
|
-
type: i6$1.NoDataComponent,
|
|
539
|
-
selector: "pw-no-data",
|
|
540
|
-
inputs: [
|
|
541
|
-
"message",
|
|
542
|
-
"description",
|
|
543
|
-
"withImage"
|
|
544
|
-
]
|
|
545
|
-
},
|
|
546
531
|
{
|
|
547
532
|
kind: "pipe",
|
|
548
|
-
type:
|
|
533
|
+
type: TranslocoPipe,
|
|
549
534
|
name: "transloco"
|
|
550
535
|
}
|
|
551
536
|
]
|
|
@@ -561,24 +546,27 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
561
546
|
type: Component,
|
|
562
547
|
args: [{
|
|
563
548
|
selector: "pw-faq-details",
|
|
564
|
-
|
|
549
|
+
imports: [
|
|
550
|
+
Tooltip,
|
|
551
|
+
RouterLink,
|
|
552
|
+
DynamicBadgeDirective,
|
|
553
|
+
NoDataComponent,
|
|
554
|
+
Bind,
|
|
555
|
+
ProgressSpinner,
|
|
556
|
+
TranslocoPipe
|
|
557
|
+
],
|
|
558
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
565
559
|
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",
|
|
566
560
|
styles: [".ql-container{resize:none!important}.faq-edit-link{text-decoration:none;vertical-align:middle}.faq-edit-link .edit-icon{font-size:16px}\n"]
|
|
567
561
|
}]
|
|
568
562
|
}],
|
|
569
|
-
ctorParameters: () => [
|
|
570
|
-
{ type: i1.CommonService },
|
|
571
|
-
{ type: i0.Injector },
|
|
572
|
-
{ type: i1$1.DomSanitizer },
|
|
573
|
-
{ type: i0.ChangeDetectorRef }
|
|
574
|
-
]
|
|
563
|
+
ctorParameters: () => []
|
|
575
564
|
});
|
|
576
|
-
const HOME_PRODUCT_SECTIONS = new InjectionToken("HOME_PRODUCT_SECTIONS");
|
|
577
565
|
var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent {
|
|
578
|
-
constructor(
|
|
579
|
-
super(
|
|
580
|
-
this.commonService =
|
|
581
|
-
this.cdr =
|
|
566
|
+
constructor() {
|
|
567
|
+
super(...arguments);
|
|
568
|
+
this.commonService = inject(CommonService);
|
|
569
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
582
570
|
this.rating = 3;
|
|
583
571
|
this.selectedValue = null;
|
|
584
572
|
this.questions = [];
|
|
@@ -636,11 +624,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
|
|
|
636
624
|
version: "22.2.3",
|
|
637
625
|
ngImport: i0,
|
|
638
626
|
type: UserFeedbackComponent,
|
|
639
|
-
deps:
|
|
640
|
-
{ token: i0.Injector },
|
|
641
|
-
{ token: i1.CommonService },
|
|
642
|
-
{ token: i0.ChangeDetectorRef }
|
|
643
|
-
],
|
|
627
|
+
deps: null,
|
|
644
628
|
target: i0.ɵɵFactoryTarget.Component
|
|
645
629
|
});
|
|
646
630
|
}
|
|
@@ -649,36 +633,40 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
|
|
|
649
633
|
minVersion: "17.0.0",
|
|
650
634
|
version: "22.2.3",
|
|
651
635
|
type: UserFeedbackComponent,
|
|
652
|
-
isStandalone:
|
|
636
|
+
isStandalone: true,
|
|
653
637
|
selector: "pw-user-feedback",
|
|
654
638
|
usesInheritance: true,
|
|
655
639
|
ngImport: i0,
|
|
656
640
|
template: "@if (showSection) {\n @if (questions?.length) {\n <div class=\"mt-4\"\n >\n <div class=\"card pb-1\">\n <h3 class=\"text-end me-3 pt-2 cursor-pointer\"\n (keydown.enter)=\"closeSection()\"\n (click)=\"closeSection()\">×</h3>\n @for (question of questions; track trackByQuestion($index, question); let first = $first) {\n <div class=\"card-content p-0\"\n >\n <div class=\"card-header\">\n <form #feedbackForm=\"ngForm\">\n <div class=\"col-lg-8 p-0 mx-auto\">\n @if (first) {\n <h3 class=\"mb-1\"\n >{{ 'Feedback.Title' | transloco }}</h3>\n }\n @if (first) {\n <p class=\"mb-4\"\n >\n {{ 'Feedback.Intro' | transloco }}\n </p>\n }\n <h6 class=\"fw-bold pb-3 mx-auto\">{{ question?.question }}</h6>\n <div class=\"text-center row p-2 mx-md-2 feedback-value\">\n <span class=\"col-auto me-0\">{{ 'Feedback.NotAtAll' | transloco }}</span>\n @for (val of counter(11); track val; let i = $index) {\n <div class=\"p-field-checkbox col-auto ms-0 me-0\">\n <p-radio-button name=\"feedback\" [(ngModel)]=\"selectedValue\" [value]=\"i\" [inputId]=\"i\"></p-radio-button>\n <br />\n <label [for]=\"i\">{{ i }}</label>\n </div>\n }\n <span class=\"col-auto ms-0\">{{ 'Feedback.Extremely' | transloco }}</span>\n </div>\n <div class=\"text mt-3\">\n <h6>{{ 'Feedback.ReasonQuestion' | transloco }}</h6>\n <label for=\"user-feedback-description\" class=\"visually-hidden\">{{ 'Feedback.ReasonLabel' | transloco }}</label>\n <textarea id=\"user-feedback-description\"\n rows=\"4\"\n name=\"description\"\n [placeholder]=\"'Feedback.ReasonPlaceholder' | transloco\"\n ngModel\n type=\"text\"\n pInputTextarea\n class=\"form-control\"\n [attr.aria-label]=\"'Feedback.ReasonPlaceholder' | transloco\">\n </textarea>\n </div>\n <div class=\"mt-3\">\n <button class=\"btn btn-primary d-block mx-auto\"\n (click)=\"onSubmit(question?.id, feedbackForm.value)\">\n {{ 'Button.Submit' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n }\n </div>\n </div>\n }\n}\n",
|
|
657
641
|
styles: ["::ng-deep .p-radiobutton-checked .p-radiobutton-box{border-color:var(--first)!important;background:var(--first)!important}.feedback-value{justify-content:center}.feedback-value label{color:#000000de;cursor:pointer;font-size:1rem;font-weight:400;letter-spacing:normal;margin-left:10px;margin-right:10px;text-transform:none}.feedback-value .p-field-checkbox{margin:0 10px}\n"],
|
|
658
642
|
dependencies: [
|
|
643
|
+
{
|
|
644
|
+
kind: "ngmodule",
|
|
645
|
+
type: FormsModule
|
|
646
|
+
},
|
|
659
647
|
{
|
|
660
648
|
kind: "directive",
|
|
661
|
-
type:
|
|
649
|
+
type: i1.ɵNgNoValidate,
|
|
662
650
|
selector: "form:not([ngNoForm]):not([ngNativeValidate])"
|
|
663
651
|
},
|
|
664
652
|
{
|
|
665
653
|
kind: "directive",
|
|
666
|
-
type:
|
|
654
|
+
type: i1.DefaultValueAccessor,
|
|
667
655
|
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]"
|
|
668
656
|
},
|
|
669
657
|
{
|
|
670
658
|
kind: "directive",
|
|
671
|
-
type:
|
|
659
|
+
type: i1.NgControlStatus,
|
|
672
660
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
673
661
|
},
|
|
674
662
|
{
|
|
675
663
|
kind: "directive",
|
|
676
|
-
type:
|
|
664
|
+
type: i1.NgControlStatusGroup,
|
|
677
665
|
selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
|
|
678
666
|
},
|
|
679
667
|
{
|
|
680
668
|
kind: "directive",
|
|
681
|
-
type:
|
|
669
|
+
type: i1.NgModel,
|
|
682
670
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
683
671
|
inputs: [
|
|
684
672
|
"name",
|
|
@@ -691,7 +679,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
|
|
|
691
679
|
},
|
|
692
680
|
{
|
|
693
681
|
kind: "directive",
|
|
694
|
-
type:
|
|
682
|
+
type: i1.NgForm,
|
|
695
683
|
selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]",
|
|
696
684
|
inputs: ["ngFormOptions"],
|
|
697
685
|
outputs: ["ngSubmit"],
|
|
@@ -699,7 +687,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
|
|
|
699
687
|
},
|
|
700
688
|
{
|
|
701
689
|
kind: "component",
|
|
702
|
-
type:
|
|
690
|
+
type: RadioButton,
|
|
703
691
|
selector: "p-radiobutton, p-radio-button",
|
|
704
692
|
inputs: [
|
|
705
693
|
"value",
|
|
@@ -720,7 +708,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
|
|
|
720
708
|
},
|
|
721
709
|
{
|
|
722
710
|
kind: "pipe",
|
|
723
|
-
type:
|
|
711
|
+
type: TranslocoPipe,
|
|
724
712
|
name: "transloco"
|
|
725
713
|
}
|
|
726
714
|
]
|
|
@@ -736,23 +724,25 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
736
724
|
type: Component,
|
|
737
725
|
args: [{
|
|
738
726
|
selector: "pw-user-feedback",
|
|
739
|
-
|
|
727
|
+
imports: [
|
|
728
|
+
FormsModule,
|
|
729
|
+
Bind,
|
|
730
|
+
RadioButton,
|
|
731
|
+
TranslocoPipe
|
|
732
|
+
],
|
|
733
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
740
734
|
template: "@if (showSection) {\n @if (questions?.length) {\n <div class=\"mt-4\"\n >\n <div class=\"card pb-1\">\n <h3 class=\"text-end me-3 pt-2 cursor-pointer\"\n (keydown.enter)=\"closeSection()\"\n (click)=\"closeSection()\">×</h3>\n @for (question of questions; track trackByQuestion($index, question); let first = $first) {\n <div class=\"card-content p-0\"\n >\n <div class=\"card-header\">\n <form #feedbackForm=\"ngForm\">\n <div class=\"col-lg-8 p-0 mx-auto\">\n @if (first) {\n <h3 class=\"mb-1\"\n >{{ 'Feedback.Title' | transloco }}</h3>\n }\n @if (first) {\n <p class=\"mb-4\"\n >\n {{ 'Feedback.Intro' | transloco }}\n </p>\n }\n <h6 class=\"fw-bold pb-3 mx-auto\">{{ question?.question }}</h6>\n <div class=\"text-center row p-2 mx-md-2 feedback-value\">\n <span class=\"col-auto me-0\">{{ 'Feedback.NotAtAll' | transloco }}</span>\n @for (val of counter(11); track val; let i = $index) {\n <div class=\"p-field-checkbox col-auto ms-0 me-0\">\n <p-radio-button name=\"feedback\" [(ngModel)]=\"selectedValue\" [value]=\"i\" [inputId]=\"i\"></p-radio-button>\n <br />\n <label [for]=\"i\">{{ i }}</label>\n </div>\n }\n <span class=\"col-auto ms-0\">{{ 'Feedback.Extremely' | transloco }}</span>\n </div>\n <div class=\"text mt-3\">\n <h6>{{ 'Feedback.ReasonQuestion' | transloco }}</h6>\n <label for=\"user-feedback-description\" class=\"visually-hidden\">{{ 'Feedback.ReasonLabel' | transloco }}</label>\n <textarea id=\"user-feedback-description\"\n rows=\"4\"\n name=\"description\"\n [placeholder]=\"'Feedback.ReasonPlaceholder' | transloco\"\n ngModel\n type=\"text\"\n pInputTextarea\n class=\"form-control\"\n [attr.aria-label]=\"'Feedback.ReasonPlaceholder' | transloco\">\n </textarea>\n </div>\n <div class=\"mt-3\">\n <button class=\"btn btn-primary d-block mx-auto\"\n (click)=\"onSubmit(question?.id, feedbackForm.value)\">\n {{ 'Button.Submit' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n }\n </div>\n </div>\n }\n}\n",
|
|
741
735
|
styles: ["::ng-deep .p-radiobutton-checked .p-radiobutton-box{border-color:var(--first)!important;background:var(--first)!important}.feedback-value{justify-content:center}.feedback-value label{color:#000000de;cursor:pointer;font-size:1rem;font-weight:400;letter-spacing:normal;margin-left:10px;margin-right:10px;text-transform:none}.feedback-value .p-field-checkbox{margin:0 10px}\n"]
|
|
742
736
|
}]
|
|
743
|
-
}]
|
|
744
|
-
ctorParameters: () => [
|
|
745
|
-
{ type: i0.Injector },
|
|
746
|
-
{ type: i1.CommonService },
|
|
747
|
-
{ type: i0.ChangeDetectorRef }
|
|
748
|
-
]
|
|
737
|
+
}]
|
|
749
738
|
});
|
|
739
|
+
const HOME_PRODUCT_SECTIONS = new InjectionToken("HOME_PRODUCT_SECTIONS");
|
|
750
740
|
var HomeComponent = class HomeComponent extends AppBaseComponent {
|
|
751
|
-
constructor(
|
|
752
|
-
super(
|
|
753
|
-
this.hopscotchService =
|
|
754
|
-
this.cdr =
|
|
755
|
-
this.productSections =
|
|
741
|
+
constructor() {
|
|
742
|
+
super(...arguments);
|
|
743
|
+
this.hopscotchService = inject(HopscotchService);
|
|
744
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
745
|
+
this.productSections = inject(HOME_PRODUCT_SECTIONS, { optional: true });
|
|
756
746
|
this.componentActive = true;
|
|
757
747
|
}
|
|
758
748
|
sanitizeContent(jsonString) {
|
|
@@ -806,15 +796,7 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
|
|
|
806
796
|
version: "22.2.3",
|
|
807
797
|
ngImport: i0,
|
|
808
798
|
type: HomeComponent,
|
|
809
|
-
deps:
|
|
810
|
-
{ token: i0.Injector },
|
|
811
|
-
{ token: i1.HopscotchService },
|
|
812
|
-
{ token: i0.ChangeDetectorRef },
|
|
813
|
-
{
|
|
814
|
-
token: HOME_PRODUCT_SECTIONS,
|
|
815
|
-
optional: true
|
|
816
|
-
}
|
|
817
|
-
],
|
|
799
|
+
deps: null,
|
|
818
800
|
target: i0.ɵɵFactoryTarget.Component
|
|
819
801
|
});
|
|
820
802
|
}
|
|
@@ -823,16 +805,21 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
|
|
|
823
805
|
minVersion: "17.0.0",
|
|
824
806
|
version: "22.2.3",
|
|
825
807
|
type: HomeComponent,
|
|
826
|
-
isStandalone:
|
|
808
|
+
isStandalone: true,
|
|
827
809
|
selector: "pw-home",
|
|
828
810
|
usesInheritance: true,
|
|
829
811
|
ngImport: i0,
|
|
830
812
|
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",
|
|
831
813
|
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"],
|
|
832
814
|
dependencies: [
|
|
815
|
+
{
|
|
816
|
+
kind: "component",
|
|
817
|
+
type: UserFeedbackComponent,
|
|
818
|
+
selector: "pw-user-feedback"
|
|
819
|
+
},
|
|
833
820
|
{
|
|
834
821
|
kind: "directive",
|
|
835
|
-
type:
|
|
822
|
+
type: NgComponentOutlet,
|
|
836
823
|
selector: "[ngComponentOutlet]",
|
|
837
824
|
inputs: [
|
|
838
825
|
"ngComponentOutlet",
|
|
@@ -846,7 +833,12 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
|
|
|
846
833
|
},
|
|
847
834
|
{
|
|
848
835
|
kind: "directive",
|
|
849
|
-
type:
|
|
836
|
+
type: LazyImgDirective,
|
|
837
|
+
selector: "img"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
kind: "directive",
|
|
841
|
+
type: RouterLink,
|
|
850
842
|
selector: "[routerLink]",
|
|
851
843
|
inputs: [
|
|
852
844
|
"target",
|
|
@@ -863,19 +855,9 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
|
|
|
863
855
|
"routerLink"
|
|
864
856
|
]
|
|
865
857
|
},
|
|
866
|
-
{
|
|
867
|
-
kind: "directive",
|
|
868
|
-
type: i4.LazyImgDirective,
|
|
869
|
-
selector: "img"
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
kind: "component",
|
|
873
|
-
type: UserFeedbackComponent,
|
|
874
|
-
selector: "pw-user-feedback"
|
|
875
|
-
},
|
|
876
858
|
{
|
|
877
859
|
kind: "pipe",
|
|
878
|
-
type:
|
|
860
|
+
type: TranslocoPipe,
|
|
879
861
|
name: "transloco"
|
|
880
862
|
}
|
|
881
863
|
]
|
|
@@ -891,23 +873,18 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
891
873
|
type: Component,
|
|
892
874
|
args: [{
|
|
893
875
|
selector: "pw-home",
|
|
894
|
-
|
|
876
|
+
imports: [
|
|
877
|
+
UserFeedbackComponent,
|
|
878
|
+
NgComponentOutlet,
|
|
879
|
+
LazyImgDirective,
|
|
880
|
+
RouterLink,
|
|
881
|
+
TranslocoPipe
|
|
882
|
+
],
|
|
883
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
895
884
|
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",
|
|
896
885
|
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"]
|
|
897
886
|
}]
|
|
898
|
-
}]
|
|
899
|
-
ctorParameters: () => [
|
|
900
|
-
{ type: i0.Injector },
|
|
901
|
-
{ type: i1.HopscotchService },
|
|
902
|
-
{ type: i0.ChangeDetectorRef },
|
|
903
|
-
{
|
|
904
|
-
type: void 0,
|
|
905
|
-
decorators: [{ type: Optional }, {
|
|
906
|
-
type: Inject,
|
|
907
|
-
args: [HOME_PRODUCT_SECTIONS]
|
|
908
|
-
}]
|
|
909
|
-
}
|
|
910
|
-
]
|
|
887
|
+
}]
|
|
911
888
|
});
|
|
912
889
|
function rowAction(host, id, action, request, cdr) {
|
|
913
890
|
host.busyId = id;
|
|
@@ -923,10 +900,10 @@ function applyReadEvent(notes, event) {
|
|
|
923
900
|
notes.filter((note) => event.id === "all" || note.id === event.id).forEach((note) => note.unread = false);
|
|
924
901
|
}
|
|
925
902
|
var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
926
|
-
constructor(
|
|
927
|
-
this.notificationService =
|
|
928
|
-
this.opener =
|
|
929
|
-
this.cdr =
|
|
903
|
+
constructor() {
|
|
904
|
+
this.notificationService = inject(NotificationService);
|
|
905
|
+
this.opener = inject(NotificationOpenerService);
|
|
906
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
930
907
|
this.moved = new EventEmitter();
|
|
931
908
|
this.notificationCount = 0;
|
|
932
909
|
this.noNoti = true;
|
|
@@ -998,11 +975,7 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
|
998
975
|
version: "22.2.3",
|
|
999
976
|
ngImport: i0,
|
|
1000
977
|
type: CurrentNotificationsComponent,
|
|
1001
|
-
deps: [
|
|
1002
|
-
{ token: i1.NotificationService },
|
|
1003
|
-
{ token: i6$1.NotificationOpenerService },
|
|
1004
|
-
{ token: i0.ChangeDetectorRef }
|
|
1005
|
-
],
|
|
978
|
+
deps: [],
|
|
1006
979
|
target: i0.ɵɵFactoryTarget.Component
|
|
1007
980
|
});
|
|
1008
981
|
}
|
|
@@ -1011,22 +984,16 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
|
1011
984
|
minVersion: "17.0.0",
|
|
1012
985
|
version: "22.2.3",
|
|
1013
986
|
type: CurrentNotificationsComponent,
|
|
1014
|
-
isStandalone:
|
|
987
|
+
isStandalone: true,
|
|
1015
988
|
selector: "pw-current-notifications",
|
|
1016
989
|
outputs: { moved: "moved" },
|
|
1017
990
|
ngImport: i0,
|
|
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 <
|
|
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"],
|
|
991
|
+
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 <button type=\"button\" class=\"d-inline-block noty-body\"\n (click)=\"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 </button>\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",
|
|
992
|
+
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{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-align:start}.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"],
|
|
1020
993
|
dependencies: [
|
|
1021
|
-
{
|
|
1022
|
-
kind: "directive",
|
|
1023
|
-
type: i2$1.NgClass,
|
|
1024
|
-
selector: "[ngClass]",
|
|
1025
|
-
inputs: ["class", "ngClass"]
|
|
1026
|
-
},
|
|
1027
994
|
{
|
|
1028
995
|
kind: "component",
|
|
1029
|
-
type:
|
|
996
|
+
type: ProgressSpinner,
|
|
1030
997
|
selector: "p-progress-spinner, p-progressspinner",
|
|
1031
998
|
inputs: [
|
|
1032
999
|
"value",
|
|
@@ -1038,9 +1005,21 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
|
1038
1005
|
"fill"
|
|
1039
1006
|
]
|
|
1040
1007
|
},
|
|
1008
|
+
{
|
|
1009
|
+
kind: "directive",
|
|
1010
|
+
type: NgClass,
|
|
1011
|
+
selector: "[ngClass]",
|
|
1012
|
+
inputs: ["class", "ngClass"]
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
kind: "component",
|
|
1016
|
+
type: RecordsSummaryComponent,
|
|
1017
|
+
selector: "pw-records-summary",
|
|
1018
|
+
inputs: ["showing", "total"]
|
|
1019
|
+
},
|
|
1041
1020
|
{
|
|
1042
1021
|
kind: "component",
|
|
1043
|
-
type:
|
|
1022
|
+
type: NoDataComponent,
|
|
1044
1023
|
selector: "pw-no-data",
|
|
1045
1024
|
inputs: [
|
|
1046
1025
|
"message",
|
|
@@ -1048,20 +1027,14 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
|
1048
1027
|
"withImage"
|
|
1049
1028
|
]
|
|
1050
1029
|
},
|
|
1051
|
-
{
|
|
1052
|
-
kind: "component",
|
|
1053
|
-
type: i6$1.RecordsSummaryComponent,
|
|
1054
|
-
selector: "pw-records-summary",
|
|
1055
|
-
inputs: ["showing", "total"]
|
|
1056
|
-
},
|
|
1057
1030
|
{
|
|
1058
1031
|
kind: "pipe",
|
|
1059
|
-
type:
|
|
1032
|
+
type: TranslocoPipe,
|
|
1060
1033
|
name: "transloco"
|
|
1061
1034
|
},
|
|
1062
1035
|
{
|
|
1063
1036
|
kind: "pipe",
|
|
1064
|
-
type:
|
|
1037
|
+
type: SinceAgoPipe,
|
|
1065
1038
|
name: "sinceAgo"
|
|
1066
1039
|
}
|
|
1067
1040
|
]
|
|
@@ -1077,24 +1050,28 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1077
1050
|
type: Component,
|
|
1078
1051
|
args: [{
|
|
1079
1052
|
selector: "pw-current-notifications",
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1053
|
+
imports: [
|
|
1054
|
+
Bind,
|
|
1055
|
+
ProgressSpinner,
|
|
1056
|
+
NgClass,
|
|
1057
|
+
RecordsSummaryComponent,
|
|
1058
|
+
NoDataComponent,
|
|
1059
|
+
TranslocoPipe,
|
|
1060
|
+
SinceAgoPipe
|
|
1061
|
+
],
|
|
1062
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
1063
|
+
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 <button type=\"button\" class=\"d-inline-block noty-body\"\n (click)=\"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 </button>\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",
|
|
1064
|
+
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{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-align:start}.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"]
|
|
1083
1065
|
}]
|
|
1084
1066
|
}],
|
|
1085
|
-
ctorParameters: () => [
|
|
1086
|
-
{ type: i1.NotificationService },
|
|
1087
|
-
{ type: i6$1.NotificationOpenerService },
|
|
1088
|
-
{ type: i0.ChangeDetectorRef }
|
|
1089
|
-
],
|
|
1090
1067
|
propDecorators: { moved: [{ type: Output }] }
|
|
1091
1068
|
});
|
|
1092
1069
|
var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
1093
|
-
constructor(
|
|
1094
|
-
this.notificationService =
|
|
1095
|
-
this.opener =
|
|
1096
|
-
this.confirmDialog =
|
|
1097
|
-
this.cdr =
|
|
1070
|
+
constructor() {
|
|
1071
|
+
this.notificationService = inject(NotificationService);
|
|
1072
|
+
this.opener = inject(NotificationOpenerService);
|
|
1073
|
+
this.confirmDialog = inject(ConfirmDialogService);
|
|
1074
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
1098
1075
|
this.moved = new EventEmitter();
|
|
1099
1076
|
this.notificationCount = 0;
|
|
1100
1077
|
this.noNoti = true;
|
|
@@ -1174,12 +1151,7 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
|
1174
1151
|
version: "22.2.3",
|
|
1175
1152
|
ngImport: i0,
|
|
1176
1153
|
type: DismissedNotificationsComponent,
|
|
1177
|
-
deps: [
|
|
1178
|
-
{ token: i1.NotificationService },
|
|
1179
|
-
{ token: i6$1.NotificationOpenerService },
|
|
1180
|
-
{ token: i6$1.ConfirmDialogService },
|
|
1181
|
-
{ token: i0.ChangeDetectorRef }
|
|
1182
|
-
],
|
|
1154
|
+
deps: [],
|
|
1183
1155
|
target: i0.ɵɵFactoryTarget.Component
|
|
1184
1156
|
});
|
|
1185
1157
|
}
|
|
@@ -1188,22 +1160,16 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
|
1188
1160
|
minVersion: "17.0.0",
|
|
1189
1161
|
version: "22.2.3",
|
|
1190
1162
|
type: DismissedNotificationsComponent,
|
|
1191
|
-
isStandalone:
|
|
1163
|
+
isStandalone: true,
|
|
1192
1164
|
selector: "pw-dismissed-notifications",
|
|
1193
1165
|
outputs: { moved: "moved" },
|
|
1194
1166
|
ngImport: i0,
|
|
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 <
|
|
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"],
|
|
1167
|
+
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 <button type=\"button\" class=\"d-inline-block noty-body\"\n (click)=\"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 </button>\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",
|
|
1168
|
+
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{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-align:start}.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"],
|
|
1197
1169
|
dependencies: [
|
|
1198
|
-
{
|
|
1199
|
-
kind: "directive",
|
|
1200
|
-
type: i2$1.NgClass,
|
|
1201
|
-
selector: "[ngClass]",
|
|
1202
|
-
inputs: ["class", "ngClass"]
|
|
1203
|
-
},
|
|
1204
1170
|
{
|
|
1205
1171
|
kind: "component",
|
|
1206
|
-
type:
|
|
1172
|
+
type: ProgressSpinner,
|
|
1207
1173
|
selector: "p-progress-spinner, p-progressspinner",
|
|
1208
1174
|
inputs: [
|
|
1209
1175
|
"value",
|
|
@@ -1215,9 +1181,21 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
|
1215
1181
|
"fill"
|
|
1216
1182
|
]
|
|
1217
1183
|
},
|
|
1184
|
+
{
|
|
1185
|
+
kind: "directive",
|
|
1186
|
+
type: NgClass,
|
|
1187
|
+
selector: "[ngClass]",
|
|
1188
|
+
inputs: ["class", "ngClass"]
|
|
1189
|
+
},
|
|
1218
1190
|
{
|
|
1219
1191
|
kind: "component",
|
|
1220
|
-
type:
|
|
1192
|
+
type: RecordsSummaryComponent,
|
|
1193
|
+
selector: "pw-records-summary",
|
|
1194
|
+
inputs: ["showing", "total"]
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
kind: "component",
|
|
1198
|
+
type: NoDataComponent,
|
|
1221
1199
|
selector: "pw-no-data",
|
|
1222
1200
|
inputs: [
|
|
1223
1201
|
"message",
|
|
@@ -1225,20 +1203,14 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
|
1225
1203
|
"withImage"
|
|
1226
1204
|
]
|
|
1227
1205
|
},
|
|
1228
|
-
{
|
|
1229
|
-
kind: "component",
|
|
1230
|
-
type: i6$1.RecordsSummaryComponent,
|
|
1231
|
-
selector: "pw-records-summary",
|
|
1232
|
-
inputs: ["showing", "total"]
|
|
1233
|
-
},
|
|
1234
1206
|
{
|
|
1235
1207
|
kind: "pipe",
|
|
1236
|
-
type:
|
|
1208
|
+
type: TranslocoPipe,
|
|
1237
1209
|
name: "transloco"
|
|
1238
1210
|
},
|
|
1239
1211
|
{
|
|
1240
1212
|
kind: "pipe",
|
|
1241
|
-
type:
|
|
1213
|
+
type: SinceAgoPipe,
|
|
1242
1214
|
name: "sinceAgo"
|
|
1243
1215
|
}
|
|
1244
1216
|
]
|
|
@@ -1254,23 +1226,26 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1254
1226
|
type: Component,
|
|
1255
1227
|
args: [{
|
|
1256
1228
|
selector: "pw-dismissed-notifications",
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1229
|
+
imports: [
|
|
1230
|
+
Bind,
|
|
1231
|
+
ProgressSpinner,
|
|
1232
|
+
NgClass,
|
|
1233
|
+
RecordsSummaryComponent,
|
|
1234
|
+
NoDataComponent,
|
|
1235
|
+
TranslocoPipe,
|
|
1236
|
+
SinceAgoPipe
|
|
1237
|
+
],
|
|
1238
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
1239
|
+
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 <button type=\"button\" class=\"d-inline-block noty-body\"\n (click)=\"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 </button>\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",
|
|
1240
|
+
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{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-align:start}.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"]
|
|
1260
1241
|
}]
|
|
1261
1242
|
}],
|
|
1262
|
-
ctorParameters: () => [
|
|
1263
|
-
{ type: i1.NotificationService },
|
|
1264
|
-
{ type: i6$1.NotificationOpenerService },
|
|
1265
|
-
{ type: i6$1.ConfirmDialogService },
|
|
1266
|
-
{ type: i0.ChangeDetectorRef }
|
|
1267
|
-
],
|
|
1268
1243
|
propDecorators: { moved: [{ type: Output }] }
|
|
1269
1244
|
});
|
|
1270
1245
|
var NotificationsPageComponent = class NotificationsPageComponent {
|
|
1271
|
-
constructor(
|
|
1272
|
-
this.notificationService =
|
|
1273
|
-
this.cdr =
|
|
1246
|
+
constructor() {
|
|
1247
|
+
this.notificationService = inject(NotificationService);
|
|
1248
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
1274
1249
|
this.counts = null;
|
|
1275
1250
|
}
|
|
1276
1251
|
ngOnInit() {
|
|
@@ -1298,7 +1273,7 @@ var NotificationsPageComponent = class NotificationsPageComponent {
|
|
|
1298
1273
|
version: "22.2.3",
|
|
1299
1274
|
ngImport: i0,
|
|
1300
1275
|
type: NotificationsPageComponent,
|
|
1301
|
-
deps: [
|
|
1276
|
+
deps: [],
|
|
1302
1277
|
target: i0.ɵɵFactoryTarget.Component
|
|
1303
1278
|
});
|
|
1304
1279
|
}
|
|
@@ -1307,20 +1282,15 @@ var NotificationsPageComponent = class NotificationsPageComponent {
|
|
|
1307
1282
|
minVersion: "17.0.0",
|
|
1308
1283
|
version: "22.2.3",
|
|
1309
1284
|
type: NotificationsPageComponent,
|
|
1310
|
-
isStandalone:
|
|
1285
|
+
isStandalone: true,
|
|
1311
1286
|
selector: "pw-notifications-page",
|
|
1312
1287
|
ngImport: i0,
|
|
1313
1288
|
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"],
|
|
1289
|
+
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{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-align:start}.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"],
|
|
1315
1290
|
dependencies: [
|
|
1316
1291
|
{
|
|
1317
1292
|
kind: "directive",
|
|
1318
|
-
type:
|
|
1319
|
-
selector: "ng-template[ngbNavContent]"
|
|
1320
|
-
},
|
|
1321
|
-
{
|
|
1322
|
-
kind: "directive",
|
|
1323
|
-
type: i2.NgbNav,
|
|
1293
|
+
type: NgbNav,
|
|
1324
1294
|
selector: "[ngbNav]",
|
|
1325
1295
|
inputs: [
|
|
1326
1296
|
"activeId",
|
|
@@ -1340,7 +1310,7 @@ var NotificationsPageComponent = class NotificationsPageComponent {
|
|
|
1340
1310
|
},
|
|
1341
1311
|
{
|
|
1342
1312
|
kind: "directive",
|
|
1343
|
-
type:
|
|
1313
|
+
type: NgbNavItem,
|
|
1344
1314
|
selector: "[ngbNavItem]",
|
|
1345
1315
|
inputs: [
|
|
1346
1316
|
"destroyOnHide",
|
|
@@ -1353,24 +1323,23 @@ var NotificationsPageComponent = class NotificationsPageComponent {
|
|
|
1353
1323
|
},
|
|
1354
1324
|
{
|
|
1355
1325
|
kind: "directive",
|
|
1356
|
-
type:
|
|
1326
|
+
type: NgbNavItemRole,
|
|
1357
1327
|
selector: "[ngbNavItem]:not(ng-container)"
|
|
1358
1328
|
},
|
|
1359
1329
|
{
|
|
1360
1330
|
kind: "directive",
|
|
1361
|
-
type:
|
|
1331
|
+
type: NgbNavLink,
|
|
1362
1332
|
selector: "a[ngbNavLink]"
|
|
1363
1333
|
},
|
|
1364
1334
|
{
|
|
1365
1335
|
kind: "directive",
|
|
1366
|
-
type:
|
|
1336
|
+
type: NgbNavLinkBase,
|
|
1367
1337
|
selector: "[ngbNavLink]"
|
|
1368
1338
|
},
|
|
1369
1339
|
{
|
|
1370
|
-
kind: "
|
|
1371
|
-
type:
|
|
1372
|
-
selector: "[
|
|
1373
|
-
inputs: ["paneRole", "ngbNavOutlet"]
|
|
1340
|
+
kind: "directive",
|
|
1341
|
+
type: NgbNavContent,
|
|
1342
|
+
selector: "ng-template[ngbNavContent]"
|
|
1374
1343
|
},
|
|
1375
1344
|
{
|
|
1376
1345
|
kind: "component",
|
|
@@ -1384,9 +1353,15 @@ var NotificationsPageComponent = class NotificationsPageComponent {
|
|
|
1384
1353
|
selector: "pw-dismissed-notifications",
|
|
1385
1354
|
outputs: ["moved"]
|
|
1386
1355
|
},
|
|
1356
|
+
{
|
|
1357
|
+
kind: "component",
|
|
1358
|
+
type: NgbNavOutlet,
|
|
1359
|
+
selector: "[ngbNavOutlet]",
|
|
1360
|
+
inputs: ["paneRole", "ngbNavOutlet"]
|
|
1361
|
+
},
|
|
1387
1362
|
{
|
|
1388
1363
|
kind: "pipe",
|
|
1389
|
-
type:
|
|
1364
|
+
type: TranslocoPipe,
|
|
1390
1365
|
name: "transloco"
|
|
1391
1366
|
}
|
|
1392
1367
|
]
|
|
@@ -1402,18 +1377,29 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1402
1377
|
type: Component,
|
|
1403
1378
|
args: [{
|
|
1404
1379
|
selector: "pw-notifications-page",
|
|
1405
|
-
|
|
1380
|
+
imports: [
|
|
1381
|
+
NgbNav,
|
|
1382
|
+
NgbNavItem,
|
|
1383
|
+
NgbNavItemRole,
|
|
1384
|
+
NgbNavLink,
|
|
1385
|
+
NgbNavLinkBase,
|
|
1386
|
+
NgbNavContent,
|
|
1387
|
+
CurrentNotificationsComponent,
|
|
1388
|
+
DismissedNotificationsComponent,
|
|
1389
|
+
NgbNavOutlet,
|
|
1390
|
+
TranslocoPipe
|
|
1391
|
+
],
|
|
1392
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
1406
1393
|
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"]
|
|
1394
|
+
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{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-align:start}.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"]
|
|
1408
1395
|
}]
|
|
1409
|
-
}]
|
|
1410
|
-
ctorParameters: () => [{ type: i1.NotificationService }, { type: i0.ChangeDetectorRef }]
|
|
1396
|
+
}]
|
|
1411
1397
|
});
|
|
1412
1398
|
var SearchComponent = class SearchComponent {
|
|
1413
|
-
constructor(
|
|
1414
|
-
this.route =
|
|
1415
|
-
this.service =
|
|
1416
|
-
this.cdr =
|
|
1399
|
+
constructor() {
|
|
1400
|
+
this.route = inject(ActivatedRoute);
|
|
1401
|
+
this.service = inject(DashboardService);
|
|
1402
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
1417
1403
|
this.emptySearchResult = {
|
|
1418
1404
|
users: [],
|
|
1419
1405
|
faqs: [],
|
|
@@ -1488,11 +1474,7 @@ var SearchComponent = class SearchComponent {
|
|
|
1488
1474
|
version: "22.2.3",
|
|
1489
1475
|
ngImport: i0,
|
|
1490
1476
|
type: SearchComponent,
|
|
1491
|
-
deps: [
|
|
1492
|
-
{ token: i3$1.ActivatedRoute },
|
|
1493
|
-
{ token: i1.DashboardService },
|
|
1494
|
-
{ token: i0.ChangeDetectorRef }
|
|
1495
|
-
],
|
|
1477
|
+
deps: [],
|
|
1496
1478
|
target: i0.ɵɵFactoryTarget.Component
|
|
1497
1479
|
});
|
|
1498
1480
|
}
|
|
@@ -1501,15 +1483,34 @@ var SearchComponent = class SearchComponent {
|
|
|
1501
1483
|
minVersion: "17.0.0",
|
|
1502
1484
|
version: "22.2.3",
|
|
1503
1485
|
type: SearchComponent,
|
|
1504
|
-
isStandalone:
|
|
1486
|
+
isStandalone: true,
|
|
1505
1487
|
selector: "pw-search",
|
|
1506
1488
|
ngImport: i0,
|
|
1507
1489
|
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
1490
|
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"],
|
|
1509
1491
|
dependencies: [
|
|
1492
|
+
{
|
|
1493
|
+
kind: "component",
|
|
1494
|
+
type: ProgressSpinner,
|
|
1495
|
+
selector: "p-progress-spinner, p-progressspinner",
|
|
1496
|
+
inputs: [
|
|
1497
|
+
"value",
|
|
1498
|
+
"strokeWidth",
|
|
1499
|
+
"animationDuration",
|
|
1500
|
+
"min",
|
|
1501
|
+
"max",
|
|
1502
|
+
"ariaLabel",
|
|
1503
|
+
"fill"
|
|
1504
|
+
]
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
kind: "directive",
|
|
1508
|
+
type: LazyImgDirective,
|
|
1509
|
+
selector: "img"
|
|
1510
|
+
},
|
|
1510
1511
|
{
|
|
1511
1512
|
kind: "directive",
|
|
1512
|
-
type:
|
|
1513
|
+
type: RouterLink,
|
|
1513
1514
|
selector: "[routerLink]",
|
|
1514
1515
|
inputs: [
|
|
1515
1516
|
"target",
|
|
@@ -1526,28 +1527,9 @@ var SearchComponent = class SearchComponent {
|
|
|
1526
1527
|
"routerLink"
|
|
1527
1528
|
]
|
|
1528
1529
|
},
|
|
1529
|
-
{
|
|
1530
|
-
kind: "directive",
|
|
1531
|
-
type: i4.LazyImgDirective,
|
|
1532
|
-
selector: "img"
|
|
1533
|
-
},
|
|
1534
|
-
{
|
|
1535
|
-
kind: "component",
|
|
1536
|
-
type: i2$3.ProgressSpinner,
|
|
1537
|
-
selector: "p-progress-spinner, p-progressspinner",
|
|
1538
|
-
inputs: [
|
|
1539
|
-
"value",
|
|
1540
|
-
"strokeWidth",
|
|
1541
|
-
"animationDuration",
|
|
1542
|
-
"min",
|
|
1543
|
-
"max",
|
|
1544
|
-
"ariaLabel",
|
|
1545
|
-
"fill"
|
|
1546
|
-
]
|
|
1547
|
-
},
|
|
1548
1530
|
{
|
|
1549
1531
|
kind: "component",
|
|
1550
|
-
type:
|
|
1532
|
+
type: NoDataComponent,
|
|
1551
1533
|
selector: "pw-no-data",
|
|
1552
1534
|
inputs: [
|
|
1553
1535
|
"message",
|
|
@@ -1557,17 +1539,17 @@ var SearchComponent = class SearchComponent {
|
|
|
1557
1539
|
},
|
|
1558
1540
|
{
|
|
1559
1541
|
kind: "pipe",
|
|
1560
|
-
type:
|
|
1542
|
+
type: UpperCasePipe,
|
|
1561
1543
|
name: "uppercase"
|
|
1562
1544
|
},
|
|
1563
1545
|
{
|
|
1564
1546
|
kind: "pipe",
|
|
1565
|
-
type:
|
|
1547
|
+
type: TranslocoPipe,
|
|
1566
1548
|
name: "transloco"
|
|
1567
1549
|
},
|
|
1568
1550
|
{
|
|
1569
1551
|
kind: "pipe",
|
|
1570
|
-
type:
|
|
1552
|
+
type: DOMSanitizerPipe,
|
|
1571
1553
|
name: "safe"
|
|
1572
1554
|
}
|
|
1573
1555
|
]
|
|
@@ -1583,16 +1565,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1583
1565
|
type: Component,
|
|
1584
1566
|
args: [{
|
|
1585
1567
|
selector: "pw-search",
|
|
1586
|
-
|
|
1568
|
+
imports: [
|
|
1569
|
+
Bind,
|
|
1570
|
+
ProgressSpinner,
|
|
1571
|
+
LazyImgDirective,
|
|
1572
|
+
RouterLink,
|
|
1573
|
+
NoDataComponent,
|
|
1574
|
+
UpperCasePipe,
|
|
1575
|
+
TranslocoPipe,
|
|
1576
|
+
DOMSanitizerPipe
|
|
1577
|
+
],
|
|
1578
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
1587
1579
|
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
1580
|
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"]
|
|
1589
1581
|
}]
|
|
1590
|
-
}]
|
|
1591
|
-
ctorParameters: () => [
|
|
1592
|
-
{ type: i3$1.ActivatedRoute },
|
|
1593
|
-
{ type: i1.DashboardService },
|
|
1594
|
-
{ type: i0.ChangeDetectorRef }
|
|
1595
|
-
]
|
|
1582
|
+
}]
|
|
1596
1583
|
});
|
|
1597
1584
|
var DashboardContentModule = class DashboardContentModule {
|
|
1598
1585
|
static {
|
|
@@ -1611,18 +1598,6 @@ var DashboardContentModule = class DashboardContentModule {
|
|
|
1611
1598
|
version: "22.2.3",
|
|
1612
1599
|
ngImport: i0,
|
|
1613
1600
|
type: DashboardContentModule,
|
|
1614
|
-
declarations: [
|
|
1615
|
-
DocumentationComponent,
|
|
1616
|
-
FaqComponent,
|
|
1617
|
-
FaqDetailsComponent,
|
|
1618
|
-
HomeComponent,
|
|
1619
|
-
NotificationsPageComponent,
|
|
1620
|
-
CurrentNotificationsComponent,
|
|
1621
|
-
NotificationsPageComponent,
|
|
1622
|
-
DismissedNotificationsComponent,
|
|
1623
|
-
SearchComponent,
|
|
1624
|
-
UserFeedbackComponent
|
|
1625
|
-
],
|
|
1626
1601
|
imports: [
|
|
1627
1602
|
CommonModule,
|
|
1628
1603
|
FormsModule,
|
|
@@ -1634,7 +1609,17 @@ var DashboardContentModule = class DashboardContentModule {
|
|
|
1634
1609
|
NgbNavModule,
|
|
1635
1610
|
RadioButtonModule,
|
|
1636
1611
|
TooltipModule,
|
|
1637
|
-
ResourceSharedComponentsModule
|
|
1612
|
+
ResourceSharedComponentsModule,
|
|
1613
|
+
DocumentationComponent,
|
|
1614
|
+
FaqComponent,
|
|
1615
|
+
FaqDetailsComponent,
|
|
1616
|
+
HomeComponent,
|
|
1617
|
+
NotificationsPageComponent,
|
|
1618
|
+
CurrentNotificationsComponent,
|
|
1619
|
+
NotificationsPageComponent,
|
|
1620
|
+
DismissedNotificationsComponent,
|
|
1621
|
+
SearchComponent,
|
|
1622
|
+
UserFeedbackComponent
|
|
1638
1623
|
],
|
|
1639
1624
|
exports: [
|
|
1640
1625
|
DocumentationComponent,
|
|
@@ -1668,6 +1653,16 @@ var DashboardContentModule = class DashboardContentModule {
|
|
|
1668
1653
|
RadioButtonModule,
|
|
1669
1654
|
TooltipModule,
|
|
1670
1655
|
ResourceSharedComponentsModule,
|
|
1656
|
+
DocumentationComponent,
|
|
1657
|
+
FaqComponent,
|
|
1658
|
+
FaqDetailsComponent,
|
|
1659
|
+
HomeComponent,
|
|
1660
|
+
NotificationsPageComponent,
|
|
1661
|
+
CurrentNotificationsComponent,
|
|
1662
|
+
NotificationsPageComponent,
|
|
1663
|
+
DismissedNotificationsComponent,
|
|
1664
|
+
SearchComponent,
|
|
1665
|
+
UserFeedbackComponent,
|
|
1671
1666
|
RadioButtonModule
|
|
1672
1667
|
]
|
|
1673
1668
|
});
|
|
@@ -1692,9 +1687,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1692
1687
|
NgbNavModule,
|
|
1693
1688
|
RadioButtonModule,
|
|
1694
1689
|
TooltipModule,
|
|
1695
|
-
ResourceSharedComponentsModule
|
|
1696
|
-
],
|
|
1697
|
-
declarations: [
|
|
1690
|
+
ResourceSharedComponentsModule,
|
|
1698
1691
|
DocumentationComponent,
|
|
1699
1692
|
FaqComponent,
|
|
1700
1693
|
FaqDetailsComponent,
|