@posiwise/dashboard-module 0.0.152 → 0.0.154
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.
|
@@ -20,7 +20,7 @@ import { SelectModule } from "primeng/select";
|
|
|
20
20
|
import * as i1 from "@ng-bootstrap/ng-bootstrap";
|
|
21
21
|
import { NgbDropdownModule, NgbNavModule } from "@ng-bootstrap/ng-bootstrap";
|
|
22
22
|
import * as i3$1 from "@angular/router";
|
|
23
|
-
import { RouterModule } from "@angular/router";
|
|
23
|
+
import { NavigationEnd, RouterModule } from "@angular/router";
|
|
24
24
|
import * as i6 from "@posiwise/shared-components";
|
|
25
25
|
import { ResourceSharedComponentsModule } from "@posiwise/shared-components";
|
|
26
26
|
import * as i5$1 from "primeng/tooltip";
|
|
@@ -29,7 +29,7 @@ import * as i1$2 from "@angular/platform-browser";
|
|
|
29
29
|
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
30
30
|
import { ADMIN_ROUTERS } from "@posiwise/common-utilities";
|
|
31
31
|
import { HelperService } from "@posiwise/helper-service";
|
|
32
|
-
import { Subject, forkJoin, of } from "rxjs";
|
|
32
|
+
import { Subject, filter, forkJoin, of } from "rxjs";
|
|
33
33
|
import { catchError, debounceTime, finalize, map, switchMap, take, takeUntil } from "rxjs/operators";
|
|
34
34
|
import groupBy from "lodash/groupBy";
|
|
35
35
|
import sortBy from "lodash/sortBy";
|
|
@@ -53,7 +53,7 @@ var DocumentationComponent = class DocumentationComponent {
|
|
|
53
53
|
static {
|
|
54
54
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
55
55
|
minVersion: "12.0.0",
|
|
56
|
-
version: "22.2.
|
|
56
|
+
version: "22.2.3",
|
|
57
57
|
ngImport: i0,
|
|
58
58
|
type: DocumentationComponent,
|
|
59
59
|
deps: [{ token: i1$2.DomSanitizer }],
|
|
@@ -63,7 +63,7 @@ var DocumentationComponent = class DocumentationComponent {
|
|
|
63
63
|
static {
|
|
64
64
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
65
65
|
minVersion: "17.0.0",
|
|
66
|
-
version: "22.2.
|
|
66
|
+
version: "22.2.3",
|
|
67
67
|
type: DocumentationComponent,
|
|
68
68
|
isStandalone: false,
|
|
69
69
|
selector: "pw-documentation",
|
|
@@ -89,7 +89,7 @@ var DocumentationComponent = class DocumentationComponent {
|
|
|
89
89
|
};
|
|
90
90
|
i0.ɵɵngDeclareClassMetadata({
|
|
91
91
|
minVersion: "12.0.0",
|
|
92
|
-
version: "22.2.
|
|
92
|
+
version: "22.2.3",
|
|
93
93
|
ngImport: i0,
|
|
94
94
|
type: DocumentationComponent,
|
|
95
95
|
decorators: [{
|
|
@@ -222,7 +222,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
222
222
|
static {
|
|
223
223
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
224
224
|
minVersion: "12.0.0",
|
|
225
|
-
version: "22.2.
|
|
225
|
+
version: "22.2.3",
|
|
226
226
|
ngImport: i0,
|
|
227
227
|
type: FaqComponent,
|
|
228
228
|
deps: [
|
|
@@ -238,7 +238,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
238
238
|
static {
|
|
239
239
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
240
240
|
minVersion: "17.0.0",
|
|
241
|
-
version: "22.2.
|
|
241
|
+
version: "22.2.3",
|
|
242
242
|
type: FaqComponent,
|
|
243
243
|
isStandalone: false,
|
|
244
244
|
selector: "pw-faq",
|
|
@@ -329,7 +329,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
329
329
|
};
|
|
330
330
|
i0.ɵɵngDeclareClassMetadata({
|
|
331
331
|
minVersion: "12.0.0",
|
|
332
|
-
version: "22.2.
|
|
332
|
+
version: "22.2.3",
|
|
333
333
|
ngImport: i0,
|
|
334
334
|
type: FaqComponent,
|
|
335
335
|
decorators: [{
|
|
@@ -432,7 +432,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
432
432
|
static {
|
|
433
433
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
434
434
|
minVersion: "12.0.0",
|
|
435
|
-
version: "22.2.
|
|
435
|
+
version: "22.2.3",
|
|
436
436
|
ngImport: i0,
|
|
437
437
|
type: FaqDetailsComponent,
|
|
438
438
|
deps: [
|
|
@@ -447,7 +447,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
447
447
|
static {
|
|
448
448
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
449
449
|
minVersion: "17.0.0",
|
|
450
|
-
version: "22.2.
|
|
450
|
+
version: "22.2.3",
|
|
451
451
|
type: FaqDetailsComponent,
|
|
452
452
|
isStandalone: false,
|
|
453
453
|
selector: "pw-faq-details",
|
|
@@ -549,7 +549,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
|
|
|
549
549
|
};
|
|
550
550
|
i0.ɵɵngDeclareClassMetadata({
|
|
551
551
|
minVersion: "12.0.0",
|
|
552
|
-
version: "22.2.
|
|
552
|
+
version: "22.2.3",
|
|
553
553
|
ngImport: i0,
|
|
554
554
|
type: FaqDetailsComponent,
|
|
555
555
|
decorators: [{
|
|
@@ -628,7 +628,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
|
|
|
628
628
|
static {
|
|
629
629
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
630
630
|
minVersion: "12.0.0",
|
|
631
|
-
version: "22.2.
|
|
631
|
+
version: "22.2.3",
|
|
632
632
|
ngImport: i0,
|
|
633
633
|
type: UserFeedbackComponent,
|
|
634
634
|
deps: [
|
|
@@ -642,13 +642,13 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
|
|
|
642
642
|
static {
|
|
643
643
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
644
644
|
minVersion: "17.0.0",
|
|
645
|
-
version: "22.2.
|
|
645
|
+
version: "22.2.3",
|
|
646
646
|
type: UserFeedbackComponent,
|
|
647
647
|
isStandalone: false,
|
|
648
648
|
selector: "pw-user-feedback",
|
|
649
649
|
usesInheritance: true,
|
|
650
650
|
ngImport: i0,
|
|
651
|
-
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 >
|
|
651
|
+
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",
|
|
652
652
|
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"],
|
|
653
653
|
dependencies: [
|
|
654
654
|
{
|
|
@@ -712,6 +712,11 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
|
|
|
712
712
|
"onFocus",
|
|
713
713
|
"onBlur"
|
|
714
714
|
]
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
kind: "pipe",
|
|
718
|
+
type: i7.TranslocoPipe,
|
|
719
|
+
name: "transloco"
|
|
715
720
|
}
|
|
716
721
|
]
|
|
717
722
|
});
|
|
@@ -719,7 +724,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
|
|
|
719
724
|
};
|
|
720
725
|
i0.ɵɵngDeclareClassMetadata({
|
|
721
726
|
minVersion: "12.0.0",
|
|
722
|
-
version: "22.2.
|
|
727
|
+
version: "22.2.3",
|
|
723
728
|
ngImport: i0,
|
|
724
729
|
type: UserFeedbackComponent,
|
|
725
730
|
decorators: [{
|
|
@@ -727,7 +732,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
727
732
|
args: [{
|
|
728
733
|
selector: "pw-user-feedback",
|
|
729
734
|
standalone: false,
|
|
730
|
-
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 >
|
|
735
|
+
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",
|
|
731
736
|
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"]
|
|
732
737
|
}]
|
|
733
738
|
}],
|
|
@@ -793,7 +798,7 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
|
|
|
793
798
|
static {
|
|
794
799
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
795
800
|
minVersion: "12.0.0",
|
|
796
|
-
version: "22.2.
|
|
801
|
+
version: "22.2.3",
|
|
797
802
|
ngImport: i0,
|
|
798
803
|
type: HomeComponent,
|
|
799
804
|
deps: [
|
|
@@ -811,7 +816,7 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
|
|
|
811
816
|
static {
|
|
812
817
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
813
818
|
minVersion: "17.0.0",
|
|
814
|
-
version: "22.2.
|
|
819
|
+
version: "22.2.3",
|
|
815
820
|
type: HomeComponent,
|
|
816
821
|
isStandalone: false,
|
|
817
822
|
selector: "pw-home",
|
|
@@ -874,7 +879,7 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
|
|
|
874
879
|
};
|
|
875
880
|
i0.ɵɵngDeclareClassMetadata({
|
|
876
881
|
minVersion: "12.0.0",
|
|
877
|
-
version: "22.2.
|
|
882
|
+
version: "22.2.3",
|
|
878
883
|
ngImport: i0,
|
|
879
884
|
type: HomeComponent,
|
|
880
885
|
decorators: [{
|
|
@@ -962,7 +967,7 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
|
962
967
|
static {
|
|
963
968
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
964
969
|
minVersion: "12.0.0",
|
|
965
|
-
version: "22.2.
|
|
970
|
+
version: "22.2.3",
|
|
966
971
|
ngImport: i0,
|
|
967
972
|
type: CurrentNotificationsComponent,
|
|
968
973
|
deps: [{ token: i1$1.NotificationService }, { token: i0.ChangeDetectorRef }],
|
|
@@ -972,7 +977,7 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
|
972
977
|
static {
|
|
973
978
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
974
979
|
minVersion: "17.0.0",
|
|
975
|
-
version: "22.2.
|
|
980
|
+
version: "22.2.3",
|
|
976
981
|
type: CurrentNotificationsComponent,
|
|
977
982
|
isStandalone: false,
|
|
978
983
|
selector: "pw-current-notifications",
|
|
@@ -1027,7 +1032,7 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
|
1027
1032
|
};
|
|
1028
1033
|
i0.ɵɵngDeclareClassMetadata({
|
|
1029
1034
|
minVersion: "12.0.0",
|
|
1030
|
-
version: "22.2.
|
|
1035
|
+
version: "22.2.3",
|
|
1031
1036
|
ngImport: i0,
|
|
1032
1037
|
type: CurrentNotificationsComponent,
|
|
1033
1038
|
decorators: [{
|
|
@@ -1116,7 +1121,7 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
|
1116
1121
|
static {
|
|
1117
1122
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1118
1123
|
minVersion: "12.0.0",
|
|
1119
|
-
version: "22.2.
|
|
1124
|
+
version: "22.2.3",
|
|
1120
1125
|
ngImport: i0,
|
|
1121
1126
|
type: DismissedNotificationsComponent,
|
|
1122
1127
|
deps: [{ token: i1$1.NotificationService }, { token: i0.ChangeDetectorRef }],
|
|
@@ -1126,7 +1131,7 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
|
1126
1131
|
static {
|
|
1127
1132
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1128
1133
|
minVersion: "17.0.0",
|
|
1129
|
-
version: "22.2.
|
|
1134
|
+
version: "22.2.3",
|
|
1130
1135
|
type: DismissedNotificationsComponent,
|
|
1131
1136
|
isStandalone: false,
|
|
1132
1137
|
selector: "pw-dismissed-notifications",
|
|
@@ -1181,7 +1186,7 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
|
|
|
1181
1186
|
};
|
|
1182
1187
|
i0.ɵɵngDeclareClassMetadata({
|
|
1183
1188
|
minVersion: "12.0.0",
|
|
1184
|
-
version: "22.2.
|
|
1189
|
+
version: "22.2.3",
|
|
1185
1190
|
ngImport: i0,
|
|
1186
1191
|
type: DismissedNotificationsComponent,
|
|
1187
1192
|
decorators: [{
|
|
@@ -1199,7 +1204,7 @@ var NotificationsPageComponent = class NotificationsPageComponent {
|
|
|
1199
1204
|
static {
|
|
1200
1205
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1201
1206
|
minVersion: "12.0.0",
|
|
1202
|
-
version: "22.2.
|
|
1207
|
+
version: "22.2.3",
|
|
1203
1208
|
ngImport: i0,
|
|
1204
1209
|
type: NotificationsPageComponent,
|
|
1205
1210
|
deps: [],
|
|
@@ -1209,7 +1214,7 @@ var NotificationsPageComponent = class NotificationsPageComponent {
|
|
|
1209
1214
|
static {
|
|
1210
1215
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1211
1216
|
minVersion: "14.0.0",
|
|
1212
|
-
version: "22.2.
|
|
1217
|
+
version: "22.2.3",
|
|
1213
1218
|
type: NotificationsPageComponent,
|
|
1214
1219
|
isStandalone: false,
|
|
1215
1220
|
selector: "pw-notifications-page",
|
|
@@ -1292,7 +1297,7 @@ var NotificationsPageComponent = class NotificationsPageComponent {
|
|
|
1292
1297
|
};
|
|
1293
1298
|
i0.ɵɵngDeclareClassMetadata({
|
|
1294
1299
|
minVersion: "12.0.0",
|
|
1295
|
-
version: "22.2.
|
|
1300
|
+
version: "22.2.3",
|
|
1296
1301
|
ngImport: i0,
|
|
1297
1302
|
type: NotificationsPageComponent,
|
|
1298
1303
|
decorators: [{
|
|
@@ -1381,7 +1386,7 @@ var SearchComponent = class SearchComponent {
|
|
|
1381
1386
|
static {
|
|
1382
1387
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1383
1388
|
minVersion: "12.0.0",
|
|
1384
|
-
version: "22.2.
|
|
1389
|
+
version: "22.2.3",
|
|
1385
1390
|
ngImport: i0,
|
|
1386
1391
|
type: SearchComponent,
|
|
1387
1392
|
deps: [
|
|
@@ -1395,7 +1400,7 @@ var SearchComponent = class SearchComponent {
|
|
|
1395
1400
|
static {
|
|
1396
1401
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1397
1402
|
minVersion: "17.0.0",
|
|
1398
|
-
version: "22.2.
|
|
1403
|
+
version: "22.2.3",
|
|
1399
1404
|
type: SearchComponent,
|
|
1400
1405
|
isStandalone: false,
|
|
1401
1406
|
selector: "pw-search",
|
|
@@ -1472,7 +1477,7 @@ var SearchComponent = class SearchComponent {
|
|
|
1472
1477
|
};
|
|
1473
1478
|
i0.ɵɵngDeclareClassMetadata({
|
|
1474
1479
|
minVersion: "12.0.0",
|
|
1475
|
-
version: "22.2.
|
|
1480
|
+
version: "22.2.3",
|
|
1476
1481
|
ngImport: i0,
|
|
1477
1482
|
type: SearchComponent,
|
|
1478
1483
|
decorators: [{
|
|
@@ -1494,7 +1499,7 @@ var DashboardContentModule = class DashboardContentModule {
|
|
|
1494
1499
|
static {
|
|
1495
1500
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1496
1501
|
minVersion: "12.0.0",
|
|
1497
|
-
version: "22.2.
|
|
1502
|
+
version: "22.2.3",
|
|
1498
1503
|
ngImport: i0,
|
|
1499
1504
|
type: DashboardContentModule,
|
|
1500
1505
|
deps: [],
|
|
@@ -1504,7 +1509,7 @@ var DashboardContentModule = class DashboardContentModule {
|
|
|
1504
1509
|
static {
|
|
1505
1510
|
this.ɵmod = i0.ɵɵngDeclareNgModule({
|
|
1506
1511
|
minVersion: "14.0.0",
|
|
1507
|
-
version: "22.2.
|
|
1512
|
+
version: "22.2.3",
|
|
1508
1513
|
ngImport: i0,
|
|
1509
1514
|
type: DashboardContentModule,
|
|
1510
1515
|
declarations: [
|
|
@@ -1549,7 +1554,7 @@ var DashboardContentModule = class DashboardContentModule {
|
|
|
1549
1554
|
static {
|
|
1550
1555
|
this.ɵinj = i0.ɵɵngDeclareInjector({
|
|
1551
1556
|
minVersion: "12.0.0",
|
|
1552
|
-
version: "22.2.
|
|
1557
|
+
version: "22.2.3",
|
|
1553
1558
|
ngImport: i0,
|
|
1554
1559
|
type: DashboardContentModule,
|
|
1555
1560
|
imports: [
|
|
@@ -1571,7 +1576,7 @@ var DashboardContentModule = class DashboardContentModule {
|
|
|
1571
1576
|
};
|
|
1572
1577
|
i0.ɵɵngDeclareClassMetadata({
|
|
1573
1578
|
minVersion: "12.0.0",
|
|
1574
|
-
version: "22.2.
|
|
1579
|
+
version: "22.2.3",
|
|
1575
1580
|
ngImport: i0,
|
|
1576
1581
|
type: DashboardContentModule,
|
|
1577
1582
|
decorators: [{
|
|
@@ -1622,7 +1627,7 @@ var DashboardLibModule = class DashboardLibModule {
|
|
|
1622
1627
|
static {
|
|
1623
1628
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1624
1629
|
minVersion: "12.0.0",
|
|
1625
|
-
version: "22.2.
|
|
1630
|
+
version: "22.2.3",
|
|
1626
1631
|
ngImport: i0,
|
|
1627
1632
|
type: DashboardLibModule,
|
|
1628
1633
|
deps: [],
|
|
@@ -1632,7 +1637,7 @@ var DashboardLibModule = class DashboardLibModule {
|
|
|
1632
1637
|
static {
|
|
1633
1638
|
this.ɵmod = i0.ɵɵngDeclareNgModule({
|
|
1634
1639
|
minVersion: "14.0.0",
|
|
1635
|
-
version: "22.2.
|
|
1640
|
+
version: "22.2.3",
|
|
1636
1641
|
ngImport: i0,
|
|
1637
1642
|
type: DashboardLibModule,
|
|
1638
1643
|
imports: [
|
|
@@ -1655,7 +1660,7 @@ var DashboardLibModule = class DashboardLibModule {
|
|
|
1655
1660
|
static {
|
|
1656
1661
|
this.ɵinj = i0.ɵɵngDeclareInjector({
|
|
1657
1662
|
minVersion: "12.0.0",
|
|
1658
|
-
version: "22.2.
|
|
1663
|
+
version: "22.2.3",
|
|
1659
1664
|
ngImport: i0,
|
|
1660
1665
|
type: DashboardLibModule,
|
|
1661
1666
|
providers: [SubscriptionService],
|
|
@@ -1679,7 +1684,7 @@ var DashboardLibModule = class DashboardLibModule {
|
|
|
1679
1684
|
};
|
|
1680
1685
|
i0.ɵɵngDeclareClassMetadata({
|
|
1681
1686
|
minVersion: "12.0.0",
|
|
1682
|
-
version: "22.2.
|
|
1687
|
+
version: "22.2.3",
|
|
1683
1688
|
ngImport: i0,
|
|
1684
1689
|
type: DashboardLibModule,
|
|
1685
1690
|
decorators: [{
|
|
@@ -1739,6 +1744,7 @@ const COMMON_MENUS = {
|
|
|
1739
1744
|
permission: "Pages.Product.{permission_key}.{feature_key}.FAQ",
|
|
1740
1745
|
path: "/faq",
|
|
1741
1746
|
title: "FAQ",
|
|
1747
|
+
titleKey: "Menu.Faq",
|
|
1742
1748
|
icon: "ft-info",
|
|
1743
1749
|
order: 999
|
|
1744
1750
|
}),
|
|
@@ -1746,6 +1752,7 @@ const COMMON_MENUS = {
|
|
|
1746
1752
|
permission: "Pages.Product.{permission_key}.{feature_key}.Enterprise",
|
|
1747
1753
|
path: "/enterprise",
|
|
1748
1754
|
title: "Enterprise",
|
|
1755
|
+
titleKey: "Menu.Enterprise",
|
|
1749
1756
|
icon: "ft-package",
|
|
1750
1757
|
class: "has-sub",
|
|
1751
1758
|
badgeClass: "badge rounded-pill bg-danger float-end mt-1",
|
|
@@ -1754,42 +1761,49 @@ const COMMON_MENUS = {
|
|
|
1754
1761
|
createSubMenuItem({
|
|
1755
1762
|
path: ":slug/enterprise/members",
|
|
1756
1763
|
title: "Members",
|
|
1764
|
+
titleKey: "Menu.Enterprise.Members",
|
|
1757
1765
|
icon: "far fa-users"
|
|
1758
1766
|
}),
|
|
1759
1767
|
createSubMenuItem({
|
|
1760
1768
|
permission: "Pages.Alpha",
|
|
1761
1769
|
path: ":slug/enterprise/partners",
|
|
1762
1770
|
title: "Partners",
|
|
1771
|
+
titleKey: "Menu.Enterprise.Partners",
|
|
1763
1772
|
icon: "far fa-users"
|
|
1764
1773
|
}),
|
|
1765
1774
|
createSubMenuItem({
|
|
1766
1775
|
permission: "Pages.Beta",
|
|
1767
1776
|
path: ":slug/enterprise/groups",
|
|
1768
1777
|
title: "Teams",
|
|
1778
|
+
titleKey: "Menu.Enterprise.Teams",
|
|
1769
1779
|
icon: "far fa-users-class"
|
|
1770
1780
|
}),
|
|
1771
1781
|
createSubMenuItem({
|
|
1772
1782
|
permission: "Pages.Beta",
|
|
1773
1783
|
path: ":slug/enterprise/communications",
|
|
1774
1784
|
title: "Communications",
|
|
1785
|
+
titleKey: "Menu.Enterprise.Communications",
|
|
1775
1786
|
icon: "fas fa-comments"
|
|
1776
1787
|
}),
|
|
1777
1788
|
createSubMenuItem({
|
|
1778
1789
|
permission: "Pages.Beta",
|
|
1779
1790
|
path: ":slug/enterprise/wiki",
|
|
1780
1791
|
title: "Documentation",
|
|
1792
|
+
titleKey: "Menu.Enterprise.Documentation",
|
|
1781
1793
|
icon: "fab fa-wikipedia-w"
|
|
1782
1794
|
}),
|
|
1783
1795
|
createSubMenuItem({
|
|
1784
1796
|
permission: "granted:Pages.Alpha && ( SuperAdmin || SubscriptionAdmin )",
|
|
1785
1797
|
path: ":slug/enterprise/ai-knowledge",
|
|
1786
1798
|
title: "AI Knowledge",
|
|
1799
|
+
titleKey: "Menu.Enterprise.AiKnowledge",
|
|
1787
1800
|
icon: "fa fa-brain"
|
|
1788
1801
|
}),
|
|
1789
1802
|
createSubMenuItem({
|
|
1790
1803
|
permission: "Pages.Beta",
|
|
1791
1804
|
path: ":slug/enterprise/insights",
|
|
1792
1805
|
title: "Insights",
|
|
1806
|
+
titleKey: "Menu.Enterprise.Insights",
|
|
1793
1807
|
icon: "far fa-tag"
|
|
1794
1808
|
})
|
|
1795
1809
|
]
|
|
@@ -1798,6 +1812,7 @@ const COMMON_MENUS = {
|
|
|
1798
1812
|
permission: "Pages.Product.{permission_key}.{feature_key}.Chat",
|
|
1799
1813
|
path: "/message",
|
|
1800
1814
|
title: "Chat",
|
|
1815
|
+
titleKey: "Menu.Chat",
|
|
1801
1816
|
icon: "ft-message-square",
|
|
1802
1817
|
badgeClass: "badge rounded-pill bg-danger float-end mt-1",
|
|
1803
1818
|
order: 2
|
|
@@ -1806,6 +1821,7 @@ const COMMON_MENUS = {
|
|
|
1806
1821
|
permission: "Pages.Product.{permission_key}.{feature_key}.Blog || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager",
|
|
1807
1822
|
path: "/posts/list",
|
|
1808
1823
|
title: "Blog",
|
|
1824
|
+
titleKey: "Menu.Blog",
|
|
1809
1825
|
icon: "far fa-blog"
|
|
1810
1826
|
})
|
|
1811
1827
|
};
|
|
@@ -1861,111 +1877,133 @@ const ADMIN_MENU_DATA = [
|
|
|
1861
1877
|
{
|
|
1862
1878
|
key: "GENERIC",
|
|
1863
1879
|
title: "Generic",
|
|
1880
|
+
titleKey: "Menu.Admin.Generic",
|
|
1864
1881
|
icon: "far fa-book"
|
|
1865
1882
|
},
|
|
1866
1883
|
{
|
|
1867
1884
|
key: "DOMAIN_CONFIG",
|
|
1868
1885
|
title: "Domains",
|
|
1886
|
+
titleKey: "Menu.Admin.Domains",
|
|
1869
1887
|
icon: "fa fa-fw fa-cog"
|
|
1870
1888
|
},
|
|
1871
1889
|
{
|
|
1872
1890
|
key: "USERS",
|
|
1873
1891
|
title: "Users",
|
|
1892
|
+
titleKey: "Menu.Admin.Users",
|
|
1874
1893
|
icon: "far fa-user-cog"
|
|
1875
1894
|
},
|
|
1876
1895
|
{
|
|
1877
1896
|
key: "SUBSCRIPTION",
|
|
1878
1897
|
title: "Subscriptions",
|
|
1898
|
+
titleKey: "Menu.Admin.Subscriptions",
|
|
1879
1899
|
icon: "ft-box"
|
|
1880
1900
|
},
|
|
1881
1901
|
{
|
|
1882
1902
|
key: "PRODUCT",
|
|
1883
1903
|
title: "Products",
|
|
1904
|
+
titleKey: "Menu.Admin.Products",
|
|
1884
1905
|
icon: "far fa-parking"
|
|
1885
1906
|
},
|
|
1886
1907
|
{
|
|
1887
1908
|
key: "LOGIN_NOTIFICATION",
|
|
1888
1909
|
title: "Notifications",
|
|
1910
|
+
titleKey: "Menu.Admin.Notifications",
|
|
1889
1911
|
icon: "fa fa-fw fa-bell"
|
|
1890
1912
|
},
|
|
1891
1913
|
{
|
|
1892
1914
|
key: "NEWSLETTER",
|
|
1893
1915
|
title: "Newsletters",
|
|
1916
|
+
titleKey: "Menu.Admin.Newsletters",
|
|
1894
1917
|
icon: "far fa-newspaper"
|
|
1895
1918
|
},
|
|
1896
1919
|
{
|
|
1897
1920
|
key: "MAILER",
|
|
1898
1921
|
title: "Mailers",
|
|
1922
|
+
titleKey: "Menu.Admin.Mailers",
|
|
1899
1923
|
icon: "far fa-envelope"
|
|
1900
1924
|
},
|
|
1901
1925
|
{
|
|
1902
1926
|
key: "BLOG",
|
|
1903
1927
|
title: "Resources",
|
|
1928
|
+
titleKey: "Resource.Posts.Title",
|
|
1904
1929
|
icon: "far fa-blog"
|
|
1905
1930
|
},
|
|
1906
1931
|
{
|
|
1907
1932
|
key: "FEATURE_FLAGS",
|
|
1908
1933
|
title: "Feature Flags",
|
|
1934
|
+
titleKey: "Menu.Admin.FeatureFlags",
|
|
1909
1935
|
icon: "fa fa-fw fa-toggle-on"
|
|
1910
1936
|
},
|
|
1911
1937
|
{
|
|
1912
1938
|
key: "FAQ",
|
|
1913
1939
|
title: "FAQs",
|
|
1940
|
+
titleKey: "Menu.Admin.Faqs",
|
|
1914
1941
|
icon: "fa fa-question"
|
|
1915
1942
|
},
|
|
1916
1943
|
{
|
|
1917
1944
|
key: "INCIDENT",
|
|
1918
1945
|
title: "Incidents",
|
|
1946
|
+
titleKey: "Menu.Admin.Incidents",
|
|
1919
1947
|
icon: "fa fa-solid fa-triangle-exclamation"
|
|
1920
1948
|
},
|
|
1921
1949
|
{
|
|
1922
1950
|
key: "CONTACT_US",
|
|
1923
1951
|
title: "Contact Us",
|
|
1952
|
+
titleKey: "Menu.Admin.ContactUs",
|
|
1924
1953
|
icon: "fa fa-address-book"
|
|
1925
1954
|
},
|
|
1926
1955
|
{
|
|
1927
1956
|
key: "TIPS",
|
|
1928
1957
|
title: "Tours",
|
|
1958
|
+
titleKey: "Menu.Admin.Tours",
|
|
1929
1959
|
icon: "far fa-lightbulb"
|
|
1930
1960
|
},
|
|
1931
1961
|
{
|
|
1932
1962
|
key: "TAGS",
|
|
1933
1963
|
title: "Tags",
|
|
1964
|
+
titleKey: "Menu.Admin.Tags",
|
|
1934
1965
|
icon: "far fa-tags"
|
|
1935
1966
|
},
|
|
1936
1967
|
{
|
|
1937
1968
|
key: "ROLES",
|
|
1938
1969
|
title: "Permissions",
|
|
1970
|
+
titleKey: "Label.Permissions",
|
|
1939
1971
|
icon: "fas fa-key"
|
|
1940
1972
|
},
|
|
1941
1973
|
{
|
|
1942
1974
|
key: "TOS",
|
|
1943
1975
|
title: "Privacy & TOS",
|
|
1976
|
+
titleKey: "Menu.Admin.PrivacyTos",
|
|
1944
1977
|
icon: "fas fa-sticky-note"
|
|
1945
1978
|
},
|
|
1946
1979
|
{
|
|
1947
1980
|
key: "CREDENTIAL",
|
|
1948
1981
|
title: "Credentials",
|
|
1982
|
+
titleKey: "Menu.Admin.Credentials",
|
|
1949
1983
|
icon: "fas fa-file-signature"
|
|
1950
1984
|
},
|
|
1951
1985
|
{
|
|
1952
1986
|
key: "OAUTH_CLIENTS",
|
|
1953
1987
|
title: "MCP OAuth Clients",
|
|
1988
|
+
titleKey: "Admin.OauthClients.Title",
|
|
1954
1989
|
icon: "fas fa-robot"
|
|
1955
1990
|
},
|
|
1956
1991
|
{
|
|
1957
1992
|
key: "AMBASSADOR_PAYOUTS",
|
|
1958
1993
|
title: "Ambassador Payouts",
|
|
1994
|
+
titleKey: "Admin.AmbassadorPayouts.Title",
|
|
1959
1995
|
icon: "fa fa-handshake"
|
|
1960
1996
|
},
|
|
1961
1997
|
{
|
|
1962
1998
|
key: "TRACKING",
|
|
1963
1999
|
title: "Tracking",
|
|
2000
|
+
titleKey: "Menu.Admin.Tracking",
|
|
1964
2001
|
icon: "fa fa-map-marker"
|
|
1965
2002
|
},
|
|
1966
2003
|
{
|
|
1967
2004
|
key: "GLOBAL_CONFIG",
|
|
1968
2005
|
title: "Global Configs",
|
|
2006
|
+
titleKey: "Menu.Admin.GlobalConfigs",
|
|
1969
2007
|
icon: "fa fa-fw fa-cog"
|
|
1970
2008
|
}
|
|
1971
2009
|
];
|
|
@@ -1973,6 +2011,7 @@ const createAdminSubMenuItem = (menuKey) => createSubMenuItem({
|
|
|
1973
2011
|
permission: ADMIN_PERMISSIONS[menuKey],
|
|
1974
2012
|
path: ADMIN_PATHS[menuKey],
|
|
1975
2013
|
title: ADMIN_MENU_DATA.find((item) => item.key === menuKey)?.title || "",
|
|
2014
|
+
titleKey: ADMIN_MENU_DATA.find((item) => item.key === menuKey)?.titleKey,
|
|
1976
2015
|
icon: ADMIN_MENU_DATA.find((item) => item.key === menuKey)?.icon || ""
|
|
1977
2016
|
});
|
|
1978
2017
|
const generateAdminSubmenu = () => ADMIN_MENU_DATA.map((item) => createAdminSubMenuItem(item.key));
|
|
@@ -1980,18 +2019,41 @@ const ROUTES = [createMenuItem({
|
|
|
1980
2019
|
permission: "Pages.Dashboard",
|
|
1981
2020
|
path: "/home",
|
|
1982
2021
|
title: "Home",
|
|
2022
|
+
titleKey: "Button.Home",
|
|
1983
2023
|
icon: "ft-home",
|
|
1984
2024
|
order: 1
|
|
1985
2025
|
}), createMenuItem({
|
|
1986
2026
|
permission: "Pages.Admin",
|
|
1987
2027
|
path: null,
|
|
1988
2028
|
title: "Admin",
|
|
2029
|
+
titleKey: "Menu.Admin",
|
|
1989
2030
|
icon: "ft-user",
|
|
1990
2031
|
class: "has-sub",
|
|
1991
2032
|
order: 3,
|
|
1992
2033
|
submenu: generateAdminSubmenu()
|
|
1993
2034
|
})];
|
|
1994
2035
|
const { FAQ_Menu, ENTERPRISE_MENU, CHAT_MENU, BLOG_MENU } = COMMON_MENUS;
|
|
1995
|
-
|
|
2036
|
+
function openActiveGroup(doc) {
|
|
2037
|
+
if (doc.querySelector(".wrapper")?.classList.contains("nav-collapsed")) return;
|
|
2038
|
+
const active = doc.querySelector(".sidebar-content .navigation li.active");
|
|
2039
|
+
let parent = active?.parentElement?.closest("li.has-sub");
|
|
2040
|
+
while (parent) {
|
|
2041
|
+
parent.classList.add("open");
|
|
2042
|
+
parent = parent.parentElement?.closest("li.has-sub");
|
|
2043
|
+
}
|
|
2044
|
+
revealInSidebar(doc.querySelector(".sidebar-content"), active);
|
|
2045
|
+
}
|
|
2046
|
+
function revealInSidebar(sidebar, item) {
|
|
2047
|
+
if (!sidebar || !item) return;
|
|
2048
|
+
const box = sidebar.getBoundingClientRect();
|
|
2049
|
+
const rect = item.getBoundingClientRect();
|
|
2050
|
+
if (rect.top >= box.top && rect.bottom <= box.bottom) return;
|
|
2051
|
+
const offset = rect.top + rect.height / 2 - (box.top + box.height / 2);
|
|
2052
|
+
sidebar.scrollTop = Math.max(0, Math.round(sidebar.scrollTop + offset));
|
|
2053
|
+
}
|
|
2054
|
+
function watchActiveGroup(doc, routerEvents$) {
|
|
2055
|
+
return routerEvents$.pipe(filter((event) => event instanceof NavigationEnd)).subscribe(() => setTimeout(() => openActiveGroup(doc)));
|
|
2056
|
+
}
|
|
2057
|
+
export { BLOG_MENU, CHAT_MENU, CurrentNotificationsComponent, DashboardContentModule, DashboardLibModule, DismissedNotificationsComponent, DocumentationComponent, ENTERPRISE_MENU, FAQ_Menu, FaqComponent, FaqDetailsComponent, HOME_PRODUCT_SECTIONS, HomeComponent, NotificationsPageComponent, ROUTES, SearchComponent, UserFeedbackComponent, filterMenusByFeatureFlag, openActiveGroup, watchActiveGroup };
|
|
1996
2058
|
|
|
1997
2059
|
//# sourceMappingURL=posiwise-dashboard-module.mjs.map
|