mirror of
https://github.com/bitwarden/clients.git
synced 2026-11-16 07:03:29 +00:00
[CL-1339] Take table v2 out of beta (#24655)
This commit is contained in:
@@ -159,4 +159,4 @@ toolbar all offer it.
|
||||
Chips are host-agnostic: on their own they just track their selection. Project one into a
|
||||
`bit-table-v2` and it registers itself — its value lands in `table.filterValues()` under its `key`,
|
||||
where the table's `filter(row, values)` reads it. See
|
||||
[Table V2 › Filtering](?path=/docs/component-library-table-v2-beta--docs).
|
||||
[Table V2 › Filtering](?path=/docs/component-library-table-v2--docs).
|
||||
|
||||
@@ -6,10 +6,10 @@ import * as stories from "./table.stories";
|
||||
|
||||
# Table
|
||||
|
||||
> **`bit-table` is deprecated.** Use
|
||||
> [`bit-table-v2`](?path=/docs/component-library-table-v2-beta--docs) for new tables, and see
|
||||
> [Migrating from V1](?path=/docs/component-library-table-v2-beta-migrating-from-v1--docs) to move
|
||||
> an existing table over.
|
||||
> **`bit-table` is deprecated.** Use [`bit-table-v2`](?path=/docs/component-library-table-v2--docs)
|
||||
> for new tables, and see
|
||||
> [Migrating from V1](?path=/docs/component-library-table-v2-migrating-from-v1--docs) to move an
|
||||
> existing table over.
|
||||
|
||||
The table component provides a comprehensive way to display, sort and filter data. It consists of
|
||||
two portions, a UI component called `bit-table` and the underlying data source `TableDataSource`.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Meta } from "@storybook/addon-docs/blocks";
|
||||
|
||||
<Meta title="Component Library/Table V2 (Beta)/Migrating from V1" />
|
||||
<Meta title="Component Library/Table V2/Migrating from V1" />
|
||||
|
||||
# Migrating from `bit-table` to `bit-table-v2`
|
||||
|
||||
@@ -9,8 +9,8 @@ in the template (`*ngFor` / `rows$ | async`); `bit-table-v2` declares one `<bit-
|
||||
— each pairing a `<bit-header-cell>` with a `*bitCellDef` cell template — and iterates the data
|
||||
itself.
|
||||
|
||||
For the full v2 API, see the [Table V2 docs](?path=/docs/component-library-table-v2-beta--docs).
|
||||
This page covers only the v1 → v2 mapping.
|
||||
For the full v2 API, see the [Table V2 docs](?path=/docs/component-library-table-v2--docs). This
|
||||
page covers only the v1 → v2 mapping.
|
||||
|
||||
## Pick the mode
|
||||
|
||||
|
||||
@@ -180,10 +180,6 @@ type RenderItem<T> =
|
||||
| { kind: "group"; group: BitRowGroupComponent<T>; count: number; level: number }
|
||||
| { kind: "groupDescription"; group: BitRowGroupComponent<T>; level: number };
|
||||
|
||||
/**
|
||||
* **Beta.** `bit-table-v2` is still stabilizing. Do not adopt it in production
|
||||
* without approval from the UI Foundation team.
|
||||
*/
|
||||
@Component({
|
||||
selector: "bit-table-v2",
|
||||
exportAs: "bitTableV2",
|
||||
|
||||
@@ -4,17 +4,14 @@ import * as stories from "./table-v2.stories";
|
||||
|
||||
<Meta of={stories} />
|
||||
|
||||
# Table V2 (Beta)
|
||||
|
||||
> **Beta — not yet approved for production.** `bit-table-v2` is still stabilizing. Do not adopt it
|
||||
> in production without approval from the UI Foundation team.
|
||||
# Table V2
|
||||
|
||||
`bit-table-v2` renders tabular data with sorting, filtering, selection, pagination, loading and
|
||||
empty states, and virtual scrolling built in. You declare each column once — its header and its
|
||||
per-row cell — and the table handles the rest.
|
||||
|
||||
Use `bit-table-v2` for new tables. The legacy `bit-table` is deprecated — see
|
||||
[Migrating from V1](?path=/docs/component-library-table-v2-beta-migrating-from-v1--docs) to move an
|
||||
[Migrating from V1](?path=/docs/component-library-table-v2-migrating-from-v1--docs) to move an
|
||||
existing table over.
|
||||
|
||||
<Primary />
|
||||
|
||||
@@ -1143,7 +1143,7 @@ class DemoBoundedWidthsTableComponent {
|
||||
}
|
||||
|
||||
export default {
|
||||
title: "Component Library/Table V2 (Beta)",
|
||||
title: "Component Library/Table V2",
|
||||
decorators: [
|
||||
positionFixedWrapperDecorator(undefined, { border: false }),
|
||||
moduleMetadata({
|
||||
|
||||
Reference in New Issue
Block a user