@posiwise/dashboard-module 0.0.85 → 0.0.86
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/.eslintrc.json +21 -0
- package/ng-package.json +15 -0
- package/package.json +10 -23
- package/project.json +72 -0
- package/{index.d.ts → src/index.ts} +1 -0
- package/src/lib/customizer/customizer.component.html +184 -0
- package/src/lib/customizer/customizer.component.scss +101 -0
- package/src/lib/customizer/customizer.component.ts +13 -0
- package/src/lib/dashboard.module.ts +63 -0
- package/src/lib/faq/faq.component.html +110 -0
- package/src/lib/faq/faq.component.scss +58 -0
- package/src/lib/faq/faq.component.spec.ts +143 -0
- package/src/lib/faq/faq.component.ts +144 -0
- package/src/lib/faq-details/faq-details.component.html +21 -0
- package/src/lib/faq-details/faq-details.component.scss +3 -0
- package/src/lib/faq-details/faq-details.component.spec.ts +69 -0
- package/src/lib/faq-details/faq-details.component.ts +38 -0
- package/src/lib/footer/footer.component.html +14 -0
- package/src/lib/footer/footer.component.spec.ts +42 -0
- package/src/lib/footer/footer.component.ts +24 -0
- package/src/lib/home/home.component.html +93 -0
- package/src/lib/home/home.component.scss +0 -0
- package/src/lib/home/home.component.spec.ts +69 -0
- package/src/lib/home/home.component.ts +88 -0
- package/src/lib/navbar/navbar.component.html +189 -0
- package/src/lib/navbar/navbar.component.scss +92 -0
- package/src/lib/navbar/navbar.component.spec.ts +76 -0
- package/src/lib/navbar/navbar.component.ts +198 -0
- package/src/lib/notifications-page/current-notifications/current-notifications.component.html +61 -0
- package/src/lib/notifications-page/current-notifications/current-notifications.component.spec.ts +57 -0
- package/src/lib/notifications-page/current-notifications/current-notifications.component.ts +63 -0
- package/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.html +65 -0
- package/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.spec.ts +71 -0
- package/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.ts +79 -0
- package/src/lib/notifications-page/notifications-page.component.html +24 -0
- package/src/lib/notifications-page/notifications-page.component.scss +28 -0
- package/src/lib/notifications-page/notifications-page.component.spec.ts +26 -0
- package/src/lib/notifications-page/notifications-page.component.ts +8 -0
- package/src/lib/search/search.component.html +215 -0
- package/src/lib/search/search.component.scss +98 -0
- package/src/lib/search/search.component.spec.ts +64 -0
- package/src/lib/search/search.component.ts +50 -0
- package/src/lib/sidebar/sidebar-routes.config.ts +355 -0
- package/{lib/sidebar/sidebar.metadata.d.ts → src/lib/sidebar/sidebar.metadata.ts} +1 -0
- package/src/lib/user-feedback/user-feedback.component.html +53 -0
- package/src/lib/user-feedback/user-feedback.component.scss +18 -0
- package/src/lib/user-feedback/user-feedback.component.spec.ts +54 -0
- package/src/lib/user-feedback/user-feedback.component.ts +83 -0
- package/src/lib/user-notifications/user-notifications.component.html +21 -0
- package/src/lib/user-notifications/user-notifications.component.scss +21 -0
- package/src/lib/user-notifications/user-notifications.component.spec.ts +47 -0
- package/src/lib/user-notifications/user-notifications.component.ts +74 -0
- package/tsconfig.json +30 -0
- package/tsconfig.lib.json +19 -0
- package/tsconfig.lib.prod.json +9 -0
- package/tsconfig.spec.json +11 -0
- package/esm2022/index.mjs +0 -16
- package/esm2022/lib/customizer/customizer.component.mjs +0 -17
- package/esm2022/lib/dashboard.module.mjs +0 -101
- package/esm2022/lib/faq/faq.component.mjs +0 -108
- package/esm2022/lib/faq-details/faq-details.component.mjs +0 -38
- package/esm2022/lib/footer/footer.component.mjs +0 -22
- package/esm2022/lib/home/home.component.mjs +0 -79
- package/esm2022/lib/navbar/navbar.component.mjs +0 -162
- package/esm2022/lib/notifications-page/current-notifications/current-notifications.component.mjs +0 -58
- package/esm2022/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.mjs +0 -73
- package/esm2022/lib/notifications-page/notifications-page.component.mjs +0 -14
- package/esm2022/lib/search/search.component.mjs +0 -48
- package/esm2022/lib/sidebar/sidebar-routes.config.mjs +0 -350
- package/esm2022/lib/sidebar/sidebar.metadata.mjs +0 -2
- package/esm2022/lib/user-feedback/user-feedback.component.mjs +0 -73
- package/esm2022/lib/user-notifications/user-notifications.component.mjs +0 -65
- package/esm2022/posiwise-dashboard-module.mjs +0 -5
- package/fesm2022/posiwise-dashboard-module.mjs +0 -1118
- package/fesm2022/posiwise-dashboard-module.mjs.map +0 -1
- package/lib/customizer/customizer.component.d.ts +0 -7
- package/lib/dashboard.module.d.ts +0 -28
- package/lib/faq/faq.component.d.ts +0 -37
- package/lib/faq-details/faq-details.component.d.ts +0 -16
- package/lib/footer/footer.component.d.ts +0 -12
- package/lib/home/home.component.d.ts +0 -18
- package/lib/navbar/navbar.component.d.ts +0 -35
- package/lib/notifications-page/current-notifications/current-notifications.component.d.ts +0 -17
- package/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.d.ts +0 -18
- package/lib/notifications-page/notifications-page.component.d.ts +0 -5
- package/lib/search/search.component.d.ts +0 -24
- package/lib/sidebar/sidebar-routes.config.d.ts +0 -64
- package/lib/user-feedback/user-feedback.component.d.ts +0 -24
- package/lib/user-notifications/user-notifications.component.d.ts +0 -20
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": ["../../.eslintrc.json"],
|
|
3
|
+
"ignorePatterns": ["!**/*"],
|
|
4
|
+
"overrides": [
|
|
5
|
+
{
|
|
6
|
+
"files": ["*.ts"],
|
|
7
|
+
"rules": {
|
|
8
|
+
"@typescript-eslint/no-explicit-any": "warn"
|
|
9
|
+
},
|
|
10
|
+
"extends": [
|
|
11
|
+
"plugin:@nx/angular",
|
|
12
|
+
"plugin:@angular-eslint/template/process-inline-templates"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"files": ["*.html"],
|
|
17
|
+
"extends": ["plugin:@nx/angular-template"],
|
|
18
|
+
"rules": {}
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
package/ng-package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
+
"dest": "../../dist/libs/dashboard-module",
|
|
4
|
+
"lib": {
|
|
5
|
+
"entryFile": "src/index.ts",
|
|
6
|
+
"styleIncludePaths": ["../core-styles/scss"]
|
|
7
|
+
},
|
|
8
|
+
"assets": [
|
|
9
|
+
{
|
|
10
|
+
"glob": "**/*.scss",
|
|
11
|
+
"input": "@posiwise/core-styles/",
|
|
12
|
+
"output": "./assets"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"tslib": "^2.6.2"
|
|
10
|
-
},
|
|
11
|
-
"sideEffects": false,
|
|
12
|
-
"module": "fesm2022/posiwise-dashboard-module.mjs",
|
|
13
|
-
"typings": "index.d.ts",
|
|
14
|
-
"exports": {
|
|
15
|
-
"./package.json": {
|
|
16
|
-
"default": "./package.json"
|
|
2
|
+
"name": "@posiwise/dashboard-module",
|
|
3
|
+
"version": "0.0.86",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "17.3.6",
|
|
6
|
+
"@angular/core": "17.3.6"
|
|
17
7
|
},
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.6.2"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false
|
|
12
|
+
}
|
package/project.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dashboard-module",
|
|
3
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
+
"sourceRoot": "libs/dashboard-module/src",
|
|
5
|
+
"prefix": "posiwise",
|
|
6
|
+
"tags": [],
|
|
7
|
+
"projectType": "library",
|
|
8
|
+
"targets": {
|
|
9
|
+
"build": {
|
|
10
|
+
"executor": "@nx/angular:package",
|
|
11
|
+
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
|
|
12
|
+
"options": {
|
|
13
|
+
"tsConfig": "libs/dashboard-module/tsconfig.lib.json",
|
|
14
|
+
"project": "libs/dashboard-module/ng-package.json"
|
|
15
|
+
},
|
|
16
|
+
"configurations": {
|
|
17
|
+
"production": {
|
|
18
|
+
"tsConfig": "libs/dashboard-module/tsconfig.lib.prod.json"
|
|
19
|
+
},
|
|
20
|
+
"development": {
|
|
21
|
+
"tsConfig": "libs/dashboard-module/tsconfig.lib.json"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"defaultConfiguration": "production"
|
|
25
|
+
},
|
|
26
|
+
"test": {
|
|
27
|
+
"executor": "@angular-devkit/build-angular:karma",
|
|
28
|
+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
29
|
+
"options": {
|
|
30
|
+
"main": "libs/test-setup.ts",
|
|
31
|
+
"karmaConfig": "libs/karma.conf.js",
|
|
32
|
+
"polyfills": ["zone.js"],
|
|
33
|
+
"sourceMap": false,
|
|
34
|
+
"tsConfig": "libs/dashboard-module/tsconfig.spec.json",
|
|
35
|
+
"assets": [
|
|
36
|
+
{
|
|
37
|
+
"glob": "**/*.scss",
|
|
38
|
+
"input": "libs/core-styles/",
|
|
39
|
+
"output": "./assets"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"glob": "**/*",
|
|
43
|
+
"input": "libs/i18n",
|
|
44
|
+
"output": "./assets/i18n/"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"glob": "**/*",
|
|
48
|
+
"input": "./libs/core-images",
|
|
49
|
+
"output": "./assets/img/"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"scripts": [
|
|
53
|
+
"node_modules/jquery/dist/jquery.min.js",
|
|
54
|
+
"libs/js-assets/popper.js",
|
|
55
|
+
"node_modules/bootstrap/dist/js/bootstrap.bundle.min.js",
|
|
56
|
+
"node_modules/jstree/dist/jstree.min.js",
|
|
57
|
+
"libs/js-assets/perfect-scrollbar.jquery.min.js",
|
|
58
|
+
"node_modules/psl/dist/psl.min.js",
|
|
59
|
+
"libs/js-assets/main.js",
|
|
60
|
+
"libs/js-assets/global.js"
|
|
61
|
+
],
|
|
62
|
+
"stylePreprocessorOptions": {
|
|
63
|
+
"includePaths": ["libs/core-styles/scss"]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"lint": {
|
|
68
|
+
"executor": "@nx/eslint:lint",
|
|
69
|
+
"outputs": ["{options.outputFile}"]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
<!--Theme customizer Starts-->
|
|
2
|
+
<div class="customizer border-left-blue-grey border-left-lighten-4 d-none d-sm-none d-md-block open">
|
|
3
|
+
<a class="customizer-close">
|
|
4
|
+
<i class="ft-x font-medium-3" aria-hidden="true"></i>
|
|
5
|
+
</a>
|
|
6
|
+
<a class="customizer-toggle bg-danger"
|
|
7
|
+
id="customizer-toggle-icon">
|
|
8
|
+
<i class="ft-settings font-medium-4 fa fa-spin white align-middle" aria-hidden="true"></i>
|
|
9
|
+
</a>
|
|
10
|
+
<div class="customizer-content p-3 ps-container ps-theme-dark"
|
|
11
|
+
data-ps-id="df6a5ce4-a175-9172-4402-dabd98fc9c0a">
|
|
12
|
+
<h4 class="text-uppercase mb-0 text-bold-400">Theme Customizer</h4>
|
|
13
|
+
<p>Customize & Preview in Real Time</p>
|
|
14
|
+
<hr />
|
|
15
|
+
<!--Sidebar Options Starts-->
|
|
16
|
+
<h6 class="text-center text-bold-500 mb-3 text-uppercase">Sidebar Color Options</h6>
|
|
17
|
+
<div class="cz-bg-color">
|
|
18
|
+
<div class="row p-1">
|
|
19
|
+
<div class="col">
|
|
20
|
+
<span class="gradient-pomegranate d-block rounded-circle"
|
|
21
|
+
data-bg-color="pomegranate"></span>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="col">
|
|
24
|
+
<span class="gradient-king-yna d-block rounded-circle"
|
|
25
|
+
data-bg-color="king-yna"></span>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col">
|
|
28
|
+
<span class="gradient-ibiza-sunset d-block rounded-circle"
|
|
29
|
+
data-bg-color="ibiza-sunset"></span>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="col">
|
|
32
|
+
<span class="gradient-flickr d-block rounded-circle"
|
|
33
|
+
data-bg-color="flickr"></span>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="col">
|
|
36
|
+
<span class="gradient-purple-bliss d-block rounded-circle"
|
|
37
|
+
data-bg-color="purple-bliss"></span>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="col">
|
|
40
|
+
<span class="gradient-man-of-steel d-block rounded-circle"
|
|
41
|
+
data-bg-color="man-of-steel"></span>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="col">
|
|
44
|
+
<span class="gradient-custom-branding d-block rounded-circle"
|
|
45
|
+
data-bg-color="custom-branding"></span>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="col">
|
|
48
|
+
<span class="gradient-purple-love d-block rounded-circle"
|
|
49
|
+
data-bg-color="purple-love"></span>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="row p-1">
|
|
53
|
+
<div class="col">
|
|
54
|
+
<span class="bg-black d-block rounded-circle"
|
|
55
|
+
data-bg-color="black"></span>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="col">
|
|
58
|
+
<span class="bg-grey d-block rounded-circle"
|
|
59
|
+
data-bg-color="white"></span>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="col">
|
|
62
|
+
<span class="bg-primary d-block rounded-circle"
|
|
63
|
+
data-bg-color="primary"></span>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="col">
|
|
66
|
+
<span class="bg-success d-block rounded-circle"
|
|
67
|
+
data-bg-color="success"></span>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="col">
|
|
70
|
+
<span class="bg-warning d-block rounded-circle"
|
|
71
|
+
data-bg-color="warning"></span>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col">
|
|
74
|
+
<span class="bg-info d-block rounded-circle"
|
|
75
|
+
data-bg-color="info"></span>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="col">
|
|
78
|
+
<span class="bg-default d-block rounded-circle"
|
|
79
|
+
data-bg-color="default"></span>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="col">
|
|
82
|
+
<span class="bg-danger d-block rounded-circle"
|
|
83
|
+
data-bg-color="danger"></span>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
<!--Sidebar Options Ends-->
|
|
88
|
+
<hr />
|
|
89
|
+
|
|
90
|
+
<!--Sidebar BG Image Starts-->
|
|
91
|
+
<h6 class="text-center text-bold-500 mb-3 text-uppercase">Sidebar Bg Image</h6>
|
|
92
|
+
<div class="cz-bg-image row">
|
|
93
|
+
<div class="col mb-3">
|
|
94
|
+
<img src="assets/img/sidebar-bg/01.jpg"
|
|
95
|
+
alt=""
|
|
96
|
+
class="rounded"
|
|
97
|
+
width="90" />
|
|
98
|
+
</div>
|
|
99
|
+
<div class="col mb-3">
|
|
100
|
+
<img src="assets/img/sidebar-bg/02.jpg"
|
|
101
|
+
alt=""
|
|
102
|
+
class="rounded"
|
|
103
|
+
width="90" />
|
|
104
|
+
</div>
|
|
105
|
+
<div class="col mb-3">
|
|
106
|
+
<img src="assets/img/sidebar-bg/03.jpg"
|
|
107
|
+
alt=""
|
|
108
|
+
class="rounded"
|
|
109
|
+
width="90" />
|
|
110
|
+
</div>
|
|
111
|
+
<div class="col mb-3">
|
|
112
|
+
<img src="assets/img/sidebar-bg/04.jpg"
|
|
113
|
+
alt=""
|
|
114
|
+
class="rounded"
|
|
115
|
+
width="90" />
|
|
116
|
+
</div>
|
|
117
|
+
<div class="col mb-3">
|
|
118
|
+
<img src="assets/img/sidebar-bg/05.jpg"
|
|
119
|
+
alt=""
|
|
120
|
+
class="rounded"
|
|
121
|
+
width="90" />
|
|
122
|
+
</div>
|
|
123
|
+
<div class="col mb-3">
|
|
124
|
+
<img src="assets/img/sidebar-bg/06.jpg"
|
|
125
|
+
alt=""
|
|
126
|
+
class="rounded"
|
|
127
|
+
width="90" />
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
<!--Sidebar BG Image Ends-->
|
|
131
|
+
<hr />
|
|
132
|
+
|
|
133
|
+
<!--Sidebar BG Image Toggle Starts-->
|
|
134
|
+
<div class="togglebutton">
|
|
135
|
+
<div class="switch">
|
|
136
|
+
<span>Sidebar Bg Image</span>
|
|
137
|
+
<div class="float-end">
|
|
138
|
+
<div class="form-check custom-checkbox mb-2 me-sm-2 mb-sm-0">
|
|
139
|
+
<input type="checkbox"
|
|
140
|
+
class="form-check-input cz-bg-image-display"
|
|
141
|
+
checked
|
|
142
|
+
id="sidebar-bg-img" />
|
|
143
|
+
<label class="form-check-label"
|
|
144
|
+
for="sidebar-bg-img"></label>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
<!--Sidebar BG Image Toggle Ends-->
|
|
150
|
+
<hr />
|
|
151
|
+
|
|
152
|
+
<!--Compact Menu Starts-->
|
|
153
|
+
<div class="togglebutton">
|
|
154
|
+
<div class="switch">
|
|
155
|
+
<span>Compact Menu</span>
|
|
156
|
+
<div class="float-end">
|
|
157
|
+
<div class="form-check custom-checkbox mb-2 me-sm-2 mb-sm-0">
|
|
158
|
+
<input type="checkbox"
|
|
159
|
+
class="form-check-input cz-compact-menu"
|
|
160
|
+
id="cz-compact-menu" />
|
|
161
|
+
<label class="form-check-label"
|
|
162
|
+
for="cz-compact-menu"></label>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
<!--Compact Menu Ends-->
|
|
168
|
+
<hr />
|
|
169
|
+
|
|
170
|
+
<!--Sidebar Width Starts-->
|
|
171
|
+
<div>
|
|
172
|
+
<label for="cz-sidebar-width">Sidebar Width</label>
|
|
173
|
+
<select id="cz-sidebar-width"
|
|
174
|
+
class="form-select cz-sidebar-width float-end">
|
|
175
|
+
<option value="small">Small</option>
|
|
176
|
+
<option value="medium"
|
|
177
|
+
selected>Medium</option>
|
|
178
|
+
<option value="large">Large</option>
|
|
179
|
+
</select>
|
|
180
|
+
</div>
|
|
181
|
+
<!--Sidebar Width Ends-->
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
<!--Theme customizer Ends-->
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
@import 'variables';
|
|
2
|
+
|
|
3
|
+
.customizer {
|
|
4
|
+
backface-visibility: hidden;
|
|
5
|
+
background-color: rgb(255 255 255);
|
|
6
|
+
border-left: 1px solid rgb(0 0 0 / 5%);
|
|
7
|
+
bottom: 0;
|
|
8
|
+
box-shadow: 0 0 8px rgb(0 0 0 / 10%);
|
|
9
|
+
height: 100vh;
|
|
10
|
+
padding: 0;
|
|
11
|
+
position: fixed;
|
|
12
|
+
right: -400px;
|
|
13
|
+
top: 0;
|
|
14
|
+
transition: right 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99);
|
|
15
|
+
width: 400px;
|
|
16
|
+
z-index: 1051;
|
|
17
|
+
|
|
18
|
+
&.open {
|
|
19
|
+
right: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.customizer-content {
|
|
23
|
+
height: 100%;
|
|
24
|
+
position: relative;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
a.customizer-toggle {
|
|
28
|
+
background: rgb(255 255 255);
|
|
29
|
+
box-shadow: -3px 0 8px rgb(0 0 0 / 10%);
|
|
30
|
+
color: map-get($primary, base);
|
|
31
|
+
display: block;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
a.customizer-close {
|
|
35
|
+
color: rgb(0 0 0);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.customizer-close {
|
|
39
|
+
padding: 7px;
|
|
40
|
+
position: absolute;
|
|
41
|
+
right: 10px;
|
|
42
|
+
top: 10px;
|
|
43
|
+
width: auto;
|
|
44
|
+
z-index: 10;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.customizer-toggle {
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
height: 40px;
|
|
50
|
+
left: -54px;
|
|
51
|
+
line-height: 50px;
|
|
52
|
+
position: absolute;
|
|
53
|
+
text-align: center;
|
|
54
|
+
top: 35%;
|
|
55
|
+
width: 54px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.color-options {
|
|
59
|
+
a {
|
|
60
|
+
white-space: pre;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.cz-bg-color {
|
|
65
|
+
margin: 0 auto;
|
|
66
|
+
|
|
67
|
+
span {
|
|
68
|
+
&:hover {
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.white {
|
|
73
|
+
color: rgb(221 221 221) !important;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.selected {
|
|
78
|
+
border: 3px solid rgb(49 79 229);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.cz-bg-image {
|
|
83
|
+
&:hover {
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
img.rounded {
|
|
88
|
+
border: 2px solid $input-switch-slider;
|
|
89
|
+
border-radius: 1rem !important;
|
|
90
|
+
|
|
91
|
+
&.selected {
|
|
92
|
+
border: 2px solid rgb(255 88 107);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.rounded-circle {
|
|
99
|
+
height: 20px;
|
|
100
|
+
width: 20px;
|
|
101
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'pw-customizer',
|
|
5
|
+
templateUrl: './customizer.component.html',
|
|
6
|
+
styleUrls: ['./customizer.component.scss']
|
|
7
|
+
})
|
|
8
|
+
export class CustomizerComponent implements OnInit {
|
|
9
|
+
ngOnInit() {
|
|
10
|
+
// Customizer JS File
|
|
11
|
+
$.getScript('/assets/js/customizer.js');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// Core Angular modules
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
4
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { NgbDropdownModule, NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
|
|
6
|
+
|
|
7
|
+
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
8
|
+
import { ProgressSpinnerModule } from 'primeng/progressspinner';
|
|
9
|
+
|
|
10
|
+
import { CustomizerComponent } from './customizer/customizer.component';
|
|
11
|
+
import { FaqComponent } from './faq/faq.component';
|
|
12
|
+
import { FooterComponent } from './footer/footer.component';
|
|
13
|
+
import { HomeComponent } from './home/home.component';
|
|
14
|
+
import { NavbarComponent } from './navbar/navbar.component';
|
|
15
|
+
import { CurrentNotificationsComponent } from './notifications-page/current-notifications/current-notifications.component';
|
|
16
|
+
import { DismissedNotificationsComponent } from './notifications-page/dismissed-notifications/dismissed-notifications.component';
|
|
17
|
+
import { NotificationsPageComponent } from './notifications-page/notifications-page.component';
|
|
18
|
+
import { SearchComponent } from './search/search.component';
|
|
19
|
+
import { UserFeedbackComponent } from './user-feedback/user-feedback.component';
|
|
20
|
+
import { UserNotificationsComponent } from './user-notifications/user-notifications.component';
|
|
21
|
+
import { FaqDetailsComponent } from './faq-details/faq-details.component';
|
|
22
|
+
|
|
23
|
+
import { UserModuleModule } from '@posiwise/user-module';
|
|
24
|
+
import { SubscriptionService } from '@posiwise/common-services';
|
|
25
|
+
import { CoreTranslocoModule } from '@posiwise/core-transloco';
|
|
26
|
+
import { PipesModule } from '@posiwise/pipes';
|
|
27
|
+
import { DirectivesModule } from '@posiwise/directives';
|
|
28
|
+
import { SharedComponentsModule } from '@posiwise/shared-components';
|
|
29
|
+
|
|
30
|
+
@NgModule({
|
|
31
|
+
imports: [
|
|
32
|
+
CommonModule,
|
|
33
|
+
SharedComponentsModule,
|
|
34
|
+
FormsModule,
|
|
35
|
+
PipesModule,
|
|
36
|
+
DirectivesModule,
|
|
37
|
+
ReactiveFormsModule,
|
|
38
|
+
CoreTranslocoModule,
|
|
39
|
+
NgbNavModule,
|
|
40
|
+
NgbDropdownModule,
|
|
41
|
+
UserModuleModule,
|
|
42
|
+
RadioButtonModule,
|
|
43
|
+
ProgressSpinnerModule
|
|
44
|
+
],
|
|
45
|
+
declarations: [
|
|
46
|
+
HomeComponent,
|
|
47
|
+
UserFeedbackComponent,
|
|
48
|
+
NotificationsPageComponent,
|
|
49
|
+
FooterComponent,
|
|
50
|
+
NavbarComponent,
|
|
51
|
+
UserNotificationsComponent,
|
|
52
|
+
CustomizerComponent,
|
|
53
|
+
FaqComponent,
|
|
54
|
+
SearchComponent,
|
|
55
|
+
CurrentNotificationsComponent,
|
|
56
|
+
DismissedNotificationsComponent,
|
|
57
|
+
FaqDetailsComponent
|
|
58
|
+
],
|
|
59
|
+
exports: [FooterComponent, NavbarComponent, UserNotificationsComponent, CustomizerComponent],
|
|
60
|
+
providers: [SubscriptionService],
|
|
61
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
62
|
+
})
|
|
63
|
+
export class DashboardLibModule {}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<div class="container-fluid overflow-hidden">
|
|
2
|
+
<div class="row mb-3">
|
|
3
|
+
<div class="col-12">
|
|
4
|
+
<div class="card gradient-custom-branding white text-center p-1 p-sm-2">
|
|
5
|
+
<div class="card-header p-1 p-sm-2">
|
|
6
|
+
<button *ngIf="showSupport"
|
|
7
|
+
class="ms-auto d-block btn btn-sm btn-outline-primary"
|
|
8
|
+
(click)="navigateToSupport()">
|
|
9
|
+
Support
|
|
10
|
+
</button>
|
|
11
|
+
<h1>You need help?</h1>
|
|
12
|
+
<p><em>Please search through our frequently asked questions first.</em></p>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="card-block p-2 p-sm-2">
|
|
15
|
+
<fieldset>
|
|
16
|
+
<legend></legend>
|
|
17
|
+
<input type="text"
|
|
18
|
+
class="form-control bg-white"
|
|
19
|
+
placeholder="Search in faqs.."
|
|
20
|
+
(input)="filter($event.target.value)"
|
|
21
|
+
#messageInput />
|
|
22
|
+
</fieldset>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="w-100 text-center mt-3"
|
|
28
|
+
*ngIf="!isLoaded">
|
|
29
|
+
<p-progressSpinner strokeWidth="2"> </p-progressSpinner>
|
|
30
|
+
</div>
|
|
31
|
+
<ng-container *ngIf="faqs">
|
|
32
|
+
<!-- Non Product FAQ -->
|
|
33
|
+
<div *ngFor="let category of objectKeys(faqs); let idx1 = index">
|
|
34
|
+
<ng-container *ngIf="faqs[category]?.length">
|
|
35
|
+
<h6 class="text-uppercase mt-3 p-1">{{ faqHashMap[category]?.name }}</h6>
|
|
36
|
+
<div class="dashboard">
|
|
37
|
+
<div class="faq-item"
|
|
38
|
+
*ngFor="
|
|
39
|
+
let faq of faqs[category];
|
|
40
|
+
let idx = index;
|
|
41
|
+
trackBy: trackByProductFaqId
|
|
42
|
+
">
|
|
43
|
+
<div class="dashboard-header p-2">
|
|
44
|
+
<h5 class="accordion-title mt-2">
|
|
45
|
+
<a class="accordion-toggle collapsed"
|
|
46
|
+
data-bs-toggle="collapse"
|
|
47
|
+
[href]="'#collapse' + idx + idx1">
|
|
48
|
+
{{ faq.question }}
|
|
49
|
+
</a>
|
|
50
|
+
</h5>
|
|
51
|
+
</div>
|
|
52
|
+
<div [id]="'collapse' + idx + idx1"
|
|
53
|
+
class="panel-collapse p-3 collapse in">
|
|
54
|
+
<div class="card-block">
|
|
55
|
+
<ng-container *ngIf="faq?.answer">
|
|
56
|
+
<div class="ql-container ql-snow"
|
|
57
|
+
style="border-width: 0;">
|
|
58
|
+
<div class="ql-editor"
|
|
59
|
+
[innerHTML]="faq?.answer |safe:'html'">
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</ng-container>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</ng-container>
|
|
68
|
+
</div>
|
|
69
|
+
<!-- Product based FAQ -->
|
|
70
|
+
<div *ngFor="let product of objectKeys(productFaq); let idx2 = index">
|
|
71
|
+
<ng-container *ngIf="productFaq[product]?.length">
|
|
72
|
+
<h6 class="text-uppercase p-1">{{ product }}</h6>
|
|
73
|
+
<div class="dashboard">
|
|
74
|
+
<div class="faq-item"
|
|
75
|
+
*ngFor="
|
|
76
|
+
let faq of productFaq[product];
|
|
77
|
+
let idx = index;
|
|
78
|
+
trackBy: trackByNonProductFaqId
|
|
79
|
+
">
|
|
80
|
+
<div class="dashboard-header p-2">
|
|
81
|
+
<h5 class="accordion-title mt-2">
|
|
82
|
+
<a class="accordion-toggle"
|
|
83
|
+
data-bs-toggle="collapse"
|
|
84
|
+
[href]="'#collapse1' + idx + idx2">
|
|
85
|
+
{{ faq.question }}
|
|
86
|
+
</a>
|
|
87
|
+
</h5>
|
|
88
|
+
</div>
|
|
89
|
+
<div [id]="'collapse1' + idx + idx2"
|
|
90
|
+
class="panel-collapse p-3 collapse in">
|
|
91
|
+
<div class="card-block">
|
|
92
|
+
<ng-container *ngIf="faq?.answer">
|
|
93
|
+
<div class="ql-container ql-snow"
|
|
94
|
+
style="border-width: 0;">
|
|
95
|
+
<div class="ql-editor"
|
|
96
|
+
[innerHTML]="faq?.answer |safe:'html'">
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</ng-container>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</ng-container>
|
|
105
|
+
</div>
|
|
106
|
+
</ng-container>
|
|
107
|
+
<div *ngIf="totalRecords === 0 || allFaqFalse">
|
|
108
|
+
<pw-no-data [withImage]="true" message="No faqs present"> </pw-no-data>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@import 'variables/branding-variables';
|
|
2
|
+
@import 'variables';
|
|
3
|
+
|
|
4
|
+
.card-header {
|
|
5
|
+
h1,
|
|
6
|
+
p {
|
|
7
|
+
color: rgb(255 255 255) !important;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.faq-item {
|
|
12
|
+
border: 1px dashed rgb(0 0 0 / 10%);
|
|
13
|
+
background-color: map-get($grey, lighten-3);
|
|
14
|
+
border-radius: 3px;
|
|
15
|
+
margin: 10px 0;
|
|
16
|
+
transition: all 0.2s ease-in-out;
|
|
17
|
+
|
|
18
|
+
.dashboard-header {
|
|
19
|
+
background: rgb(255 255 255);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.card {
|
|
24
|
+
.accordion-toggle {
|
|
25
|
+
&::before {
|
|
26
|
+
content: '\f078';
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.collapsed {
|
|
30
|
+
transition: all 0.3s ease-in-out;
|
|
31
|
+
|
|
32
|
+
&::before {
|
|
33
|
+
content: '\f054';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.card-block {
|
|
40
|
+
p {
|
|
41
|
+
font-size: 16px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.card,
|
|
46
|
+
h6 {
|
|
47
|
+
background: $sidebar-bg !important;
|
|
48
|
+
color: $sidebar-text !important;
|
|
49
|
+
padding: 0.8rem !important;
|
|
50
|
+
}
|
|
51
|
+
.accordion-title {
|
|
52
|
+
a {
|
|
53
|
+
color: $sidebar-bg !important;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
.ql-container {
|
|
57
|
+
resize: none !important;
|
|
58
|
+
}
|