@tuki-io/tuki-widgets 0.0.6 → 0.0.8

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.
Files changed (238) hide show
  1. package/README.md +9 -10
  2. package/esm2020/lib/widgets.component.mjs +22 -0
  3. package/esm2020/lib/widgets.module.mjs +21 -0
  4. package/esm2020/lib/widgets.service.mjs +14 -0
  5. package/esm2020/public-api.mjs +7 -0
  6. package/esm2020/tuki-io-tuki-widgets.mjs +5 -0
  7. package/esm2020/user-manage/public-api.mjs +7 -0
  8. package/esm2020/user-manage/src/app.constants.mjs +38 -0
  9. package/esm2020/user-manage/src/classes/device.mjs +7 -0
  10. package/esm2020/user-manage/src/classes/line.mjs +9 -0
  11. package/esm2020/user-manage/src/classes/notification.mjs +32 -0
  12. package/esm2020/user-manage/src/classes/pagination.mjs +8 -0
  13. package/esm2020/user-manage/src/classes/simplified-user.mjs +82 -0
  14. package/esm2020/user-manage/src/classes/table-data.mjs +2 -0
  15. package/esm2020/user-manage/src/classes/user-list.mjs +10 -0
  16. package/esm2020/user-manage/src/common-functions.mjs +19 -0
  17. package/esm2020/user-manage/src/environments/environment.mjs +11 -0
  18. package/esm2020/user-manage/src/interseptors/auth.interceptor.mjs +37 -0
  19. package/esm2020/user-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +74 -0
  20. package/esm2020/user-manage/src/material.module.mjs +188 -0
  21. package/esm2020/user-manage/src/notifications/notification.component.mjs +35 -0
  22. package/esm2020/user-manage/src/removeKynFromIBM.service.mjs +25 -0
  23. package/esm2020/user-manage/src/services/api.service.mjs +79 -0
  24. package/esm2020/user-manage/src/services/notification.service.mjs +62 -0
  25. package/esm2020/user-manage/src/services/removeKynFromIBM.service.mjs +25 -0
  26. package/esm2020/user-manage/src/services/site-settings.service.mjs +36 -0
  27. package/esm2020/user-manage/src/services/user.service.mjs +108 -0
  28. package/esm2020/user-manage/src/services/users-search.service.mjs +49 -0
  29. package/esm2020/user-manage/src/services/utils.service.mjs +73 -0
  30. package/esm2020/user-manage/src/user-info/user-info.component.mjs +20 -0
  31. package/esm2020/user-manage/src/user-manage-widget.component.mjs +162 -0
  32. package/esm2020/user-manage/src/user-manage.module.mjs +84 -0
  33. package/esm2020/user-manage/src/utils/app-loader/app-loader.mjs +14 -0
  34. package/esm2020/user-manage/src/utils/pagination/pagination.component.mjs +43 -0
  35. package/esm2020/user-manage/tuki-io-tuki-widgets-user-manage.mjs +5 -0
  36. package/esm2020/users-list/public-api.mjs +9 -0
  37. package/esm2020/users-list/src/app.constants.mjs +35 -0
  38. package/esm2020/users-list/src/classes/device.mjs +7 -0
  39. package/esm2020/users-list/src/classes/line.mjs +9 -0
  40. package/esm2020/users-list/src/classes/notification.mjs +31 -0
  41. package/esm2020/users-list/src/classes/pagination.mjs +8 -0
  42. package/esm2020/users-list/src/classes/simlified-user.mjs +50 -0
  43. package/esm2020/users-list/src/classes/table-data.mjs +2 -0
  44. package/esm2020/users-list/src/classes/user-list.mjs +10 -0
  45. package/esm2020/users-list/src/material.module.mjs +188 -0
  46. package/esm2020/users-list/src/services/api.service.mjs +78 -0
  47. package/esm2020/users-list/src/services/events-communication.service.mjs +14 -0
  48. package/esm2020/users-list/src/services/notification.service.mjs +62 -0
  49. package/esm2020/users-list/src/services/removeKynFromIBM.service.mjs +25 -0
  50. package/esm2020/users-list/src/services/user.service.mjs +105 -0
  51. package/esm2020/users-list/src/services/users-search.service.mjs +49 -0
  52. package/esm2020/users-list/src/users-list.component.mjs +78 -0
  53. package/esm2020/users-list/src/users-list.module.mjs +58 -0
  54. package/esm2020/users-list/src/utils/common-functions.mjs +19 -0
  55. package/esm2020/users-list/src/utils/pagination/pagination.component.mjs +43 -0
  56. package/esm2020/users-list/src/utils/utils.service.mjs +73 -0
  57. package/esm2020/users-list/tuki-io-tuki-widgets-users-list.mjs +5 -0
  58. package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +1235 -0
  59. package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
  60. package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +872 -0
  61. package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +1 -0
  62. package/fesm2015/tuki-io-tuki-widgets.mjs +63 -0
  63. package/fesm2015/tuki-io-tuki-widgets.mjs.map +1 -0
  64. package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +1222 -0
  65. package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
  66. package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +869 -0
  67. package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +1 -0
  68. package/fesm2020/tuki-io-tuki-widgets.mjs +63 -0
  69. package/fesm2020/tuki-io-tuki-widgets.mjs.map +1 -0
  70. package/index.d.ts +5 -0
  71. package/lib/widgets.component.d.ts +8 -0
  72. package/lib/widgets.module.d.ts +7 -0
  73. package/lib/widgets.service.d.ts +6 -0
  74. package/package.json +44 -36
  75. package/{projects/tuki/widgets/src/public-api.ts → public-api.d.ts} +0 -4
  76. package/user-manage/index.d.ts +5 -0
  77. package/user-manage/src/app.constants.d.ts +20 -0
  78. package/user-manage/src/classes/device.d.ts +224 -0
  79. package/user-manage/src/classes/line.d.ts +116 -0
  80. package/user-manage/src/classes/notification.d.ts +18 -0
  81. package/user-manage/src/classes/pagination.d.ts +13 -0
  82. package/user-manage/src/classes/simplified-user.d.ts +41 -0
  83. package/user-manage/src/classes/table-data.d.ts +5 -0
  84. package/user-manage/src/classes/user-list.d.ts +32 -0
  85. package/user-manage/src/common-functions.d.ts +1 -0
  86. package/user-manage/src/environments/environment.d.ts +9 -0
  87. package/user-manage/src/interseptors/auth.interceptor.d.ts +9 -0
  88. package/user-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +35 -0
  89. package/user-manage/src/material.module.d.ts +28 -0
  90. package/user-manage/src/notifications/notification.component.d.ts +19 -0
  91. package/user-manage/src/removeKynFromIBM.service.d.ts +8 -0
  92. package/user-manage/src/services/api.service.d.ts +21 -0
  93. package/user-manage/src/services/notification.service.d.ts +18 -0
  94. package/user-manage/src/services/removeKynFromIBM.service.d.ts +8 -0
  95. package/user-manage/src/services/site-settings.service.d.ts +9 -0
  96. package/user-manage/src/services/user.service.d.ts +26 -0
  97. package/user-manage/src/services/users-search.service.d.ts +25 -0
  98. package/user-manage/src/services/utils.service.d.ts +9 -0
  99. package/user-manage/src/user-info/user-info.component.d.ts +9 -0
  100. package/user-manage/src/user-manage-widget.component.d.ts +32 -0
  101. package/user-manage/src/user-manage.module.d.ts +18 -0
  102. package/user-manage/src/utils/app-loader/app-loader.d.ts +6 -0
  103. package/user-manage/src/utils/pagination/pagination.component.d.ts +18 -0
  104. package/users-list/index.d.ts +5 -0
  105. package/users-list/src/app.constants.d.ts +17 -0
  106. package/users-list/src/classes/device.d.ts +224 -0
  107. package/users-list/src/classes/line.d.ts +116 -0
  108. package/users-list/src/classes/notification.d.ts +18 -0
  109. package/users-list/src/classes/pagination.d.ts +13 -0
  110. package/users-list/src/classes/simlified-user.d.ts +25 -0
  111. package/users-list/src/classes/table-data.d.ts +5 -0
  112. package/users-list/src/classes/user-list.d.ts +32 -0
  113. package/users-list/src/material.module.d.ts +28 -0
  114. package/users-list/src/services/api.service.d.ts +21 -0
  115. package/users-list/src/services/events-communication.service.d.ts +8 -0
  116. package/users-list/src/services/notification.service.d.ts +18 -0
  117. package/users-list/src/services/removeKynFromIBM.service.d.ts +8 -0
  118. package/users-list/src/services/user.service.d.ts +26 -0
  119. package/users-list/src/services/users-search.service.d.ts +25 -0
  120. package/users-list/src/users-list.component.d.ts +35 -0
  121. package/users-list/src/users-list.module.d.ts +12 -0
  122. package/users-list/src/utils/common-functions.d.ts +1 -0
  123. package/users-list/src/utils/pagination/pagination.component.d.ts +18 -0
  124. package/users-list/src/utils/utils.service.d.ts +9 -0
  125. package/.editorconfig +0 -16
  126. package/.vscode/extensions.json +0 -4
  127. package/.vscode/launch.json +0 -20
  128. package/.vscode/tasks.json +0 -42
  129. package/angular.json +0 -41
  130. package/projects/tuki/widgets/README.md +0 -24
  131. package/projects/tuki/widgets/karma.conf.js +0 -44
  132. package/projects/tuki/widgets/ng-package.json +0 -7
  133. package/projects/tuki/widgets/package.json +0 -13
  134. package/projects/tuki/widgets/src/lib/widgets.component.spec.ts +0 -23
  135. package/projects/tuki/widgets/src/lib/widgets.component.ts +0 -20
  136. package/projects/tuki/widgets/src/lib/widgets.module.ts +0 -16
  137. package/projects/tuki/widgets/src/lib/widgets.service.spec.ts +0 -16
  138. package/projects/tuki/widgets/src/lib/widgets.service.ts +0 -9
  139. package/projects/tuki/widgets/src/test.ts +0 -27
  140. package/projects/tuki/widgets/styles/_variables.scss +0 -90
  141. package/projects/tuki/widgets/styles/form.scss +0 -231
  142. package/projects/tuki/widgets/styles/icons.scss +0 -32
  143. package/projects/tuki/widgets/styles/styles.scss +0 -110
  144. package/projects/tuki/widgets/styles/tables.scss +0 -30
  145. package/projects/tuki/widgets/tsconfig.lib.json +0 -36
  146. package/projects/tuki/widgets/tsconfig.lib.prod.json +0 -10
  147. package/projects/tuki/widgets/tsconfig.spec.json +0 -17
  148. package/projects/tuki/widgets/user-manage/ng-package.json +0 -7
  149. package/projects/tuki/widgets/user-manage/src/app.constants.ts +0 -38
  150. package/projects/tuki/widgets/user-manage/src/classes/device.ts +0 -225
  151. package/projects/tuki/widgets/user-manage/src/classes/line.ts +0 -117
  152. package/projects/tuki/widgets/user-manage/src/classes/notification.ts +0 -39
  153. package/projects/tuki/widgets/user-manage/src/classes/pagination.ts +0 -18
  154. package/projects/tuki/widgets/user-manage/src/classes/simplified-user.ts +0 -128
  155. package/projects/tuki/widgets/user-manage/src/classes/table-data.ts +0 -6
  156. package/projects/tuki/widgets/user-manage/src/classes/user-interface.ts +0 -225
  157. package/projects/tuki/widgets/user-manage/src/classes/user-list.ts +0 -40
  158. package/projects/tuki/widgets/user-manage/src/classes/user.ts +0 -8
  159. package/projects/tuki/widgets/user-manage/src/common-functions.ts +0 -16
  160. package/projects/tuki/widgets/user-manage/src/environments/environment.prod.ts +0 -9
  161. package/projects/tuki/widgets/user-manage/src/environments/environment.ts +0 -10
  162. package/projects/tuki/widgets/user-manage/src/interseptors/auth.interceptor.ts +0 -36
  163. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.html +0 -50
  164. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.scss +0 -3
  165. package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.ts +0 -81
  166. package/projects/tuki/widgets/user-manage/src/material.module.ts +0 -85
  167. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.html +0 -33
  168. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.scss +0 -84
  169. package/projects/tuki/widgets/user-manage/src/notifications/notification.component.ts +0 -46
  170. package/projects/tuki/widgets/user-manage/src/removeKynFromIBM.service.ts +0 -25
  171. package/projects/tuki/widgets/user-manage/src/services/api.service.ts +0 -89
  172. package/projects/tuki/widgets/user-manage/src/services/notification.service.ts +0 -68
  173. package/projects/tuki/widgets/user-manage/src/services/removeKynFromIBM.service.ts +0 -25
  174. package/projects/tuki/widgets/user-manage/src/services/site-settings.service.ts +0 -35
  175. package/projects/tuki/widgets/user-manage/src/services/user.service.ts +0 -120
  176. package/projects/tuki/widgets/user-manage/src/services/users-search.service.ts +0 -58
  177. package/projects/tuki/widgets/user-manage/src/services/utils.service.ts +0 -71
  178. package/projects/tuki/widgets/user-manage/src/styles/_variables.scss +0 -90
  179. package/projects/tuki/widgets/user-manage/src/styles/form.scss +0 -231
  180. package/projects/tuki/widgets/user-manage/src/styles/icons.scss +0 -32
  181. package/projects/tuki/widgets/user-manage/src/styles/styles.scss +0 -110
  182. package/projects/tuki/widgets/user-manage/src/styles/tables.scss +0 -30
  183. package/projects/tuki/widgets/user-manage/src/user-details/notification.service.ts +0 -68
  184. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.html +0 -32
  185. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.scss +0 -53
  186. package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.ts +0 -19
  187. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.html +0 -291
  188. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.scss +0 -461
  189. package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.ts +0 -163
  190. package/projects/tuki/widgets/user-manage/src/user-manage.module.ts +0 -53
  191. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.html +0 -6
  192. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.scss +0 -11
  193. package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.ts +0 -13
  194. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.html +0 -26
  195. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.scss +0 -41
  196. package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.ts +0 -41
  197. package/projects/tuki/widgets/users-list/ng-package.json +0 -6
  198. package/projects/tuki/widgets/users-list/src/app.constants.ts +0 -35
  199. package/projects/tuki/widgets/users-list/src/classes/device.ts +0 -225
  200. package/projects/tuki/widgets/users-list/src/classes/line.ts +0 -117
  201. package/projects/tuki/widgets/users-list/src/classes/notification.ts +0 -38
  202. package/projects/tuki/widgets/users-list/src/classes/pagination.ts +0 -18
  203. package/projects/tuki/widgets/users-list/src/classes/simlified-user.ts +0 -74
  204. package/projects/tuki/widgets/users-list/src/classes/table-data.ts +0 -6
  205. package/projects/tuki/widgets/users-list/src/classes/user-interface.ts +0 -225
  206. package/projects/tuki/widgets/users-list/src/classes/user-list.ts +0 -40
  207. package/projects/tuki/widgets/users-list/src/classes/user.ts +0 -8
  208. package/projects/tuki/widgets/users-list/src/material.module.ts +0 -84
  209. package/projects/tuki/widgets/users-list/src/services/api.service.ts +0 -87
  210. package/projects/tuki/widgets/users-list/src/services/events-communication.service.ts +0 -11
  211. package/projects/tuki/widgets/users-list/src/services/notification.service.ts +0 -68
  212. package/projects/tuki/widgets/users-list/src/services/removeKynFromIBM.service.ts +0 -25
  213. package/projects/tuki/widgets/users-list/src/services/user.service.ts +0 -117
  214. package/projects/tuki/widgets/users-list/src/services/users-search.service.ts +0 -58
  215. package/projects/tuki/widgets/users-list/src/users-list.component.css +0 -4
  216. package/projects/tuki/widgets/users-list/src/users-list.component.css.map +0 -1
  217. package/projects/tuki/widgets/users-list/src/users-list.component.html +0 -39
  218. package/projects/tuki/widgets/users-list/src/users-list.component.scss +0 -9
  219. package/projects/tuki/widgets/users-list/src/users-list.component.ts +0 -85
  220. package/projects/tuki/widgets/users-list/src/users-list.module.ts +0 -36
  221. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css +0 -11
  222. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css.map +0 -1
  223. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.html +0 -6
  224. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.scss +0 -11
  225. package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.ts +0 -13
  226. package/projects/tuki/widgets/users-list/src/utils/common-functions.ts +0 -16
  227. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.html +0 -33
  228. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.scss +0 -84
  229. package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.ts +0 -46
  230. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css +0 -45
  231. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css.map +0 -1
  232. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.html +0 -26
  233. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.scss +0 -41
  234. package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.ts +0 -41
  235. package/projects/tuki/widgets/users-list/src/utils/utils.service.ts +0 -71
  236. package/tsconfig.json +0 -46
  237. /package/{projects/tuki/widgets/user-manage/public-api.ts → user-manage/public-api.d.ts} +0 -0
  238. /package/{projects/tuki/widgets/users-list/public-api.ts → users-list/public-api.d.ts} +0 -0
@@ -1,128 +0,0 @@
1
- import { FormBuilder, FormGroup, Validators } from '@angular/forms';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { getSavableData } from '../common-functions';
4
- import { REGEX_PATTERN } from '../app.constants';
5
-
6
- export class SimplifiedUser {
7
- userid!: string;
8
- email!: string;
9
- firstName!: string;
10
- lastName!: string;
11
- // general user info
12
- department!: string;
13
- manager!: string;
14
- associatedPc!: string;
15
- digestCredentials!: string;
16
- userProfile!: string;
17
- enableMobileVoiceAccess!: boolean;
18
- userLocale!: string;
19
- confirmDigestCredentials?: any;
20
-
21
- // contact information
22
- middleName!: string;
23
- telephoneNumber!: string;
24
- mobileNumber!: string;
25
- directoryUri!: string;
26
- title!: string;
27
- homeNumber!: string;
28
- pagerNumber!: string;
29
- displayName!: string;
30
-
31
- token!: string;
32
- viewMode!: string;
33
- hasModifiedCache!: boolean;
34
- newUserId?: string;
35
- editMode!: boolean;
36
- form!: FormGroup;
37
-
38
- constructor(user?: any) {
39
- if (user) {
40
- this.userid = user.userid;
41
- this.email = user.email;
42
- this.firstName = user.firstName;
43
- this.lastName = user.lastName;
44
- this.token = user.token;
45
-
46
- this.department = user.department;
47
- this.manager = user.manager;
48
- this.associatedPc = user.associatedPc;
49
- this.digestCredentials = user.digestCredentials;
50
- this.userProfile = user.userProfile;
51
- this.enableMobileVoiceAccess = user.enableMobileVoiceAccess;
52
- this.userLocale = user.userLocale;
53
- this.confirmDigestCredentials = user.confirmDigestCredentials;
54
-
55
- this.middleName = user.middleName;
56
- this.telephoneNumber = user.telephoneNumber;
57
- this.mobileNumber = user.mobileNumber;
58
- this.directoryUri = user.directoryUri;
59
- this.title = user.title;
60
- this.homeNumber = user.homeNumber;
61
- this.pagerNumber = user.pagerNumber;
62
- this.displayName = user.displayName;
63
- }
64
- this.initForm()
65
- }
66
-
67
- initForm() {
68
- const formBuilder = new FormBuilder();
69
- const formSettings = {
70
- userid: [{value: this.userid || '', disabled: false}, [Validators.required, Validators.maxLength(128)]],
71
- email: [{value: this.email || '', disabled: false}, [
72
- Validators.pattern(REGEX_PATTERN.EMAIL),
73
- Validators.required
74
- ]],
75
- firstName: [{value: this.firstName || '', disabled: false}],
76
- lastName: [{value: this.lastName || '', disabled: false}, Validators.required],
77
- department: [{value: this.department || '', disabled: false}],
78
- middleName: [{value: this.middleName || '', disabled: false}],
79
- title: [{value: this.title || '', disabled: false}],
80
- telephoneNumber: [{value: this.telephoneNumber || '', disabled: false}],
81
- homeNumber: [{value: this.homeNumber || '', disabled: false}],
82
- mobileNumber: [{value: this.mobileNumber || '', disabled: false}],
83
- pagerNumber: [{value: this.pagerNumber || '', disabled: false}],
84
- displayName: [{value: this.displayName || '', disabled: false}],
85
- manager: [{value: this.manager || '', disabled: false}],
86
- associatedPc: [this.associatedPc || ''],
87
- directoryUri: [this.directoryUri || ''],
88
- userProfile: [this.userProfile],
89
- enableMobileVoiceAccess: [this.enableMobileVoiceAccess],
90
- userLocale: [this.userLocale || ''],
91
- digestCredentials: [''],
92
- confirmDigestCredentials: ['']
93
- };
94
- this.form = formBuilder.group(formSettings);
95
- }
96
-
97
- toggleEditMode() {
98
- this.editMode = !this.editMode;
99
- ['userid', 'email', 'firstName', 'lastName'].forEach(token => {
100
- if (this.editMode) {
101
- this.form.get(token)?.enable();
102
- } else {
103
- this.form.get(token)?.disable();
104
- }
105
- })
106
- }
107
-
108
- getSavableData() {
109
- const excludedFields: string[] = ['form', 'editMode', 'viewMode', 'token', 'hasModifiedCache', 'confirmDigestCredentials'];
110
- return getSavableData(this, excludedFields);
111
- }
112
-
113
- equal(userToCompare?: SimplifiedUser): boolean {
114
- if (!userToCompare) {
115
- return false;
116
- }
117
- return JSON.stringify(this.getSavableData()) === JSON.stringify(userToCompare.getSavableData());
118
- }
119
-
120
- }
121
-
122
- export interface SimplifiedUserInterface {
123
- userid: string;
124
- email: string;
125
- firstName: string;
126
- lastName: string;
127
- form?: FormGroup;
128
- }
@@ -1,6 +0,0 @@
1
-
2
- export interface TableDataInterface {
3
- total: number;
4
- pageData: Array<any>;
5
- systemSettings?: any;
6
- }
@@ -1,225 +0,0 @@
1
- /*
2
-
3
- export interface UserInterface {
4
- userid: string;
5
- firstName: string;
6
- lastName: string;
7
- middleName: string;
8
- email: string;
9
- department: string;
10
- telephoneNumber: string;
11
- homeNumber: string;
12
- mobileNumber: string;
13
- pagerNumber: string;
14
- displayName: string;
15
- features: string[];
16
- ldapIntegrated: boolean;
17
- sparkLicenses: any[];
18
- extensionMobility: ExtensionMobilityInterface;
19
- singleNumberReach?: SingleNumberReachInterface;
20
- primaryLineReference: LineDirectoryInterface;
21
- voicemail: VoicemailInterface;
22
- devices: DeviceInterface[];
23
- deviceProfiles: DeviceInterface[];
24
- lines: LineInterface[];
25
- subscribeCss: string;
26
- presenceGroup: string;
27
- allowDeviceControlFromCti: boolean;
28
- enableCrossClusterEm: boolean;
29
- ucServiceProfile: string;
30
- manager: string;
31
- title: string;
32
- associatedPc: string;
33
- userProfile: string;
34
- enableUserToHostConferenceNow: boolean;
35
- attendeesAccessCode: string;
36
- enableMobileVoiceAccess: boolean;
37
- mlppUserIdNumber: string;
38
- mlppPrecedencePattern: string;
39
- userLocale: string;
40
- siteId: number;
41
- siteName: string;
42
- location: string;
43
- lineAppearances: Array<LineAppearance>;
44
- meetMes: Array<MeetMeConferencing>;
45
- homeCluster: boolean;
46
- vmOnlyUser?: boolean;
47
- directoryUri:string;
48
- }
49
-
50
- export interface SingleNumberReachInterface {
51
- remoteDestinationProfileName: string;
52
- remoteDestinations?: RemoteDestinationInterface[];
53
- devicePool?: string;
54
- css?: string;
55
- rerouteCss?: string;
56
- }
57
-
58
- export interface VoicemailInterface {
59
- callHandlerObjectId?: string;
60
- extension: string;
61
- vmUserTemplate?: string;
62
- vmPassword?: VoicemailSettingsInterface;
63
- vmMailbox?: MailboxInterface;
64
- vmUnifiedMessagingAccount?: UnifiedMessagingAccount[];
65
- notificationDevices?: VoicemailNotifications[];
66
- alternateExtensions?: AlternateExtensions[];
67
- language?: LanguageMailbox;
68
- messageActions?: MessageActions;
69
- webAppPassword?: WebAppPassword;
70
- vmPasswordSettings?: VmPasswordSettings;
71
- pkid?: string;
72
- }
73
-
74
- export interface ExtensionMobilityInterface {
75
- deviceType: string;
76
- deviceProfileName: string;
77
- buttonTemplate: string;
78
- services: string[];
79
- protocol: string;
80
- userLocale: string;
81
- lineAssociations: LineAssociationInterface[];
82
- speedDials: SpeedDialInterface[];
83
- }
84
-
85
- export interface SpeedDialInterface {
86
- index: number;
87
- position: number;
88
- destination: string;
89
- label: string;
90
- editMode?: boolean;
91
- }
92
-
93
- export interface DeviceInterface {
94
- name: string;
95
- newName: string;
96
- pkid: string;
97
- entityChangeType: EntityChangeType;
98
- deviceType: string;
99
- protocol: string;
100
- description: string;
101
- buttonTemplate: string;
102
- softkeyTemplate: string;
103
- devicePoolName: string;
104
- location: string;
105
- userLocale: string;
106
- enabledExtensionMobility: boolean;
107
- callingSearchSpaceName: string;
108
- services: string[];
109
- networkLocale: string;
110
- securityProfile: string;
111
- lineAssociations: LineAssociationInterface[];
112
- speedDials: SpeedDialInterface[];
113
- sipProfile: string;
114
- subscribeCallingSearchSpaceName: string;
115
- commonPhoneConfigName: string;
116
- ctiRemoteDevice: boolean;
117
- firstExpansionModule: string;
118
- secondExpansionModule: string;
119
- thirdExpansionModule: string;
120
- builtInBridge: string;
121
- extraOptions?: DeviceExtraOptionsInterface;
122
- formDisabledControls?: string[];
123
- sharedUsers: string[];
124
- busyLampFields: BusyLampFieldsInterface[];
125
- meetMeEnabled: boolean;
126
- deviceKind;
127
- isCtiRoutePoint?: boolean;
128
- cucmId: string;
129
- plarDevice?: boolean;
130
- firmwareVersion;
131
- certificateOperation: string;
132
- authenticationMode: string;
133
- authenticationString?: string;
134
- rsaKeySize?: string;
135
- operationCompletesBy: string;
136
- certificateStatus: string;
137
- day?: string;
138
- month?: string;
139
- year?: string;
140
- hour?: string;
141
- securityProfileUuid?: string;
142
- excludeDeviceExtraOptions?: boolean;
143
- }
144
-
145
- export interface DeviceViewConfiguration {
146
- viewMode: any;
147
- editMode: boolean;
148
- }
149
-
150
- export enum DeviceViewType {
151
- details = 0,
152
- lines = 1,
153
- speedDials = 2,
154
- blf = 2,
155
- }
156
-
157
- export interface LineAssociationInterface {
158
- index: number;
159
- position?: number;
160
- e164Mask: string;
161
- textLabel: string;
162
- displayLabel: string;
163
- displayLabelAscii: string;
164
- directoryNumber: LineDirectoryInterface;
165
- didPattern: TranslationPatternInterface;
166
- mappedDids: Array<string>;
167
- linePkid: string;
168
- maxNumberOfCalls: number;
169
- busyTrigger: number;
170
- recordingOption: RecordingOptions;
171
- recordingProfile: string;
172
- recordingMediaSource: string;
173
- visualMWI: string;
174
- audibleMWI: string;
175
- ringSetting_idle: string;
176
- ringSetting_active: string;
177
- pickupAAS_idle: string;
178
- pickupAAS_active: string;
179
- monitorCSS: string;
180
- logMissedCall: string;
181
- callInfoDisplay: LineCallInfoDisplayInterface;
182
- lineLocalId: string;
183
- sharedUsers: string[];
184
- sharedDevices: string[];
185
- ownerUserId: Array<string>;
186
- associated: boolean;
187
- populateWithDid: boolean;
188
- }
189
-
190
- export interface LineCallInfoDisplayInterface {
191
- callerName: string;
192
- callerNumber: string;
193
- redirectedNumber: string;
194
- dialedNumber: string;
195
- }
196
-
197
- export interface LineDirectoryInterface {
198
- directoryNumber: string;
199
- routePartitionName: string;
200
- pkid: string;
201
- dnType: string;
202
- subType?: string;
203
- templateDirectoryNumber?: string;
204
- }
205
-
206
- export interface TranslationPatternInterface {
207
- pattern: string;
208
- calledPartyTransformationMask: string;
209
- description?: string;
210
- site?: SiteShortDataInterface;
211
- hasMultipleSites?: boolean;
212
- multipleSitesId?: string;
213
- }
214
-
215
- export interface SiteShortDataInterface {
216
- id: number;
217
- name: string;
218
- }
219
-
220
- export enum RecordingOptions {
221
- disabled = 'Call Recording Disabled',
222
- auto_enabled = 'Automatic Call Recording Enabled',
223
- selective_enabled = 'Selective Call Recording Enabled'
224
- }
225
- */
@@ -1,40 +0,0 @@
1
- import { DeviceInterface } from '../classes/device';
2
- import { LineInterface } from '../classes/line';
3
-
4
- export class ListUser implements ListUserInterface {
5
- // @ts-ignore
6
- userid: string;
7
- firstName?: string;
8
- lastName?: string;
9
- email?: string;
10
- telephoneNumber?: string;
11
- devices: DeviceInterface[] = [];
12
- deviceProfiles: DeviceInterface[] = [];
13
- lines?: LineInterface[];
14
- siteId?: number;
15
- siteName?: string;
16
- webexUUID?: string;
17
- cucmId?: number;
18
-
19
- constructor(user?: ListUser) {
20
- if (user) {
21
- Object.assign(this, user);
22
- }
23
- }
24
- }
25
-
26
- export interface ListUserInterface {
27
- userid: string;
28
- firstName?: string;
29
- lastName?: string;
30
- email?: string;
31
- telephoneNumber?: string;
32
- viewMode?: any;
33
- devices: DeviceInterface[];
34
- deviceProfiles: DeviceInterface[];
35
- lines?: LineInterface[];
36
- siteId?: number;
37
- siteName?: string;
38
- webexUUID?: string;
39
- cucmId?: number;
40
- }
@@ -1,8 +0,0 @@
1
- export enum UserView {
2
- USER = 0,
3
- DEVICE = 1,
4
- LINE = 2,
5
- SNR = 3,
6
- FEATURES = 4,
7
- USER_COLLECTION = 5
8
- }
@@ -1,16 +0,0 @@
1
- export const getSavableData = (model: any, exclude?: Array<string>) => {
2
- let result = Object.keys(model);
3
- if (exclude && exclude.length) {
4
- result = result.filter(key => !exclude.some(item => item === key));
5
- }
6
- return result.reduce((result, key) => {
7
- if (model[key] instanceof Array && model[key].length && model[key][0].getSavableData) {
8
- (result as any)[key] = model[key].map((item: any) => item.getSavableData());
9
- } else if (model[key] instanceof Object && model[key].getSavableData) {
10
- (result as any)[key] = model[key].getSavableData();
11
- } else {
12
- (result as any)[key] = model[key];
13
- }
14
- return result;
15
- }, {});
16
- };
@@ -1,9 +0,0 @@
1
- export const environment = {
2
- production: true,
3
- apiUrl: '',
4
- notificationsLifetime: 30000,
5
- longNotificationsLifetime: 45000,
6
- cashCleanTimer: 300000,
7
- cashArrayLength: 1000,
8
- matomoUrl: '',
9
- };
@@ -1,10 +0,0 @@
1
- export const environment = {
2
- production: false,
3
- // apiUrl: 'http://localhost:4200',
4
- apiUrl: 'http://192.168.0.191:8080',
5
- notificationsLifetime: 30000,
6
- longNotificationsLifetime: 45000,
7
- cashCleanTimer: 900000,
8
- cashArrayLength: 10000,
9
- matomoUrl: 'http://192.168.0.136/matomo/',
10
- };
@@ -1,36 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import {HttpEvent, HttpRequest, HttpInterceptor, HttpHandler, HttpErrorResponse} from '@angular/common/http';
3
- import { Observable, throwError } from 'rxjs';
4
- import {catchError } from 'rxjs/operators';
5
-
6
- @Injectable()
7
- export class AuthInterceptor implements HttpInterceptor {
8
- constructor() {
9
- }
10
-
11
- intercept(
12
- request: HttpRequest<any>,
13
- next: HttpHandler
14
- ): Observable<HttpEvent<any>> {
15
- request = request.clone({
16
- setHeaders: {
17
- // Authorization: basicAuthHeaderString
18
- }
19
- , withCredentials: true
20
- })
21
- console.log('request :: ', request);
22
-
23
- return next.handle(request).pipe(catchError(err => {
24
- if (err instanceof HttpErrorResponse) {
25
- if (err.status === 401) {
26
- if (window.history.length < 3) {
27
- err.error.message = '';
28
- } else {
29
- err.error.message = 'SESSION_INACTIVE';
30
- }
31
- }
32
- }
33
- return throwError(err);
34
- }));
35
- }
36
- }
@@ -1,50 +0,0 @@
1
- <ng-container *ngIf="standalone">
2
- <mat-form-field appearance="outline">
3
- <mat-select [formControl]="formControl"
4
- (openedChange)="getOptions()"
5
- [placeholder]="placeholder"
6
- (selectionChange)="onFieldChange(controlName)"
7
- [id]="id">
8
- <mat-option *ngIf="default" [disabled]="default.disabled" [value]="default.key">{{default.value}}</mat-option>
9
- <mat-option *ngFor="let type of options" [value]="type">
10
- {{type}}
11
- </mat-option>
12
- <mat-progress-spinner class="field-spinner"
13
- [diameter]="20"
14
- mode="indeterminate"
15
- *ngIf="optionsPending"></mat-progress-spinner>
16
- </mat-select>
17
- <mat-error *ngIf="form.get(controlName)?.hasError(errorCode)">
18
- <i class="fa fa-exclamation-triangle"></i>
19
- {{errorText}}
20
- </mat-error>
21
- </mat-form-field>
22
- </ng-container>
23
-
24
- <!--
25
- This duplication is caused by the following bug: https://github.com/angular/components/issues/9411
26
- Which doesn't allow projection in mat-form-field
27
- -->
28
-
29
- <ng-container *ngIf="!standalone">
30
- <mat-select *ngIf="form.get(controlName)"
31
- [formControl]="formControl"
32
- (openedChange)="getOptions()"
33
- [placeholder]="placeholder"
34
- (selectionChange)="onFieldChange(controlName)"
35
- [id]="id"
36
- >
37
- <mat-option *ngIf="default" [disabled]="default.disabled" [value]="default.key">{{default.value}}</mat-option>
38
- <mat-option *ngFor="let type of options" [value]="type">
39
- {{type}}
40
- </mat-option>
41
- <mat-progress-spinner class="field-spinner"
42
- [diameter]="20"
43
- mode="indeterminate"
44
- *ngIf="optionsPending"></mat-progress-spinner>
45
- </mat-select>
46
- <mat-error *ngIf="form.get(controlName)?.hasError(errorCode)">
47
- <i class="fa fa-exclamation-triangle"></i>
48
- {{errorText}}
49
- </mat-error>
50
- </ng-container>
@@ -1,3 +0,0 @@
1
- .field-spinner {
2
- margin-top: -30px;
3
- }
@@ -1,81 +0,0 @@
1
- import { AfterContentInit, Component, EventEmitter, Input, Output } from '@angular/core';
2
- import { FormControl, FormGroup } from '@angular/forms';
3
- import { NotificationService } from '../services/notification.service';
4
- import { SiteSettingsService } from '../services/site-settings.service';
5
-
6
- export interface OptionValue {
7
- key: string;
8
- value: string;
9
- disabled: boolean;
10
- }
11
-
12
- @Component({
13
- selector: 'app-lazy-loading-select',
14
- templateUrl: './lazy-loading-select.component.html',
15
- styleUrls: ['./lazy-loading-select.component.scss']
16
- })
17
- export class LazyLoadingSelectComponent implements AfterContentInit {
18
- optionsPending!: boolean;
19
- options!: any;
20
-
21
- @Input()
22
- public siteId!: number
23
- @Input()
24
- public form!: FormGroup;
25
- @Input()
26
- public standalone = true;
27
- @Input()
28
- public placeholder!: string;
29
- @Input()
30
- public controlName!: string;
31
- @Input()
32
- public optionsToken!: string;
33
- @Input()
34
- public appearance = 'standard';
35
- @Input()
36
- public errorCode!: string;
37
- @Input()
38
- public errorText!: string;
39
- @Input()
40
- public default!: OptionValue;
41
- @Input()
42
- public id!: string;
43
- @Output()
44
- public changeField = new EventEmitter<string>();
45
-
46
- get formControl(): FormControl {
47
- return this.form?.get(this.controlName) as FormControl;
48
- }
49
-
50
-
51
- constructor(
52
- private notificationService: NotificationService,
53
- private siteSettingsService: SiteSettingsService,
54
- ) {
55
- }
56
-
57
- ngAfterContentInit() {
58
- this.options = [this.form?.get(this.controlName)?.value];
59
- }
60
-
61
- getOptions() {
62
- if (!this.siteId && this.options.length > 1) {
63
- return;
64
- }
65
- this.optionsPending = true;
66
- this.siteSettingsService.getSelectionOptions(this.siteId, this.optionsToken)
67
- .subscribe(() => {
68
- this.optionsPending = false;
69
- // @ts-ignore
70
- this.options = this.siteSettingsService[this.optionsToken];
71
- }, () => {
72
- this.optionsPending = false;
73
- // this.notificationService.error(this.translate.instant('COMMON.LOAD_SELECT_OPTIONS_FAILED'));
74
- });
75
- }
76
-
77
- public onFieldChange(token: string) {
78
- this.changeField.emit(token);
79
- }
80
-
81
- }