Skip to content

Commit a280747

Browse files
committed
Port to TypeScript & Playwright
1 parent 46ef064 commit a280747

File tree

81 files changed

+5007
-4971
lines changed

Some content is hidden

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

81 files changed

+5007
-4971
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
2+
# ░░░░░░░░░░▄▀░█▀▄░█▀▀░█▀▀░█░█░█░░░█▀█░█▀▄░░░░░▀█▀░█▀█░█▀▄░█░░░█▀▀░▀▄░░░░░░░░░░
3+
# ░░░░░░░░░▀▄░░█▀▄░█▀▀░█░█░█░█░█░░░█▀█░█▀▄░▀▀▀░░█░░█▀█░█▀▄░█░░░█▀▀░░▄▀░░░░░░░░░
4+
# ░░░░░░░░░░░▀░▀░▀░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀░▀░░░░░░▀░░▀░▀░▀▀░░▀▀▀░▀▀▀░▀░░░░░░░░░░░
5+
# ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
6+
# ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
7+
# ┃ * Copyright (c) 2020, the Regular Table Authors. This file is part * ┃
8+
# ┃ * of the Regular Table library, distributed under the terms of the * ┃
9+
# ┃ * [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). * ┃
10+
# ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
11+
12+
113
name: Build Status
214

315
on:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,3 +197,5 @@ python_junit.xml
197197

198198
docs/.docusaurus
199199
docs/static/blocks
200+
test-results
201+
playwright-report

AUTHORS

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ queried from a natively `async` virtual data model, making `regular-table` ideal
1919
for enormous or remote data sets. Use it to build Data Grids, Spreadsheets,
2020
Pivot Tables, File Trees, or anytime you need:
2121

22-
- Just a regular `<table>`.
23-
- Virtually rendered for high-performance.
24-
- `async` data model handles slow, remote, enormous, and/or distributed
25-
backends.
26-
- Easy to style, works with any regular CSS for `<table>`.
27-
- Small bundle size, no dependencies.
22+
- Just a regular `<table>`.
23+
- Virtually rendered for high-performance.
24+
- `async` data model handles slow, remote, enormous, and/or distributed
25+
backends.
26+
- Easy to style, works with any regular CSS for `<table>`.
27+
- Small bundle size, no dependencies.
2828

2929
## Examples
3030

@@ -57,13 +57,13 @@ Pivot Tables, File Trees, or anytime you need:
5757
</a>
5858
<br/>
5959

60-
- [2d_array.md](examples/2d_array.md)
61-
- [canvas_data_model.md](examples/canvas_data_model.md)
62-
- [file_browser.md](examples/file_browser.md)
63-
- [minesweeper.md](examples/minesweeper.md)
64-
- [react.md](examples/react.md)
65-
- [spreadsheet.md](examples/spreadsheet.md)
66-
- [two_billion_rows.md](examples/two_billion_rows.md)
60+
- [2d_array.md](examples/2d_array.md)
61+
- [canvas_data_model.md](examples/canvas_data_model.md)
62+
- [file_browser.md](examples/file_browser.md)
63+
- [minesweeper.md](examples/minesweeper.md)
64+
- [react.md](examples/react.md)
65+
- [spreadsheet.md](examples/spreadsheet.md)
66+
- [two_billion_rows.md](examples/two_billion_rows.md)
6767

6868
## Documentation
6969

@@ -74,38 +74,38 @@ documented
7474
[examples](https://github.com/finos/regular-table/tree/master/examples) are also
7575
available.
7676

77-
- QuickStart
78-
79-
- [Installation](#installation)
80-
- [`<regular-table>` Custom Element](#regular-table-custom-element)
81-
- [`.setDataListener()` Virtual Data Model](#setdatalistener-virtual-data-model)
82-
- [Column and Row Headers](#column-and-row-headers)
83-
- [Hierarchial/Group Headers](#hierarchialgroup-headers)
84-
- [`async` Data Models](#async-data-models)
85-
- [`.addStyleListener()` and `getMeta()` Styling](#addstylelistener-and-getmeta-styling)
86-
- [`.invalidate()`](#invalidate)
87-
- [`.addEventListener()` Interaction](#addeventlistener-interaction)
88-
- [Scrolling](#scrolling)
89-
- [Pivots, Filters, Sorts, and Column Expressions with `perspective`](#pivots-filters-sorts-and-column-expressions-with-perspective)
90-
- [Development](#development)
91-
92-
- [API Docs](https://github.com/finos/regular-table/blob/master/api.md)
93-
94-
- Annotated Examples
95-
- [2d_array.md](examples/2d_array.md)
96-
- [canvas_data_model.md](examples/canvas_data_model.md)
97-
- [file_browser.md](examples/file_browser.md)
98-
- [minesweeper.md](examples/minesweeper.md)
99-
- [react.md](examples/react.md)
100-
- [spreadsheet.md](examples/spreadsheet.md)
101-
- [two_billion_rows.md](examples/two_billion_rows.md)
77+
- QuickStart
78+
79+
- [Installation](#installation)
80+
- [`<regular-table>` Custom Element](#regular-table-custom-element)
81+
- [`.setDataListener()` Virtual Data Model](#setdatalistener-virtual-data-model)
82+
- [Column and Row Headers](#column-and-row-headers)
83+
- [Hierarchial/Group Headers](#hierarchialgroup-headers)
84+
- [`async` Data Models](#async-data-models)
85+
- [`.addStyleListener()` and `getMeta()` Styling](#addstylelistener-and-getmeta-styling)
86+
- [`.invalidate()`](#invalidate)
87+
- [`.addEventListener()` Interaction](#addeventlistener-interaction)
88+
- [Scrolling](#scrolling)
89+
- [Pivots, Filters, Sorts, and Column Expressions with `perspective`](#pivots-filters-sorts-and-column-expressions-with-perspective)
90+
- [Development](#development)
91+
92+
- [API Docs](https://github.com/finos/regular-table/blob/master/api.md)
93+
94+
- Annotated Examples
95+
- [2d_array.md](examples/2d_array.md)
96+
- [canvas_data_model.md](examples/canvas_data_model.md)
97+
- [file_browser.md](examples/file_browser.md)
98+
- [minesweeper.md](examples/minesweeper.md)
99+
- [react.md](examples/react.md)
100+
- [spreadsheet.md](examples/spreadsheet.md)
101+
- [two_billion_rows.md](examples/two_billion_rows.md)
102102

103103
## Installation
104104

105105
Include via a CDN like [JSDelivr](https://cdn.jsdelivr.net/npm/regular-table):
106106

107107
```html
108-
<script src="https://cdn.jsdelivr.net/npm/regular-table"></script>
108+
<script type="module" src="https://cdn.jsdelivr.net/npm/regular-table"></script>
109109
<link
110110
rel="stylesheet"
111111
href="https://cdn.jsdelivr.net/npm/regular-table/dist/css/material.css"
@@ -248,10 +248,10 @@ configured via the `virtual_mode` optional argument. Note that using a
248248
`<table>` along the non-virtual axis(es), and may cause rendering performance
249249
degradation.
250250

251-
- "both" (default) virtualizes scrolling on both axes.
252-
- "vertical" only virtualizes vertical (y) scrolling.
253-
- "horizontal" only virtualizes horizontal (x) scrolling.
254-
- "none" disable all scroll virtualization.
251+
- "both" (default) virtualizes scrolling on both axes.
252+
- "vertical" only virtualizes vertical (y) scrolling.
253+
- "horizontal" only virtualizes horizontal (x) scrolling.
254+
- "none" disable all scroll virtualization.
255255

256256
```javascript
257257
table.setDataListener(listener, { virtual_mode: "vertical" });
@@ -383,14 +383,14 @@ field will accompany the metadata records returned by `regular-table`'s
383383
Additional rendering options which can be set on the object returned by a
384384
`setDataListener` callback include:
385385

386-
- `column_header_merge_depth: number` configures the number of rows to include
387-
from `colspan` merging. This defaults to `header_length - 1`.
388-
- `row_height: number` configures the pixel height of a row for virtual
389-
scrolling calculation. This is typically auto-detected from the DOM, but can
390-
be overridden if needed.
391-
- `merge_headers: "column" | "row" | "both" | "none"` configures whether
392-
equivalent, contiguous `<th>` elements are merged via `rowspan` or `colspan`
393-
for `"row"` and `"column"` respectively (defaults to `"both"`).
386+
- `column_header_merge_depth: number` configures the number of rows to include
387+
from `colspan` merging. This defaults to `header_length - 1`.
388+
- `row_height: number` configures the pixel height of a row for virtual
389+
scrolling calculation. This is typically auto-detected from the DOM, but can
390+
be overridden if needed.
391+
- `merge_headers: "column" | "row" | "both" | "none"` configures whether
392+
equivalent, contiguous `<th>` elements are merged via `rowspan` or `colspan`
393+
for `"row"` and `"column"` respectively (defaults to `"both"`).
394394

395395
### `async` Data Models
396396

@@ -445,11 +445,11 @@ However, CSS alone cannot select on properties of your _data_ - if you scroll
445445
this example, the 2nd row will always be the striped one. Some other
446446
data-reliant style examples include:
447447

448-
- Styling a specific column in the virtual data set, as `<td>` may represent a
449-
different column based on horizontal scroll position.
450-
- Styling cells by value, +/-, heatmaps, categories, etc.
451-
- Styling cells based on data within-or-outside of the virtual viewport,
452-
grouping depth, grouping categories, etc.
448+
- Styling a specific column in the virtual data set, as `<td>` may represent a
449+
different column based on horizontal scroll position.
450+
- Styling cells by value, +/-, heatmaps, categories, etc.
451+
- Styling cells based on data within-or-outside of the virtual viewport,
452+
grouping depth, grouping categories, etc.
453453

454454
To make CSS that is virtual-data-model-aware, you'll need to use
455455
`addStyleListener()`, which invokes a callback whenever the `<table>` is

0 commit comments

Comments
 (0)