Skip to content

Commit 7df6a08

Browse files
authored
Mrged dev into forms/1x (#1038)
* chore(docs): Minor update to popover example * fix(carousel): Prevent reflow trigger from being optimised out (#995) * Update carousel.vue * fix(popover+tooltip): Allow indiviual component imports (#999) * [tooltip class] import BvEvent direct * [popover class] Import ToolTip direct * fix(form-group): Not applying label-for prop value (#1000) * feat(modal): Add props to change the variant of the default modal buttons (#1004) * Add props to set variant of modal footer buttons * update docs * feat(popover+tooltip): Add hide event listener on $root (#1003) * feat(popover/tooltip): Add hide on $root events Optimized adding/removing of events. Only listen/watch to certain events while the tooltip/popover is open Adds listener for `bv::hide::(popover|tooltip)` event on root to allow user to close all popovers or tooltips via emitting on $root. * [popover component] Document bv:hide::popover event * [tooltip component] Document bv:hide:tooltip event * [popover directive] Document bv:hide:popover event * [tooltip directive]: Document bv:hide::tooltip event * feat(table): Refactor field formatter support + optimized sort-compare handling (#991) * refactor(b-table): use original item object * chore(table.spec): eslint format * feat(b-table): Allow usr provided sortCopmpare to handle only specific fields if user provided sortCompare returns `null` (or `undefined`), then we assume it doesn't handle sorting for the field specified by `sortBy` * ESLint * Always return formattedValue as `value` in scoped slot. Unformatted value is available as property `unformatted` on scoped slot data. * Update docs * Update README.md * Allow formattter to return html content * Update README.md * fix(table-docs): unexpected identifier error * fix(table-docs): typo corrections ⌨💥 * Allow v-html without need for wrapper div via v-if/v-else * fix(tooltip-popover): Click not triggered for elements with inner HTML elements in Chrome (#1006) Issue #1005 * docs: Update getting started * feat(dropdowns): Add hide() and show() methods (#1012) Addresses issue #1011 * [form-group] Use dom utils * [carousel] Use dom utils * feat: dom utility methods (#1013) * feat: dom utility methods * Update index.js * [tooltip.js] Use dom utils * [dropdown.js] Use dom utils * [scrollspy.js] Use dom utils * feat: Use dom utils (#1017) * feat: dom utility methods * Update index.js * [tooltip.js] Use dom utils * [dropdown.js] Use dom utils * [scrollspy.js] Use dom utils * feat(array mixin): Add polyfill for Array.find for IE * [modal] use dom utils * [popover.vue] Use dom utils * [tooltip.vue] Use dom utils * feat(dom utils): Add getById method * feat(tooltip+popover): Create mixin for common props and methods (#1021) * feat(tooltip+popover): Create mixin for common props and methods * make mixin available * ESLint * Update toolpop.js * Update toolpop.js * [tooltip.vue] use toolpop mixin * [popover.vue] Use toolpop mixin * chore: Update getting started * fix type * fix(lform-group): Missing return in target ID selection * fix(link): clear router-link/href collision and remove old link mixin (#1016) * fix(link): don't use href for router-links * Merged dev into fix/link-router-to (#1018) * [carousel] Use dom utils * feat: dom utility methods (#1013) * feat: dom utility methods * Update index.js * [tooltip.js] Use dom utils * [dropdown.js] Use dom utils * [scrollspy.js] Use dom utils * feat: Use dom utils (#1017) * feat: dom utility methods * Update index.js * [tooltip.js] Use dom utils * [dropdown.js] Use dom utils * [scrollspy.js] Use dom utils * feat(array mixin): Add polyfill for Array.find for IE * [modal] use dom utils * [popover.vue] Use dom utils * [tooltip.vue] Use dom utils * fix: add fixes from PR #940 * fix: don't change href when disabled Previously, we we're altering the href to a "#" when disabled. Since we already handle disabling the link via click handlers, there is no reason to alter the semantics of the link. * Update toolpop.js * Update popover.vue * Update tooltip.vue * fix: typos * refactor: remove link mixin usage * fix(docs): proper component reference * fix: incorporate @pi0's typo fix * fix(tooltip.js) Remove unneeded line of code * fix(tabs): Remove aria-expanded in favor of aria-seleted As per Bootstrap V4 PR twbs/bootstrap#23907 * fix: Add lodash.startcase to dependancies `b-table` requires `lodash.startcase` * feat(modal): Improve modal transitions, padding adjustments, and aditional features (#1024) * [modal] Fix transitions * Update modal.vue * Update modal.vue * [v-b-modal] Use new namespaced $root event * [modal] Incorporate BvEvent * Update modal.vue * [modal] Scrolbar adjustments & observeDom * Update modal.vue * [modal] Add variants * Update demo.html * Update demo.js * Update meta.json * Update README.md * [modal] Add modal-header-close slot * Update meta.json * [b-button-close] New functional component for close button Used by b-modal and b-alert * make b-button-close available * Update button-close.js * [button-close] Ensure click event propagation is stopped when disabled * [modal] use b-btn-close functional component * [alert] Use b-btn-close component * Update modal.vue * add b-button-close to b-button meta.json * [tooltip.js] Update to use only new modal close namespaced event * [tooltip+popover] Auto-append tooltip/popover to modal if in a modal Save user from having to specify the modal as a container when tooltip/popover is inside a modal * [popover.js] Use dom utils * [dom utils] Add class and attribute methods * Update dom.js * [modal] Use new dom utils class/atttr methods * Update dom.js * Update dom.js * Update dom.js * [tooltip.js] Use new DOM utils methods * [popover.js] Use new dom utils class/attribute methods * [modal] Update docs * fix: correct some typos * fix: clear console errors * fix: add const declarations * [modal] Call onAfterEvent transition handler * fix: evt names for modal triggering & is_visible typo * fix: modal v-model typo * fix(btn-close): allow for innerHTML override * refactor(modal): use object for conditional props * feat(docs): new modal examples * Classes: Wrap in Boolean and remove dangling commas * [modal] minor updates to docs * feat(form-file): Add focus styling for custom-file input (#1033) * feat(form-file): Add focus styling for custom-file input * Update form-file.vue * [form-file] Remove wrapper div when in plain mode * add sizing to plain file input Unfortunately there doesn't appear to be an option to size the custom-file input. * Update form-file.vue * fix(observedom): Callback not being called for changes other than childList changes (#1025) * fix(observedom): Callback not being called for changes other than node inert/remove Allow callback to be called based on passed options. Previously it was only being called if nodes were added or inserted, regardless of which options were passed (i.e. attribute changes, childList, textnode changes, etc.) This fix remove this restriction. * Create loose-equal.js * Update index.js * Update observe-dom.js * Update index.js * Delete loose-equal.js * Update observe-dom.js * Update observe-dom.js * Update observe-dom.js * Update observe-dom.js * [WIP] feat(collpase): Use new $root namespaced events (#1037) feat(collpase): Use new $root namespaced events + dom utils
1 parent dfa8daf commit 7df6a08

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2582
-2079
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Vue.use(BootstrapVue)
6868

6969
### Individual components and directives
7070
If for any reason just want to use a specific component, you can do this by directly importing that component.
71-
This is not recommended as entire package gzipped size is ~15Kb!
71+
This is not recommended as entire package gzipped size is ~40Kb (including Popper.js)!
7272

7373
```js
7474
import { bAlert, bBtn, bCollapse } from 'bootstrap-vue/lib/components'

docs/components/button/meta.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
"title": "Button",
33
"component": "bButton",
4-
"components": [
5-
"bLink"
6-
],
4+
"components": ["bLink", "bButtonClose"],
75
"events": [
86
{
97
"event": "click",

docs/components/collapse/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Other elements can easily toggle `<b-collapse>` components using the `v-b-toggle
4343
<!-- collapse-2.vue -->
4444
```
4545

46-
### Initial visibility (start expanded)
46+
## Initial visibility (start expanded)
4747
To make the `<b-collapse>` show initially, set the `visible` prop:
4848

4949
```html
@@ -59,7 +59,7 @@ To make the `<b-collapse>` show initially, set the `visible` prop:
5959
<!-- collapse-3.vue -->
6060
```
6161

62-
### `v-model` support
62+
## `v-model` support
6363
The component's collapsed (visible) state can also be set with `v-model` which
6464
binds internally to the `visible` prop.
6565

@@ -95,7 +95,7 @@ export default {
9595
<-- collapse-4.vue -->
9696
```
9797

98-
### Trigger multiple collapse elements
98+
## Trigger multiple collapse elements
9999
You can even collapse multiple `<b-collapse>` components via a single `v-b-toggle` by
100100
providing multiple target IDs using modifers:
101101

docs/components/collapse/meta.json

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,14 @@
1919
"description": "emitted when collaspe has finished closing"
2020
},
2121
{
22-
"event": "collapse::toggle",
23-
"description": "toggles visible state of collaspe when this event emits on $root",
22+
"event": "bv::toggle::collapse",
23+
"description": "toggles visible state of collaspe when this event is emitted on $root",
2424
"args": [
2525
{
2626
"arg": "id",
2727
"description": "collapse id to toggle"
2828
}
2929
]
30-
},
31-
{
32-
"event": "accordion::toggle",
33-
"description": "toggles visible state of accordion when this event emits on $root",
34-
"args": [
35-
{
36-
"arg": "id",
37-
"description": "collapse id that should be open"
38-
},
39-
{
40-
"arg": "accordion",
41-
"description": "accordion group identifier"
42-
}
43-
]
4430
}
4531
]
4632
}

0 commit comments

Comments
 (0)