@universal-ember/table 3.5.0 → 3.6.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 (226) hide show
  1. package/package.json +1 -1
  2. package/src/-private/interfaces/table.ts +25 -21
  3. package/src/-private/table.ts +7 -2
  4. package/src/plugins/column-reordering/plugin.ts +4 -6
  5. package/declarations/-private/-type-tests/plugin-properties.test.d.ts +0 -2
  6. package/declarations/-private/-type-tests/plugin-properties.test.d.ts.map +0 -1
  7. package/declarations/-private/-type-tests/plugin-with.test.d.ts +0 -2
  8. package/declarations/-private/-type-tests/plugin-with.test.d.ts.map +0 -1
  9. package/declarations/-private/-type-tests/plugins-accessors.test.d.ts +0 -2
  10. package/declarations/-private/-type-tests/plugins-accessors.test.d.ts.map +0 -1
  11. package/declarations/-private/-type-tests/plugins-signature-from.test.d.ts +0 -2
  12. package/declarations/-private/-type-tests/plugins-signature-from.test.d.ts.map +0 -1
  13. package/declarations/-private/-type-tests/plugins-signature-utils.test.d.ts +0 -2
  14. package/declarations/-private/-type-tests/plugins-signature-utils.test.d.ts.map +0 -1
  15. package/declarations/-private/-type-tests/table-api.test.d.ts +0 -2
  16. package/declarations/-private/-type-tests/table-api.test.d.ts.map +0 -1
  17. package/declarations/-private/-type-tests/table-config.test.d.ts +0 -2
  18. package/declarations/-private/-type-tests/table-config.test.d.ts.map +0 -1
  19. package/declarations/-private/column.d.ts +0 -18
  20. package/declarations/-private/column.d.ts.map +0 -1
  21. package/declarations/-private/ember-compat.d.ts +0 -8
  22. package/declarations/-private/ember-compat.d.ts.map +0 -1
  23. package/declarations/-private/interfaces/column.d.ts +0 -63
  24. package/declarations/-private/interfaces/column.d.ts.map +0 -1
  25. package/declarations/-private/interfaces/index.d.ts +0 -8
  26. package/declarations/-private/interfaces/index.d.ts.map +0 -1
  27. package/declarations/-private/interfaces/modifier.d.ts +0 -7
  28. package/declarations/-private/interfaces/modifier.d.ts.map +0 -1
  29. package/declarations/-private/interfaces/pagination.d.ts +0 -17
  30. package/declarations/-private/interfaces/pagination.d.ts.map +0 -1
  31. package/declarations/-private/interfaces/plugins.d.ts +0 -315
  32. package/declarations/-private/interfaces/plugins.d.ts.map +0 -1
  33. package/declarations/-private/interfaces/preferences.d.ts +0 -74
  34. package/declarations/-private/interfaces/preferences.d.ts.map +0 -1
  35. package/declarations/-private/interfaces/selection.d.ts +0 -36
  36. package/declarations/-private/interfaces/selection.d.ts.map +0 -1
  37. package/declarations/-private/interfaces/table.d.ts +0 -122
  38. package/declarations/-private/interfaces/table.d.ts.map +0 -1
  39. package/declarations/-private/js-helper.d.ts +0 -39
  40. package/declarations/-private/js-helper.d.ts.map +0 -1
  41. package/declarations/-private/preferences.d.ts +0 -47
  42. package/declarations/-private/preferences.d.ts.map +0 -1
  43. package/declarations/-private/private-types.d.ts +0 -6
  44. package/declarations/-private/private-types.d.ts.map +0 -1
  45. package/declarations/-private/row.d.ts +0 -12
  46. package/declarations/-private/row.d.ts.map +0 -1
  47. package/declarations/-private/table.d.ts +0 -136
  48. package/declarations/-private/table.d.ts.map +0 -1
  49. package/declarations/-private/utils.d.ts +0 -3
  50. package/declarations/-private/utils.d.ts.map +0 -1
  51. package/declarations/index.d.ts +0 -14
  52. package/declarations/index.d.ts.map +0 -1
  53. package/declarations/plugins/-private/base.d.ts +0 -281
  54. package/declarations/plugins/-private/base.d.ts.map +0 -1
  55. package/declarations/plugins/-private/utils.d.ts +0 -22
  56. package/declarations/plugins/-private/utils.d.ts.map +0 -1
  57. package/declarations/plugins/column-reordering/helpers.d.ts +0 -54
  58. package/declarations/plugins/column-reordering/helpers.d.ts.map +0 -1
  59. package/declarations/plugins/column-reordering/index.d.ts +0 -5
  60. package/declarations/plugins/column-reordering/index.d.ts.map +0 -1
  61. package/declarations/plugins/column-reordering/plugin.d.ts +0 -196
  62. package/declarations/plugins/column-reordering/plugin.d.ts.map +0 -1
  63. package/declarations/plugins/column-reordering/utils.d.ts +0 -8
  64. package/declarations/plugins/column-reordering/utils.d.ts.map +0 -1
  65. package/declarations/plugins/column-resizing/handle.d.ts +0 -128
  66. package/declarations/plugins/column-resizing/handle.d.ts.map +0 -1
  67. package/declarations/plugins/column-resizing/helpers.d.ts +0 -40
  68. package/declarations/plugins/column-resizing/helpers.d.ts.map +0 -1
  69. package/declarations/plugins/column-resizing/index.d.ts +0 -6
  70. package/declarations/plugins/column-resizing/index.d.ts.map +0 -1
  71. package/declarations/plugins/column-resizing/plugin.d.ts +0 -172
  72. package/declarations/plugins/column-resizing/plugin.d.ts.map +0 -1
  73. package/declarations/plugins/column-resizing/resize-observer.d.ts +0 -14
  74. package/declarations/plugins/column-resizing/resize-observer.d.ts.map +0 -1
  75. package/declarations/plugins/column-resizing/utils.d.ts +0 -22
  76. package/declarations/plugins/column-resizing/utils.d.ts.map +0 -1
  77. package/declarations/plugins/column-visibility/helpers.d.ts +0 -18
  78. package/declarations/plugins/column-visibility/helpers.d.ts.map +0 -1
  79. package/declarations/plugins/column-visibility/index.d.ts +0 -5
  80. package/declarations/plugins/column-visibility/index.d.ts.map +0 -1
  81. package/declarations/plugins/column-visibility/plugin.d.ts +0 -64
  82. package/declarations/plugins/column-visibility/plugin.d.ts.map +0 -1
  83. package/declarations/plugins/data-sorting/helpers.d.ts +0 -38
  84. package/declarations/plugins/data-sorting/helpers.d.ts.map +0 -1
  85. package/declarations/plugins/data-sorting/index.d.ts +0 -7
  86. package/declarations/plugins/data-sorting/index.d.ts.map +0 -1
  87. package/declarations/plugins/data-sorting/plugin.d.ts +0 -102
  88. package/declarations/plugins/data-sorting/plugin.d.ts.map +0 -1
  89. package/declarations/plugins/data-sorting/types.d.ts +0 -23
  90. package/declarations/plugins/data-sorting/types.d.ts.map +0 -1
  91. package/declarations/plugins/index.d.ts +0 -6
  92. package/declarations/plugins/index.d.ts.map +0 -1
  93. package/declarations/plugins/metadata/helpers.d.ts +0 -4
  94. package/declarations/plugins/metadata/helpers.d.ts.map +0 -1
  95. package/declarations/plugins/metadata/index.d.ts +0 -5
  96. package/declarations/plugins/metadata/index.d.ts.map +0 -1
  97. package/declarations/plugins/metadata/plugin.d.ts +0 -25
  98. package/declarations/plugins/metadata/plugin.d.ts.map +0 -1
  99. package/declarations/plugins/row-selection/helpers.d.ts +0 -6
  100. package/declarations/plugins/row-selection/helpers.d.ts.map +0 -1
  101. package/declarations/plugins/row-selection/index.d.ts +0 -5
  102. package/declarations/plugins/row-selection/index.d.ts.map +0 -1
  103. package/declarations/plugins/row-selection/plugin.d.ts +0 -80
  104. package/declarations/plugins/row-selection/plugin.d.ts.map +0 -1
  105. package/declarations/plugins/sticky-columns/helpers.d.ts +0 -17
  106. package/declarations/plugins/sticky-columns/helpers.d.ts.map +0 -1
  107. package/declarations/plugins/sticky-columns/index.d.ts +0 -5
  108. package/declarations/plugins/sticky-columns/index.d.ts.map +0 -1
  109. package/declarations/plugins/sticky-columns/plugin.d.ts +0 -70
  110. package/declarations/plugins/sticky-columns/plugin.d.ts.map +0 -1
  111. package/declarations/test-support/index.d.ts +0 -15
  112. package/declarations/test-support/index.d.ts.map +0 -1
  113. package/declarations/utils.d.ts +0 -26
  114. package/declarations/utils.d.ts.map +0 -1
  115. package/dist/-private/-type-tests/plugin-properties.test.js +0 -27
  116. package/dist/-private/-type-tests/plugin-properties.test.js.map +0 -1
  117. package/dist/-private/-type-tests/plugin-with.test.js +0 -20
  118. package/dist/-private/-type-tests/plugin-with.test.js.map +0 -1
  119. package/dist/-private/-type-tests/plugins-accessors.test.js +0 -36
  120. package/dist/-private/-type-tests/plugins-accessors.test.js.map +0 -1
  121. package/dist/-private/-type-tests/plugins-signature-from.test.js +0 -15
  122. package/dist/-private/-type-tests/plugins-signature-from.test.js.map +0 -1
  123. package/dist/-private/-type-tests/plugins-signature-utils.test.js +0 -36
  124. package/dist/-private/-type-tests/plugins-signature-utils.test.js.map +0 -1
  125. package/dist/-private/-type-tests/table-api.test.js +0 -17
  126. package/dist/-private/-type-tests/table-api.test.js.map +0 -1
  127. package/dist/-private/-type-tests/table-config.test.js +0 -55
  128. package/dist/-private/-type-tests/table-config.test.js.map +0 -1
  129. package/dist/-private/column.js +0 -62
  130. package/dist/-private/column.js.map +0 -1
  131. package/dist/-private/ember-compat.js +0 -17
  132. package/dist/-private/ember-compat.js.map +0 -1
  133. package/dist/-private/interfaces/column.js +0 -2
  134. package/dist/-private/interfaces/column.js.map +0 -1
  135. package/dist/-private/interfaces/index.js +0 -2
  136. package/dist/-private/interfaces/index.js.map +0 -1
  137. package/dist/-private/interfaces/modifier.js +0 -2
  138. package/dist/-private/interfaces/modifier.js.map +0 -1
  139. package/dist/-private/interfaces/pagination.js +0 -2
  140. package/dist/-private/interfaces/pagination.js.map +0 -1
  141. package/dist/-private/interfaces/plugins.js +0 -2
  142. package/dist/-private/interfaces/plugins.js.map +0 -1
  143. package/dist/-private/interfaces/preferences.js +0 -2
  144. package/dist/-private/interfaces/preferences.js.map +0 -1
  145. package/dist/-private/interfaces/selection.js +0 -2
  146. package/dist/-private/interfaces/selection.js.map +0 -1
  147. package/dist/-private/interfaces/table.js +0 -2
  148. package/dist/-private/interfaces/table.js.map +0 -1
  149. package/dist/-private/js-helper.js +0 -55
  150. package/dist/-private/js-helper.js.map +0 -1
  151. package/dist/-private/preferences.js +0 -149
  152. package/dist/-private/preferences.js.map +0 -1
  153. package/dist/-private/private-types.js +0 -2
  154. package/dist/-private/private-types.js.map +0 -1
  155. package/dist/-private/row.js +0 -51
  156. package/dist/-private/row.js.map +0 -1
  157. package/dist/-private/table.js +0 -273
  158. package/dist/-private/table.js.map +0 -1
  159. package/dist/-private/utils.js +0 -15
  160. package/dist/-private/utils.js.map +0 -1
  161. package/dist/_rollupPluginBabelHelpers-CjaRjJZX.js +0 -63
  162. package/dist/_rollupPluginBabelHelpers-CjaRjJZX.js.map +0 -1
  163. package/dist/index.js +0 -4
  164. package/dist/index.js.map +0 -1
  165. package/dist/plugins/-private/base.js +0 -532
  166. package/dist/plugins/-private/base.js.map +0 -1
  167. package/dist/plugins/-private/utils.js +0 -103
  168. package/dist/plugins/-private/utils.js.map +0 -1
  169. package/dist/plugins/column-reordering/helpers.js +0 -81
  170. package/dist/plugins/column-reordering/helpers.js.map +0 -1
  171. package/dist/plugins/column-reordering/index.js +0 -3
  172. package/dist/plugins/column-reordering/index.js.map +0 -1
  173. package/dist/plugins/column-reordering/plugin.js +0 -453
  174. package/dist/plugins/column-reordering/plugin.js.map +0 -1
  175. package/dist/plugins/column-reordering/utils.js +0 -34
  176. package/dist/plugins/column-reordering/utils.js.map +0 -1
  177. package/dist/plugins/column-resizing/handle.js +0 -243
  178. package/dist/plugins/column-resizing/handle.js.map +0 -1
  179. package/dist/plugins/column-resizing/helpers.js +0 -77
  180. package/dist/plugins/column-resizing/helpers.js.map +0 -1
  181. package/dist/plugins/column-resizing/index.js +0 -4
  182. package/dist/plugins/column-resizing/index.js.map +0 -1
  183. package/dist/plugins/column-resizing/plugin.js +0 -365
  184. package/dist/plugins/column-resizing/plugin.js.map +0 -1
  185. package/dist/plugins/column-resizing/resize-observer.js +0 -44
  186. package/dist/plugins/column-resizing/resize-observer.js.map +0 -1
  187. package/dist/plugins/column-resizing/utils.js +0 -44
  188. package/dist/plugins/column-resizing/utils.js.map +0 -1
  189. package/dist/plugins/column-visibility/helpers.js +0 -25
  190. package/dist/plugins/column-visibility/helpers.js.map +0 -1
  191. package/dist/plugins/column-visibility/index.js +0 -3
  192. package/dist/plugins/column-visibility/index.js.map +0 -1
  193. package/dist/plugins/column-visibility/plugin.js +0 -92
  194. package/dist/plugins/column-visibility/plugin.js.map +0 -1
  195. package/dist/plugins/data-sorting/helpers.js +0 -49
  196. package/dist/plugins/data-sorting/helpers.js.map +0 -1
  197. package/dist/plugins/data-sorting/index.js +0 -4
  198. package/dist/plugins/data-sorting/index.js.map +0 -1
  199. package/dist/plugins/data-sorting/plugin.js +0 -132
  200. package/dist/plugins/data-sorting/plugin.js.map +0 -1
  201. package/dist/plugins/data-sorting/types.js +0 -14
  202. package/dist/plugins/data-sorting/types.js.map +0 -1
  203. package/dist/plugins/index.js +0 -3
  204. package/dist/plugins/index.js.map +0 -1
  205. package/dist/plugins/metadata/helpers.js +0 -12
  206. package/dist/plugins/metadata/helpers.js.map +0 -1
  207. package/dist/plugins/metadata/index.js +0 -3
  208. package/dist/plugins/metadata/index.js.map +0 -1
  209. package/dist/plugins/metadata/plugin.js +0 -25
  210. package/dist/plugins/metadata/plugin.js.map +0 -1
  211. package/dist/plugins/row-selection/helpers.js +0 -10
  212. package/dist/plugins/row-selection/helpers.js.map +0 -1
  213. package/dist/plugins/row-selection/index.js +0 -3
  214. package/dist/plugins/row-selection/index.js.map +0 -1
  215. package/dist/plugins/row-selection/plugin.js +0 -118
  216. package/dist/plugins/row-selection/plugin.js.map +0 -1
  217. package/dist/plugins/sticky-columns/helpers.js +0 -49
  218. package/dist/plugins/sticky-columns/helpers.js.map +0 -1
  219. package/dist/plugins/sticky-columns/index.js +0 -3
  220. package/dist/plugins/sticky-columns/index.js.map +0 -1
  221. package/dist/plugins/sticky-columns/plugin.js +0 -139
  222. package/dist/plugins/sticky-columns/plugin.js.map +0 -1
  223. package/dist/test-support/index.js +0 -62
  224. package/dist/test-support/index.js.map +0 -1
  225. package/dist/utils.js +0 -77
  226. package/dist/utils.js.map +0 -1
@@ -1,74 +0,0 @@
1
- export interface PreferencesAdapter {
2
- persist?(key: string, data?: TablePreferencesData): void;
3
- restore?(key: string): TablePreferencesData | undefined;
4
- }
5
- /**
6
- * The root preferences object
7
- *
8
- * This object is serialized to JSON for your `PreferencesAdapter` to consume.
9
- * This could allow for saving the data off to an API or local storage.
10
- */
11
- export interface TablePreferencesData {
12
- /**
13
- * Every plugin has its own namespace for preferences storage.
14
- *
15
- * This is so that plugins can not worry about colliding with other plugins'
16
- * keys within the preferences. For example: multiple plugins may use "enabled"
17
- */
18
- plugins?: Registry;
19
- }
20
- /**
21
- * A type registry for @universal-ember/table Plugin's Preferences.
22
- * Meant to be declaration-merged so string lookups resolve to the correct type.
23
- *
24
- * And so that accessing the full "preferences" object from "persist"
25
- * and within "restore" can be fully typed.
26
- * This also helps out with Glint, as `unknown` types are not allowed to be rendered
27
- *
28
- * As a plugin author, to help define what your preferences shape is, you may
29
- * ```ts
30
- * import { type PluginPreferences } from '@universal-ember/table/plugins';
31
- *
32
- * interface SortingPreferences extends PluginPreferences {
33
- *
34
- * }
35
- *
36
- * declare module '@universal-ember/table/plugins' {
37
- * interface Registry {
38
- * // The key *must* match the same of the class
39
- * Sorting: SortingPreferences;
40
- * }
41
- * }
42
- * ```
43
- */
44
- export interface Registry {
45
- }
46
- export type PluginPreferenceFor<PluginName> = PluginName extends keyof Registry ? Registry[PluginName] & PluginPreferences : PluginPreferences;
47
- export type PreferencesTableKey<PluginName> = keyof PluginPreferenceFor<PluginName>['table'];
48
- export type PreferencesTableValues<PluginName> = PluginPreferenceFor<PluginName>['table'][PreferencesTableKey<PluginName>];
49
- export type PreferencesColumnValues<PluginName> = PluginPreferenceFor<PluginName>['columns'][keyof PluginPreferenceFor<PluginName>['columns']];
50
- /**
51
- * Preferences for a column may store a map of key-value pairs
52
- * for each of
53
- * - the table
54
- * - each column
55
- */
56
- export interface PluginPreferences {
57
- /**
58
- * A plugin's preferences for the table can be any
59
- * string -> stringifyable mapping
60
- */
61
- table: Record<string, unknown>;
62
- /**
63
- * preferences for a plugin's columns-of-interest are mapped out by
64
- * the column's key
65
- */
66
- columns: {
67
- /**
68
- * For any particular column that a plugin may desire to store preferences on,
69
- * the data can be any string -> stringifyable mapping
70
- */
71
- [columnKey: string]: Record<string, unknown>;
72
- };
73
- }
74
- //# sourceMappingURL=preferences.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preferences.d.ts","sourceRoot":"","sources":["../../../src/-private/interfaces/preferences.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACzD,OAAO,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAAC;CACzD;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,QAAQ;CAAG;AAE5B,MAAM,MAAM,mBAAmB,CAAC,UAAU,IAAI,UAAU,SAAS,MAAM,QAAQ,GAC3E,QAAQ,CAAC,UAAU,CAAC,GAAG,iBAAiB,GACxC,iBAAiB,CAAC;AAEtB,MAAM,MAAM,mBAAmB,CAAC,UAAU,IACxC,MAAM,mBAAmB,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;AAEjD,MAAM,MAAM,sBAAsB,CAAC,UAAU,IAC3C,mBAAmB,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC;AAC5E,MAAM,MAAM,uBAAuB,CAAC,UAAU,IAC5C,mBAAmB,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,mBAAmB,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAC/F;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B;;;OAGG;IACH,OAAO,EAAE;QACP;;;WAGG;QACH,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9C,CAAC;CACH"}
@@ -1,36 +0,0 @@
1
- /**
2
- * Types minimally replicated here so we don't need to depend on the package that
3
- * actually defines these types
4
- *
5
- * This also enables a much broader variety of implementations as these interfaces
6
- * describe only what's needed by the headless table, and not the concrete implementation
7
- */
8
- type CurrentState<T> = {
9
- state: 'ALL' | 'NONE';
10
- } | {
11
- state: 'SOME';
12
- includeItems: T[];
13
- } | {
14
- state: 'ALL_EXCEPT';
15
- excludeItems: T[];
16
- };
17
- /**
18
- * A table can provide a `Selection` object that matches this API
19
- */
20
- export interface Selection<Item = object> {
21
- get selected(): Item[];
22
- get currentState(): CurrentState<Item>;
23
- get isIndeterminate(): boolean;
24
- get isAllSelected(): boolean;
25
- get numSelected(): number;
26
- get numTotal(): number;
27
- isSelected(item: Item): boolean;
28
- selectItem(item: Item): void;
29
- toggleItem(item: Item): void;
30
- toggleAll(): void;
31
- selectAll(): void;
32
- deselectAll(): void;
33
- deselectItem(item: Item): void;
34
- }
35
- export {};
36
- //# sourceMappingURL=selection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../src/-private/interfaces/selection.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,KAAK,YAAY,CAAC,CAAC,IACf;IACE,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;CACvB,GACD;IACE,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,CAAC,EAAE,CAAC;CACnB,GACD;IACE,KAAK,EAAE,YAAY,CAAC;IACpB,YAAY,EAAE,CAAC,EAAE,CAAC;CACnB,CAAC;AAEN;;GAEG;AACH,MAAM,WAAW,SAAS,CAAC,IAAI,GAAG,MAAM;IACtC,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;IACvB,IAAI,YAAY,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;IACvC,IAAI,eAAe,IAAI,OAAO,CAAC;IAC/B,IAAI,aAAa,IAAI,OAAO,CAAC;IAC7B,IAAI,WAAW,IAAI,MAAM,CAAC;IAC1B,IAAI,QAAQ,IAAI,MAAM,CAAC;IACvB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC;IAChC,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAC7B,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAC7B,SAAS,IAAI,IAAI,CAAC;IAClB,SAAS,IAAI,IAAI,CAAC;IAClB,WAAW,IAAI,IAAI,CAAC;IACpB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CAChC"}
@@ -1,122 +0,0 @@
1
- import type { Plugins } from '../../plugins/-private/utils';
2
- import type { ColumnConfig } from './column';
3
- import type { Pagination } from './pagination';
4
- import type { PreferencesAdapter } from './preferences';
5
- import type { Selection } from './selection';
6
- export interface TableMeta {
7
- totalRowCount?: number;
8
- totalRowsSelectedCount?: number;
9
- }
10
- export interface TableConfig<DataType> {
11
- /**
12
- * Configuration describing how the table will crawl through `data`
13
- * and render it. Within this `columns` config, there will also be opportunities
14
- * to set the behavior of columns when rendered
15
- */
16
- columns: () => ColumnConfig<DataType>[];
17
- /**
18
- * The data to render, as described via the `columns` option.
19
- *
20
- * This data may or may not match the shape requested by the columns configuration.
21
- * When a key-value pair matches what a column config requests, the data will be rendered.
22
- * When a key-value pair is misisng, a fallback or empty representation of a value will be
23
- * shown instead.
24
- */
25
- data: () => DataType[];
26
- /**
27
- * A collection of plugins for use in extending table behavior.
28
- * plugins have a collection of hooks and properties to use, but for anything
29
- * requiring user interaction there will be manual connecting.
30
- *
31
- * The instance for each plugin can be accessed via HeadlessTable's `pluginOf(<Plugin>)`
32
- * method, where it takes the plugin constructor/class/object for lookup purposes.
33
- *
34
- * Some plugins may require setting options for hooking into behavior
35
- * provided by the plugin (for example sorting).
36
- *
37
- * Example:
38
- * ```js
39
- * import { DataSorting } from '@universal-ember/table/plugins/data-sorting';
40
- * import { ColumnResizing } from '@universal-ember/table/plugins/column-resizing';
41
- *
42
- * ...
43
- *
44
- * plugins: [
45
- * DataSorting.with(() => {
46
- * return {
47
- * sorts: [array of sorts],
48
- * onSort: this.doThingWhenSortsChange,
49
- * };
50
- * }),
51
- * ColumnResizing.with(() => {
52
- * return {
53
- * enabled: true,
54
- * }
55
- * }),
56
- * ]
57
- * ```
58
- *
59
- * However, for plugins with no needed options, the list can be simplified:
60
- * ```js
61
- * import { ColumnResizing } from '@universal-ember/table/plugins/column-resizing';
62
- * import { StickyColumns } from '@universal-ember/table/plugins/sticky-columns';
63
- *
64
- * ...
65
- *
66
- * plugins: [
67
- * ColumnResizing,
68
- * StickyColumns,
69
- * ]
70
- * ```
71
- */
72
- plugins?: Plugins;
73
- bulkSelection?: Selection;
74
- isCheckboxSelectable?: boolean;
75
- isRowSelectable?: boolean;
76
- rowSelection?: () => DataType;
77
- onRowSelectionChange?: (selection: DataType | undefined) => void;
78
- meta?: TableMeta;
79
- pagination?: Pagination;
80
- /**
81
- * Default value to display in cells when the data is empty/missing.
82
- * If not specified, defaults to '--'.
83
- *
84
- * Can be overridden per-column via the column's options.defaultValue.
85
- *
86
- * @example
87
- * ```js
88
- * defaultCellValue: '' // show empty string instead of '--'
89
- * defaultCellValue: 'N/A' // show 'N/A'
90
- * ```
91
- */
92
- defaultCellValue?: string;
93
- /**
94
- * Foundational to tables is how to store settings within them.
95
- * The `key` is meant to identify a particular kind of table. For example, if
96
- * you have a table representing "blog posts", your table key may be "blog-posts".
97
- *
98
- * And most importantly, the `adapter` is how you load and save the preferences.
99
- * This may bo to local storage, or some API.
100
- */
101
- preferences?: {
102
- /**
103
- * What to name the table in the preferences storage of your choice.
104
- * Any string is valid provided that the storage adapter of your choice supports
105
- * the format.
106
- *
107
- * For example, if you have a table of "blog posts", the preferences key might be
108
- * `"all-blog-posts"`
109
- */
110
- key: string;
111
- /**
112
- * Configuration for how you wish to `persist` and `restore` the configuration for your table.
113
- *
114
- * `persist` may be async as it is a fire-and-forget type of action.
115
- *
116
- * However, `restore` must be synchronous, as this is a blocking operation for rendering the table.
117
- * So it's best to load up the table preferences before rendering a table.
118
- */
119
- adapter?: PreferencesAdapter;
120
- };
121
- }
122
- //# sourceMappingURL=table.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/-private/interfaces/table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,WAAW,SAAS;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,WAAW,CAAC,QAAQ;IACnC;;;;OAIG;IACH,OAAO,EAAE,MAAM,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;IACxC;;;;;;;OAOG;IACH,IAAI,EAAE,MAAM,QAAQ,EAAE,CAAC;IAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6CG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAKlB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAI/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,QAAQ,CAAC;IAC9B,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,GAAG,SAAS,KAAK,IAAI,CAAC;IAGjE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;;;;;;;;;OAWG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE;QACZ;;;;;;;WAOG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;;;;;;WAOG;QACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;KAC9B,CAAC;CACH"}
@@ -1,39 +0,0 @@
1
- import { Table } from './table.ts';
2
- import type { TableConfig } from './interfaces';
3
- /**
4
- * Represents a UI-less version of a table
5
- *
6
- * _For use for building tables in ui frameworks_.
7
- *
8
- * @example
9
- * ```js
10
- * import { use } from 'ember-resources';
11
- * import { headlessTable } '@universal-ember/table';
12
- *
13
- * class MyImplementation {
14
- * @use table = headlessTable({
15
- * // your config here
16
- * })
17
- * }
18
- * ```
19
- */
20
- export declare function headlessTable<T = unknown>(options: TableConfig<T>): Table<T>;
21
- /**
22
- * Represents a UI-less version of a table
23
- *
24
- * _For use for building tables in ui frameworks_.
25
- *
26
- * @example
27
- * ```js
28
- * import { headlessTable } '@universal-ember/table';
29
- *
30
- * class MyImplementation {
31
- * table = headlessTable(this, {
32
- * // your config here
33
- * })
34
- * }
35
- * ```
36
- *
37
- */
38
- export declare function headlessTable<T = unknown>(destroyable: object, options: TableConfig<T>): Table<T>;
39
- //# sourceMappingURL=js-helper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"js-helper.d.ts","sourceRoot":"","sources":["../../src/-private/js-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAMhD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AAE9E;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,CAAC,GAAG,OAAO,EACvC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GACtB,KAAK,CAAC,CAAC,CAAC,CAAC"}
@@ -1,47 +0,0 @@
1
- import { TrackedMap } from 'tracked-built-ins';
2
- import type { PluginPreferenceFor, PluginPreferences, PreferencesAdapter as Adapter, TablePreferencesData } from './interfaces';
3
- export declare class TablePreferences {
4
- private key;
5
- private adapter?;
6
- storage: TrackedPreferences;
7
- constructor(key: string, adapter?: Adapter | undefined);
8
- hasAdapter(): boolean;
9
- getIsAtDefault(): boolean;
10
- /**
11
- * Passes a JSON-compatible structure to `adapter.persist`
12
- *
13
- * This structure could be stored in a remote database or
14
- * local storage. The `adpater.restore` method can be used to restore
15
- * this structure back in to the {@link TrackedPreferences }
16
- */
17
- persist(): void | undefined;
18
- /**
19
- * Using the `adapter.restore` method, convert the JSON structure
20
- * to {@link TrackedPreferences }
21
- */
22
- restore(adapter: Adapter): void;
23
- }
24
- /**
25
- * @public
26
- *
27
- * The API for reactively interacting with preferences
28
- */
29
- declare class TrackedPreferences {
30
- plugins: TrackedMap<string, TrackedPluginPrefs<unknown>>;
31
- get isAtDefault(): boolean;
32
- getPlugin(name: string): TrackedPluginPrefs | undefined;
33
- forPlugin(name: string): TrackedPluginPrefs<unknown>;
34
- serialize(): TablePreferencesData;
35
- restore(data: TablePreferencesData): void;
36
- }
37
- declare class TrackedPluginPrefs<PluginName = unknown> {
38
- table: TrackedMap<string, unknown>;
39
- columns: TrackedMap<string, TrackedMap<string, unknown>>;
40
- get isAtDefault(): boolean;
41
- getColumn: (key: string) => TrackedMap<string, unknown> | undefined;
42
- forColumn: (key: string) => TrackedMap<string, unknown>;
43
- serialize(): PluginPreferenceFor<PluginName>;
44
- restore(data: PluginPreferences): void;
45
- }
46
- export {};
47
- //# sourceMappingURL=preferences.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preferences.d.ts","sourceRoot":"","sources":["../../src/-private/preferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,IAAI,OAAO,EAE7B,oBAAoB,EACrB,MAAM,cAAc,CAAC;AAEtB,qBAAa,gBAAgB;IAIzB,OAAO,CAAC,GAAG;IACX,OAAO,CAAC,OAAO,CAAC;IAJlB,OAAO,qBAA4B;gBAGzB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,OAAO,YAAA;IAO3B,UAAU;IAIV,cAAc;IAId;;;;;;OAMG;IACH,OAAO;IAMP;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,OAAO;CAOzB;AAED;;;;GAIG;AACH,cAAM,kBAAkB;IACtB,OAAO,kDAAgD;IAEvD,IAAI,WAAW,IAAI,OAAO,CAIzB;IAED,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAIvD,SAAS,CAAC,IAAI,EAAE,MAAM;IAWtB,SAAS,IAAI,oBAAoB;IAkBjC,OAAO,CAAC,IAAI,EAAE,oBAAoB,GAAG,IAAI;CAW1C;AAED,cAAM,kBAAkB,CAAC,UAAU,GAAG,OAAO;IAC3C,KAAK,8BAAqC;IAC1C,OAAO,kDAAyD;IAEhE,IAAI,WAAW,IAAI,OAAO,CAKzB;IAED,SAAS,GAAI,KAAK,MAAM,KAAG,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAEhE;IAEF,SAAS,GAAI,KAAK,MAAM,KAAG,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,CASpD;IAEF,SAAS,IAAI,mBAAmB,CAAC,UAAU,CAAC;IAwB5C,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI;CAiBvC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Private utility types
3
- */
4
- export type Constructor<T, Args extends any[] = any[]> = new (...args: Args) => T;
5
- export type Class<T> = Constructor<T>;
6
- //# sourceMappingURL=private-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"private-types.d.ts","sourceRoot":"","sources":["../../src/-private/private-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,IAAI,SAAS,GAAG,EAAE,GAAG,GAAG,EAAE,IAAI,KACvD,GAAG,IAAI,EAAE,IAAI,KACV,CAAC,CAAC;AACP,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- import type { Table } from './table';
2
- export declare class Row<DataType = Record<string, unknown>> {
3
- data: DataType;
4
- table: Table<DataType>;
5
- get index(): number;
6
- get isOdd(): boolean;
7
- get next(): Row<DataType> | undefined;
8
- get prev(): Row<DataType> | undefined;
9
- constructor(table: Table<DataType>, data: DataType);
10
- handleClick(event: MouseEvent): void;
11
- }
12
- //# sourceMappingURL=row.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"row.d.ts","sourceRoot":"","sources":["../../src/-private/row.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,qBAAa,GAAG,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACjD,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAEvB,IAAI,KAAK,IAAI,MAAM,CASlB;IAED,IAAI,KAAK,YAER;IAED,IAAI,IAAI,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,SAAS,CAEpC;IAED,IAAI,IAAI,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,SAAS,CAEpC;gBAEW,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ;IAMlD,WAAW,CAAC,KAAK,EAAE,UAAU;CA2B9B"}
@@ -1,136 +0,0 @@
1
- import { Resource } from 'ember-modify-based-class-resource';
2
- import { Column } from './column.ts';
3
- import { TablePreferences } from './preferences.ts';
4
- import { Row } from './row.ts';
5
- import type { BasePlugin, Plugin } from '../plugins/index.ts';
6
- import type { Class } from './private-types.ts';
7
- import type { TableConfig } from './interfaces';
8
- interface Signature<DataType> {
9
- Named: TableConfig<DataType>;
10
- }
11
- /**
12
- * Because the table is our entry-point object to all the table behaviors,
13
- * we need a stable way to know which table we have.
14
- * Normally, this could be done with referential integrity / identity.
15
- * However, due to how resources are implemented, if the consumer opts to
16
- * not use the `@use` decorator, then proxies get involved.
17
- * The proxies don't maintain instanceof checks, which may be a bug in
18
- * ember-resources.
19
- */
20
- export declare const TABLE_KEY: unique symbol;
21
- export declare const TABLE_META_KEY: unique symbol;
22
- export declare const COLUMN_META_KEY: unique symbol;
23
- export declare const ROW_META_KEY: unique symbol;
24
- export declare class Table<DataType = unknown> extends Resource<Signature<DataType>> {
25
- /**
26
- * @private
27
- */
28
- [TABLE_KEY]: string;
29
- /**
30
- * @private
31
- */
32
- [TABLE_META_KEY]: Map<Class<unknown>, any>;
33
- /**
34
- * @private
35
- */
36
- [COLUMN_META_KEY]: WeakMap<Column<unknown>, Map<Class<unknown>, any>>;
37
- /**
38
- * @private
39
- */
40
- [ROW_META_KEY]: WeakMap<Row<Record<string, unknown>>, Map<Class<unknown>, any>>;
41
- /**
42
- * @private
43
- *
44
- * Unused for now, may be used in the future.
45
- * This data is collected along with the scrollContainerWidth, (which is currently in use)
46
- */
47
- scrollContainerHeight?: number;
48
- /**
49
- * @private
50
- *
51
- * Used to help determine how much space we can give to columns.
52
- * As we generate widths for columns, the columns' widths must
53
- * add up to about this number.
54
- */
55
- scrollContainerWidth?: number;
56
- /**
57
- * @private
58
- *
59
- * Lazy way to delay consuming arguments until they are needed.
60
- */
61
- args: {
62
- named: Signature<DataType>['Named'];
63
- };
64
- /**
65
- * @private
66
- */
67
- scrollContainerElement?: HTMLElement;
68
- /**
69
- * Interact with, save, modify, etc the preferences for the table,
70
- * plugins, columns, etc
71
- */
72
- preferences: TablePreferences;
73
- /**
74
- * @private
75
- */
76
- modify(_: [] | undefined, named: Signature<DataType>['Named']): void;
77
- /**
78
- * Collection of utility modifiers that are the result of composing modifiers
79
- * from plugins.
80
- *
81
- * Using this is optional, and you can "just" use modifiers from specific plugins
82
- * in specific places if you wish -- but these exists as a "convenience".
83
- *
84
- * These are all no-use, no-cost utilities
85
- */
86
- modifiers: {
87
- container: import("ember-modifier").FunctionBasedModifier<{
88
- Args: {
89
- Positional: unknown[];
90
- Named: import("ember-modifier/-private/signature").EmptyObject;
91
- };
92
- Element: HTMLElement;
93
- }>;
94
- columnHeader: import("ember-modifier").FunctionBasedModifier<{
95
- Args: {
96
- Positional: [Column<DataType>];
97
- Named: import("ember-modifier/-private/signature").EmptyObject;
98
- };
99
- Element: HTMLElement;
100
- }>;
101
- row: import("ember-modifier").FunctionBasedModifier<{
102
- Args: {
103
- Positional: [Row<DataType>];
104
- Named: import("ember-modifier/-private/signature").EmptyObject;
105
- };
106
- Element: HTMLElement;
107
- }>;
108
- };
109
- /**
110
- * @private
111
- *
112
- * For all configured plugins, instantiates each one.
113
- * If the plugins argument changes to the Table (either directly or through
114
- * headlessTable, all state is lost and re-created)
115
- */
116
- get plugins(): Plugin[];
117
- /**
118
- * Get the active plugin instance for the given plugin class
119
- */
120
- pluginOf<Instance extends BasePlugin<any>>(klass: Class<Instance>): Instance | undefined;
121
- /**
122
- * @private
123
- *
124
- * used by other private APIs
125
- */
126
- get config(): TableConfig<DataType>;
127
- rows: import("reactiveweb/map").MappedArray<DataType[], Row<DataType>>;
128
- columns: import("reactiveweb/map").MappedArray<import("./interfaces").ColumnConfig<DataType>[], Column<DataType>>;
129
- /**
130
- * @private
131
- */
132
- resetScrollContainer(): void;
133
- resetToDefaults(): void;
134
- }
135
- export {};
136
- //# sourceMappingURL=table.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/-private/table.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAO7D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAG/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAc,WAAW,EAAE,MAAM,cAAc,CAAC;AAW5D,UAAU,SAAS,CAAC,QAAQ;IAC1B,KAAK,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;CAC9B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,eAA0B,CAAC;AACjD,eAAO,MAAM,cAAc,eAA2B,CAAC;AACvD,eAAO,MAAM,eAAe,eAA4B,CAAC;AACzD,eAAO,MAAM,YAAY,eAAyB,CAAC;AAQnD,qBAAa,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAE,SAAQ,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC1E;;OAEG;IACH,CAAC,SAAS,CAAC,SAAiB;IAC5B;;OAEG;IACH,CAAC,cAAc,CAAC,2BAAkC;IAClD;;OAEG;IACH,CAAC,eAAe,CAAC,qDAAmD;IACpE;;OAEG;IACH,CAAC,YAAY,CAAC,kEAAgD;IAE9D;;;;;OAKG;IACM,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAExC;;;;;;OAMG;IACM,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAEvC;;;;OAIG;IACc,IAAI,EAAE;QAAE,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAA;KAAE,CAAC;IAE/D;;OAEG;IACH,sBAAsB,CAAC,EAAE,WAAW,CAAC;IAErC;;;OAGG;IACK,WAAW,EAAE,gBAAgB,CAAC;IAEtC;;OAEG;IACH,MAAM,CAAC,CAAC,EAAE,EAAE,GAAG,SAAS,EAAE,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;IAiB7D;;;;;;;;OAQG;IACH,SAAS;;;;;;;;;;;;;;;;;;;;;;MAuCP;IAEF;;;;;;OAMG;IACH,IACI,OAAO,IAAI,MAAM,EAAE,CA2BtB;IAED;;OAEG;IACH,QAAQ,CAAC,QAAQ,SAAS,UAAU,CAAC,GAAG,CAAC,EACvC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,GACrB,QAAQ,GAAG,SAAS;IAevB;;;;OAIG;IACH,IAAI,MAAM,0BAET;IAED,IAAI,mEASD;IAEH,OAAO,2GAqCJ;IAEH;;OAEG;IAEH,oBAAoB;IAOpB,eAAe;CAGhB"}
@@ -1,3 +0,0 @@
1
- import type { FunctionModifier } from './interfaces';
2
- export declare function composeFunctionModifiers<Args extends unknown[]>(modifiers: Array<FunctionModifier<Args> | undefined>): (element: HTMLElement, ...args: Args) => () => void;
3
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/-private/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEjE,wBAAgB,wBAAwB,CAAC,IAAI,SAAS,OAAO,EAAE,EAC7D,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,aAIzB,WAAW,WAAW,IAAI,gBAatD"}
@@ -1,14 +0,0 @@
1
- /********************************
2
- * Public API
3
- *******************************/
4
- export { headlessTable, headlessTable as table } from './-private/js-helper.ts';
5
- export { TablePreferences } from './-private/preferences.ts';
6
- export { deserializeSorts, serializeSorts } from './utils.ts';
7
- /********************************
8
- * Public Types
9
- *******************************/
10
- export type { Column } from './-private/column.ts';
11
- export type { ColumnConfig, ColumnKey, Pagination, PreferencesAdapter, TablePreferencesData as PreferencesData, Selection, TableConfig, TableMeta, } from './-private/interfaces/index.ts';
12
- export type { Row } from './-private/row.ts';
13
- export type { Table } from './-private/table.ts';
14
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;iCAEiC;AACjC,OAAO,EAAE,aAAa,EAAE,aAAa,IAAI,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGhF,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE9D;;iCAEiC;AACjC,YAAY,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,YAAY,EACV,YAAY,EACZ,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,oBAAoB,IAAI,eAAe,EACvC,SAAS,EACT,WAAW,EACX,SAAS,GACV,MAAM,gCAAgC,CAAC;AACxC,YAAY,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC7C,YAAY,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC"}