@gitlab/ui 131.3.0 → 131.3.2
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/package.json +4 -4
- package/src/components/utilities/truncate/truncate.scss +3 -1
- package/src/scss/mixins.scss +3 -1
- package/src/vendor/bootstrap-vue/src/components/tooltip/tooltip.js +86 -25
- package/tailwind.defaults.js +10 -1
- package/dist/charts.js +0 -13
- package/dist/components/base/accordion/accordion.js +0 -69
- package/dist/components/base/accordion/accordion_item.js +0 -160
- package/dist/components/base/accordion/constants.js +0 -3
- package/dist/components/base/alert/alert.js +0 -263
- package/dist/components/base/animated_icon/animated_chevron_down_up_icon.js +0 -45
- package/dist/components/base/animated_icon/animated_chevron_lg_down_up_icon.js +0 -45
- package/dist/components/base/animated_icon/animated_chevron_lg_right_down_icon.js +0 -45
- package/dist/components/base/animated_icon/animated_chevron_right_down_icon.js +0 -45
- package/dist/components/base/animated_icon/animated_duo_chat_icon.js +0 -45
- package/dist/components/base/animated_icon/animated_loader_icon.js +0 -45
- package/dist/components/base/animated_icon/animated_notifications_icon.js +0 -45
- package/dist/components/base/animated_icon/animated_sidebar_icon.js +0 -45
- package/dist/components/base/animated_icon/animated_smile_icon.js +0 -45
- package/dist/components/base/animated_icon/animated_sort_icon.js +0 -45
- package/dist/components/base/animated_icon/animated_star_icon.js +0 -45
- package/dist/components/base/animated_icon/animated_todo_icon.js +0 -45
- package/dist/components/base/animated_icon/animated_upload_icon.js +0 -45
- package/dist/components/base/animated_icon/base_animated_icon.js +0 -77
- package/dist/components/base/attribute_list/attribute_list.js +0 -100
- package/dist/components/base/avatar/avatar.js +0 -175
- package/dist/components/base/avatar/utils.js +0 -17
- package/dist/components/base/avatar_labeled/avatar_labeled.js +0 -198
- package/dist/components/base/avatar_link/avatar_link.js +0 -47
- package/dist/components/base/avatars_inline/avatars_inline.js +0 -139
- package/dist/components/base/badge/badge.js +0 -197
- package/dist/components/base/banner/banner.js +0 -149
- package/dist/components/base/breadcrumb/breadcrumb.js +0 -282
- package/dist/components/base/breadcrumb/breadcrumb_item.js +0 -96
- package/dist/components/base/broadcast_message/broadcast_message.js +0 -113
- package/dist/components/base/broadcast_message/constants.js +0 -5
- package/dist/components/base/button/button.js +0 -419
- package/dist/components/base/button_group/button_group.js +0 -53
- package/dist/components/base/card/card.js +0 -69
- package/dist/components/base/collapse/collapse.js +0 -163
- package/dist/components/base/color_mode_toggle/color_mode_toggle.js +0 -92
- package/dist/components/base/datepicker/datepicker.js +0 -475
- package/dist/components/base/daterange_picker/daterange_picker.js +0 -394
- package/dist/components/base/drawer/drawer.js +0 -156
- package/dist/components/base/dropdown/dropdown.js +0 -330
- package/dist/components/base/dropdown/dropdown_divider.js +0 -48
- package/dist/components/base/dropdown/dropdown_form.js +0 -48
- package/dist/components/base/dropdown/dropdown_item.js +0 -175
- package/dist/components/base/dropdown/dropdown_section_header.js +0 -48
- package/dist/components/base/dropdown/dropdown_text.js +0 -48
- package/dist/components/base/filtered_search/common_story_options.js +0 -14
- package/dist/components/base/filtered_search/filtered_search.js +0 -428
- package/dist/components/base/filtered_search/filtered_search_suggestion.js +0 -95
- package/dist/components/base/filtered_search/filtered_search_suggestion_list.js +0 -139
- package/dist/components/base/filtered_search/filtered_search_term.js +0 -217
- package/dist/components/base/filtered_search/filtered_search_token.js +0 -383
- package/dist/components/base/filtered_search/filtered_search_token_segment.js +0 -444
- package/dist/components/base/filtered_search/filtered_search_utils.js +0 -241
- package/dist/components/base/form/form.js +0 -43
- package/dist/components/base/form/form_character_count/form_character_count.js +0 -107
- package/dist/components/base/form/form_checkbox/form_checkbox.js +0 -342
- package/dist/components/base/form/form_checkbox/form_checkbox_group.js +0 -186
- package/dist/components/base/form/form_combobox/constants.js +0 -55
- package/dist/components/base/form/form_combobox/form_combobox.js +0 -239
- package/dist/components/base/form/form_date/form_date.js +0 -143
- package/dist/components/base/form/form_fields/form_field_validator.js +0 -93
- package/dist/components/base/form/form_fields/form_fields.js +0 -289
- package/dist/components/base/form/form_fields/form_fields_loop.js +0 -75
- package/dist/components/base/form/form_fields/mappers.js +0 -13
- package/dist/components/base/form/form_fields/validators.js +0 -48
- package/dist/components/base/form/form_group/form_group.js +0 -119
- package/dist/components/base/form/form_input/form_input.js +0 -695
- package/dist/components/base/form/form_input_group/form_input_group.js +0 -120
- package/dist/components/base/form/form_input_group/form_input_group_mixin.js +0 -41
- package/dist/components/base/form/form_radio/form_radio.js +0 -259
- package/dist/components/base/form/form_radio_group/form_radio_group.js +0 -187
- package/dist/components/base/form/form_select/constants.js +0 -12
- package/dist/components/base/form/form_select/form_select.js +0 -96
- package/dist/components/base/form/form_textarea/form_textarea.js +0 -166
- package/dist/components/base/form/input_group_text/input_group_text.js +0 -43
- package/dist/components/base/icon/icon.js +0 -113
- package/dist/components/base/illustration/illustration.js +0 -80
- package/dist/components/base/infinite_scroll/infinite_scroll.js +0 -196
- package/dist/components/base/keyset_pagination/keyset_pagination.js +0 -152
- package/dist/components/base/label/label.js +0 -174
- package/dist/components/base/link/link.js +0 -332
- package/dist/components/base/loading_icon/loading_icon.js +0 -120
- package/dist/components/base/markdown/markdown.js +0 -50
- package/dist/components/base/modal/modal.js +0 -259
- package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown.js +0 -716
- package/dist/components/base/new_dropdowns/base_dropdown/constants.js +0 -5
- package/dist/components/base/new_dropdowns/base_dropdown/dropdown_container.js +0 -32
- package/dist/components/base/new_dropdowns/constants.js +0 -24
- package/dist/components/base/new_dropdowns/disclosure/constants.js +0 -8
- package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown.js +0 -400
- package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown_group.js +0 -112
- package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown_item.js +0 -196
- package/dist/components/base/new_dropdowns/disclosure/mock_data.js +0 -168
- package/dist/components/base/new_dropdowns/disclosure/utils.js +0 -84
- package/dist/components/base/new_dropdowns/listbox/listbox.js +0 -997
- package/dist/components/base/new_dropdowns/listbox/listbox_group.js +0 -58
- package/dist/components/base/new_dropdowns/listbox/listbox_item.js +0 -112
- package/dist/components/base/new_dropdowns/listbox/listbox_search_input.js +0 -94
- package/dist/components/base/new_dropdowns/listbox/mock_data.js +0 -131
- package/dist/components/base/new_dropdowns/listbox/utils.js +0 -33
- package/dist/components/base/pagination/pagination.js +0 -397
- package/dist/components/base/path/data.js +0 -34
- package/dist/components/base/path/path.js +0 -177
- package/dist/components/base/popover/popover.js +0 -142
- package/dist/components/base/progress_bar/progress_bar.js +0 -117
- package/dist/components/base/search_box_by_click/search_box_by_click.js +0 -245
- package/dist/components/base/search_box_by_type/search_box_by_type.js +0 -187
- package/dist/components/base/segmented_control/segmented_control.js +0 -73
- package/dist/components/base/skeleton_loader/skeleton_loader.js +0 -232
- package/dist/components/base/sorting/sorting.js +0 -180
- package/dist/components/base/table/constants.js +0 -5
- package/dist/components/base/table/table.js +0 -187
- package/dist/components/base/table_lite/table_lite.js +0 -80
- package/dist/components/base/tabs/constants.js +0 -3
- package/dist/components/base/tabs/tab/tab.js +0 -113
- package/dist/components/base/tabs/tabs/scrollable_tabs.js +0 -162
- package/dist/components/base/tabs/tabs/tabs.js +0 -223
- package/dist/components/base/toast/index.js +0 -66
- package/dist/components/base/toast/toast.js +0 -125
- package/dist/components/base/toast/toaster.js +0 -87
- package/dist/components/base/toggle/toggle.js +0 -178
- package/dist/components/base/token/token.js +0 -97
- package/dist/components/base/token_selector/helpers.js +0 -5
- package/dist/components/base/token_selector/token_container.js +0 -160
- package/dist/components/base/token_selector/token_selector.js +0 -454
- package/dist/components/base/token_selector/token_selector_dropdown.js +0 -223
- package/dist/components/base/tooltip/tooltip.js +0 -54
- package/dist/components/charts/area/area.js +0 -329
- package/dist/components/charts/bar/bar.js +0 -207
- package/dist/components/charts/chart/chart.js +0 -215
- package/dist/components/charts/column/column.js +0 -221
- package/dist/components/charts/discrete_scatter/discrete_scatter.js +0 -199
- package/dist/components/charts/gauge/gauge.js +0 -205
- package/dist/components/charts/heatmap/heatmap.js +0 -299
- package/dist/components/charts/heatmap/index.js +0 -2
- package/dist/components/charts/legend/legend.js +0 -245
- package/dist/components/charts/line/line.js +0 -340
- package/dist/components/charts/series_label/series_label.js +0 -101
- package/dist/components/charts/shared/tooltip/tooltip.js +0 -369
- package/dist/components/charts/shared/tooltip/tooltip_default_format/tooltip_default_format.js +0 -53
- package/dist/components/charts/single_stat/single_stat.js +0 -164
- package/dist/components/charts/sparkline/sparkline.js +0 -299
- package/dist/components/charts/stacked_column/stacked_column.js +0 -380
- package/dist/components/dashboards/dashboard_layout/dashboard_layout.js +0 -125
- package/dist/components/dashboards/dashboard_layout/grid_layout/grid_layout.js +0 -326
- package/dist/components/dashboards/dashboard_layout/validators.js +0 -14
- package/dist/components/dashboards/dashboard_panel/dashboard_panel.js +0 -236
- package/dist/components/dashboards/mock_data.js +0 -49
- package/dist/components/experimental/experiment_badge/constants.js +0 -4
- package/dist/components/experimental/experiment_badge/experiment_badge.js +0 -102
- package/dist/components/extended/multi_step_form_template/multi_step_form_template.js +0 -87
- package/dist/components/index.js +0 -107
- package/dist/components/mixins/button_mixin.js +0 -11
- package/dist/components/mixins/safe_link_mixin.js +0 -30
- package/dist/components/mixins/tooltip_mixin.js +0 -21
- package/dist/components/regions/dashboard_skeleton/dashboard_skeleton.js +0 -53
- package/dist/components/regions/empty_state/empty_state.js +0 -181
- package/dist/components/shared_components/clear_icon_button/clear_icon_button.js +0 -64
- package/dist/components/shared_components/clipboard_button/clipboard_button.js +0 -100
- package/dist/components/shared_components/close_button/close_button.js +0 -55
- package/dist/components/utilities/animated_number/animated_number.js +0 -131
- package/dist/components/utilities/friendly_wrap/friendly_wrap.js +0 -75
- package/dist/components/utilities/intersection_observer/intersection_observer.js +0 -88
- package/dist/components/utilities/intersperse/intersperse.js +0 -104
- package/dist/components/utilities/sprintf/sprintf.js +0 -171
- package/dist/components/utilities/truncate/constants.js +0 -8
- package/dist/components/utilities/truncate/truncate.js +0 -154
- package/dist/components/utilities/truncate_text/constants.js +0 -7
- package/dist/components/utilities/truncate_text/truncate_text.js +0 -146
- package/dist/config.js +0 -53
- package/dist/directives/hover_load/hover_load.js +0 -45
- package/dist/directives/index.js +0 -8
- package/dist/directives/modal.js +0 -1
- package/dist/directives/outside/outside.js +0 -149
- package/dist/directives/resize_observer/resize_observer.js +0 -58
- package/dist/directives/safe_html/constants.js +0 -6
- package/dist/directives/safe_html/safe_html.js +0 -39
- package/dist/directives/safe_link/mock_data.js +0 -10
- package/dist/directives/safe_link/safe_link.js +0 -67
- package/dist/directives/tooltip/container.js +0 -7
- package/dist/directives/tooltip/tooltip.js +0 -18
- package/dist/index.css +0 -7
- package/dist/index.css.map +0 -1
- package/dist/index.js +0 -2
- package/dist/tailwind.css +0 -2
- package/dist/tailwind.css.map +0 -1
- package/dist/tokens/build/js/tokens.dark.js +0 -1410
- package/dist/tokens/build/js/tokens.js +0 -1410
- package/dist/tokens/common_story_options.js +0 -29
- package/dist/tokens/tokens_story.js +0 -76
- package/dist/utils/breakpoints.js +0 -20
- package/dist/utils/charts/config.js +0 -616
- package/dist/utils/charts/constants.js +0 -69
- package/dist/utils/charts/mock_data.js +0 -191
- package/dist/utils/charts/story_config.js +0 -24
- package/dist/utils/charts/theme.js +0 -200
- package/dist/utils/charts/utils.js +0 -54
- package/dist/utils/constants.js +0 -333
- package/dist/utils/data_utils.js +0 -19
- package/dist/utils/datetime_utility.js +0 -61
- package/dist/utils/equality_utils.js +0 -84
- package/dist/utils/i18n.js +0 -65
- package/dist/utils/is_slot_empty.js +0 -34
- package/dist/utils/number_utils.js +0 -132
- package/dist/utils/play_utils.js +0 -11
- package/dist/utils/set_utils.js +0 -25
- package/dist/utils/stories_constants.js +0 -29
- package/dist/utils/stories_utils.js +0 -62
- package/dist/utils/story_decorators/container.js +0 -19
- package/dist/utils/string_utils.js +0 -69
- package/dist/utils/svgs/svg_paths.js +0 -7
- package/dist/utils/test_utils.js +0 -33
- package/dist/utils/use_fake_date.js +0 -29
- package/dist/utils/use_mock_intersection_observer.js +0 -105
- package/dist/utils/utils.js +0 -205
- package/dist/utils.js +0 -5
- package/dist/vendor/bootstrap-vue/src/bv-config.js +0 -8
- package/dist/vendor/bootstrap-vue/src/components/button/button-close.js +0 -81
- package/dist/vendor/bootstrap-vue/src/components/button/button.js +0 -204
- package/dist/vendor/bootstrap-vue/src/components/button/index.js +0 -2
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-divider.js +0 -41
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-form.js +0 -52
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-group.js +0 -75
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-header.js +0 -52
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-item-button.js +0 -85
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-item.js +0 -97
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-text.js +0 -60
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown.js +0 -271
- package/dist/vendor/bootstrap-vue/src/components/dropdown/index.js +0 -8
- package/dist/vendor/bootstrap-vue/src/components/form/form-invalid-feedback.js +0 -53
- package/dist/vendor/bootstrap-vue/src/components/form/form-text.js +0 -55
- package/dist/vendor/bootstrap-vue/src/components/form/form-valid-feedback.js +0 -53
- package/dist/vendor/bootstrap-vue/src/components/form/form.js +0 -56
- package/dist/vendor/bootstrap-vue/src/components/form/index.js +0 -4
- package/dist/vendor/bootstrap-vue/src/components/form-group/form-group.js +0 -348
- package/dist/vendor/bootstrap-vue/src/components/form-group/index.js +0 -1
- package/dist/vendor/bootstrap-vue/src/components/form-select/form-select-option-group.js +0 -54
- package/dist/vendor/bootstrap-vue/src/components/form-select/form-select-option.js +0 -41
- package/dist/vendor/bootstrap-vue/src/components/form-select/form-select.js +0 -143
- package/dist/vendor/bootstrap-vue/src/components/form-select/helpers/mixin-options.js +0 -56
- package/dist/vendor/bootstrap-vue/src/components/form-select/index.js +0 -3
- package/dist/vendor/bootstrap-vue/src/components/form-textarea/form-textarea.js +0 -217
- package/dist/vendor/bootstrap-vue/src/components/form-textarea/index.js +0 -1
- package/dist/vendor/bootstrap-vue/src/components/layout/col.js +0 -156
- package/dist/vendor/bootstrap-vue/src/components/layout/form-row.js +0 -34
- package/dist/vendor/bootstrap-vue/src/components/layout/index.js +0 -2
- package/dist/vendor/bootstrap-vue/src/components/link/index.js +0 -1
- package/dist/vendor/bootstrap-vue/src/components/link/link.js +0 -283
- package/dist/vendor/bootstrap-vue/src/components/modal/helpers/bv-modal-event.class.js +0 -21
- package/dist/vendor/bootstrap-vue/src/components/modal/helpers/modal-manager.js +0 -212
- package/dist/vendor/bootstrap-vue/src/components/modal/index.js +0 -1
- package/dist/vendor/bootstrap-vue/src/components/modal/modal.js +0 -887
- package/dist/vendor/bootstrap-vue/src/components/popover/helpers/bv-popover-template.js +0 -55
- package/dist/vendor/bootstrap-vue/src/components/popover/helpers/bv-popover.js +0 -31
- package/dist/vendor/bootstrap-vue/src/components/popover/index.js +0 -1
- package/dist/vendor/bootstrap-vue/src/components/popover/popover.js +0 -49
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/constants.js +0 -22
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/default-sort-compare.js +0 -64
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/filter-event.js +0 -40
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-bottom-row.js +0 -43
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-busy.js +0 -83
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-caption.js +0 -50
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-colgroup.js +0 -32
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-empty.js +0 -82
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-filtering.js +0 -274
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-items.js +0 -154
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-pagination.js +0 -44
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-provider.js +0 -191
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-selectable.js +0 -213
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-sorting.js +0 -275
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-stacked.js +0 -39
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-table-renderer.js +0 -186
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-tbody-row.js +0 -338
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-tbody.js +0 -243
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-tfoot.js +0 -50
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-thead.js +0 -218
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-top-row.js +0 -42
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/normalize-fields.js +0 -86
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/sanitize-row.js +0 -32
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/stringify-record-values.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/table/helpers/text-selection-active.js +0 -14
- package/dist/vendor/bootstrap-vue/src/components/table/index.js +0 -9
- package/dist/vendor/bootstrap-vue/src/components/table/table-lite.js +0 -51
- package/dist/vendor/bootstrap-vue/src/components/table/table-simple.js +0 -44
- package/dist/vendor/bootstrap-vue/src/components/table/table.js +0 -67
- package/dist/vendor/bootstrap-vue/src/components/table/tbody.js +0 -116
- package/dist/vendor/bootstrap-vue/src/components/table/td.js +0 -204
- package/dist/vendor/bootstrap-vue/src/components/table/tfoot.js +0 -96
- package/dist/vendor/bootstrap-vue/src/components/table/th.js +0 -26
- package/dist/vendor/bootstrap-vue/src/components/table/thead.js +0 -99
- package/dist/vendor/bootstrap-vue/src/components/table/tr.js +0 -121
- package/dist/vendor/bootstrap-vue/src/components/tabs/index.js +0 -2
- package/dist/vendor/bootstrap-vue/src/components/tabs/tab.js +0 -238
- package/dist/vendor/bootstrap-vue/src/components/tabs/tabs.js +0 -601
- package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-popper.js +0 -251
- package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip-template.js +0 -118
- package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +0 -932
- package/dist/vendor/bootstrap-vue/src/components/tooltip/index.js +0 -1
- package/dist/vendor/bootstrap-vue/src/components/tooltip/tooltip.js +0 -269
- package/dist/vendor/bootstrap-vue/src/components/transition/bv-transition.js +0 -103
- package/dist/vendor/bootstrap-vue/src/components/transporter/transporter.js +0 -205
- package/dist/vendor/bootstrap-vue/src/constants/components.js +0 -55
- package/dist/vendor/bootstrap-vue/src/constants/config.js +0 -11
- package/dist/vendor/bootstrap-vue/src/constants/env.js +0 -36
- package/dist/vendor/bootstrap-vue/src/constants/events.js +0 -56
- package/dist/vendor/bootstrap-vue/src/constants/key-codes.js +0 -11
- package/dist/vendor/bootstrap-vue/src/constants/popper.js +0 -10
- package/dist/vendor/bootstrap-vue/src/constants/props.js +0 -24
- package/dist/vendor/bootstrap-vue/src/constants/regex.js +0 -35
- package/dist/vendor/bootstrap-vue/src/constants/safe-types.js +0 -15
- package/dist/vendor/bootstrap-vue/src/constants/slots.js +0 -36
- package/dist/vendor/bootstrap-vue/src/directives/modal/index.js +0 -1
- package/dist/vendor/bootstrap-vue/src/directives/modal/modal.js +0 -112
- package/dist/vendor/bootstrap-vue/src/directives/tooltip/index.js +0 -1
- package/dist/vendor/bootstrap-vue/src/directives/tooltip/tooltip.js +0 -265
- package/dist/vendor/bootstrap-vue/src/directives/visible/index.js +0 -1
- package/dist/vendor/bootstrap-vue/src/directives/visible/visible.js +0 -187
- package/dist/vendor/bootstrap-vue/src/mixins/attrs.js +0 -5
- package/dist/vendor/bootstrap-vue/src/mixins/click-out.js +0 -54
- package/dist/vendor/bootstrap-vue/src/mixins/dropdown.js +0 -470
- package/dist/vendor/bootstrap-vue/src/mixins/focus-in.js +0 -46
- package/dist/vendor/bootstrap-vue/src/mixins/form-control.js +0 -73
- package/dist/vendor/bootstrap-vue/src/mixins/form-custom.js +0 -26
- package/dist/vendor/bootstrap-vue/src/mixins/form-options.js +0 -91
- package/dist/vendor/bootstrap-vue/src/mixins/form-selection.js +0 -62
- package/dist/vendor/bootstrap-vue/src/mixins/form-size.js +0 -26
- package/dist/vendor/bootstrap-vue/src/mixins/form-state.js +0 -50
- package/dist/vendor/bootstrap-vue/src/mixins/form-text.js +0 -293
- package/dist/vendor/bootstrap-vue/src/mixins/form-validity.js +0 -50
- package/dist/vendor/bootstrap-vue/src/mixins/has-listener.js +0 -29
- package/dist/vendor/bootstrap-vue/src/mixins/id.js +0 -57
- package/dist/vendor/bootstrap-vue/src/mixins/listen-on-document.js +0 -63
- package/dist/vendor/bootstrap-vue/src/mixins/listen-on-root.js +0 -121
- package/dist/vendor/bootstrap-vue/src/mixins/listen-on-window.js +0 -63
- package/dist/vendor/bootstrap-vue/src/mixins/listeners.js +0 -25
- package/dist/vendor/bootstrap-vue/src/mixins/model.js +0 -10
- package/dist/vendor/bootstrap-vue/src/mixins/normalize-slot.js +0 -30
- package/dist/vendor/bootstrap-vue/src/mixins/scoped-style.js +0 -18
- package/dist/vendor/bootstrap-vue/src/mixins/use-parent.js +0 -14
- package/dist/vendor/bootstrap-vue/src/utils/array.js +0 -28
- package/dist/vendor/bootstrap-vue/src/utils/bv-event.class.js +0 -60
- package/dist/vendor/bootstrap-vue/src/utils/cache.js +0 -60
- package/dist/vendor/bootstrap-vue/src/utils/clone-deep.js +0 -18
- package/dist/vendor/bootstrap-vue/src/utils/config-set.js +0 -86
- package/dist/vendor/bootstrap-vue/src/utils/config.js +0 -71
- package/dist/vendor/bootstrap-vue/src/utils/create-new-child-component.js +0 -133
- package/dist/vendor/bootstrap-vue/src/utils/css-escape.js +0 -70
- package/dist/vendor/bootstrap-vue/src/utils/dom.js +0 -298
- package/dist/vendor/bootstrap-vue/src/utils/element-to-vue-instance-registry.js +0 -28
- package/dist/vendor/bootstrap-vue/src/utils/env.js +0 -16
- package/dist/vendor/bootstrap-vue/src/utils/events.js +0 -78
- package/dist/vendor/bootstrap-vue/src/utils/get-event-root.js +0 -5
- package/dist/vendor/bootstrap-vue/src/utils/get-instance-from-directive.js +0 -3
- package/dist/vendor/bootstrap-vue/src/utils/get-scope-id.js +0 -9
- package/dist/vendor/bootstrap-vue/src/utils/get.js +0 -63
- package/dist/vendor/bootstrap-vue/src/utils/html.js +0 -16
- package/dist/vendor/bootstrap-vue/src/utils/identity.js +0 -3
- package/dist/vendor/bootstrap-vue/src/utils/inspect.js +0 -35
- package/dist/vendor/bootstrap-vue/src/utils/locale.js +0 -19
- package/dist/vendor/bootstrap-vue/src/utils/loose-equal.js +0 -59
- package/dist/vendor/bootstrap-vue/src/utils/loose-index-of.js +0 -13
- package/dist/vendor/bootstrap-vue/src/utils/math.js +0 -9
- package/dist/vendor/bootstrap-vue/src/utils/memoize.js +0 -14
- package/dist/vendor/bootstrap-vue/src/utils/model.js +0 -33
- package/dist/vendor/bootstrap-vue/src/utils/noop.js +0 -3
- package/dist/vendor/bootstrap-vue/src/utils/normalize-slot.js +0 -51
- package/dist/vendor/bootstrap-vue/src/utils/number.js +0 -23
- package/dist/vendor/bootstrap-vue/src/utils/object.js +0 -72
- package/dist/vendor/bootstrap-vue/src/utils/observe-dom.js +0 -76
- package/dist/vendor/bootstrap-vue/src/utils/on-instance-destroy.js +0 -22
- package/dist/vendor/bootstrap-vue/src/utils/plugins.js +0 -124
- package/dist/vendor/bootstrap-vue/src/utils/props.js +0 -67
- package/dist/vendor/bootstrap-vue/src/utils/router.js +0 -150
- package/dist/vendor/bootstrap-vue/src/utils/safe-vue-instance.js +0 -14
- package/dist/vendor/bootstrap-vue/src/utils/stable-sort.js +0 -28
- package/dist/vendor/bootstrap-vue/src/utils/string.js +0 -47
- package/dist/vendor/bootstrap-vue/src/utils/stringify-object-values.js +0 -31
- package/dist/vendor/bootstrap-vue/src/utils/warn.js +0 -45
- package/dist/vendor/bootstrap-vue/src/vue.js +0 -55
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { PROP_TYPE_ANY } from '../constants/props';
|
|
2
|
-
import { identity } from './identity';
|
|
3
|
-
import { isUndefined, isObject, isArray } from './inspect';
|
|
4
|
-
import { hasOwnProperty, clone, keys } from './object';
|
|
5
|
-
import { upperFirst } from './string';
|
|
6
|
-
|
|
7
|
-
// Suffix can be a falsey value so nothing is appended to string
|
|
8
|
-
// (helps when looping over props & some shouldn't change)
|
|
9
|
-
// Use data last parameters to allow for currying
|
|
10
|
-
const suffixPropName = (suffix, value) => value + (suffix ? upperFirst(suffix) : '');
|
|
11
|
-
|
|
12
|
-
// Generates a prop object
|
|
13
|
-
const makeProp = function () {
|
|
14
|
-
let type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : PROP_TYPE_ANY;
|
|
15
|
-
let value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
16
|
-
let requiredOrValidator = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
17
|
-
let validator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
18
|
-
const required = requiredOrValidator === true;
|
|
19
|
-
validator = required ? validator : requiredOrValidator;
|
|
20
|
-
return {
|
|
21
|
-
...(type ? {
|
|
22
|
-
type
|
|
23
|
-
} : {}),
|
|
24
|
-
...(required ? {
|
|
25
|
-
required
|
|
26
|
-
} : isUndefined(value) ? {} : {
|
|
27
|
-
default: isObject(value) ? () => value : value
|
|
28
|
-
}),
|
|
29
|
-
...(isUndefined(validator) ? {} : {
|
|
30
|
-
validator
|
|
31
|
-
})
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
// Copies props from one array/object to a new array/object
|
|
36
|
-
// Prop values are also cloned as new references to prevent possible
|
|
37
|
-
// mutation of original prop object values
|
|
38
|
-
// Optionally accepts a function to transform the prop name
|
|
39
|
-
const copyProps = function (props) {
|
|
40
|
-
let transformFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : identity;
|
|
41
|
-
if (isArray(props)) {
|
|
42
|
-
return props.map(transformFn);
|
|
43
|
-
}
|
|
44
|
-
const copied = {};
|
|
45
|
-
for (const prop in props) {
|
|
46
|
-
/* istanbul ignore else */
|
|
47
|
-
if (hasOwnProperty(props, prop)) {
|
|
48
|
-
// If the prop value is an object, do a shallow clone
|
|
49
|
-
// to prevent potential mutations to the original object
|
|
50
|
-
copied[transformFn(prop)] = isObject(props[prop]) ? clone(props[prop]) : props[prop];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return copied;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
// Given an array of properties or an object of property keys,
|
|
57
|
-
// plucks all the values off the target object, returning a new object
|
|
58
|
-
// that has props that reference the original prop values
|
|
59
|
-
const pluckProps = function (keysToPluck, objToPluck) {
|
|
60
|
-
let transformFn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : identity;
|
|
61
|
-
return (isArray(keysToPluck) ? keysToPluck.slice() : keys(keysToPluck)).reduce((memo, prop) => {
|
|
62
|
-
memo[transformFn(prop)] = objToPluck[prop];
|
|
63
|
-
return memo;
|
|
64
|
-
}, {});
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export { copyProps, makeProp, pluckProps, suffixPropName };
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { RX_QUERY_START, RX_PLUS, RX_ENCODE_REVERSE, RX_ENCODED_COMMA } from '../constants/regex';
|
|
2
|
-
import { isVue3 } from '../vue';
|
|
3
|
-
import { isTag } from './dom';
|
|
4
|
-
import { isPlainObject, isUndefined, isNull, isArray, isString } from './inspect';
|
|
5
|
-
import { keys } from './object';
|
|
6
|
-
import { safeVueInstance } from './safe-vue-instance';
|
|
7
|
-
import { toString } from './string';
|
|
8
|
-
|
|
9
|
-
const ANCHOR_TAG = 'a';
|
|
10
|
-
|
|
11
|
-
// Method to replace reserved chars
|
|
12
|
-
const encodeReserveReplacer = c => '%' + c.charCodeAt(0).toString(16);
|
|
13
|
-
|
|
14
|
-
// Fixed encodeURIComponent which is more conformant to RFC3986:
|
|
15
|
-
// - escapes [!'()*]
|
|
16
|
-
// - preserve commas
|
|
17
|
-
const encode = str => encodeURIComponent(toString(str)).replace(RX_ENCODE_REVERSE, encodeReserveReplacer).replace(RX_ENCODED_COMMA, ',');
|
|
18
|
-
const decode = decodeURIComponent;
|
|
19
|
-
|
|
20
|
-
// Stringifies an object of query parameters
|
|
21
|
-
// See: https://github.com/vuejs/vue-router/blob/dev/src/util/query.js
|
|
22
|
-
const stringifyQueryObj = obj => {
|
|
23
|
-
if (!isPlainObject(obj)) {
|
|
24
|
-
return '';
|
|
25
|
-
}
|
|
26
|
-
const query = keys(obj).map(key => {
|
|
27
|
-
const value = obj[key];
|
|
28
|
-
if (isUndefined(value)) {
|
|
29
|
-
return '';
|
|
30
|
-
} else if (isNull(value)) {
|
|
31
|
-
return encode(key);
|
|
32
|
-
} else if (isArray(value)) {
|
|
33
|
-
return value.reduce((results, value2) => {
|
|
34
|
-
if (isNull(value2)) {
|
|
35
|
-
results.push(encode(key));
|
|
36
|
-
} else if (!isUndefined(value2)) {
|
|
37
|
-
// Faster than string interpolation
|
|
38
|
-
results.push(encode(key) + '=' + encode(value2));
|
|
39
|
-
}
|
|
40
|
-
return results;
|
|
41
|
-
}, []).join('&');
|
|
42
|
-
}
|
|
43
|
-
// Faster than string interpolation
|
|
44
|
-
return encode(key) + '=' + encode(value);
|
|
45
|
-
})
|
|
46
|
-
/* must check for length, as we only want to filter empty strings, not things that look falsey! */.filter(x => x.length > 0).join('&');
|
|
47
|
-
return query ? `?${query}` : '';
|
|
48
|
-
};
|
|
49
|
-
const parseQuery = query => {
|
|
50
|
-
const parsed = {};
|
|
51
|
-
query = toString(query).trim().replace(RX_QUERY_START, '');
|
|
52
|
-
if (!query) {
|
|
53
|
-
return parsed;
|
|
54
|
-
}
|
|
55
|
-
query.split('&').forEach(param => {
|
|
56
|
-
const parts = param.replace(RX_PLUS, ' ').split('=');
|
|
57
|
-
const key = decode(parts.shift());
|
|
58
|
-
const value = parts.length > 0 ? decode(parts.join('=')) : null;
|
|
59
|
-
if (isUndefined(parsed[key])) {
|
|
60
|
-
parsed[key] = value;
|
|
61
|
-
} else if (isArray(parsed[key])) {
|
|
62
|
-
parsed[key].push(value);
|
|
63
|
-
} else {
|
|
64
|
-
parsed[key] = [parsed[key], value];
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
return parsed;
|
|
68
|
-
};
|
|
69
|
-
const isLink = props => !!(props.href || props.to);
|
|
70
|
-
const routerLink = {
|
|
71
|
-
functional: true,
|
|
72
|
-
_name: 'router-link',
|
|
73
|
-
render(h, ctx) {
|
|
74
|
-
// $hasNormal is Vue.js 2 legacy way to check if default slot is scoped or not
|
|
75
|
-
// in bootstrap-vue codebase we never use scoped slots router-link rendering
|
|
76
|
-
return h('router-link', ctx.data, {
|
|
77
|
-
...ctx.children,
|
|
78
|
-
$hasNormal: true
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
const isRouterLink = tag => !!(tag && !isTag(tag, 'a'));
|
|
83
|
-
const computeTag = (_ref, thisOrParent) => {
|
|
84
|
-
let {
|
|
85
|
-
to,
|
|
86
|
-
disabled,
|
|
87
|
-
routerComponentName
|
|
88
|
-
} = _ref;
|
|
89
|
-
const hasRouter = !!safeVueInstance(thisOrParent).$router;
|
|
90
|
-
const hasNuxt = !!safeVueInstance(thisOrParent).$nuxt;
|
|
91
|
-
if (!hasRouter || hasRouter && (disabled || !to)) {
|
|
92
|
-
return ANCHOR_TAG;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// TODO:
|
|
96
|
-
// Check registered components for existence of user supplied router link component name
|
|
97
|
-
// We would need to check PascalCase, kebab-case, and camelCase versions of name:
|
|
98
|
-
// const name = routerComponentName
|
|
99
|
-
// const names = [name, PascalCase(name), KebabCase(name), CamelCase(name)]
|
|
100
|
-
// exists = names.some(name => !!thisOrParent.$options.components[name])
|
|
101
|
-
// And may want to cache the result for performance or we just let the render fail
|
|
102
|
-
// if the component is not registered
|
|
103
|
-
const actualRouterLink = isVue3(thisOrParent) ? routerLink : 'router-link';
|
|
104
|
-
return routerComponentName || (hasNuxt ? 'nuxt-link' : actualRouterLink);
|
|
105
|
-
};
|
|
106
|
-
const computeRel = function () {
|
|
107
|
-
let {
|
|
108
|
-
target,
|
|
109
|
-
rel
|
|
110
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
111
|
-
return target === '_blank' && isNull(rel) ? 'noopener' : rel || null;
|
|
112
|
-
};
|
|
113
|
-
const computeHref = function () {
|
|
114
|
-
let {
|
|
115
|
-
href,
|
|
116
|
-
to
|
|
117
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
118
|
-
let tag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ANCHOR_TAG;
|
|
119
|
-
let fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '#';
|
|
120
|
-
let toFallback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '/';
|
|
121
|
-
// Return `href` when explicitly provided
|
|
122
|
-
if (href) {
|
|
123
|
-
return href;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// We've checked for `$router` in `computeTag()`, so `isRouterLink()` indicates a live router
|
|
127
|
-
// When deferring to Vue Router's `<router-link>`, don't use the `href` attribute at all
|
|
128
|
-
// We return `null`, and then remove `href` from the attributes passed to `<router-link>`
|
|
129
|
-
if (isRouterLink(tag)) {
|
|
130
|
-
return null;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
// Fallback to `to` prop (if `to` is a string)
|
|
134
|
-
if (isString(to)) {
|
|
135
|
-
return to || toFallback;
|
|
136
|
-
}
|
|
137
|
-
// Fallback to `to.path' + `to.query` + `to.hash` prop (if `to` is an object)
|
|
138
|
-
if (isPlainObject(to) && (to.path || to.query || to.hash)) {
|
|
139
|
-
const path = toString(to.path);
|
|
140
|
-
const query = stringifyQueryObj(to.query);
|
|
141
|
-
let hash = toString(to.hash);
|
|
142
|
-
hash = !hash || hash.charAt(0) === '#' ? hash : `#${hash}`;
|
|
143
|
-
return `${path}${query}${hash}` || toFallback;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// If nothing is provided return the fallback
|
|
147
|
-
return fallback;
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
export { computeHref, computeRel, computeTag, isLink, isRouterLink, parseQuery, stringifyQueryObj };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { isVue3 } from '../vue';
|
|
2
|
-
|
|
3
|
-
function safeVueInstance(target) {
|
|
4
|
-
if (!isVue3(target)) {
|
|
5
|
-
return target;
|
|
6
|
-
}
|
|
7
|
-
return new Proxy(target, {
|
|
8
|
-
get(target, prop) {
|
|
9
|
-
return prop in target ? target[prop] : undefined;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { safeVueInstance };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Consistent and stable sort function across JavaScript platforms
|
|
3
|
-
*
|
|
4
|
-
* Inconsistent sorts can cause SSR problems between client and server
|
|
5
|
-
* such as in <b-table> if sortBy is applied to the data on server side render.
|
|
6
|
-
* Chrome and V8 native sorts are inconsistent/unstable
|
|
7
|
-
*
|
|
8
|
-
* This function uses native sort with fallback to index compare when the a and b
|
|
9
|
-
* compare returns 0
|
|
10
|
-
*
|
|
11
|
-
* Algorithm based on:
|
|
12
|
-
* https://stackoverflow.com/questions/1427608/fast-stable-sorting-algorithm-implementation-in-javascript/45422645#45422645
|
|
13
|
-
*
|
|
14
|
-
* @param {array} array to sort
|
|
15
|
-
* @param {function} sort compare function
|
|
16
|
-
* @return {array}
|
|
17
|
-
*/
|
|
18
|
-
const stableSort = (array, compareFn) => {
|
|
19
|
-
// Using `.bind(compareFn)` on the wrapped anonymous function improves
|
|
20
|
-
// performance by avoiding the function call setup. We don't use an arrow
|
|
21
|
-
// function here as it binds `this` to the `stableSort` context rather than
|
|
22
|
-
// the `compareFn` context, which wouldn't give us the performance increase.
|
|
23
|
-
return array.map((a, index) => [index, a]).sort(function (a, b) {
|
|
24
|
-
return this(a[1], b[1]) || a[0] - b[0];
|
|
25
|
-
}.bind(compareFn)).map(e => e[1]);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export { stableSort };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { RX_HYPHENATE, RX_UNDERSCORE, RX_LOWER_UPPER, RX_START_SPACE_WORD, RX_REGEXP_REPLACE, RX_TRIM_LEFT, RX_TRIM_RIGHT } from '../constants/regex';
|
|
2
|
-
import { isString, isUndefinedOrNull, isArray, isPlainObject } from './inspect';
|
|
3
|
-
|
|
4
|
-
// String utilities
|
|
5
|
-
|
|
6
|
-
// --- Utilities ---
|
|
7
|
-
|
|
8
|
-
// Converts PascalCase or camelCase to kebab-case
|
|
9
|
-
const kebabCase = str => {
|
|
10
|
-
return str.replace(RX_HYPHENATE, '-$1').toLowerCase();
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
// Converts a string, including strings in camelCase or snake_case, into Start Case
|
|
14
|
-
// It keeps original single quote and hyphen in the word
|
|
15
|
-
// https://github.com/UrbanCompass/to-start-case
|
|
16
|
-
const startCase = str => str.replace(RX_UNDERSCORE, ' ').replace(RX_LOWER_UPPER, (str, $1, $2) => $1 + ' ' + $2).replace(RX_START_SPACE_WORD, (str, $1, $2) => $1 + $2.toUpperCase());
|
|
17
|
-
|
|
18
|
-
// Uppercases the first letter of a string and returns a new string
|
|
19
|
-
const upperFirst = str => {
|
|
20
|
-
str = isString(str) ? str.trim() : String(str);
|
|
21
|
-
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
// Escape characters to be used in building a regular expression
|
|
25
|
-
const escapeRegExp = str => str.replace(RX_REGEXP_REPLACE, '\\$&');
|
|
26
|
-
|
|
27
|
-
// Convert a value to a string that can be rendered
|
|
28
|
-
// `undefined`/`null` will be converted to `''`
|
|
29
|
-
// Plain objects and arrays will be JSON stringified
|
|
30
|
-
const toString = function (val) {
|
|
31
|
-
let spaces = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
32
|
-
return isUndefinedOrNull(val) ? '' : isArray(val) || isPlainObject(val) && val.toString === Object.prototype.toString ? JSON.stringify(val, null, spaces) : String(val);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
// Remove leading white space from a string
|
|
36
|
-
const trimLeft = str => toString(str).replace(RX_TRIM_LEFT, '');
|
|
37
|
-
|
|
38
|
-
// Remove Trailing white space from a string
|
|
39
|
-
const trimRight = str => toString(str).replace(RX_TRIM_RIGHT, '');
|
|
40
|
-
|
|
41
|
-
// Remove leading and trailing white space from a string
|
|
42
|
-
const trim = str => toString(str).trim();
|
|
43
|
-
|
|
44
|
-
// Lower case a string
|
|
45
|
-
const lowerCase = str => toString(str).toLowerCase();
|
|
46
|
-
|
|
47
|
-
export { escapeRegExp, kebabCase, lowerCase, startCase, toString, trim, trimLeft, trimRight, upperFirst };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { isUndefinedOrNull, isObject, isDate } from './inspect';
|
|
2
|
-
import { keys } from './object';
|
|
3
|
-
import { toString } from './string';
|
|
4
|
-
|
|
5
|
-
// Recursively stringifies the values of an object, space separated, in an
|
|
6
|
-
// SSR safe deterministic way (keys are sorted before stringification)
|
|
7
|
-
//
|
|
8
|
-
// ex:
|
|
9
|
-
// { b: 3, c: { z: 'zzz', d: null, e: 2 }, d: [10, 12, 11], a: 'one' }
|
|
10
|
-
// becomes
|
|
11
|
-
// 'one 3 2 zzz 10 12 11'
|
|
12
|
-
//
|
|
13
|
-
// Strings are returned as-is
|
|
14
|
-
// Numbers get converted to string
|
|
15
|
-
// `null` and `undefined` values are filtered out
|
|
16
|
-
// Dates are converted to their native string format
|
|
17
|
-
const stringifyObjectValues = value => {
|
|
18
|
-
if (isUndefinedOrNull(value)) {
|
|
19
|
-
return '';
|
|
20
|
-
}
|
|
21
|
-
// Arrays are also object, and keys just returns the array indexes
|
|
22
|
-
// Date objects we convert to strings
|
|
23
|
-
if (isObject(value) && !isDate(value)) {
|
|
24
|
-
return keys(value).sort() // Sort to prevent SSR issues on pre-rendered sorted tables
|
|
25
|
-
.map(k => stringifyObjectValues(value[k])).filter(v => !!v) // Ignore empty strings
|
|
26
|
-
.join(' ');
|
|
27
|
-
}
|
|
28
|
-
return toString(value);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export { stringifyObjectValues };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { IS_BROWSER, HAS_MUTATION_OBSERVER_SUPPORT } from '../constants/env';
|
|
2
|
-
import { getNoWarn } from './env';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Log a warning message to the console with BootstrapVue formatting
|
|
6
|
-
* @param {string} message
|
|
7
|
-
*/
|
|
8
|
-
const warn = function (message) /* istanbul ignore next */{
|
|
9
|
-
let source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
10
|
-
if (!getNoWarn()) {
|
|
11
|
-
console.warn(`[BootstrapVue warn]: ${source ? `${source} - ` : ''}${message}`);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Warn when no Promise support is given
|
|
17
|
-
* @param {string} source
|
|
18
|
-
* @returns {boolean} warned
|
|
19
|
-
*/
|
|
20
|
-
const warnNotClient = source => {
|
|
21
|
-
/* istanbul ignore else */
|
|
22
|
-
if (IS_BROWSER) {
|
|
23
|
-
return false;
|
|
24
|
-
} else {
|
|
25
|
-
warn(`${source}: Can not be called during SSR.`);
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Warn when no MutationObserver support is given
|
|
32
|
-
* @param {string} source
|
|
33
|
-
* @returns {boolean} warned
|
|
34
|
-
*/
|
|
35
|
-
const warnNoMutationObserverSupport = source => {
|
|
36
|
-
/* istanbul ignore else */
|
|
37
|
-
if (HAS_MUTATION_OBSERVER_SUPPORT) {
|
|
38
|
-
return false;
|
|
39
|
-
} else {
|
|
40
|
-
warn(`${source}: Requires MutationObserver support.`);
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export { warn, warnNoMutationObserverSupport, warnNotClient };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import Vue from 'vue';
|
|
2
|
-
import { mergeData as mergeData$1 } from 'vue-functional-data-merge';
|
|
3
|
-
|
|
4
|
-
// --- Constants ---
|
|
5
|
-
const COMPONENT_UID_KEY = '_uid';
|
|
6
|
-
const isGlobalVue3 = Vue.version.startsWith('3');
|
|
7
|
-
const REF_FOR_KEY = isGlobalVue3 ? 'ref_for' : 'refInFor';
|
|
8
|
-
if (isGlobalVue3) {
|
|
9
|
-
const originalVModelDynamicCreated = Vue.vModelDynamic.created;
|
|
10
|
-
const originalVModelDynamicBeforeUpdate = Vue.vModelDynamic.beforeUpdate;
|
|
11
|
-
let assignSymbol;
|
|
12
|
-
|
|
13
|
-
// See https://github.com/vuejs/vue-next/pull/4121 for details
|
|
14
|
-
Vue.vModelDynamic.created = function (el, binding, vnode) {
|
|
15
|
-
originalVModelDynamicCreated.call(this, el, binding, vnode);
|
|
16
|
-
if (!el._assign) {
|
|
17
|
-
el._assign = () => {};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Added check for Symbol('_assign') to fix in compat 3.3.5+ based on https://github.com/bootstrap-vue/bootstrap-vue/issues/7181
|
|
21
|
-
if (!assignSymbol) {
|
|
22
|
-
assignSymbol = Object.getOwnPropertySymbols(el).find(s => s.description === '_assign');
|
|
23
|
-
}
|
|
24
|
-
if (!el[assignSymbol]) {
|
|
25
|
-
el[assignSymbol] = function () {};
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
Vue.vModelDynamic.beforeUpdate = function (el, binding, vnode) {
|
|
29
|
-
originalVModelDynamicBeforeUpdate.call(this, el, binding, vnode);
|
|
30
|
-
if (!el._assign) {
|
|
31
|
-
el._assign = () => {};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// Added check for Symbol('_assign') to fix in 3.3.5+ based on https://github.com/bootstrap-vue/bootstrap-vue/issues/7181
|
|
35
|
-
if (!assignSymbol) {
|
|
36
|
-
assignSymbol = Object.getOwnPropertySymbols(el).find(s => s.description === '_assign');
|
|
37
|
-
}
|
|
38
|
-
if (!el[assignSymbol]) {
|
|
39
|
-
el[assignSymbol] = function () {};
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
const isVue3 = instance => Boolean(instance.$);
|
|
44
|
-
const extend = Vue.extend.bind(Vue);
|
|
45
|
-
function mergeData() {
|
|
46
|
-
var _result$attrs, _result$props;
|
|
47
|
-
const result = mergeData$1(...arguments);
|
|
48
|
-
return {
|
|
49
|
-
...result,
|
|
50
|
-
...((_result$attrs = result.attrs) !== null && _result$attrs !== void 0 ? _result$attrs : {}),
|
|
51
|
-
...((_result$props = result.props) !== null && _result$props !== void 0 ? _result$props : {})
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { COMPONENT_UID_KEY, REF_FOR_KEY, extend, isGlobalVue3, isVue3, mergeData };
|