@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.
Files changed (37) hide show
  1. package/CHANGELOG.md +140 -0
  2. package/LICENSE.md +9 -0
  3. package/NOTICE +532 -0
  4. package/README.md +79 -2
  5. package/addon-main.cjs +4 -0
  6. package/declarations/-private/bound-methods.d.ts +23 -0
  7. package/declarations/-private/bound-methods.d.ts.map +1 -0
  8. package/declarations/-private/reactivity.d.ts +9 -0
  9. package/declarations/-private/reactivity.d.ts.map +1 -0
  10. package/declarations/components/data-table.d.ts +77 -0
  11. package/declarations/components/data-table.d.ts.map +1 -0
  12. package/declarations/components/flex-render.d.ts +103 -0
  13. package/declarations/components/flex-render.d.ts.map +1 -0
  14. package/declarations/index.d.ts +7 -0
  15. package/declarations/index.d.ts.map +1 -0
  16. package/declarations/table-core.d.ts +7 -0
  17. package/declarations/table-core.d.ts.map +1 -0
  18. package/declarations/table.d.ts +65 -0
  19. package/declarations/table.d.ts.map +1 -0
  20. package/declarations/test-support/data-table.d.ts +111 -0
  21. package/declarations/test-support/data-table.d.ts.map +1 -0
  22. package/declarations/test-support/index.d.ts +2 -0
  23. package/declarations/test-support/index.d.ts.map +1 -0
  24. package/declarations/test-support.d.ts +2 -0
  25. package/dist/components/data-table.js +107 -0
  26. package/dist/components/data-table.js.map +1 -0
  27. package/dist/components/flex-render.js +104 -0
  28. package/dist/components/flex-render.js.map +1 -0
  29. package/dist/index.js +5 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/table-core.js +2 -0
  32. package/dist/table-core.js.map +1 -0
  33. package/dist/table.js +300 -0
  34. package/dist/table.js.map +1 -0
  35. package/dist/test-support.js +304 -0
  36. package/dist/test-support.js.map +1 -0
  37. package/package.json +116 -3
package/NOTICE ADDED
@@ -0,0 +1,532 @@
1
+ Joinery
2
+ Copyright (c) 2026 Joe Gaudet. MIT licensed; see LICENSE.md.
3
+
4
+ Joinery ports the design, styles, component APIs and examples of shadcn/ui, and provides the
5
+ features of ember-primitives. Its Toast ports sonner, which shadcn/ui's Sonner wraps: sonner's
6
+ toast state, its Toaster and Toast, and its icons and loader, in @ember-joinery/primitives'
7
+ toast, and sonner's style sheet, copied unchanged into @ember-joinery/ember's compiled CSS.
8
+ Its charts, @ember-joinery/chart, port recharts, which shadcn/ui's Chart wraps: recharts' tick
9
+ selection (getTicks, getEquidistantTicks), nice tick values (getNiceTickValues), text
10
+ measurement (DOMUtils' getStringSize), cartesian layout (the plot area, scales, stacking, bar
11
+ positions, tick lines), pie layout (computePieSectors, the pie's labels, polar label positions,
12
+ inRangeOfSector), polar layout (PolarUtils, the radar's points, the radial bars' sectors, the
13
+ polar grid, axes and labels) and tooltip placement (getTooltipTranslateXY), and its rectangle,
14
+ sector and polygon paths (getRectanglePath, Sector, getSectorPath, Polygon). Its Drawer ports
15
+ vaul, which shadcn/ui's Drawer is built on: vaul's behaviour in @ember-joinery/primitives' drawer,
16
+ and vaul's style sheet, copied into @ember-joinery/ember's compiled CSS. Its Command ports cmdk,
17
+ which shadcn/ui's Command is built on: cmdk's behaviour and its command score, in
18
+ @ember-joinery/primitives' command. Its Calendar ports React DayPicker, which shadcn/ui's Calendar
19
+ is built on: DayPicker's markup, classes, labels, selection and keyboard, in
20
+ @ember-joinery/primitives' calendar. Its opt-in file uploads, @ember-joinery/file-upload, are
21
+ built on ember-file-upload, and its opt-in rich-text editor, @ember-joinery/tiptap, on Tiptap,
22
+ each a dependency of its package (nothing of either is ported). Its opt-in calendars and date
23
+ pickers, @ember-joinery/power-calendar, are built on ember-power-calendar, a dependency of that
24
+ package, whose Days components they subclass (nothing of it is copied), and their date library
25
+ on Date and Intl is Formwright's. Its opt-in masked inputs, @ember-joinery/maskito, are built
26
+ on Maskito and libphonenumber-js, dependencies of that package (nothing of them is ported).
27
+ All of them are MIT licensed but Maskito, which is Apache 2.0 licensed; their notices and
28
+ licences follow.
29
+
30
+ --------------------------------------------------------------------------------
31
+ shadcn/ui
32
+ https://github.com/shadcn-ui/ui
33
+
34
+ Ported from commit 8ab27715521cbd4f87ae6886cd989cbb678f6de7 (2026-11-08). Later syncs are
35
+ recorded in upstream.json.
36
+
37
+ MIT License
38
+
39
+ Copyright (c) 2023 shadcn
40
+
41
+ Permission is hereby granted, free of charge, to any person obtaining a copy
42
+ of this software and associated documentation files (the "Software"), to deal
43
+ in the Software without restriction, including without limitation the rights
44
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
45
+ copies of the Software, and to permit persons to whom the Software is
46
+ furnished to do so, subject to the following conditions:
47
+
48
+ The above copyright notice and this permission notice shall be included in all
49
+ copies or substantial portions of the Software.
50
+
51
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
52
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
53
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
54
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
55
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
56
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
57
+ SOFTWARE.
58
+
59
+ --------------------------------------------------------------------------------
60
+ ember-primitives
61
+ https://github.com/universal-ember/ember-primitives
62
+
63
+ Feature parity with commit 9584c783bae34e6f0b628ec09a1e1f3cbdb4107e (0.64.2, 2026-11-06).
64
+ Later syncs are recorded in upstream.json.
65
+
66
+ The MIT License (MIT)
67
+
68
+ Copyright (c) 2023
69
+
70
+ 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:
71
+
72
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
73
+
74
+ 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.
75
+
76
+ --------------------------------------------------------------------------------
77
+ sonner
78
+ https://github.com/emilkowalski/sonner
79
+
80
+ Ported from version 2.0.7 (its dist/styles.css copied unchanged).
81
+
82
+ MIT License
83
+
84
+ Copyright (c) 2023 Emil Kowalski
85
+
86
+ Permission is hereby granted, free of charge, to any person obtaining a copy
87
+ of this software and associated documentation files (the "Software"), to deal
88
+ in the Software without restriction, including without limitation the rights
89
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
90
+ copies of the Software, and to permit persons to whom the Software is
91
+ furnished to do so, subject to the following conditions:
92
+
93
+ The above copyright notice and this permission notice shall be included in all
94
+ copies or substantial portions of the Software.
95
+
96
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
97
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
98
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
99
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
100
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
101
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
102
+ SOFTWARE.
103
+
104
+ --------------------------------------------------------------------------------
105
+ recharts
106
+ https://github.com/recharts/recharts
107
+
108
+ Ported from version 3.8.0, the version shadcn/ui's charts use. @ember-joinery/chart's built
109
+ modules that hold the ported code keep this notice in a /*! comment.
110
+
111
+ The MIT License (MIT)
112
+
113
+ Copyright (c) 2015-present recharts
114
+
115
+ Permission is hereby granted, free of charge, to any person obtaining a copy
116
+ of this software and associated documentation files (the "Software"), to deal
117
+ in the Software without restriction, including without limitation the rights
118
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
119
+ copies of the Software, and to permit persons to whom the Software is
120
+ furnished to do so, subject to the following conditions:
121
+
122
+ The above copyright notice and this permission notice shall be included in all
123
+ copies or substantial portions of the Software.
124
+
125
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
126
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
127
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
128
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
129
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
130
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
131
+ SOFTWARE.
132
+
133
+ --------------------------------------------------------------------------------
134
+ form-data-utils
135
+ https://github.com/NullVoxPopuli/form-data-utils
136
+
137
+ @ember-joinery/primitives' native-form ports its dataFrom (0.6.0), which ember-primitives'
138
+ Form uses, in packages/primitives/src/-private/form-data.ts.
139
+
140
+ The MIT License (MIT)
141
+
142
+ Copyright (c) 2024
143
+
144
+ 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:
145
+
146
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
147
+
148
+ 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.
149
+
150
+ --------------------------------------------------------------------------------
151
+ vaul
152
+ https://github.com/emilkowalski/vaul
153
+
154
+ Ported from version 1.1.2 (its style.css copied, but for one invalid rule).
155
+
156
+ MIT License
157
+
158
+ Copyright (c) 2023 Emil Kowalski
159
+
160
+ Permission is hereby granted, free of charge, to any person obtaining a copy
161
+ of this software and associated documentation files (the "Software"), to deal
162
+ in the Software without restriction, including without limitation the rights
163
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
164
+ copies of the Software, and to permit persons to whom the Software is
165
+ furnished to do so, subject to the following conditions:
166
+
167
+ The above copyright notice and this permission notice shall be included in all
168
+ copies or substantial portions of the Software.
169
+
170
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
171
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
172
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
173
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
174
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
175
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
176
+ SOFTWARE.
177
+
178
+ --------------------------------------------------------------------------------
179
+ cmdk
180
+ https://github.com/dip/cmdk
181
+
182
+ Joinery's Command (@ember-joinery/primitives' command, which shadcn/ui's Command is built on
183
+ in React) follows cmdk 1.1.1's behaviour, and its command score
184
+ (packages/primitives/src/-private/command-score.ts) is ported from cmdk's line for line.
185
+
186
+ MIT License
187
+
188
+ Copyright (c) 2022 Paco Coursey
189
+
190
+ Permission is hereby granted, free of charge, to any person obtaining a copy
191
+ of this software and associated documentation files (the "Software"), to deal
192
+ in the Software without restriction, including without limitation the rights
193
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
194
+ copies of the Software, and to permit persons to whom the Software is
195
+ furnished to do so, subject to the following conditions:
196
+
197
+ The above copyright notice and this permission notice shall be included in all
198
+ copies or substantial portions of the Software.
199
+
200
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
201
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
202
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
203
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
204
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
205
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
206
+ SOFTWARE.
207
+
208
+ --------------------------------------------------------------------------------
209
+ React DayPicker
210
+ https://github.com/gpbl/react-day-picker
211
+
212
+ Joinery's Calendar (@ember-joinery/primitives' calendar, which replaces React DayPicker under
213
+ shadcn/ui's Calendar) follows react-day-picker 9.8.1, the version shadcn/ui's examples use: its
214
+ markup and default classes, labels and formatters, its selection (addToRange), its matchers,
215
+ and the day its keys move focus to, with Intl in place of date-fns.
216
+
217
+ The MIT License (MIT)
218
+
219
+ Copyright (c) 2014-2025 Giampaolo Bellavite <io@gpbl.dev> and contributors
220
+
221
+ Permission is hereby granted, free of charge, to any person obtaining a copy
222
+ of this software and associated documentation files (the "Software"), to deal
223
+ in the Software without restriction, including without limitation the rights
224
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
225
+ copies of the Software, and to permit persons to whom the Software is
226
+ furnished to do so, subject to the following conditions:
227
+
228
+ The above copyright notice and this permission notice shall be included in all
229
+ copies or substantial portions of the Software.
230
+
231
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
232
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
233
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
234
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
235
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
236
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
237
+ SOFTWARE.
238
+
239
+ --------------------------------------------------------------------------------
240
+ ember-file-upload
241
+ https://github.com/adopted-ember-addons/ember-file-upload
242
+
243
+ A dependency of @ember-joinery/file-upload (^10.1.0), which builds on its FileDropzone, Queue
244
+ and UploadFile. Nothing of it is copied into Joinery.
245
+
246
+ The MIT License (MIT)
247
+
248
+ Copyright (c) 2017
249
+
250
+ 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:
251
+
252
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
253
+
254
+ 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.
255
+
256
+ --------------------------------------------------------------------------------
257
+ Tiptap
258
+ https://github.com/ueberdosis/tiptap
259
+
260
+ A dependency of @ember-joinery/tiptap (@tiptap/starter-kit, with @tiptap/core and @tiptap/pm as
261
+ its peers, ^3.32.1), whose RichTextEditor mounts Tiptap's Editor and runs its commands. Nothing
262
+ of it is copied into Joinery. @tiptap/pm brings ProseMirror (MIT, © Marijn Haverbeke and others).
263
+
264
+ MIT License
265
+
266
+ Copyright (c) 2025, Tiptap GmbH
267
+
268
+ Permission is hereby granted, free of charge, to any person obtaining a copy
269
+ of this software and associated documentation files (the "Software"), to deal
270
+ in the Software without restriction, including without limitation the rights
271
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
272
+ copies of the Software, and to permit persons to whom the Software is
273
+ furnished to do so, subject to the following conditions:
274
+
275
+ The above copyright notice and this permission notice shall be included in all
276
+ copies or substantial portions of the Software.
277
+
278
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
279
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
280
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
281
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
282
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
283
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
284
+ SOFTWARE.
285
+
286
+ --------------------------------------------------------------------------------
287
+ ember-power-calendar
288
+ https://github.com/ember-power-addons/ember-power-calendar
289
+
290
+ A dependency of @ember-joinery/power-calendar (^2.0.1, with ember-concurrency as its peer), whose
291
+ PowerCalendar, PowerCalendarRange and PowerCalendarMultiple the package's calendars render, and
292
+ whose Days components it subclasses to draw shadcn's markup. Nothing of it is copied into Joinery.
293
+
294
+ The MIT License (MIT)
295
+
296
+ Copyright (c) 2026
297
+
298
+ 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:
299
+
300
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
301
+
302
+ 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.
303
+
304
+ --------------------------------------------------------------------------------
305
+ Maskito
306
+ https://github.com/taiga-family/maskito
307
+
308
+ Dependencies of @ember-joinery/maskito (@maskito/core, @maskito/kit and @maskito/phone, ^5.6.1),
309
+ whose MaskedInput, maskito modifier and PhoneInput mask inputs with Maskito, and whose presets
310
+ call @maskito/kit's generators. Nothing of it is copied into Joinery. Its licence, at v5.6.1:
311
+
312
+ Apache License
313
+ Version 2.0, January 2004
314
+ http://www.apache.org/licenses/
315
+
316
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
317
+
318
+ 1. Definitions.
319
+
320
+ "License" shall mean the terms and conditions for use, reproduction,
321
+ and distribution as defined by Sections 1 through 9 of this document.
322
+
323
+ "Licensor" shall mean the copyright owner or entity authorized by
324
+ the copyright owner that is granting the License.
325
+
326
+ "Legal Entity" shall mean the union of the acting entity and all
327
+ other entities that control, are controlled by, or are under common
328
+ control with that entity. For the purposes of this definition,
329
+ "control" means (i) the power, direct or indirect, to cause the
330
+ direction or management of such entity, whether by contract or
331
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
332
+ outstanding shares, or (iii) beneficial ownership of such entity.
333
+
334
+ "You" (or "Your") shall mean an individual or Legal Entity
335
+ exercising permissions granted by this License.
336
+
337
+ "Source" form shall mean the preferred form for making modifications,
338
+ including but not limited to software source code, documentation
339
+ source, and configuration files.
340
+
341
+ "Object" form shall mean any form resulting from mechanical
342
+ transformation or translation of a Source form, including but
343
+ not limited to compiled object code, generated documentation,
344
+ and conversions to other media types.
345
+
346
+ "Work" shall mean the work of authorship, whether in Source or
347
+ Object form, made available under the License, as indicated by a
348
+ copyright notice that is included in or attached to the work
349
+ (an example is provided in the Appendix below).
350
+
351
+ "Derivative Works" shall mean any work, whether in Source or Object
352
+ form, that is based on (or derived from) the Work and for which the
353
+ editorial revisions, annotations, elaborations, or other modifications
354
+ represent, as a whole, an original work of authorship. For the purposes
355
+ of this License, Derivative Works shall not include works that remain
356
+ separable from, or merely link (or bind by name) to the interfaces of,
357
+ the Work and Derivative Works thereof.
358
+
359
+ "Contribution" shall mean any work of authorship, including
360
+ the original version of the Work and any modifications or additions
361
+ to that Work or Derivative Works thereof, that is intentionally
362
+ submitted to Licensor for inclusion in the Work by the copyright owner
363
+ or by an individual or Legal Entity authorized to submit on behalf of
364
+ the copyright owner. For the purposes of this definition, "submitted"
365
+ means any form of electronic, verbal, or written communication sent
366
+ to the Licensor or its representatives, including but not limited to
367
+ communication on electronic mailing lists, source code control systems,
368
+ and issue tracking systems that are managed by, or on behalf of, the
369
+ Licensor for the purpose of discussing and improving the Work, but
370
+ excluding communication that is conspicuously marked or otherwise
371
+ designated in writing by the copyright owner as "Not a Contribution."
372
+
373
+ "Contributor" shall mean Licensor and any individual or Legal Entity
374
+ on behalf of whom a Contribution has been received by Licensor and
375
+ subsequently incorporated within the Work.
376
+
377
+ 2. Grant of Copyright License. Subject to the terms and conditions of
378
+ this License, each Contributor hereby grants to You a perpetual,
379
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
380
+ copyright license to reproduce, prepare Derivative Works of,
381
+ publicly display, publicly perform, sublicense, and distribute the
382
+ Work and such Derivative Works in Source or Object form.
383
+
384
+ 3. Grant of Patent License. Subject to the terms and conditions of
385
+ this License, each Contributor hereby grants to You a perpetual,
386
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
387
+ (except as stated in this section) patent license to make, have made,
388
+ use, offer to sell, sell, import, and otherwise transfer the Work,
389
+ where such license applies only to those patent claims licensable
390
+ by such Contributor that are necessarily infringed by their
391
+ Contribution(s) alone or by combination of their Contribution(s)
392
+ with the Work to which such Contribution(s) was submitted. If You
393
+ institute patent litigation against any entity (including a
394
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
395
+ or a Contribution incorporated within the Work constitutes direct
396
+ or contributory patent infringement, then any patent licenses
397
+ granted to You under this License for that Work shall terminate
398
+ as of the date such litigation is filed.
399
+
400
+ 4. Redistribution. You may reproduce and distribute copies of the
401
+ Work or Derivative Works thereof in any medium, with or without
402
+ modifications, and in Source or Object form, provided that You
403
+ meet the following conditions:
404
+
405
+ (a) You must give any other recipients of the Work or
406
+ Derivative Works a copy of this License; and
407
+
408
+ (b) You must cause any modified files to carry prominent notices
409
+ stating that You changed the files; and
410
+
411
+ (c) You must retain, in the Source form of any Derivative Works
412
+ that You distribute, all copyright, patent, trademark, and
413
+ attribution notices from the Source form of the Work,
414
+ excluding those notices that do not pertain to any part of
415
+ the Derivative Works; and
416
+
417
+ (d) If the Work includes a "NOTICE" text file as part of its
418
+ distribution, then any Derivative Works that You distribute must
419
+ include a readable copy of the attribution notices contained
420
+ within such NOTICE file, excluding those notices that do not
421
+ pertain to any part of the Derivative Works, in at least one
422
+ of the following places: within a NOTICE text file distributed
423
+ as part of the Derivative Works; within the Source form or
424
+ documentation, if provided along with the Derivative Works; or,
425
+ within a display generated by the Derivative Works, if and
426
+ wherever such third-party notices normally appear. The contents
427
+ of the NOTICE file are for informational purposes only and
428
+ do not modify the License. You may add Your own attribution
429
+ notices within Derivative Works that You distribute, alongside
430
+ or as an addendum to the NOTICE text from the Work, provided
431
+ that such additional attribution notices cannot be construed
432
+ as modifying the License.
433
+
434
+ You may add Your own copyright statement to Your modifications and
435
+ may provide additional or different license terms and conditions
436
+ for use, reproduction, or distribution of Your modifications, or
437
+ for any such Derivative Works as a whole, provided Your use,
438
+ reproduction, and distribution of the Work otherwise complies with
439
+ the conditions stated in this License.
440
+
441
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
442
+ any Contribution intentionally submitted for inclusion in the Work
443
+ by You to the Licensor shall be under the terms and conditions of
444
+ this License, without any additional terms or conditions.
445
+ Notwithstanding the above, nothing herein shall supersede or modify
446
+ the terms of any separate license agreement you may have executed
447
+ with Licensor regarding such Contributions.
448
+
449
+ 6. Trademarks. This License does not grant permission to use the trade
450
+ names, trademarks, service marks, or product names of the Licensor,
451
+ except as required for reasonable and customary use in describing the
452
+ origin of the Work and reproducing the content of the NOTICE file.
453
+
454
+ 7. Disclaimer of Warranty. Unless required by applicable law or
455
+ agreed to in writing, Licensor provides the Work (and each
456
+ Contributor provides its Contributions) on an "AS IS" BASIS,
457
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
458
+ implied, including, without limitation, any warranties or conditions
459
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
460
+ PARTICULAR PURPOSE. You are solely responsible for determining the
461
+ appropriateness of using or redistributing the Work and assume any
462
+ risks associated with Your exercise of permissions under this License.
463
+
464
+ 8. Limitation of Liability. In no event and under no legal theory,
465
+ whether in tort (including negligence), contract, or otherwise,
466
+ unless required by applicable law (such as deliberate and grossly
467
+ negligent acts) or agreed to in writing, shall any Contributor be
468
+ liable to You for damages, including any direct, indirect, special,
469
+ incidental, or consequential damages of any character arising as a
470
+ result of this License or out of the use or inability to use the
471
+ Work (including but not limited to damages for loss of goodwill,
472
+ work stoppage, computer failure or malfunction, or any and all
473
+ other commercial damages or losses), even if such Contributor
474
+ has been advised of the possibility of such damages.
475
+
476
+ 9. Accepting Warranty or Additional Liability. While redistributing
477
+ the Work or Derivative Works thereof, You may choose to offer,
478
+ and charge a fee for, acceptance of support, warranty, indemnity,
479
+ or other liability obligations and/or rights consistent with this
480
+ License. However, in accepting such obligations, You may act only
481
+ on Your own behalf and on Your sole responsibility, not on behalf
482
+ of any other Contributor, and only if You agree to indemnify,
483
+ defend, and hold each Contributor harmless for any liability
484
+ incurred by, or claims asserted against, such Contributor by reason
485
+ of your accepting any such warranty or additional liability.
486
+
487
+ END OF TERMS AND CONDITIONS
488
+
489
+ Copyright 2026 Pineopticone
490
+
491
+ Licensed under the Apache License, Version 2.0 (the "License");
492
+ you may not use this file except in compliance with the License.
493
+ You may obtain a copy of the License at
494
+
495
+ http://www.apache.org/licenses/LICENSE-2.0
496
+
497
+ Unless required by applicable law or agreed to in writing, software
498
+ distributed under the License is distributed on an "AS IS" BASIS,
499
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
500
+ See the License for the specific language governing permissions and
501
+ limitations under the License.
502
+
503
+ --------------------------------------------------------------------------------
504
+ libphonenumber-js
505
+ https://gitlab.com/catamphetamine/libphonenumber-js
506
+
507
+ A dependency of @ember-joinery/maskito (^1.13.15), whose PhoneInput and phone helpers use its
508
+ metadata and parsing. Nothing of it is copied into Joinery. Its metadata derives from Google's
509
+ libphonenumber (Apache 2.0).
510
+
511
+ (The MIT License)
512
+
513
+ Copyright (c) 2016 @catamphetamine <purecatamphetamine@gmail.com>
514
+
515
+ Permission is hereby granted, free of charge, to any person obtaining
516
+ a copy of this software and associated documentation files (the
517
+ 'Software'), to deal in the Software without restriction, including
518
+ without limitation the rights to use, copy, modify, merge, publish,
519
+ distribute, sublicense, and/or sell copies of the Software, and to
520
+ permit persons to whom the Software is furnished to do so, subject to
521
+ the following conditions:
522
+
523
+ The above copyright notice and this permission notice shall be
524
+ included in all copies or substantial portions of the Software.
525
+
526
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
527
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
528
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
529
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
530
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
531
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
532
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,80 @@
1
- # Temporary Holding Version
1
+ # @ember-joinery/data-table
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ shadcn/ui's [Data Table](https://ui.shadcn.com/docs/components/radix/data-table) for Ember, an
4
+ opt-in add-on to [Joinery](https://joegaudet.com/ember-joinery/): sorting, filtering,
5
+ pagination, row selection and column visibility, on [TanStack Table](https://tanstack.com/table)
6
+ v9's framework-agnostic core, `@tanstack/table-core`.
7
+
8
+ ```bash
9
+ npm install @ember-joinery/data-table @ember-joinery/ember
10
+ ```
11
+
12
+ As upstream's page is a guide to building your own data table, this is what you build one with
13
+ in Ember:
14
+
15
+ - `createTable()`, upstream's `useTable`: a TanStack table whose state Ember tracks, so a
16
+ template that reads it re-renders when what it read changes. Its rows', cells', columns' and
17
+ headers' methods come bound, so templates can call them (`{{(row.getIsSelected)}}`).
18
+ - `tableState()`, upstream's `React.useState` for a slice of table state you own.
19
+ - `FlexRender` (and `table.FlexRender`), which renders a column's header or cell: a string, a
20
+ function of its context, or a component (`flexComponent(StatusCell)`).
21
+ - `DataTable`, the element around a table, whose modifiers mark its parts for the harness and
22
+ give its header cells `aria-sort`.
23
+ - Everything `@tanstack/table-core` exports, so a table imports from one place.
24
+
25
+ It ships no CSS of its own: Joinery's Table, Input, Checkbox, Button and Dropdown Menu, which
26
+ `@ember-joinery/ember`'s `joinery.css` styles, make up the table.
27
+
28
+ ```gts
29
+ import Component from '@glimmer/component'
30
+ import { Table } from '@ember-joinery/ember'
31
+ import {
32
+ DataTable,
33
+ createSortedRowModel,
34
+ createTable,
35
+ rowSortingFeature,
36
+ tableFeatures,
37
+ } from '@ember-joinery/data-table'
38
+
39
+ const features = tableFeatures({ rowSortingFeature, sortedRowModel: createSortedRowModel() })
40
+
41
+ export default class Payments extends Component {
42
+ table = createTable(() => ({ features, columns, data: this.args.payments }))
43
+
44
+ <template>
45
+ <DataTable @table={{this.table}} @name="payments" as |dt|>
46
+ <Table as |t|>
47
+ <t.Header>
48
+ {{#each (this.table.getHeaderGroups) as |group|}}
49
+ <t.Row>
50
+ {{#each group.headers as |header|}}
51
+ <t.Head {{dt.head header}}><dt.FlexRender @header={{header}} /></t.Head>
52
+ {{/each}}
53
+ </t.Row>
54
+ {{/each}}
55
+ </t.Header>
56
+ <t.Body>
57
+ {{#let (this.table.getRowModel) as |model|}}
58
+ {{#each model.rows key="id" as |row|}}
59
+ <t.Row {{dt.row row}}>
60
+ {{#each (row.getAllCells) as |cell|}}
61
+ <t.Cell><dt.FlexRender @cell={{cell}} /></t.Cell>
62
+ {{/each}}
63
+ </t.Row>
64
+ {{/each}}
65
+ {{/let}}
66
+ </t.Body>
67
+ </Table>
68
+ </DataTable>
69
+ </template>
70
+ }
71
+ ```
72
+
73
+ Its harness, `DataTableHarness`, is in `@ember-joinery/data-table/test-support`: it reads the
74
+ rows, the columns and their sort, the selection, the filter and the pages, and works them as a
75
+ user does.
76
+
77
+ Full documentation: the Data Table page of the guide at
78
+ **https://joegaudet.com/ember-joinery/guide/**. Design and examples ported from
79
+ [shadcn/ui](https://ui.shadcn.com/) (MIT), on [TanStack Table](https://tanstack.com/table)
80
+ (MIT).
package/addon-main.cjs ADDED
@@ -0,0 +1,4 @@
1
+ 'use strict'
2
+
3
+ const { addonV1Shim } = require('@embroider/addon-shim')
4
+ module.exports = addonV1Shim(__dirname)
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Makes each method on a table-core prototype (a row's, cell's, column's or header's) come back
3
+ * bound to the instance it is read from, the first time it is read there.
4
+ *
5
+ * table-core v9 shares one prototype per kind, and its methods read `this`. Ember's templates
6
+ * call a function without the object it came from (`{{(row.getIsSelected)}}`,
7
+ * `@onCheckedChange={{row.toggleSelected}}`), so an unbound method would lose its row. The
8
+ * bound copy is kept on the instance, not enumerable, so table-core's copies of a row (the
9
+ * sorted row model clones rows through their own enumerable properties) bind their own.
10
+ */
11
+ declare function bindMethods(prototype: object): void;
12
+ /**
13
+ * A table feature, registered after every other, that binds the prototype methods the others
14
+ * assigned (see `bindMethods`). The table's own methods are closures already.
15
+ */
16
+ export declare const boundMethodsFeature: {
17
+ assignRowPrototype: typeof bindMethods;
18
+ assignCellPrototype: typeof bindMethods;
19
+ assignColumnPrototype: typeof bindMethods;
20
+ assignHeaderPrototype: typeof bindMethods;
21
+ };
22
+ export {};
23
+ //# sourceMappingURL=bound-methods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bound-methods.d.ts","sourceRoot":"","sources":["../../src/-private/bound-methods.ts"],"names":[],"mappings":"AACA;;;;;;;;;GASG;AACH,iBAAS,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAyB5C;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;CAK/B,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { TableReactivityBindings } from '@tanstack/table-core/reactivity';
2
+ /**
3
+ * TanStack Table's reactivity bindings for Ember, which `createTable()` gives every table: its
4
+ * state lives in tracked atoms, so a template or getter that reads the table (a row model, a
5
+ * column's sort, `table.store.state`) re-renders when that state changes, and nothing else
6
+ * does. Pass them yourself to table-core's `constructTable()` as `coreReactivityFeature`.
7
+ */
8
+ export declare function emberReactivity(): TableReactivityBindings;
9
+ //# sourceMappingURL=reactivity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactivity.d.ts","sourceRoot":"","sources":["../../src/-private/reactivity.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAyE9E;;;;;GAKG;AACH,wBAAgB,eAAe,IAAI,uBAAuB,CAgCzD"}