@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,461 +0,0 @@
1
- //@import url( 'https://fonts.googleapis.com/css?family=Roboto:400,700|Material+Icons');
2
- //@import url('https://fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,800,700,900');
3
- @import url('https://fonts.googleapis.com/css?family=Poppins:400,100,200,300,500,600,800,700,900');
4
- //@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap');
5
-
6
- $fa-font-path : '../../node_modules/font-awesome/fonts';
7
-
8
- //$common-font: Raleway, 'Raleway', sans-serif;
9
- //$special-font: Raleway, 'Roboto', sans-serif;
10
- //$content-font: 'Roboto', sans-serif;
11
- //$buttons-font: Raleway, 'Raleway', sans-serif;
12
- //$input-font: 'Roboto', sans-serif;
13
- $menu-font: Poppins, 'Poppins', sans-serif;
14
- $main-font: Poppins, 'Poppins', sans-serif;
15
- //$sub-menu-font: Inter, 'Inter', sans-serif;
16
- $font-size: 14px;
17
- $txt-color: rgba(0, 0, 0, 0.87);
18
- $table-title-color: rgba(0,0,0,.54);;
19
- $txt-grey-color: #454e5e;
20
- $header-gradient: linear-gradient(90deg,#0d56aa,#0d56ab);
21
- $poppins-font: Poppins, 'Poppins', sans-serif;
22
-
23
- $icon-color: #8E9FB7;
24
- $active-color: #0D56AA;
25
- $icon-box-color: #0773BC;
26
- $mark-color: #009FDB;
27
- $hover-color: #0985A0;
28
- $error-color: #C73636;
29
- $main-txt-color: #333;
30
-
31
- $table-border-color: rgba(0, 0, 0, 0.12);
32
- $input-border-color: rgba(0, 0, 0, 0.30);
33
- $bg-color: #F7F9FB;
34
-
35
- $error-bg-color: #f2dede;
36
- $error-border-color: #ebccd1;
37
- $error-txt-color: #bc1e1b;
38
- $qob-error-color: #E70707;
39
-
40
- $warning-bg-color: #fcf8e3;
41
- $warning-border-color: #e5e1cd;
42
- $warning-txt-color: #8a6d3b;
43
-
44
- $success-bg-color: #e3f4dc;
45
- $success-border-color: #b3d692;
46
- $success-txt-color: #3c763d;
47
-
48
- $read-only-txt-color: rgba(0, 0, 0, 0.38);
49
- $my-menu-txt-color: #555555;
50
-
51
- $page-background-color: #F3F6F6;
52
- $disabled-button-text-color: #BABCC5;
53
- $dark-elements-color: #2C355D;
54
- $dark-disabled-btn-color: #DFE3E7;
55
- $disabled-color: #DFE3E7;
56
- $link-color: #0985A0;
57
- $title-color: #0985A0;
58
- $active-link-color: #0985A0;
59
- $text-color: #646464;
60
- $light-border-color: #DEE5EA;
61
- $icon-background: #D2E5E5;
62
-
63
- // QOB style
64
- $navy: #2399DA;
65
- $dark-blue: #2C355D;
66
- $qob-danger-color: #E70707;
67
- $qob-disabled-color: #D4D4D4;
68
-
69
- // WEBEX STYLE
70
-
71
- $webex-body-bg: #f7f7f7;
72
-
73
-
74
- $webex-icon-bg: #d0d0d0;
75
- $webex-icon-color: #2a2a2a;
76
- $webex-text-color: #252525;
77
-
78
- $webex-tr-hover-bg: #ededed;
79
- $webex-tr-border: #dedede;
80
-
81
- $webex-table-th-bg: #f7f7f7;
82
- $webex-table-th-txt: #636363;
83
- $webex-table-th-size: 12px;
84
-
85
- $webex-table-td-bg: #fff;
86
- $webex-table-td-txt: #636363;
87
- $webex-table-td-size: 14px;
88
-
89
- $webex-pagination-txt: #636363;
90
- $webex-pagination-hover-bg: #ededed;
91
-
92
-
93
-
94
-
95
- .mat-form-field {
96
- padding: 0 0 5px 0;
97
- width: 93%;
98
- }
99
- .mat-form-field.mat-form-field-disabled {
100
- border-bottom: none;
101
- }
102
- .mat-error {
103
- color: $error-color;
104
- margin: 13px 0 0 0;
105
- }
106
- .select-box {
107
- border-radius: 30px;
108
- background: #F3F6F6;
109
- border: 1px solid #E2E9EF;
110
- height: 35px;
111
- position: relative;
112
-
113
- select {
114
- border: none !important;
115
- background: transparent;
116
- height: 100%;
117
- width: 92%;
118
- margin: auto;
119
- display: block;
120
- }
121
-
122
- }
123
-
124
- option:focus, option:focus-visible {
125
- border: none !important;
126
- outline: none !important;
127
- }
128
- option {
129
- height: 30px;
130
- cursor: pointer;
131
- color: $webex-pagination-txt;
132
- }
133
- option:hover {
134
- background: $webex-pagination-hover-bg !important;
135
- }
136
- .mat-select {
137
- height: 100%;
138
- line-height: 35px;
139
- }
140
-
141
-
142
-
143
- .mat-select{
144
- line-height: 20px !important;
145
- }
146
- .mat-form-field-appearance-outline .mat-form-field-infix {
147
- padding: 14px 12px 10px;
148
- border-top: 0;
149
- max-width: 300px;
150
- }
151
-
152
- .mat-tab-group{
153
- font-family: "Inter", sans-serif;
154
- }
155
-
156
- .mat-tab-label{
157
- font-weight: 500 !important;
158
- font-size: 14px !important;
159
- height: auto !important;
160
- min-width: auto !important;
161
- padding: 0 !important;
162
- }
163
-
164
- .mat-ink-bar{
165
- background-color: rgba(0, 0, 0, 0.9) !important;
166
- height: 3px !important;
167
- }
168
- .mat-form-field-wrapper{
169
- padding-bottom: 0 !important;
170
- }
171
-
172
- .mat-form-field{
173
- padding: 0;
174
- max-width: 300px;
175
- }
176
-
177
-
178
- .fa:hover {
179
- color: #0d56aa!important;
180
- }
181
- .mat-icon-button {
182
- background: transparent;
183
- }
184
- .icon-webex-box {
185
- width: 2rem;
186
- height: 2rem;
187
- font-size: .7rem;
188
- line-height: 1rem;
189
- display: inline-block;
190
- background: $webex-icon-bg;
191
- border-radius: 2rem;
192
- line-height: 40px;
193
- text-align: center;
194
- }
195
- .icon-webex {
196
- filter: invert(12%) sepia(14%) saturate(4%) hue-rotate(354deg) brightness(103%) contrast(90%);
197
- background-repeat: no-repeat;
198
- background-position: center;
199
- display: inline-block;
200
- height: 1rem;
201
- width: 1rem;
202
- }
203
- .icon-webex-user {
204
- background-image: url('../assets/icons/icon_user.svg');
205
- }
206
- .icon-user-status {
207
- display: inline-block;
208
-
209
- }
210
-
211
-
212
-
213
-
214
-
215
- *{
216
- margin: 0;
217
- }
218
-
219
- body {
220
- background: $webex-body-bg;
221
- }
222
- body, th, td {
223
- font-family: $main-font;
224
- font-size: 14px;
225
- }
226
- th {
227
- color: rgba(0,0,0,.54);
228
- text-align: left;
229
- }
230
- td {
231
- box-sizing: border-box;
232
- padding: 10px 5px 10px 0;
233
- }
234
- .content-box {
235
- margin: auto;
236
- position: relative;
237
- width: 70%;
238
-
239
- table {
240
- width: 100%
241
- }
242
- }
243
- .edit-icon-td {
244
- width: 50px;
245
- position: relative;
246
-
247
- button {
248
- position: absolute;
249
- top: 4px;
250
- }
251
- }
252
- .mat-progress-spinner circle, .mat-spinner circle {
253
- stroke: #009fdb!important;
254
- }
255
- .data-loader {
256
- position: absolute;
257
- top: calc(50% - 25px);
258
- left: calc(50% - 25px);
259
- }
260
- .flex-box {
261
- display: flex;
262
- justify-content: flex-start;
263
- }
264
-
265
- .user-info-box {
266
- background: white;
267
- display: grid;
268
- grid-template-columns: 30% 70%;
269
- border-radius: 8px;
270
- border: rgba(0, 0, 0, 0.2) 1px solid;
271
- padding: 24px;
272
- font-weight: 400;
273
- font-size: 14px;
274
-
275
- h3 {
276
- display: block;
277
- font-weight: 500;
278
- font-size: 16px;
279
- }
280
- }
281
- .mat-divider{
282
- margin: 5px 0 !important;
283
- }
284
- .info-boxes-container {
285
- padding: 24px 0;
286
- display: flex;
287
- flex-direction: column;
288
- gap: 24px;
289
- }
290
- .header-box {
291
- height: 60px;
292
- width: 100%;
293
- line-height: 60px;
294
- background: white;
295
- border-bottom: 1px solid #dedddd;
296
-
297
- .header-back-block {
298
- float: left;
299
- }
300
- .header-button-block {
301
- float: right;
302
- }
303
- }
304
-
305
-
306
- .webex-table {
307
- width: 100%;
308
- margin: auto;
309
-
310
- tr {
311
- border-bottom: 1px solid $webex-tr-border;
312
- }
313
- th {
314
- background: $webex-table-th-bg;
315
- color: $webex-table-th-txt;
316
- font-size: $webex-table-th-size;
317
- }
318
- td {
319
- background: $webex-table-td-bg;
320
- color: $webex-table-td-txt;
321
- font-size: $webex-table-td-size;
322
- }
323
- tr:hover td {
324
- background: $webex-tr-hover-bg;
325
- cursor: pointer;
326
- }
327
- th.mat-header-cell, td.mat-cell, td.mat-footer-cell {
328
- border-bottom: 1px solid $webex-tr-border;
329
- }
330
- tr.mat-header-row {
331
- height: 37px;
332
- }
333
- }
334
-
335
-
336
- .mat-form-field {
337
- padding: 0 0 5px 0;
338
- width: 93%;
339
- }
340
- .mat-form-field.mat-form-field-disabled {
341
- border-bottom: none;
342
- }
343
- .mat-error {
344
- color: $error-color;
345
- margin: 13px 0 0 0;
346
- }
347
- .select-box {
348
- border-radius: 30px;
349
- background: #F3F6F6;
350
- border: 1px solid #E2E9EF;
351
- height: 35px;
352
- position: relative;
353
-
354
- select {
355
- border: none !important;
356
- background: transparent;
357
- height: 100%;
358
- width: 92%;
359
- margin: auto;
360
- display: block;
361
- }
362
-
363
- }
364
-
365
- option:focus, option:focus-visible {
366
- border: none !important;
367
- outline: none !important;
368
- }
369
- option {
370
- height: 30px;
371
- cursor: pointer;
372
- color: $webex-pagination-txt;
373
- }
374
- option:hover {
375
- background: $webex-pagination-hover-bg !important;
376
- }
377
- .mat-select {
378
- height: 100% !important;
379
- line-height: 35px !important;
380
- }
381
- .info-holder, .input-holder {
382
- display: grid;
383
- grid-template-columns: 30% 70%;
384
- align-items: baseline;
385
-
386
- &__name{
387
- font-weight: 500 !important;
388
- font-size: 14px !important;
389
- }
390
- &__inputs{
391
- & .input-holder{
392
- display: grid;
393
- grid-template-columns: 30% 70%;
394
- align-items: baseline;
395
- &__name{
396
- font-weight: 400 !important;
397
- font-size: 14px !important;
398
- }
399
- }
400
- }
401
- }
402
- .mat-form-field-wrapper {
403
- height: 30px !important;
404
- }
405
- .mat-form-field-flex{
406
- height: 30px !important;
407
- }
408
-
409
- .mat-form-field-appearance-outline .mat-form-field-outline{
410
- height: 35px !important;
411
- }
412
-
413
- .mat-form-field-outline .mat-form-field-outline-thick{
414
- height: 35px !important;
415
- }
416
-
417
- .mat-select{
418
- line-height: 20px !important;
419
- }
420
- .mat-form-field-appearance-outline .mat-form-field-infix {
421
- padding: 14px 12px 10px;
422
- border-top: 0;
423
- max-width: 300px;
424
- }
425
-
426
- .mat-tab-group{
427
- font-family: "Inter", sans-serif;
428
- }
429
-
430
- .mat-tab-label{
431
- font-weight: 500 !important;
432
- font-size: 14px !important;
433
- height: auto !important;
434
- min-width: auto !important;
435
- padding: 0 !important;
436
- }
437
-
438
- .mat-ink-bar{
439
- background-color: rgba(0, 0, 0, 0.9) !important;
440
- height: 3px !important;
441
- }
442
- .mat-form-field-wrapper{
443
- padding-bottom: 0;
444
- }
445
-
446
- .mat-form-field{
447
- padding: 0;
448
- max-width: 300px;
449
- }
450
-
451
- .mat-divider{
452
- margin: 12px 0;
453
- }
454
- table {
455
- border-collapse: collapse;
456
- border-spacing: 0;
457
- }
458
-
459
- .mat-form-field-appearance-outline .mat-form-field-infix {
460
- padding: 0px !important;
461
- }
@@ -1,163 +0,0 @@
1
- import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
2
- import { FormGroup, Validators } from '@angular/forms';
3
- import { UserService } from './services/user.service';
4
- import { APIService } from "./services/api.service";
5
- import { SimplifiedUser } from './classes/simplified-user';
6
-
7
- @Component({
8
- selector: 'app-user-manage-widget',
9
- templateUrl: './user-manage-widget.component.html',
10
- styleUrls: ['./user-manage-widget.component.scss'],
11
- })
12
- export class UserManageWidgetComponent implements OnInit {
13
-
14
- public dataPending!: boolean;
15
-
16
- @Output() onSave = new EventEmitter<string>();
17
- @Input() token!: string;
18
- @Input() siteId!: number;
19
- @Input() userId!: string;
20
-
21
- get form(): FormGroup {
22
- return this.userService?.user?.form;
23
- }
24
-
25
- get user(): SimplifiedUser {
26
- return this.userService.user;
27
- }
28
-
29
- get userName(): string {
30
- return `${this.user?.firstName || ''} ${this.user?.lastName || ''}`;
31
- }
32
-
33
-
34
- constructor(
35
- public userService: UserService,
36
- private apiService: APIService,
37
- ) {
38
- }
39
-
40
- ngOnInit(): void {
41
- this.apiService.token = this.token;
42
- this.getData();
43
- }
44
-
45
- public onChangeField(token: string): void {
46
- if (!token) {
47
- return;
48
- }
49
- (this.userService.user as any)[token] = this.form?.get(token)?.value;
50
-
51
- if (token === 'middleName') {
52
- this.form?.get(token)?.setValidators([Validators.pattern('[ a-zA-Z-]+')]);
53
- }
54
- if (token === 'telephoneNumber' || token === 'mobileNumber' || token === 'pagerNumber' || token === 'homeNumber') {
55
- this.form?.get(token)?.setValidators([Validators.pattern('[ 0-9-+]+')]);
56
- }
57
- this.form?.get(token)?.updateValueAndValidity();
58
- this.validateUserId();
59
- }
60
-
61
- public saveChanges(): void {
62
- this.onSave.next("start saving..");
63
- if (!this.userService.hasUnsavedChanges() || this.form?.invalid) {
64
- return;
65
- }
66
- this.userService.persistCacheChanges()
67
- .subscribe(() => {
68
- this.onSave.next("saved");
69
- })
70
- }
71
-
72
- public toggleEditMode() {
73
- this.userService.user.toggleEditMode();
74
- }
75
-
76
- public isSavingDisabled(): boolean {
77
- return !this.userService.hasUnsavedChanges() || this.userService.hasExistedUserId;
78
- }
79
-
80
- public changeField(token: string): void {
81
- const formField = this.user?.form?.get(token);
82
- if (token !== 'confirmDigestCredentials') {
83
- // @ts-ignore
84
- this.user[token] = formField?.value;
85
- }
86
- if (token === 'digestCredentials' || token === 'confirmDigestCredentials') {
87
- this.digestCredentialsHandler(token, formField);
88
- }
89
- }
90
-
91
- private digestCredentialsHandler(token: string, field: any) {
92
- const fieldNameToCompare = token === 'digestCredentials' ? 'confirmDigestCredentials' : 'digestCredentials';
93
- const fieldToCompare = this.userService.user.form.get(fieldNameToCompare);
94
- if (this.userService.user?.form?.get(token)) {
95
- this.userService.user?.form?.get(token)?.setErrors(null);
96
- this.userService.user?.form?.get(fieldNameToCompare)?.setErrors(null);
97
-
98
- /* if (!field.value && !fieldToCompare.value) {
99
- this.userService.user?.digestCredentials = null;
100
- return;
101
- }
102
-
103
- if (!field.value && fieldToCompare.value || !fieldToCompare.value && field.value) {
104
- const requiredFieldName = field.value ? fieldNameToCompare : token;
105
- this.userService.user.form.get(requiredFieldName).setErrors({required: true});
106
- return;
107
- }
108
- if (field.value && fieldToCompare.value && field.value !== fieldToCompare.value) {
109
- this.userService.user.form.get(token).setErrors({mismatch: true});
110
- this.userService.user.form.get(fieldNameToCompare).setErrors({mismatch: true});
111
- }*/
112
- }
113
-
114
- }
115
-
116
- private getData() {
117
- this.dataPending = true;
118
- this.userService.fetchUserToken(this.siteId, this.userId)
119
- .subscribe({
120
- complete: (v: any) => {
121
- this.dataPending = false;
122
- },
123
- error: (e: any) => this.dataPending = false,
124
- });
125
- }
126
-
127
- private setCookie(name: string, value: string, days: number) {
128
- var expires = "";
129
- if (days) {
130
- var date = new Date();
131
- date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
132
- expires = "; expires=" + date.toUTCString();
133
- }
134
- document.cookie = name + "=" + (value || "") + expires + "; path=/";
135
- }
136
-
137
- private validateUserId() {
138
- const idControl = this.form.get('userid');
139
- if (idControl?.value !== '' && idControl?.value !== this.userService.originUser.userid) {
140
- this.userService.fetchUserById(idControl?.value)
141
- .subscribe(
142
- (res: any) => {
143
- this.userService.userIdExistPending = false;
144
- idControl?.setErrors({exist: true});
145
- if (this.form?.get('userid')?.hasError('exist')) {
146
- this.userService.hasExistedUserId = true;
147
- } else {
148
- this.userService.hasExistedUserId = false;
149
- }
150
- },
151
- ((error) => {
152
- this.userService.userIdExistPending = false;
153
- if (error.status !== 404) {
154
- // this.notificationService.warning(this.translate.instant('APP_USER_MSG.CHECK_USER_ID_FAILED'));
155
- } else {
156
- this.userService.user.newUserId = this.form?.get('userid')?.value
157
- }
158
- }));
159
- } else {
160
- delete this.userService?.user?.newUserId;
161
- }
162
- }
163
- }
@@ -1,53 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { BrowserModule } from '@angular/platform-browser';
3
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
4
- import { APIService } from './services/api.service';
5
- import { AppLoaderComponent } from './utils/app-loader/app-loader';
6
- import { UserService } from './services/user.service';
7
- import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
8
- import { AuthInterceptor } from './interseptors/auth.interceptor';
9
- import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
10
- import { CommonModule } from '@angular/common';
11
- import { UserInfoComponent } from './user-info/user-info.component';
12
- import { MaterialModule } from './material.module';
13
- import { NotificationService } from './services/notification.service';
14
- import { NotificationsComponent } from './notifications/notification.component';
15
- import { UsersSearchService } from './services/users-search.service';
16
- import { PaginationComponent } from './utils/pagination/pagination.component';
17
- import { RemoveKynFromIBMService } from './services/removeKynFromIBM.service';
18
- import { SiteSettingsService } from './services/site-settings.service';
19
- import { LazyLoadingSelectComponent } from './lazy-loading-select/lazy-loading-select.component';
20
- import { UserManageWidgetComponent } from './user-manage-widget.component';
21
-
22
- @NgModule({
23
- declarations: [
24
- AppLoaderComponent,
25
- UserInfoComponent,
26
- NotificationsComponent,
27
- PaginationComponent,
28
- LazyLoadingSelectComponent,
29
- UserManageWidgetComponent
30
- ],
31
- imports: [
32
- CommonModule,
33
- BrowserModule,
34
- BrowserAnimationsModule,
35
- FormsModule,
36
- ReactiveFormsModule,
37
- HttpClientModule,
38
- MaterialModule,
39
- ],
40
- providers: [
41
- APIService,
42
- UserService,
43
- NotificationService,
44
- UsersSearchService,
45
- RemoveKynFromIBMService,
46
- SiteSettingsService,
47
- {provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true}
48
- ],
49
- exports: [UserManageWidgetComponent]
50
-
51
- })
52
- export class UserManageModule {
53
- }
@@ -1,6 +0,0 @@
1
- <div class="overlay">
2
- <mat-progress-spinner
3
- class="page-spinner"
4
- mode="indeterminate"
5
- [diameter]="120"></mat-progress-spinner>
6
- </div>
@@ -1,11 +0,0 @@
1
- .overlay {
2
- position: fixed;
3
- width: 100%;
4
- height: 100%;
5
- top: 0;
6
- left: 0;
7
- right: 0;
8
- bottom: 0;
9
- background-color: rgba(255, 255, 255, 0.2);
10
- z-index: 200;
11
- }
@@ -1,13 +0,0 @@
1
- import { Component, ViewEncapsulation } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'app-loader',
5
- templateUrl: './app-loader.component.html',
6
- styleUrls: ['./app-loader.component.scss'],
7
- encapsulation: ViewEncapsulation.None,
8
- })
9
- export class AppLoaderComponent {
10
- constructor() {
11
- }
12
-
13
- }