@aakash58/chatbot 1.1.21 → 1.1.24

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/README.md +22 -298
  2. package/esm2022/aakash58-chatbot.mjs +5 -0
  3. package/esm2022/lib/app/chat/chat-ui-state.service.mjs +170 -0
  4. package/esm2022/lib/app/chat/chat.service.mjs +445 -0
  5. package/esm2022/lib/app/chat/components/chat-button/chat-button.component.mjs +50 -0
  6. package/esm2022/lib/app/chat/components/chat-footer/chat-footer.component.mjs +12 -0
  7. package/esm2022/lib/app/chat/components/chat-header/chat-header.component.mjs +66 -0
  8. package/esm2022/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.mjs +186 -0
  9. package/esm2022/lib/app/chat/components/chat-window/chat-window.component.mjs +312 -0
  10. package/esm2022/lib/app/chat/components/message-input/message-input.component.mjs +36 -0
  11. package/esm2022/lib/app/chat/components/message-list/message-list.component.mjs +115 -0
  12. package/esm2022/lib/app/chat/model/chat-history.model.mjs +2 -0
  13. package/esm2022/lib/app/chat/model/chat-request.model.mjs +2 -0
  14. package/esm2022/lib/app/chat/model/chat-response.model.mjs +2 -0
  15. package/esm2022/lib/app/chat/model/chat-session.model.mjs +2 -0
  16. package/esm2022/lib/app/chat/model/chat-stream-message.model.mjs +2 -0
  17. package/esm2022/lib/app/chat/model/chat-stream-response.model.mjs +2 -0
  18. package/esm2022/lib/app/chat/services/chat-api.service.mjs +61 -0
  19. package/esm2022/lib/app/chat/services/chat-audio.service.mjs +50 -0
  20. package/esm2022/lib/app/chat/services/chat-history.service.mjs +252 -0
  21. package/esm2022/lib/app/login/login-form.component.mjs +46 -0
  22. package/esm2022/lib/app/personalization/personalization-dialog.component.mjs +194 -0
  23. package/esm2022/lib/app/personalization/personalization.service.mjs +149 -0
  24. package/esm2022/lib/app/personalization/sections/account/account-section.component.mjs +122 -0
  25. package/esm2022/lib/app/personalization/sections/preferences/color-picker-dialog.component.mjs +86 -0
  26. package/esm2022/lib/app/personalization/sections/preferences/preferences-section.component.mjs +115 -0
  27. package/esm2022/lib/app/personalization/sections/profile/profile-section.component.mjs +29 -0
  28. package/esm2022/lib/app/personalization/sections/settings/setting-section.component.mjs +30 -0
  29. package/esm2022/lib/app/personalization/sections/terms/terms-section.component.mjs +12 -0
  30. package/esm2022/lib/constant/doohbot-constant.mjs +28 -0
  31. package/esm2022/lib/constant/html-entities.mjs +9 -0
  32. package/esm2022/lib/constant/utf8.mjs +10 -0
  33. package/esm2022/lib/core/app-const.mjs +61 -0
  34. package/esm2022/lib/core/auth/account-api.service.mjs +40 -0
  35. package/esm2022/lib/core/auth/auth.service.mjs +391 -0
  36. package/esm2022/lib/core/auth/models/auth-result.model.mjs +3 -0
  37. package/esm2022/lib/core/auth/models/federated-login-request.model.mjs +6 -0
  38. package/esm2022/lib/core/auth/models/login-request.model.mjs +6 -0
  39. package/esm2022/lib/core/auth/storage.service.mjs +110 -0
  40. package/esm2022/lib/core/directives/draggable/draggable-dialog.directive.mjs +112 -0
  41. package/esm2022/lib/core/directives/fullscreen/fullscreen.directive.mjs +55 -0
  42. package/esm2022/lib/core/directives/resizable/resizable-dialog.directive.mjs +179 -0
  43. package/esm2022/lib/core/environments/environment.mjs +15 -0
  44. package/esm2022/lib/core/environments/environment.prod.mjs +15 -0
  45. package/esm2022/lib/core/helpers/crypto-helper.service.mjs +52 -0
  46. package/esm2022/lib/core/http/http-stream.service.mjs +97 -0
  47. package/esm2022/lib/core/http/http.service.mjs +103 -0
  48. package/esm2022/lib/core/interceptors/auth.interceptor.mjs +96 -0
  49. package/esm2022/lib/core/interceptors/license.interceptor.mjs +44 -0
  50. package/esm2022/lib/core/models/api-config.model.mjs +18 -0
  51. package/esm2022/lib/core/models/api-request.model.mjs +2 -0
  52. package/esm2022/lib/core/models/api-response.model.mjs +8 -0
  53. package/esm2022/lib/core/models/doohbot-config.model.mjs +18 -0
  54. package/esm2022/lib/core/models/license.model.mjs +2 -0
  55. package/esm2022/lib/core/models/message.mjs +2 -0
  56. package/esm2022/lib/core/models/theme-config.model.mjs +2 -0
  57. package/esm2022/lib/core/services/core-config.service.mjs +52 -0
  58. package/esm2022/lib/core/services/license.service.mjs +145 -0
  59. package/esm2022/lib/core/services/markdown.service.mjs +64 -0
  60. package/esm2022/lib/core/services/theme.service.mjs +248 -0
  61. package/esm2022/lib/core/types/auth-mode.type.mjs +2 -0
  62. package/esm2022/lib/core/types/auth-status.type.mjs +5 -0
  63. package/esm2022/lib/core/types/chat-stream.type.mjs +2 -0
  64. package/esm2022/lib/core/types/message-role.type.mjs +2 -0
  65. package/esm2022/lib/core/types/prompt-mode.type.mjs +5 -0
  66. package/esm2022/lib/core/types/snackbar-error.type.mjs +5 -0
  67. package/esm2022/lib/core/types/tenant-resolution-strategy.type.mjs +2 -0
  68. package/esm2022/lib/core/utils/logger.service.mjs +42 -0
  69. package/esm2022/lib/doohbot-input.mjs +20 -0
  70. package/esm2022/lib/doohbot.component.mjs +444 -0
  71. package/esm2022/lib/predefined_messages.mjs +15 -0
  72. package/esm2022/lib/shared/chips/chips.component.mjs +28 -0
  73. package/esm2022/lib/shared/dialog/dialog.component.mjs +36 -0
  74. package/esm2022/lib/shared/dialog/dialog.service.mjs +64 -0
  75. package/esm2022/lib/shared/dialog/dialog.utils.mjs +85 -0
  76. package/esm2022/lib/shared/dropdown-menu/dropdown-menu.component.mjs +29 -0
  77. package/esm2022/lib/shared/input-dialog/input-dialog.component.mjs +38 -0
  78. package/esm2022/lib/shared/menu-item/menu-item.component.mjs +24 -0
  79. package/esm2022/lib/shared/pipes/simple-markdown.pipe.mjs +27 -0
  80. package/esm2022/lib/shared/snackbar/snackbar.component.mjs +43 -0
  81. package/esm2022/lib/shared/snackbar/snackbar.service.mjs +46 -0
  82. package/esm2022/lib/shared/snackbar/snackbar.utils.mjs +43 -0
  83. package/esm2022/public-api.mjs +37 -0
  84. package/fesm2022/aakash58-chatbot.mjs +5193 -0
  85. package/fesm2022/aakash58-chatbot.mjs.map +1 -0
  86. package/index.d.ts +5 -0
  87. package/lib/app/chat/chat-ui-state.service.d.ts +96 -0
  88. package/lib/app/chat/chat.service.d.ts +88 -0
  89. package/lib/app/chat/components/chat-button/chat-button.component.d.ts +16 -0
  90. package/lib/app/chat/components/chat-footer/chat-footer.component.d.ts +5 -0
  91. package/lib/app/chat/components/chat-header/chat-header.component.d.ts +24 -0
  92. package/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.d.ts +49 -0
  93. package/lib/app/chat/components/chat-window/chat-window.component.d.ts +107 -0
  94. package/lib/app/chat/components/message-input/message-input.component.d.ts +12 -0
  95. package/lib/app/chat/components/message-list/message-list.component.d.ts +40 -0
  96. package/lib/app/chat/model/chat-history.model.d.ts +51 -0
  97. package/lib/app/chat/model/chat-request.model.d.ts +10 -0
  98. package/lib/app/chat/model/chat-response.model.d.ts +9 -0
  99. package/lib/app/chat/model/chat-session.model.d.ts +12 -0
  100. package/{projects/doohbot/src/lib/app/chat/model/chat-stream-message.model.ts → lib/app/chat/model/chat-stream-message.model.d.ts} +5 -6
  101. package/lib/app/chat/model/chat-stream-response.model.d.ts +10 -0
  102. package/lib/app/chat/services/chat-api.service.d.ts +30 -0
  103. package/lib/app/chat/services/chat-audio.service.d.ts +19 -0
  104. package/lib/app/chat/services/chat-history.service.d.ts +53 -0
  105. package/lib/app/login/login-form.component.d.ts +20 -0
  106. package/lib/app/personalization/personalization-dialog.component.d.ts +53 -0
  107. package/lib/app/personalization/personalization.service.d.ts +66 -0
  108. package/lib/app/personalization/sections/account/account-section.component.d.ts +30 -0
  109. package/lib/app/personalization/sections/preferences/color-picker-dialog.component.d.ts +17 -0
  110. package/lib/app/personalization/sections/preferences/preferences-section.component.d.ts +27 -0
  111. package/lib/app/personalization/sections/profile/profile-section.component.d.ts +17 -0
  112. package/lib/app/personalization/sections/settings/setting-section.component.d.ts +10 -0
  113. package/lib/app/personalization/sections/terms/terms-section.component.d.ts +5 -0
  114. package/lib/constant/doohbot-constant.d.ts +12 -0
  115. package/lib/constant/html-entities.d.ts +8 -0
  116. package/lib/constant/utf8.d.ts +9 -0
  117. package/lib/core/app-const.d.ts +11 -0
  118. package/lib/core/auth/account-api.service.d.ts +20 -0
  119. package/lib/core/auth/auth.service.d.ts +90 -0
  120. package/lib/core/auth/models/auth-result.model.d.ts +4 -0
  121. package/lib/core/auth/models/federated-login-request.model.d.ts +5 -0
  122. package/lib/core/auth/models/login-request.model.d.ts +6 -0
  123. package/lib/core/auth/storage.service.d.ts +21 -0
  124. package/lib/core/directives/draggable/draggable-dialog.directive.d.ts +23 -0
  125. package/lib/core/directives/fullscreen/fullscreen.directive.d.ts +14 -0
  126. package/lib/core/directives/resizable/resizable-dialog.directive.d.ts +30 -0
  127. package/lib/core/environments/environment.d.ts +7 -0
  128. package/lib/core/environments/environment.prod.d.ts +7 -0
  129. package/lib/core/helpers/crypto-helper.service.d.ts +12 -0
  130. package/lib/core/http/http-stream.service.d.ts +18 -0
  131. package/lib/core/http/http.service.d.ts +20 -0
  132. package/lib/core/interceptors/auth.interceptor.d.ts +18 -0
  133. package/lib/core/interceptors/license.interceptor.d.ts +11 -0
  134. package/lib/core/models/api-config.model.d.ts +58 -0
  135. package/lib/core/models/api-request.model.d.ts +77 -0
  136. package/lib/core/models/api-response.model.d.ts +6 -0
  137. package/lib/core/models/doohbot-config.model.d.ts +81 -0
  138. package/{projects/doohbot/src/lib/core/models/license.model.ts → lib/core/models/license.model.d.ts} +23 -27
  139. package/lib/core/models/message.d.ts +16 -0
  140. package/lib/core/models/theme-config.model.d.ts +28 -0
  141. package/lib/core/services/core-config.service.d.ts +23 -0
  142. package/lib/core/services/license.service.d.ts +33 -0
  143. package/lib/core/services/markdown.service.d.ts +8 -0
  144. package/lib/core/services/theme.service.d.ts +40 -0
  145. package/{projects/doohbot/src/lib/core/types/auth-mode.type.ts → lib/core/types/auth-mode.type.d.ts} +4 -4
  146. package/{projects/doohbot/src/lib/core/types/auth-status.type.ts → lib/core/types/auth-status.type.d.ts} +4 -5
  147. package/{projects/doohbot/src/lib/core/types/chat-stream.type.ts → lib/core/types/chat-stream.type.d.ts} +4 -4
  148. package/{projects/doohbot/src/lib/core/types/message-role.type.ts → lib/core/types/message-role.type.d.ts} +4 -4
  149. package/{projects/doohbot/src/lib/core/types/prompt-mode.type.ts → lib/core/types/prompt-mode.type.d.ts} +4 -5
  150. package/{projects/doohbot/src/lib/core/types/snackbar-error.type.ts → lib/core/types/snackbar-error.type.d.ts} +4 -5
  151. package/{projects/doohbot/src/lib/core/types/tenant-resolution-strategy.type.ts → lib/core/types/tenant-resolution-strategy.type.d.ts} +4 -4
  152. package/lib/core/utils/logger.service.d.ts +11 -0
  153. package/lib/doohbot-input.d.ts +19 -0
  154. package/lib/doohbot.component.d.ts +108 -0
  155. package/lib/predefined_messages.d.ts +2 -0
  156. package/lib/shared/chips/chips.component.d.ts +10 -0
  157. package/lib/shared/dialog/dialog.component.d.ts +19 -0
  158. package/lib/shared/dialog/dialog.service.d.ts +29 -0
  159. package/lib/shared/dialog/dialog.utils.d.ts +41 -0
  160. package/lib/shared/dropdown-menu/dropdown-menu.component.d.ts +11 -0
  161. package/lib/shared/input-dialog/input-dialog.component.d.ts +20 -0
  162. package/lib/shared/menu-item/menu-item.component.d.ts +9 -0
  163. package/lib/shared/pipes/simple-markdown.pipe.d.ts +10 -0
  164. package/lib/shared/snackbar/snackbar.component.d.ts +14 -0
  165. package/lib/shared/snackbar/snackbar.service.d.ts +19 -0
  166. package/{projects/doohbot/src/lib/shared/snackbar/snackbar.utils.ts → lib/shared/snackbar/snackbar.utils.d.ts} +33 -49
  167. package/package.json +29 -75
  168. package/public-api.d.ts +11 -0
  169. package/.editorconfig +0 -17
  170. package/.vscode/extensions.json +0 -4
  171. package/.vscode/launch.json +0 -41
  172. package/.vscode/settings.json +0 -14
  173. package/.vscode/tasks.json +0 -60
  174. package/angular.json +0 -132
  175. package/docs/PUBLISHING_GUIDE.md +0 -104
  176. package/projects/app-doohbot/public/assets/const/app-const.json +0 -15
  177. package/projects/app-doohbot/public/assets/const/doohclick_license.json +0 -6
  178. package/projects/app-doohbot/public/favicon.ico +0 -0
  179. package/projects/app-doohbot/src/app/app.config.ts +0 -13
  180. package/projects/app-doohbot/src/app/app.html +0 -31
  181. package/projects/app-doohbot/src/app/app.routes.ts +0 -3
  182. package/projects/app-doohbot/src/app/app.scss +0 -279
  183. package/projects/app-doohbot/src/app/app.spec.ts +0 -23
  184. package/projects/app-doohbot/src/app/app.ts +0 -72
  185. package/projects/app-doohbot/src/index.html +0 -15
  186. package/projects/app-doohbot/src/main.ts +0 -6
  187. package/projects/app-doohbot/src/styles.scss +0 -15
  188. package/projects/app-doohbot/tsconfig.app.json +0 -15
  189. package/projects/app-doohbot/tsconfig.spec.json +0 -14
  190. package/projects/doohbot/README.md +0 -64
  191. package/projects/doohbot/docs/README.md +0 -140
  192. package/projects/doohbot/ng-package.json +0 -10
  193. package/projects/doohbot/package.json +0 -16
  194. package/projects/doohbot/src/lib/app/chat/chat-ui-state.service.ts +0 -194
  195. package/projects/doohbot/src/lib/app/chat/chat.service.ts +0 -547
  196. package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.html +0 -27
  197. package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.scss +0 -115
  198. package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.ts +0 -35
  199. package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.html +0 -3
  200. package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.scss +0 -20
  201. package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.ts +0 -12
  202. package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.html +0 -34
  203. package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.scss +0 -78
  204. package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.ts +0 -52
  205. package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.html +0 -77
  206. package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.scss +0 -346
  207. package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.ts +0 -188
  208. package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.html +0 -146
  209. package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.scss +0 -187
  210. package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.ts +0 -256
  211. package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.html +0 -17
  212. package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.scss +0 -59
  213. package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.ts +0 -28
  214. package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.html +0 -138
  215. package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.scss +0 -436
  216. package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.ts +0 -106
  217. package/projects/doohbot/src/lib/app/chat/model/chat-history.model.ts +0 -57
  218. package/projects/doohbot/src/lib/app/chat/model/chat-request.model.ts +0 -17
  219. package/projects/doohbot/src/lib/app/chat/model/chat-response.model.ts +0 -9
  220. package/projects/doohbot/src/lib/app/chat/model/chat-session.model.ts +0 -14
  221. package/projects/doohbot/src/lib/app/chat/model/chat-stream-response.model.ts +0 -12
  222. package/projects/doohbot/src/lib/app/chat/services/chat-api.service.ts +0 -82
  223. package/projects/doohbot/src/lib/app/chat/services/chat-audio.service.ts +0 -44
  224. package/projects/doohbot/src/lib/app/chat/services/chat-history.service.ts +0 -303
  225. package/projects/doohbot/src/lib/app/login/login-form.component.html +0 -80
  226. package/projects/doohbot/src/lib/app/login/login-form.component.scss +0 -189
  227. package/projects/doohbot/src/lib/app/login/login-form.component.ts +0 -45
  228. package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.html +0 -81
  229. package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.scss +0 -179
  230. package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.ts +0 -217
  231. package/projects/doohbot/src/lib/app/personalization/personalization.service.ts +0 -197
  232. package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.html +0 -111
  233. package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.scss +0 -218
  234. package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.ts +0 -121
  235. package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.html +0 -46
  236. package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.scss +0 -138
  237. package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.ts +0 -28
  238. package/projects/doohbot/src/lib/app/personalization/sections/preferences/color-picker-dialog.component.ts +0 -92
  239. package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.html +0 -198
  240. package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.scss +0 -107
  241. package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.ts +0 -103
  242. package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.html +0 -46
  243. package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.scss +0 -131
  244. package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.ts +0 -23
  245. package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.html +0 -33
  246. package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.scss +0 -61
  247. package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.ts +0 -20
  248. package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.html +0 -30
  249. package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.scss +0 -59
  250. package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.ts +0 -12
  251. package/projects/doohbot/src/lib/constant/doohbot-constant.ts +0 -40
  252. package/projects/doohbot/src/lib/constant/html-entities.ts +0 -8
  253. package/projects/doohbot/src/lib/constant/utf8.ts +0 -9
  254. package/projects/doohbot/src/lib/core/app-const.ts +0 -63
  255. package/projects/doohbot/src/lib/core/auth/account-api.service.ts +0 -53
  256. package/projects/doohbot/src/lib/core/auth/auth.service.ts +0 -478
  257. package/projects/doohbot/src/lib/core/auth/models/auth-result.model.ts +0 -4
  258. package/projects/doohbot/src/lib/core/auth/models/federated-login-request.model.ts +0 -5
  259. package/projects/doohbot/src/lib/core/auth/models/login-request.model.ts +0 -6
  260. package/projects/doohbot/src/lib/core/auth/storage.service.ts +0 -113
  261. package/projects/doohbot/src/lib/core/directives/draggable/draggable-dialog.directive.ts +0 -123
  262. package/projects/doohbot/src/lib/core/directives/draggable/draggable-dialog.module.ts +0 -9
  263. package/projects/doohbot/src/lib/core/directives/fullscreen/fullscreen.directive.ts +0 -58
  264. package/projects/doohbot/src/lib/core/directives/fullscreen/fullscreen.module.ts +0 -9
  265. package/projects/doohbot/src/lib/core/directives/popout/popout.directive.ts +0 -169
  266. package/projects/doohbot/src/lib/core/directives/popout/popout.module.ts +0 -9
  267. package/projects/doohbot/src/lib/core/directives/resizable/resizable-dialog.directive.ts +0 -197
  268. package/projects/doohbot/src/lib/core/directives/resizable/resizable-dialog.module.ts +0 -9
  269. package/projects/doohbot/src/lib/core/enums/api-request-state.enum.ts +0 -9
  270. package/projects/doohbot/src/lib/core/environments/environment.prod.ts +0 -14
  271. package/projects/doohbot/src/lib/core/environments/environment.ts +0 -14
  272. package/projects/doohbot/src/lib/core/helpers/crypto-helper.service.ts +0 -72
  273. package/projects/doohbot/src/lib/core/http/http-stream.service.ts +0 -105
  274. package/projects/doohbot/src/lib/core/http/http.service.ts +0 -148
  275. package/projects/doohbot/src/lib/core/interceptors/auth.interceptor.ts +0 -118
  276. package/projects/doohbot/src/lib/core/interceptors/license.interceptor.ts +0 -50
  277. package/projects/doohbot/src/lib/core/models/api-config.model.ts +0 -82
  278. package/projects/doohbot/src/lib/core/models/api-request.model.ts +0 -92
  279. package/projects/doohbot/src/lib/core/models/api-response.model.ts +0 -13
  280. package/projects/doohbot/src/lib/core/models/doohbot-config.model.ts +0 -109
  281. package/projects/doohbot/src/lib/core/models/message.ts +0 -18
  282. package/projects/doohbot/src/lib/core/models/theme-config.model.ts +0 -48
  283. package/projects/doohbot/src/lib/core/services/core-config.service.ts +0 -53
  284. package/projects/doohbot/src/lib/core/services/doohbot-api.service.ts +0 -207
  285. package/projects/doohbot/src/lib/core/services/license.service.ts +0 -171
  286. package/projects/doohbot/src/lib/core/services/markdown.service.ts +0 -73
  287. package/projects/doohbot/src/lib/core/services/theme.service.ts +0 -305
  288. package/projects/doohbot/src/lib/core/utils/error-handler.util.ts +0 -31
  289. package/projects/doohbot/src/lib/core/utils/logger.service.ts +0 -45
  290. package/projects/doohbot/src/lib/doohbot-input.ts +0 -19
  291. package/projects/doohbot/src/lib/doohbot.component.html +0 -34
  292. package/projects/doohbot/src/lib/doohbot.component.scss +0 -17
  293. package/projects/doohbot/src/lib/doohbot.component.spec.ts +0 -31
  294. package/projects/doohbot/src/lib/doohbot.component.ts +0 -545
  295. package/projects/doohbot/src/lib/elements.ts +0 -25
  296. package/projects/doohbot/src/lib/predefined_messages.ts +0 -14
  297. package/projects/doohbot/src/lib/shared/chips/chips.component.html +0 -9
  298. package/projects/doohbot/src/lib/shared/chips/chips.component.scss +0 -29
  299. package/projects/doohbot/src/lib/shared/chips/chips.component.spec.ts +0 -22
  300. package/projects/doohbot/src/lib/shared/chips/chips.component.ts +0 -20
  301. package/projects/doohbot/src/lib/shared/dialog/dialog.component.html +0 -29
  302. package/projects/doohbot/src/lib/shared/dialog/dialog.component.scss +0 -100
  303. package/projects/doohbot/src/lib/shared/dialog/dialog.component.ts +0 -42
  304. package/projects/doohbot/src/lib/shared/dialog/dialog.service.ts +0 -62
  305. package/projects/doohbot/src/lib/shared/dialog/dialog.utils.ts +0 -102
  306. package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.html +0 -30
  307. package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.scss +0 -53
  308. package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.spec.ts +0 -22
  309. package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.ts +0 -35
  310. package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.html +0 -16
  311. package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.scss +0 -45
  312. package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.ts +0 -46
  313. package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.html +0 -5
  314. package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.scss +0 -0
  315. package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.spec.ts +0 -22
  316. package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.ts +0 -20
  317. package/projects/doohbot/src/lib/shared/pipes/simple-markdown.pipe.ts +0 -19
  318. package/projects/doohbot/src/lib/shared/popout/popout.html +0 -1
  319. package/projects/doohbot/src/lib/shared/popout/popout.scss +0 -0
  320. package/projects/doohbot/src/lib/shared/popout/popout.spec.ts +0 -23
  321. package/projects/doohbot/src/lib/shared/popout/popout.ts +0 -11
  322. package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.html +0 -7
  323. package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.scss +0 -125
  324. package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.spec.ts +0 -21
  325. package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.ts +0 -44
  326. package/projects/doohbot/src/lib/shared/snackbar/snackbar.service.ts +0 -54
  327. package/projects/doohbot/src/lib/styles/_theme.scss +0 -132
  328. package/projects/doohbot/src/lib/styles/material-override.scss +0 -302
  329. package/projects/doohbot/src/lib/styles/utility.scss +0 -588
  330. package/projects/doohbot/src/public-api.ts +0 -42
  331. package/projects/doohbot/tsconfig.lib.json +0 -15
  332. package/projects/doohbot/tsconfig.lib.prod.json +0 -11
  333. package/projects/doohbot/tsconfig.spec.json +0 -10
  334. package/proxy.conf.json +0 -8
  335. package/publish.config.js +0 -25
  336. package/scripts/publishing/index.ts +0 -67
  337. package/scripts/publishing/pipeline/01-clean.ts +0 -11
  338. package/scripts/publishing/pipeline/02-validate-pre.ts +0 -8
  339. package/scripts/publishing/pipeline/03-build.ts +0 -7
  340. package/scripts/publishing/pipeline/04-validate-post.ts +0 -8
  341. package/scripts/publishing/pipeline/05-prepare-package.ts +0 -29
  342. package/scripts/publishing/pipeline/06-version.ts +0 -23
  343. package/scripts/publishing/pipeline/07-publish.ts +0 -14
  344. package/scripts/publishing/pipeline/08-cleanup.ts +0 -5
  345. package/scripts/publishing/types.ts +0 -36
  346. package/scripts/publishing/utils/command.ts +0 -15
  347. package/scripts/publishing/utils/config.ts +0 -17
  348. package/scripts/validate.ts +0 -166
  349. package/tsconfig.json +0 -45
  350. package/tsconfig.scripts.json +0 -15
  351. /package/{projects/doohbot/src → src}/assets/bot.mp3 +0 -0
@@ -1,138 +0,0 @@
1
- .instructions-container {
2
- padding: 40px 60px;
3
- display: flex;
4
- flex-direction: column;
5
- gap: 32px;
6
- animation: slideIn 0.3s ease-out;
7
-
8
- .pane-header {
9
- h1 {
10
- margin: 0 0 8px 0;
11
- font-size: 1.75rem;
12
- font-weight: 700;
13
- }
14
-
15
- p {
16
- margin: 0;
17
- font-size: 1rem;
18
- color: var(--secondary-text-color);
19
- }
20
- }
21
- }
22
-
23
- .settings-list {
24
- display: flex;
25
- flex-direction: column;
26
- background: rgba(var(--black-rgb), 0.02);
27
- border-radius: 12px;
28
- border: 1px solid rgba(var(--black-rgb), 0.05);
29
- overflow: hidden;
30
-
31
- .settings-row {
32
- display: flex;
33
- justify-content: space-between;
34
- align-items: center;
35
- padding: 20px 24px;
36
- border-bottom: 1px solid rgba(var(--black-rgb), 0.05);
37
-
38
- &:last-child {
39
- border-bottom: none;
40
- }
41
-
42
- .row-info {
43
- display: flex;
44
- flex-direction: column;
45
- gap: 4px;
46
-
47
- .row-label {
48
- font-size: 1.05rem;
49
- font-weight: 600;
50
- color: var(--text-color);
51
- }
52
-
53
- .row-sublabel {
54
- font-size: 0.9rem;
55
- color: var(--secondary-text-color);
56
- }
57
- }
58
- }
59
- }
60
-
61
- .instruction-fields {
62
- display: flex;
63
- flex-direction: column;
64
- gap: 32px;
65
- transition: all 0.3s ease;
66
-
67
- &.disabled {
68
- opacity: 0.5;
69
- filter: grayscale(0.5);
70
- pointer-events: none;
71
- }
72
-
73
- .field-item {
74
- display: flex;
75
- flex-direction: column;
76
- gap: 12px;
77
-
78
- .field-header {
79
- display: flex;
80
- align-items: center;
81
- justify-content: space-between;
82
- margin-bottom: 4px;
83
-
84
- label {
85
- font-size: 0.95rem;
86
- font-weight: 600;
87
- color: var(--text-color);
88
- }
89
-
90
- mat-icon {
91
- font-size: 18px;
92
- width: 18px;
93
- height: 18px;
94
- color: var(--secondary-text-color);
95
- cursor: help;
96
- opacity: 0.7;
97
- transition: opacity 0.2s;
98
-
99
- &:hover {
100
- opacity: 1;
101
- }
102
- }
103
- }
104
- }
105
- }
106
-
107
- .full-width {
108
- width: 100%;
109
- }
110
-
111
- @keyframes slideIn {
112
- from {
113
- opacity: 0;
114
- transform: translateY(4px);
115
- }
116
-
117
- to {
118
- opacity: 1;
119
- transform: translateY(0);
120
- }
121
- }
122
-
123
- .pill-btn {
124
- background: none;
125
- border: 1.5px solid rgba(var(--black-rgb), 0.15);
126
- border-radius: 100px;
127
- padding: 6px 20px;
128
- font-size: 0.9rem;
129
- font-weight: 600;
130
- color: var(--text-color);
131
- cursor: pointer;
132
- transition: all 0.2s ease;
133
-
134
- &:hover {
135
- background: rgba(var(--black-rgb), 0.05);
136
- border-color: rgba(var(--black-rgb), 0.3);
137
- }
138
- }
@@ -1,28 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { FormsModule } from '@angular/forms';
4
- import { MatSlideToggleModule } from '@angular/material/slide-toggle';
5
- import { MatFormFieldModule } from '@angular/material/form-field';
6
- import { MatInputModule } from '@angular/material/input';
7
- import { MatIconModule } from '@angular/material/icon';
8
- import { MatTooltipModule } from '@angular/material/tooltip';
9
- import { PersonalizationSettings } from '../../personalization.service';
10
-
11
- @Component({
12
- selector: 'app-instructions-section',
13
- standalone: true,
14
- imports: [
15
- CommonModule,
16
- FormsModule,
17
- MatSlideToggleModule,
18
- MatFormFieldModule,
19
- MatInputModule,
20
- MatIconModule,
21
- MatTooltipModule
22
- ],
23
- templateUrl: './instructions-section.component.html',
24
- styleUrls: ['./instructions-section.component.scss'],
25
- })
26
- export class InstructionsSectionComponent {
27
- @Input() settings!: PersonalizationSettings;
28
- }
@@ -1,92 +0,0 @@
1
- import { Component, Inject } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { FormsModule } from '@angular/forms';
4
- import { MatDialogModule, MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
5
- import { MatButtonModule } from '@angular/material/button';
6
- import { MatFormFieldModule } from '@angular/material/form-field';
7
- import { MatInputModule } from '@angular/material/input';
8
-
9
- @Component({
10
- selector: 'app-color-picker-dialog',
11
- standalone: true,
12
- imports: [
13
- CommonModule,
14
- FormsModule,
15
- MatDialogModule,
16
- MatButtonModule,
17
- MatFormFieldModule,
18
- MatInputModule,
19
- ],
20
- template: `
21
- <h2 mat-dialog-title>Choose Custom Color</h2>
22
- <mat-dialog-content>
23
- <div class="picker-container">
24
- <input
25
- type="color"
26
- [(ngModel)]="color"
27
- (input)="onColorInput($event)"
28
- class="main-picker"
29
- />
30
- <mat-form-field appearance="outline">
31
- <mat-label>Hex Code</mat-label>
32
- <input matInput [(ngModel)]="color" placeholder="#000000" />
33
- </mat-form-field>
34
- </div>
35
- </mat-dialog-content>
36
- <mat-dialog-actions align="end">
37
- <button mat-button (click)="onCancel()">Cancel</button>
38
- <button mat-raised-button color="primary" (click)="onConfirm()">Apply</button>
39
- </mat-dialog-actions>
40
- `,
41
- styles: [
42
- `
43
- .picker-container {
44
- display: flex;
45
- flex-direction: column;
46
- align-items: center;
47
- gap: 20px;
48
- padding: 10px 0;
49
- }
50
- .main-picker {
51
- width: 100px;
52
- height: 100px;
53
- padding: 0;
54
- border: none;
55
- border-radius: 50%;
56
- cursor: pointer;
57
- outline: none;
58
- background: none;
59
- }
60
- .main-picker::-webkit-color-swatch-wrapper {
61
- padding: 0;
62
- }
63
- .main-picker::-webkit-color-swatch {
64
- border: none;
65
- border-radius: 50%;
66
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
67
- }
68
- `,
69
- ],
70
- })
71
- export class ColorPickerDialogComponent {
72
- public color: string;
73
-
74
- constructor(
75
- public dialogRef: MatDialogRef<ColorPickerDialogComponent>,
76
- @Inject(MAT_DIALOG_DATA) public data: { color: string },
77
- ) {
78
- this.color = data.color;
79
- }
80
-
81
- onColorInput(event: any) {
82
- this.color = event.target.value;
83
- }
84
-
85
- onCancel() {
86
- this.dialogRef.close();
87
- }
88
-
89
- onConfirm() {
90
- this.dialogRef.close(this.color);
91
- }
92
- }
@@ -1,198 +0,0 @@
1
- <div class="preferences-container">
2
- <header class="pane-header">
3
- <h1>Preferences</h1>
4
- <p>Customize how your assistant looks and feels.</p>
5
- </header>
6
-
7
- <div class="settings-list">
8
- <!-- Appearance Row -->
9
- <div class="settings-row">
10
- <div class="row-info">
11
- <span class="row-label">Appearance</span>
12
- </div>
13
- <div class="row-action">
14
- <mat-form-field appearance="outline" subscriptSizing="dynamic">
15
- <mat-select
16
- [value]="settings.appearance.theme"
17
- (selectionChange)="onThemeSelect.emit($event.value)"
18
- >
19
- <mat-select-trigger>
20
- <div class="selected-option-trigger">
21
- <mat-icon>{{ getThemeIcon(settings.appearance.theme) }}</mat-icon>
22
- <span>{{ getThemeLabel(settings.appearance.theme) }}</span>
23
- </div>
24
- </mat-select-trigger>
25
- <mat-option value="light">
26
- <div class="option-content">
27
- <mat-icon>light_mode</mat-icon>
28
- <span>Light Mode</span>
29
- </div>
30
- </mat-option>
31
- <mat-option value="dark">
32
- <div class="option-content">
33
- <mat-icon>dark_mode</mat-icon>
34
- <span>Dark Mode</span>
35
- </div>
36
- </mat-option>
37
- <mat-option value="auto">
38
- <div class="option-content">
39
- <mat-icon>brightness_auto</mat-icon>
40
- <span>System</span>
41
- </div>
42
- </mat-option>
43
- </mat-select>
44
- </mat-form-field>
45
- </div>
46
- </div>
47
-
48
- <!-- Accent Color Row -->
49
- <div class="settings-row">
50
- <div class="row-info">
51
- <span class="row-label">Accent color</span>
52
- </div>
53
- <div class="row-action">
54
- <mat-form-field appearance="outline" subscriptSizing="dynamic">
55
- <mat-select
56
- [value]="settings.appearance.primaryColor"
57
- (selectionChange)="onColorSelect.emit($event.value)"
58
- >
59
- <mat-select-trigger>
60
- <div class="selected-color-trigger">
61
- <div
62
- class="color-dot"
63
- [style.background-color]="
64
- settings.appearance.primaryColor === 'default'
65
- ? defaultColor
66
- : settings.appearance.primaryColor
67
- "
68
- ></div>
69
- <span>{{ getSelectedColorName() }}</span>
70
- </div>
71
- </mat-select-trigger>
72
- @for (color of colorTokens; track color.name) {
73
- <mat-option [value]="color.value">
74
- <div class="option-content">
75
- <div
76
- class="color-dot"
77
- [style.background-color]="
78
- color.value === 'default' ? defaultColor : color.value
79
- "
80
- ></div>
81
- <span>{{ color.name === 'Standard' ? 'Default' : color.name }}</span>
82
- </div>
83
- </mat-option>
84
- }
85
-
86
- <!-- Active Custom Color -->
87
- @if (isCustomColor()) {
88
- <mat-option [value]="settings.appearance.primaryColor">
89
- <div class="option-content">
90
- <div
91
- class="color-dot"
92
- [style.background-color]="settings.appearance.primaryColor"
93
- ></div>
94
- <span>Custom</span>
95
- </div>
96
- </mat-option>
97
- }
98
-
99
- <!-- Action to pick new Custom Color -->
100
- <mat-option
101
- [value]="'picker-trigger'"
102
- (click)="openCustomColorPicker(); $event.stopPropagation()"
103
- >
104
- <div class="option-content">
105
- <mat-icon>colorize</mat-icon>
106
- <span>{{ isCustomColor() ? 'Change Custom...' : 'Custom...' }}</span>
107
- </div>
108
- </mat-option>
109
- </mat-select>
110
- </mat-form-field>
111
- </div>
112
- </div>
113
-
114
- <!-- Trigger Style Row -->
115
- <div class="settings-row">
116
- <div class="row-info">
117
- <span class="row-label">Trigger Style</span>
118
- </div>
119
- <div class="row-action">
120
- <mat-form-field appearance="outline" subscriptSizing="dynamic">
121
- <mat-select
122
- [value]="settings.appearance.buttonStyle"
123
- (selectionChange)="onButtonStyleSelect.emit($event.value)"
124
- >
125
- <mat-select-trigger>
126
- <div class="selected-option-trigger">
127
- <mat-icon>{{ getStyleIcon(settings.appearance.buttonStyle) }}</mat-icon>
128
- <span>{{ getStyleLabel(settings.appearance.buttonStyle) }}</span>
129
- </div>
130
- </mat-select-trigger>
131
- <mat-option value="fab">
132
- <div class="option-content">
133
- <mat-icon>radio_button_checked</mat-icon>
134
- <span>FAB</span>
135
- </div>
136
- </mat-option>
137
- <mat-option value="sidebar">
138
- <div class="option-content">
139
- <mat-icon>view_sidebar</mat-icon>
140
- <span>Sidebar</span>
141
- </div>
142
- </mat-option>
143
- <mat-option value="sidebar-top">
144
- <div class="option-content">
145
- <mat-icon>vertical_align_top</mat-icon>
146
- <span>Sidebar Top</span>
147
- </div>
148
- </mat-option>
149
- <mat-option value="sidebar-bottom">
150
- <div class="option-content">
151
- <mat-icon>vertical_align_bottom</mat-icon>
152
- <span>Sidebar Bottom</span>
153
- </div>
154
- </mat-option>
155
- </mat-select>
156
- </mat-form-field>
157
- </div>
158
- </div>
159
-
160
- <!-- Language Placeholder -->
161
- <div class="settings-row">
162
- <div class="row-info">
163
- <span class="row-label">Language</span>
164
- </div>
165
- <div class="row-action">
166
- <button class="pill-btn">Auto-detect</button>
167
- </div>
168
- </div>
169
-
170
- <!-- Voice Placeholder -->
171
- <div class="settings-row">
172
- <div class="row-info">
173
- <span class="row-label">Voice</span>
174
- </div>
175
- <div class="row-action">
176
- <button class="pill-btn">Cove</button>
177
- </div>
178
- </div>
179
-
180
- <!-- Data Controls Placeholder -->
181
- <div class="settings-row">
182
- <div class="row-info">
183
- <span class="row-label">Data controls</span>
184
- </div>
185
- <div class="row-action">
186
- <button class="pill-btn">Manage</button>
187
- </div>
188
- </div>
189
- </div>
190
-
191
- <div class="section-actions">
192
- <button mat-button class="reset-btn" (click)="onReset.emit()">Reset</button>
193
- <div class="spacer"></div>
194
- <button mat-raised-button color="primary" class="save-btn" (click)="onSave.emit()">
195
- Apply Changes
196
- </button>
197
- </div>
198
- </div>
@@ -1,107 +0,0 @@
1
- .preferences-container {
2
- padding: 40px;
3
- display: flex;
4
- flex-direction: column;
5
- gap: 32px;
6
- min-height: 100%;
7
- box-sizing: border-box;
8
- animation: fadeIn 0.3s ease-out;
9
-
10
- .pane-header {
11
- h1 {
12
- margin: 0 0 8px 0;
13
- font-size: 1.75rem;
14
- font-weight: 700;
15
- }
16
-
17
- p {
18
- margin: 0;
19
- font-size: 1rem;
20
- color: var(--secondary-text-color);
21
- }
22
- }
23
- }
24
-
25
- .settings-list {
26
- display: flex;
27
- flex-direction: column;
28
-
29
- .settings-row {
30
- display: flex;
31
- justify-content: space-between;
32
- align-items: center;
33
- padding: 16px 0;
34
- border-bottom: 1px solid rgba(var(--black-rgb), 0.05);
35
-
36
- &:last-child {
37
- border-bottom: none;
38
- }
39
-
40
- .row-info {
41
- .row-label {
42
- font-size: 1rem;
43
- font-weight: 500;
44
- color: var(--text-color);
45
- }
46
- }
47
-
48
- .row-action {
49
- width: 200px;
50
- }
51
- }
52
- }
53
-
54
- .option-content,
55
- .selected-color-trigger,
56
- .selected-option-trigger {
57
- display: flex;
58
- align-items: center;
59
- gap: 12px;
60
-
61
- mat-icon {
62
- font-size: 20px;
63
- width: 20px;
64
- height: 20px;
65
- color: var(--secondary-text-color);
66
- }
67
-
68
- .color-dot {
69
- width: 14px;
70
- height: 14px;
71
- border-radius: 50%;
72
- flex-shrink: 0;
73
- }
74
-
75
- span {
76
- font-size: 0.95rem;
77
- }
78
- }
79
-
80
- @keyframes slideIn {
81
- from {
82
- opacity: 0;
83
- transform: translateY(4px);
84
- }
85
-
86
- to {
87
- opacity: 1;
88
- transform: translateY(0);
89
- }
90
- }
91
-
92
- .pill-btn {
93
- background: none;
94
- border: 1.5px solid rgba(var(--black-rgb), 0.15);
95
- border-radius: 100px;
96
- padding: 6px 20px;
97
- font-size: 0.9rem;
98
- font-weight: 600;
99
- color: var(--text-color);
100
- cursor: pointer;
101
- transition: all 0.2s ease;
102
-
103
- &:hover {
104
- background: rgba(var(--black-rgb), 0.05);
105
- border-color: rgba(var(--black-rgb), 0.3);
106
- }
107
- }
@@ -1,103 +0,0 @@
1
- import { Component, Input, Output, EventEmitter } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { MatIconModule } from '@angular/material/icon';
4
- import { MatTooltipModule } from '@angular/material/tooltip';
5
- import { MatFormFieldModule } from '@angular/material/form-field';
6
- import { MatSelectModule } from '@angular/material/select';
7
- import { MatDialog } from '@angular/material/dialog';
8
- import { PersonalizationSettings } from '../../personalization.service';
9
- import { ColorPickerDialogComponent } from './color-picker-dialog.component';
10
-
11
- @Component({
12
- selector: 'app-preferences-section',
13
- standalone: true,
14
- imports: [CommonModule, MatIconModule, MatTooltipModule, MatFormFieldModule, MatSelectModule],
15
- templateUrl: './preferences-section.component.html',
16
- styleUrls: ['./preferences-section.component.scss'],
17
- })
18
- export class PreferencesSectionComponent {
19
- constructor(private dialog: MatDialog) { }
20
- @Input() settings!: PersonalizationSettings;
21
- @Input() colorTokens: any[] = [];
22
- @Input() isCustomColorSelected = false;
23
- @Input() defaultColor: string = 'default';
24
-
25
- @Output() onThemeSelect = new EventEmitter<'light' | 'dark' | 'auto'>();
26
- @Output() onColorSelect = new EventEmitter<string>();
27
- @Output() onButtonStyleSelect = new EventEmitter<'fab' | 'sidebar' | 'sidebar-top' | 'sidebar-bottom'>();
28
- @Output() onSave = new EventEmitter<void>();
29
- @Output() onReset = new EventEmitter<void>();
30
-
31
- onCustomColorChange(event: Event) {
32
- const color = (event.target as HTMLInputElement).value;
33
- this.onColorSelect.emit(color);
34
- }
35
-
36
- getSelectedColorName(): string {
37
- const current = this.settings.appearance.primaryColor;
38
- if (current === 'default') return 'Default';
39
-
40
- // Fallback for legacy saved hexes that happen to match default
41
- // or finding the named token
42
- const token = this.colorTokens.find(c => c.value.toLowerCase() === current.toLowerCase());
43
- if (token) return token.name === 'Standard' ? 'Default' : token.name;
44
-
45
- return 'Custom';
46
- }
47
-
48
- isCustomColor(): boolean {
49
- const current = this.settings.appearance.primaryColor;
50
- if (current === 'default') return false;
51
-
52
- return !this.colorTokens.some(c => c.value.toLowerCase() === current.toLowerCase());
53
- }
54
-
55
- getThemeIcon(theme: string): string {
56
- switch (theme) {
57
- case 'light': return 'light_mode';
58
- case 'dark': return 'dark_mode';
59
- default: return 'brightness_auto';
60
- }
61
- }
62
-
63
- getThemeLabel(theme: string): string {
64
- switch (theme) {
65
- case 'light': return 'Light Mode';
66
- case 'dark': return 'Dark Mode';
67
- default: return 'System';
68
- }
69
- }
70
-
71
- getStyleIcon(style: string): string {
72
- switch (style) {
73
- case 'fab': return 'radio_button_checked';
74
- case 'sidebar': return 'view_sidebar';
75
- case 'sidebar-top': return 'vertical_align_top';
76
- case 'sidebar-bottom': return 'vertical_align_bottom';
77
- default: return 'radio_button_checked';
78
- }
79
- }
80
-
81
- getStyleLabel(style: string): string {
82
- switch (style) {
83
- case 'fab': return 'FAB';
84
- case 'sidebar': return 'Sidebar';
85
- case 'sidebar-top': return 'Sidebar Top';
86
- case 'sidebar-bottom': return 'Sidebar Bottom';
87
- default: return 'FAB';
88
- }
89
- }
90
-
91
- openCustomColorPicker() {
92
- const dialogRef = this.dialog.open(ColorPickerDialogComponent, {
93
- width: '350px',
94
- data: { color: this.settings.appearance.primaryColor }
95
- });
96
-
97
- dialogRef.afterClosed().subscribe(result => {
98
- if (result) {
99
- this.onColorSelect.emit(result);
100
- }
101
- });
102
- }
103
- }