@posiwise/dashboard-module 0.0.101 → 0.0.103
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/esm2022/lib/faq/faq.component.mjs +17 -10
- package/esm2022/lib/faq-details/faq-details.component.mjs +24 -12
- package/fesm2022/posiwise-dashboard-module.mjs +36 -20
- package/fesm2022/posiwise-dashboard-module.mjs.map +1 -1
- package/lib/faq/faq.component.d.ts +4 -1
- package/lib/faq-details/faq-details.component.d.ts +3 -1
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
3
3
|
import { FAQ, Product } from '@posiwise/common-utilities';
|
|
4
4
|
import { CommonService, ProductService } from '@posiwise/common-services';
|
|
5
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export interface GroupedFaqs {
|
|
7
8
|
[category: string]: FAQ[];
|
|
@@ -9,6 +10,7 @@ export interface GroupedFaqs {
|
|
|
9
10
|
export declare class FaqComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
10
11
|
private commonService;
|
|
11
12
|
private productService;
|
|
13
|
+
private sanitizer;
|
|
12
14
|
faqs: GroupedFaqs;
|
|
13
15
|
search_term: string;
|
|
14
16
|
productFaq: FAQ[];
|
|
@@ -28,7 +30,7 @@ export declare class FaqComponent extends AppBaseComponent implements OnInit, On
|
|
|
28
30
|
subscriptionId: number;
|
|
29
31
|
showSupport: boolean;
|
|
30
32
|
faqHashMap: {};
|
|
31
|
-
constructor(commonService: CommonService, injector: Injector, productService: ProductService);
|
|
33
|
+
constructor(commonService: CommonService, injector: Injector, productService: ProductService, sanitizer: DomSanitizer);
|
|
32
34
|
ngOnInit(): void;
|
|
33
35
|
loadFaqData(): void;
|
|
34
36
|
private faqValidation;
|
|
@@ -41,6 +43,7 @@ export declare class FaqComponent extends AppBaseComponent implements OnInit, On
|
|
|
41
43
|
trackByNonProductFaqId(_index: number, item: {
|
|
42
44
|
id: number;
|
|
43
45
|
}): number;
|
|
46
|
+
sanitizeFaqAnswer(body: string): any;
|
|
44
47
|
ngOnDestroy(): void;
|
|
45
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<FaqComponent, never>;
|
|
46
49
|
static ɵcmp: i0.ɵɵComponentDeclaration<FaqComponent, "pw-faq", never, {}, {}, never, never, false, never>;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
2
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
3
4
|
import { CommonService } from '@posiwise/common-services';
|
|
4
5
|
import { FAQ } from '@posiwise/common-utilities';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class FaqDetailsComponent extends AppBaseComponent implements OnInit {
|
|
7
8
|
private commonService;
|
|
9
|
+
private sanitizer;
|
|
8
10
|
id: number;
|
|
9
11
|
faq: FAQ;
|
|
10
12
|
isLoading: boolean;
|
|
11
13
|
slug: string;
|
|
12
|
-
constructor(commonService: CommonService, injector: Injector);
|
|
14
|
+
constructor(commonService: CommonService, injector: Injector, sanitizer: DomSanitizer);
|
|
13
15
|
ngOnInit(): void;
|
|
14
16
|
getFaq(): void;
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<FaqDetailsComponent, never>;
|