@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.
- 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
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
.snackbar-message {
|
|
2
|
-
display: flex;
|
|
3
|
-
justify-content: space-between;
|
|
4
|
-
align-items: center;
|
|
5
|
-
gap: 12px;
|
|
6
|
-
padding: 10px 16px;
|
|
7
|
-
border-radius: 6px;
|
|
8
|
-
color: var(--white);
|
|
9
|
-
font-size: 12px;
|
|
10
|
-
box-shadow: var(--border-shadow-color);
|
|
11
|
-
font-family: var(--font-family);
|
|
12
|
-
width: 100%;
|
|
13
|
-
max-width: 360px;
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
background-color: var(--background-color); // Fallback
|
|
16
|
-
border: 1px solid transparent;
|
|
17
|
-
|
|
18
|
-
&.type-error {
|
|
19
|
-
background-color: color-mix(in srgb, var(--red), var(--white) 60%);
|
|
20
|
-
border-color: var(--red);
|
|
21
|
-
|
|
22
|
-
.alert-icon {
|
|
23
|
-
color: var(--red);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.close-icon:hover {
|
|
27
|
-
background-color: var(--red);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&.type-success {
|
|
32
|
-
background-color: color-mix(in srgb, var(--green), var(--white) 60%);
|
|
33
|
-
border-color: var(--green);
|
|
34
|
-
|
|
35
|
-
.alert-icon {
|
|
36
|
-
color: var(--green);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.close-icon:hover {
|
|
40
|
-
background-color: var(--green);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.type-warn {
|
|
45
|
-
background-color: color-mix(in srgb, var(--orange), var(--white) 60%);
|
|
46
|
-
border-color: var(--orange);
|
|
47
|
-
|
|
48
|
-
.alert-icon {
|
|
49
|
-
color: var(--orange);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.close-icon:hover {
|
|
53
|
-
background-color: var(--orange);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&.type-info {
|
|
58
|
-
// using primary color or a blue
|
|
59
|
-
background-color: color-mix(in srgb, var(--blue), var(--white) 60%);
|
|
60
|
-
border-color: var(--blue);
|
|
61
|
-
|
|
62
|
-
.alert-icon {
|
|
63
|
-
color: var(--blue);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.close-icon:hover {
|
|
67
|
-
background-color: var(--blue);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.error-content {
|
|
73
|
-
display: flex;
|
|
74
|
-
align-items: center;
|
|
75
|
-
gap: 10px;
|
|
76
|
-
min-width: 0;
|
|
77
|
-
flex: 1;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.alert-icon {
|
|
81
|
-
font-size: 18px;
|
|
82
|
-
flex-shrink: 0;
|
|
83
|
-
display: flex;
|
|
84
|
-
align-items: center;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.error-text {
|
|
88
|
-
flex: 1;
|
|
89
|
-
text-align: left;
|
|
90
|
-
overflow: hidden;
|
|
91
|
-
white-space: nowrap;
|
|
92
|
-
text-overflow: ellipsis;
|
|
93
|
-
color: var(--black); // Ensure text is visible on light bg
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.close-icon {
|
|
97
|
-
color: var(--black);
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
font-size: 18px;
|
|
100
|
-
width: 24px;
|
|
101
|
-
height: 24px;
|
|
102
|
-
display: flex;
|
|
103
|
-
align-items: center;
|
|
104
|
-
justify-content: center;
|
|
105
|
-
border-radius: 50%;
|
|
106
|
-
opacity: 0.7;
|
|
107
|
-
flex-shrink: 0;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.close-icon:hover {
|
|
111
|
-
opacity: 1;
|
|
112
|
-
background-color: var(--red);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@keyframes fadeIn {
|
|
116
|
-
from {
|
|
117
|
-
opacity: 0;
|
|
118
|
-
transform: translateY(-5px);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
to {
|
|
122
|
-
opacity: 1;
|
|
123
|
-
transform: translateY(0);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { SnackBar } from './snackbar.component';
|
|
4
|
-
describe('ErrorBanner', () => {
|
|
5
|
-
let component: SnackBar;
|
|
6
|
-
let fixture: ComponentFixture<SnackBar>;
|
|
7
|
-
|
|
8
|
-
beforeEach(async () => {
|
|
9
|
-
await TestBed.configureTestingModule({
|
|
10
|
-
imports: [SnackBar],
|
|
11
|
-
}).compileComponents();
|
|
12
|
-
|
|
13
|
-
fixture = TestBed.createComponent(SnackBar);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Component, inject, OnInit } from '@angular/core';
|
|
2
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { MAT_SNACK_BAR_DATA, MatSnackBarRef } from '@angular/material/snack-bar';
|
|
5
|
-
import { SnackBarError } from '../../core/types/snackbar-error.type';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'app-snackbar',
|
|
9
|
-
templateUrl: './snackbar.component.html',
|
|
10
|
-
styleUrls: ['./snackbar.component.scss'],
|
|
11
|
-
standalone: true,
|
|
12
|
-
imports: [MatIconModule, CommonModule],
|
|
13
|
-
})
|
|
14
|
-
export class SnackBar implements OnInit {
|
|
15
|
-
private snackBarRef = inject(MatSnackBarRef);
|
|
16
|
-
private data = inject(MAT_SNACK_BAR_DATA);
|
|
17
|
-
|
|
18
|
-
public message: string | null = null;
|
|
19
|
-
public type: SnackBarError = 'error';
|
|
20
|
-
|
|
21
|
-
ngOnInit() {
|
|
22
|
-
this.message = this.data.message;
|
|
23
|
-
this.type = this.data.type || 'error';
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
close() {
|
|
27
|
-
this.snackBarRef.dismiss();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
get icon(): string {
|
|
31
|
-
switch (this.type) {
|
|
32
|
-
case 'success':
|
|
33
|
-
return 'check_circle';
|
|
34
|
-
case 'error':
|
|
35
|
-
return 'error';
|
|
36
|
-
case 'warn':
|
|
37
|
-
return 'warning';
|
|
38
|
-
case 'info':
|
|
39
|
-
return 'info';
|
|
40
|
-
default:
|
|
41
|
-
return 'info';
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { inject, Injectable } from '@angular/core';
|
|
2
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
3
|
-
import { SnackBarError } from '../../core/types/snackbar-error.type';
|
|
4
|
-
import { SnackBar } from './snackbar.component';
|
|
5
|
-
import { SnackbarUtils } from './snackbar.utils';
|
|
6
|
-
|
|
7
|
-
export interface SnackbarConfig {
|
|
8
|
-
message: string;
|
|
9
|
-
duration?: number;
|
|
10
|
-
type: SnackBarError;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@Injectable({
|
|
14
|
-
providedIn: 'root',
|
|
15
|
-
})
|
|
16
|
-
export class SnackbarService {
|
|
17
|
-
private snackBar = inject(MatSnackBar);
|
|
18
|
-
|
|
19
|
-
constructor() {
|
|
20
|
-
SnackbarUtils.init(this);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Generic show method
|
|
24
|
-
private show(message: string, duration: number, type: SnackBarError) {
|
|
25
|
-
this.snackBar.openFromComponent(SnackBar, {
|
|
26
|
-
duration: duration,
|
|
27
|
-
data: { message, type },
|
|
28
|
-
horizontalPosition: 'end',
|
|
29
|
-
verticalPosition: 'bottom',
|
|
30
|
-
panelClass: [`snackbar-${type}`]
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// Convenience methods
|
|
35
|
-
success(message: string, duration: number = 3000) {
|
|
36
|
-
this.show(message, duration, 'success');
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
warn(message: string, duration: number = 5000) {
|
|
40
|
-
this.show(message, duration, 'warn');
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
error(message: string, duration: number = 5000) {
|
|
44
|
-
this.show(message, duration, 'error');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
info(message: string, duration: number = 4000) {
|
|
48
|
-
this.show(message, duration, 'info');
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
clear() {
|
|
52
|
-
this.snackBar.dismiss();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
// Include theming for Angular Material with `mat.theme()`.
|
|
2
|
-
// This Sass mixin will define CSS variables that are used for styling Angular Material
|
|
3
|
-
// components according to the Material 3 design spec.
|
|
4
|
-
// Learn more about theming and how to use it for your application's
|
|
5
|
-
// custom components at https://material.angular.dev/guide/theming
|
|
6
|
-
@use '@angular/material' as mat;
|
|
7
|
-
|
|
8
|
-
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
|
|
9
|
-
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
|
|
10
|
-
|
|
11
|
-
// Light theme
|
|
12
|
-
// Light theme
|
|
13
|
-
$light-primary: mat.define-palette(mat.$deep-purple-palette);
|
|
14
|
-
$light-accent: mat.define-palette(mat.$orange-palette);
|
|
15
|
-
$light-theme: mat.define-light-theme(
|
|
16
|
-
(
|
|
17
|
-
color: (
|
|
18
|
-
primary: $light-primary,
|
|
19
|
-
accent: $light-accent,
|
|
20
|
-
),
|
|
21
|
-
typography: mat.define-typography-config(
|
|
22
|
-
$font-family: 'Roboto',
|
|
23
|
-
),
|
|
24
|
-
)
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
// Dark theme
|
|
28
|
-
$dark-primary: mat.define-palette(mat.$orange-palette);
|
|
29
|
-
$dark-accent: mat.define-palette(mat.$deep-purple-palette);
|
|
30
|
-
$dark-theme: mat.define-dark-theme(
|
|
31
|
-
(
|
|
32
|
-
color: (
|
|
33
|
-
primary: $dark-primary,
|
|
34
|
-
accent: $dark-accent,
|
|
35
|
-
),
|
|
36
|
-
typography: mat.define-typography-config(
|
|
37
|
-
$font-family: 'Roboto',
|
|
38
|
-
),
|
|
39
|
-
)
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
:root {
|
|
43
|
-
// Default: system preference
|
|
44
|
-
@include mat.all-component-themes($light-theme);
|
|
45
|
-
|
|
46
|
-
// ---------- Global Theme Variables ----------
|
|
47
|
-
--font-family: 'Roboto', Arial, sans-serif;
|
|
48
|
-
--primary-color: #2800ff;
|
|
49
|
-
--primary-color-rgb: 40, 0, 255;
|
|
50
|
-
--secondary-color: #08dacf;
|
|
51
|
-
--background-color: #f8f9fa;
|
|
52
|
-
--chat-input-color: var(--background-color);
|
|
53
|
-
--text-alt-color: #000000;
|
|
54
|
-
--button-color: #000000;
|
|
55
|
-
--text-color: #333;
|
|
56
|
-
--secondary-text-color: #858585;
|
|
57
|
-
--hint-text-color: #858585;
|
|
58
|
-
--user-message-color: var(--primary-color);
|
|
59
|
-
--bot-message-color: #e9ecef;
|
|
60
|
-
--user-text-color: #ffffff;
|
|
61
|
-
--bot-text-color: #333;
|
|
62
|
-
--border-color: #ccc;
|
|
63
|
-
--border-color-rgb: 204, 204, 204;
|
|
64
|
-
--border-shadow-color: 0 4px 16px rgba(0, 0, 0, 0.25);
|
|
65
|
-
--border-top-color: #dddddd00;
|
|
66
|
-
--typing-indicator-color: #999;
|
|
67
|
-
--avatar-filter: invert(48%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(96%) contrast(91%);
|
|
68
|
-
|
|
69
|
-
--white: #ffffff;
|
|
70
|
-
--white-rgb: 255, 255, 255;
|
|
71
|
-
--black: #000000;
|
|
72
|
-
--black-rgb: 0, 0, 0;
|
|
73
|
-
--grey: #6c757d;
|
|
74
|
-
--red: #ff0000;
|
|
75
|
-
--light-red: #f28b8b;
|
|
76
|
-
--green: #4caf50;
|
|
77
|
-
--orange: #ff9800;
|
|
78
|
-
--blue: #2196f3;
|
|
79
|
-
--mat-menu-bg: var(--primary-color);
|
|
80
|
-
|
|
81
|
-
// Global overrides for Material components
|
|
82
|
-
// Global overrides for Material components
|
|
83
|
-
// @include mat.theme-overrides((button-container-shape: 5px,
|
|
84
|
-
// dialog-container-shape: 12px,
|
|
85
|
-
// menu-container-shape: 5px,
|
|
86
|
-
// card-container-shape: 12px,
|
|
87
|
-
// form-field-container-shape: 5px,
|
|
88
|
-
//
|
|
89
|
-
// // Bridge: Link Material roles to our custom variables
|
|
90
|
-
// primary: var(--primary-color),
|
|
91
|
-
// on-primary: var(--user-text-color),
|
|
92
|
-
// surface: var(--background-color),
|
|
93
|
-
// on-surface: var(--text-color),
|
|
94
|
-
// outline: var(--border-color),
|
|
95
|
-
// ));
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// ---------- Theme classes (apply to html or body) ----------
|
|
99
|
-
.light-theme {
|
|
100
|
-
@include mat.all-component-themes($light-theme);
|
|
101
|
-
// Uses defaults from :root
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.dark-theme {
|
|
105
|
-
@include mat.all-component-themes($dark-theme);
|
|
106
|
-
|
|
107
|
-
// Overrides for Dark Mode
|
|
108
|
-
--background-color: #1a1717;
|
|
109
|
-
--chat-input-color: var(--background-color);
|
|
110
|
-
--text-alt-color: #ffffff;
|
|
111
|
-
--button-color: #ffffff;
|
|
112
|
-
--text-color: #f5f5f5;
|
|
113
|
-
--secondary-text-color: #a1a1a1;
|
|
114
|
-
--hint-text-color: #a1a1a1;
|
|
115
|
-
--user-message-color: var(--primary-color);
|
|
116
|
-
--bot-message-color: #333;
|
|
117
|
-
--user-text-color: #fff;
|
|
118
|
-
--bot-text-color: #fff;
|
|
119
|
-
--border-color: #444;
|
|
120
|
-
--border-color-rgb: 68, 68, 68;
|
|
121
|
-
--border-shadow-color: 0 4px 16px rgba(0, 0, 0, 0.75);
|
|
122
|
-
--border-top-color: #44444400;
|
|
123
|
-
--typing-indicator-color: #bbb;
|
|
124
|
-
--avatar-filter: invert(100%) brightness(100%);
|
|
125
|
-
--grey: #9ca3af;
|
|
126
|
-
--mat-menu-bg: var(--primary-color);
|
|
127
|
-
|
|
128
|
-
// Potential semantic adjustments for dark mode
|
|
129
|
-
--green: #81c784;
|
|
130
|
-
--orange: #ffb74d;
|
|
131
|
-
--blue: #64b5f6;
|
|
132
|
-
}
|
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
// ================================
|
|
4
|
-
// Manual CSS Overrides
|
|
5
|
-
// ================================
|
|
6
|
-
|
|
7
|
-
// ================================
|
|
8
|
-
// Custom Snackbar Overrides
|
|
9
|
-
// ================================
|
|
10
|
-
|
|
11
|
-
.mat-mdc-snack-bar-container {
|
|
12
|
-
&.mdc-snackbar {
|
|
13
|
-
background: transparent !important;
|
|
14
|
-
box-shadow: none !important;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.mdc-snackbar__surface {
|
|
18
|
-
background: transparent !important;
|
|
19
|
-
box-shadow: none !important;
|
|
20
|
-
padding: 0 !important;
|
|
21
|
-
min-width: 0 !important;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.mdc-snackbar__label {
|
|
25
|
-
padding: 0 !important;
|
|
26
|
-
width: 100%;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// ==========================================
|
|
31
|
-
// Global Material Button Overrides
|
|
32
|
-
// ==========================================
|
|
33
|
-
|
|
34
|
-
.mat-mdc-button-base {
|
|
35
|
-
transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1),
|
|
36
|
-
box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
|
|
37
|
-
|
|
38
|
-
&:hover {
|
|
39
|
-
transform: translateY(-1px);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:active {
|
|
43
|
-
transform: translateY(0);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Raised and Flat variant elevation enhancements
|
|
48
|
-
.mat-mdc-raised-button,
|
|
49
|
-
.mat-mdc-unelevated-button {
|
|
50
|
-
&:hover:not(:disabled) {
|
|
51
|
-
box-shadow: 0 4px 12px rgba(var(--black-rgb), 0.15) !important;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// Icon button specific interaction
|
|
56
|
-
.mat-mdc-icon-button {
|
|
57
|
-
transition: transform 0.2s ease !important;
|
|
58
|
-
|
|
59
|
-
&:hover {
|
|
60
|
-
transform: scale(1.1);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&:active {
|
|
64
|
-
transform: scale(0.95);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// Consistency for all variants
|
|
69
|
-
.mdc-button,
|
|
70
|
-
.mat-mdc-button,
|
|
71
|
-
.mat-mdc-raised-button,
|
|
72
|
-
.mat-mdc-unelevated-button,
|
|
73
|
-
.mat-mdc-stroked-button {
|
|
74
|
-
border-radius: var(--button-container-shape, 5px) !important;
|
|
75
|
-
|
|
76
|
-
// Link state layers to theme
|
|
77
|
-
.mat-ripple {
|
|
78
|
-
opacity: 0.1 !important;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// ==========================================
|
|
83
|
-
// Shared Component Overrides
|
|
84
|
-
// ==========================================
|
|
85
|
-
|
|
86
|
-
// Global Dialog Styling
|
|
87
|
-
.mat-mdc-dialog-container {
|
|
88
|
-
border-radius: 12px !important;
|
|
89
|
-
--mdc-dialog-container-color: var(--background-color) !important;
|
|
90
|
-
|
|
91
|
-
.mdc-dialog__surface {
|
|
92
|
-
border-radius: 12px !important;
|
|
93
|
-
overflow: hidden;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Global Select & Dropdown Styling
|
|
98
|
-
.mat-mdc-select-panel {
|
|
99
|
-
border-radius: 12px !important;
|
|
100
|
-
padding: 8px 0 !important;
|
|
101
|
-
box-shadow: 0 8px 24px rgba(var(--black-rgb), 0.12) !important;
|
|
102
|
-
border: 1px solid rgba(var(--black-rgb), 0.05) !important;
|
|
103
|
-
|
|
104
|
-
// Hide scrollbar for cleaner look
|
|
105
|
-
&::-webkit-scrollbar {
|
|
106
|
-
display: none;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.mat-mdc-option {
|
|
110
|
-
min-height: 44px !important;
|
|
111
|
-
|
|
112
|
-
&.mdc-list-item--selected:not(.mdc-list-item--disabled) {
|
|
113
|
-
.mdc-list-item__primary-text {
|
|
114
|
-
color: var(--primary-color) !important;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// Global Menu & Context Actions
|
|
121
|
-
.mat-mdc-menu-panel {
|
|
122
|
-
border-radius: 12px !important;
|
|
123
|
-
overflow: hidden !important;
|
|
124
|
-
border: 1px solid rgba(var(--black-rgb), 0.1) !important;
|
|
125
|
-
box-shadow: 0 8px 24px rgba(var(--black-rgb), 0.12) !important;
|
|
126
|
-
--mdc-menu-container-color: var(--background-color) !important;
|
|
127
|
-
|
|
128
|
-
.mat-mdc-menu-item:hover {
|
|
129
|
-
background-color: color-mix(in srgb, var(--primary-color), transparent 92%) !important;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// Consistent item styling
|
|
133
|
-
.mat-mdc-menu-item {
|
|
134
|
-
min-height: 44px !important;
|
|
135
|
-
font-size: 0.95rem !important;
|
|
136
|
-
font-weight: 500 !important;
|
|
137
|
-
|
|
138
|
-
.mat-icon {
|
|
139
|
-
margin-right: 12px !important;
|
|
140
|
-
font-size: 20px !important;
|
|
141
|
-
width: 20px !important;
|
|
142
|
-
height: 20px !important;
|
|
143
|
-
color: var(--secondary-text-color) !important;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// Basic Form Field resets (overridden below by more specific cases)
|
|
149
|
-
.mat-mdc-form-field {
|
|
150
|
-
width: 100%;
|
|
151
|
-
|
|
152
|
-
.mat-mdc-text-field-wrapper {
|
|
153
|
-
background: transparent !important;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// Global Tooltip Styling
|
|
158
|
-
.mat-mdc-tooltip {
|
|
159
|
-
--mdc-plain-tooltip-container-color: var(--black); // Standard dark tooltip
|
|
160
|
-
--mdc-plain-tooltip-supporting-text-color: var(--white);
|
|
161
|
-
border-radius: 6px !important;
|
|
162
|
-
font-size: 12px !important;
|
|
163
|
-
font-weight: 500 !important;
|
|
164
|
-
padding: 6px 10px !important;
|
|
165
|
-
backdrop-filter: blur(4px);
|
|
166
|
-
border: 1px solid rgba(var(--white-rgb), 0.1);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// --- Section Actions Pattern (Shared for Personalization Sections) ---
|
|
170
|
-
.section-actions {
|
|
171
|
-
display: flex;
|
|
172
|
-
align-items: center;
|
|
173
|
-
padding: 32px 0 0 0;
|
|
174
|
-
border-top: 1px solid rgba(var(--black-rgb), 0.05);
|
|
175
|
-
margin-top: auto; // Push to bottom of flex container
|
|
176
|
-
padding-top: 24px;
|
|
177
|
-
|
|
178
|
-
.spacer {
|
|
179
|
-
flex: 1;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.reset-btn {
|
|
183
|
-
background-color: var(--secondary-text-color) !important;
|
|
184
|
-
color: var(--white) !important;
|
|
185
|
-
border-radius: 8px !important;
|
|
186
|
-
padding: 0 24px !important;
|
|
187
|
-
height: 44px !important;
|
|
188
|
-
font-weight: 500;
|
|
189
|
-
|
|
190
|
-
&:hover {
|
|
191
|
-
background-color: var(--text-color) !important;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.save-btn {
|
|
196
|
-
background-color: var(--primary-color) !important;
|
|
197
|
-
color: var(--white) !important;
|
|
198
|
-
border-radius: 8px !important;
|
|
199
|
-
padding: 0 24px !important;
|
|
200
|
-
height: 44px !important;
|
|
201
|
-
font-weight: 500;
|
|
202
|
-
|
|
203
|
-
&:disabled {
|
|
204
|
-
background-color: rgba(var(--black-rgb), 0.05) !important;
|
|
205
|
-
color: rgba(var(--black-rgb), 0.3) !important;
|
|
206
|
-
box-shadow: none !important;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// Remove default padding from dialog content globally for custom layouts
|
|
212
|
-
.mat-mdc-dialog-content.no-padding {
|
|
213
|
-
padding: 0 !important;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
// Global Slide Toggle Styling
|
|
217
|
-
.mat-mdc-slide-toggle {
|
|
218
|
-
--mdc-switch-selected-handle-color: var(--white);
|
|
219
|
-
--mdc-switch-selected-track-color: var(--primary-color);
|
|
220
|
-
--mdc-switch-selected-focus-handle-color: var(--white);
|
|
221
|
-
--mdc-switch-selected-hover-handle-color: var(--white);
|
|
222
|
-
--mdc-switch-selected-pressed-handle-color: var(--white);
|
|
223
|
-
--mdc-switch-unselected-handle-color: var(--white);
|
|
224
|
-
--mdc-switch-unselected-track-color: rgba(var(--black-rgb), 0.1);
|
|
225
|
-
|
|
226
|
-
.mdc-switch__handle-track {
|
|
227
|
-
filter: drop-shadow(0 2px 4px rgba(var(--black-rgb), 0.1));
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
// Sleek Form Field Overrides (Personalization Hub Style)
|
|
232
|
-
.mat-mdc-form-field {
|
|
233
|
-
|
|
234
|
-
// Container & Interaction
|
|
235
|
-
.mat-mdc-text-field-wrapper {
|
|
236
|
-
background: rgba(var(--black-rgb), 0.04) !important;
|
|
237
|
-
border: 1px solid rgba(var(--black-rgb), 0.08);
|
|
238
|
-
border-radius: 8px !important;
|
|
239
|
-
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
240
|
-
cursor: text;
|
|
241
|
-
|
|
242
|
-
&:hover {
|
|
243
|
-
border-color: rgba(var(--black-rgb), 0.15);
|
|
244
|
-
background: rgba(var(--black-rgb), 0.05) !important;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
&.mat-focused .mat-mdc-text-field-wrapper {
|
|
249
|
-
border-color: var(--primary-color) !important;
|
|
250
|
-
box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1) !important;
|
|
251
|
-
background: var(--background-color) !important;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
// Input & Select Content Styling
|
|
255
|
-
.mat-mdc-form-field-infix {
|
|
256
|
-
padding-top: 10px !important;
|
|
257
|
-
padding-bottom: 10px !important;
|
|
258
|
-
min-height: auto !important;
|
|
259
|
-
display: flex;
|
|
260
|
-
align-items: center;
|
|
261
|
-
|
|
262
|
-
.mat-mdc-input-element,
|
|
263
|
-
.mat-mdc-select-value {
|
|
264
|
-
font-size: 0.95rem !important;
|
|
265
|
-
font-weight: 400 !important;
|
|
266
|
-
color: var(--text-color) !important;
|
|
267
|
-
|
|
268
|
-
&::placeholder {
|
|
269
|
-
color: var(--secondary-text-color) !important;
|
|
270
|
-
opacity: 0.6;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
// Handle "No Label" variant (removing Material's label layout)
|
|
276
|
-
&.no-label {
|
|
277
|
-
.mdc-notched-outline__notch {
|
|
278
|
-
display: none !important;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.mdc-floating-label {
|
|
282
|
-
display: none !important;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.mat-mdc-text-field-wrapper {
|
|
286
|
-
padding-top: 0 !important;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
// Remove the bottom space reserved for error/hints if subscriptSizing is ignored or dynamic
|
|
291
|
-
.mat-mdc-form-field-subscript-wrapper {
|
|
292
|
-
display: none !important;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
// Specific height for select to match inputs
|
|
296
|
-
&.mat-form-field-type-mat-select {
|
|
297
|
-
.mat-mdc-text-field-wrapper {
|
|
298
|
-
min-height: 44px !important;
|
|
299
|
-
height: 44px !important;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|