@gitlab/ui 131.3.0 → 131.3.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.
Files changed (383) hide show
  1. package/package.json +4 -4
  2. package/src/components/utilities/truncate/truncate.scss +3 -1
  3. package/src/scss/mixins.scss +3 -1
  4. package/tailwind.defaults.js +10 -1
  5. package/dist/charts.js +0 -13
  6. package/dist/components/base/accordion/accordion.js +0 -69
  7. package/dist/components/base/accordion/accordion_item.js +0 -160
  8. package/dist/components/base/accordion/constants.js +0 -3
  9. package/dist/components/base/alert/alert.js +0 -263
  10. package/dist/components/base/animated_icon/animated_chevron_down_up_icon.js +0 -45
  11. package/dist/components/base/animated_icon/animated_chevron_lg_down_up_icon.js +0 -45
  12. package/dist/components/base/animated_icon/animated_chevron_lg_right_down_icon.js +0 -45
  13. package/dist/components/base/animated_icon/animated_chevron_right_down_icon.js +0 -45
  14. package/dist/components/base/animated_icon/animated_duo_chat_icon.js +0 -45
  15. package/dist/components/base/animated_icon/animated_loader_icon.js +0 -45
  16. package/dist/components/base/animated_icon/animated_notifications_icon.js +0 -45
  17. package/dist/components/base/animated_icon/animated_sidebar_icon.js +0 -45
  18. package/dist/components/base/animated_icon/animated_smile_icon.js +0 -45
  19. package/dist/components/base/animated_icon/animated_sort_icon.js +0 -45
  20. package/dist/components/base/animated_icon/animated_star_icon.js +0 -45
  21. package/dist/components/base/animated_icon/animated_todo_icon.js +0 -45
  22. package/dist/components/base/animated_icon/animated_upload_icon.js +0 -45
  23. package/dist/components/base/animated_icon/base_animated_icon.js +0 -77
  24. package/dist/components/base/attribute_list/attribute_list.js +0 -100
  25. package/dist/components/base/avatar/avatar.js +0 -175
  26. package/dist/components/base/avatar/utils.js +0 -17
  27. package/dist/components/base/avatar_labeled/avatar_labeled.js +0 -198
  28. package/dist/components/base/avatar_link/avatar_link.js +0 -47
  29. package/dist/components/base/avatars_inline/avatars_inline.js +0 -139
  30. package/dist/components/base/badge/badge.js +0 -197
  31. package/dist/components/base/banner/banner.js +0 -149
  32. package/dist/components/base/breadcrumb/breadcrumb.js +0 -282
  33. package/dist/components/base/breadcrumb/breadcrumb_item.js +0 -96
  34. package/dist/components/base/broadcast_message/broadcast_message.js +0 -113
  35. package/dist/components/base/broadcast_message/constants.js +0 -5
  36. package/dist/components/base/button/button.js +0 -419
  37. package/dist/components/base/button_group/button_group.js +0 -53
  38. package/dist/components/base/card/card.js +0 -69
  39. package/dist/components/base/collapse/collapse.js +0 -163
  40. package/dist/components/base/color_mode_toggle/color_mode_toggle.js +0 -92
  41. package/dist/components/base/datepicker/datepicker.js +0 -475
  42. package/dist/components/base/daterange_picker/daterange_picker.js +0 -394
  43. package/dist/components/base/drawer/drawer.js +0 -156
  44. package/dist/components/base/dropdown/dropdown.js +0 -330
  45. package/dist/components/base/dropdown/dropdown_divider.js +0 -48
  46. package/dist/components/base/dropdown/dropdown_form.js +0 -48
  47. package/dist/components/base/dropdown/dropdown_item.js +0 -175
  48. package/dist/components/base/dropdown/dropdown_section_header.js +0 -48
  49. package/dist/components/base/dropdown/dropdown_text.js +0 -48
  50. package/dist/components/base/filtered_search/common_story_options.js +0 -14
  51. package/dist/components/base/filtered_search/filtered_search.js +0 -428
  52. package/dist/components/base/filtered_search/filtered_search_suggestion.js +0 -95
  53. package/dist/components/base/filtered_search/filtered_search_suggestion_list.js +0 -139
  54. package/dist/components/base/filtered_search/filtered_search_term.js +0 -217
  55. package/dist/components/base/filtered_search/filtered_search_token.js +0 -383
  56. package/dist/components/base/filtered_search/filtered_search_token_segment.js +0 -444
  57. package/dist/components/base/filtered_search/filtered_search_utils.js +0 -241
  58. package/dist/components/base/form/form.js +0 -43
  59. package/dist/components/base/form/form_character_count/form_character_count.js +0 -107
  60. package/dist/components/base/form/form_checkbox/form_checkbox.js +0 -342
  61. package/dist/components/base/form/form_checkbox/form_checkbox_group.js +0 -186
  62. package/dist/components/base/form/form_combobox/constants.js +0 -55
  63. package/dist/components/base/form/form_combobox/form_combobox.js +0 -239
  64. package/dist/components/base/form/form_date/form_date.js +0 -143
  65. package/dist/components/base/form/form_fields/form_field_validator.js +0 -93
  66. package/dist/components/base/form/form_fields/form_fields.js +0 -289
  67. package/dist/components/base/form/form_fields/form_fields_loop.js +0 -75
  68. package/dist/components/base/form/form_fields/mappers.js +0 -13
  69. package/dist/components/base/form/form_fields/validators.js +0 -48
  70. package/dist/components/base/form/form_group/form_group.js +0 -119
  71. package/dist/components/base/form/form_input/form_input.js +0 -695
  72. package/dist/components/base/form/form_input_group/form_input_group.js +0 -120
  73. package/dist/components/base/form/form_input_group/form_input_group_mixin.js +0 -41
  74. package/dist/components/base/form/form_radio/form_radio.js +0 -259
  75. package/dist/components/base/form/form_radio_group/form_radio_group.js +0 -187
  76. package/dist/components/base/form/form_select/constants.js +0 -12
  77. package/dist/components/base/form/form_select/form_select.js +0 -96
  78. package/dist/components/base/form/form_textarea/form_textarea.js +0 -166
  79. package/dist/components/base/form/input_group_text/input_group_text.js +0 -43
  80. package/dist/components/base/icon/icon.js +0 -113
  81. package/dist/components/base/illustration/illustration.js +0 -80
  82. package/dist/components/base/infinite_scroll/infinite_scroll.js +0 -196
  83. package/dist/components/base/keyset_pagination/keyset_pagination.js +0 -152
  84. package/dist/components/base/label/label.js +0 -174
  85. package/dist/components/base/link/link.js +0 -332
  86. package/dist/components/base/loading_icon/loading_icon.js +0 -120
  87. package/dist/components/base/markdown/markdown.js +0 -50
  88. package/dist/components/base/modal/modal.js +0 -259
  89. package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown.js +0 -716
  90. package/dist/components/base/new_dropdowns/base_dropdown/constants.js +0 -5
  91. package/dist/components/base/new_dropdowns/base_dropdown/dropdown_container.js +0 -32
  92. package/dist/components/base/new_dropdowns/constants.js +0 -24
  93. package/dist/components/base/new_dropdowns/disclosure/constants.js +0 -8
  94. package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown.js +0 -400
  95. package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown_group.js +0 -112
  96. package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown_item.js +0 -196
  97. package/dist/components/base/new_dropdowns/disclosure/mock_data.js +0 -168
  98. package/dist/components/base/new_dropdowns/disclosure/utils.js +0 -84
  99. package/dist/components/base/new_dropdowns/listbox/listbox.js +0 -997
  100. package/dist/components/base/new_dropdowns/listbox/listbox_group.js +0 -58
  101. package/dist/components/base/new_dropdowns/listbox/listbox_item.js +0 -112
  102. package/dist/components/base/new_dropdowns/listbox/listbox_search_input.js +0 -94
  103. package/dist/components/base/new_dropdowns/listbox/mock_data.js +0 -131
  104. package/dist/components/base/new_dropdowns/listbox/utils.js +0 -33
  105. package/dist/components/base/pagination/pagination.js +0 -397
  106. package/dist/components/base/path/data.js +0 -34
  107. package/dist/components/base/path/path.js +0 -177
  108. package/dist/components/base/popover/popover.js +0 -142
  109. package/dist/components/base/progress_bar/progress_bar.js +0 -117
  110. package/dist/components/base/search_box_by_click/search_box_by_click.js +0 -245
  111. package/dist/components/base/search_box_by_type/search_box_by_type.js +0 -187
  112. package/dist/components/base/segmented_control/segmented_control.js +0 -73
  113. package/dist/components/base/skeleton_loader/skeleton_loader.js +0 -232
  114. package/dist/components/base/sorting/sorting.js +0 -180
  115. package/dist/components/base/table/constants.js +0 -5
  116. package/dist/components/base/table/table.js +0 -187
  117. package/dist/components/base/table_lite/table_lite.js +0 -80
  118. package/dist/components/base/tabs/constants.js +0 -3
  119. package/dist/components/base/tabs/tab/tab.js +0 -113
  120. package/dist/components/base/tabs/tabs/scrollable_tabs.js +0 -162
  121. package/dist/components/base/tabs/tabs/tabs.js +0 -223
  122. package/dist/components/base/toast/index.js +0 -66
  123. package/dist/components/base/toast/toast.js +0 -125
  124. package/dist/components/base/toast/toaster.js +0 -87
  125. package/dist/components/base/toggle/toggle.js +0 -178
  126. package/dist/components/base/token/token.js +0 -97
  127. package/dist/components/base/token_selector/helpers.js +0 -5
  128. package/dist/components/base/token_selector/token_container.js +0 -160
  129. package/dist/components/base/token_selector/token_selector.js +0 -454
  130. package/dist/components/base/token_selector/token_selector_dropdown.js +0 -223
  131. package/dist/components/base/tooltip/tooltip.js +0 -54
  132. package/dist/components/charts/area/area.js +0 -329
  133. package/dist/components/charts/bar/bar.js +0 -207
  134. package/dist/components/charts/chart/chart.js +0 -215
  135. package/dist/components/charts/column/column.js +0 -221
  136. package/dist/components/charts/discrete_scatter/discrete_scatter.js +0 -199
  137. package/dist/components/charts/gauge/gauge.js +0 -205
  138. package/dist/components/charts/heatmap/heatmap.js +0 -299
  139. package/dist/components/charts/heatmap/index.js +0 -2
  140. package/dist/components/charts/legend/legend.js +0 -245
  141. package/dist/components/charts/line/line.js +0 -340
  142. package/dist/components/charts/series_label/series_label.js +0 -101
  143. package/dist/components/charts/shared/tooltip/tooltip.js +0 -369
  144. package/dist/components/charts/shared/tooltip/tooltip_default_format/tooltip_default_format.js +0 -53
  145. package/dist/components/charts/single_stat/single_stat.js +0 -164
  146. package/dist/components/charts/sparkline/sparkline.js +0 -299
  147. package/dist/components/charts/stacked_column/stacked_column.js +0 -380
  148. package/dist/components/dashboards/dashboard_layout/dashboard_layout.js +0 -125
  149. package/dist/components/dashboards/dashboard_layout/grid_layout/grid_layout.js +0 -326
  150. package/dist/components/dashboards/dashboard_layout/validators.js +0 -14
  151. package/dist/components/dashboards/dashboard_panel/dashboard_panel.js +0 -236
  152. package/dist/components/dashboards/mock_data.js +0 -49
  153. package/dist/components/experimental/experiment_badge/constants.js +0 -4
  154. package/dist/components/experimental/experiment_badge/experiment_badge.js +0 -102
  155. package/dist/components/extended/multi_step_form_template/multi_step_form_template.js +0 -87
  156. package/dist/components/index.js +0 -107
  157. package/dist/components/mixins/button_mixin.js +0 -11
  158. package/dist/components/mixins/safe_link_mixin.js +0 -30
  159. package/dist/components/mixins/tooltip_mixin.js +0 -21
  160. package/dist/components/regions/dashboard_skeleton/dashboard_skeleton.js +0 -53
  161. package/dist/components/regions/empty_state/empty_state.js +0 -181
  162. package/dist/components/shared_components/clear_icon_button/clear_icon_button.js +0 -64
  163. package/dist/components/shared_components/clipboard_button/clipboard_button.js +0 -100
  164. package/dist/components/shared_components/close_button/close_button.js +0 -55
  165. package/dist/components/utilities/animated_number/animated_number.js +0 -131
  166. package/dist/components/utilities/friendly_wrap/friendly_wrap.js +0 -75
  167. package/dist/components/utilities/intersection_observer/intersection_observer.js +0 -88
  168. package/dist/components/utilities/intersperse/intersperse.js +0 -104
  169. package/dist/components/utilities/sprintf/sprintf.js +0 -171
  170. package/dist/components/utilities/truncate/constants.js +0 -8
  171. package/dist/components/utilities/truncate/truncate.js +0 -154
  172. package/dist/components/utilities/truncate_text/constants.js +0 -7
  173. package/dist/components/utilities/truncate_text/truncate_text.js +0 -146
  174. package/dist/config.js +0 -53
  175. package/dist/directives/hover_load/hover_load.js +0 -45
  176. package/dist/directives/index.js +0 -8
  177. package/dist/directives/modal.js +0 -1
  178. package/dist/directives/outside/outside.js +0 -149
  179. package/dist/directives/resize_observer/resize_observer.js +0 -58
  180. package/dist/directives/safe_html/constants.js +0 -6
  181. package/dist/directives/safe_html/safe_html.js +0 -39
  182. package/dist/directives/safe_link/mock_data.js +0 -10
  183. package/dist/directives/safe_link/safe_link.js +0 -67
  184. package/dist/directives/tooltip/container.js +0 -7
  185. package/dist/directives/tooltip/tooltip.js +0 -18
  186. package/dist/index.css +0 -7
  187. package/dist/index.css.map +0 -1
  188. package/dist/index.js +0 -2
  189. package/dist/tailwind.css +0 -2
  190. package/dist/tailwind.css.map +0 -1
  191. package/dist/tokens/build/js/tokens.dark.js +0 -1410
  192. package/dist/tokens/build/js/tokens.js +0 -1410
  193. package/dist/tokens/common_story_options.js +0 -29
  194. package/dist/tokens/tokens_story.js +0 -76
  195. package/dist/utils/breakpoints.js +0 -20
  196. package/dist/utils/charts/config.js +0 -616
  197. package/dist/utils/charts/constants.js +0 -69
  198. package/dist/utils/charts/mock_data.js +0 -191
  199. package/dist/utils/charts/story_config.js +0 -24
  200. package/dist/utils/charts/theme.js +0 -200
  201. package/dist/utils/charts/utils.js +0 -54
  202. package/dist/utils/constants.js +0 -333
  203. package/dist/utils/data_utils.js +0 -19
  204. package/dist/utils/datetime_utility.js +0 -61
  205. package/dist/utils/equality_utils.js +0 -84
  206. package/dist/utils/i18n.js +0 -65
  207. package/dist/utils/is_slot_empty.js +0 -34
  208. package/dist/utils/number_utils.js +0 -132
  209. package/dist/utils/play_utils.js +0 -11
  210. package/dist/utils/set_utils.js +0 -25
  211. package/dist/utils/stories_constants.js +0 -29
  212. package/dist/utils/stories_utils.js +0 -62
  213. package/dist/utils/story_decorators/container.js +0 -19
  214. package/dist/utils/string_utils.js +0 -69
  215. package/dist/utils/svgs/svg_paths.js +0 -7
  216. package/dist/utils/test_utils.js +0 -33
  217. package/dist/utils/use_fake_date.js +0 -29
  218. package/dist/utils/use_mock_intersection_observer.js +0 -105
  219. package/dist/utils/utils.js +0 -205
  220. package/dist/utils.js +0 -5
  221. package/dist/vendor/bootstrap-vue/src/bv-config.js +0 -8
  222. package/dist/vendor/bootstrap-vue/src/components/button/button-close.js +0 -81
  223. package/dist/vendor/bootstrap-vue/src/components/button/button.js +0 -204
  224. package/dist/vendor/bootstrap-vue/src/components/button/index.js +0 -2
  225. package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-divider.js +0 -41
  226. package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-form.js +0 -52
  227. package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-group.js +0 -75
  228. package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-header.js +0 -52
  229. package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-item-button.js +0 -85
  230. package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-item.js +0 -97
  231. package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-text.js +0 -60
  232. package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown.js +0 -271
  233. package/dist/vendor/bootstrap-vue/src/components/dropdown/index.js +0 -8
  234. package/dist/vendor/bootstrap-vue/src/components/form/form-invalid-feedback.js +0 -53
  235. package/dist/vendor/bootstrap-vue/src/components/form/form-text.js +0 -55
  236. package/dist/vendor/bootstrap-vue/src/components/form/form-valid-feedback.js +0 -53
  237. package/dist/vendor/bootstrap-vue/src/components/form/form.js +0 -56
  238. package/dist/vendor/bootstrap-vue/src/components/form/index.js +0 -4
  239. package/dist/vendor/bootstrap-vue/src/components/form-group/form-group.js +0 -348
  240. package/dist/vendor/bootstrap-vue/src/components/form-group/index.js +0 -1
  241. package/dist/vendor/bootstrap-vue/src/components/form-select/form-select-option-group.js +0 -54
  242. package/dist/vendor/bootstrap-vue/src/components/form-select/form-select-option.js +0 -41
  243. package/dist/vendor/bootstrap-vue/src/components/form-select/form-select.js +0 -143
  244. package/dist/vendor/bootstrap-vue/src/components/form-select/helpers/mixin-options.js +0 -56
  245. package/dist/vendor/bootstrap-vue/src/components/form-select/index.js +0 -3
  246. package/dist/vendor/bootstrap-vue/src/components/form-textarea/form-textarea.js +0 -217
  247. package/dist/vendor/bootstrap-vue/src/components/form-textarea/index.js +0 -1
  248. package/dist/vendor/bootstrap-vue/src/components/layout/col.js +0 -156
  249. package/dist/vendor/bootstrap-vue/src/components/layout/form-row.js +0 -34
  250. package/dist/vendor/bootstrap-vue/src/components/layout/index.js +0 -2
  251. package/dist/vendor/bootstrap-vue/src/components/link/index.js +0 -1
  252. package/dist/vendor/bootstrap-vue/src/components/link/link.js +0 -283
  253. package/dist/vendor/bootstrap-vue/src/components/modal/helpers/bv-modal-event.class.js +0 -21
  254. package/dist/vendor/bootstrap-vue/src/components/modal/helpers/modal-manager.js +0 -212
  255. package/dist/vendor/bootstrap-vue/src/components/modal/index.js +0 -1
  256. package/dist/vendor/bootstrap-vue/src/components/modal/modal.js +0 -887
  257. package/dist/vendor/bootstrap-vue/src/components/popover/helpers/bv-popover-template.js +0 -55
  258. package/dist/vendor/bootstrap-vue/src/components/popover/helpers/bv-popover.js +0 -31
  259. package/dist/vendor/bootstrap-vue/src/components/popover/index.js +0 -1
  260. package/dist/vendor/bootstrap-vue/src/components/popover/popover.js +0 -49
  261. package/dist/vendor/bootstrap-vue/src/components/table/helpers/constants.js +0 -22
  262. package/dist/vendor/bootstrap-vue/src/components/table/helpers/default-sort-compare.js +0 -64
  263. package/dist/vendor/bootstrap-vue/src/components/table/helpers/filter-event.js +0 -40
  264. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-bottom-row.js +0 -43
  265. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-busy.js +0 -83
  266. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-caption.js +0 -50
  267. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-colgroup.js +0 -32
  268. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-empty.js +0 -82
  269. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-filtering.js +0 -274
  270. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-items.js +0 -154
  271. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-pagination.js +0 -44
  272. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-provider.js +0 -191
  273. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-selectable.js +0 -213
  274. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-sorting.js +0 -275
  275. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-stacked.js +0 -39
  276. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-table-renderer.js +0 -186
  277. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-tbody-row.js +0 -338
  278. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-tbody.js +0 -243
  279. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-tfoot.js +0 -50
  280. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-thead.js +0 -218
  281. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-top-row.js +0 -42
  282. package/dist/vendor/bootstrap-vue/src/components/table/helpers/normalize-fields.js +0 -86
  283. package/dist/vendor/bootstrap-vue/src/components/table/helpers/sanitize-row.js +0 -32
  284. package/dist/vendor/bootstrap-vue/src/components/table/helpers/stringify-record-values.js +0 -11
  285. package/dist/vendor/bootstrap-vue/src/components/table/helpers/text-selection-active.js +0 -14
  286. package/dist/vendor/bootstrap-vue/src/components/table/index.js +0 -9
  287. package/dist/vendor/bootstrap-vue/src/components/table/table-lite.js +0 -51
  288. package/dist/vendor/bootstrap-vue/src/components/table/table-simple.js +0 -44
  289. package/dist/vendor/bootstrap-vue/src/components/table/table.js +0 -67
  290. package/dist/vendor/bootstrap-vue/src/components/table/tbody.js +0 -116
  291. package/dist/vendor/bootstrap-vue/src/components/table/td.js +0 -204
  292. package/dist/vendor/bootstrap-vue/src/components/table/tfoot.js +0 -96
  293. package/dist/vendor/bootstrap-vue/src/components/table/th.js +0 -26
  294. package/dist/vendor/bootstrap-vue/src/components/table/thead.js +0 -99
  295. package/dist/vendor/bootstrap-vue/src/components/table/tr.js +0 -121
  296. package/dist/vendor/bootstrap-vue/src/components/tabs/index.js +0 -2
  297. package/dist/vendor/bootstrap-vue/src/components/tabs/tab.js +0 -238
  298. package/dist/vendor/bootstrap-vue/src/components/tabs/tabs.js +0 -601
  299. package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-popper.js +0 -251
  300. package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip-template.js +0 -118
  301. package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +0 -932
  302. package/dist/vendor/bootstrap-vue/src/components/tooltip/index.js +0 -1
  303. package/dist/vendor/bootstrap-vue/src/components/tooltip/tooltip.js +0 -269
  304. package/dist/vendor/bootstrap-vue/src/components/transition/bv-transition.js +0 -103
  305. package/dist/vendor/bootstrap-vue/src/components/transporter/transporter.js +0 -205
  306. package/dist/vendor/bootstrap-vue/src/constants/components.js +0 -55
  307. package/dist/vendor/bootstrap-vue/src/constants/config.js +0 -11
  308. package/dist/vendor/bootstrap-vue/src/constants/env.js +0 -36
  309. package/dist/vendor/bootstrap-vue/src/constants/events.js +0 -56
  310. package/dist/vendor/bootstrap-vue/src/constants/key-codes.js +0 -11
  311. package/dist/vendor/bootstrap-vue/src/constants/popper.js +0 -10
  312. package/dist/vendor/bootstrap-vue/src/constants/props.js +0 -24
  313. package/dist/vendor/bootstrap-vue/src/constants/regex.js +0 -35
  314. package/dist/vendor/bootstrap-vue/src/constants/safe-types.js +0 -15
  315. package/dist/vendor/bootstrap-vue/src/constants/slots.js +0 -36
  316. package/dist/vendor/bootstrap-vue/src/directives/modal/index.js +0 -1
  317. package/dist/vendor/bootstrap-vue/src/directives/modal/modal.js +0 -112
  318. package/dist/vendor/bootstrap-vue/src/directives/tooltip/index.js +0 -1
  319. package/dist/vendor/bootstrap-vue/src/directives/tooltip/tooltip.js +0 -265
  320. package/dist/vendor/bootstrap-vue/src/directives/visible/index.js +0 -1
  321. package/dist/vendor/bootstrap-vue/src/directives/visible/visible.js +0 -187
  322. package/dist/vendor/bootstrap-vue/src/mixins/attrs.js +0 -5
  323. package/dist/vendor/bootstrap-vue/src/mixins/click-out.js +0 -54
  324. package/dist/vendor/bootstrap-vue/src/mixins/dropdown.js +0 -470
  325. package/dist/vendor/bootstrap-vue/src/mixins/focus-in.js +0 -46
  326. package/dist/vendor/bootstrap-vue/src/mixins/form-control.js +0 -73
  327. package/dist/vendor/bootstrap-vue/src/mixins/form-custom.js +0 -26
  328. package/dist/vendor/bootstrap-vue/src/mixins/form-options.js +0 -91
  329. package/dist/vendor/bootstrap-vue/src/mixins/form-selection.js +0 -62
  330. package/dist/vendor/bootstrap-vue/src/mixins/form-size.js +0 -26
  331. package/dist/vendor/bootstrap-vue/src/mixins/form-state.js +0 -50
  332. package/dist/vendor/bootstrap-vue/src/mixins/form-text.js +0 -293
  333. package/dist/vendor/bootstrap-vue/src/mixins/form-validity.js +0 -50
  334. package/dist/vendor/bootstrap-vue/src/mixins/has-listener.js +0 -29
  335. package/dist/vendor/bootstrap-vue/src/mixins/id.js +0 -57
  336. package/dist/vendor/bootstrap-vue/src/mixins/listen-on-document.js +0 -63
  337. package/dist/vendor/bootstrap-vue/src/mixins/listen-on-root.js +0 -121
  338. package/dist/vendor/bootstrap-vue/src/mixins/listen-on-window.js +0 -63
  339. package/dist/vendor/bootstrap-vue/src/mixins/listeners.js +0 -25
  340. package/dist/vendor/bootstrap-vue/src/mixins/model.js +0 -10
  341. package/dist/vendor/bootstrap-vue/src/mixins/normalize-slot.js +0 -30
  342. package/dist/vendor/bootstrap-vue/src/mixins/scoped-style.js +0 -18
  343. package/dist/vendor/bootstrap-vue/src/mixins/use-parent.js +0 -14
  344. package/dist/vendor/bootstrap-vue/src/utils/array.js +0 -28
  345. package/dist/vendor/bootstrap-vue/src/utils/bv-event.class.js +0 -60
  346. package/dist/vendor/bootstrap-vue/src/utils/cache.js +0 -60
  347. package/dist/vendor/bootstrap-vue/src/utils/clone-deep.js +0 -18
  348. package/dist/vendor/bootstrap-vue/src/utils/config-set.js +0 -86
  349. package/dist/vendor/bootstrap-vue/src/utils/config.js +0 -71
  350. package/dist/vendor/bootstrap-vue/src/utils/create-new-child-component.js +0 -133
  351. package/dist/vendor/bootstrap-vue/src/utils/css-escape.js +0 -70
  352. package/dist/vendor/bootstrap-vue/src/utils/dom.js +0 -298
  353. package/dist/vendor/bootstrap-vue/src/utils/element-to-vue-instance-registry.js +0 -28
  354. package/dist/vendor/bootstrap-vue/src/utils/env.js +0 -16
  355. package/dist/vendor/bootstrap-vue/src/utils/events.js +0 -78
  356. package/dist/vendor/bootstrap-vue/src/utils/get-event-root.js +0 -5
  357. package/dist/vendor/bootstrap-vue/src/utils/get-instance-from-directive.js +0 -3
  358. package/dist/vendor/bootstrap-vue/src/utils/get-scope-id.js +0 -9
  359. package/dist/vendor/bootstrap-vue/src/utils/get.js +0 -63
  360. package/dist/vendor/bootstrap-vue/src/utils/html.js +0 -16
  361. package/dist/vendor/bootstrap-vue/src/utils/identity.js +0 -3
  362. package/dist/vendor/bootstrap-vue/src/utils/inspect.js +0 -35
  363. package/dist/vendor/bootstrap-vue/src/utils/locale.js +0 -19
  364. package/dist/vendor/bootstrap-vue/src/utils/loose-equal.js +0 -59
  365. package/dist/vendor/bootstrap-vue/src/utils/loose-index-of.js +0 -13
  366. package/dist/vendor/bootstrap-vue/src/utils/math.js +0 -9
  367. package/dist/vendor/bootstrap-vue/src/utils/memoize.js +0 -14
  368. package/dist/vendor/bootstrap-vue/src/utils/model.js +0 -33
  369. package/dist/vendor/bootstrap-vue/src/utils/noop.js +0 -3
  370. package/dist/vendor/bootstrap-vue/src/utils/normalize-slot.js +0 -51
  371. package/dist/vendor/bootstrap-vue/src/utils/number.js +0 -23
  372. package/dist/vendor/bootstrap-vue/src/utils/object.js +0 -72
  373. package/dist/vendor/bootstrap-vue/src/utils/observe-dom.js +0 -76
  374. package/dist/vendor/bootstrap-vue/src/utils/on-instance-destroy.js +0 -22
  375. package/dist/vendor/bootstrap-vue/src/utils/plugins.js +0 -124
  376. package/dist/vendor/bootstrap-vue/src/utils/props.js +0 -67
  377. package/dist/vendor/bootstrap-vue/src/utils/router.js +0 -150
  378. package/dist/vendor/bootstrap-vue/src/utils/safe-vue-instance.js +0 -14
  379. package/dist/vendor/bootstrap-vue/src/utils/stable-sort.js +0 -28
  380. package/dist/vendor/bootstrap-vue/src/utils/string.js +0 -47
  381. package/dist/vendor/bootstrap-vue/src/utils/stringify-object-values.js +0 -31
  382. package/dist/vendor/bootstrap-vue/src/utils/warn.js +0 -45
  383. package/dist/vendor/bootstrap-vue/src/vue.js +0 -55
@@ -1,152 +0,0 @@
1
- import GlButton from '../button/button';
2
- import GlButtonGroup from '../button_group/button_group';
3
- import GlIcon from '../icon/icon';
4
- import { translate } from '../../../utils/i18n';
5
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
6
-
7
- var script = {
8
- name: 'GlKeysetPagination',
9
- components: {
10
- GlButtonGroup,
11
- GlButton,
12
- GlIcon
13
- },
14
- inheritAttrs: false,
15
- props: {
16
- // The following 4 properties match the default names of the
17
- // [PageInfo](https://docs.gitlab.com/ee/api/graphql/reference/index.html#pageinfo)
18
- // GraphQL type, allowing the returned `pageInfo` object to
19
- // be bound directly to this component:
20
- // `<gl-keyset-pagination v-bind="pageInfo">`
21
- /**
22
- * Whether or not the "Prev" button should be enabled
23
- */
24
- hasPreviousPage: {
25
- type: Boolean,
26
- required: false,
27
- default: false
28
- },
29
- /**
30
- * Whether or not the "Next" button should be enabled
31
- */
32
- hasNextPage: {
33
- type: Boolean,
34
- required: false,
35
- default: false
36
- },
37
- /**
38
- * A cursor that points to the first item in the current page.
39
- * Will be passed as an event parameter when the "prev" event is fired.
40
- */
41
- startCursor: {
42
- type: String,
43
- required: false,
44
- default: null
45
- },
46
- /**
47
- * A cursor that points to the last item in the current page.
48
- * Will be passed as an event parameter when the "next" event is fired.
49
- */
50
- endCursor: {
51
- type: String,
52
- required: false,
53
- default: null
54
- },
55
- /**
56
- * The text that will be rendered inside the "Previous" button.
57
- * It's important to provide this parameter since the default text is not translatable.
58
- */
59
- prevText: {
60
- type: String,
61
- required: false,
62
- default: () => translate('GlKeysetPagination.prevText', 'Previous')
63
- },
64
- /**
65
- * A link that will be used as the "Prev" button\'s "href" attribute.
66
- * If provided, the "Prev" button renders as a link button; otherwise, it is rendered as a regular button.
67
- */
68
- prevButtonLink: {
69
- type: String,
70
- required: false,
71
- default: null
72
- },
73
- /**
74
- * The aria-label that needs to be set for the
75
- * pagination landmark region.
76
- */
77
- navigationLabel: {
78
- type: String,
79
- required: false,
80
- default: () => translate('GlKeysetPagination.navigationLabel', 'Pagination')
81
- },
82
- /**
83
- * The text that will be rendered inside the "Next" button.
84
- * It's important to provide this parameter since the default text is not translatable.
85
- */
86
- nextText: {
87
- type: String,
88
- required: false,
89
- default: () => translate('GlKeysetPagination.nextText', 'Next')
90
- },
91
- /**
92
- * A link that will be used as the "Next" button\'s "href" attribute.
93
- * If provided, the "Next" button renders as a link button; otherwise, it is rendered as a regular button.
94
- */
95
- nextButtonLink: {
96
- type: String,
97
- required: false,
98
- default: null
99
- },
100
- /**
101
- * Whether or not both buttons should be disabled (regardless of the "hasPreviousPage" and "hasNextPage" values).
102
- */
103
- disabled: {
104
- type: Boolean,
105
- required: false,
106
- default: false
107
- }
108
- },
109
- computed: {
110
- isVisible() {
111
- return this.hasPreviousPage || this.hasNextPage;
112
- }
113
- }
114
- };
115
-
116
- /* script */
117
- const __vue_script__ = script;
118
-
119
- /* template */
120
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isVisible)?_c('nav',{staticClass:"gl-pagination",attrs:{"aria-label":_vm.navigationLabel}},[_c('gl-button-group',_vm._g(_vm._b({staticClass:"gl-keyset-pagination gl-gap-3"},'gl-button-group',_vm.$attrs,false),_vm.$listeners),[_c('gl-button',{attrs:{"href":_vm.prevButtonLink,"disabled":_vm.disabled || !_vm.hasPreviousPage,"data-testid":"prevButton","category":"tertiary"},on:{"click":function($event){return _vm.$emit('prev', _vm.startCursor)}}},[_vm._t("previous-button-content",function(){return [_c('div',{staticClass:"gl-align-center gl-flex"},[_c('gl-icon',{staticClass:"gl-mr-2",attrs:{"name":"chevron-lg-left"}}),_vm._v("\n "+_vm._s(_vm.prevText)+"\n ")],1)]})],2),_vm._v(" "),_c('gl-button',{attrs:{"href":_vm.nextButtonLink,"disabled":_vm.disabled || !_vm.hasNextPage,"data-testid":"nextButton","category":"tertiary"},on:{"click":function($event){return _vm.$emit('next', _vm.endCursor)}}},[_vm._t("next-button-content",function(){return [_c('div',{staticClass:"gl-align-center gl-flex"},[_vm._v("\n "+_vm._s(_vm.nextText)+"\n "),_c('gl-icon',{staticClass:"gl-ml-2",attrs:{"name":"chevron-lg-right"}})],1)]})],2)],1)],1):_vm._e()};
121
- var __vue_staticRenderFns__ = [];
122
-
123
- /* style */
124
- const __vue_inject_styles__ = undefined;
125
- /* scoped */
126
- const __vue_scope_id__ = undefined;
127
- /* module identifier */
128
- const __vue_module_identifier__ = undefined;
129
- /* functional template */
130
- const __vue_is_functional_template__ = false;
131
- /* style inject */
132
-
133
- /* style inject SSR */
134
-
135
- /* style inject shadow dom */
136
-
137
-
138
-
139
- const __vue_component__ = /*#__PURE__*/__vue_normalize__(
140
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
141
- __vue_inject_styles__,
142
- __vue_script__,
143
- __vue_scope_id__,
144
- __vue_is_functional_template__,
145
- __vue_module_identifier__,
146
- false,
147
- undefined,
148
- undefined,
149
- undefined
150
- );
151
-
152
- export { __vue_component__ as default };
@@ -1,174 +0,0 @@
1
- import { labelColorOptions } from '../../../utils/constants';
2
- import { colorFromBackground } from '../../../utils/utils';
3
- import { translate } from '../../../utils/i18n';
4
- import GlButton from '../button/button';
5
- import GlIcon from '../icon/icon';
6
- import GlLink from '../link/link';
7
- import GlTooltip from '../tooltip/tooltip';
8
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
9
-
10
- var script = {
11
- name: 'GlLabel',
12
- components: {
13
- GlButton,
14
- GlIcon,
15
- GlLink,
16
- GlTooltip
17
- },
18
- props: {
19
- /**
20
- * Background color of the label in hex, rgb, or rgba format
21
- */
22
- backgroundColor: {
23
- type: String,
24
- required: true,
25
- validator: value => /^(#|rgb|rgba)/.test(value)
26
- },
27
- /**
28
- * Title text of the label
29
- */
30
- title: {
31
- type: String,
32
- required: true,
33
- default: ''
34
- },
35
- /**
36
- * Description text shown in tooltip
37
- */
38
- description: {
39
- type: String,
40
- required: false,
41
- default: ''
42
- },
43
- /**
44
- * Placement of the tooltip
45
- */
46
- tooltipPlacement: {
47
- type: String,
48
- required: false,
49
- default: 'top'
50
- },
51
- /**
52
- * Target URL for the label link
53
- */
54
- target: {
55
- type: String,
56
- required: false,
57
- default: ''
58
- },
59
- /**
60
- * Whether the label is scoped (uses :: separator)
61
- */
62
- scoped: {
63
- type: Boolean,
64
- required: false,
65
- default: false
66
- },
67
- /**
68
- * Whether to show the close button
69
- */
70
- showCloseButton: {
71
- type: Boolean,
72
- required: false,
73
- default: false
74
- },
75
- /**
76
- * Whether the label is disabled
77
- */
78
- disabled: {
79
- type: Boolean,
80
- required: false,
81
- default: false
82
- }
83
- },
84
- computed: {
85
- removeButtonAriaLabel() {
86
- return translate('GlLabel.removeButtonAriaLabel', 'Remove label - %{label}', {
87
- label: this.title
88
- });
89
- },
90
- cssClasses() {
91
- const textColorVariant = colorFromBackground(this.backgroundColor);
92
- return {
93
- 'gl-label-scoped': this.scoped,
94
- 'gl-label-text-dark': textColorVariant === labelColorOptions.dark,
95
- 'gl-label-text-light': textColorVariant === labelColorOptions.light
96
- };
97
- },
98
- cssVariables() {
99
- return {
100
- '--label-background-color': this.backgroundColor,
101
- '--label-inset-border': `inset 0 0 0 2px ${this.backgroundColor}`
102
- };
103
- },
104
- splitScopedLabelIndex() {
105
- return this.title.lastIndexOf('::');
106
- },
107
- scopedKey() {
108
- return this.scoped ? this.title.slice(0, this.splitScopedLabelIndex) : this.title;
109
- },
110
- scopedValue() {
111
- return this.title.slice(this.splitScopedLabelIndex + 2);
112
- },
113
- labelComponent() {
114
- return this.target ? GlLink : 'span';
115
- },
116
- tooltipTarget() {
117
- return this.target ? this.$refs.labelTitle.$el : this.$refs.labelTitle;
118
- }
119
- },
120
- methods: {
121
- onClick(e) {
122
- /**
123
- * Emitted when the label is clicked.
124
- * @event click
125
- */
126
- this.$emit('click', e);
127
- },
128
- onClose(e) {
129
- /**
130
- * Emitted when the close button is clicked.
131
- * @event close
132
- */
133
- this.$emit('close', e);
134
- }
135
- }
136
- };
137
-
138
- /* script */
139
- const __vue_script__ = script;
140
-
141
- /* template */
142
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',_vm._b({staticClass:"gl-label",class:_vm.cssClasses,style:(_vm.cssVariables),on:{"click":_vm.onClick}},'span',_vm.$attrs,false),[_c(_vm.labelComponent,{ref:"labelTitle",tag:"component",staticClass:"gl-label-link",class:{ 'gl-label-link-underline': _vm.target },attrs:{"href":_vm.target ? _vm.target : false,"tabindex":"0"}},[_c('span',{staticClass:"gl-label-text"},[_vm._v("\n "+_vm._s(_vm.scopedKey)+"\n ")]),_vm._v(" "),(_vm.scoped && _vm.scopedValue)?_c('span',{staticClass:"gl-label-text-scoped"},[_vm._v("\n "+_vm._s(_vm.scopedValue)+"\n ")]):_vm._e()]),_vm._v(" "),(_vm.showCloseButton)?_c('gl-button',{staticClass:"gl-label-close !gl-p-0",attrs:{"category":"tertiary","size":"small","variant":"reset","aria-label":_vm.removeButtonAriaLabel,"disabled":_vm.disabled},on:{"click":_vm.onClose}},[_c('gl-icon',{attrs:{"name":"close-xs","size":12}})],1):_vm._e(),_vm._v(" "),(_vm.description)?_c('gl-tooltip',{attrs:{"target":function () { return _vm.tooltipTarget; },"placement":_vm.tooltipPlacement,"boundary":"viewport"}},[(_vm.scoped)?_c('span',{staticClass:"gl-label-tooltip-title"},[_vm._v("Scoped label")]):_vm._e(),_vm._v("\n "+_vm._s(_vm.description)+"\n ")]):_vm._e()],1)};
143
- var __vue_staticRenderFns__ = [];
144
-
145
- /* style */
146
- const __vue_inject_styles__ = undefined;
147
- /* scoped */
148
- const __vue_scope_id__ = undefined;
149
- /* module identifier */
150
- const __vue_module_identifier__ = undefined;
151
- /* functional template */
152
- const __vue_is_functional_template__ = false;
153
- /* style inject */
154
-
155
- /* style inject SSR */
156
-
157
- /* style inject shadow dom */
158
-
159
-
160
-
161
- const __vue_component__ = /*#__PURE__*/__vue_normalize__(
162
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
163
- __vue_inject_styles__,
164
- __vue_script__,
165
- __vue_scope_id__,
166
- __vue_is_functional_template__,
167
- __vue_module_identifier__,
168
- false,
169
- undefined,
170
- undefined,
171
- undefined
172
- );
173
-
174
- export { __vue_component__ as default };
@@ -1,332 +0,0 @@
1
- import { isString, isObject, toString, isBoolean, concat, isFunction } from 'lodash-es';
2
- import { SafeLinkDirective, isExternalURL } from '../../../directives/safe_link/safe_link';
3
- import { stopEvent } from '../../../utils/utils';
4
- import { isEvent } from '../../../vendor/bootstrap-vue/src/utils/inspect';
5
- import { stringifyQueryObj } from '../../../vendor/bootstrap-vue/src/utils/router';
6
- import { safeVueInstance } from '../../../vendor/bootstrap-vue/src/utils/safe-vue-instance';
7
- import { attemptFocus, attemptBlur } from '../../../vendor/bootstrap-vue/src/utils/dom';
8
- import { linkVariantOptions, isVue3, linkVariantUnstyled, linkVariantInline, linkVariantMeta } from '../../../utils/constants';
9
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
10
-
11
- const ANCHOR_TAG = 'a';
12
- const NUXT_LINK_TAG = 'nuxt-link';
13
- const VUE_ROUTER_LINK_TAG = 'router-link';
14
- var script = {
15
- name: 'GlLink',
16
- directives: {
17
- SafeLink: SafeLinkDirective
18
- },
19
- inheritAttrs: false,
20
- props: {
21
- /**
22
- * Denotes the target URL of the link for standard links.
23
- */
24
- href: {
25
- type: String,
26
- required: false,
27
- default: undefined
28
- },
29
- /**
30
- * When set to `true`, disables the component's functionality and places it in a disabled state.
31
- */
32
- disabled: {
33
- type: Boolean,
34
- required: false,
35
- default: false
36
- },
37
- /**
38
- * Skips sanitization of href if true. This should be used sparingly.
39
- * Consult security team before setting to true.
40
- */
41
- isUnsafeLink: {
42
- type: Boolean,
43
- required: false,
44
- default: false
45
- },
46
- /**
47
- * Sets the 'rel' attribute on the rendered link.
48
- */
49
- rel: {
50
- type: String,
51
- required: false,
52
- default: null
53
- },
54
- /**
55
- * Sets the 'target' attribute on the rendered link.
56
- */
57
- target: {
58
- type: String,
59
- required: false,
60
- default: null
61
- },
62
- /**
63
- * When set to `true`, places the component in the active state with active styling
64
- */
65
- active: {
66
- type: Boolean,
67
- required: false,
68
- default: false
69
- },
70
- /**
71
- * <router-link> prop: Denotes the target route of the link.
72
- * When clicked, the value of the to prop will be passed to `router.push()` internally,
73
- * so the value can be either a string or a Location descriptor object.
74
- */
75
- to: {
76
- type: [Object, String],
77
- required: false,
78
- default: undefined
79
- },
80
- /**
81
- * <router-link> prop: Configure the active CSS class applied when the link is active.
82
- */
83
- activeClass: {
84
- type: String,
85
- required: false,
86
- default: undefined
87
- },
88
- /**
89
- * <router-link> prop: Configure the active CSS class applied when the link is active with exact match.
90
- */
91
- exactActiveClass: {
92
- type: String,
93
- required: false,
94
- default: undefined
95
- },
96
- /**
97
- * <router-link> prop: Setting the replace prop will call `router.replace()` instead of `router.push()`
98
- * when clicked, so the navigation will not leave a history record.
99
- */
100
- replace: {
101
- type: Boolean,
102
- required: false,
103
- default: false
104
- },
105
- /**
106
- * <nuxt-link> prop: To improve the responsiveness of your Nuxt.js applications, when the link will be displayed within the viewport,
107
- * Nuxt.js will automatically prefetch the code splitted page. Setting `prefetch` to `true` or `false` will overwrite the default value of `router.prefetchLinks`
108
- */
109
- prefetch: {
110
- type: Boolean,
111
- required: false,
112
- // Must be `null` to fall back to the value defined in the
113
- // `nuxt.config.js` configuration file for `router.prefetchLinks`
114
- // We convert `null` to `undefined`, so that Nuxt.js will use the
115
- // compiled default
116
- // Vue treats `undefined` as default of `false` for Boolean props,
117
- // so we must set it as `null` here to be a true tri-state prop
118
- default: null
119
- },
120
- /**
121
- * Controls ↗ character visibility for external links
122
- */
123
- showExternalIcon: {
124
- type: Boolean,
125
- required: false,
126
- default: false
127
- },
128
- /**
129
- * Link variant
130
- */
131
- variant: {
132
- type: String,
133
- required: false,
134
- default: null,
135
- validator: value => value && Object.hasOwn(linkVariantOptions, value)
136
- }
137
- },
138
- computed: {
139
- safeLinkConfig() {
140
- return {
141
- skipSanitization: this.isUnsafeLink
142
- };
143
- },
144
- tag() {
145
- const hasRouter = Boolean(safeVueInstance(this).$router);
146
- const hasNuxt = Boolean(safeVueInstance(this).$nuxt);
147
- if (!hasRouter || this.disabled || !this.to) {
148
- return ANCHOR_TAG;
149
- }
150
- return hasNuxt ? NUXT_LINK_TAG : VUE_ROUTER_LINK_TAG;
151
- },
152
- isRouterLink() {
153
- return this.tag !== ANCHOR_TAG;
154
- },
155
- isVue3RouterLink() {
156
- return this.tag === VUE_ROUTER_LINK_TAG && isVue3;
157
- },
158
- shouldShowExternalIcon() {
159
- const allowedVariants = [linkVariantInline, linkVariantMeta, null]; // null represents default/UI variant
160
- return this.showExternalIcon && allowedVariants.includes(this.variant) && this.href && isExternalURL(this.target, this.href);
161
- },
162
- computedHref() {
163
- const fallback = '#';
164
- const toFallback = '/';
165
- const {
166
- to
167
- } = this;
168
-
169
- // Return `href` when explicitly provided
170
- if (this.href) {
171
- return this.href;
172
- }
173
- if (isString(to)) {
174
- return to || toFallback;
175
- }
176
-
177
- // Fallback to `to.path' + `to.query` + `to.hash` prop (if `to` is an object)
178
- if (isObject(to) && (to.path || to.query || to.hash)) {
179
- const path = toString(to.path);
180
- const query = stringifyQueryObj(to.query);
181
- let hash = toString(to.hash);
182
- hash = !hash || hash.charAt(0) === '#' ? hash : `#${hash}`;
183
- return `${path}${query}${hash}` || fallback;
184
- }
185
- return fallback;
186
- },
187
- computedProps() {
188
- const baseRouterLinkProps = {
189
- to: this.to,
190
- activeClass: this.activeClass,
191
- exactActiveClass: this.exactActiveClass,
192
- replace: this.replace,
193
- ...(isBoolean(this.prefetch) ? {
194
- prefetch: this.prefetch
195
- } : {})
196
- };
197
- if (this.isRouterLink) {
198
- if (this.isVue3RouterLink) {
199
- return baseRouterLinkProps;
200
- }
201
- return {
202
- ...baseRouterLinkProps,
203
- ...this.$attrs
204
- };
205
- }
206
- return {
207
- disabled: this.disabled,
208
- ...(this.disabled ? {
209
- 'aria-disabled': 'true',
210
- tabindex: '-1'
211
- } : {}),
212
- rel: this.rel,
213
- target: this.target,
214
- href: this.computedHref,
215
- ...this.$attrs
216
- };
217
- },
218
- computedListeners() {
219
- const {
220
- click,
221
- ...listenersWithoutClick
222
- } = this.$listeners;
223
- return listenersWithoutClick;
224
- },
225
- computedClass() {
226
- if (this.variant === linkVariantUnstyled) {
227
- return [];
228
- }
229
- return ['gl-link', linkVariantOptions[this.variant], {
230
- disabled: this.disabled,
231
- active: this.active,
232
- 'gl-link-external': this.shouldShowExternalIcon
233
- }];
234
- }
235
- },
236
- methods: {
237
- onClick(event, navigate) {
238
- const eventIsEvent = isEvent(event);
239
- const suppliedHandler = this.$listeners.click;
240
- if (eventIsEvent && this.disabled) {
241
- // Stop event from bubbling up
242
- // Kill the event loop attached to this specific `EventTarget`
243
- // Needed to prevent `vue-router` from navigating
244
- stopEvent(event, {
245
- immediatePropagation: true
246
- });
247
- } else {
248
- // Router links do not emit instance `click` events, so we
249
- // add in an `$emit('click', event)` on its Vue instance
250
- //
251
- // seems not to be required for Vue3 compat build
252
- if (this.isRouterLink) {
253
- var _event$currentTarget$;
254
- // eslint-disable-next-line no-underscore-dangle
255
- (_event$currentTarget$ = event.currentTarget.__vue__) === null || _event$currentTarget$ === void 0 ? void 0 : _event$currentTarget$.$emit('click', event);
256
- }
257
-
258
- // Call the suppliedHandler(s), if any provided
259
- concat([], suppliedHandler).filter(h => isFunction(h)).forEach(handler => {
260
- // eslint-disable-next-line prefer-rest-params
261
- handler(...arguments);
262
- });
263
-
264
- // this navigate function comes from Vue 3 router
265
- // See https://router.vuejs.org/guide/advanced/extending-router-link.html#Extending-RouterLink
266
- if (isFunction(navigate)) {
267
- navigate(event);
268
- }
269
-
270
- // TODO: Remove deprecated 'clicked::link' event
271
- this.$root.$emit('clicked::link', event);
272
- }
273
- // Stop scroll-to-top behavior or navigation on
274
- // regular links when href is just '#'
275
- if (eventIsEvent && !this.isRouterLink && this.computedHref === '#') {
276
- stopEvent(event, {
277
- stopPropagation: false
278
- });
279
- }
280
- },
281
- focus() {
282
- attemptFocus(this.$el);
283
- },
284
- blur() {
285
- attemptBlur(this.$el);
286
- }
287
- }
288
- };
289
-
290
- /* script */
291
- const __vue_script__ = script;
292
-
293
- /* template */
294
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isVue3RouterLink)?_c(_vm.tag,_vm._b({tag:"component",attrs:{"custom":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){
295
- var _obj;
296
-
297
- var routerLinkHref = ref.href;
298
- var isActive = ref.isActive;
299
- var isExactActive = ref.isExactActive;
300
- var navigate = ref.navigate;return [_c('a',_vm._g(_vm._b({directives:[{name:"safe-link",rawName:"v-safe-link:[safeLinkConfig]",arg:_vm.safeLinkConfig}],class:[_vm.computedClass, ( _obj = {}, _obj[_vm.activeClass] = isActive, _obj[_vm.exactActiveClass] = isExactActive, _obj )],attrs:{"href":routerLinkHref},on:{"click":function($event){return _vm.onClick($event, navigate)}}},'a',_vm.$attrs,false),_vm.computedListeners),[_vm._t("default")],2)]}}],null,true)},'component',_vm.computedProps,false)):(_vm.isRouterLink)?_c(_vm.tag,_vm._g(_vm._b({directives:[{name:"safe-link",rawName:"v-safe-link:[safeLinkConfig]",arg:_vm.safeLinkConfig}],tag:"component",class:_vm.computedClass,nativeOn:{"click":function($event){return _vm.onClick.apply(null, arguments)}}},'component',_vm.computedProps,false),_vm.computedListeners),[_vm._t("default")],2):_c(_vm.tag,_vm._g(_vm._b({directives:[{name:"safe-link",rawName:"v-safe-link:[safeLinkConfig]",arg:_vm.safeLinkConfig}],tag:"component",class:_vm.computedClass,on:{"click":_vm.onClick}},'component',_vm.computedProps,false),_vm.computedListeners),[_vm._t("default")],2)};
301
- var __vue_staticRenderFns__ = [];
302
-
303
- /* style */
304
- const __vue_inject_styles__ = undefined;
305
- /* scoped */
306
- const __vue_scope_id__ = undefined;
307
- /* module identifier */
308
- const __vue_module_identifier__ = undefined;
309
- /* functional template */
310
- const __vue_is_functional_template__ = false;
311
- /* style inject */
312
-
313
- /* style inject SSR */
314
-
315
- /* style inject shadow dom */
316
-
317
-
318
-
319
- const __vue_component__ = /*#__PURE__*/__vue_normalize__(
320
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
321
- __vue_inject_styles__,
322
- __vue_script__,
323
- __vue_scope_id__,
324
- __vue_is_functional_template__,
325
- __vue_module_identifier__,
326
- false,
327
- undefined,
328
- undefined,
329
- undefined
330
- );
331
-
332
- export { __vue_component__ as default };