@posiwise/dashboard-module 0.0.145 → 0.0.147

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/dashboard-module",
3
- "version": "0.0.145",
3
+ "version": "0.0.147",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.19",
6
6
  "@angular/core": "^21.2.19"
@@ -2,21 +2,22 @@ import * as i0 from '@angular/core';
2
2
  import { OnInit, OnDestroy, Injector, ChangeDetectorRef } from '@angular/core';
3
3
  import * as i10 from '@angular/common';
4
4
  import * as i2 from '@angular/forms';
5
- import * as i14 from '@posiwise/pipes';
5
+ import * as i15 from '@posiwise/pipes';
6
6
  import * as i4 from 'primeng/select';
7
- import * as i5 from '@posiwise/directives';
7
+ import * as i14 from '@posiwise/directives';
8
8
  import * as i13 from '@posiwise/core-transloco';
9
9
  import * as i7 from '@ng-bootstrap/ng-bootstrap';
10
10
  import * as i8 from '@posiwise/user-module';
11
- import * as i17 from 'primeng/radiobutton';
12
- import * as i15 from 'primeng/progressspinner';
11
+ import * as i18 from 'primeng/radiobutton';
12
+ import * as i16 from 'primeng/progressspinner';
13
13
  import { SafeResourceUrl, DomSanitizer, SafeHtml } from '@angular/platform-browser';
14
14
  import { AppBaseComponent } from '@posiwise/app-base-component';
15
15
  import { CommonService, ProductService, HopscotchService, NotificationService, DashboardService } from '@posiwise/common-services';
16
16
  import { FAQ, Product, User, GlobalSearchResponse } from '@posiwise/common-utilities';
17
17
  import * as i12 from '@angular/router';
18
18
  import { ActivatedRoute } from '@angular/router';
19
- import * as i18 from '@posiwise/shared-components';
19
+ import * as i19 from 'primeng/tooltip';
20
+ import * as i20 from '@posiwise/shared-components';
20
21
 
21
22
  declare class DocumentationComponent implements OnInit {
22
23
  private readonly sanitizer;
@@ -32,6 +33,7 @@ declare class DocumentationComponent implements OnInit {
32
33
  interface GroupedFaqs {
33
34
  [category: string]: FAQ[];
34
35
  }
36
+
35
37
  declare class FaqComponent extends AppBaseComponent implements OnInit, OnDestroy {
36
38
  private readonly commonService;
37
39
  private readonly productService;
@@ -63,11 +65,49 @@ declare class FaqComponent extends AppBaseComponent implements OnInit, OnDestroy
63
65
  showDocumentation: any;
64
66
  faqHashMap: {};
65
67
  slug: any;
68
+ readonly routers: {
69
+ globalConfigDetails: string;
70
+ adminCredentialsDetails: string;
71
+ subscriptionCredentialDetails: string;
72
+ newsletter: string;
73
+ mailerDetails: string;
74
+ newsletterItemDetails: string;
75
+ newsletterItemView: string;
76
+ newslettersUserList: string;
77
+ newsletterDetails: string;
78
+ permissionsList: string;
79
+ permissionsDetails: string;
80
+ rolesDetails: string;
81
+ productDetails: string;
82
+ productsUserList: string;
83
+ feedbackQuestions: string;
84
+ feedbackQuestionsDetails: string;
85
+ subscriptionDetails: string;
86
+ subscriptionProductDetails: string;
87
+ tipsDetails: string;
88
+ tosAndPrivacyDetails: string;
89
+ tosAndPrivacyView: string;
90
+ usersDetails: string;
91
+ domainConfig: string;
92
+ domainConfigDetails: string;
93
+ loginNotifications: string;
94
+ incidentConfig: string;
95
+ incidentDetails: string;
96
+ faqConfig: string;
97
+ faqDetails: string;
98
+ inviteUsers: string;
99
+ subscriptionList: string;
100
+ createResource: string;
101
+ createTag: string;
102
+ tags: string;
103
+ posts: string;
104
+ resourcesList: string;
105
+ };
106
+ canEditFaq: boolean;
66
107
  constructor(commonService: CommonService, injector: Injector, productService: ProductService, sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
67
108
  ngOnInit(): void;
68
109
  loadFaqData(): void;
69
110
  private faqValidation;
70
- private prepareSanitizedAnswers;
71
111
  private getProducts;
72
112
  filter(searchValue: string): void;
73
113
  navigateToSupport(): void;
@@ -82,6 +122,15 @@ declare class FaqComponent extends AppBaseComponent implements OnInit, OnDestroy
82
122
  static ɵcmp: i0.ɵɵComponentDeclaration<FaqComponent, "pw-faq", never, {}, {}, never, never, false, never>;
83
123
  }
84
124
 
125
+ interface FaqStatusBadges {
126
+ isPublic: boolean;
127
+ isHidden: boolean;
128
+ category: string;
129
+ categoryLabel: string;
130
+ categoryKeys: string[];
131
+ featureKeys: string[];
132
+ }
133
+
85
134
  declare class FaqDetailsComponent extends AppBaseComponent implements OnInit {
86
135
  private readonly commonService;
87
136
  private readonly sanitizer;
@@ -90,9 +139,55 @@ declare class FaqDetailsComponent extends AppBaseComponent implements OnInit {
90
139
  faq: FAQ;
91
140
  isLoading: boolean;
92
141
  slug: string;
142
+ readonly routers: {
143
+ globalConfigDetails: string;
144
+ adminCredentialsDetails: string;
145
+ subscriptionCredentialDetails: string;
146
+ newsletter: string;
147
+ mailerDetails: string;
148
+ newsletterItemDetails: string;
149
+ newsletterItemView: string;
150
+ newslettersUserList: string;
151
+ newsletterDetails: string;
152
+ permissionsList: string;
153
+ permissionsDetails: string;
154
+ rolesDetails: string;
155
+ productDetails: string;
156
+ productsUserList: string;
157
+ feedbackQuestions: string;
158
+ feedbackQuestionsDetails: string;
159
+ subscriptionDetails: string;
160
+ subscriptionProductDetails: string;
161
+ tipsDetails: string;
162
+ tosAndPrivacyDetails: string;
163
+ tosAndPrivacyView: string;
164
+ usersDetails: string;
165
+ domainConfig: string;
166
+ domainConfigDetails: string;
167
+ loginNotifications: string;
168
+ incidentConfig: string;
169
+ incidentDetails: string;
170
+ faqConfig: string;
171
+ faqDetails: string;
172
+ inviteUsers: string;
173
+ subscriptionList: string;
174
+ createResource: string;
175
+ createTag: string;
176
+ tags: string;
177
+ posts: string;
178
+ resourcesList: string;
179
+ };
180
+ canEditFaq: boolean;
181
+ editFaqId: number | null;
182
+ badges: FaqStatusBadges;
183
+ private hasFaqAdminPermission;
93
184
  constructor(commonService: CommonService, injector: Injector, sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
94
185
  ngOnInit(): void;
186
+ get showStatusBadges(): boolean;
95
187
  getFaq(): void;
188
+ private faqCategories$;
189
+ private sanitizeAnswer;
190
+ private resolveEditFaqId;
96
191
  static ɵfac: i0.ɵɵFactoryDeclaration<FaqDetailsComponent, never>;
97
192
  static ɵcmp: i0.ɵɵComponentDeclaration<FaqDetailsComponent, "pw-faq-details", never, {}, {}, never, never, false, never>;
98
193
  }
@@ -227,13 +322,13 @@ declare class UserFeedbackComponent extends AppBaseComponent implements OnInit {
227
322
 
228
323
  declare class DashboardContentModule {
229
324
  static ɵfac: i0.ɵɵFactoryDeclaration<DashboardContentModule, never>;
230
- static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardContentModule, [typeof DocumentationComponent, typeof FaqComponent, typeof FaqDetailsComponent, typeof HomeComponent, typeof NotificationsPageComponent, typeof CurrentNotificationsComponent, typeof NotificationsPageComponent, typeof DismissedNotificationsComponent, typeof SearchComponent, typeof UserFeedbackComponent], [typeof i10.CommonModule, typeof i2.FormsModule, typeof i12.RouterModule, typeof i13.CoreTranslocoModule, typeof i14.PipesModule, typeof i15.ProgressSpinnerModule, typeof i7.NgbNavModule, typeof i17.RadioButtonModule, typeof i18.ResourceSharedComponentsModule], [typeof DocumentationComponent, typeof FaqComponent, typeof FaqDetailsComponent, typeof HomeComponent, typeof NotificationsPageComponent, typeof CurrentNotificationsComponent, typeof NotificationsPageComponent, typeof DismissedNotificationsComponent, typeof SearchComponent, typeof i17.RadioButtonModule]>;
325
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardContentModule, [typeof DocumentationComponent, typeof FaqComponent, typeof FaqDetailsComponent, typeof HomeComponent, typeof NotificationsPageComponent, typeof CurrentNotificationsComponent, typeof NotificationsPageComponent, typeof DismissedNotificationsComponent, typeof SearchComponent, typeof UserFeedbackComponent], [typeof i10.CommonModule, typeof i2.FormsModule, typeof i12.RouterModule, typeof i13.CoreTranslocoModule, typeof i14.DirectivesModule, typeof i15.PipesModule, typeof i16.ProgressSpinnerModule, typeof i7.NgbNavModule, typeof i18.RadioButtonModule, typeof i19.TooltipModule, typeof i20.ResourceSharedComponentsModule], [typeof DocumentationComponent, typeof FaqComponent, typeof FaqDetailsComponent, typeof HomeComponent, typeof NotificationsPageComponent, typeof CurrentNotificationsComponent, typeof NotificationsPageComponent, typeof DismissedNotificationsComponent, typeof SearchComponent, typeof i18.RadioButtonModule]>;
231
326
  static ɵinj: i0.ɵɵInjectorDeclaration<DashboardContentModule>;
232
327
  }
233
328
 
234
329
  declare class DashboardLibModule {
235
330
  static ɵfac: i0.ɵɵFactoryDeclaration<DashboardLibModule, never>;
236
- static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardLibModule, never, [typeof i10.CommonModule, typeof i2.FormsModule, typeof i14.PipesModule, typeof i4.SelectModule, typeof i5.DirectivesModule, typeof i2.ReactiveFormsModule, typeof i13.CoreTranslocoModule, typeof i7.NgbNavModule, typeof i7.NgbDropdownModule, typeof i8.UserModuleModule, typeof i17.RadioButtonModule, typeof i15.ProgressSpinnerModule, typeof DashboardContentModule], never>;
331
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardLibModule, never, [typeof i10.CommonModule, typeof i2.FormsModule, typeof i15.PipesModule, typeof i4.SelectModule, typeof i14.DirectivesModule, typeof i2.ReactiveFormsModule, typeof i13.CoreTranslocoModule, typeof i7.NgbNavModule, typeof i7.NgbDropdownModule, typeof i8.UserModuleModule, typeof i18.RadioButtonModule, typeof i16.ProgressSpinnerModule, typeof DashboardContentModule], never>;
237
332
  static ɵinj: i0.ɵɵInjectorDeclaration<DashboardLibModule>;
238
333
  }
239
334