@aakash58/chatbot 1.1.19 → 1.1.21

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 (351) hide show
  1. package/.editorconfig +17 -0
  2. package/.vscode/extensions.json +4 -0
  3. package/.vscode/launch.json +41 -0
  4. package/.vscode/settings.json +14 -0
  5. package/.vscode/tasks.json +60 -0
  6. package/README.md +298 -22
  7. package/angular.json +132 -0
  8. package/docs/PUBLISHING_GUIDE.md +104 -0
  9. package/package.json +75 -29
  10. package/projects/app-doohbot/public/assets/const/app-const.json +15 -0
  11. package/projects/app-doohbot/public/assets/const/doohclick_license.json +6 -0
  12. package/projects/app-doohbot/public/favicon.ico +0 -0
  13. package/projects/app-doohbot/src/app/app.config.ts +13 -0
  14. package/projects/app-doohbot/src/app/app.html +31 -0
  15. package/projects/app-doohbot/src/app/app.routes.ts +3 -0
  16. package/projects/app-doohbot/src/app/app.scss +279 -0
  17. package/projects/app-doohbot/src/app/app.spec.ts +23 -0
  18. package/projects/app-doohbot/src/app/app.ts +72 -0
  19. package/projects/app-doohbot/src/index.html +15 -0
  20. package/projects/app-doohbot/src/main.ts +6 -0
  21. package/projects/app-doohbot/src/styles.scss +15 -0
  22. package/projects/app-doohbot/tsconfig.app.json +15 -0
  23. package/projects/app-doohbot/tsconfig.spec.json +14 -0
  24. package/projects/doohbot/README.md +64 -0
  25. package/projects/doohbot/docs/README.md +140 -0
  26. package/projects/doohbot/ng-package.json +10 -0
  27. package/projects/doohbot/package.json +16 -0
  28. package/projects/doohbot/src/lib/app/chat/chat-ui-state.service.ts +194 -0
  29. package/projects/doohbot/src/lib/app/chat/chat.service.ts +547 -0
  30. package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.html +27 -0
  31. package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.scss +115 -0
  32. package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.ts +35 -0
  33. package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.html +3 -0
  34. package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.scss +20 -0
  35. package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.ts +12 -0
  36. package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.html +34 -0
  37. package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.scss +78 -0
  38. package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.ts +52 -0
  39. package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.html +77 -0
  40. package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.scss +346 -0
  41. package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.ts +188 -0
  42. package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.html +146 -0
  43. package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.scss +187 -0
  44. package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.ts +256 -0
  45. package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.html +17 -0
  46. package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.scss +59 -0
  47. package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.ts +28 -0
  48. package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.html +138 -0
  49. package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.scss +436 -0
  50. package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.ts +106 -0
  51. package/projects/doohbot/src/lib/app/chat/model/chat-history.model.ts +57 -0
  52. package/projects/doohbot/src/lib/app/chat/model/chat-request.model.ts +17 -0
  53. package/projects/doohbot/src/lib/app/chat/model/chat-response.model.ts +9 -0
  54. package/projects/doohbot/src/lib/app/chat/model/chat-session.model.ts +14 -0
  55. package/{lib/app/chat/model/chat-stream-message.model.d.ts → projects/doohbot/src/lib/app/chat/model/chat-stream-message.model.ts} +6 -5
  56. package/projects/doohbot/src/lib/app/chat/model/chat-stream-response.model.ts +12 -0
  57. package/projects/doohbot/src/lib/app/chat/services/chat-api.service.ts +82 -0
  58. package/projects/doohbot/src/lib/app/chat/services/chat-audio.service.ts +44 -0
  59. package/projects/doohbot/src/lib/app/chat/services/chat-history.service.ts +303 -0
  60. package/projects/doohbot/src/lib/app/login/login-form.component.html +80 -0
  61. package/projects/doohbot/src/lib/app/login/login-form.component.scss +189 -0
  62. package/projects/doohbot/src/lib/app/login/login-form.component.ts +45 -0
  63. package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.html +81 -0
  64. package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.scss +179 -0
  65. package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.ts +217 -0
  66. package/projects/doohbot/src/lib/app/personalization/personalization.service.ts +197 -0
  67. package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.html +111 -0
  68. package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.scss +218 -0
  69. package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.ts +121 -0
  70. package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.html +46 -0
  71. package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.scss +138 -0
  72. package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.ts +28 -0
  73. package/projects/doohbot/src/lib/app/personalization/sections/preferences/color-picker-dialog.component.ts +92 -0
  74. package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.html +198 -0
  75. package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.scss +107 -0
  76. package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.ts +103 -0
  77. package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.html +46 -0
  78. package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.scss +131 -0
  79. package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.ts +23 -0
  80. package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.html +33 -0
  81. package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.scss +61 -0
  82. package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.ts +20 -0
  83. package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.html +30 -0
  84. package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.scss +59 -0
  85. package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.ts +12 -0
  86. package/projects/doohbot/src/lib/constant/doohbot-constant.ts +40 -0
  87. package/projects/doohbot/src/lib/constant/html-entities.ts +8 -0
  88. package/projects/doohbot/src/lib/constant/utf8.ts +9 -0
  89. package/projects/doohbot/src/lib/core/app-const.ts +63 -0
  90. package/projects/doohbot/src/lib/core/auth/account-api.service.ts +53 -0
  91. package/projects/doohbot/src/lib/core/auth/auth.service.ts +478 -0
  92. package/projects/doohbot/src/lib/core/auth/models/auth-result.model.ts +4 -0
  93. package/projects/doohbot/src/lib/core/auth/models/federated-login-request.model.ts +5 -0
  94. package/projects/doohbot/src/lib/core/auth/models/login-request.model.ts +6 -0
  95. package/projects/doohbot/src/lib/core/auth/storage.service.ts +113 -0
  96. package/projects/doohbot/src/lib/core/directives/draggable/draggable-dialog.directive.ts +123 -0
  97. package/projects/doohbot/src/lib/core/directives/draggable/draggable-dialog.module.ts +9 -0
  98. package/projects/doohbot/src/lib/core/directives/fullscreen/fullscreen.directive.ts +58 -0
  99. package/projects/doohbot/src/lib/core/directives/fullscreen/fullscreen.module.ts +9 -0
  100. package/projects/doohbot/src/lib/core/directives/popout/popout.directive.ts +169 -0
  101. package/projects/doohbot/src/lib/core/directives/popout/popout.module.ts +9 -0
  102. package/projects/doohbot/src/lib/core/directives/resizable/resizable-dialog.directive.ts +197 -0
  103. package/projects/doohbot/src/lib/core/directives/resizable/resizable-dialog.module.ts +9 -0
  104. package/projects/doohbot/src/lib/core/enums/api-request-state.enum.ts +9 -0
  105. package/projects/doohbot/src/lib/core/environments/environment.prod.ts +14 -0
  106. package/projects/doohbot/src/lib/core/environments/environment.ts +14 -0
  107. package/projects/doohbot/src/lib/core/helpers/crypto-helper.service.ts +72 -0
  108. package/projects/doohbot/src/lib/core/http/http-stream.service.ts +105 -0
  109. package/projects/doohbot/src/lib/core/http/http.service.ts +148 -0
  110. package/projects/doohbot/src/lib/core/interceptors/auth.interceptor.ts +118 -0
  111. package/projects/doohbot/src/lib/core/interceptors/license.interceptor.ts +50 -0
  112. package/projects/doohbot/src/lib/core/models/api-config.model.ts +82 -0
  113. package/projects/doohbot/src/lib/core/models/api-request.model.ts +92 -0
  114. package/projects/doohbot/src/lib/core/models/api-response.model.ts +13 -0
  115. package/projects/doohbot/src/lib/core/models/doohbot-config.model.ts +109 -0
  116. package/{lib/core/models/license.model.d.ts → projects/doohbot/src/lib/core/models/license.model.ts} +27 -23
  117. package/projects/doohbot/src/lib/core/models/message.ts +18 -0
  118. package/projects/doohbot/src/lib/core/models/theme-config.model.ts +48 -0
  119. package/projects/doohbot/src/lib/core/services/core-config.service.ts +53 -0
  120. package/projects/doohbot/src/lib/core/services/doohbot-api.service.ts +207 -0
  121. package/projects/doohbot/src/lib/core/services/license.service.ts +171 -0
  122. package/projects/doohbot/src/lib/core/services/markdown.service.ts +73 -0
  123. package/projects/doohbot/src/lib/core/services/theme.service.ts +305 -0
  124. package/{lib/core/types/auth-mode.type.d.ts → projects/doohbot/src/lib/core/types/auth-mode.type.ts} +4 -4
  125. package/{lib/core/types/auth-status.type.d.ts → projects/doohbot/src/lib/core/types/auth-status.type.ts} +5 -4
  126. package/{lib/core/types/chat-stream.type.d.ts → projects/doohbot/src/lib/core/types/chat-stream.type.ts} +4 -4
  127. package/{lib/core/types/message-role.type.d.ts → projects/doohbot/src/lib/core/types/message-role.type.ts} +4 -4
  128. package/{lib/core/types/prompt-mode.type.d.ts → projects/doohbot/src/lib/core/types/prompt-mode.type.ts} +5 -4
  129. package/{lib/core/types/snackbar-error.type.d.ts → projects/doohbot/src/lib/core/types/snackbar-error.type.ts} +5 -4
  130. package/{lib/core/types/tenant-resolution-strategy.type.d.ts → projects/doohbot/src/lib/core/types/tenant-resolution-strategy.type.ts} +4 -4
  131. package/projects/doohbot/src/lib/core/utils/error-handler.util.ts +31 -0
  132. package/projects/doohbot/src/lib/core/utils/logger.service.ts +45 -0
  133. package/projects/doohbot/src/lib/doohbot-input.ts +19 -0
  134. package/projects/doohbot/src/lib/doohbot.component.html +34 -0
  135. package/projects/doohbot/src/lib/doohbot.component.scss +17 -0
  136. package/projects/doohbot/src/lib/doohbot.component.spec.ts +31 -0
  137. package/projects/doohbot/src/lib/doohbot.component.ts +545 -0
  138. package/projects/doohbot/src/lib/elements.ts +25 -0
  139. package/projects/doohbot/src/lib/predefined_messages.ts +14 -0
  140. package/projects/doohbot/src/lib/shared/chips/chips.component.html +9 -0
  141. package/projects/doohbot/src/lib/shared/chips/chips.component.scss +29 -0
  142. package/projects/doohbot/src/lib/shared/chips/chips.component.spec.ts +22 -0
  143. package/projects/doohbot/src/lib/shared/chips/chips.component.ts +20 -0
  144. package/projects/doohbot/src/lib/shared/dialog/dialog.component.html +29 -0
  145. package/projects/doohbot/src/lib/shared/dialog/dialog.component.scss +100 -0
  146. package/projects/doohbot/src/lib/shared/dialog/dialog.component.ts +42 -0
  147. package/projects/doohbot/src/lib/shared/dialog/dialog.service.ts +62 -0
  148. package/projects/doohbot/src/lib/shared/dialog/dialog.utils.ts +102 -0
  149. package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.html +30 -0
  150. package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.scss +53 -0
  151. package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.spec.ts +22 -0
  152. package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.ts +35 -0
  153. package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.html +16 -0
  154. package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.scss +45 -0
  155. package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.ts +46 -0
  156. package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.html +5 -0
  157. package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.scss +0 -0
  158. package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.spec.ts +22 -0
  159. package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.ts +20 -0
  160. package/projects/doohbot/src/lib/shared/pipes/simple-markdown.pipe.ts +19 -0
  161. package/projects/doohbot/src/lib/shared/popout/popout.html +1 -0
  162. package/projects/doohbot/src/lib/shared/popout/popout.scss +0 -0
  163. package/projects/doohbot/src/lib/shared/popout/popout.spec.ts +23 -0
  164. package/projects/doohbot/src/lib/shared/popout/popout.ts +11 -0
  165. package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.html +7 -0
  166. package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.scss +125 -0
  167. package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.spec.ts +21 -0
  168. package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.ts +44 -0
  169. package/projects/doohbot/src/lib/shared/snackbar/snackbar.service.ts +54 -0
  170. package/{lib/shared/snackbar/snackbar.utils.d.ts → projects/doohbot/src/lib/shared/snackbar/snackbar.utils.ts} +49 -33
  171. package/projects/doohbot/src/lib/styles/_theme.scss +132 -0
  172. package/projects/doohbot/src/lib/styles/material-override.scss +302 -0
  173. package/projects/doohbot/src/lib/styles/utility.scss +588 -0
  174. package/projects/doohbot/src/public-api.ts +42 -0
  175. package/projects/doohbot/tsconfig.lib.json +15 -0
  176. package/projects/doohbot/tsconfig.lib.prod.json +11 -0
  177. package/projects/doohbot/tsconfig.spec.json +10 -0
  178. package/proxy.conf.json +8 -0
  179. package/publish.config.js +25 -0
  180. package/scripts/publishing/index.ts +67 -0
  181. package/scripts/publishing/pipeline/01-clean.ts +11 -0
  182. package/scripts/publishing/pipeline/02-validate-pre.ts +8 -0
  183. package/scripts/publishing/pipeline/03-build.ts +7 -0
  184. package/scripts/publishing/pipeline/04-validate-post.ts +8 -0
  185. package/scripts/publishing/pipeline/05-prepare-package.ts +29 -0
  186. package/scripts/publishing/pipeline/06-version.ts +23 -0
  187. package/scripts/publishing/pipeline/07-publish.ts +14 -0
  188. package/scripts/publishing/pipeline/08-cleanup.ts +5 -0
  189. package/scripts/publishing/types.ts +36 -0
  190. package/scripts/publishing/utils/command.ts +15 -0
  191. package/scripts/publishing/utils/config.ts +17 -0
  192. package/scripts/validate.ts +166 -0
  193. package/tsconfig.json +45 -0
  194. package/tsconfig.scripts.json +15 -0
  195. package/esm2022/aakash58-chatbot.mjs +0 -5
  196. package/esm2022/lib/app/chat/chat-ui-state.service.mjs +0 -170
  197. package/esm2022/lib/app/chat/chat.service.mjs +0 -445
  198. package/esm2022/lib/app/chat/components/chat-button/chat-button.component.mjs +0 -50
  199. package/esm2022/lib/app/chat/components/chat-footer/chat-footer.component.mjs +0 -12
  200. package/esm2022/lib/app/chat/components/chat-header/chat-header.component.mjs +0 -66
  201. package/esm2022/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.mjs +0 -186
  202. package/esm2022/lib/app/chat/components/chat-window/chat-window.component.mjs +0 -312
  203. package/esm2022/lib/app/chat/components/message-input/message-input.component.mjs +0 -36
  204. package/esm2022/lib/app/chat/components/message-list/message-list.component.mjs +0 -115
  205. package/esm2022/lib/app/chat/model/chat-history.model.mjs +0 -2
  206. package/esm2022/lib/app/chat/model/chat-request.model.mjs +0 -2
  207. package/esm2022/lib/app/chat/model/chat-response.model.mjs +0 -2
  208. package/esm2022/lib/app/chat/model/chat-session.model.mjs +0 -2
  209. package/esm2022/lib/app/chat/model/chat-stream-message.model.mjs +0 -2
  210. package/esm2022/lib/app/chat/model/chat-stream-response.model.mjs +0 -2
  211. package/esm2022/lib/app/chat/services/chat-api.service.mjs +0 -61
  212. package/esm2022/lib/app/chat/services/chat-audio.service.mjs +0 -50
  213. package/esm2022/lib/app/chat/services/chat-history.service.mjs +0 -252
  214. package/esm2022/lib/app/login/login-form.component.mjs +0 -46
  215. package/esm2022/lib/app/personalization/personalization-dialog.component.mjs +0 -194
  216. package/esm2022/lib/app/personalization/personalization.service.mjs +0 -149
  217. package/esm2022/lib/app/personalization/sections/account/account-section.component.mjs +0 -122
  218. package/esm2022/lib/app/personalization/sections/preferences/color-picker-dialog.component.mjs +0 -86
  219. package/esm2022/lib/app/personalization/sections/preferences/preferences-section.component.mjs +0 -115
  220. package/esm2022/lib/app/personalization/sections/profile/profile-section.component.mjs +0 -29
  221. package/esm2022/lib/app/personalization/sections/settings/setting-section.component.mjs +0 -30
  222. package/esm2022/lib/app/personalization/sections/terms/terms-section.component.mjs +0 -12
  223. package/esm2022/lib/constant/doohbot-constant.mjs +0 -28
  224. package/esm2022/lib/constant/html-entities.mjs +0 -9
  225. package/esm2022/lib/constant/utf8.mjs +0 -10
  226. package/esm2022/lib/core/app-const.mjs +0 -61
  227. package/esm2022/lib/core/auth/account-api.service.mjs +0 -40
  228. package/esm2022/lib/core/auth/auth.service.mjs +0 -391
  229. package/esm2022/lib/core/auth/models/auth-result.model.mjs +0 -3
  230. package/esm2022/lib/core/auth/models/federated-login-request.model.mjs +0 -6
  231. package/esm2022/lib/core/auth/models/login-request.model.mjs +0 -6
  232. package/esm2022/lib/core/auth/storage.service.mjs +0 -110
  233. package/esm2022/lib/core/directives/draggable/draggable-dialog.directive.mjs +0 -112
  234. package/esm2022/lib/core/directives/fullscreen/fullscreen.directive.mjs +0 -55
  235. package/esm2022/lib/core/directives/resizable/resizable-dialog.directive.mjs +0 -179
  236. package/esm2022/lib/core/environments/environment.mjs +0 -15
  237. package/esm2022/lib/core/environments/environment.prod.mjs +0 -15
  238. package/esm2022/lib/core/helpers/crypto-helper.service.mjs +0 -52
  239. package/esm2022/lib/core/http/http-stream.service.mjs +0 -97
  240. package/esm2022/lib/core/http/http.service.mjs +0 -103
  241. package/esm2022/lib/core/interceptors/auth.interceptor.mjs +0 -96
  242. package/esm2022/lib/core/interceptors/license.interceptor.mjs +0 -44
  243. package/esm2022/lib/core/models/api-config.model.mjs +0 -18
  244. package/esm2022/lib/core/models/api-request.model.mjs +0 -2
  245. package/esm2022/lib/core/models/api-response.model.mjs +0 -8
  246. package/esm2022/lib/core/models/doohbot-config.model.mjs +0 -18
  247. package/esm2022/lib/core/models/license.model.mjs +0 -2
  248. package/esm2022/lib/core/models/message.mjs +0 -2
  249. package/esm2022/lib/core/models/theme-config.model.mjs +0 -2
  250. package/esm2022/lib/core/services/core-config.service.mjs +0 -52
  251. package/esm2022/lib/core/services/license.service.mjs +0 -145
  252. package/esm2022/lib/core/services/markdown.service.mjs +0 -64
  253. package/esm2022/lib/core/services/theme.service.mjs +0 -248
  254. package/esm2022/lib/core/types/auth-mode.type.mjs +0 -2
  255. package/esm2022/lib/core/types/auth-status.type.mjs +0 -5
  256. package/esm2022/lib/core/types/chat-stream.type.mjs +0 -2
  257. package/esm2022/lib/core/types/message-role.type.mjs +0 -2
  258. package/esm2022/lib/core/types/prompt-mode.type.mjs +0 -5
  259. package/esm2022/lib/core/types/snackbar-error.type.mjs +0 -5
  260. package/esm2022/lib/core/types/tenant-resolution-strategy.type.mjs +0 -2
  261. package/esm2022/lib/core/utils/logger.service.mjs +0 -42
  262. package/esm2022/lib/doohbot-input.mjs +0 -20
  263. package/esm2022/lib/doohbot.component.mjs +0 -444
  264. package/esm2022/lib/predefined_messages.mjs +0 -15
  265. package/esm2022/lib/shared/chips/chips.component.mjs +0 -28
  266. package/esm2022/lib/shared/dialog/dialog.component.mjs +0 -36
  267. package/esm2022/lib/shared/dialog/dialog.service.mjs +0 -64
  268. package/esm2022/lib/shared/dialog/dialog.utils.mjs +0 -85
  269. package/esm2022/lib/shared/dropdown-menu/dropdown-menu.component.mjs +0 -29
  270. package/esm2022/lib/shared/input-dialog/input-dialog.component.mjs +0 -38
  271. package/esm2022/lib/shared/menu-item/menu-item.component.mjs +0 -24
  272. package/esm2022/lib/shared/pipes/simple-markdown.pipe.mjs +0 -27
  273. package/esm2022/lib/shared/snackbar/snackbar.component.mjs +0 -43
  274. package/esm2022/lib/shared/snackbar/snackbar.service.mjs +0 -46
  275. package/esm2022/lib/shared/snackbar/snackbar.utils.mjs +0 -43
  276. package/esm2022/public-api.mjs +0 -37
  277. package/fesm2022/aakash58-chatbot.mjs +0 -5193
  278. package/fesm2022/aakash58-chatbot.mjs.map +0 -1
  279. package/index.d.ts +0 -5
  280. package/lib/app/chat/chat-ui-state.service.d.ts +0 -96
  281. package/lib/app/chat/chat.service.d.ts +0 -88
  282. package/lib/app/chat/components/chat-button/chat-button.component.d.ts +0 -16
  283. package/lib/app/chat/components/chat-footer/chat-footer.component.d.ts +0 -5
  284. package/lib/app/chat/components/chat-header/chat-header.component.d.ts +0 -24
  285. package/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.d.ts +0 -49
  286. package/lib/app/chat/components/chat-window/chat-window.component.d.ts +0 -107
  287. package/lib/app/chat/components/message-input/message-input.component.d.ts +0 -12
  288. package/lib/app/chat/components/message-list/message-list.component.d.ts +0 -40
  289. package/lib/app/chat/model/chat-history.model.d.ts +0 -51
  290. package/lib/app/chat/model/chat-request.model.d.ts +0 -10
  291. package/lib/app/chat/model/chat-response.model.d.ts +0 -9
  292. package/lib/app/chat/model/chat-session.model.d.ts +0 -12
  293. package/lib/app/chat/model/chat-stream-response.model.d.ts +0 -10
  294. package/lib/app/chat/services/chat-api.service.d.ts +0 -30
  295. package/lib/app/chat/services/chat-audio.service.d.ts +0 -19
  296. package/lib/app/chat/services/chat-history.service.d.ts +0 -53
  297. package/lib/app/login/login-form.component.d.ts +0 -20
  298. package/lib/app/personalization/personalization-dialog.component.d.ts +0 -53
  299. package/lib/app/personalization/personalization.service.d.ts +0 -66
  300. package/lib/app/personalization/sections/account/account-section.component.d.ts +0 -30
  301. package/lib/app/personalization/sections/preferences/color-picker-dialog.component.d.ts +0 -17
  302. package/lib/app/personalization/sections/preferences/preferences-section.component.d.ts +0 -27
  303. package/lib/app/personalization/sections/profile/profile-section.component.d.ts +0 -17
  304. package/lib/app/personalization/sections/settings/setting-section.component.d.ts +0 -10
  305. package/lib/app/personalization/sections/terms/terms-section.component.d.ts +0 -5
  306. package/lib/constant/doohbot-constant.d.ts +0 -12
  307. package/lib/constant/html-entities.d.ts +0 -8
  308. package/lib/constant/utf8.d.ts +0 -9
  309. package/lib/core/app-const.d.ts +0 -11
  310. package/lib/core/auth/account-api.service.d.ts +0 -20
  311. package/lib/core/auth/auth.service.d.ts +0 -90
  312. package/lib/core/auth/models/auth-result.model.d.ts +0 -4
  313. package/lib/core/auth/models/federated-login-request.model.d.ts +0 -5
  314. package/lib/core/auth/models/login-request.model.d.ts +0 -6
  315. package/lib/core/auth/storage.service.d.ts +0 -21
  316. package/lib/core/directives/draggable/draggable-dialog.directive.d.ts +0 -23
  317. package/lib/core/directives/fullscreen/fullscreen.directive.d.ts +0 -14
  318. package/lib/core/directives/resizable/resizable-dialog.directive.d.ts +0 -30
  319. package/lib/core/environments/environment.d.ts +0 -7
  320. package/lib/core/environments/environment.prod.d.ts +0 -7
  321. package/lib/core/helpers/crypto-helper.service.d.ts +0 -12
  322. package/lib/core/http/http-stream.service.d.ts +0 -18
  323. package/lib/core/http/http.service.d.ts +0 -20
  324. package/lib/core/interceptors/auth.interceptor.d.ts +0 -18
  325. package/lib/core/interceptors/license.interceptor.d.ts +0 -11
  326. package/lib/core/models/api-config.model.d.ts +0 -58
  327. package/lib/core/models/api-request.model.d.ts +0 -77
  328. package/lib/core/models/api-response.model.d.ts +0 -6
  329. package/lib/core/models/doohbot-config.model.d.ts +0 -81
  330. package/lib/core/models/message.d.ts +0 -16
  331. package/lib/core/models/theme-config.model.d.ts +0 -28
  332. package/lib/core/services/core-config.service.d.ts +0 -23
  333. package/lib/core/services/license.service.d.ts +0 -33
  334. package/lib/core/services/markdown.service.d.ts +0 -8
  335. package/lib/core/services/theme.service.d.ts +0 -40
  336. package/lib/core/utils/logger.service.d.ts +0 -11
  337. package/lib/doohbot-input.d.ts +0 -19
  338. package/lib/doohbot.component.d.ts +0 -108
  339. package/lib/predefined_messages.d.ts +0 -2
  340. package/lib/shared/chips/chips.component.d.ts +0 -10
  341. package/lib/shared/dialog/dialog.component.d.ts +0 -19
  342. package/lib/shared/dialog/dialog.service.d.ts +0 -29
  343. package/lib/shared/dialog/dialog.utils.d.ts +0 -41
  344. package/lib/shared/dropdown-menu/dropdown-menu.component.d.ts +0 -11
  345. package/lib/shared/input-dialog/input-dialog.component.d.ts +0 -20
  346. package/lib/shared/menu-item/menu-item.component.d.ts +0 -9
  347. package/lib/shared/pipes/simple-markdown.pipe.d.ts +0 -10
  348. package/lib/shared/snackbar/snackbar.component.d.ts +0 -14
  349. package/lib/shared/snackbar/snackbar.service.d.ts +0 -19
  350. package/public-api.d.ts +0 -11
  351. /package/{src → projects/doohbot/src}/assets/bot.mp3 +0 -0
@@ -0,0 +1,35 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { MatIconModule } from '@angular/material/icon';
4
+
5
+ @Component({
6
+ selector: 'app-chat-button',
7
+ standalone: true,
8
+ imports: [CommonModule, MatIconModule],
9
+ templateUrl: './chat-button.component.html',
10
+ styleUrls: ['./chat-button.component.scss'],
11
+ })
12
+ export class ChatButtonComponent {
13
+ @Input() buttonStyle: 'fab' | 'sidebar' | 'sidebar-top' | 'sidebar-bottom' = 'fab';
14
+ @Input() isChatOpen: boolean = false;
15
+ @Input() unreadCount: number = 0;
16
+ @Input() appTitle: string = 'Chat';
17
+ @Input() appLogoUrl: string = '';
18
+ @Input() appTextLogoUrl: string = '';
19
+
20
+ @Output() toggle = new EventEmitter<void>();
21
+
22
+ get isSidebar(): boolean {
23
+ return this.buttonStyle.startsWith('sidebar');
24
+ }
25
+
26
+ get sidebarPosition(): 'top' | 'center' | 'bottom' {
27
+ if (!this.isSidebar) return 'center';
28
+ if (this.buttonStyle === 'sidebar') return 'center';
29
+ return this.buttonStyle.split('-')[1] as 'top' | 'center' | 'bottom';
30
+ }
31
+
32
+ onToggle() {
33
+ this.toggle.emit();
34
+ }
35
+ }
@@ -0,0 +1,3 @@
1
+ <div class="terms-conditions">
2
+ <!-- Terms and conditions relocated to Personalization Hub -->
3
+ </div>
@@ -0,0 +1,20 @@
1
+ .terms-conditions {
2
+ padding: 10px 15px;
3
+ text-align: center;
4
+ font-size: 0.8rem;
5
+ background-color: var(--background-color);
6
+ border-top: 1px solid var(--background-color);
7
+ border-bottom-left-radius: inherit;
8
+ border-bottom-right-radius: inherit;
9
+
10
+ a {
11
+ color: var(--secondary-text-color);
12
+ text-decoration: none;
13
+ transition: color 0.2s ease;
14
+
15
+ &:hover {
16
+ color: var(--primary-color);
17
+ text-decoration: underline;
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,12 @@
1
+ import { Component, ChangeDetectionStrategy } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+
4
+ @Component({
5
+ selector: 'app-chat-footer',
6
+ standalone: true,
7
+ imports: [CommonModule],
8
+ templateUrl: './chat-footer.component.html',
9
+ styleUrls: ['./chat-footer.component.scss'],
10
+ changeDetection: ChangeDetectionStrategy.OnPush,
11
+ })
12
+ export class ChatFooterComponent {}
@@ -0,0 +1,34 @@
1
+ <div class="chat-header">
2
+ <div class="chat-title">
3
+ <img class="chat-logo" style="width: 150px; height: 50px; margin-left: 0px" [src]="appHeaderLogoUrl"
4
+ alt="Text-Logo" />
5
+ </div>
6
+
7
+ <div class="chat-header-buttons">
8
+ <!-- History Button -->
9
+
10
+ <!-- add chat Button -->
11
+ @if (isAuthenticated) {
12
+ <button class="header-button" (click)="onStartNewConversation()" title="Start new conversation">
13
+ <mat-icon>add</mat-icon>
14
+ </button>
15
+ }
16
+
17
+ <!-- history Button -->
18
+ @if (isAuthenticated) {
19
+ <button class="header-button" (click)="onToggleHistorySidebar()" title="Chat History">
20
+ <mat-icon>history</mat-icon>
21
+ </button>
22
+ }
23
+
24
+ <!-- more Button -->
25
+ <button class="header-button" [matMenuTriggerFor]="settingsMenu">
26
+ <mat-icon>more_vert</mat-icon>
27
+ </button>
28
+
29
+ <!-- minimize Button -->
30
+ <button class="header-button" (click)="onToggleChat()">
31
+ <mat-icon>minimize</mat-icon>
32
+ </button>
33
+ </div>
34
+ </div>
@@ -0,0 +1,78 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ .chat-header {
4
+ display: flex;
5
+ justify-content: space-between;
6
+ align-items: center;
7
+ padding: 10px 20px;
8
+ background-color: var(--background-color);
9
+ color: var(--text-alt-color);
10
+ // cursor: move;
11
+ user-select: none;
12
+ }
13
+ s
14
+ // .chat-header:active {
15
+ // cursor: grabbing;
16
+ // }
17
+
18
+ .chat-title {
19
+ display: flex;
20
+ align-items: center;
21
+ gap: 6px;
22
+ font-family: var(--font-family);
23
+ }
24
+
25
+ .chat-logo {
26
+ width: 45px;
27
+ height: 45px;
28
+ object-fit: contain;
29
+ }
30
+
31
+ .chat-header h2 {
32
+ margin: 0;
33
+ font-size: 1.2rem;
34
+ color: var(--mat-sys-on-primary);
35
+ font-family: var(--font-family);
36
+ font-weight: bold;
37
+ }
38
+
39
+ .chat-header-buttons {
40
+ display: flex;
41
+ flex-wrap: nowrap;
42
+ gap: 1px;
43
+ }
44
+
45
+ /* Header buttons: fullscreen + close (directly in header) */
46
+ .header-button {
47
+ background: var(--background-color);
48
+ border: 1px solid var(--background-color);
49
+ border-radius: 50%;
50
+ width: 32px;
51
+ height: 32px;
52
+ padding: 0;
53
+ display: flex;
54
+ align-items: center;
55
+ justify-content: center;
56
+ cursor: pointer;
57
+ color: var(--text-color);
58
+ transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
59
+ outline: none;
60
+
61
+ mat-icon {
62
+ font-size: 18px;
63
+ width: 18px;
64
+ height: 18px;
65
+ }
66
+
67
+ &:hover {
68
+ // background-color: var(--primary-color);
69
+ // border-color: var(--primary-color);
70
+ // color: var(--white);
71
+ transform: translateY(-1px);
72
+ box-shadow: 0 4px 12px rgba(var(--black-rgb), 0.15);
73
+ }
74
+
75
+ &:active {
76
+ transform: translateY(0);
77
+ }
78
+ }
@@ -0,0 +1,52 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { MatIconModule } from '@angular/material/icon';
4
+ import { MatMenuModule } from '@angular/material/menu';
5
+ import { ThemeService } from '../../../../core/services/theme.service';
6
+ import { inject } from '@angular/core';
7
+ import { ChatService } from '../../chat.service';
8
+ import Logger from '../../../../core/utils/logger.service';
9
+ import { ChatUIStateService } from '../../chat-ui-state.service';
10
+ import { SnackbarUtils } from '../../../../shared/snackbar/snackbar.utils';
11
+
12
+ @Component({
13
+ selector: 'app-chat-header',
14
+ standalone: true,
15
+ imports: [CommonModule, MatIconModule, MatMenuModule],
16
+ templateUrl: './chat-header.component.html',
17
+ styleUrls: ['./chat-header.component.scss'],
18
+ })
19
+ export class ChatHeaderComponent {
20
+ @Input() appHeaderLogoUrl: string = '';
21
+ @Input() isAuthenticated: boolean = false;
22
+ @Input() isFullScreen: boolean = false;
23
+ @Input() settingsMenu: any;
24
+ @Input() isNewChatDisabled: boolean = false;
25
+
26
+ @Output() toggleChat = new EventEmitter<void>();
27
+ @Output() toggleFullScreen = new EventEmitter<void>();
28
+ @Output() toggleHistorySidebar = new EventEmitter<void>();
29
+ @Output() clearChat = new EventEmitter<void>();
30
+
31
+ public themeService = inject(ThemeService);
32
+ public chatService = inject(ChatService);
33
+ private uiState = inject(ChatUIStateService);
34
+
35
+ onToggleChat() {
36
+ this.toggleChat.emit();
37
+ }
38
+
39
+ onToggleHistorySidebar() {
40
+ this.toggleHistorySidebar.emit();
41
+ }
42
+
43
+ onToggleFullScreen() {
44
+ this.toggleFullScreen.emit();
45
+ }
46
+
47
+ onStartNewConversation() {
48
+ Logger.warn('Starting new conversation...');
49
+ this.chatService.startNewSession();
50
+ this.uiState.closeHistorySidebar();
51
+ }
52
+ }
@@ -0,0 +1,77 @@
1
+ <div class="history-sidebar" [class.open]="isOpen">
2
+ <div class="sidebar-header">
3
+ <div class="marquee-container" style="flex: 1; margin-right: 10px">
4
+ <h3 class="marquee-text">{{ userName }}'s Chat History</h3>
5
+ </div>
6
+ <button class="refresh-btn" (click)="onRefresh()" title="Refresh history">
7
+ <mat-icon>refresh</mat-icon>
8
+ </button>
9
+
10
+ <button class="close-btn" (click)="onClose()">
11
+ <mat-icon>close</mat-icon>
12
+ </button>
13
+ </div>
14
+
15
+ <div class="sidebar-content" (scroll)="onScroll($event)">
16
+ @if (isLoading) {
17
+ <div class="loader-container">
18
+ <div class="loader"></div>
19
+ <p>Loading history...</p>
20
+ </div>
21
+ }
22
+
23
+ @if (!isLoading && sessions.length === 0) {
24
+ <div class="empty-state">
25
+ <mat-icon>history</mat-icon>
26
+ <p>No chat history yet</p>
27
+ <span>Start a conversation to see it here</span>
28
+ </div>
29
+ }
30
+
31
+ @if (!isLoading) {
32
+ @for (group of chatHistory; track group.label) {
33
+ <div class="session-group">
34
+ <div class="group-label">{{ group.label }}</div>
35
+ <div class="session-list">
36
+ @for (session of group.sessions; track session.id) {
37
+ <div class="session-item" (click)="onSessionClick(session)">
38
+ <div class="session-content">
39
+ <div class="session-title">{{ session.title }}</div>
40
+ <div class="session-time">
41
+ {{ formatTime(session.timestamp) }} · {{ formatDate(session.timestamp) }}
42
+ </div>
43
+ </div>
44
+ <div class="session-actions">
45
+ <button class="edit-btn" [disabled]="processingSessionId === session.id"
46
+ (click)="onEditClick($event, session)" title="Edit title">
47
+ @if (processingSessionId !== session.id) {
48
+ <mat-icon>edit</mat-icon>
49
+ } @else {
50
+ <div class="loader-tiny"></div>
51
+ }
52
+ </button>
53
+ <button class="delete-btn" [disabled]="processingSessionId === session.id"
54
+ (click)="onDeleteClick($event, session.id)" title="Delete conversation">
55
+ @if (processingSessionId !== session.id) {
56
+ <mat-icon>delete</mat-icon>
57
+ } @else {
58
+ <div class="loader-tiny"></div>
59
+ }
60
+ </button>
61
+ </div>
62
+ </div>
63
+ }
64
+ </div>
65
+ </div>
66
+ }
67
+ }
68
+
69
+ <!-- Loading more indicator -->
70
+ @if (isLoadingMore) {
71
+ <div class="loading-more">
72
+ <div class="loader-small"></div>
73
+ <p>Loading more...</p>
74
+ </div>
75
+ }
76
+ </div>
77
+ </div>
@@ -0,0 +1,346 @@
1
+ :host {
2
+ display: block;
3
+ height: 100%;
4
+ width: 100%;
5
+ }
6
+
7
+ .history-sidebar {
8
+ top: 0;
9
+ right: 0;
10
+ display: none;
11
+ height: 100%;
12
+ width: 100%;
13
+ background: var(--background-color);
14
+ flex-direction: column;
15
+ }
16
+
17
+ .history-sidebar.open {
18
+ display: flex;
19
+ }
20
+
21
+ .sidebar-header {
22
+ display: flex;
23
+ justify-content: space-between;
24
+ align-items: center;
25
+ padding: 20px;
26
+ border-bottom: 1px solid var(--border-color);
27
+ }
28
+
29
+ .sidebar-header h3 {
30
+ margin: 0;
31
+ font-size: 16px;
32
+ font-weight: 600;
33
+ color: var(--text-color);
34
+ font-family: var(--font-family);
35
+ display: inline-block;
36
+ }
37
+
38
+ .sidebar-content {
39
+ flex: 1 1 auto;
40
+ /* take remaining space */
41
+ overflow-y: auto;
42
+ /* enable vertical scroll */
43
+ padding: 10px 0;
44
+ scroll-behavior: smooth;
45
+ }
46
+
47
+ .close-btn {
48
+ background: none;
49
+ border: none;
50
+ cursor: pointer;
51
+ padding: 4px;
52
+ display: flex;
53
+ align-items: center;
54
+ justify-content: center;
55
+ border-radius: 50%;
56
+ transition: background 0.2s;
57
+ }
58
+
59
+ .close-btn:hover {
60
+ background: var(--bot-message-color);
61
+ }
62
+
63
+ .close-btn mat-icon {
64
+ color: var(--text-color);
65
+ font-size: 20px;
66
+ width: 20px;
67
+ height: 20px;
68
+ }
69
+
70
+ .refresh-btn {
71
+ background: none;
72
+ border: none;
73
+ cursor: pointer;
74
+ padding: 4px;
75
+ display: flex;
76
+ align-items: center;
77
+ justify-content: center;
78
+ border-radius: 50%;
79
+ transition: background 0.2s;
80
+ margin-right: 8px;
81
+ }
82
+
83
+ .refresh-btn:hover {
84
+ background: var(--bot-message-color);
85
+ }
86
+
87
+ .refresh-btn mat-icon {
88
+ color: var(--text-color);
89
+ font-size: 20px;
90
+ width: 20px;
91
+ height: 20px;
92
+ }
93
+
94
+ .clear-all-btn {
95
+ background: none;
96
+ border: none;
97
+ cursor: pointer;
98
+ padding: 4px;
99
+ display: flex;
100
+ align-items: center;
101
+ justify-content: center;
102
+ border-radius: 50%;
103
+ transition: background 0.2s;
104
+ margin-right: 8px;
105
+ }
106
+
107
+ .clear-all-btn:hover {
108
+ background: var(--bot-message-color);
109
+ }
110
+
111
+ .clear-all-btn mat-icon {
112
+ color: var(--text-color);
113
+ font-size: 20px;
114
+ width: 20px;
115
+ height: 20px;
116
+ }
117
+
118
+ .empty-state {
119
+ display: flex;
120
+ flex-direction: column;
121
+ align-items: center;
122
+ justify-content: center;
123
+ padding: 60px 20px;
124
+ text-align: center;
125
+ }
126
+
127
+ .empty-state mat-icon {
128
+ font-size: 64px;
129
+ width: 64px;
130
+ height: 64px;
131
+ color: var(--secondary-text-color);
132
+ margin-bottom: 16px;
133
+ }
134
+
135
+ .empty-state p {
136
+ margin: 0 0 8px 0;
137
+ font-size: 16px;
138
+ font-weight: 500;
139
+ color: var(--text-color);
140
+ font-family: var(--font-family);
141
+ }
142
+
143
+ .empty-state span {
144
+ font-size: 14px;
145
+ color: var(--secondary-text-color);
146
+ font-family: var(--font-family);
147
+ }
148
+
149
+ .session-group {
150
+ margin-bottom: 24px;
151
+ }
152
+
153
+ .group-label {
154
+ padding: 8px 20px;
155
+ font-size: 12px;
156
+ font-weight: 700;
157
+ text-transform: uppercase;
158
+ letter-spacing: 0.5px;
159
+ color: var(--secondary-text-color);
160
+ font-family: var(--font-family);
161
+ }
162
+
163
+ .session-list {
164
+ display: flex;
165
+ flex-direction: column;
166
+ }
167
+
168
+ .session-item {
169
+ display: flex;
170
+ align-items: center;
171
+ justify-content: space-between;
172
+ padding: 12px 20px;
173
+ cursor: pointer;
174
+ transition: background 0.2s;
175
+ gap: 8px;
176
+ }
177
+
178
+ .session-item:hover {
179
+ background: var(--bot-message-color);
180
+ }
181
+
182
+ .session-content {
183
+ flex: 1;
184
+ min-width: 0;
185
+ }
186
+
187
+ .session-title {
188
+ font-size: 14px;
189
+ font-weight: 500;
190
+ color: var(--text-color);
191
+ font-family: var(--font-family);
192
+ overflow: hidden;
193
+ text-overflow: ellipsis;
194
+ white-space: nowrap;
195
+ margin-bottom: 4px;
196
+ }
197
+
198
+ .session-time {
199
+ font-size: 12px;
200
+ color: var(--secondary-text-color);
201
+ font-family: var(--font-family);
202
+ }
203
+
204
+ .session-actions {
205
+ display: flex;
206
+ gap: 4px;
207
+ opacity: 0;
208
+ transition: opacity 0.2s;
209
+ }
210
+
211
+ .session-item:hover .session-actions {
212
+ opacity: 1;
213
+ }
214
+
215
+ .edit-btn,
216
+ .delete-btn {
217
+ background: none;
218
+ border: none;
219
+ cursor: pointer;
220
+ padding: 4px;
221
+ display: flex;
222
+ align-items: center;
223
+ justify-content: center;
224
+ border-radius: 50%;
225
+ transition: all 0.2s;
226
+ }
227
+
228
+ .edit-btn:hover {
229
+ background: var(--bot-message-color);
230
+ }
231
+
232
+ .delete-btn:hover {
233
+ background: var(--light-red);
234
+ }
235
+
236
+ .edit-btn mat-icon,
237
+ .delete-btn mat-icon {
238
+ color: var(--secondary-text-color);
239
+ font-size: 18px;
240
+ width: 18px;
241
+ height: 18px;
242
+ }
243
+
244
+ .edit-btn:hover mat-icon {
245
+ color: var(--primary-color);
246
+ }
247
+
248
+ .delete-btn:hover mat-icon {
249
+ color: var(--red);
250
+ }
251
+
252
+ /* Scrollbar */
253
+ /* Webkit browsers (Chrome, Edge, Safari) */
254
+
255
+ .sidebar-content::-webkit-scrollbar {
256
+ width: 6px;
257
+ }
258
+
259
+ .sidebar-content::-webkit-scrollbar-track {
260
+ background: transparent;
261
+ }
262
+
263
+ .sidebar-content::-webkit-scrollbar-thumb {
264
+ background: rgba(var(--black-rgb), 0.1);
265
+ border-radius: 10px;
266
+ }
267
+
268
+ .sidebar-content::-webkit-scrollbar-thumb:hover {
269
+ background: rgba(var(--black-rgb), 0.1);
270
+ border-radius: 10px;
271
+ }
272
+
273
+ /* Firefox */
274
+ // .sidebar-content {
275
+ // scrollbar-width: thin;
276
+ // scrollbar-color: var(--primary-color) var(--background-color);
277
+ // }
278
+
279
+ .loader-container {
280
+ display: flex;
281
+ flex-direction: column;
282
+ align-items: center;
283
+ justify-content: center;
284
+ padding: 40px 20px;
285
+ color: var(--secondary-text-color);
286
+
287
+ p {
288
+ margin-top: 15px;
289
+ font-size: 14px;
290
+ font-weight: 500;
291
+ }
292
+ }
293
+
294
+ .loader {
295
+ width: 32px;
296
+ height: 32px;
297
+ border: 3px solid rgba(var(--border-color-rgb), 0.1);
298
+ border-radius: 50%;
299
+ border-top-color: var(--primary-color);
300
+ animation: spin 1s ease-in-out infinite;
301
+ }
302
+
303
+ @keyframes spin {
304
+ to {
305
+ transform: rotate(360deg);
306
+ }
307
+ }
308
+
309
+ .loading-more {
310
+ display: flex;
311
+ flex-direction: column;
312
+ align-items: center;
313
+ justify-content: center;
314
+ padding: 20px;
315
+ color: var(--secondary-text-color);
316
+
317
+ p {
318
+ margin-top: 10px;
319
+ font-size: 13px;
320
+ font-weight: 500;
321
+ }
322
+ }
323
+
324
+ .loader-small {
325
+ width: 24px;
326
+ height: 24px;
327
+ border: 3px solid rgba(var(--border-color-rgb), 0.1);
328
+ border-radius: 50%;
329
+ border-top-color: var(--primary-color);
330
+ animation: spin 1s ease-in-out infinite;
331
+ }
332
+
333
+ .loader-tiny {
334
+ width: 14px;
335
+ height: 14px;
336
+ border: 2px solid rgba(var(--border-color-rgb), 0.1);
337
+ border-radius: 50%;
338
+ border-top-color: var(--primary-color);
339
+ animation: spin 1s ease-in-out infinite;
340
+ }
341
+
342
+ .edit-btn:disabled,
343
+ .delete-btn:disabled {
344
+ cursor: not-allowed;
345
+ opacity: 0.6;
346
+ }