@ember-joinery/data-table 0.0.0-stage → 1.0.1
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 +140 -0
- package/LICENSE.md +9 -0
- package/NOTICE +532 -0
- package/README.md +79 -2
- package/addon-main.cjs +4 -0
- package/declarations/-private/bound-methods.d.ts +23 -0
- package/declarations/-private/bound-methods.d.ts.map +1 -0
- package/declarations/-private/reactivity.d.ts +9 -0
- package/declarations/-private/reactivity.d.ts.map +1 -0
- package/declarations/components/data-table.d.ts +77 -0
- package/declarations/components/data-table.d.ts.map +1 -0
- package/declarations/components/flex-render.d.ts +103 -0
- package/declarations/components/flex-render.d.ts.map +1 -0
- package/declarations/index.d.ts +7 -0
- package/declarations/index.d.ts.map +1 -0
- package/declarations/table-core.d.ts +7 -0
- package/declarations/table-core.d.ts.map +1 -0
- package/declarations/table.d.ts +65 -0
- package/declarations/table.d.ts.map +1 -0
- package/declarations/test-support/data-table.d.ts +111 -0
- package/declarations/test-support/data-table.d.ts.map +1 -0
- package/declarations/test-support/index.d.ts +2 -0
- package/declarations/test-support/index.d.ts.map +1 -0
- package/declarations/test-support.d.ts +2 -0
- package/dist/components/data-table.js +107 -0
- package/dist/components/data-table.js.map +1 -0
- package/dist/components/flex-render.js +104 -0
- package/dist/components/flex-render.js.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/table-core.js +2 -0
- package/dist/table-core.js.map +1 -0
- package/dist/table.js +300 -0
- package/dist/table.js.map +1 -0
- package/dist/test-support.js +304 -0
- package/dist/test-support.js.map +1 -0
- package/package.json +116 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# @ember-joinery/data-table
|
|
2
|
+
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [2b887bf]
|
|
8
|
+
- Updated dependencies [2b887bf]
|
|
9
|
+
- Updated dependencies [2b887bf]
|
|
10
|
+
- Updated dependencies [2b887bf]
|
|
11
|
+
- Updated dependencies [2b887bf]
|
|
12
|
+
- Updated dependencies [2b887bf]
|
|
13
|
+
- Updated dependencies [2b887bf]
|
|
14
|
+
- Updated dependencies [2b887bf]
|
|
15
|
+
- @ember-joinery/primitives@1.0.1
|
|
16
|
+
- @ember-joinery/ember@1.0.1
|
|
17
|
+
- @ember-joinery/test-support@1.0.1
|
|
18
|
+
|
|
19
|
+
## 1.0.0
|
|
20
|
+
|
|
21
|
+
### Major Changes
|
|
22
|
+
|
|
23
|
+
- a73065d: `@ember-joinery/data-table` is a new add-on: shadcn's Data Table, on TanStack Table v9's
|
|
24
|
+
framework-agnostic `@tanstack/table-core`. `createTable()` is upstream's `useTable` for Ember: a
|
|
25
|
+
table whose state lives in tracked atoms on Ember's autotracking (`emberReactivity()`), which
|
|
26
|
+
reads its options again from a function whenever what that reads changes, and whose rows',
|
|
27
|
+
cells', columns' and headers' methods come bound, so templates can call them. `tableState()`
|
|
28
|
+
owns a slice of state (upstream's `useState`), `FlexRender` (also `table.FlexRender`) renders a
|
|
29
|
+
column's header, cell or footer from a string, a function or a component (`flexComponent()`),
|
|
30
|
+
and `DataTable` is the element around a table, yielding `head`, `row`, `filter`, `previousPage`,
|
|
31
|
+
`nextPage` and `viewOptions` modifiers that mark its parts; `head` gives each header cell its
|
|
32
|
+
sort in `aria-sort`, which upstream's leave out. Everything `@tanstack/table-core` exports comes
|
|
33
|
+
through too. Its `/test-support` has `DataTableHarness` (rows, columns, sort, filter, pages,
|
|
34
|
+
selection and column visibility), and `settled()` waits for the auto-resets a table puts off
|
|
35
|
+
until after a render.
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- a53c07b: Type checks in package source use `@sindresorhus/is` (`isString`, `isFunction`, …) instead of `typeof`, and a lint rule keeps it that way. `@sindresorhus/is` is a new runtime dependency, so `ember-joinery add` now installs it into the app for most components, `icon` included. `isNumber` rejects `NaN`, so a `NaN` reaching a numeric check now takes the non-number branch.
|
|
40
|
+
- a73065d: Every package's tarball carries Joinery's `LICENSE.md` and `NOTICE`, with the licences and
|
|
41
|
+
notices of what it ports (shadcn/ui, ember-primitives, sonner, recharts and the rest), copied in
|
|
42
|
+
from the repository's root by the package's `prepack`.
|
|
43
|
+
- Updated dependencies [a73065d]
|
|
44
|
+
- Updated dependencies [a73065d]
|
|
45
|
+
- Updated dependencies [a73065d]
|
|
46
|
+
- Updated dependencies [a73065d]
|
|
47
|
+
- Updated dependencies [a73065d]
|
|
48
|
+
- Updated dependencies [a73065d]
|
|
49
|
+
- Updated dependencies [a73065d]
|
|
50
|
+
- Updated dependencies [a73065d]
|
|
51
|
+
- Updated dependencies [a73065d]
|
|
52
|
+
- Updated dependencies [a73065d]
|
|
53
|
+
- Updated dependencies [a73065d]
|
|
54
|
+
- Updated dependencies [a73065d]
|
|
55
|
+
- Updated dependencies [a73065d]
|
|
56
|
+
- Updated dependencies [a73065d]
|
|
57
|
+
- Updated dependencies [a73065d]
|
|
58
|
+
- Updated dependencies [a73065d]
|
|
59
|
+
- Updated dependencies [a73065d]
|
|
60
|
+
- Updated dependencies [a73065d]
|
|
61
|
+
- Updated dependencies [a73065d]
|
|
62
|
+
- Updated dependencies [a73065d]
|
|
63
|
+
- Updated dependencies [a73065d]
|
|
64
|
+
- Updated dependencies [a73065d]
|
|
65
|
+
- Updated dependencies [a73065d]
|
|
66
|
+
- Updated dependencies [a73065d]
|
|
67
|
+
- Updated dependencies [a73065d]
|
|
68
|
+
- Updated dependencies [a73065d]
|
|
69
|
+
- Updated dependencies [a73065d]
|
|
70
|
+
- Updated dependencies [a73065d]
|
|
71
|
+
- Updated dependencies [a73065d]
|
|
72
|
+
- Updated dependencies [a73065d]
|
|
73
|
+
- Updated dependencies [a73065d]
|
|
74
|
+
- Updated dependencies [a73065d]
|
|
75
|
+
- Updated dependencies [a73065d]
|
|
76
|
+
- Updated dependencies [a73065d]
|
|
77
|
+
- Updated dependencies [a73065d]
|
|
78
|
+
- Updated dependencies [a73065d]
|
|
79
|
+
- Updated dependencies [a73065d]
|
|
80
|
+
- Updated dependencies [17c5b5c]
|
|
81
|
+
- Updated dependencies [17c5b5c]
|
|
82
|
+
- Updated dependencies [99eab0c]
|
|
83
|
+
- Updated dependencies [a73065d]
|
|
84
|
+
- Updated dependencies [a73065d]
|
|
85
|
+
- Updated dependencies [a73065d]
|
|
86
|
+
- Updated dependencies [a73065d]
|
|
87
|
+
- Updated dependencies [a73065d]
|
|
88
|
+
- Updated dependencies [a73065d]
|
|
89
|
+
- Updated dependencies [a73065d]
|
|
90
|
+
- Updated dependencies [a73065d]
|
|
91
|
+
- Updated dependencies [a73065d]
|
|
92
|
+
- Updated dependencies [a73065d]
|
|
93
|
+
- Updated dependencies [a73065d]
|
|
94
|
+
- Updated dependencies [a73065d]
|
|
95
|
+
- Updated dependencies [a73065d]
|
|
96
|
+
- Updated dependencies [a73065d]
|
|
97
|
+
- Updated dependencies [a73065d]
|
|
98
|
+
- Updated dependencies [a73065d]
|
|
99
|
+
- Updated dependencies [a73065d]
|
|
100
|
+
- Updated dependencies [a73065d]
|
|
101
|
+
- Updated dependencies [a73065d]
|
|
102
|
+
- Updated dependencies [a73065d]
|
|
103
|
+
- Updated dependencies [a73065d]
|
|
104
|
+
- Updated dependencies [a73065d]
|
|
105
|
+
- Updated dependencies [a73065d]
|
|
106
|
+
- Updated dependencies [a73065d]
|
|
107
|
+
- Updated dependencies [a73065d]
|
|
108
|
+
- Updated dependencies [a73065d]
|
|
109
|
+
- Updated dependencies [a73065d]
|
|
110
|
+
- Updated dependencies [a73065d]
|
|
111
|
+
- Updated dependencies [a73065d]
|
|
112
|
+
- Updated dependencies [a73065d]
|
|
113
|
+
- Updated dependencies [a73065d]
|
|
114
|
+
- Updated dependencies [a73065d]
|
|
115
|
+
- Updated dependencies [a73065d]
|
|
116
|
+
- Updated dependencies [a73065d]
|
|
117
|
+
- Updated dependencies [a73065d]
|
|
118
|
+
- Updated dependencies [a73065d]
|
|
119
|
+
- Updated dependencies [a73065d]
|
|
120
|
+
- Updated dependencies [a73065d]
|
|
121
|
+
- Updated dependencies [a73065d]
|
|
122
|
+
- Updated dependencies [a73065d]
|
|
123
|
+
- Updated dependencies [a73065d]
|
|
124
|
+
- Updated dependencies [a73065d]
|
|
125
|
+
- Updated dependencies [a73065d]
|
|
126
|
+
- Updated dependencies [a73065d]
|
|
127
|
+
- Updated dependencies [a73065d]
|
|
128
|
+
- Updated dependencies [a73065d]
|
|
129
|
+
- Updated dependencies [a73065d]
|
|
130
|
+
- Updated dependencies [a73065d]
|
|
131
|
+
- Updated dependencies [a73065d]
|
|
132
|
+
- Updated dependencies [a73065d]
|
|
133
|
+
- Updated dependencies [a73065d]
|
|
134
|
+
- Updated dependencies [a73065d]
|
|
135
|
+
- Updated dependencies [a73065d]
|
|
136
|
+
- Updated dependencies [a73065d]
|
|
137
|
+
- Updated dependencies [a73065d]
|
|
138
|
+
- @ember-joinery/primitives@1.0.0
|
|
139
|
+
- @ember-joinery/ember@1.0.0
|
|
140
|
+
- @ember-joinery/test-support@1.0.0
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Joe Gaudet
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|