@posiwise/dashboard-module 0.0.154 → 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.
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { ChangeDetectorRef,
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
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
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
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
|
|
12
|
-
import * as
|
|
13
|
-
import
|
|
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, NotificationService, ProductService } from "@posiwise/common-services";
|
|
16
19
|
import { FAQ, GlobalSearchResponse, Product, User } from "@posiwise/common-utilities";
|
|
17
|
-
import
|
|
18
|
-
import { ActivatedRoute } from "@angular/router";
|
|
19
|
-
import * as i19 from "primeng/tooltip";
|
|
20
|
-
import * as i20 from "@posiwise/shared-components";
|
|
20
|
+
import { NotificationCounts } from "@posiwise/common-services";
|
|
21
21
|
import { Observable, Subscription } from "rxjs";
|
|
22
22
|
declare namespace documentation_view_component_d_exports {
|
|
23
23
|
export { DocumentationComponent };
|
|
@@ -26,11 +26,10 @@ export declare class DocumentationComponent implements OnInit {
|
|
|
26
26
|
private readonly sanitizer;
|
|
27
27
|
iframeUrl: SafeResourceUrl;
|
|
28
28
|
isLoaded: boolean;
|
|
29
|
-
constructor(sanitizer: DomSanitizer);
|
|
30
29
|
ngOnInit(): void;
|
|
31
30
|
onIframeLoad(): void;
|
|
32
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentationComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentationComponent, "pw-documentation", never, {}, {}, never, never,
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentationComponent, "pw-documentation", never, {}, {}, never, never, true, never>;
|
|
34
33
|
}
|
|
35
34
|
export interface GroupedFaqs {
|
|
36
35
|
[category: string]: FAQ[];
|
|
@@ -112,7 +111,6 @@ export declare class FaqComponent extends AppBaseComponent implements OnInit, On
|
|
|
112
111
|
resourcesList: string;
|
|
113
112
|
};
|
|
114
113
|
canEditFaq: boolean;
|
|
115
|
-
constructor(commonService: CommonService, injector: Injector, productService: ProductService, sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
|
|
116
114
|
ngOnInit(): void;
|
|
117
115
|
loadFaqData(): void;
|
|
118
116
|
private faqValidation;
|
|
@@ -127,7 +125,7 @@ export declare class FaqComponent extends AppBaseComponent implements OnInit, On
|
|
|
127
125
|
sanitizeFaqAnswer(body: string): any;
|
|
128
126
|
ngOnDestroy(): void;
|
|
129
127
|
static ɵfac: i0.ɵɵFactoryDeclaration<FaqComponent, never>;
|
|
130
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FaqComponent, "pw-faq", never, {}, {}, never, never,
|
|
128
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FaqComponent, "pw-faq", never, {}, {}, never, never, true, never>;
|
|
131
129
|
}
|
|
132
130
|
interface FaqCategory {
|
|
133
131
|
key: string;
|
|
@@ -197,7 +195,7 @@ export declare class FaqDetailsComponent extends AppBaseComponent implements OnI
|
|
|
197
195
|
editFaqId: number | null;
|
|
198
196
|
badges: FaqStatusBadges;
|
|
199
197
|
private hasFaqAdminPermission;
|
|
200
|
-
constructor(
|
|
198
|
+
constructor();
|
|
201
199
|
ngOnInit(): void;
|
|
202
200
|
get showStatusBadges(): boolean;
|
|
203
201
|
getFaq(): void;
|
|
@@ -205,7 +203,7 @@ export declare class FaqDetailsComponent extends AppBaseComponent implements OnI
|
|
|
205
203
|
private sanitizeAnswer;
|
|
206
204
|
private resolveEditFaqId;
|
|
207
205
|
static ɵfac: i0.ɵɵFactoryDeclaration<FaqDetailsComponent, never>;
|
|
208
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FaqDetailsComponent, "pw-faq-details", never, {}, {}, never, never,
|
|
206
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FaqDetailsComponent, "pw-faq-details", never, {}, {}, never, never, true, never>;
|
|
209
207
|
}
|
|
210
208
|
declare namespace home_component_d_exports {
|
|
211
209
|
export { HomeComponent };
|
|
@@ -213,80 +211,114 @@ declare namespace home_component_d_exports {
|
|
|
213
211
|
export declare class HomeComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
214
212
|
private readonly hopscotchService;
|
|
215
213
|
private readonly cdr;
|
|
216
|
-
readonly productSections?: Type<unknown>[]
|
|
214
|
+
readonly productSections?: import("@angular/core").Type<unknown>[];
|
|
217
215
|
user: User;
|
|
218
216
|
userSlug: string;
|
|
219
217
|
componentActive: boolean;
|
|
220
218
|
selectedSubscriptionSlug: string;
|
|
221
219
|
subscriptionId: number;
|
|
222
|
-
constructor(injector: Injector, hopscotchService: HopscotchService, cdr: ChangeDetectorRef, productSections?: Type<unknown>[] | null);
|
|
223
220
|
sanitizeContent(jsonString: any): any;
|
|
224
221
|
ngOnInit(): void;
|
|
225
222
|
ngOnDestroy(): void;
|
|
226
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HomeComponent,
|
|
227
|
-
|
|
228
|
-
}]>;
|
|
229
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HomeComponent, "pw-home", never, {}, {}, never, never, false, never>;
|
|
223
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HomeComponent, never>;
|
|
224
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HomeComponent, "pw-home", never, {}, {}, never, never, true, never>;
|
|
230
225
|
}
|
|
226
|
+
type RowActionName = 'dismiss' | 'delete' | 'restore';
|
|
227
|
+
/** What a finished row action did, so the page can move its tab counts. */
|
|
228
|
+
type NoteMoved = 'dismissed' | 'restored' | 'deleted';
|
|
229
|
+
interface RowActionHost {
|
|
230
|
+
busyId: number | null;
|
|
231
|
+
busyAction: RowActionName | null;
|
|
232
|
+
}
|
|
233
|
+
/** The clicked action's icon spins and every action is disabled until the request settles, either way. */
|
|
234
|
+
declare function rowAction<T>(host: RowActionHost, id: number, action: RowActionName, request: Observable<T>, cdr: ChangeDetectorRef): Observable<T>;
|
|
235
|
+
/** Fades the notes a read event covers: one note, or every note for "mark all as read". */
|
|
236
|
+
declare function applyReadEvent(notes: {
|
|
237
|
+
id: number;
|
|
238
|
+
unread?: boolean | null;
|
|
239
|
+
}[], event: {
|
|
240
|
+
id: number | 'all';
|
|
241
|
+
}): void;
|
|
231
242
|
declare namespace notifications_page_component_d_exports {
|
|
232
243
|
export { NotificationsPageComponent };
|
|
233
244
|
}
|
|
234
|
-
export declare class NotificationsPageComponent {
|
|
245
|
+
export declare class NotificationsPageComponent implements OnInit {
|
|
246
|
+
private readonly notificationService;
|
|
247
|
+
private readonly cdr;
|
|
248
|
+
counts: NotificationCounts | null;
|
|
249
|
+
ngOnInit(): void;
|
|
250
|
+
onMoved(moved: NoteMoved): void;
|
|
235
251
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsPageComponent, never>;
|
|
236
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsPageComponent, "pw-notifications-page", never, {}, {}, never, never,
|
|
252
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsPageComponent, "pw-notifications-page", never, {}, {}, never, never, true, never>;
|
|
237
253
|
}
|
|
238
254
|
declare namespace current_notifications_component_d_exports {
|
|
239
255
|
export { CurrentNotificationsComponent };
|
|
240
256
|
}
|
|
241
|
-
export declare class CurrentNotificationsComponent implements OnInit {
|
|
257
|
+
export declare class CurrentNotificationsComponent implements OnInit, RowActionHost {
|
|
242
258
|
private readonly notificationService;
|
|
259
|
+
private readonly opener;
|
|
243
260
|
private readonly cdr;
|
|
261
|
+
readonly moved: EventEmitter<NoteMoved>;
|
|
244
262
|
notificationCount: number;
|
|
245
263
|
noNoti: boolean;
|
|
264
|
+
busyId: number | null;
|
|
265
|
+
busyAction: RowActionName | null;
|
|
266
|
+
private readonly destroyRef;
|
|
246
267
|
itemsPerPage: number;
|
|
247
268
|
notifications: any[];
|
|
248
269
|
currentPage: number;
|
|
249
270
|
isLoaded: boolean;
|
|
250
271
|
totalPages: number;
|
|
251
272
|
totalRecords: number;
|
|
252
|
-
constructor(notificationService: NotificationService, cdr: ChangeDetectorRef);
|
|
253
273
|
ngOnInit(): void;
|
|
254
274
|
private getNotifications;
|
|
255
275
|
nextPage(): void;
|
|
256
276
|
previousPage(): void;
|
|
257
277
|
dismiss(id: number, e: any): void;
|
|
278
|
+
open(note: NotificationNote): void;
|
|
258
279
|
trackByNotification(_index: number, item: {
|
|
259
280
|
id: number;
|
|
260
281
|
}): number;
|
|
261
282
|
static ɵfac: i0.ɵɵFactoryDeclaration<CurrentNotificationsComponent, never>;
|
|
262
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CurrentNotificationsComponent, "pw-current-notifications", never, {}, {
|
|
283
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CurrentNotificationsComponent, "pw-current-notifications", never, {}, {
|
|
284
|
+
"moved": "moved";
|
|
285
|
+
}, never, never, true, never>;
|
|
263
286
|
}
|
|
264
287
|
declare namespace dismissed_notifications_component_d_exports {
|
|
265
288
|
export { DismissedNotificationsComponent };
|
|
266
289
|
}
|
|
267
|
-
export declare class DismissedNotificationsComponent implements OnInit {
|
|
290
|
+
export declare class DismissedNotificationsComponent implements OnInit, RowActionHost {
|
|
268
291
|
private readonly notificationService;
|
|
292
|
+
private readonly opener;
|
|
293
|
+
private readonly confirmDialog;
|
|
269
294
|
private readonly cdr;
|
|
295
|
+
readonly moved: EventEmitter<NoteMoved>;
|
|
270
296
|
notificationCount: number;
|
|
271
297
|
noNoti: boolean;
|
|
298
|
+
busyId: number | null;
|
|
299
|
+
busyAction: RowActionName | null;
|
|
300
|
+
private readonly destroyRef;
|
|
272
301
|
dismissedNotifications: any[];
|
|
273
302
|
isLoaded: boolean;
|
|
274
303
|
itemsPerPage: number;
|
|
275
304
|
currentPage: number;
|
|
276
305
|
totalPages: number;
|
|
277
306
|
totalRecords: number;
|
|
278
|
-
constructor(notificationService: NotificationService, cdr: ChangeDetectorRef);
|
|
279
307
|
ngOnInit(): void;
|
|
280
308
|
private getNotifications;
|
|
281
309
|
nextPage(): void;
|
|
282
310
|
previousPage(): void;
|
|
283
311
|
dismiss(id: number, e: any): void;
|
|
284
312
|
restoreNotification(id: number, e: any): void;
|
|
313
|
+
private removeAfter;
|
|
314
|
+
open(note: NotificationNote): void;
|
|
285
315
|
trackByNotification(_index: number, item: {
|
|
286
316
|
id: number;
|
|
287
317
|
}): number;
|
|
288
318
|
static ɵfac: i0.ɵɵFactoryDeclaration<DismissedNotificationsComponent, never>;
|
|
289
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DismissedNotificationsComponent, "pw-dismissed-notifications", never, {}, {
|
|
319
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DismissedNotificationsComponent, "pw-dismissed-notifications", never, {}, {
|
|
320
|
+
"moved": "moved";
|
|
321
|
+
}, never, never, true, never>;
|
|
290
322
|
}
|
|
291
323
|
declare namespace search_component_d_exports {
|
|
292
324
|
export { SearchComponent };
|
|
@@ -304,7 +336,6 @@ export declare class SearchComponent implements OnInit {
|
|
|
304
336
|
(o: {}): string[];
|
|
305
337
|
};
|
|
306
338
|
subscriptionId: number;
|
|
307
|
-
constructor(route: ActivatedRoute, service: DashboardService, cdr: ChangeDetectorRef);
|
|
308
339
|
ngOnInit(): void;
|
|
309
340
|
search(): void;
|
|
310
341
|
get hasResults(): boolean;
|
|
@@ -323,7 +354,7 @@ export declare class SearchComponent implements OnInit {
|
|
|
323
354
|
id: number;
|
|
324
355
|
}): number;
|
|
325
356
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchComponent, never>;
|
|
326
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "pw-search", never, {}, {}, never, never,
|
|
357
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "pw-search", never, {}, {}, never, never, true, never>;
|
|
327
358
|
}
|
|
328
359
|
declare namespace user_feedback_component_d_exports {
|
|
329
360
|
export { UserFeedbackComponent };
|
|
@@ -338,7 +369,6 @@ export declare class UserFeedbackComponent extends AppBaseComponent implements O
|
|
|
338
369
|
subscriptionId: number;
|
|
339
370
|
user: User;
|
|
340
371
|
showSection: boolean;
|
|
341
|
-
constructor(injector: Injector, commonService: CommonService, cdr: ChangeDetectorRef);
|
|
342
372
|
ngOnInit(): void;
|
|
343
373
|
checkFeedBackExpiry(): void;
|
|
344
374
|
closeSection(): void;
|
|
@@ -348,19 +378,19 @@ export declare class UserFeedbackComponent extends AppBaseComponent implements O
|
|
|
348
378
|
id: number;
|
|
349
379
|
}): number;
|
|
350
380
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserFeedbackComponent, never>;
|
|
351
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserFeedbackComponent, "pw-user-feedback", never, {}, {}, never, never,
|
|
381
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserFeedbackComponent, "pw-user-feedback", never, {}, {}, never, never, true, never>;
|
|
352
382
|
}
|
|
353
383
|
declare namespace dashboard_content_module_d_exports {
|
|
354
384
|
export { DashboardContentModule };
|
|
355
385
|
}
|
|
356
386
|
export declare class DashboardContentModule {
|
|
357
387
|
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardContentModule, never>;
|
|
358
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardContentModule,
|
|
388
|
+
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]>;
|
|
359
389
|
static ɵinj: i0.ɵɵInjectorDeclaration<DashboardContentModule>;
|
|
360
390
|
}
|
|
361
391
|
export declare class DashboardLibModule {
|
|
362
392
|
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardLibModule, never>;
|
|
363
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardLibModule, never, [typeof
|
|
393
|
+
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>;
|
|
364
394
|
static ɵinj: i0.ɵɵInjectorDeclaration<DashboardLibModule>;
|
|
365
395
|
}
|
|
366
396
|
/**
|