@gitlab/ui 92.2.0 → 92.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/bin/migrate_custom_utils_to_tw.bundled.mjs +11 -3
- package/dist/index.css +4 -2
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/vendor/bootstrap-vue/src/components/form/index.js +0 -4
- package/dist/vendor/bootstrap-vue/src/components/index.js +0 -48
- package/dist/vendor/bootstrap-vue/src/components/layout/index.js +0 -6
- package/dist/vendor/bootstrap-vue/src/components/nav/index.js +0 -6
- package/dist/vendor/bootstrap-vue/src/components/navbar/index.js +1 -8
- package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +2 -6
- package/dist/vendor/bootstrap-vue/src/constants/classes.js +1 -2
- package/dist/vendor/bootstrap-vue/src/constants/components.js +1 -51
- package/dist/vendor/bootstrap-vue/src/constants/events.js +1 -12
- package/dist/vendor/bootstrap-vue/src/constants/key-codes.js +1 -5
- package/dist/vendor/bootstrap-vue/src/constants/props.js +1 -4
- package/dist/vendor/bootstrap-vue/src/constants/regex.js +1 -20
- package/dist/vendor/bootstrap-vue/src/constants/slots.js +1 -33
- package/dist/vendor/bootstrap-vue/src/directives/toggle/toggle.js +1 -1
- package/dist/vendor/bootstrap-vue/src/index.js +0 -74
- package/dist/vendor/bootstrap-vue/src/utils/array.js +1 -3
- package/dist/vendor/bootstrap-vue/src/utils/inspect.js +1 -3
- package/dist/vendor/bootstrap-vue/src/utils/math.js +1 -3
- package/dist/vendor/bootstrap-vue/src/utils/object.js +1 -6
- package/dist/vendor/bootstrap-vue/src/utils/props.js +2 -8
- package/dist/vendor/bootstrap-vue/src/utils/string.js +1 -10
- package/package.json +1 -1
- package/src/components/base/accordion/accordion_item.scss +3 -3
- package/src/components/base/alert/alert.scss +3 -3
- package/src/components/base/avatar_labeled/avatar_labeled.scss +2 -2
- package/src/components/base/avatars_inline/avatars_inline.scss +1 -1
- package/src/components/base/badge/badge.scss +2 -2
- package/src/components/base/banner/banner.scss +2 -2
- package/src/components/base/breadcrumb/breadcrumb.scss +3 -3
- package/src/components/base/broadcast_message/broadcast_message.scss +3 -3
- package/src/components/base/button/button.scss +14 -14
- package/src/components/base/card/card.scss +1 -1
- package/src/components/base/datepicker/datepicker.scss +10 -10
- package/src/components/base/drawer/drawer.scss +5 -5
- package/src/components/base/dropdown/dropdown.scss +28 -28
- package/src/components/base/dropdown/dropdown_divider.scss +3 -3
- package/src/components/base/dropdown/dropdown_item.scss +9 -9
- package/src/components/base/dropdown/dropdown_section_header.scss +2 -2
- package/src/components/base/dropdown/dropdown_text.scss +1 -1
- package/src/components/base/filtered_search/filtered_search.scss +7 -7
- package/src/components/base/filtered_search/filtered_search_suggestion.scss +1 -1
- package/src/components/base/filtered_search/filtered_search_suggestion_list.scss +3 -3
- package/src/components/base/filtered_search/filtered_search_term.scss +2 -2
- package/src/components/base/filtered_search/filtered_search_token.scss +4 -4
- package/src/components/base/filtered_search/filtered_search_token_segment.scss +2 -2
- package/src/components/base/form/form_checkbox/form_checkbox.scss +10 -10
- package/src/components/base/form/form_group/form_group.scss +5 -5
- package/src/components/base/form/form_input/form_input.scss +2 -2
- package/src/components/base/form/form_select/form_select.scss +2 -2
- package/src/components/base/keyset_pagination/keyset_pagination.scss +1 -1
- package/src/components/base/label/label.scss +1 -1
- package/src/components/base/loading_icon/loading_icon.scss +1 -1
- package/src/components/base/markdown/markdown.scss +33 -33
- package/src/components/base/modal/modal.scss +11 -11
- package/src/components/base/new_dropdowns/dropdown.scss +14 -14
- package/src/components/base/new_dropdowns/dropdown_item.scss +9 -9
- package/src/components/base/new_dropdowns/listbox/listbox.scss +1 -1
- package/src/components/base/pagination/pagination.scss +3 -3
- package/src/components/base/path/path.scss +5 -5
- package/src/components/base/popover/popover.scss +5 -5
- package/src/components/base/search_box_by_click/search_box_by_click.scss +2 -2
- package/src/components/base/search_box_by_type/search_box_by_type.scss +4 -4
- package/src/components/base/table/table.scss +4 -4
- package/src/components/base/tabs/tabs/tabs.scss +10 -10
- package/src/components/base/toast/toast.scss +7 -7
- package/src/components/base/toggle/toggle.scss +6 -6
- package/src/components/base/token/token.scss +5 -5
- package/src/components/base/tooltip/tooltip.scss +3 -3
- package/src/components/charts/legend/legend.scss +4 -4
- package/src/components/charts/series_label/series_label.scss +1 -1
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.scss +1 -1
- package/src/components/experimental/duo/chat/duo_chat.scss +4 -4
- package/src/components/shared_components/charts/tooltip_default_format.scss +1 -1
- package/src/scss/bootstrap_vue.scss +0 -18
- package/src/scss/typescale/_index.scss +9 -9
- package/src/vendor/bootstrap-vue/nuxt/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/_utilities.scss +0 -9
- package/src/vendor/bootstrap-vue/src/_variables.scss +0 -52
- package/src/vendor/bootstrap-vue/src/components/form/index.d.ts +0 -3
- package/src/vendor/bootstrap-vue/src/components/form/index.js +1 -4
- package/src/vendor/bootstrap-vue/src/components/form/package.json +0 -12
- package/src/vendor/bootstrap-vue/src/components/index.d.ts +0 -24
- package/src/vendor/bootstrap-vue/src/components/index.js +0 -48
- package/src/vendor/bootstrap-vue/src/components/index.scss +0 -15
- package/src/vendor/bootstrap-vue/src/components/layout/index.d.ts +0 -6
- package/src/vendor/bootstrap-vue/src/components/layout/index.js +1 -5
- package/src/vendor/bootstrap-vue/src/components/layout/package.json +0 -67
- package/src/vendor/bootstrap-vue/src/components/modal/README.md +0 -1
- package/src/vendor/bootstrap-vue/src/components/nav/index.d.ts +0 -6
- package/src/vendor/bootstrap-vue/src/components/nav/index.js +1 -5
- package/src/vendor/bootstrap-vue/src/components/nav/package.json +0 -45
- package/src/vendor/bootstrap-vue/src/components/navbar/README.md +0 -5
- package/src/vendor/bootstrap-vue/src/components/navbar/index.d.ts +1 -7
- package/src/vendor/bootstrap-vue/src/components/navbar/index.js +2 -7
- package/src/vendor/bootstrap-vue/src/components/navbar/package.json +0 -75
- package/src/vendor/bootstrap-vue/src/components/table/README.md +1 -2
- package/src/vendor/bootstrap-vue/src/components/tabs/README.md +2 -2
- package/src/vendor/bootstrap-vue/src/components/toast/README.md +1 -3
- package/src/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +2 -6
- package/src/vendor/bootstrap-vue/src/constants/classes.js +0 -1
- package/src/vendor/bootstrap-vue/src/constants/components.js +0 -50
- package/src/vendor/bootstrap-vue/src/constants/events.js +0 -11
- package/src/vendor/bootstrap-vue/src/constants/key-codes.js +0 -4
- package/src/vendor/bootstrap-vue/src/constants/props.js +0 -3
- package/src/vendor/bootstrap-vue/src/constants/regex.js +0 -19
- package/src/vendor/bootstrap-vue/src/constants/slots.js +0 -32
- package/src/vendor/bootstrap-vue/src/directives/toggle/README.md +5 -23
- package/src/vendor/bootstrap-vue/src/directives/toggle/package.json +1 -1
- package/src/vendor/bootstrap-vue/src/directives/toggle/toggle.js +1 -1
- package/src/vendor/bootstrap-vue/src/index.js +0 -122
- package/src/vendor/bootstrap-vue/src/index.scss +0 -3
- package/src/vendor/bootstrap-vue/src/utils/array.js +0 -5
- package/src/vendor/bootstrap-vue/src/utils/config.spec.js +15 -15
- package/src/vendor/bootstrap-vue/src/utils/inspect.js +0 -4
- package/src/vendor/bootstrap-vue/src/utils/math.js +0 -4
- package/src/vendor/bootstrap-vue/src/utils/object.js +0 -5
- package/src/vendor/bootstrap-vue/src/utils/props.js +1 -7
- package/src/vendor/bootstrap-vue/src/utils/string.js +0 -9
- package/src/vendor/bootstrap-vue/src/utils/string.spec.js +1 -20
- package/dist/vendor/bootstrap-vue/src/components/alert/alert.js +0 -179
- package/dist/vendor/bootstrap-vue/src/components/alert/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/aspect/aspect.js +0 -67
- package/dist/vendor/bootstrap-vue/src/components/aspect/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/avatar/avatar-group.js +0 -67
- package/dist/vendor/bootstrap-vue/src/components/avatar/avatar.js +0 -266
- package/dist/vendor/bootstrap-vue/src/components/avatar/index.js +0 -14
- package/dist/vendor/bootstrap-vue/src/components/button-toolbar/button-toolbar.js +0 -112
- package/dist/vendor/bootstrap-vue/src/components/button-toolbar/index.js +0 -12
- package/dist/vendor/bootstrap-vue/src/components/calendar/calendar.js +0 -1010
- package/dist/vendor/bootstrap-vue/src/components/calendar/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/card/card-body.js +0 -63
- package/dist/vendor/bootstrap-vue/src/components/card/card-footer.js +0 -48
- package/dist/vendor/bootstrap-vue/src/components/card/card-group.js +0 -33
- package/dist/vendor/bootstrap-vue/src/components/card/card-header.js +0 -48
- package/dist/vendor/bootstrap-vue/src/components/card/card-img-lazy.js +0 -46
- package/dist/vendor/bootstrap-vue/src/components/card/card-img.js +0 -58
- package/dist/vendor/bootstrap-vue/src/components/card/card-sub-title.js +0 -35
- package/dist/vendor/bootstrap-vue/src/components/card/card-text.js +0 -31
- package/dist/vendor/bootstrap-vue/src/components/card/card-title.js +0 -33
- package/dist/vendor/bootstrap-vue/src/components/card/card.js +0 -123
- package/dist/vendor/bootstrap-vue/src/components/card/index.js +0 -38
- package/dist/vendor/bootstrap-vue/src/components/embed/embed.js +0 -50
- package/dist/vendor/bootstrap-vue/src/components/embed/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/form/form-datalist.js +0 -52
- package/dist/vendor/bootstrap-vue/src/components/form-btn-label-control/bv-form-btn-label-control.js +0 -261
- package/dist/vendor/bootstrap-vue/src/components/form-datepicker/form-datepicker.js +0 -310
- package/dist/vendor/bootstrap-vue/src/components/form-datepicker/index.js +0 -12
- package/dist/vendor/bootstrap-vue/src/components/form-file/form-file.js +0 -561
- package/dist/vendor/bootstrap-vue/src/components/form-file/index.js +0 -12
- package/dist/vendor/bootstrap-vue/src/components/form-rating/form-rating.js +0 -402
- package/dist/vendor/bootstrap-vue/src/components/form-rating/index.js +0 -12
- package/dist/vendor/bootstrap-vue/src/components/form-spinbutton/form-spinbutton.js +0 -555
- package/dist/vendor/bootstrap-vue/src/components/form-spinbutton/index.js +0 -12
- package/dist/vendor/bootstrap-vue/src/components/form-tags/form-tag.js +0 -97
- package/dist/vendor/bootstrap-vue/src/components/form-tags/form-tags.js +0 -806
- package/dist/vendor/bootstrap-vue/src/components/form-tags/index.js +0 -16
- package/dist/vendor/bootstrap-vue/src/components/form-timepicker/form-timepicker.js +0 -281
- package/dist/vendor/bootstrap-vue/src/components/form-timepicker/index.js +0 -12
- package/dist/vendor/bootstrap-vue/src/components/image/img-lazy.js +0 -157
- package/dist/vendor/bootstrap-vue/src/components/image/img.js +0 -124
- package/dist/vendor/bootstrap-vue/src/components/image/index.js +0 -14
- package/dist/vendor/bootstrap-vue/src/components/jumbotron/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/jumbotron/jumbotron.js +0 -98
- package/dist/vendor/bootstrap-vue/src/components/layout/container.js +0 -41
- package/dist/vendor/bootstrap-vue/src/components/layout/row.js +0 -113
- package/dist/vendor/bootstrap-vue/src/components/list-group/index.js +0 -14
- package/dist/vendor/bootstrap-vue/src/components/list-group/list-group-item.js +0 -78
- package/dist/vendor/bootstrap-vue/src/components/list-group/list-group.js +0 -42
- package/dist/vendor/bootstrap-vue/src/components/media/index.js +0 -17
- package/dist/vendor/bootstrap-vue/src/components/media/media-aside.js +0 -41
- package/dist/vendor/bootstrap-vue/src/components/media/media-body.js +0 -31
- package/dist/vendor/bootstrap-vue/src/components/media/media.js +0 -61
- package/dist/vendor/bootstrap-vue/src/components/nav/nav-form.js +0 -45
- package/dist/vendor/bootstrap-vue/src/components/nav/nav-text.js +0 -26
- package/dist/vendor/bootstrap-vue/src/components/navbar/navbar-nav.js +0 -46
- package/dist/vendor/bootstrap-vue/src/components/navbar/navbar-toggle.js +0 -89
- package/dist/vendor/bootstrap-vue/src/components/overlay/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/overlay/overlay.js +0 -163
- package/dist/vendor/bootstrap-vue/src/components/pagination/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/pagination/pagination.js +0 -135
- package/dist/vendor/bootstrap-vue/src/components/pagination-nav/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/pagination-nav/pagination-nav.js +0 -299
- package/dist/vendor/bootstrap-vue/src/components/sidebar/index.js +0 -15
- package/dist/vendor/bootstrap-vue/src/components/sidebar/sidebar.js +0 -432
- package/dist/vendor/bootstrap-vue/src/components/skeleton/index.js +0 -23
- package/dist/vendor/bootstrap-vue/src/components/skeleton/skeleton-icon.js +0 -47
- package/dist/vendor/bootstrap-vue/src/components/skeleton/skeleton-img.js +0 -60
- package/dist/vendor/bootstrap-vue/src/components/skeleton/skeleton-table.js +0 -64
- package/dist/vendor/bootstrap-vue/src/components/skeleton/skeleton-wrapper.js +0 -46
- package/dist/vendor/bootstrap-vue/src/components/skeleton/skeleton.js +0 -49
- package/dist/vendor/bootstrap-vue/src/components/spinner/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/spinner/spinner.js +0 -55
- package/dist/vendor/bootstrap-vue/src/components/time/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/time/time.js +0 -600
- package/dist/vendor/bootstrap-vue/src/constants/date.js +0 -8
- package/dist/vendor/bootstrap-vue/src/mixins/card.js +0 -22
- package/dist/vendor/bootstrap-vue/src/mixins/pagination.js +0 -598
- package/dist/vendor/bootstrap-vue/src/utils/date.js +0 -135
- package/src/vendor/bootstrap-vue/src/_custom-controls.scss +0 -30
- package/src/vendor/bootstrap-vue/src/components/alert/README.md +0 -280
- package/src/vendor/bootstrap-vue/src/components/alert/alert.js +0 -185
- package/src/vendor/bootstrap-vue/src/components/alert/alert.spec.js +0 -442
- package/src/vendor/bootstrap-vue/src/components/alert/index.d.ts +0 -13
- package/src/vendor/bootstrap-vue/src/components/alert/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/components/alert/package.json +0 -72
- package/src/vendor/bootstrap-vue/src/components/aspect/README.md +0 -65
- package/src/vendor/bootstrap-vue/src/components/aspect/aspect.js +0 -65
- package/src/vendor/bootstrap-vue/src/components/aspect/aspect.spec.js +0 -121
- package/src/vendor/bootstrap-vue/src/components/aspect/index.d.ts +0 -11
- package/src/vendor/bootstrap-vue/src/components/aspect/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/components/aspect/package.json +0 -26
- package/src/vendor/bootstrap-vue/src/components/avatar/README.md +0 -567
- package/src/vendor/bootstrap-vue/src/components/avatar/_avatar.scss +0 -148
- package/src/vendor/bootstrap-vue/src/components/avatar/avatar-group.js +0 -75
- package/src/vendor/bootstrap-vue/src/components/avatar/avatar-group.spec.js +0 -74
- package/src/vendor/bootstrap-vue/src/components/avatar/avatar.js +0 -228
- package/src/vendor/bootstrap-vue/src/components/avatar/avatar.spec.js +0 -355
- package/src/vendor/bootstrap-vue/src/components/avatar/index.d.ts +0 -14
- package/src/vendor/bootstrap-vue/src/components/avatar/index.js +0 -9
- package/src/vendor/bootstrap-vue/src/components/avatar/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/avatar/package.json +0 -149
- package/src/vendor/bootstrap-vue/src/components/button-toolbar/README.md +0 -109
- package/src/vendor/bootstrap-vue/src/components/button-toolbar/button-toolbar.js +0 -117
- package/src/vendor/bootstrap-vue/src/components/button-toolbar/button-toolbar.spec.js +0 -185
- package/src/vendor/bootstrap-vue/src/components/button-toolbar/index.d.ts +0 -11
- package/src/vendor/bootstrap-vue/src/components/button-toolbar/index.js +0 -11
- package/src/vendor/bootstrap-vue/src/components/button-toolbar/package.json +0 -32
- package/src/vendor/bootstrap-vue/src/components/calendar/README.md +0 -735
- package/src/vendor/bootstrap-vue/src/components/calendar/_calendar.scss +0 -78
- package/src/vendor/bootstrap-vue/src/components/calendar/calendar.js +0 -1146
- package/src/vendor/bootstrap-vue/src/components/calendar/calendar.spec.js +0 -466
- package/src/vendor/bootstrap-vue/src/components/calendar/index.d.ts +0 -28
- package/src/vendor/bootstrap-vue/src/components/calendar/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/components/calendar/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/calendar/package.json +0 -317
- package/src/vendor/bootstrap-vue/src/components/card/README.md +0 -729
- package/src/vendor/bootstrap-vue/src/components/card/_card-img.scss +0 -7
- package/src/vendor/bootstrap-vue/src/components/card/card-body.js +0 -69
- package/src/vendor/bootstrap-vue/src/components/card/card-body.spec.js +0 -142
- package/src/vendor/bootstrap-vue/src/components/card/card-footer.js +0 -48
- package/src/vendor/bootstrap-vue/src/components/card/card-footer.spec.js +0 -98
- package/src/vendor/bootstrap-vue/src/components/card/card-group.js +0 -33
- package/src/vendor/bootstrap-vue/src/components/card/card-group.spec.js +0 -75
- package/src/vendor/bootstrap-vue/src/components/card/card-header.js +0 -48
- package/src/vendor/bootstrap-vue/src/components/card/card-header.spec.js +0 -98
- package/src/vendor/bootstrap-vue/src/components/card/card-img-lazy.js +0 -47
- package/src/vendor/bootstrap-vue/src/components/card/card-img-lazy.spec.js +0 -204
- package/src/vendor/bootstrap-vue/src/components/card/card-img.js +0 -50
- package/src/vendor/bootstrap-vue/src/components/card/card-img.spec.js +0 -208
- package/src/vendor/bootstrap-vue/src/components/card/card-sub-title.js +0 -35
- package/src/vendor/bootstrap-vue/src/components/card/card-sub-title.spec.js +0 -60
- package/src/vendor/bootstrap-vue/src/components/card/card-text.js +0 -25
- package/src/vendor/bootstrap-vue/src/components/card/card-text.spec.js +0 -48
- package/src/vendor/bootstrap-vue/src/components/card/card-title.js +0 -33
- package/src/vendor/bootstrap-vue/src/components/card/card-title.spec.js +0 -45
- package/src/vendor/bootstrap-vue/src/components/card/card.js +0 -140
- package/src/vendor/bootstrap-vue/src/components/card/card.spec.js +0 -296
- package/src/vendor/bootstrap-vue/src/components/card/index.d.ts +0 -38
- package/src/vendor/bootstrap-vue/src/components/card/index.js +0 -40
- package/src/vendor/bootstrap-vue/src/components/card/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/card/package.json +0 -262
- package/src/vendor/bootstrap-vue/src/components/embed/README.md +0 -63
- package/src/vendor/bootstrap-vue/src/components/embed/embed.js +0 -51
- package/src/vendor/bootstrap-vue/src/components/embed/embed.spec.js +0 -110
- package/src/vendor/bootstrap-vue/src/components/embed/index.d.ts +0 -11
- package/src/vendor/bootstrap-vue/src/components/embed/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/components/embed/package.json +0 -29
- package/src/vendor/bootstrap-vue/src/components/form/form-datalist.js +0 -42
- package/src/vendor/bootstrap-vue/src/components/form/form-datalist.spec.js +0 -57
- package/src/vendor/bootstrap-vue/src/components/form-btn-label-control/_form-btn-label-control.scss +0 -125
- package/src/vendor/bootstrap-vue/src/components/form-btn-label-control/bv-form-btn-label-control.js +0 -278
- package/src/vendor/bootstrap-vue/src/components/form-btn-label-control/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/form-btn-label-control/package.json +0 -5
- package/src/vendor/bootstrap-vue/src/components/form-datepicker/README.md +0 -694
- package/src/vendor/bootstrap-vue/src/components/form-datepicker/_form-datepicker.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/form-datepicker/form-datepicker.js +0 -342
- package/src/vendor/bootstrap-vue/src/components/form-datepicker/form-datepicker.spec.js +0 -562
- package/src/vendor/bootstrap-vue/src/components/form-datepicker/index.d.ts +0 -12
- package/src/vendor/bootstrap-vue/src/components/form-datepicker/index.js +0 -11
- package/src/vendor/bootstrap-vue/src/components/form-datepicker/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/form-datepicker/package.json +0 -420
- package/src/vendor/bootstrap-vue/src/components/form-file/README.md +0 -357
- package/src/vendor/bootstrap-vue/src/components/form-file/_form-file.scss +0 -61
- package/src/vendor/bootstrap-vue/src/components/form-file/form-file.js +0 -575
- package/src/vendor/bootstrap-vue/src/components/form-file/form-file.spec.js +0 -885
- package/src/vendor/bootstrap-vue/src/components/form-file/index.d.ts +0 -13
- package/src/vendor/bootstrap-vue/src/components/form-file/index.js +0 -11
- package/src/vendor/bootstrap-vue/src/components/form-file/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/form-file/package.json +0 -131
- package/src/vendor/bootstrap-vue/src/components/form-rating/README.md +0 -526
- package/src/vendor/bootstrap-vue/src/components/form-rating/_form-rating.scss +0 -57
- package/src/vendor/bootstrap-vue/src/components/form-rating/form-rating.js +0 -411
- package/src/vendor/bootstrap-vue/src/components/form-rating/form-rating.spec.js +0 -544
- package/src/vendor/bootstrap-vue/src/components/form-rating/index.d.ts +0 -14
- package/src/vendor/bootstrap-vue/src/components/form-rating/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/components/form-rating/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/form-rating/package.json +0 -166
- package/src/vendor/bootstrap-vue/src/components/form-spinbutton/README.md +0 -411
- package/src/vendor/bootstrap-vue/src/components/form-spinbutton/_spinbutton.scss +0 -76
- package/src/vendor/bootstrap-vue/src/components/form-spinbutton/form-spinbutton.js +0 -572
- package/src/vendor/bootstrap-vue/src/components/form-spinbutton/form-spinbutton.spec.js +0 -731
- package/src/vendor/bootstrap-vue/src/components/form-spinbutton/index.d.ts +0 -12
- package/src/vendor/bootstrap-vue/src/components/form-spinbutton/index.js +0 -11
- package/src/vendor/bootstrap-vue/src/components/form-spinbutton/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/form-spinbutton/package.json +0 -150
- package/src/vendor/bootstrap-vue/src/components/form-tags/README.md +0 -880
- package/src/vendor/bootstrap-vue/src/components/form-tags/_form-tags.scss +0 -70
- package/src/vendor/bootstrap-vue/src/components/form-tags/form-tag.js +0 -94
- package/src/vendor/bootstrap-vue/src/components/form-tags/form-tag.spec.js +0 -166
- package/src/vendor/bootstrap-vue/src/components/form-tags/form-tags.js +0 -891
- package/src/vendor/bootstrap-vue/src/components/form-tags/form-tags.spec.js +0 -920
- package/src/vendor/bootstrap-vue/src/components/form-tags/index.d.ts +0 -16
- package/src/vendor/bootstrap-vue/src/components/form-tags/index.js +0 -14
- package/src/vendor/bootstrap-vue/src/components/form-tags/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/form-tags/package.json +0 -440
- package/src/vendor/bootstrap-vue/src/components/form-timepicker/README.md +0 -450
- package/src/vendor/bootstrap-vue/src/components/form-timepicker/_form-timepicker.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/form-timepicker/form-timepicker.js +0 -308
- package/src/vendor/bootstrap-vue/src/components/form-timepicker/form-timepicker.spec.js +0 -440
- package/src/vendor/bootstrap-vue/src/components/form-timepicker/index.d.ts +0 -12
- package/src/vendor/bootstrap-vue/src/components/form-timepicker/index.js +0 -11
- package/src/vendor/bootstrap-vue/src/components/form-timepicker/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/form-timepicker/package.json +0 -255
- package/src/vendor/bootstrap-vue/src/components/image/README.md +0 -322
- package/src/vendor/bootstrap-vue/src/components/image/img-lazy.js +0 -161
- package/src/vendor/bootstrap-vue/src/components/image/img-lazy.spec.js +0 -96
- package/src/vendor/bootstrap-vue/src/components/image/img.js +0 -139
- package/src/vendor/bootstrap-vue/src/components/image/img.spec.js +0 -255
- package/src/vendor/bootstrap-vue/src/components/image/index.d.ts +0 -14
- package/src/vendor/bootstrap-vue/src/components/image/index.js +0 -12
- package/src/vendor/bootstrap-vue/src/components/image/package.json +0 -152
- package/src/vendor/bootstrap-vue/src/components/jumbotron/README.md +0 -109
- package/src/vendor/bootstrap-vue/src/components/jumbotron/index.d.ts +0 -11
- package/src/vendor/bootstrap-vue/src/components/jumbotron/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/components/jumbotron/jumbotron.js +0 -103
- package/src/vendor/bootstrap-vue/src/components/jumbotron/jumbotron.spec.js +0 -254
- package/src/vendor/bootstrap-vue/src/components/jumbotron/package.json +0 -66
- package/src/vendor/bootstrap-vue/src/components/layout/container.js +0 -40
- package/src/vendor/bootstrap-vue/src/components/layout/container.spec.js +0 -75
- package/src/vendor/bootstrap-vue/src/components/layout/row.js +0 -111
- package/src/vendor/bootstrap-vue/src/components/layout/row.spec.js +0 -138
- package/src/vendor/bootstrap-vue/src/components/list-group/README.md +0 -291
- package/src/vendor/bootstrap-vue/src/components/list-group/index.d.ts +0 -14
- package/src/vendor/bootstrap-vue/src/components/list-group/index.js +0 -12
- package/src/vendor/bootstrap-vue/src/components/list-group/list-group-item.js +0 -76
- package/src/vendor/bootstrap-vue/src/components/list-group/list-group-item.spec.js +0 -286
- package/src/vendor/bootstrap-vue/src/components/list-group/list-group.js +0 -42
- package/src/vendor/bootstrap-vue/src/components/list-group/list-group.spec.js +0 -132
- package/src/vendor/bootstrap-vue/src/components/list-group/package.json +0 -52
- package/src/vendor/bootstrap-vue/src/components/media/README.md +0 -183
- package/src/vendor/bootstrap-vue/src/components/media/_media.scss +0 -9
- package/src/vendor/bootstrap-vue/src/components/media/index.d.ts +0 -17
- package/src/vendor/bootstrap-vue/src/components/media/index.js +0 -14
- package/src/vendor/bootstrap-vue/src/components/media/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/media/media-aside.js +0 -45
- package/src/vendor/bootstrap-vue/src/components/media/media-aside.spec.js +0 -79
- package/src/vendor/bootstrap-vue/src/components/media/media-body.js +0 -25
- package/src/vendor/bootstrap-vue/src/components/media/media-body.spec.js +0 -47
- package/src/vendor/bootstrap-vue/src/components/media/media.js +0 -52
- package/src/vendor/bootstrap-vue/src/components/media/media.spec.js +0 -149
- package/src/vendor/bootstrap-vue/src/components/media/package.json +0 -65
- package/src/vendor/bootstrap-vue/src/components/nav/nav-form.js +0 -50
- package/src/vendor/bootstrap-vue/src/components/nav/nav-form.spec.js +0 -93
- package/src/vendor/bootstrap-vue/src/components/nav/nav-text.js +0 -18
- package/src/vendor/bootstrap-vue/src/components/nav/nav-text.spec.js +0 -30
- package/src/vendor/bootstrap-vue/src/components/navbar/navbar-nav.js +0 -45
- package/src/vendor/bootstrap-vue/src/components/navbar/navbar-nav.spec.js +0 -105
- package/src/vendor/bootstrap-vue/src/components/navbar/navbar-toggle.js +0 -84
- package/src/vendor/bootstrap-vue/src/components/navbar/navbar-toggle.spec.js +0 -189
- package/src/vendor/bootstrap-vue/src/components/overlay/README.md +0 -815
- package/src/vendor/bootstrap-vue/src/components/overlay/index.d.ts +0 -11
- package/src/vendor/bootstrap-vue/src/components/overlay/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/components/overlay/overlay.js +0 -162
- package/src/vendor/bootstrap-vue/src/components/overlay/overlay.spec.js +0 -257
- package/src/vendor/bootstrap-vue/src/components/overlay/package.json +0 -130
- package/src/vendor/bootstrap-vue/src/components/pagination/README.md +0 -430
- package/src/vendor/bootstrap-vue/src/components/pagination/_pagination.scss +0 -26
- package/src/vendor/bootstrap-vue/src/components/pagination/index.d.ts +0 -11
- package/src/vendor/bootstrap-vue/src/components/pagination/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/components/pagination/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/pagination/package.json +0 -295
- package/src/vendor/bootstrap-vue/src/components/pagination/pagination.js +0 -138
- package/src/vendor/bootstrap-vue/src/components/pagination/pagination.spec.js +0 -1198
- package/src/vendor/bootstrap-vue/src/components/pagination-nav/README.md +0 -544
- package/src/vendor/bootstrap-vue/src/components/pagination-nav/_pagination-nav.scss +0 -2
- package/src/vendor/bootstrap-vue/src/components/pagination-nav/index.d.ts +0 -11
- package/src/vendor/bootstrap-vue/src/components/pagination-nav/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/components/pagination-nav/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/pagination-nav/package.json +0 -315
- package/src/vendor/bootstrap-vue/src/components/pagination-nav/pagination-nav.js +0 -281
- package/src/vendor/bootstrap-vue/src/components/pagination-nav/pagination-nav.spec.js +0 -671
- package/src/vendor/bootstrap-vue/src/components/sidebar/README.md +0 -406
- package/src/vendor/bootstrap-vue/src/components/sidebar/_sidebar.scss +0 -97
- package/src/vendor/bootstrap-vue/src/components/sidebar/index.d.ts +0 -11
- package/src/vendor/bootstrap-vue/src/components/sidebar/index.js +0 -10
- package/src/vendor/bootstrap-vue/src/components/sidebar/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/sidebar/package.json +0 -239
- package/src/vendor/bootstrap-vue/src/components/sidebar/sidebar.js +0 -438
- package/src/vendor/bootstrap-vue/src/components/sidebar/sidebar.spec.js +0 -404
- package/src/vendor/bootstrap-vue/src/components/skeleton/README.md +0 -275
- package/src/vendor/bootstrap-vue/src/components/skeleton/_skeleton.scss +0 -141
- package/src/vendor/bootstrap-vue/src/components/skeleton/index.d.ts +0 -23
- package/src/vendor/bootstrap-vue/src/components/skeleton/index.js +0 -18
- package/src/vendor/bootstrap-vue/src/components/skeleton/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/skeleton/package.json +0 -136
- package/src/vendor/bootstrap-vue/src/components/skeleton/skeleton-icon.js +0 -45
- package/src/vendor/bootstrap-vue/src/components/skeleton/skeleton-icon.spec.js +0 -86
- package/src/vendor/bootstrap-vue/src/components/skeleton/skeleton-img.js +0 -49
- package/src/vendor/bootstrap-vue/src/components/skeleton/skeleton-img.spec.js +0 -139
- package/src/vendor/bootstrap-vue/src/components/skeleton/skeleton-table.js +0 -58
- package/src/vendor/bootstrap-vue/src/components/skeleton/skeleton-table.spec.js +0 -119
- package/src/vendor/bootstrap-vue/src/components/skeleton/skeleton-wrapper.js +0 -47
- package/src/vendor/bootstrap-vue/src/components/skeleton/skeleton-wrapper.spec.js +0 -48
- package/src/vendor/bootstrap-vue/src/components/skeleton/skeleton.js +0 -46
- package/src/vendor/bootstrap-vue/src/components/skeleton/skeleton.spec.js +0 -126
- package/src/vendor/bootstrap-vue/src/components/spinner/README.md +0 -229
- package/src/vendor/bootstrap-vue/src/components/spinner/index.d.ts +0 -11
- package/src/vendor/bootstrap-vue/src/components/spinner/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/components/spinner/package.json +0 -38
- package/src/vendor/bootstrap-vue/src/components/spinner/spinner.js +0 -54
- package/src/vendor/bootstrap-vue/src/components/spinner/spinner.spec.js +0 -305
- package/src/vendor/bootstrap-vue/src/components/time/README.md +0 -431
- package/src/vendor/bootstrap-vue/src/components/time/_time.scss +0 -41
- package/src/vendor/bootstrap-vue/src/components/time/index.d.ts +0 -27
- package/src/vendor/bootstrap-vue/src/components/time/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/components/time/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/time/package.json +0 -123
- package/src/vendor/bootstrap-vue/src/components/time/time.js +0 -601
- package/src/vendor/bootstrap-vue/src/components/time/time.spec.js +0 -330
- package/src/vendor/bootstrap-vue/src/constants/date.js +0 -7
- package/src/vendor/bootstrap-vue/src/mixins/card.js +0 -23
- package/src/vendor/bootstrap-vue/src/mixins/pagination.js +0 -670
- package/src/vendor/bootstrap-vue/src/utils/date.js +0 -130
- package/src/vendor/bootstrap-vue/src/utils/date.spec.js +0 -159
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bootstrap-vue/form-rating",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"meta": {
|
|
5
|
-
"title": "Form Rating",
|
|
6
|
-
"version": "2.12.0",
|
|
7
|
-
"description": "BootstrapVue custom star rating form control for ratings entry or aggregated display.",
|
|
8
|
-
"components": [
|
|
9
|
-
{
|
|
10
|
-
"component": "BFormRating",
|
|
11
|
-
"version": "2.12.0",
|
|
12
|
-
"aliases": [
|
|
13
|
-
"BRating"
|
|
14
|
-
],
|
|
15
|
-
"props": [
|
|
16
|
-
{
|
|
17
|
-
"prop": "color",
|
|
18
|
-
"description": "CSS color to use instead of variant. Accepts either a HEX or RGB/RGBA string"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"prop": "iconClear",
|
|
22
|
-
"description": "Bootstrap Icon name to use for the clear button. Note icon must be registered in your component or globally"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"prop": "iconEmpty",
|
|
26
|
-
"description": "Bootstrap Icon name to use for the empty icon. Note icon must be registered in your component or globally"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"prop": "iconFull",
|
|
30
|
-
"description": "Bootstrap Icon name to use for the full icon. Note icon must be registered in your component or globally"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"prop": "iconHalf",
|
|
34
|
-
"description": "Bootstrap Icon name to use for the half icon. Note icon must be registered in your component or globally"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"prop": "inline",
|
|
38
|
-
"description": "When `true` renders as an inline element rather than a blick (100% width) element"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"prop": "locale",
|
|
42
|
-
"description": "Locale (or locales) to use when showing the value when prop `show-value` is set. Defaults to the browser default locale"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"prop": "noBorder",
|
|
46
|
-
"description": "When `true` disables the default border"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"prop": "precision",
|
|
50
|
-
"description": "Specify the number of digits after the decimal to show. Defaults to to no defined precision"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"prop": "readonly",
|
|
54
|
-
"description": "When `true` makes the rating readonly. When `true`, fractional ratings values are allowed (half icons will be shown)"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"prop": "showClear",
|
|
58
|
-
"description": "When `true` shows the clear value icon button"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"prop": "showValue",
|
|
62
|
-
"description": "When `true` shows the current rating value in the control"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"prop": "showValueMax",
|
|
66
|
-
"version": "2.13.0",
|
|
67
|
-
"description": "When set to `true` and prop `show-value` is `true`, includes the maximum star rating possible in the formatted value"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"prop": "stars",
|
|
71
|
-
"description": "The number of stars to show. Minimum value is `3`, default is `5`"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"prop": "value",
|
|
75
|
-
"description": "Rating value. This is the v-model"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"prop": "variant",
|
|
79
|
-
"description": "Applies one of the Bootstrap theme color variants to the component"
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"events": [
|
|
83
|
-
{
|
|
84
|
-
"event": "change",
|
|
85
|
-
"description": "Emitted to update the v-model",
|
|
86
|
-
"args": [
|
|
87
|
-
{
|
|
88
|
-
"arg": "value",
|
|
89
|
-
"description": "Current ratings value"
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
"slots": [
|
|
95
|
-
{
|
|
96
|
-
"name": "icon-clear",
|
|
97
|
-
"description": "Content for the optional clear button"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "icon-empty",
|
|
101
|
-
"description": "Content for the empty icon",
|
|
102
|
-
"scope": [
|
|
103
|
-
{
|
|
104
|
-
"prop": "variant",
|
|
105
|
-
"type": "String",
|
|
106
|
-
"description": "Value of the `variant` prop, or `null` if disabled"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"prop": "disabled",
|
|
110
|
-
"type": "Boolean",
|
|
111
|
-
"description": "Value of the `disabled` prop"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"prop": "readonly",
|
|
115
|
-
"type": "Boolean",
|
|
116
|
-
"description": "Value of the `readonly` prop"
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"name": "icon-full",
|
|
122
|
-
"description": "Content for the full icon",
|
|
123
|
-
"scope": [
|
|
124
|
-
{
|
|
125
|
-
"prop": "variant",
|
|
126
|
-
"type": "String",
|
|
127
|
-
"description": "Value of the `variant` prop, or `null` if disabled"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"prop": "disabled",
|
|
131
|
-
"type": "Boolean",
|
|
132
|
-
"description": "Value of the `disabled` prop"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"prop": "readonly",
|
|
136
|
-
"type": "Boolean",
|
|
137
|
-
"description": "Value of the `readonly` prop"
|
|
138
|
-
}
|
|
139
|
-
]
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"name": "icon-half",
|
|
143
|
-
"description": "Content for the half icon",
|
|
144
|
-
"scope": [
|
|
145
|
-
{
|
|
146
|
-
"prop": "variant",
|
|
147
|
-
"type": "String",
|
|
148
|
-
"description": "Value of the `variant` prop, or `null` if disabled"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"prop": "disabled",
|
|
152
|
-
"type": "Boolean",
|
|
153
|
-
"description": "Value of the `disabled` prop"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"prop": "readonly",
|
|
157
|
-
"type": "Boolean",
|
|
158
|
-
"description": "Value of the `readonly` prop"
|
|
159
|
-
}
|
|
160
|
-
]
|
|
161
|
-
}
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
]
|
|
165
|
-
}
|
|
166
|
-
}
|
|
@@ -1,411 +0,0 @@
|
|
|
1
|
-
# Form Spinbutton
|
|
2
|
-
|
|
3
|
-
> Spin buttons are a BootstrapVue custom numerical range form control. Spin buttons allow for
|
|
4
|
-
> incrementing or decrementing a numerical value within a range of a minimum and maximum number,
|
|
5
|
-
> with optional step value.
|
|
6
|
-
|
|
7
|
-
## Overview
|
|
8
|
-
|
|
9
|
-
The component `<b-form-spinbutton>` is
|
|
10
|
-
[WAI-ARIA compliant](https://www.w3.org/TR/wai-aria-practices-1.2/#spinbutton), allowing for
|
|
11
|
-
[keyboard control](#accessibility), and supports both horizontal (default) and vertical layout.
|
|
12
|
-
|
|
13
|
-
Similar to [range type inputs](/docs/components/form-input#range-type-input), BootstrapVue's
|
|
14
|
-
`<b-form-spinbutton>` _does not_ allow the user to type in a value.
|
|
15
|
-
|
|
16
|
-
```html
|
|
17
|
-
<template>
|
|
18
|
-
<div>
|
|
19
|
-
<label for="demo-sb">Spin Button</label>
|
|
20
|
-
<b-form-spinbutton id="demo-sb" v-model="value" min="1" max="100"></b-form-spinbutton>
|
|
21
|
-
<p>Value: {{ value }}</p>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script>
|
|
26
|
-
export default {
|
|
27
|
-
data() {
|
|
28
|
-
return {
|
|
29
|
-
value: 50
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<!-- b-form-spinbutton-demo.vue -->
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
The <kbd>ArrowUp</kbd> and <kbd>ArrowDown</kbd> keys can be used to increment or decrement the
|
|
39
|
-
value.
|
|
40
|
-
|
|
41
|
-
To be submitted via native browser form submits, the spinbutton must have a name set via the `name`
|
|
42
|
-
prop. This will create a hidden input containing the current value of the spinbutton. If the
|
|
43
|
-
spinbutton does not have a value, the hidden input's value will be an empty string.
|
|
44
|
-
|
|
45
|
-
## `v-model` value
|
|
46
|
-
|
|
47
|
-
The `v-model` always returns the value as a number. The `v-model` can be `null` if no initial value
|
|
48
|
-
is set.
|
|
49
|
-
|
|
50
|
-
If the initial value is `null` no value will be displayed in the spinbutton. Use the `placeholder`
|
|
51
|
-
prop to show a string when the spinbutton has no value (i.e. `placeholder="--"`).
|
|
52
|
-
|
|
53
|
-
## Min, max, and step
|
|
54
|
-
|
|
55
|
-
Spinbuttons have a default range from `1` to `100`, which can be changed by setting the `min` and
|
|
56
|
-
`max` props. The default step increment is `1`, and can be changed via the `step` prop (decimal
|
|
57
|
-
values allowed).
|
|
58
|
-
|
|
59
|
-
When `step` is set, the value will always be a multiple of the step size plus the minimum value.
|
|
60
|
-
|
|
61
|
-
```html
|
|
62
|
-
<template>
|
|
63
|
-
<div>
|
|
64
|
-
<label for="sb-step">Spin button with step of 0.25</label>
|
|
65
|
-
<b-form-spinbutton
|
|
66
|
-
id="sb-step"
|
|
67
|
-
v-model="value"
|
|
68
|
-
min="0"
|
|
69
|
-
max="10"
|
|
70
|
-
step="0.25"
|
|
71
|
-
></b-form-spinbutton>
|
|
72
|
-
</div>
|
|
73
|
-
</template>
|
|
74
|
-
|
|
75
|
-
<script>
|
|
76
|
-
export default {
|
|
77
|
-
data() {
|
|
78
|
-
return {
|
|
79
|
-
value: 0
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
</script>
|
|
84
|
-
|
|
85
|
-
<!-- b-form-spinbutton-step.vue -->
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
## Number wrapping
|
|
89
|
-
|
|
90
|
-
By default, when the value is increased to the `max` value, it pressing the increment button will
|
|
91
|
-
have no effect. Similarly when the value is as the `min` value, pressing the decrement button will
|
|
92
|
-
have no effect.
|
|
93
|
-
|
|
94
|
-
To allow the spin button to wrap from max to min when incrementing (or min to max when
|
|
95
|
-
decrementing), set the `wrap` prop to `true`.
|
|
96
|
-
|
|
97
|
-
```html
|
|
98
|
-
<template>
|
|
99
|
-
<div>
|
|
100
|
-
<label for="sb-wrap">Wrapping value spin button</label>
|
|
101
|
-
<b-form-spinbutton id="sb-wrap" wrap min="1" max="25" placeholder="--"></b-form-spinbutton>
|
|
102
|
-
</div>
|
|
103
|
-
</template>
|
|
104
|
-
|
|
105
|
-
<!-- b-form-spinbutton-wrap.vue -->
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
## Styling
|
|
109
|
-
|
|
110
|
-
### Size
|
|
111
|
-
|
|
112
|
-
As with other form controls, `<b-form-spinbutton>` supports small and large sizing via setting the
|
|
113
|
-
`size` prop to either `'sm'` or `'lg'`, respectively.
|
|
114
|
-
|
|
115
|
-
```html
|
|
116
|
-
<template>
|
|
117
|
-
<div>
|
|
118
|
-
<label for="sb-small">Spin button - Small size</label>
|
|
119
|
-
<b-form-spinbutton id="sb-small" size="sm" placeholder="--" class="mb-2"></b-form-spinbutton>
|
|
120
|
-
|
|
121
|
-
<label for="sb-default">Spin button - Default size</label>
|
|
122
|
-
<b-form-spinbutton id="sb-default" placeholder="--" class="mb-2"></b-form-spinbutton>
|
|
123
|
-
|
|
124
|
-
<label for="sb-large">Spin button - Large size</label>
|
|
125
|
-
<b-form-spinbutton id="sb-large" size="lg" placeholder="--" class="mb-2"></b-form-spinbutton>
|
|
126
|
-
</div>
|
|
127
|
-
</template>
|
|
128
|
-
|
|
129
|
-
<!-- b-form-spinbutton-size.vue -->
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
### Inline
|
|
133
|
-
|
|
134
|
-
```html
|
|
135
|
-
<template>
|
|
136
|
-
<div>
|
|
137
|
-
<label for="sb-inline">Inline spin button</label>
|
|
138
|
-
<b-form-spinbutton id="sb-inline" v-model="value" inline></b-form-spinbutton>
|
|
139
|
-
</div>
|
|
140
|
-
</template>
|
|
141
|
-
|
|
142
|
-
<script>
|
|
143
|
-
export default {
|
|
144
|
-
data() {
|
|
145
|
-
return {
|
|
146
|
-
value: 50
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
</script>
|
|
151
|
-
|
|
152
|
-
<!-- b-form-spinbutton-inline.vue -->
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
The spin button will automatically adjust it's width to fit the displayed value. See the
|
|
156
|
-
[Width section](#width) below for details on controlling or setting the width.
|
|
157
|
-
|
|
158
|
-
### Vertical
|
|
159
|
-
|
|
160
|
-
Spinbuttons can be oriented in vertical mode:
|
|
161
|
-
|
|
162
|
-
```html
|
|
163
|
-
<template>
|
|
164
|
-
<div>
|
|
165
|
-
<label for="sb-vertical">Vertical spin button</label><br>
|
|
166
|
-
<b-form-spinbutton id="sb-vertical" v-model="value" vertical></b-form-spinbutton>
|
|
167
|
-
</div>
|
|
168
|
-
</template>
|
|
169
|
-
|
|
170
|
-
<script>
|
|
171
|
-
export default {
|
|
172
|
-
data() {
|
|
173
|
-
return {
|
|
174
|
-
value: 50
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
</script>
|
|
179
|
-
|
|
180
|
-
<!-- b-form-spinbutton-vertical.vue -->
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
Vertical spin buttons can also be sized using the [`size` prop](#size). When in vertical mode, the
|
|
184
|
-
spin button is rendered as an inline element.
|
|
185
|
-
|
|
186
|
-
The spin button will automatically adjust it's width to fit the displayed value. See the
|
|
187
|
-
[Width section](#width) below for details on controlling or setting the width.
|
|
188
|
-
|
|
189
|
-
### Width
|
|
190
|
-
|
|
191
|
-
The control (when not `vertical` or `inline`) will expand to the maximum width of the parent
|
|
192
|
-
container You can control width via utility classes such as `w-25`, `w-50`, `w-75`, or use styles to
|
|
193
|
-
set the width.
|
|
194
|
-
|
|
195
|
-
When either `vertical` or `inline` is set, the control will adjust its width based on the displayed
|
|
196
|
-
value. You can use css style to control the overall width of the control (i.e.
|
|
197
|
-
`style="width: 10rem;`).
|
|
198
|
-
|
|
199
|
-
### Number formatting and locale
|
|
200
|
-
|
|
201
|
-
By default `<b-form-spinbutton>` will format the displayed number in the users browser default
|
|
202
|
-
locale. You can change the localized formatting by specifying a locale (or array of locales) via the
|
|
203
|
-
`locale` prop. Number format localization is performed via
|
|
204
|
-
[`Intl.NumberFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat).
|
|
205
|
-
The locales available will be dependent on the browser implementation. Localization only controls
|
|
206
|
-
the presentation of the value to the user, and does not affect the `v-model`.
|
|
207
|
-
|
|
208
|
-
```html
|
|
209
|
-
<template>
|
|
210
|
-
<div>
|
|
211
|
-
<label for="sb-locales">Locale</label>
|
|
212
|
-
<b-form-select id="sb-locales" v-model="locale" :options="locales"></b-form-select>
|
|
213
|
-
<label for="sb-local" class="mt-2">Spin button with locale</label>
|
|
214
|
-
<b-form-spinbutton
|
|
215
|
-
id="sb-locale"
|
|
216
|
-
v-model="value"
|
|
217
|
-
:locale="locale"
|
|
218
|
-
min="0"
|
|
219
|
-
max="10"
|
|
220
|
-
step="0.125"
|
|
221
|
-
></b-form-spinbutton>
|
|
222
|
-
<p>Value: {{ value }}</p>
|
|
223
|
-
</div>
|
|
224
|
-
</template>
|
|
225
|
-
|
|
226
|
-
<script>
|
|
227
|
-
export default {
|
|
228
|
-
data() {
|
|
229
|
-
return {
|
|
230
|
-
value: 0,
|
|
231
|
-
locale: 'fr-CA',
|
|
232
|
-
locales: [
|
|
233
|
-
{ value: 'en', text: 'English' },
|
|
234
|
-
{ value: 'de', text: 'German' },
|
|
235
|
-
{ value: 'fr-CA', text: 'French (Canadian)' },
|
|
236
|
-
{ value: 'fa', text: 'Persian' },
|
|
237
|
-
{ value: 'ar-EG', text: 'Arabic (Egyptian)' }
|
|
238
|
-
]
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
</script>
|
|
243
|
-
|
|
244
|
-
<!-- b-form-spinbutton-locale.vue -->
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
Alternatively, you can provide your own number formatter function to format the value displayed.
|
|
248
|
-
This is useful for displaying text instead of a number, or if you want to implement different
|
|
249
|
-
features of `Intl.NumberFormat`.
|
|
250
|
-
|
|
251
|
-
To provide a formatter function, set the prop `formatter-fn` to a method reference. The formatter is
|
|
252
|
-
passed a single argument which is the current value. Note the formatter only affects the value
|
|
253
|
-
displayed to the user and does not affect the `v-model`.
|
|
254
|
-
|
|
255
|
-
```html
|
|
256
|
-
<template>
|
|
257
|
-
<div>
|
|
258
|
-
<label for="sb-days" class="mt-2">Spin button with formatter</label>
|
|
259
|
-
<b-form-spinbutton
|
|
260
|
-
id="sb-days"
|
|
261
|
-
v-model="value"
|
|
262
|
-
:formatter-fn="dayFormatter"
|
|
263
|
-
min="0"
|
|
264
|
-
max="6"
|
|
265
|
-
wrap
|
|
266
|
-
></b-form-spinbutton>
|
|
267
|
-
<p>Value: {{ value }}</p>
|
|
268
|
-
</div>
|
|
269
|
-
</template>
|
|
270
|
-
|
|
271
|
-
<script>
|
|
272
|
-
export default {
|
|
273
|
-
data() {
|
|
274
|
-
return {
|
|
275
|
-
value: 0,
|
|
276
|
-
days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
methods: {
|
|
280
|
-
dayFormatter(value) {
|
|
281
|
-
return this.days[value]
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
</script>
|
|
286
|
-
|
|
287
|
-
<!-- b-form-spinbutton-formatter.vue -->
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
## Disabled and readonly states
|
|
291
|
-
|
|
292
|
-
Setting the prop `disabled` places the component in a disabled, non-interactive state. The
|
|
293
|
-
`readonly` prop places the component in a readonly state (focusable, but the value cannot be changed
|
|
294
|
-
by the user).
|
|
295
|
-
|
|
296
|
-
```html
|
|
297
|
-
<template>
|
|
298
|
-
<b-row>
|
|
299
|
-
<b-col md="6" class="mb-2">
|
|
300
|
-
<label for="sb-disabled">Disabled spin button</label>
|
|
301
|
-
<b-form-spinbutton id="sb-disabled" v-model="value" disabled></b-form-spinbutton>
|
|
302
|
-
</b-col>
|
|
303
|
-
<b-col md="6" class="mb-2">
|
|
304
|
-
<label for="sb-readonly" class="">Readonly spin button</label>
|
|
305
|
-
<b-form-spinbutton id="sb-readonly" v-model="value" readonly></b-form-spinbutton>
|
|
306
|
-
</b-col>
|
|
307
|
-
</b-row>
|
|
308
|
-
</template>
|
|
309
|
-
|
|
310
|
-
<script>
|
|
311
|
-
export default {
|
|
312
|
-
data() {
|
|
313
|
-
return {
|
|
314
|
-
value: 50
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
</script>
|
|
319
|
-
|
|
320
|
-
<!-- b-form-spinbutton-disabled-readonly.vue -->
|
|
321
|
-
```
|
|
322
|
-
|
|
323
|
-
Disabled spinbuttons will not be submitted during native browser form submission, while a readonly
|
|
324
|
-
spinbutton will be submitted (as long as a name has been set via the `name` prop).
|
|
325
|
-
|
|
326
|
-
## Validation states
|
|
327
|
-
|
|
328
|
-
When you default to a `null` value, and the user has not selected a value, you can use the `state`
|
|
329
|
-
prop to apply one of the contextual validation styles to the component.
|
|
330
|
-
|
|
331
|
-
- `true` applies the valid styling to the component
|
|
332
|
-
- `false` applies the invalid styling to the component
|
|
333
|
-
- `null` applies no contextual styling (the default)
|
|
334
|
-
|
|
335
|
-
### Required prop
|
|
336
|
-
|
|
337
|
-
Note that the required prop only generates the `aria-required="true"` attribute on the component,
|
|
338
|
-
and does not perform any validation on form submit. You must validate the `v-model` in your
|
|
339
|
-
application logic.
|
|
340
|
-
|
|
341
|
-
Note that if the prop `required` is set, and the `v-model` is `null`, the attribute
|
|
342
|
-
`aria-invalid="true"` will be rendered on the component.
|
|
343
|
-
|
|
344
|
-
## Events
|
|
345
|
-
|
|
346
|
-
The `input` event is used to update the `v-model` and is emitted any time the value changes.
|
|
347
|
-
|
|
348
|
-
The `change` event is emitted once the user releases the mouse button (when pressing the increment
|
|
349
|
-
or decrement buttons) or when the user releases the <kbd>ArrowDown</kbd> or <kbd>ArrowUp</kbd> key.
|
|
350
|
-
This can be handy when you need to debounce the input.
|
|
351
|
-
|
|
352
|
-
The following example illustrates the difference between the `input` and `change` events. Click and
|
|
353
|
-
hold the increment or decrement button (or use the up/down arrow keys).
|
|
354
|
-
|
|
355
|
-
```html
|
|
356
|
-
<template>
|
|
357
|
-
<div>
|
|
358
|
-
<label for="sb-input">Spin button - input and change events</label>
|
|
359
|
-
<b-form-spinbutton
|
|
360
|
-
id="sb-input"
|
|
361
|
-
v-model="value1"
|
|
362
|
-
@change="value2 = $event"
|
|
363
|
-
wrap
|
|
364
|
-
></b-form-spinbutton>
|
|
365
|
-
<p>Input event: {{ value1 }}</p>
|
|
366
|
-
<p>Change event: {{ value2 }}</p>
|
|
367
|
-
</div>
|
|
368
|
-
</template>
|
|
369
|
-
|
|
370
|
-
<script>
|
|
371
|
-
export default {
|
|
372
|
-
data() {
|
|
373
|
-
return {
|
|
374
|
-
value1: 0,
|
|
375
|
-
value2: null
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
</script>
|
|
380
|
-
|
|
381
|
-
<!-- b-form-spinbutton-events.vue -->
|
|
382
|
-
```
|
|
383
|
-
|
|
384
|
-
## Accessibility
|
|
385
|
-
|
|
386
|
-
The following keyboard controls are available when the spin button is focused:
|
|
387
|
-
|
|
388
|
-
- <kbd>Home</kbd> Sets the value to the `min` value
|
|
389
|
-
- <kbd>End</kbd> Sets the value to the `max` value
|
|
390
|
-
- <kbd>ArrowUp</kbd> Increases the value by the step amount
|
|
391
|
-
- <kbd>ArrowDown</kbd> Decreases the value by the step amount
|
|
392
|
-
- <kbd>PageUp</kbd> Increases the value by the step amount times the `repeat-step-multiplier` amount
|
|
393
|
-
- <kbd>PageDown</kbd> Decreases the value by the step amount times the `repeat-step-multiplier`
|
|
394
|
-
amount
|
|
395
|
-
|
|
396
|
-
Pressing an holding the <kbd>ArrowUp</kbd>, <kbd>ArrowDown</kbd>, <kbd>PageUp</kbd>, or
|
|
397
|
-
<kbd>PageDown</kbd> keys will auto-repeat the increment or decrement (after an initial delay).
|
|
398
|
-
Holding down the <kbd>ArrowUp</kbd> or <kbd>ArrowDown</kbd> keys for an extended period will
|
|
399
|
-
multiply the increment or decrement amount by the `repeat-step-multiplier` amount.
|
|
400
|
-
|
|
401
|
-
Note the the `repeat-delay`, `repeat-threshold` and `repeat-interval` only applies to the
|
|
402
|
-
<kbd>ArrowUp</kbd> or <kbd>ArrowDown</kbd> keys.
|
|
403
|
-
|
|
404
|
-
## Implementation notes
|
|
405
|
-
|
|
406
|
-
`<b-form-spinbutton>` uses a mixture of Bootstrap v4 utility classes (border, alignment, flex),
|
|
407
|
-
form-control and button classes, along with additional custom BootstrapVue SCSS/CSS.
|
|
408
|
-
|
|
409
|
-
## See also
|
|
410
|
-
|
|
411
|
-
- [Range type input](/docs/components/form-input#range-type-input)
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
.b-form-spinbutton {
|
|
2
|
-
text-align: center;
|
|
3
|
-
// Quick way to get end buttons rounded on outside edges
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
// Hide validation icon, as there is no room for it
|
|
6
|
-
background-image: none;
|
|
7
|
-
padding: 0;
|
|
8
|
-
|
|
9
|
-
@at-root {
|
|
10
|
-
// Prevent the buttons from reversing order on in horizontal RTL mode
|
|
11
|
-
[dir="rtl"] &:not(.flex-column),
|
|
12
|
-
&[dir="rtl"]:not(.flex-column) {
|
|
13
|
-
flex-direction: row-reverse;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
output {
|
|
18
|
-
font-size: inherit;
|
|
19
|
-
outline: 0;
|
|
20
|
-
border: 0;
|
|
21
|
-
background-color: transparent;
|
|
22
|
-
width: auto;
|
|
23
|
-
margin: 0;
|
|
24
|
-
padding: 0 0.25rem;
|
|
25
|
-
|
|
26
|
-
> div,
|
|
27
|
-
> bdi {
|
|
28
|
-
display: block;
|
|
29
|
-
min-width: 2.25em;
|
|
30
|
-
// We set a height to ensure an empty value isn't collapsed
|
|
31
|
-
height: 1em * $input-line-height;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&.flex-column {
|
|
36
|
-
height: auto;
|
|
37
|
-
width: auto;
|
|
38
|
-
|
|
39
|
-
output {
|
|
40
|
-
margin: 0 0.25rem;
|
|
41
|
-
padding: 0.25rem 0;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&:not(.d-inline-flex):not(.flex-column) {
|
|
46
|
-
output: {
|
|
47
|
-
width: 100%;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&.d-inline-flex:not(.flex-column) {
|
|
52
|
-
width: auto;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.btn {
|
|
56
|
-
line-height: 1;
|
|
57
|
-
box-shadow: none !important;
|
|
58
|
-
|
|
59
|
-
&:disabled {
|
|
60
|
-
pointer-events: none;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&:hover:not(:disabled) > div > .b-icon {
|
|
64
|
-
transform: scale(1.25);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&.disabled,
|
|
69
|
-
&.readonly {
|
|
70
|
-
background-color: $input-disabled-bg;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.disabled {
|
|
74
|
-
pointer-events: none;
|
|
75
|
-
}
|
|
76
|
-
}
|