@posiwise/dashboard-module 0.0.155 → 0.0.157

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.155",
3
+ "version": "0.0.157",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.2.0",
6
6
  "@angular/core": "^22.2.0"
@@ -1,25 +1,24 @@
1
1
  import * as i0 from "@angular/core";
2
- import { ChangeDetectorRef, EventEmitter, InjectionToken, Injector, OnDestroy, OnInit, Type } from "@angular/core";
3
- import * as i10 from "@angular/common";
4
- import * as i11 from "@angular/forms";
5
- import * as i15 from "@posiwise/pipes";
2
+ import { ChangeDetectorRef, EventEmitter, InjectionToken, OnDestroy, OnInit, Type } from "@angular/core";
3
+ import * as i1 from "@angular/common";
4
+ import * as i2 from "@angular/forms";
5
+ import * as i6 from "@posiwise/pipes";
6
6
  import * as i4 from "primeng/select";
7
- import * as i14 from "@posiwise/directives";
8
- import * as i13 from "@posiwise/core-transloco";
9
- import * as i17 from "@ng-bootstrap/ng-bootstrap";
7
+ import * as i5 from "@posiwise/directives";
8
+ import * as i4$1 from "@posiwise/core-transloco";
9
+ import * as i8$1 from "@ng-bootstrap/ng-bootstrap";
10
10
  import * as i8 from "@posiwise/user-module";
11
- import * as i18 from "primeng/radiobutton";
12
- import * as i16 from "primeng/progressspinner";
13
- import { DomSanitizer, SafeHtml, SafeResourceUrl } from "@angular/platform-browser";
11
+ import * as i9 from "primeng/radiobutton";
12
+ import * as i7 from "primeng/progressspinner";
13
+ import * as i3 from "@angular/router";
14
+ import * as i10 from "primeng/tooltip";
15
+ import * as i11 from "@posiwise/shared-components";
16
+ import { NotificationNote } from "@posiwise/shared-components";
17
+ import { SafeHtml, SafeResourceUrl } from "@angular/platform-browser";
14
18
  import { AppBaseComponent } from "@posiwise/app-base-component";
15
- import { CommonService, DashboardService, HopscotchService, NotificationCounts, NotificationService, ProductService } from "@posiwise/common-services";
16
19
  import { FAQ, GlobalSearchResponse, Product, User } from "@posiwise/common-utilities";
20
+ import { NotificationCounts } from "@posiwise/common-services";
17
21
  import { Observable, Subscription } from "rxjs";
18
- import * as i20 from "@posiwise/shared-components";
19
- import { ConfirmDialogService, NotificationNote, NotificationOpenerService } from "@posiwise/shared-components";
20
- import * as i12 from "@angular/router";
21
- import { ActivatedRoute } from "@angular/router";
22
- import * as i19 from "primeng/tooltip";
23
22
  declare namespace documentation_view_component_d_exports {
24
23
  export { DocumentationComponent };
25
24
  }
@@ -27,11 +26,10 @@ export declare class DocumentationComponent implements OnInit {
27
26
  private readonly sanitizer;
28
27
  iframeUrl: SafeResourceUrl;
29
28
  isLoaded: boolean;
30
- constructor(sanitizer: DomSanitizer);
31
29
  ngOnInit(): void;
32
30
  onIframeLoad(): void;
33
31
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentationComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<DocumentationComponent, "pw-documentation", never, {}, {}, never, never, false, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentationComponent, "pw-documentation", never, {}, {}, never, never, true, never>;
35
33
  }
36
34
  export interface GroupedFaqs {
37
35
  [category: string]: FAQ[];
@@ -113,7 +111,6 @@ export declare class FaqComponent extends AppBaseComponent implements OnInit, On
113
111
  resourcesList: string;
114
112
  };
115
113
  canEditFaq: boolean;
116
- constructor(commonService: CommonService, injector: Injector, productService: ProductService, sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
117
114
  ngOnInit(): void;
118
115
  loadFaqData(): void;
119
116
  private faqValidation;
@@ -128,7 +125,7 @@ export declare class FaqComponent extends AppBaseComponent implements OnInit, On
128
125
  sanitizeFaqAnswer(body: string): any;
129
126
  ngOnDestroy(): void;
130
127
  static ɵfac: i0.ɵɵFactoryDeclaration<FaqComponent, never>;
131
- static ɵcmp: i0.ɵɵComponentDeclaration<FaqComponent, "pw-faq", never, {}, {}, never, never, false, never>;
128
+ static ɵcmp: i0.ɵɵComponentDeclaration<FaqComponent, "pw-faq", never, {}, {}, never, never, true, never>;
132
129
  }
133
130
  interface FaqCategory {
134
131
  key: string;
@@ -153,7 +150,9 @@ export declare class FaqDetailsComponent extends AppBaseComponent implements OnI
153
150
  private readonly sanitizer;
154
151
  private readonly cdr;
155
152
  faqRef: string;
156
- faq: FAQ;
153
+ faq: Omit<FAQ, 'answer'> & {
154
+ answer: SafeHtml;
155
+ };
157
156
  isLoading: boolean;
158
157
  slug: string;
159
158
  readonly routers: {
@@ -198,7 +197,7 @@ export declare class FaqDetailsComponent extends AppBaseComponent implements OnI
198
197
  editFaqId: number | null;
199
198
  badges: FaqStatusBadges;
200
199
  private hasFaqAdminPermission;
201
- constructor(commonService: CommonService, injector: Injector, sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
200
+ constructor();
202
201
  ngOnInit(): void;
203
202
  get showStatusBadges(): boolean;
204
203
  getFaq(): void;
@@ -206,7 +205,7 @@ export declare class FaqDetailsComponent extends AppBaseComponent implements OnI
206
205
  private sanitizeAnswer;
207
206
  private resolveEditFaqId;
208
207
  static ɵfac: i0.ɵɵFactoryDeclaration<FaqDetailsComponent, never>;
209
- static ɵcmp: i0.ɵɵComponentDeclaration<FaqDetailsComponent, "pw-faq-details", never, {}, {}, never, never, false, never>;
208
+ static ɵcmp: i0.ɵɵComponentDeclaration<FaqDetailsComponent, "pw-faq-details", never, {}, {}, never, never, true, never>;
210
209
  }
211
210
  declare namespace home_component_d_exports {
212
211
  export { HomeComponent };
@@ -214,21 +213,23 @@ declare namespace home_component_d_exports {
214
213
  export declare class HomeComponent extends AppBaseComponent implements OnInit, OnDestroy {
215
214
  private readonly hopscotchService;
216
215
  private readonly cdr;
217
- readonly productSections?: Type<unknown>[] | null;
216
+ readonly productSections?: import("@angular/core").Type<unknown>[];
218
217
  user: User;
219
218
  userSlug: string;
220
219
  componentActive: boolean;
221
220
  selectedSubscriptionSlug: string;
222
221
  subscriptionId: number;
223
- constructor(injector: Injector, hopscotchService: HopscotchService, cdr: ChangeDetectorRef, productSections?: Type<unknown>[] | null);
224
222
  sanitizeContent(jsonString: any): any;
225
223
  ngOnInit(): void;
226
224
  ngOnDestroy(): void;
227
- static ɵfac: i0.ɵɵFactoryDeclaration<HomeComponent, [null, null, null, {
228
- optional: true;
229
- }]>;
230
- static ɵcmp: i0.ɵɵComponentDeclaration<HomeComponent, "pw-home", never, {}, {}, never, never, false, never>;
225
+ static ɵfac: i0.ɵɵFactoryDeclaration<HomeComponent, never>;
226
+ static ɵcmp: i0.ɵɵComponentDeclaration<HomeComponent, "pw-home", never, {}, {}, never, never, true, never>;
231
227
  }
228
+ /** A note as the notifications page lists it. */
229
+ type PageNote = NotificationNote & {
230
+ dismissed?: boolean;
231
+ show_on_dashboard?: boolean;
232
+ };
232
233
  type RowActionName = 'dismiss' | 'delete' | 'restore';
233
234
  /** What a finished row action did, so the page can move its tab counts. */
234
235
  type NoteMoved = 'dismissed' | 'restored' | 'deleted';
@@ -252,11 +253,10 @@ export declare class NotificationsPageComponent implements OnInit {
252
253
  private readonly notificationService;
253
254
  private readonly cdr;
254
255
  counts: NotificationCounts | null;
255
- constructor(notificationService: NotificationService, cdr: ChangeDetectorRef);
256
256
  ngOnInit(): void;
257
257
  onMoved(moved: NoteMoved): void;
258
258
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsPageComponent, never>;
259
- static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsPageComponent, "pw-notifications-page", never, {}, {}, never, never, false, never>;
259
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsPageComponent, "pw-notifications-page", never, {}, {}, never, never, true, never>;
260
260
  }
261
261
  declare namespace current_notifications_component_d_exports {
262
262
  export { CurrentNotificationsComponent };
@@ -272,12 +272,11 @@ export declare class CurrentNotificationsComponent implements OnInit, RowActionH
272
272
  busyAction: RowActionName | null;
273
273
  private readonly destroyRef;
274
274
  itemsPerPage: number;
275
- notifications: any[];
275
+ notifications: PageNote[];
276
276
  currentPage: number;
277
277
  isLoaded: boolean;
278
278
  totalPages: number;
279
279
  totalRecords: number;
280
- constructor(notificationService: NotificationService, opener: NotificationOpenerService, cdr: ChangeDetectorRef);
281
280
  ngOnInit(): void;
282
281
  private getNotifications;
283
282
  nextPage(): void;
@@ -290,7 +289,7 @@ export declare class CurrentNotificationsComponent implements OnInit, RowActionH
290
289
  static ɵfac: i0.ɵɵFactoryDeclaration<CurrentNotificationsComponent, never>;
291
290
  static ɵcmp: i0.ɵɵComponentDeclaration<CurrentNotificationsComponent, "pw-current-notifications", never, {}, {
292
291
  "moved": "moved";
293
- }, never, never, false, never>;
292
+ }, never, never, true, never>;
294
293
  }
295
294
  declare namespace dismissed_notifications_component_d_exports {
296
295
  export { DismissedNotificationsComponent };
@@ -306,13 +305,12 @@ export declare class DismissedNotificationsComponent implements OnInit, RowActio
306
305
  busyId: number | null;
307
306
  busyAction: RowActionName | null;
308
307
  private readonly destroyRef;
309
- dismissedNotifications: any[];
308
+ dismissedNotifications: PageNote[];
310
309
  isLoaded: boolean;
311
310
  itemsPerPage: number;
312
311
  currentPage: number;
313
312
  totalPages: number;
314
313
  totalRecords: number;
315
- constructor(notificationService: NotificationService, opener: NotificationOpenerService, confirmDialog: ConfirmDialogService, cdr: ChangeDetectorRef);
316
314
  ngOnInit(): void;
317
315
  private getNotifications;
318
316
  nextPage(): void;
@@ -327,7 +325,7 @@ export declare class DismissedNotificationsComponent implements OnInit, RowActio
327
325
  static ɵfac: i0.ɵɵFactoryDeclaration<DismissedNotificationsComponent, never>;
328
326
  static ɵcmp: i0.ɵɵComponentDeclaration<DismissedNotificationsComponent, "pw-dismissed-notifications", never, {}, {
329
327
  "moved": "moved";
330
- }, never, never, false, never>;
328
+ }, never, never, true, never>;
331
329
  }
332
330
  declare namespace search_component_d_exports {
333
331
  export { SearchComponent };
@@ -345,7 +343,6 @@ export declare class SearchComponent implements OnInit {
345
343
  (o: {}): string[];
346
344
  };
347
345
  subscriptionId: number;
348
- constructor(route: ActivatedRoute, service: DashboardService, cdr: ChangeDetectorRef);
349
346
  ngOnInit(): void;
350
347
  search(): void;
351
348
  get hasResults(): boolean;
@@ -364,7 +361,7 @@ export declare class SearchComponent implements OnInit {
364
361
  id: number;
365
362
  }): number;
366
363
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchComponent, never>;
367
- static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "pw-search", never, {}, {}, never, never, false, never>;
364
+ static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "pw-search", never, {}, {}, never, never, true, never>;
368
365
  }
369
366
  declare namespace user_feedback_component_d_exports {
370
367
  export { UserFeedbackComponent };
@@ -379,7 +376,6 @@ export declare class UserFeedbackComponent extends AppBaseComponent implements O
379
376
  subscriptionId: number;
380
377
  user: User;
381
378
  showSection: boolean;
382
- constructor(injector: Injector, commonService: CommonService, cdr: ChangeDetectorRef);
383
379
  ngOnInit(): void;
384
380
  checkFeedBackExpiry(): void;
385
381
  closeSection(): void;
@@ -389,19 +385,19 @@ export declare class UserFeedbackComponent extends AppBaseComponent implements O
389
385
  id: number;
390
386
  }): number;
391
387
  static ɵfac: i0.ɵɵFactoryDeclaration<UserFeedbackComponent, never>;
392
- static ɵcmp: i0.ɵɵComponentDeclaration<UserFeedbackComponent, "pw-user-feedback", never, {}, {}, never, never, false, never>;
388
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserFeedbackComponent, "pw-user-feedback", never, {}, {}, never, never, true, never>;
393
389
  }
394
390
  declare namespace dashboard_content_module_d_exports {
395
391
  export { DashboardContentModule };
396
392
  }
397
393
  export declare class DashboardContentModule {
398
394
  static ɵfac: i0.ɵɵFactoryDeclaration<DashboardContentModule, never>;
399
- 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 i11.FormsModule, typeof i12.RouterModule, typeof i13.CoreTranslocoModule, typeof i14.DirectivesModule, typeof i15.PipesModule, typeof i16.ProgressSpinnerModule, typeof i17.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]>;
395
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardContentModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i3.RouterModule, typeof i4$1.CoreTranslocoModule, typeof i5.DirectivesModule, typeof i6.PipesModule, typeof i7.ProgressSpinnerModule, typeof i8$1.NgbNavModule, typeof i9.RadioButtonModule, typeof i10.TooltipModule, typeof i11.ResourceSharedComponentsModule, typeof DocumentationComponent, typeof FaqComponent, typeof FaqDetailsComponent, typeof HomeComponent, typeof NotificationsPageComponent, typeof CurrentNotificationsComponent, typeof NotificationsPageComponent, typeof DismissedNotificationsComponent, typeof SearchComponent, typeof UserFeedbackComponent], [typeof DocumentationComponent, typeof FaqComponent, typeof FaqDetailsComponent, typeof HomeComponent, typeof NotificationsPageComponent, typeof CurrentNotificationsComponent, typeof NotificationsPageComponent, typeof DismissedNotificationsComponent, typeof SearchComponent, typeof i9.RadioButtonModule]>;
400
396
  static ɵinj: i0.ɵɵInjectorDeclaration<DashboardContentModule>;
401
397
  }
402
398
  export declare class DashboardLibModule {
403
399
  static ɵfac: i0.ɵɵFactoryDeclaration<DashboardLibModule, never>;
404
- static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardLibModule, never, [typeof i10.CommonModule, typeof i11.FormsModule, typeof i15.PipesModule, typeof i4.SelectModule, typeof i14.DirectivesModule, typeof i11.ReactiveFormsModule, typeof i13.CoreTranslocoModule, typeof i17.NgbNavModule, typeof i17.NgbDropdownModule, typeof i8.UserModuleModule, typeof i18.RadioButtonModule, typeof i16.ProgressSpinnerModule, typeof DashboardContentModule], never>;
400
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardLibModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i6.PipesModule, typeof i4.SelectModule, typeof i5.DirectivesModule, typeof i2.ReactiveFormsModule, typeof i4$1.CoreTranslocoModule, typeof i8$1.NgbNavModule, typeof i8$1.NgbDropdownModule, typeof i8.UserModuleModule, typeof i9.RadioButtonModule, typeof i7.ProgressSpinnerModule, typeof DashboardContentModule], never>;
405
401
  static ɵinj: i0.ɵɵInjectorDeclaration<DashboardLibModule>;
406
402
  }
407
403
  /**