@aakash58/chatbot 1.1.21 → 1.1.22
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.
- package/README.md +22 -298
- package/esm2022/aakash58-chatbot.mjs +5 -0
- package/esm2022/lib/app/chat/chat-ui-state.service.mjs +170 -0
- package/esm2022/lib/app/chat/chat.service.mjs +445 -0
- package/esm2022/lib/app/chat/components/chat-button/chat-button.component.mjs +50 -0
- package/esm2022/lib/app/chat/components/chat-footer/chat-footer.component.mjs +12 -0
- package/esm2022/lib/app/chat/components/chat-header/chat-header.component.mjs +66 -0
- package/esm2022/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.mjs +186 -0
- package/esm2022/lib/app/chat/components/chat-window/chat-window.component.mjs +312 -0
- package/esm2022/lib/app/chat/components/message-input/message-input.component.mjs +36 -0
- package/esm2022/lib/app/chat/components/message-list/message-list.component.mjs +115 -0
- package/esm2022/lib/app/chat/model/chat-history.model.mjs +2 -0
- package/esm2022/lib/app/chat/model/chat-request.model.mjs +2 -0
- package/esm2022/lib/app/chat/model/chat-response.model.mjs +2 -0
- package/esm2022/lib/app/chat/model/chat-session.model.mjs +2 -0
- package/esm2022/lib/app/chat/model/chat-stream-message.model.mjs +2 -0
- package/esm2022/lib/app/chat/model/chat-stream-response.model.mjs +2 -0
- package/esm2022/lib/app/chat/services/chat-api.service.mjs +61 -0
- package/esm2022/lib/app/chat/services/chat-audio.service.mjs +50 -0
- package/esm2022/lib/app/chat/services/chat-history.service.mjs +252 -0
- package/esm2022/lib/app/login/login-form.component.mjs +46 -0
- package/esm2022/lib/app/personalization/personalization-dialog.component.mjs +194 -0
- package/esm2022/lib/app/personalization/personalization.service.mjs +149 -0
- package/esm2022/lib/app/personalization/sections/account/account-section.component.mjs +122 -0
- package/esm2022/lib/app/personalization/sections/preferences/color-picker-dialog.component.mjs +86 -0
- package/esm2022/lib/app/personalization/sections/preferences/preferences-section.component.mjs +115 -0
- package/esm2022/lib/app/personalization/sections/profile/profile-section.component.mjs +29 -0
- package/esm2022/lib/app/personalization/sections/settings/setting-section.component.mjs +30 -0
- package/esm2022/lib/app/personalization/sections/terms/terms-section.component.mjs +12 -0
- package/esm2022/lib/constant/doohbot-constant.mjs +28 -0
- package/esm2022/lib/constant/html-entities.mjs +9 -0
- package/esm2022/lib/constant/utf8.mjs +10 -0
- package/esm2022/lib/core/app-const.mjs +61 -0
- package/esm2022/lib/core/auth/account-api.service.mjs +40 -0
- package/esm2022/lib/core/auth/auth.service.mjs +391 -0
- package/esm2022/lib/core/auth/models/auth-result.model.mjs +3 -0
- package/esm2022/lib/core/auth/models/federated-login-request.model.mjs +6 -0
- package/esm2022/lib/core/auth/models/login-request.model.mjs +6 -0
- package/esm2022/lib/core/auth/storage.service.mjs +110 -0
- package/esm2022/lib/core/directives/draggable/draggable-dialog.directive.mjs +112 -0
- package/esm2022/lib/core/directives/fullscreen/fullscreen.directive.mjs +55 -0
- package/esm2022/lib/core/directives/resizable/resizable-dialog.directive.mjs +179 -0
- package/esm2022/lib/core/environments/environment.mjs +15 -0
- package/esm2022/lib/core/environments/environment.prod.mjs +15 -0
- package/esm2022/lib/core/helpers/crypto-helper.service.mjs +52 -0
- package/esm2022/lib/core/http/http-stream.service.mjs +97 -0
- package/esm2022/lib/core/http/http.service.mjs +103 -0
- package/esm2022/lib/core/interceptors/auth.interceptor.mjs +96 -0
- package/esm2022/lib/core/interceptors/license.interceptor.mjs +44 -0
- package/esm2022/lib/core/models/api-config.model.mjs +18 -0
- package/esm2022/lib/core/models/api-request.model.mjs +2 -0
- package/esm2022/lib/core/models/api-response.model.mjs +8 -0
- package/esm2022/lib/core/models/doohbot-config.model.mjs +18 -0
- package/esm2022/lib/core/models/license.model.mjs +2 -0
- package/esm2022/lib/core/models/message.mjs +2 -0
- package/esm2022/lib/core/models/theme-config.model.mjs +2 -0
- package/esm2022/lib/core/services/core-config.service.mjs +52 -0
- package/esm2022/lib/core/services/license.service.mjs +145 -0
- package/esm2022/lib/core/services/markdown.service.mjs +64 -0
- package/esm2022/lib/core/services/theme.service.mjs +248 -0
- package/esm2022/lib/core/types/auth-mode.type.mjs +2 -0
- package/esm2022/lib/core/types/auth-status.type.mjs +5 -0
- package/esm2022/lib/core/types/chat-stream.type.mjs +2 -0
- package/esm2022/lib/core/types/message-role.type.mjs +2 -0
- package/esm2022/lib/core/types/prompt-mode.type.mjs +5 -0
- package/esm2022/lib/core/types/snackbar-error.type.mjs +5 -0
- package/esm2022/lib/core/types/tenant-resolution-strategy.type.mjs +2 -0
- package/esm2022/lib/core/utils/logger.service.mjs +42 -0
- package/esm2022/lib/doohbot-input.mjs +20 -0
- package/esm2022/lib/doohbot.component.mjs +444 -0
- package/esm2022/lib/predefined_messages.mjs +15 -0
- package/esm2022/lib/shared/chips/chips.component.mjs +28 -0
- package/esm2022/lib/shared/dialog/dialog.component.mjs +36 -0
- package/esm2022/lib/shared/dialog/dialog.service.mjs +64 -0
- package/esm2022/lib/shared/dialog/dialog.utils.mjs +85 -0
- package/esm2022/lib/shared/dropdown-menu/dropdown-menu.component.mjs +29 -0
- package/esm2022/lib/shared/input-dialog/input-dialog.component.mjs +38 -0
- package/esm2022/lib/shared/menu-item/menu-item.component.mjs +24 -0
- package/esm2022/lib/shared/pipes/simple-markdown.pipe.mjs +27 -0
- package/esm2022/lib/shared/snackbar/snackbar.component.mjs +43 -0
- package/esm2022/lib/shared/snackbar/snackbar.service.mjs +46 -0
- package/esm2022/lib/shared/snackbar/snackbar.utils.mjs +43 -0
- package/esm2022/public-api.mjs +37 -0
- package/fesm2022/aakash58-chatbot.mjs +5193 -0
- package/fesm2022/aakash58-chatbot.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/app/chat/chat-ui-state.service.d.ts +96 -0
- package/lib/app/chat/chat.service.d.ts +88 -0
- package/lib/app/chat/components/chat-button/chat-button.component.d.ts +16 -0
- package/lib/app/chat/components/chat-footer/chat-footer.component.d.ts +5 -0
- package/lib/app/chat/components/chat-header/chat-header.component.d.ts +24 -0
- package/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.d.ts +49 -0
- package/lib/app/chat/components/chat-window/chat-window.component.d.ts +107 -0
- package/lib/app/chat/components/message-input/message-input.component.d.ts +12 -0
- package/lib/app/chat/components/message-list/message-list.component.d.ts +40 -0
- package/lib/app/chat/model/chat-history.model.d.ts +51 -0
- package/lib/app/chat/model/chat-request.model.d.ts +10 -0
- package/lib/app/chat/model/chat-response.model.d.ts +9 -0
- package/lib/app/chat/model/chat-session.model.d.ts +12 -0
- 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
- package/lib/app/chat/model/chat-stream-response.model.d.ts +10 -0
- package/lib/app/chat/services/chat-api.service.d.ts +30 -0
- package/lib/app/chat/services/chat-audio.service.d.ts +19 -0
- package/lib/app/chat/services/chat-history.service.d.ts +53 -0
- package/lib/app/login/login-form.component.d.ts +20 -0
- package/lib/app/personalization/personalization-dialog.component.d.ts +53 -0
- package/lib/app/personalization/personalization.service.d.ts +66 -0
- package/lib/app/personalization/sections/account/account-section.component.d.ts +30 -0
- package/lib/app/personalization/sections/preferences/color-picker-dialog.component.d.ts +17 -0
- package/lib/app/personalization/sections/preferences/preferences-section.component.d.ts +27 -0
- package/lib/app/personalization/sections/profile/profile-section.component.d.ts +17 -0
- package/lib/app/personalization/sections/settings/setting-section.component.d.ts +10 -0
- package/lib/app/personalization/sections/terms/terms-section.component.d.ts +5 -0
- package/lib/constant/doohbot-constant.d.ts +12 -0
- package/lib/constant/html-entities.d.ts +8 -0
- package/lib/constant/utf8.d.ts +9 -0
- package/lib/core/app-const.d.ts +11 -0
- package/lib/core/auth/account-api.service.d.ts +20 -0
- package/lib/core/auth/auth.service.d.ts +90 -0
- package/lib/core/auth/models/auth-result.model.d.ts +4 -0
- package/lib/core/auth/models/federated-login-request.model.d.ts +5 -0
- package/lib/core/auth/models/login-request.model.d.ts +6 -0
- package/lib/core/auth/storage.service.d.ts +21 -0
- package/lib/core/directives/draggable/draggable-dialog.directive.d.ts +23 -0
- package/lib/core/directives/fullscreen/fullscreen.directive.d.ts +14 -0
- package/lib/core/directives/resizable/resizable-dialog.directive.d.ts +30 -0
- package/lib/core/environments/environment.d.ts +7 -0
- package/lib/core/environments/environment.prod.d.ts +7 -0
- package/lib/core/helpers/crypto-helper.service.d.ts +12 -0
- package/lib/core/http/http-stream.service.d.ts +18 -0
- package/lib/core/http/http.service.d.ts +20 -0
- package/lib/core/interceptors/auth.interceptor.d.ts +18 -0
- package/lib/core/interceptors/license.interceptor.d.ts +11 -0
- package/lib/core/models/api-config.model.d.ts +58 -0
- package/lib/core/models/api-request.model.d.ts +77 -0
- package/lib/core/models/api-response.model.d.ts +6 -0
- package/lib/core/models/doohbot-config.model.d.ts +81 -0
- package/{projects/doohbot/src/lib/core/models/license.model.ts → lib/core/models/license.model.d.ts} +23 -27
- package/lib/core/models/message.d.ts +16 -0
- package/lib/core/models/theme-config.model.d.ts +28 -0
- package/lib/core/services/core-config.service.d.ts +23 -0
- package/lib/core/services/license.service.d.ts +33 -0
- package/lib/core/services/markdown.service.d.ts +8 -0
- package/lib/core/services/theme.service.d.ts +40 -0
- package/{projects/doohbot/src/lib/core/types/auth-mode.type.ts → lib/core/types/auth-mode.type.d.ts} +4 -4
- package/{projects/doohbot/src/lib/core/types/auth-status.type.ts → lib/core/types/auth-status.type.d.ts} +4 -5
- package/{projects/doohbot/src/lib/core/types/chat-stream.type.ts → lib/core/types/chat-stream.type.d.ts} +4 -4
- package/{projects/doohbot/src/lib/core/types/message-role.type.ts → lib/core/types/message-role.type.d.ts} +4 -4
- package/{projects/doohbot/src/lib/core/types/prompt-mode.type.ts → lib/core/types/prompt-mode.type.d.ts} +4 -5
- package/{projects/doohbot/src/lib/core/types/snackbar-error.type.ts → lib/core/types/snackbar-error.type.d.ts} +4 -5
- package/{projects/doohbot/src/lib/core/types/tenant-resolution-strategy.type.ts → lib/core/types/tenant-resolution-strategy.type.d.ts} +4 -4
- package/lib/core/utils/logger.service.d.ts +11 -0
- package/lib/doohbot-input.d.ts +19 -0
- package/lib/doohbot.component.d.ts +108 -0
- package/lib/predefined_messages.d.ts +2 -0
- package/lib/shared/chips/chips.component.d.ts +10 -0
- package/lib/shared/dialog/dialog.component.d.ts +19 -0
- package/lib/shared/dialog/dialog.service.d.ts +29 -0
- package/lib/shared/dialog/dialog.utils.d.ts +41 -0
- package/lib/shared/dropdown-menu/dropdown-menu.component.d.ts +11 -0
- package/lib/shared/input-dialog/input-dialog.component.d.ts +20 -0
- package/lib/shared/menu-item/menu-item.component.d.ts +9 -0
- package/lib/shared/pipes/simple-markdown.pipe.d.ts +10 -0
- package/lib/shared/snackbar/snackbar.component.d.ts +14 -0
- package/lib/shared/snackbar/snackbar.service.d.ts +19 -0
- package/{projects/doohbot/src/lib/shared/snackbar/snackbar.utils.ts → lib/shared/snackbar/snackbar.utils.d.ts} +33 -49
- package/package.json +29 -75
- package/public-api.d.ts +11 -0
- package/.editorconfig +0 -17
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -41
- package/.vscode/settings.json +0 -14
- package/.vscode/tasks.json +0 -60
- package/angular.json +0 -132
- package/docs/PUBLISHING_GUIDE.md +0 -104
- package/projects/app-doohbot/public/assets/const/app-const.json +0 -15
- package/projects/app-doohbot/public/assets/const/doohclick_license.json +0 -6
- package/projects/app-doohbot/public/favicon.ico +0 -0
- package/projects/app-doohbot/src/app/app.config.ts +0 -13
- package/projects/app-doohbot/src/app/app.html +0 -31
- package/projects/app-doohbot/src/app/app.routes.ts +0 -3
- package/projects/app-doohbot/src/app/app.scss +0 -279
- package/projects/app-doohbot/src/app/app.spec.ts +0 -23
- package/projects/app-doohbot/src/app/app.ts +0 -72
- package/projects/app-doohbot/src/index.html +0 -15
- package/projects/app-doohbot/src/main.ts +0 -6
- package/projects/app-doohbot/src/styles.scss +0 -15
- package/projects/app-doohbot/tsconfig.app.json +0 -15
- package/projects/app-doohbot/tsconfig.spec.json +0 -14
- package/projects/doohbot/README.md +0 -64
- package/projects/doohbot/docs/README.md +0 -140
- package/projects/doohbot/ng-package.json +0 -10
- package/projects/doohbot/package.json +0 -16
- package/projects/doohbot/src/lib/app/chat/chat-ui-state.service.ts +0 -194
- package/projects/doohbot/src/lib/app/chat/chat.service.ts +0 -547
- package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.html +0 -27
- package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.scss +0 -115
- package/projects/doohbot/src/lib/app/chat/components/chat-button/chat-button.component.ts +0 -35
- package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.html +0 -3
- package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.scss +0 -20
- package/projects/doohbot/src/lib/app/chat/components/chat-footer/chat-footer.component.ts +0 -12
- package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.html +0 -34
- package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.scss +0 -78
- package/projects/doohbot/src/lib/app/chat/components/chat-header/chat-header.component.ts +0 -52
- package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.html +0 -77
- package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.scss +0 -346
- package/projects/doohbot/src/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.ts +0 -188
- package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.html +0 -146
- package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.scss +0 -187
- package/projects/doohbot/src/lib/app/chat/components/chat-window/chat-window.component.ts +0 -256
- package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.html +0 -17
- package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.scss +0 -59
- package/projects/doohbot/src/lib/app/chat/components/message-input/message-input.component.ts +0 -28
- package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.html +0 -138
- package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.scss +0 -436
- package/projects/doohbot/src/lib/app/chat/components/message-list/message-list.component.ts +0 -106
- package/projects/doohbot/src/lib/app/chat/model/chat-history.model.ts +0 -57
- package/projects/doohbot/src/lib/app/chat/model/chat-request.model.ts +0 -17
- package/projects/doohbot/src/lib/app/chat/model/chat-response.model.ts +0 -9
- package/projects/doohbot/src/lib/app/chat/model/chat-session.model.ts +0 -14
- package/projects/doohbot/src/lib/app/chat/model/chat-stream-response.model.ts +0 -12
- package/projects/doohbot/src/lib/app/chat/services/chat-api.service.ts +0 -82
- package/projects/doohbot/src/lib/app/chat/services/chat-audio.service.ts +0 -44
- package/projects/doohbot/src/lib/app/chat/services/chat-history.service.ts +0 -303
- package/projects/doohbot/src/lib/app/login/login-form.component.html +0 -80
- package/projects/doohbot/src/lib/app/login/login-form.component.scss +0 -189
- package/projects/doohbot/src/lib/app/login/login-form.component.ts +0 -45
- package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.html +0 -81
- package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.scss +0 -179
- package/projects/doohbot/src/lib/app/personalization/personalization-dialog.component.ts +0 -217
- package/projects/doohbot/src/lib/app/personalization/personalization.service.ts +0 -197
- package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.html +0 -111
- package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.scss +0 -218
- package/projects/doohbot/src/lib/app/personalization/sections/account/account-section.component.ts +0 -121
- package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.html +0 -46
- package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.scss +0 -138
- package/projects/doohbot/src/lib/app/personalization/sections/instructions/instructions-section.component.ts +0 -28
- package/projects/doohbot/src/lib/app/personalization/sections/preferences/color-picker-dialog.component.ts +0 -92
- package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.html +0 -198
- package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.scss +0 -107
- package/projects/doohbot/src/lib/app/personalization/sections/preferences/preferences-section.component.ts +0 -103
- package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.html +0 -46
- package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.scss +0 -131
- package/projects/doohbot/src/lib/app/personalization/sections/profile/profile-section.component.ts +0 -23
- package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.html +0 -33
- package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.scss +0 -61
- package/projects/doohbot/src/lib/app/personalization/sections/settings/setting-section.component.ts +0 -20
- package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.html +0 -30
- package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.scss +0 -59
- package/projects/doohbot/src/lib/app/personalization/sections/terms/terms-section.component.ts +0 -12
- package/projects/doohbot/src/lib/constant/doohbot-constant.ts +0 -40
- package/projects/doohbot/src/lib/constant/html-entities.ts +0 -8
- package/projects/doohbot/src/lib/constant/utf8.ts +0 -9
- package/projects/doohbot/src/lib/core/app-const.ts +0 -63
- package/projects/doohbot/src/lib/core/auth/account-api.service.ts +0 -53
- package/projects/doohbot/src/lib/core/auth/auth.service.ts +0 -478
- package/projects/doohbot/src/lib/core/auth/models/auth-result.model.ts +0 -4
- package/projects/doohbot/src/lib/core/auth/models/federated-login-request.model.ts +0 -5
- package/projects/doohbot/src/lib/core/auth/models/login-request.model.ts +0 -6
- package/projects/doohbot/src/lib/core/auth/storage.service.ts +0 -113
- package/projects/doohbot/src/lib/core/directives/draggable/draggable-dialog.directive.ts +0 -123
- package/projects/doohbot/src/lib/core/directives/draggable/draggable-dialog.module.ts +0 -9
- package/projects/doohbot/src/lib/core/directives/fullscreen/fullscreen.directive.ts +0 -58
- package/projects/doohbot/src/lib/core/directives/fullscreen/fullscreen.module.ts +0 -9
- package/projects/doohbot/src/lib/core/directives/popout/popout.directive.ts +0 -169
- package/projects/doohbot/src/lib/core/directives/popout/popout.module.ts +0 -9
- package/projects/doohbot/src/lib/core/directives/resizable/resizable-dialog.directive.ts +0 -197
- package/projects/doohbot/src/lib/core/directives/resizable/resizable-dialog.module.ts +0 -9
- package/projects/doohbot/src/lib/core/enums/api-request-state.enum.ts +0 -9
- package/projects/doohbot/src/lib/core/environments/environment.prod.ts +0 -14
- package/projects/doohbot/src/lib/core/environments/environment.ts +0 -14
- package/projects/doohbot/src/lib/core/helpers/crypto-helper.service.ts +0 -72
- package/projects/doohbot/src/lib/core/http/http-stream.service.ts +0 -105
- package/projects/doohbot/src/lib/core/http/http.service.ts +0 -148
- package/projects/doohbot/src/lib/core/interceptors/auth.interceptor.ts +0 -118
- package/projects/doohbot/src/lib/core/interceptors/license.interceptor.ts +0 -50
- package/projects/doohbot/src/lib/core/models/api-config.model.ts +0 -82
- package/projects/doohbot/src/lib/core/models/api-request.model.ts +0 -92
- package/projects/doohbot/src/lib/core/models/api-response.model.ts +0 -13
- package/projects/doohbot/src/lib/core/models/doohbot-config.model.ts +0 -109
- package/projects/doohbot/src/lib/core/models/message.ts +0 -18
- package/projects/doohbot/src/lib/core/models/theme-config.model.ts +0 -48
- package/projects/doohbot/src/lib/core/services/core-config.service.ts +0 -53
- package/projects/doohbot/src/lib/core/services/doohbot-api.service.ts +0 -207
- package/projects/doohbot/src/lib/core/services/license.service.ts +0 -171
- package/projects/doohbot/src/lib/core/services/markdown.service.ts +0 -73
- package/projects/doohbot/src/lib/core/services/theme.service.ts +0 -305
- package/projects/doohbot/src/lib/core/utils/error-handler.util.ts +0 -31
- package/projects/doohbot/src/lib/core/utils/logger.service.ts +0 -45
- package/projects/doohbot/src/lib/doohbot-input.ts +0 -19
- package/projects/doohbot/src/lib/doohbot.component.html +0 -34
- package/projects/doohbot/src/lib/doohbot.component.scss +0 -17
- package/projects/doohbot/src/lib/doohbot.component.spec.ts +0 -31
- package/projects/doohbot/src/lib/doohbot.component.ts +0 -545
- package/projects/doohbot/src/lib/elements.ts +0 -25
- package/projects/doohbot/src/lib/predefined_messages.ts +0 -14
- package/projects/doohbot/src/lib/shared/chips/chips.component.html +0 -9
- package/projects/doohbot/src/lib/shared/chips/chips.component.scss +0 -29
- package/projects/doohbot/src/lib/shared/chips/chips.component.spec.ts +0 -22
- package/projects/doohbot/src/lib/shared/chips/chips.component.ts +0 -20
- package/projects/doohbot/src/lib/shared/dialog/dialog.component.html +0 -29
- package/projects/doohbot/src/lib/shared/dialog/dialog.component.scss +0 -100
- package/projects/doohbot/src/lib/shared/dialog/dialog.component.ts +0 -42
- package/projects/doohbot/src/lib/shared/dialog/dialog.service.ts +0 -62
- package/projects/doohbot/src/lib/shared/dialog/dialog.utils.ts +0 -102
- package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.html +0 -30
- package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.scss +0 -53
- package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.spec.ts +0 -22
- package/projects/doohbot/src/lib/shared/dropdown-menu/dropdown-menu.component.ts +0 -35
- package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.html +0 -16
- package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.scss +0 -45
- package/projects/doohbot/src/lib/shared/input-dialog/input-dialog.component.ts +0 -46
- package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.html +0 -5
- package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.scss +0 -0
- package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.spec.ts +0 -22
- package/projects/doohbot/src/lib/shared/menu-item/menu-item.component.ts +0 -20
- package/projects/doohbot/src/lib/shared/pipes/simple-markdown.pipe.ts +0 -19
- package/projects/doohbot/src/lib/shared/popout/popout.html +0 -1
- package/projects/doohbot/src/lib/shared/popout/popout.scss +0 -0
- package/projects/doohbot/src/lib/shared/popout/popout.spec.ts +0 -23
- package/projects/doohbot/src/lib/shared/popout/popout.ts +0 -11
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.html +0 -7
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.scss +0 -125
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.spec.ts +0 -21
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.component.ts +0 -44
- package/projects/doohbot/src/lib/shared/snackbar/snackbar.service.ts +0 -54
- package/projects/doohbot/src/lib/styles/_theme.scss +0 -132
- package/projects/doohbot/src/lib/styles/material-override.scss +0 -302
- package/projects/doohbot/src/lib/styles/utility.scss +0 -588
- package/projects/doohbot/src/public-api.ts +0 -42
- package/projects/doohbot/tsconfig.lib.json +0 -15
- package/projects/doohbot/tsconfig.lib.prod.json +0 -11
- package/projects/doohbot/tsconfig.spec.json +0 -10
- package/proxy.conf.json +0 -8
- package/publish.config.js +0 -25
- package/scripts/publishing/index.ts +0 -67
- package/scripts/publishing/pipeline/01-clean.ts +0 -11
- package/scripts/publishing/pipeline/02-validate-pre.ts +0 -8
- package/scripts/publishing/pipeline/03-build.ts +0 -7
- package/scripts/publishing/pipeline/04-validate-post.ts +0 -8
- package/scripts/publishing/pipeline/05-prepare-package.ts +0 -29
- package/scripts/publishing/pipeline/06-version.ts +0 -23
- package/scripts/publishing/pipeline/07-publish.ts +0 -14
- package/scripts/publishing/pipeline/08-cleanup.ts +0 -5
- package/scripts/publishing/types.ts +0 -36
- package/scripts/publishing/utils/command.ts +0 -15
- package/scripts/publishing/utils/config.ts +0 -17
- package/scripts/validate.ts +0 -166
- package/tsconfig.json +0 -45
- package/tsconfig.scripts.json +0 -15
- /package/{projects/doohbot/src → src}/assets/bot.mp3 +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
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>;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MarkdownPipe implements PipeTransform {
|
|
5
|
+
private markdownService;
|
|
6
|
+
private sanitizer;
|
|
7
|
+
transform(value: string | undefined | null): SafeHtml;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MarkdownPipe, "Markdown", true>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { SnackBarError } from '../../core/types/snackbar-error.type';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SnackBar implements OnInit {
|
|
5
|
+
private snackBarRef;
|
|
6
|
+
private data;
|
|
7
|
+
message: string | null;
|
|
8
|
+
type: SnackBarError;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
close(): void;
|
|
11
|
+
get icon(): string;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SnackBar, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SnackBar, "app-snackbar", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SnackBarError } from '../../core/types/snackbar-error.type';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface SnackbarConfig {
|
|
4
|
+
message: string;
|
|
5
|
+
duration?: number;
|
|
6
|
+
type: SnackBarError;
|
|
7
|
+
}
|
|
8
|
+
export declare class SnackbarService {
|
|
9
|
+
private snackBar;
|
|
10
|
+
constructor();
|
|
11
|
+
private show;
|
|
12
|
+
success(message: string, duration?: number): void;
|
|
13
|
+
warn(message: string, duration?: number): void;
|
|
14
|
+
error(message: string, duration?: number): void;
|
|
15
|
+
info(message: string, duration?: number): void;
|
|
16
|
+
clear(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SnackbarService>;
|
|
19
|
+
}
|
|
@@ -1,49 +1,33 @@
|
|
|
1
|
-
import { SnackbarService } from './snackbar.service';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Show
|
|
20
|
-
* @param message The message to show
|
|
21
|
-
*/
|
|
22
|
-
static
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Show a warning snackbar
|
|
36
|
-
* @param message The message to show
|
|
37
|
-
*/
|
|
38
|
-
static warn(message: string): void {
|
|
39
|
-
this.service?.warn(message);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Show an info snackbar
|
|
44
|
-
* @param message The message to show
|
|
45
|
-
*/
|
|
46
|
-
static info(message: string): void {
|
|
47
|
-
this.service?.info(message);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
import { SnackbarService } from './snackbar.service';
|
|
2
|
+
/**
|
|
3
|
+
* Utility class for common snackbar operations
|
|
4
|
+
* Provides reusable snackbar configurations for consistency across the application
|
|
5
|
+
*/
|
|
6
|
+
export declare class SnackbarUtils {
|
|
7
|
+
private static service;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize the utility with a SnackbarService instance
|
|
10
|
+
* @param service The SnackbarService instance
|
|
11
|
+
*/
|
|
12
|
+
static init(service: SnackbarService): void;
|
|
13
|
+
/**
|
|
14
|
+
* Show a success snackbar
|
|
15
|
+
* @param message The message to show
|
|
16
|
+
*/
|
|
17
|
+
static success(message: string): void;
|
|
18
|
+
/**
|
|
19
|
+
* Show an error snackbar
|
|
20
|
+
* @param message The message to show
|
|
21
|
+
*/
|
|
22
|
+
static error(message: string): void;
|
|
23
|
+
/**
|
|
24
|
+
* Show a warning snackbar
|
|
25
|
+
* @param message The message to show
|
|
26
|
+
*/
|
|
27
|
+
static warn(message: string): void;
|
|
28
|
+
/**
|
|
29
|
+
* Show an info snackbar
|
|
30
|
+
* @param message The message to show
|
|
31
|
+
*/
|
|
32
|
+
static info(message: string): void;
|
|
33
|
+
}
|
package/package.json
CHANGED
|
@@ -1,76 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@aakash58/chatbot",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
"private": false,
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"@angular/animations": "^17.0.0",
|
|
35
|
-
"@angular/cdk": "^17.0.0",
|
|
36
|
-
"@angular/common": "^17.0.0",
|
|
37
|
-
"@angular/compiler": "^17.0.0",
|
|
38
|
-
"@angular/core": "^17.0.0",
|
|
39
|
-
"@angular/elements": "^17.0.0",
|
|
40
|
-
"@angular/forms": "^17.0.0",
|
|
41
|
-
"@angular/material": "^17.0.0",
|
|
42
|
-
"@angular/platform-browser": "^17.0.0",
|
|
43
|
-
"@angular/router": "^17.0.0",
|
|
44
|
-
"@auth0/angular-jwt": "^5.2.0",
|
|
45
|
-
"@webcomponents/custom-elements": "^1.6.0",
|
|
46
|
-
"crypto-js": "^4.2.0",
|
|
47
|
-
"rxjs": "~7.8.0",
|
|
48
|
-
"tslib": "^2.3.0",
|
|
49
|
-
"zone.js": "~0.15.0"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@angular-devkit/build-angular": "^17.0.0",
|
|
53
|
-
"@angular/cli": "^17.0.0",
|
|
54
|
-
"@angular/compiler": "^17.0.0",
|
|
55
|
-
"@angular/compiler-cli": "^17.0.0",
|
|
56
|
-
"@types/crypto-js": "^4.2.2",
|
|
57
|
-
"@types/jasmine": "~5.1.0",
|
|
58
|
-
"@types/node": "^24.10.0",
|
|
59
|
-
"jasmine-core": "~5.9.0",
|
|
60
|
-
"karma": "~6.4.0",
|
|
61
|
-
"karma-chrome-launcher": "~3.2.0",
|
|
62
|
-
"karma-coverage": "~2.2.0",
|
|
63
|
-
"karma-jasmine": "~5.1.0",
|
|
64
|
-
"karma-jasmine-html-reporter": "~2.1.0",
|
|
65
|
-
"ng-packagr": "^20.3.0",
|
|
66
|
-
"prettier": "^3.6.2",
|
|
67
|
-
"ts-node": "^10.9.2",
|
|
68
|
-
"typescript": "~5.9.2"
|
|
69
|
-
},
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"@angular/common": ">=17.0.0",
|
|
72
|
-
"@angular/core": ">=17.0.0",
|
|
73
|
-
"@angular/material": ">=17.0.0",
|
|
74
|
-
"@angular/cdk": ">=17.0.0"
|
|
75
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@aakash58/chatbot",
|
|
3
|
+
"version": "1.1.22",
|
|
4
|
+
"description": "version support 17+",
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@angular/common": ">=17.0.0",
|
|
7
|
+
"@angular/core": ">=17.0.0",
|
|
8
|
+
"@angular/material": ">=17.0.0",
|
|
9
|
+
"@angular/cdk": ">=17.0.0"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"crypto-js": "^4.2.0",
|
|
13
|
+
"@auth0/angular-jwt": "^5.2.0",
|
|
14
|
+
"tslib": "^2.3.0"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"module": "fesm2022/aakash58-chatbot.mjs",
|
|
18
|
+
"typings": "index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
"./package.json": {
|
|
21
|
+
"default": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./index.d.ts",
|
|
25
|
+
"esm2022": "./esm2022/aakash58-chatbot.mjs",
|
|
26
|
+
"esm": "./esm2022/aakash58-chatbot.mjs",
|
|
27
|
+
"default": "./fesm2022/aakash58-chatbot.mjs"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
76
30
|
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './lib/doohbot.component';
|
|
2
|
+
export * from './lib/doohbot-input';
|
|
3
|
+
export * from './lib/core/models/api-config.model';
|
|
4
|
+
export * from './lib/constant/doohbot-constant';
|
|
5
|
+
export * from './lib/core/models/theme-config.model';
|
|
6
|
+
export * from './lib/shared/dialog/dialog.component';
|
|
7
|
+
export * from './lib/shared/dialog/dialog.service';
|
|
8
|
+
export * from './lib/shared/chips/chips.component';
|
|
9
|
+
export * from './lib/shared/snackbar/snackbar.component';
|
|
10
|
+
export * from './lib/shared/dropdown-menu/dropdown-menu.component';
|
|
11
|
+
export * from './lib/shared/menu-item/menu-item.component';
|
package/.editorconfig
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Editor configuration, see https://editorconfig.org
|
|
2
|
-
root = true
|
|
3
|
-
|
|
4
|
-
[*]
|
|
5
|
-
charset = utf-8
|
|
6
|
-
indent_style = space
|
|
7
|
-
indent_size = 2
|
|
8
|
-
insert_final_newline = true
|
|
9
|
-
trim_trailing_whitespace = true
|
|
10
|
-
|
|
11
|
-
[*.ts]
|
|
12
|
-
quote_type = single
|
|
13
|
-
ij_typescript_use_double_quotes = false
|
|
14
|
-
|
|
15
|
-
[*.md]
|
|
16
|
-
max_line_length = off
|
|
17
|
-
trim_trailing_whitespace = false
|
package/.vscode/extensions.json
DELETED
package/.vscode/launch.json
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
3
|
-
"version": "0.2.0",
|
|
4
|
-
"configurations": [
|
|
5
|
-
{
|
|
6
|
-
"name": "ng serve",
|
|
7
|
-
"type": "chrome",
|
|
8
|
-
"request": "launch",
|
|
9
|
-
"preLaunchTask": "npm: start",
|
|
10
|
-
"url": "http://localhost:4200/",
|
|
11
|
-
"webRoot": "${workspaceFolder}",
|
|
12
|
-
"sourceMaps": true,
|
|
13
|
-
"sourceMapPathOverrides": {
|
|
14
|
-
"webpack:///src/*": "${webRoot}/src/*",
|
|
15
|
-
"webpack:///projects/*": "${webRoot}/projects/*"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "Run Dev",
|
|
20
|
-
"type": "chrome",
|
|
21
|
-
"request": "launch",
|
|
22
|
-
"preLaunchTask": "npm: dev",
|
|
23
|
-
"url": "http://localhost:4200/",
|
|
24
|
-
"webRoot": "${workspaceFolder}",
|
|
25
|
-
"sourceMaps": true,
|
|
26
|
-
"sourceMapPathOverrides": {
|
|
27
|
-
"webpack:///src/*": "${webRoot}/src/*",
|
|
28
|
-
"webpack:///projects/*": "${webRoot}/projects/*"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
"name": "ng test",
|
|
34
|
-
"type": "chrome",
|
|
35
|
-
"request": "launch",
|
|
36
|
-
"preLaunchTask": "npm: test",
|
|
37
|
-
"url": "http://localhost:9876/debug.html",
|
|
38
|
-
"webRoot": "${workspaceFolder}"
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
}
|
package/.vscode/settings.json
DELETED
package/.vscode/tasks.json
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
-
"version": "2.0.0",
|
|
4
|
-
"tasks": [
|
|
5
|
-
{
|
|
6
|
-
"type": "npm",
|
|
7
|
-
"script": "start",
|
|
8
|
-
"isBackground": true,
|
|
9
|
-
"problemMatcher": {
|
|
10
|
-
"owner": "typescript",
|
|
11
|
-
"pattern": "$tsc",
|
|
12
|
-
"background": {
|
|
13
|
-
"activeOnStart": true,
|
|
14
|
-
"beginsPattern": {
|
|
15
|
-
"regexp": "(.*?)"
|
|
16
|
-
},
|
|
17
|
-
"endsPattern": {
|
|
18
|
-
"regexp": "bundle generation complete"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"type": "npm",
|
|
25
|
-
"script": "dev",
|
|
26
|
-
"isBackground": true,
|
|
27
|
-
"problemMatcher": {
|
|
28
|
-
"owner": "typescript",
|
|
29
|
-
"pattern": "$tsc",
|
|
30
|
-
"background": {
|
|
31
|
-
"activeOnStart": true,
|
|
32
|
-
"beginsPattern": {
|
|
33
|
-
"regexp": "(.*?)"
|
|
34
|
-
},
|
|
35
|
-
"endsPattern": {
|
|
36
|
-
"regexp": "bundle generation complete"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"type": "npm",
|
|
43
|
-
"script": "test",
|
|
44
|
-
"isBackground": true,
|
|
45
|
-
"problemMatcher": {
|
|
46
|
-
"owner": "typescript",
|
|
47
|
-
"pattern": "$tsc",
|
|
48
|
-
"background": {
|
|
49
|
-
"activeOnStart": true,
|
|
50
|
-
"beginsPattern": {
|
|
51
|
-
"regexp": "(.*?)"
|
|
52
|
-
},
|
|
53
|
-
"endsPattern": {
|
|
54
|
-
"regexp": "bundle generation complete"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|