@gitlab/ui 102.0.0 → 102.1.1
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/CHANGELOG.md +19 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_context/constants.js +9 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_details_modal/duo_chat_context_item_details_modal.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_category_items.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_item.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_items.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_items_loading.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_popover/duo_chat_context_item_popover.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_selections/duo_chat_context_item_selections.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_context/mock_context_data.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_context/utils.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_conversation/duo_chat_conversation.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_message/buttons_utils.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_message/constants.js +9 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_message/copy_code_element.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_message/utils.js +9 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_message_sources/duo_chat_message_sources.js +8 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.js +8 -0
- package/dist/components/experimental/duo/chat/constants.js +9 -0
- package/dist/components/experimental/duo/chat/duo_chat.js +8 -0
- package/dist/components/experimental/duo/chat/markdown_renderer.js +8 -1
- package/dist/components/experimental/duo/chat/mock_data.js +8 -0
- package/dist/components/experimental/duo/user_feedback/user_feedback.js +8 -0
- package/dist/components/experimental/duo/user_feedback/user_feedback_modal.js +1 -0
- package/dist/components/experimental/duo/workflow/components/duo_workflow_panel/duo_workflow_panel.js +8 -0
- package/dist/components/experimental/duo/workflow/components/duo_workflow_prompt/duo_workflow_prompt.js +8 -0
- package/dist/index.css +7 -0
- package/dist/index.css.map +1 -0
- package/dist/index.js +115 -0
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/vendor/bootstrap-vue/src/components/collapse/collapse.js +1 -2
- package/dist/vendor/bootstrap-vue/src/constants/env.js +1 -10
- package/dist/vendor/bootstrap-vue/src/constants/key-codes.js +1 -2
- package/dist/vendor/bootstrap-vue/src/utils/plugins.js +1 -41
- package/package.json +3 -2
- package/src/components/experimental/duo/chat/components/duo_chat_context/constants.js +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_details_modal/duo_chat_context_item_details_modal.vue +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.md +12 -3
- package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.vue +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_category_items.vue +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_item.vue +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_items.vue +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_items_loading.vue +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_popover/duo_chat_context_item_popover.vue +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_selections/duo_chat_context_item_selections.vue +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_context/mock_context_data.js +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_context/utils.js +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_conversation/duo_chat_conversation.md +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_conversation/duo_chat_conversation.vue +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.md +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.scss +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.vue +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_message/buttons_utils.js +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_message/constants.js +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_message/copy_code_element.js +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.scss +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.vue +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_message/insert_code_snippet_element.js +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_message/utils.js +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_message_sources/duo_chat_message_sources.md +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_message_sources/duo_chat_message_sources.vue +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.md +9 -0
- package/src/components/experimental/duo/chat/components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.vue +9 -0
- package/src/components/experimental/duo/chat/constants.js +9 -0
- package/src/components/experimental/duo/chat/duo_chat.md +8 -0
- package/src/components/experimental/duo/chat/duo_chat.scss +9 -0
- package/src/components/experimental/duo/chat/duo_chat.vue +9 -0
- package/src/components/experimental/duo/chat/markdown_renderer.js +9 -0
- package/src/components/experimental/duo/chat/mock_data.js +9 -0
- package/src/components/experimental/duo/chat/variables.scss +9 -1
- package/src/components/experimental/duo/user_feedback/user_feedback.md +9 -0
- package/src/components/experimental/duo/user_feedback/user_feedback.vue +9 -0
- package/src/components/experimental/duo/user_feedback/user_feedback_modal.vue +6 -0
- package/src/components/experimental/duo/workflow/components/duo_workflow_panel/duo_workflow_panel.md +9 -0
- package/src/components/experimental/duo/workflow/components/duo_workflow_panel/duo_workflow_panel.vue +9 -0
- package/src/components/experimental/duo/workflow/components/duo_workflow_prompt/duo_workflow_prompt.md +9 -0
- package/src/components/experimental/duo/workflow/components/duo_workflow_prompt/duo_workflow_prompt.vue +9 -0
- package/src/index.js +130 -0
- package/src/vendor/bootstrap/scss/_reboot.scss +2 -5
- package/src/vendor/bootstrap-vue/src/components/collapse/collapse.js +1 -1
- package/src/vendor/bootstrap-vue/src/constants/env.js +0 -14
- package/src/vendor/bootstrap-vue/src/constants/key-codes.js +0 -1
- package/src/vendor/bootstrap-vue/src/utils/plugins.js +0 -33
- package/tailwind.defaults.js +9 -0
- package/dist/vendor/bootstrap-vue/src/browser.js +0 -8
- package/dist/vendor/bootstrap-vue/src/constants/classes.js +0 -3
- package/src/vendor/bootstrap-vue/src/browser.js +0 -9
- package/src/vendor/bootstrap-vue/src/constants/classes.js +0 -1
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
/**
|
|
3
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
4
|
+
*
|
|
5
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
6
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
7
|
+
*
|
|
8
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
9
|
+
*/
|
|
10
|
+
|
|
2
11
|
import GlDuoChatMessage from '../duo_chat_message/duo_chat_message.vue';
|
|
3
12
|
import { translate } from '../../../../../../utils/i18n';
|
|
4
13
|
|
|
@@ -1 +1,10 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
|
|
4
|
+
Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
|
|
7
|
+
For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
-->
|
|
9
|
+
|
|
1
10
|
The Duo Chat loader. Is shown while waiting for the chat response.
|
package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.scss
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
*
|
|
4
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
*
|
|
7
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
.duo-chat-loader {
|
|
2
11
|
@apply gl-flex;
|
|
3
12
|
@apply gl-text-gray-500;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
/**
|
|
3
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
4
|
+
*
|
|
5
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
6
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
7
|
+
*
|
|
8
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
9
|
+
*/
|
|
10
|
+
|
|
2
11
|
import { translate } from '../../../../../../utils/i18n';
|
|
3
12
|
import GlSprintf from '../../../../../utilities/sprintf/sprintf.vue';
|
|
4
13
|
import GlAnimatedLoaderIcon from '../../../../../base/animated_icon/animated_loader_icon.vue';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
*
|
|
4
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
*
|
|
7
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
import iconsPath from '@gitlab/svgs/dist/icons.svg';
|
|
2
11
|
|
|
3
12
|
export const createButton = (title = 'Insert the code snippet', iconId = 'insert') => {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
*
|
|
4
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
*
|
|
7
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
export const DUO_CODE_SCRIM_TOP_CLASS = 'scrim-top';
|
|
2
11
|
export const DUO_CODE_SCRIM_BOTTOM_CLASS = 'scrim-bottom';
|
|
3
12
|
export const DUO_CODE_SCRIM_OFFSET = 16;
|
package/src/components/experimental/duo/chat/components/duo_chat_message/copy_code_element.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
*
|
|
4
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
*
|
|
7
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
import { createButton } from './buttons_utils';
|
|
2
11
|
|
|
3
12
|
export class CopyCodeElement extends HTMLElement {
|
package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.scss
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
*
|
|
4
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
*
|
|
7
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
@import '../../variables';
|
|
2
11
|
|
|
3
12
|
.duo-chat-message {
|
package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.vue
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
/**
|
|
3
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
4
|
+
*
|
|
5
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
6
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
7
|
+
*
|
|
8
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
9
|
+
*/
|
|
10
|
+
|
|
2
11
|
import throttle from 'lodash/throttle';
|
|
3
12
|
import GlIcon from '../../../../../base/icon/icon.vue';
|
|
4
13
|
import GlAnimatedLoaderIcon from '../../../../../base/animated_icon/animated_loader_icon.vue';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
*
|
|
4
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
*
|
|
7
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
import { createButton } from './buttons_utils';
|
|
2
11
|
|
|
3
12
|
const CODE_MARKDOWN_CLASS = 'js-markdown-code';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
*
|
|
4
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
*
|
|
7
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
export const concatUntilEmpty = (arr) => {
|
|
2
11
|
if (!arr) return '';
|
|
3
12
|
|
|
@@ -1 +1,10 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
|
|
4
|
+
Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
|
|
7
|
+
For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
-->
|
|
9
|
+
|
|
1
10
|
A simple component to list documentation sources for a documentation-related AI response messages.
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
/**
|
|
3
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
4
|
+
*
|
|
5
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
6
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
7
|
+
*
|
|
8
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
9
|
+
*/
|
|
10
|
+
|
|
2
11
|
import { translatePlural } from '../../../../../../utils/i18n';
|
|
3
12
|
import GlIcon from '../../../../../base/icon/icon.vue';
|
|
4
13
|
import GlLink from '../../../../../base/link/link.vue';
|
|
@@ -1 +1,10 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
|
|
4
|
+
Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
|
|
7
|
+
For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
-->
|
|
9
|
+
|
|
1
10
|
The component is a simple list of strings representing possible prompts to AI.
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
/**
|
|
3
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
4
|
+
*
|
|
5
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
6
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
7
|
+
*
|
|
8
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
9
|
+
*/
|
|
10
|
+
|
|
2
11
|
import GlButton from '../../../../../base/button/button.vue';
|
|
3
12
|
|
|
4
13
|
export default {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
*
|
|
4
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
*
|
|
7
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
export const CHAT_RESET_MESSAGE = '/reset';
|
|
2
11
|
export const CHAT_CLEAR_MESSAGE = '/clear';
|
|
3
12
|
export const CHAT_INCLUDE_MESSAGE = '/include';
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
|
|
4
|
+
Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
|
|
7
|
+
For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
-->
|
|
1
9
|
The component represents the complete Duo Chat feature.
|
|
2
10
|
|
|
3
11
|
The component provides a configurable chat UI interface. The primary use is communication with
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
*
|
|
4
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
*
|
|
7
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
@import 'variables';
|
|
2
11
|
|
|
3
12
|
.duo-chat {
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
/**
|
|
3
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
4
|
+
*
|
|
5
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
6
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
7
|
+
*
|
|
8
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
9
|
+
*/
|
|
10
|
+
|
|
2
11
|
import throttle from 'lodash/throttle';
|
|
3
12
|
import emptySvg from '@gitlab/svgs/dist/illustrations/empty-state/empty-activity-md.svg';
|
|
4
13
|
import GlDropdownItem from '../../../base/dropdown/dropdown_item.vue';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
*
|
|
4
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
*
|
|
7
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
// eslint-disable-next-line no-restricted-imports
|
|
2
11
|
import { Marked } from 'marked';
|
|
3
12
|
import markedBidi from 'marked-bidi';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
*
|
|
4
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
*
|
|
7
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
import { setStoryTimeout } from '../../../../utils/test_utils';
|
|
2
11
|
import {
|
|
3
12
|
DOCUMENTATION_SOURCE_TYPES,
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
*
|
|
4
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
*
|
|
7
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
*/
|
|
9
|
+
$duo-chat-scrim-gradient: linear-gradient(to bottom, var(--gl-color-alpha-0), var(--gl-background-color-default));
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
|
|
4
|
+
Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
|
|
7
|
+
For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
-->
|
|
9
|
+
|
|
1
10
|
The main entry point component for gathering the user feedback for AI features.
|
|
2
11
|
|
|
3
12
|
The component consists of a textual button and a connected modal with the actual form, emitting
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
/**
|
|
3
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
4
|
+
*
|
|
5
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
6
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
7
|
+
*
|
|
8
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
9
|
+
*/
|
|
10
|
+
|
|
2
11
|
import GlAlert from '../../../base/alert/alert.vue';
|
|
3
12
|
import GlButton from '../../../base/button/button.vue';
|
|
4
13
|
import FeedbackModal from './user_feedback_modal.vue';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/** * This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
2
|
+
* * Please use the corresponding component in Duo-UI going forward. * All future development and
|
|
3
|
+
maintenance for Duo components should take place in Duo-UI. * * For more details, see the migration
|
|
4
|
+
epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in
|
|
5
|
+
#g_duo_chat. */
|
|
6
|
+
|
|
1
7
|
<script>
|
|
2
8
|
import GlModal from '../../../base/modal/modal.vue';
|
|
3
9
|
import GlAlert from '../../../base/alert/alert.vue';
|
package/src/components/experimental/duo/workflow/components/duo_workflow_panel/duo_workflow_panel.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
|
|
4
|
+
Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
|
|
7
|
+
For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
-->
|
|
9
|
+
|
|
1
10
|
This is the main UI panel used in the larger Duo Workflow Plan UI for the IDE
|
|
2
11
|
and WebUI.
|
|
3
12
|
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
/**
|
|
3
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
4
|
+
*
|
|
5
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
6
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
7
|
+
*
|
|
8
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
9
|
+
*/
|
|
10
|
+
|
|
2
11
|
import GlIcon from '../../../../../base/icon/icon.vue';
|
|
3
12
|
import GlCollapse from '../../../../../base/collapse/collapse.vue';
|
|
4
13
|
import GlButton from '../../../../../base/button/button.vue';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
3
|
+
|
|
4
|
+
Please use the corresponding component in Duo-UI going forward.
|
|
5
|
+
All future development and maintenance for Duo components should take place in Duo-UI.
|
|
6
|
+
|
|
7
|
+
For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
8
|
+
-->
|
|
9
|
+
|
|
1
10
|
This is the UI panel to capture the user's AI prompt for Duo Workflow. This
|
|
2
11
|
prompt is emitted upwards so it may be sent to the Duo Workflow service.
|
|
3
12
|
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
/**
|
|
3
|
+
* This component has been migrated to the Duo-UI library (https://gitlab.com/gitlab-org/duo-ui).
|
|
4
|
+
*
|
|
5
|
+
* Please use the corresponding component in Duo-UI going forward.
|
|
6
|
+
* All future development and maintenance for Duo components should take place in Duo-UI.
|
|
7
|
+
*
|
|
8
|
+
* For more details, see the migration epic: https://gitlab.com/groups/gitlab-org/-/epics/15344 or reach out to the Duo-Chat team in #g_duo_chat.
|
|
9
|
+
*/
|
|
10
|
+
|
|
2
11
|
import GlDuoWorkflowPanel from '../duo_workflow_panel/duo_workflow_panel.vue';
|
|
3
12
|
import GlButton from '../../../../../base/button/button.vue';
|
|
4
13
|
import GlFormGroup from '../../../../../base/form/form_group/form_group.vue';
|
package/src/index.js
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// DO NOT REMOVE
|
|
2
|
+
/* auto-inject-styles */
|
|
3
|
+
// The line above serves as a token for rollup-plugin-replace to inject styles in production
|
|
4
|
+
// builds. We do this to avoid having the stylesheet included multiple times in Storybook.
|
|
5
|
+
|
|
6
|
+
// Components
|
|
7
|
+
// ADD COMPONENT EXPORTS - needed for yarn generate:component. Do not remove
|
|
8
|
+
export { default as GlDuoWorkflowPrompt } from './components/experimental/duo/workflow/components/duo_workflow_prompt/duo_workflow_prompt.vue';
|
|
9
|
+
export { default as GlDuoWorkflowPanel } from './components/experimental/duo/workflow/components/duo_workflow_panel/duo_workflow_panel.vue';
|
|
10
|
+
export { default as GlTableLite } from './components/base/table_lite/table_lite.vue';
|
|
11
|
+
export { default as GlDropdownForm } from './components/base/dropdown/dropdown_form.vue';
|
|
12
|
+
export { default as GlKeysetPagination } from './components/base/keyset_pagination/keyset_pagination.vue';
|
|
13
|
+
export { default as GlInputGroupText } from './components/base/form/input_group_text/input_group_text.vue';
|
|
14
|
+
export { default as GlFormCombobox } from './components/base/form/form_combobox/form_combobox.vue';
|
|
15
|
+
export { default as GlTokenSelector } from './components/base/token_selector/token_selector.vue';
|
|
16
|
+
export { default as GlNavItemDropdown } from './components/base/nav/nav_item_dropdown.vue';
|
|
17
|
+
export { default as GlNav } from './components/base/nav/nav.vue';
|
|
18
|
+
export { default as GlNavItem } from './components/base/nav/nav_item.vue';
|
|
19
|
+
export { default as GlFormCheckboxTree } from './components/base/form/form_checkbox_tree/form_checkbox_tree.vue';
|
|
20
|
+
export { default as GlMarkdown } from './components/base/markdown/markdown.vue';
|
|
21
|
+
export { default as GlIntersectionObserver } from './components/utilities/intersection_observer/intersection_observer.vue';
|
|
22
|
+
export { default as GlLink, default as GlDeprecatedLink } from './components/base/link/link.vue';
|
|
23
|
+
export { default as GlIcon } from './components/base/icon/icon.vue';
|
|
24
|
+
export { default as GlAnimatedChevronRightDownIcon } from './components/base/animated_icon/animated_chevron_right_down_icon.vue';
|
|
25
|
+
export { default as GlAnimatedDuoChatIcon } from './components/base/animated_icon/animated_duo_chat_icon.vue';
|
|
26
|
+
export { default as GlAnimatedLoaderIcon } from './components/base/animated_icon/animated_loader_icon.vue';
|
|
27
|
+
export { default as GlAnimatedNotificationIcon } from './components/base/animated_icon/animated_notifications_icon.vue';
|
|
28
|
+
export { default as GlAnimatedSidebarIcon } from './components/base/animated_icon/animated_sidebar_icon.vue';
|
|
29
|
+
export { default as GlAnimatedSmileIcon } from './components/base/animated_icon/animated_smile_icon.vue';
|
|
30
|
+
export { default as GlAnimatedSortIcon } from './components/base/animated_icon/animated_sort_icon.vue';
|
|
31
|
+
export { default as GlAnimatedStarIcon } from './components/base/animated_icon/animated_star_icon.vue';
|
|
32
|
+
export { default as GlAnimatedTodoIcon } from './components/base/animated_icon/animated_todo_icon.vue';
|
|
33
|
+
export { default as GlAnimatedUploadIcon } from './components/base/animated_icon/animated_upload_icon.vue';
|
|
34
|
+
export { default as GlLoadingIcon } from './components/base/loading_icon/loading_icon.vue';
|
|
35
|
+
export { default as GlModal } from './components/base/modal/modal.vue';
|
|
36
|
+
export { default as GlPagination } from './components/base/pagination/pagination.vue';
|
|
37
|
+
export { default as GlPaginatedList } from './components/base/paginated_list/paginated_list.vue';
|
|
38
|
+
export { default as GlPopover } from './components/base/popover/popover.vue';
|
|
39
|
+
export { default as GlProgressBar } from './components/base/progress_bar/progress_bar.vue';
|
|
40
|
+
export { default as GlToken } from './components/base/token/token.vue';
|
|
41
|
+
export { default as GlBadge } from './components/base/badge/badge.vue';
|
|
42
|
+
export { default as GlBanner } from './components/base/banner/banner.vue';
|
|
43
|
+
export { default as GlButton } from './components/base/button/button.vue';
|
|
44
|
+
export { default as GlTooltip } from './components/base/tooltip/tooltip.vue';
|
|
45
|
+
export { default as GlToast } from './components/base/toast/toast';
|
|
46
|
+
export { default as GlDashboardSkeleton } from './components/regions/dashboard_skeleton/dashboard_skeleton.vue';
|
|
47
|
+
export { default as GlEmptyState } from './components/regions/empty_state/empty_state.vue';
|
|
48
|
+
export { default as GlForm } from './components/base/form/form.vue';
|
|
49
|
+
export { default as GlFormCharacterCount } from './components/base/form/form_character_count/form_character_count.vue';
|
|
50
|
+
export { default as GlFormDate } from './components/base/form/form_date/form_date.vue';
|
|
51
|
+
export { default as GlFormInput } from './components/base/form/form_input/form_input.vue';
|
|
52
|
+
export { default as GlFormInputGroup } from './components/base/form/form_input_group/form_input_group.vue';
|
|
53
|
+
export { default as GlFormRadio } from './components/base/form/form_radio/form_radio.vue';
|
|
54
|
+
export { default as GlFormRadioGroup } from './components/base/form/form_radio_group/form_radio_group.vue';
|
|
55
|
+
export { default as GlFormSelect } from './components/base/form/form_select/form_select.vue';
|
|
56
|
+
export { default as GlFormTextarea } from './components/base/form/form_textarea/form_textarea.vue';
|
|
57
|
+
export { default as GlFormGroup } from './components/base/form/form_group/form_group.vue';
|
|
58
|
+
export { default as GlFormFields } from './components/base/form/form_fields/form_fields.vue';
|
|
59
|
+
export { default as GlSearchBoxByType } from './components/base/search_box_by_type/search_box_by_type.vue';
|
|
60
|
+
export { default as GlSearchBoxByClick } from './components/base/search_box_by_click/search_box_by_click.vue';
|
|
61
|
+
export { default as GlDropdownItem } from './components/base/dropdown/dropdown_item.vue';
|
|
62
|
+
export { default as GlDropdownSectionHeader } from './components/base/dropdown/dropdown_section_header.vue';
|
|
63
|
+
export { default as GlDropdownDivider } from './components/base/dropdown/dropdown_divider.vue';
|
|
64
|
+
export { default as GlDropdownText } from './components/base/dropdown/dropdown_text.vue';
|
|
65
|
+
export { default as GlDropdown } from './components/base/dropdown/dropdown.vue';
|
|
66
|
+
// new components aiming to replace GlDropdown - start
|
|
67
|
+
export { default as GlCollapsibleListbox } from './components/base/new_dropdowns/listbox/listbox.vue';
|
|
68
|
+
export { default as GlListboxItem } from './components/base/new_dropdowns/listbox/listbox_item.vue';
|
|
69
|
+
export { default as GlDisclosureDropdown } from './components/base/new_dropdowns/disclosure/disclosure_dropdown.vue';
|
|
70
|
+
export { default as GlDisclosureDropdownItem } from './components/base/new_dropdowns/disclosure/disclosure_dropdown_item.vue';
|
|
71
|
+
export { default as GlDisclosureDropdownGroup } from './components/base/new_dropdowns/disclosure/disclosure_dropdown_group.vue';
|
|
72
|
+
// new components aiming to replace GlDropdown - end
|
|
73
|
+
export { default as GlPath } from './components/base/path/path.vue';
|
|
74
|
+
export { default as GlTable } from './components/base/table/table.vue';
|
|
75
|
+
export { default as GlBreadcrumb } from './components/base/breadcrumb/breadcrumb.vue';
|
|
76
|
+
export { default as GlScrollableTabs } from './components/base/tabs/tabs/scrollable_tabs.vue';
|
|
77
|
+
export { default as GlTabs } from './components/base/tabs/tabs/tabs.vue';
|
|
78
|
+
export { default as GlTab } from './components/base/tabs/tab/tab.vue';
|
|
79
|
+
export { default as GlButtonGroup } from './components/base/button_group/button_group.vue';
|
|
80
|
+
export { default as GlFormCheckbox } from './components/base/form/form_checkbox/form_checkbox.vue';
|
|
81
|
+
export { default as GlFormCheckboxGroup } from './components/base/form/form_checkbox/form_checkbox_group.vue';
|
|
82
|
+
export { default as GlAvatar } from './components/base/avatar/avatar.vue';
|
|
83
|
+
export { default as GlAvatarsInline } from './components/base/avatars_inline/avatars_inline.vue';
|
|
84
|
+
export { default as GlAvatarLabeled } from './components/base/avatar_labeled/avatar_labeled.vue';
|
|
85
|
+
export { default as GlAvatarLink } from './components/base/avatar_link/avatar_link.vue';
|
|
86
|
+
export { default as GlLabel } from './components/base/label/label.vue';
|
|
87
|
+
export { default as GlDatepicker } from './components/base/datepicker/datepicker.vue';
|
|
88
|
+
export { default as GlDaterangePicker } from './components/base/daterange_picker/daterange_picker.vue';
|
|
89
|
+
export { default as GlToggle } from './components/base/toggle/toggle.vue';
|
|
90
|
+
export { default as GlSorting } from './components/base/sorting/sorting.vue';
|
|
91
|
+
export { default as GlInfiniteScroll } from './components/base/infinite_scroll/infinite_scroll.vue';
|
|
92
|
+
export { default as GlAlert } from './components/base/alert/alert.vue';
|
|
93
|
+
export { default as GlSegmentedControl } from './components/base/segmented_control/segmented_control.vue';
|
|
94
|
+
export { default as GlSkeletonLoader } from './components/base/skeleton_loader/skeleton_loader.vue';
|
|
95
|
+
export { default as GlDrawer } from './components/base/drawer/drawer.vue';
|
|
96
|
+
export { default as GlCard } from './components/base/card/card.vue';
|
|
97
|
+
export { default as GlFilteredSearchSuggestion } from './components/base/filtered_search/filtered_search_suggestion.vue';
|
|
98
|
+
export { default as GlFilteredSearchSuggestionList } from './components/base/filtered_search/filtered_search_suggestion_list.vue';
|
|
99
|
+
export { default as GlFilteredSearchTerm } from './components/base/filtered_search/filtered_search_term.vue';
|
|
100
|
+
export { default as GlFilteredSearchToken } from './components/base/filtered_search/filtered_search_token.vue';
|
|
101
|
+
export { default as GlFilteredSearchTokenSegment } from './components/base/filtered_search/filtered_search_token_segment.vue';
|
|
102
|
+
export { default as GlFilteredSearch } from './components/base/filtered_search/filtered_search.vue';
|
|
103
|
+
export { default as GlBroadcastMessage } from './components/base/broadcast_message/broadcast_message.vue';
|
|
104
|
+
export { default as GlCollapse } from './components/base/collapse/collapse.vue';
|
|
105
|
+
export { default as GlAccordion } from './components/base/accordion/accordion.vue';
|
|
106
|
+
export { default as GlAccordionItem } from './components/base/accordion/accordion_item.vue';
|
|
107
|
+
|
|
108
|
+
// Experimental
|
|
109
|
+
export { default as GlExperimentBadge } from './components/experimental/experiment_badge/experiment_badge.vue';
|
|
110
|
+
export { default as GlDuoUserFeedback } from './components/experimental/duo/user_feedback/user_feedback.vue';
|
|
111
|
+
export { default as GlDuoChat } from './components/experimental/duo/chat/duo_chat.vue';
|
|
112
|
+
export { default as GlDuoChatContextItemMenu } from './components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.vue';
|
|
113
|
+
|
|
114
|
+
// Utilities
|
|
115
|
+
export { default as GlAnimatedNumber } from './components/utilities/animated_number/animated_number.vue';
|
|
116
|
+
export { default as GlFriendlyWrap } from './components/utilities/friendly_wrap/friendly_wrap.vue';
|
|
117
|
+
export { default as GlIntersperse } from './components/utilities/intersperse/intersperse.vue';
|
|
118
|
+
export { default as GlSprintf } from './components/utilities/sprintf/sprintf.vue';
|
|
119
|
+
export { default as GlTruncate } from './components/utilities/truncate/truncate.vue';
|
|
120
|
+
export { default as GlTruncateText } from './components/utilities/truncate_text/truncate_text.vue';
|
|
121
|
+
|
|
122
|
+
// Directives
|
|
123
|
+
export { GlModalDirective } from './directives/modal';
|
|
124
|
+
export { GlTooltipDirective } from './directives/tooltip';
|
|
125
|
+
export { GlResizeObserverDirective } from './directives/resize_observer/resize_observer';
|
|
126
|
+
export { GlCollapseToggleDirective } from './directives/collapse_toggle';
|
|
127
|
+
export { SafeLinkDirective as GlSafeLinkDirective } from './directives/safe_link/safe_link';
|
|
128
|
+
export { SafeHtmlDirective as GlSafeHtmlDirective } from './directives/safe_html/safe_html';
|
|
129
|
+
export { OutsideDirective as GlOutsideDirective } from './directives/outside/outside';
|
|
130
|
+
export { HoverLoadDirective as GlHoverLoadDirective } from './directives/hover_load/hover_load';
|
|
@@ -39,8 +39,7 @@ article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
|
|
|
39
39
|
// Body
|
|
40
40
|
//
|
|
41
41
|
// 1. Remove the margin in all browsers.
|
|
42
|
-
// 2.
|
|
43
|
-
// 3. Set an explicit initial text-align value so that we can later use
|
|
42
|
+
// 2. Set an explicit initial text-align value so that we can later use
|
|
44
43
|
// the `inherit` value on things like `<th>` elements.
|
|
45
44
|
|
|
46
45
|
body {
|
|
@@ -49,9 +48,7 @@ body {
|
|
|
49
48
|
@include font-size($font-size-base);
|
|
50
49
|
font-weight: $font-weight-base;
|
|
51
50
|
line-height: $line-height-base;
|
|
52
|
-
|
|
53
|
-
text-align: left; // 3
|
|
54
|
-
background-color: $body-bg; // 2
|
|
51
|
+
text-align: left; // 2
|
|
55
52
|
}
|
|
56
53
|
|
|
57
54
|
// Future-proof rule: in browsers that support :focus-visible, suppress the focus outline
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { extend } from '../../vue'
|
|
2
2
|
import { NAME_COLLAPSE } from '../../constants/components'
|
|
3
|
-
import { CLASS_NAME_SHOW } from '../../constants/classes'
|
|
4
3
|
import {
|
|
5
4
|
EVENT_NAME_HIDDEN,
|
|
6
5
|
EVENT_NAME_HIDE,
|
|
@@ -20,6 +19,7 @@ import { normalizeSlotMixin } from '../../mixins/normalize-slot'
|
|
|
20
19
|
import { BVCollapse } from './helpers/bv-collapse'
|
|
21
20
|
|
|
22
21
|
// --- Constants ---
|
|
22
|
+
const CLASS_NAME_SHOW = 'show'
|
|
23
23
|
|
|
24
24
|
const ROOT_ACTION_EVENT_NAME_TOGGLE = getRootActionEventName(NAME_COLLAPSE, 'toggle')
|
|
25
25
|
const ROOT_ACTION_EVENT_NAME_REQUEST_STATE = getRootActionEventName(NAME_COLLAPSE, 'request-state')
|
|
@@ -15,7 +15,6 @@ export const NAVIGATOR = HAS_NAVIGATOR_SUPPORT ? navigator : {}
|
|
|
15
15
|
export const USER_AGENT = (NAVIGATOR.userAgent || '').toLowerCase()
|
|
16
16
|
|
|
17
17
|
export const IS_JSDOM = USER_AGENT.indexOf('jsdom') > 0
|
|
18
|
-
export const IS_IE = /msie|trident/.test(USER_AGENT)
|
|
19
18
|
|
|
20
19
|
// Determine if the browser supports the option passive for events
|
|
21
20
|
export const HAS_PASSIVE_EVENT_SUPPORT = (() => {
|
|
@@ -39,16 +38,3 @@ export const HAS_PASSIVE_EVENT_SUPPORT = (() => {
|
|
|
39
38
|
}
|
|
40
39
|
return passiveEventSupported
|
|
41
40
|
})()
|
|
42
|
-
|
|
43
|
-
export const HAS_POINTER_EVENT_SUPPORT =
|
|
44
|
-
IS_BROWSER && Boolean(WINDOW.PointerEvent || WINDOW.MSPointerEvent)
|
|
45
|
-
|
|
46
|
-
/* istanbul ignore next: JSDOM only checks for 'IntersectionObserver' */
|
|
47
|
-
export const HAS_INTERACTION_OBSERVER_SUPPORT =
|
|
48
|
-
IS_BROWSER &&
|
|
49
|
-
'IntersectionObserver' in WINDOW &&
|
|
50
|
-
'IntersectionObserverEntry' in WINDOW &&
|
|
51
|
-
// Edge 15 and UC Browser lack support for `isIntersecting`
|
|
52
|
-
// but we an use `intersectionRatio > 0` instead
|
|
53
|
-
// 'isIntersecting' in window.IntersectionObserverEntry.prototype &&
|
|
54
|
-
'intersectionRatio' in WINDOW.IntersectionObserverEntry.prototype
|