@aakash58/chatbot 1.1.20 → 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
@@ -1,58 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * Configuration for Doohbot API integration
4
- */
5
- export interface DoohbotApiConfig {
6
- /**
7
- * Backend API endpoint URL
8
- * Example: 'https://api.example.com/chat'
9
- */
10
- apiUrl: string;
11
- /**
12
- * Optional API key for authentication
13
- */
14
- apiKey?: string;
15
- /**
16
- * Request timeout in milliseconds
17
- * @default 30000 (30 seconds)
18
- */
19
- timeout?: number;
20
- /**
21
- * Enable API mode (true) or use local intent matching (false)
22
- * @default false
23
- */
24
- enableApi?: boolean;
25
- /**
26
- * Include message history in API requests
27
- * @default false
28
- */
29
- includeHistory?: boolean;
30
- /**
31
- * Maximum number of history messages to include in requests
32
- * @default 10
33
- */
34
- maxHistoryMessages?: number;
35
- /**
36
- * Custom headers to include in API requests
37
- */
38
- customHeaders?: Record<string, string>;
39
- /**
40
- * Enable retry on failure
41
- * @default true
42
- */
43
- enableRetry?: boolean;
44
- /**
45
- * Number of retry attempts
46
- * @default 2
47
- */
48
- retryAttempts?: number;
49
- /**
50
- * Delay between retries in milliseconds
51
- * @default 1000
52
- */
53
- retryDelay?: number;
54
- }
55
- /**
56
- * Injection token for providing Doohbot API configuration
57
- */
58
- export declare const DOOHBOT_API_CONFIG: InjectionToken<DoohbotApiConfig>;
@@ -1,77 +0,0 @@
1
- import { PromptMode } from '../types/prompt-mode.type';
2
- import { Message } from './message';
3
- /**
4
- * Request payload for chat API
5
- */
6
- export interface ChatApiRequest {
7
- /**
8
- * User's message text
9
- */
10
- message: string;
11
- /**
12
- * Prompt mode
13
- */
14
- prompt_mode?: PromptMode;
15
- /**
16
- * Optional message history for context
17
- */
18
- history?: Message[];
19
- /**
20
- * Optional metadata
21
- */
22
- metadata?: Record<string, any>;
23
- /**
24
- * Timestamp of the request
25
- */
26
- timestamp?: string;
27
- }
28
- /**
29
- * Response from chat API
30
- */
31
- export interface ChatApiResponse {
32
- /**
33
- * Bot's reply message
34
- */
35
- reply: string;
36
- /**
37
- * Optional confidence score (0-1)
38
- */
39
- confidence?: number;
40
- /**
41
- * Whether to show suggestion chips
42
- */
43
- showSuggestions?: boolean;
44
- /**
45
- * Optional suggested responses
46
- */
47
- suggestions?: string[];
48
- /**
49
- * Optional metadata from the API
50
- */
51
- metadata?: Record<string, any>;
52
- /**
53
- * Optional message ID from the backend
54
- */
55
- messageId?: string;
56
- }
57
- /**
58
- * Error response from chat API
59
- */
60
- export interface ChatApiError {
61
- /**
62
- * Error message
63
- */
64
- message: string;
65
- /**
66
- * Error code
67
- */
68
- code?: string;
69
- /**
70
- * HTTP status code
71
- */
72
- statusCode?: number;
73
- /**
74
- * Additional error details
75
- */
76
- details?: any;
77
- }
@@ -1,6 +0,0 @@
1
- export declare class ApiResponse<T> {
2
- success: boolean;
3
- message: string;
4
- data?: T;
5
- constructor(success: boolean, message: string, data?: T);
6
- }
@@ -1,81 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { AuthMode } from '../types/auth-mode.type';
3
- import { TenantResolutionStrategy } from '../types/tenant-resolution-strategy.type';
4
- import { PromptMode } from '../types/prompt-mode.type';
5
- /**
6
- * Advanced configuration for DoohBot package
7
- * Supports both simple and complex use cases
8
- */
9
- export interface DoohbotAdvancedConfig {
10
- /**
11
- * Authentication mode
12
- * - 'manual': You provide platformTenant, subTenant, agent manually
13
- * - 'auto': Package reads from your auth service via resolver
14
- * @default 'manual'
15
- */
16
- authMode?: AuthMode;
17
- /**
18
- * Tenant resolution strategy
19
- * - 'static': Use fixed values provided via inputs
20
- * - 'dynamic': Automatically update when auth state changes
21
- * - 'callback': Use custom resolver function
22
- * @default 'static'
23
- */
24
- tenantResolution?: TenantResolutionStrategy;
25
- /**
26
- * Auto-configure from localStorage key
27
- * If provided, package will read auth data from localStorage
28
- * Example: 'auth_user' or 'saas_session'
29
- */
30
- autoConfigFromStorage?: string;
31
- /**
32
- * Enable multi-tenant mode
33
- * Allows switching between different tenant contexts
34
- * @default false
35
- */
36
- enableMultiTenant?: boolean;
37
- /**
38
- * Persist chat history per tenant
39
- * @default true
40
- */
41
- persistChatPerTenant?: boolean;
42
- /**
43
- * Custom authentication header name
44
- * @default 'Authorization'
45
- */
46
- authHeaderName?: string;
47
- /**
48
- * Custom authentication header format
49
- * Use {token} as placeholder
50
- * @default 'Bearer {token}'
51
- */
52
- authHeaderFormat?: string;
53
- /**
54
- * Enable role-based features
55
- * Shows/hides features based on user permissions
56
- * @default false
57
- */
58
- enableRoleBasedFeatures?: boolean;
59
- /**
60
- * User permissions (for role-based features)
61
- */
62
- userPermissions?: string[];
63
- /**
64
- * Callback when authentication fails
65
- */
66
- onAuthFailure?: (error: any) => void;
67
- /**
68
- * Enable debug mode (logs configuration and requests)
69
- * @default false
70
- */
71
- debugMode?: boolean;
72
- /**
73
- * Prompt mode for chat responses
74
- * @default 'markdown'
75
- */
76
- promptMode?: PromptMode;
77
- }
78
- /**
79
- * Injection token for advanced configuration
80
- */
81
- export declare const DOOHBOT_ADVANCED_CONFIG: InjectionToken<DoohbotAdvancedConfig>;
@@ -1,16 +0,0 @@
1
- import { MessageRole } from '../types/message-role.type';
2
- export interface Message {
3
- id: string;
4
- sender: MessageRole;
5
- senderName?: string;
6
- text: string;
7
- chunks?: string[];
8
- timestamp?: Date;
9
- showSuggestions?: boolean;
10
- platformTenant?: string;
11
- subTenant?: string;
12
- agent?: string;
13
- completed: boolean | true;
14
- isHistory: boolean | true;
15
- copied?: boolean;
16
- }
@@ -1,28 +0,0 @@
1
- export interface DoohbotThemeConfig {
2
- fontFamily?: string;
3
- primaryColor?: string;
4
- secondaryColor?: string;
5
- backgroundColor?: string;
6
- chatInputColor?: string;
7
- textAltColor?: string;
8
- textColor?: string;
9
- secondaryTextColor?: string;
10
- hintTextColor?: string;
11
- buttonColor?: string;
12
- userMessageColor?: string;
13
- botMessageColor?: string;
14
- userTextColor?: string;
15
- botTextColor?: string;
16
- borderColor?: string;
17
- borderShadowColor?: string;
18
- borderTopColor?: string;
19
- typingIndicatorColor?: string;
20
- white?: string;
21
- black?: string;
22
- grey?: string;
23
- red?: string;
24
- yellow?: string;
25
- orange?: string;
26
- green?: string;
27
- blue?: string;
28
- }
@@ -1,23 +0,0 @@
1
- import { DoohbotInput } from '../../doohbot-input';
2
- import * as i0 from "@angular/core";
3
- export declare class CoreConfigService {
4
- private configSignal;
5
- config$: import("@angular/core").Signal<DoohbotInput>;
6
- /**
7
- * Updates the global library configuration
8
- */
9
- updateConfig(config: DoohbotInput): void;
10
- /**
11
- * Dynamic getters for common config properties
12
- */
13
- get apiUrl(): string;
14
- get storageKey(): string;
15
- get secretKey(): string;
16
- get companyCode(): string;
17
- get tenancyName(): string;
18
- get licenseKey(): string;
19
- get licenseFilePath(): string;
20
- get rememberMe(): boolean;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<CoreConfigService, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<CoreConfigService>;
23
- }
@@ -1,33 +0,0 @@
1
- import { LicensingContext } from '../models/license.model';
2
- import * as i0 from "@angular/core";
3
- export declare class LicenseService {
4
- private http;
5
- private coreConfig;
6
- private registry;
7
- /**
8
- * Load the license configuration from a JSON file.
9
- * Supports both Hierarchical (entitlements) and Flat-map (package:key) formats.
10
- * @param filePath Path to the license JSON file
11
- */
12
- loadLicenseFile(filePath?: string): Promise<void>;
13
- private processHierarchicalLicense;
14
- private processFlatMapLicense;
15
- /**
16
- * Resolve the correct license key based on context and requested package
17
- * @param context The current licensing context (tenant, user, roles)
18
- * @param packageId The ID of the package requesting a license
19
- * @returns The resolved license key, or null if unauthorized
20
- */
21
- resolveLicenseKey(context: LicensingContext, packageId: string): string | null;
22
- private resolveFromRegistry;
23
- /**
24
- * Resolves the license key for the current tenant.
25
- */
26
- resolveTenantLicenseKey(tenancyName?: string): string | null;
27
- /**
28
- * Check if a registry is currently loaded
29
- */
30
- isRegistryLoaded(): boolean;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<LicenseService, never>;
32
- static ɵprov: i0.ɵɵInjectableDeclaration<LicenseService>;
33
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class MarkdownService {
3
- constructor();
4
- convert(markdown: string): string;
5
- private escapeHtml;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownService, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<MarkdownService>;
8
- }
@@ -1,40 +0,0 @@
1
- import { OnDestroy, RendererFactory2 } from '@angular/core';
2
- import { OverlayContainer } from '@angular/cdk/overlay';
3
- import { DoohbotThemeConfig } from '../models/theme-config.model';
4
- import { PersonalizationService } from '../../app/personalization/personalization.service';
5
- import * as i0 from "@angular/core";
6
- export type ThemeMode = 'light' | 'dark' | 'auto';
7
- export declare class ThemeService implements OnDestroy {
8
- private overlay;
9
- private personalization;
10
- private renderer;
11
- private _theme;
12
- theme: import("@angular/core").Signal<ThemeMode>;
13
- private _activeTheme;
14
- activeTheme: import("@angular/core").Signal<"light-theme" | "dark-theme">;
15
- private observer;
16
- constructor(rendererFactory: RendererFactory2, overlay: OverlayContainer, personalization: PersonalizationService);
17
- private _currentConfig;
18
- private rootElement;
19
- setThemeConfig(config: DoohbotThemeConfig, rootElement: HTMLElement): void;
20
- applyPrimaryColorToGlobal(colorInput: string): void;
21
- /**
22
- * Simple luminance-based contrast calculation
23
- * Returns #ffffff for dark colors and #000000 for light colors
24
- */
25
- private getContrastColor;
26
- setTheme(mode: ThemeMode): void;
27
- private updateActiveTheme;
28
- private handleAutoTheme;
29
- private detectAndApplyParentTheme;
30
- private isParentDark;
31
- private applyThemeToGlobal;
32
- private cleanupObservers;
33
- ngOnDestroy(): void;
34
- /**
35
- * @deprecated Manual CSS variable application is now handled via theme.css tokens
36
- */
37
- applyCssVariables(element: HTMLElement, config: DoohbotThemeConfig | undefined): void;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
39
- static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
40
- }
@@ -1,11 +0,0 @@
1
- declare class Logger {
2
- private static prefix;
3
- private static styles;
4
- private static canLog;
5
- static log(message: string, ...args: any[]): void;
6
- static info(message: string, ...args: any[]): void;
7
- static warn(message: string, ...args: any[]): void;
8
- static error(message: string, ...args: any[]): void;
9
- static debug(message: string, ...args: any[]): void;
10
- }
11
- export default Logger;
@@ -1,19 +0,0 @@
1
- export declare class DoohbotInput {
2
- username: string;
3
- password: string;
4
- rememberMe?: boolean;
5
- authToken?: string;
6
- license?: string;
7
- licenseCode?: string;
8
- licenseKey?: string;
9
- licenseFilePath?: string;
10
- apiBaseUrl?: string;
11
- apiSegment?: string;
12
- tenancyName?: string;
13
- storageKey?: string;
14
- secretKey?: string;
15
- companyCode?: string;
16
- buttonStyle?: 'fab' | 'sidebar' | 'sidebar-top' | 'sidebar-bottom';
17
- primaryColor?: string;
18
- accentColor?: string;
19
- }
@@ -1,108 +0,0 @@
1
- import { ElementRef, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
2
- import { LoginRequest } from './core/auth/models/login-request.model';
3
- import { DoohbotInput } from './doohbot-input';
4
- import { DoohbotApiConfig } from './core/models/api-config.model';
5
- import { DoohbotThemeConfig } from './core/models/theme-config.model';
6
- import { FullscreenDirective } from './core/directives/fullscreen/fullscreen.directive';
7
- import { ChatSession } from './app/chat/model/chat-session.model';
8
- import { AuthStatus } from './core/types/auth-status.type';
9
- import * as i0 from "@angular/core";
10
- export declare class Doohbot extends DoohbotInput implements OnInit, OnDestroy {
11
- private elementRef;
12
- private renderer;
13
- config: DoohbotInput;
14
- buttonStyle?: 'fab' | 'sidebar' | 'sidebar-top' | 'sidebar-bottom';
15
- enableDrag: boolean;
16
- enableResize: boolean;
17
- apiConfig?: DoohbotApiConfig;
18
- themeConfig: DoohbotThemeConfig | undefined;
19
- private chatHistory;
20
- private uiState;
21
- private themeService;
22
- private authService;
23
- private chatService;
24
- private dialogService;
25
- private snackbarService;
26
- private personalization;
27
- private licenseService;
28
- isChatOpen: import("@angular/core").WritableSignal<boolean>;
29
- isHistorySidebarOpen: import("@angular/core").WritableSignal<boolean>;
30
- isFullScreen: import("@angular/core").WritableSignal<boolean>;
31
- unreadCount: import("@angular/core").Signal<number>;
32
- messages: import("@angular/core").WritableSignal<import("./core/models/message").Message[]>;
33
- isBotTyping: import("@angular/core").WritableSignal<boolean>;
34
- isStreaming: import("@angular/core").WritableSignal<boolean>;
35
- messageError: import("@angular/core").Signal<string | null>;
36
- showSuggestionChips: import("@angular/core").Signal<boolean>;
37
- chatSessions: import("@angular/core").WritableSignal<ChatSession[]>;
38
- hasMoreHistory: import("@angular/core").WritableSignal<boolean>;
39
- isLoadingMore: import("@angular/core").WritableSignal<boolean>;
40
- isLoadingSessions: import("@angular/core").WritableSignal<boolean>;
41
- processingSessionId: import("@angular/core").WritableSignal<string | null>;
42
- isLoggingIn: import("@angular/core").WritableSignal<boolean>;
43
- authError: import("@angular/core").WritableSignal<string | null>;
44
- authSuccess: import("@angular/core").WritableSignal<string | null>;
45
- activeButtonStyle: import("@angular/core").Signal<"fab" | "sidebar" | "sidebar-top" | "sidebar-bottom">;
46
- userName: string;
47
- predefinedMessages: string[];
48
- suggestedMessages: string[];
49
- maxMessageLength: number;
50
- readonly DoohbotConst: {
51
- appTitle: string;
52
- appSubtitle: string;
53
- welcomeDescription: string;
54
- hintText: string;
55
- errorMessage: string;
56
- appLogo: string;
57
- appTextLogo: string;
58
- appHeaderLogo: string;
59
- userAvatar: string;
60
- botAvatar: string;
61
- };
62
- private contextCleanup?;
63
- authStatus: import("@angular/core").WritableSignal<AuthStatus>;
64
- isAuthenticated: import("@angular/core").WritableSignal<boolean>;
65
- chatWindowRef: ElementRef;
66
- fullscreenDirective: FullscreenDirective;
67
- constructor(elementRef: ElementRef, renderer: Renderer2);
68
- ngOnInit(): Promise<void>;
69
- private canAttemptFederatedLogin;
70
- private initializeUI;
71
- ngOnChanges(changes: SimpleChanges): void;
72
- onNormalLogin(credentials: LoginRequest): void;
73
- onFederatedLogin(token?: string): Promise<void>;
74
- performLogout(): void;
75
- toggleChat(): void;
76
- sendMessage(text: string): Promise<void>;
77
- onStopRequest(): void;
78
- clearChat(): void;
79
- clearMessageError(): void;
80
- toggleHistorySidebar(): void;
81
- loadChatSession(session: ChatSession): void;
82
- deleteSession(sessionId: string): void;
83
- deleteAllSessions(): void;
84
- renameSession(event: {
85
- sessionId: string;
86
- newTitle: string;
87
- }): void;
88
- private loadUserSessions;
89
- /**
90
- * Load more sessions for infinite scroll
91
- */
92
- loadMoreHistory(): void;
93
- /**
94
- * Manually refresh history
95
- */
96
- refreshHistory(): void;
97
- toggleFullScreen(): void;
98
- trackByMessageId(index: number, item: any): string;
99
- /**
100
- * Resolve and update the username from all available sources
101
- */
102
- private updateUserName;
103
- userAvatarUrl(): string;
104
- ngOnDestroy(): void;
105
- static ɵfac: i0.ɵɵFactoryDeclaration<Doohbot, never>;
106
- static ɵcmp: i0.ɵɵComponentDeclaration<Doohbot, "app-doohbot", never, { "config": { "alias": "config"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "apiConfig": { "alias": "apiConfig"; "required": false; }; "themeConfig": { "alias": "themeConfig"; "required": false; }; }, {}, never, never, true, never>;
107
- }
108
- export declare function initializeApp(): Promise<any>;
@@ -1,2 +0,0 @@
1
- export declare const PredefinedMessages: string[];
2
- export declare const SuggestedMessages: string[];
@@ -1,10 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class Chips {
4
- messages: string[];
5
- disabled: boolean;
6
- chipClick: EventEmitter<string>;
7
- onChipClick(msg: string): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<Chips, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<Chips, "app-chips", never, { "messages": { "alias": "messages"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "chipClick": "chipClick"; }, never, never, true, never>;
10
- }
@@ -1,19 +0,0 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
- import * as i0 from "@angular/core";
3
- export interface DialogData {
4
- title: string;
5
- message: string;
6
- confirmText?: string;
7
- cancelText?: string;
8
- confirmButtonColor?: 'primary' | 'accent' | 'warn';
9
- icon?: string;
10
- }
11
- export declare class DialogComponent {
12
- dialogRef: MatDialogRef<DialogComponent>;
13
- data: DialogData;
14
- constructor(dialogRef: MatDialogRef<DialogComponent>, data: DialogData);
15
- onCancel(): void;
16
- onConfirm(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "app-dialog", never, {}, {}, never, never, true, never>;
19
- }
@@ -1,29 +0,0 @@
1
- import { MatDialog } from '@angular/material/dialog';
2
- import { Observable } from 'rxjs';
3
- import { DialogData } from './dialog.component';
4
- import { InputDialogData } from '../input-dialog/input-dialog.component';
5
- import * as i0 from "@angular/core";
6
- export declare class DialogService {
7
- private dialog;
8
- constructor(dialog: MatDialog);
9
- /**
10
- * Opens a confirmation dialog with customizable options
11
- * @param data Configuration for the dialog
12
- * @returns Observable that emits true if confirmed, false if cancelled
13
- */
14
- open(data: DialogData): Observable<boolean>;
15
- /**
16
- * Convenience method for delete confirmation dialogs
17
- * @param itemName Name of the item being deleted
18
- * @returns Observable that emits true if confirmed, false if cancelled
19
- */
20
- confirmDelete(itemName?: string): Observable<boolean>;
21
- /**
22
- * Opens a dialog with an input field
23
- * @param data Configuration for the input dialog
24
- * @returns Observable that emits the input value if confirmed, null if cancelled
25
- */
26
- openInput(data: InputDialogData): Observable<string | null>;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
28
- static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
29
- }
@@ -1,41 +0,0 @@
1
- import { DialogService } from './dialog.service';
2
- import { Observable } from 'rxjs';
3
- /**
4
- * Utility class for common dialog operations
5
- * Provides reusable dialog configurations for consistency across the application
6
- */
7
- export declare class DialogUtils {
8
- /**
9
- * Show a logout confirmation dialog
10
- * @param dialogService The DialogService instance
11
- * @returns Observable that emits true if confirmed, false if cancelled
12
- */
13
- static confirmLogout(dialogService: DialogService): Observable<boolean>;
14
- /**
15
- * Show a reset confirmation dialog
16
- * @param dialogService The DialogService instance
17
- * @param itemName Optional name of what is being reset (default: 'preferences')
18
- * @returns Observable that emits true if confirmed, false if cancelled
19
- */
20
- static confirmReset(dialogService: DialogService, itemName?: string): Observable<boolean>;
21
- /**
22
- * Show a delete confirmation dialog
23
- * @param dialogService The DialogService instance
24
- * @param itemName Name of the item being deleted
25
- * @returns Observable that emits true if confirmed, false if cancelled
26
- */
27
- static confirmDelete(dialogService: DialogService, itemName?: string): Observable<boolean>;
28
- /**
29
- * Show a clear all confirmation dialog
30
- * @param dialogService The DialogService instance
31
- * @param itemName Name of what is being cleared (e.g., 'chat history', 'all sessions')
32
- * @returns Observable that emits true if confirmed, false if cancelled
33
- */
34
- static confirmClearAll(dialogService: DialogService, itemName?: string): Observable<boolean>;
35
- /**
36
- * Show a discard changes confirmation dialog
37
- * @param dialogService The DialogService instance
38
- * @returns Observable that emits true if confirmed, false if cancelled
39
- */
40
- static confirmDiscardChanges(dialogService: DialogService): Observable<boolean>;
41
- }
@@ -1,11 +0,0 @@
1
- import { AfterContentInit, ElementRef, QueryList } from '@angular/core';
2
- import { MenuItem } from '../menu-item/menu-item.component';
3
- import * as i0 from "@angular/core";
4
- export declare class DropdownMenu implements AfterContentInit {
5
- detailsRef: ElementRef<HTMLDetailsElement>;
6
- menuItems: QueryList<MenuItem>;
7
- ngAfterContentInit(): void;
8
- close(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenu, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenu, "app-dropdown-menu", never, {}, {}, ["menuItems"], ["[trigger]", "*"], true, never>;
11
- }
@@ -1,20 +0,0 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
- import * as i0 from "@angular/core";
3
- export interface InputDialogData {
4
- title: string;
5
- message: string;
6
- initialValue: string;
7
- placeholder?: string;
8
- confirmText?: string;
9
- cancelText?: string;
10
- }
11
- export declare class InputDialogComponent {
12
- dialogRef: MatDialogRef<InputDialogComponent>;
13
- data: InputDialogData;
14
- value: string;
15
- constructor(dialogRef: MatDialogRef<InputDialogComponent>, data: InputDialogData);
16
- onCancel(): void;
17
- onConfirm(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<InputDialogComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<InputDialogComponent, "app-input-dialog", never, {}, {}, never, never, true, never>;
20
- }
@@ -1,9 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class MenuItem {
4
- href: string;
5
- selected: EventEmitter<void>;
6
- onClick(event: Event): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<MenuItem, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuItem, "app-menu-item", never, { "href": { "alias": "href"; "required": false; }; }, { "selected": "selected"; }, never, ["*"], true, never>;
9
- }