Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(BTable)!: add multisort capabilities #1840

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
5f15d13
feat(BDropdown)!: replace "container" prop with "teleportTo"
VividLemon Mar 10, 2024
2b6383c
chore: remove dead code
VividLemon Mar 10, 2024
1cc80b8
Update packages/bootstrap-vue-next/src/components/BButton/BButton.vue
VividLemon Mar 10, 2024
09b8e31
Update packages/bootstrap-vue-next/src/components/BAccordion/BAccordi…
VividLemon Mar 10, 2024
23ae882
Update packages/bootstrap-vue-next/src/components/BFormRadio/BFormRad…
VividLemon Mar 10, 2024
1524410
Update packages/bootstrap-vue-next/src/components/BFormRadio/BFormRad…
VividLemon Mar 10, 2024
f2973bb
fix(BTable): stickyHeader true causes maxHeight 300px
VividLemon Mar 22, 2024
b570c70
chore: Merge branch main of https://github.com/VividLemon/bootstrap-v…
VividLemon Apr 2, 2024
6b61e51
chore: merge main
VividLemon Apr 2, 2024
88f38ee
refactor: make useAvatarSize more generic, reuse in BTableSimple
VividLemon Apr 2, 2024
2185e38
feat(BTable)!: deprecate noSortReset, use `mustSort`
VividLemon Apr 2, 2024
78bcd6f
feat(BTable): add functional syntax for sortAsc/sortDesc/sortDefault …
VividLemon Apr 2, 2024
9a80b44
fix(BTable): set sort values to undefined so we dont accidentally wip…
VividLemon Apr 2, 2024
f9545b1
fix(BTable): generic types
VividLemon Apr 2, 2024
a25a1d9
chore: lint
VividLemon Apr 2, 2024
69e487b
fix: types generation -- use interfaces for componentprops
VividLemon Apr 2, 2024
e0136dc
fix(BTable): Get unit tests working
dwgray Apr 4, 2024
0d5a4d2
fix(BTableSimple): Update test
dwgray Apr 5, 2024
6c037db
chore: address type errors in playground
dwgray Apr 5, 2024
d06df3f
feat(BTable): Get multisort working
dwgray Apr 8, 2024
3bfcb4b
test(BFormCheckbox): remove tests for deprecated events
dwgray Apr 9, 2024
a258e91
docs(BTable): Document sort and add 'complete example'
dwgray Apr 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
4 changes: 2 additions & 2 deletions apps/docs/.vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<BOffcanvas
id="sidebar-menu"
v-model="sidebar"
teleport-disabled="true"
:teleport-disabled="true"
:backdrop="false"
title="Browse docs"
class="h-100 border-0"
Expand Down Expand Up @@ -123,7 +123,7 @@
<BOffcanvas
id="otp-menu"
v-model="onThisPage"
teleport-disabled="true"
:teleport-disabled="true"
:backdrop="false"
placement="end"
title="On this page"
Expand Down
24 changes: 12 additions & 12 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@
},
"devDependencies": {
"@iconify-json/bi": "^1.1.23",
"@iconify-json/simple-icons": "^1.1.90",
"@rushstack/eslint-patch": "^1.7.2",
"@tsconfig/node20": "^20.1.2",
"@types/node": "^20.11.17",
"@iconify-json/simple-icons": "^1.1.97",
"@rushstack/eslint-patch": "^1.10.1",
"@tsconfig/node20": "^20.1.4",
"@types/node": "^20.11.30",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/tsconfig": "^0.5.1",
"@vueuse/core": "^10.7.2",
"bootstrap": "^5.3.2",
"@vueuse/core": "^10.9.0",
"bootstrap": "^5.3.3",
"bootstrap-vue-next": "workspace:^",
"cross-env": "^7.0.3",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"eslint-define-config": "^2.1.0",
"eslint-plugin-vue": "^9.21.1",
"eslint-plugin-vue": "^9.24.0",
"prettier": "^3.2.5",
"typescript": "^5.3.3",
"typescript": "^5.4.3",
"unplugin-icons": "^0.18.5",
"vitepress": "1.0.0-rc.42",
"vue": "^3.4.18"
"vitepress": "1.0.2",
"vue": "^3.4.21"
},
"lint-staged": {
"*.{js,ts,vue}": "eslint --cache --fix",
Expand Down
37 changes: 13 additions & 24 deletions apps/docs/src/data/components/table.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ export default {
},
{
prop: 'sortBy',
type: 'string',
type: 'BTableSortBy[]',
default: undefined,
description: 'Model representing the current sort state',
},
{
prop: 'sortDesc',
Expand Down Expand Up @@ -259,40 +260,26 @@ export default {
{
args: [
{
arg: 'update:sortBy',
description: '',
arg: 'value',
description: 'BTableSortBy[] | undefined',
type: 'string',
},
],
event: 'update:sortBy',
description: '',
},
{
args: [
{
arg: 'update:sortDesc',
description: 'boolean',
type: 'boolean',
},
],
event: 'update:sortDesc',
description: '',
description:
'Emitted when the `sortBy` model is changed and represents the current sort state',
},
{
args: [
{
arg: 'sortBy',
arg: 'value',
description: '',
type: 'string',
},
{
arg: 'isDesc',
description: '',
type: 'boolean',
type: 'BTableSortBy',
},
],
event: 'sorted',
description: '',
description:
'Updated when the user clicks a sortable column heading and represents the column click and the sort state (`asc`, `desc`, or undefined)',
},
],
slots: [
Expand Down Expand Up @@ -485,8 +472,10 @@ export default {
},
{
prop: 'stickyHeader',
type: 'boolean',
type: 'boolean | Numberish',
default: false,
description:
'Makes the table header sticky. Set to true for a maximum height 300px tall table, or set to any valid CSS height (including units). Inputting a number type is converted to px height',
},
],
emits: [],
Expand Down
Loading
Loading