@powerhousedao/document-engineering 1.27.0 → 1.28.0

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 (325) hide show
  1. package/dist/src/index.d.ts +1 -0
  2. package/dist/src/index.d.ts.map +1 -1
  3. package/dist/src/index.js +1 -0
  4. package/dist/src/index.js.map +1 -1
  5. package/dist/src/scalars/components/fragments/form-message/message-list.js +1 -1
  6. package/dist/src/scalars/components/fragments/form-message/message-list.js.map +1 -1
  7. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/body.d.ts +1 -1
  8. package/dist/src/table/components/body.d.ts.map +1 -0
  9. package/dist/src/table/components/body.js.map +1 -0
  10. package/dist/src/table/components/cells/basic-cell.d.ts.map +1 -0
  11. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/basic-cell.js +1 -1
  12. package/dist/src/table/components/cells/basic-cell.js.map +1 -0
  13. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/default-cell.d.ts +1 -0
  14. package/dist/src/table/components/cells/default-cell.d.ts.map +1 -0
  15. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/default-cell.js +3 -3
  16. package/dist/src/table/components/cells/default-cell.js.map +1 -0
  17. package/dist/src/table/components/cells/information-cell.d.ts +6 -0
  18. package/dist/src/table/components/cells/information-cell.d.ts.map +1 -0
  19. package/dist/src/table/components/cells/information-cell.js +12 -0
  20. package/dist/src/table/components/cells/information-cell.js.map +1 -0
  21. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/render-cell/empty-cell.d.ts +1 -1
  22. package/dist/src/table/components/cells/render-cell/empty-cell.d.ts.map +1 -0
  23. package/dist/src/table/components/cells/render-cell/empty-cell.js.map +1 -0
  24. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/render-cell/render-cell.d.ts +1 -1
  25. package/dist/src/table/components/cells/render-cell/render-cell.d.ts.map +1 -0
  26. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/render-cell/render-cell.js +8 -4
  27. package/dist/src/table/components/cells/render-cell/render-cell.js.map +1 -0
  28. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/render-cell/use-cell-logic.d.ts +3 -2
  29. package/dist/src/table/components/cells/render-cell/use-cell-logic.d.ts.map +1 -0
  30. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/render-cell/use-cell-logic.js +8 -3
  31. package/dist/src/table/components/cells/render-cell/use-cell-logic.js.map +1 -0
  32. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/row-number-cell.d.ts +1 -0
  33. package/dist/src/table/components/cells/row-number-cell.d.ts.map +1 -0
  34. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/row-number-cell.js +3 -3
  35. package/dist/src/table/components/cells/row-number-cell.js.map +1 -0
  36. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/boolean-editor.d.ts +2 -2
  37. package/dist/src/table/components/default-cell-editors/boolean-editor.d.ts.map +1 -0
  38. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/boolean-editor.js +2 -2
  39. package/dist/src/table/components/default-cell-editors/boolean-editor.js.map +1 -0
  40. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/get-cell-editor-fn.d.ts +1 -1
  41. package/dist/src/table/components/default-cell-editors/get-cell-editor-fn.d.ts.map +1 -0
  42. package/dist/src/table/components/default-cell-editors/get-cell-editor-fn.js.map +1 -0
  43. package/dist/src/table/components/default-cell-editors/index.d.ts.map +1 -0
  44. package/dist/src/table/components/default-cell-editors/index.js.map +1 -0
  45. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/number-editor.d.ts +2 -2
  46. package/dist/src/table/components/default-cell-editors/number-editor.d.ts.map +1 -0
  47. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/number-editor.js +2 -2
  48. package/dist/src/table/components/default-cell-editors/number-editor.js.map +1 -0
  49. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/string-editor.d.ts +2 -2
  50. package/dist/src/table/components/default-cell-editors/string-editor.d.ts.map +1 -0
  51. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/string-editor.js +1 -1
  52. package/dist/src/table/components/default-cell-editors/string-editor.js.map +1 -0
  53. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-renderers/boolean-render.d.ts +1 -1
  54. package/dist/src/table/components/default-cell-renderers/boolean-render.d.ts.map +1 -0
  55. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-renderers/boolean-render.js +2 -2
  56. package/dist/src/table/components/default-cell-renderers/boolean-render.js.map +1 -0
  57. package/dist/src/table/components/default-cell-renderers/get-render-fn.d.ts +4 -0
  58. package/dist/src/table/components/default-cell-renderers/get-render-fn.d.ts.map +1 -0
  59. package/dist/src/table/components/default-cell-renderers/get-render-fn.js.map +1 -0
  60. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-renderers/number-render.d.ts +1 -1
  61. package/dist/src/table/components/default-cell-renderers/number-render.d.ts.map +1 -0
  62. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-renderers/number-render.js +1 -1
  63. package/dist/src/table/components/default-cell-renderers/number-render.js.map +1 -0
  64. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-renderers/text-render.d.ts +1 -1
  65. package/dist/src/table/components/default-cell-renderers/text-render.d.ts.map +1 -0
  66. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-renderers/text-render.js +1 -1
  67. package/dist/src/table/components/default-cell-renderers/text-render.js.map +1 -0
  68. package/dist/src/table/components/default-fns/default-cell-value-formatter.d.ts.map +1 -0
  69. package/dist/src/table/components/default-fns/default-cell-value-formatter.js.map +1 -0
  70. package/dist/src/table/components/default-fns/default-cell-value-getter.d.ts +4 -0
  71. package/dist/src/table/components/default-fns/default-cell-value-getter.d.ts.map +1 -0
  72. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-fns/default-cell-value-getter.js +1 -1
  73. package/dist/src/table/components/default-fns/default-cell-value-getter.js.map +1 -0
  74. package/dist/src/table/components/default-fns/default-column-config.d.ts +4 -0
  75. package/dist/src/table/components/default-fns/default-column-config.d.ts.map +1 -0
  76. package/dist/src/table/components/default-fns/default-column-config.js.map +1 -0
  77. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-header-renderers/default-header-renderer.d.ts +1 -1
  78. package/dist/src/table/components/default-header-renderers/default-header-renderer.d.ts.map +1 -0
  79. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-header-renderers/default-header-renderer.js +1 -1
  80. package/dist/src/table/components/default-header-renderers/default-header-renderer.js.map +1 -0
  81. package/dist/src/table/components/default-sort-columns/default-sort-fns.d.ts +3 -0
  82. package/dist/src/table/components/default-sort-columns/default-sort-fns.d.ts.map +1 -0
  83. package/dist/src/table/components/default-sort-columns/default-sort-fns.js.map +1 -0
  84. package/dist/src/table/components/header/header-cell.d.ts.map +1 -0
  85. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/header/header-cell.js +1 -1
  86. package/dist/src/table/components/header/header-cell.js.map +1 -0
  87. package/dist/src/table/components/header/header-number-td.d.ts.map +1 -0
  88. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/header/header-number-td.js +1 -1
  89. package/dist/src/table/components/header/header-number-td.js.map +1 -0
  90. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/header.d.ts +1 -1
  91. package/dist/src/table/components/header.d.ts.map +1 -0
  92. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/header.js +2 -2
  93. package/dist/src/table/components/header.js.map +1 -0
  94. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/rows/render-row.d.ts +1 -1
  95. package/dist/src/table/components/rows/render-row.d.ts.map +1 -0
  96. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/rows/render-row.js +23 -5
  97. package/dist/src/table/components/rows/render-row.js.map +1 -0
  98. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/rows/row-actions.d.ts +1 -1
  99. package/dist/src/table/components/rows/row-actions.d.ts.map +1 -0
  100. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/rows/row-actions.js +3 -3
  101. package/dist/src/table/components/rows/row-actions.js.map +1 -0
  102. package/dist/src/table/components/rows/table-row.d.ts.map +1 -0
  103. package/dist/src/table/components/rows/table-row.js +15 -0
  104. package/dist/src/table/components/rows/table-row.js.map +1 -0
  105. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/sort-indicator.d.ts +1 -1
  106. package/dist/src/table/components/sort-indicator.d.ts.map +1 -0
  107. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/sort-indicator.js +1 -1
  108. package/dist/src/table/components/sort-indicator.js.map +1 -0
  109. package/dist/src/table/components/table-focus-trap.d.ts.map +1 -0
  110. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/table-focus-trap.js +1 -0
  111. package/dist/src/table/components/table-focus-trap.js.map +1 -0
  112. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/table-provider/table-provider.d.ts +1 -1
  113. package/dist/src/table/components/table-provider/table-provider.d.ts.map +1 -0
  114. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/table-provider/table-provider.js +2 -1
  115. package/dist/src/table/components/table-provider/table-provider.js.map +1 -0
  116. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/table-provider/table-reducer.d.ts +7 -1
  117. package/dist/src/table/components/table-provider/table-reducer.d.ts.map +1 -0
  118. package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/table-provider/table-reducer.js +7 -1
  119. package/dist/src/table/components/table-provider/table-reducer.js.map +1 -0
  120. package/dist/src/table/examples/api-usage/api-usage.d.ts.map +1 -0
  121. package/dist/src/{ui/components/object-set-table → table}/examples/api-usage/api-usage.js +5 -5
  122. package/dist/src/table/examples/api-usage/api-usage.js.map +1 -0
  123. package/dist/src/table/examples/api-usage/button.d.ts.map +1 -0
  124. package/dist/src/{ui/components/object-set-table → table}/examples/api-usage/button.js +1 -1
  125. package/dist/src/table/examples/api-usage/button.js.map +1 -0
  126. package/dist/src/{ui/components/object-set-table → table}/examples/computed-columns/computed-columns.d.ts +2 -2
  127. package/dist/src/table/examples/computed-columns/computed-columns.d.ts.map +1 -0
  128. package/dist/src/{ui/components/object-set-table → table}/examples/computed-columns/computed-columns.js +3 -3
  129. package/dist/src/table/examples/computed-columns/computed-columns.js.map +1 -0
  130. package/dist/src/{ui/components/object-set-table → table}/examples/custom-rendering/custom-rendering.d.ts +2 -2
  131. package/dist/src/table/examples/custom-rendering/custom-rendering.d.ts.map +1 -0
  132. package/dist/src/{ui/components/object-set-table → table}/examples/custom-rendering/custom-rendering.js +5 -5
  133. package/dist/src/table/examples/custom-rendering/custom-rendering.js.map +1 -0
  134. package/dist/src/{ui/components/object-set-table → table}/examples/table-editing/table-editing.d.ts +2 -2
  135. package/dist/src/table/examples/table-editing/table-editing.d.ts.map +1 -0
  136. package/dist/src/{ui/components/object-set-table → table}/examples/table-editing/table-editing.js +9 -7
  137. package/dist/src/table/examples/table-editing/table-editing.js.map +1 -0
  138. package/dist/src/table/hooks/useGlobalTableKeyEvents.d.ts.map +1 -0
  139. package/dist/src/{ui/components/object-set-table → table}/hooks/useGlobalTableKeyEvents.js +2 -2
  140. package/dist/src/table/hooks/useGlobalTableKeyEvents.js.map +1 -0
  141. package/dist/src/table/index.d.ts +3 -0
  142. package/dist/src/table/index.d.ts.map +1 -0
  143. package/dist/src/table/index.js +2 -0
  144. package/dist/src/table/index.js.map +1 -0
  145. package/dist/src/table/logic/public-table-api.d.ts.map +1 -0
  146. package/dist/src/table/logic/public-table-api.js.map +1 -0
  147. package/dist/src/table/logic/selection-manager.d.ts.map +1 -0
  148. package/dist/src/{ui/components/object-set-table → table}/logic/selection-manager.js +6 -2
  149. package/dist/src/table/logic/selection-manager.js.map +1 -0
  150. package/dist/src/{ui/components/object-set-table → table}/logic/table-api.d.ts +4 -2
  151. package/dist/src/table/logic/table-api.d.ts.map +1 -0
  152. package/dist/src/{ui/components/object-set-table → table}/logic/table-api.js +52 -4
  153. package/dist/src/table/logic/table-api.js.map +1 -0
  154. package/dist/src/{ui/components/object-set-table → table}/logic/types.d.ts +4 -2
  155. package/dist/src/table/logic/types.d.ts.map +1 -0
  156. package/dist/src/table/logic/types.js.map +1 -0
  157. package/dist/src/table/table/index.d.ts +6 -0
  158. package/dist/src/table/table/index.d.ts.map +1 -0
  159. package/dist/src/table/table/index.js +6 -0
  160. package/dist/src/table/table/index.js.map +1 -0
  161. package/dist/src/table/table/mock-data.d.ts.map +1 -0
  162. package/dist/src/table/table/mock-data.js.map +1 -0
  163. package/dist/src/table/table/object-set-table.d.ts.map +1 -0
  164. package/dist/src/{ui/components/object-set-table → table/table}/object-set-table.js +12 -11
  165. package/dist/src/table/table/object-set-table.js.map +1 -0
  166. package/dist/src/{ui/components/object-set-table → table/table}/types.d.ts +1 -1
  167. package/dist/src/table/table/types.d.ts.map +1 -0
  168. package/dist/src/table/table/types.js.map +1 -0
  169. package/dist/src/table/table/utils.d.ts.map +1 -0
  170. package/dist/src/table/table/utils.js.map +1 -0
  171. package/dist/src/ui/components/data-entry/file-input/file-input.d.ts.map +1 -1
  172. package/dist/src/ui/components/data-entry/file-input/file-input.js +4 -14
  173. package/dist/src/ui/components/data-entry/file-input/file-input.js.map +1 -1
  174. package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.d.ts +2 -1
  175. package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.d.ts.map +1 -1
  176. package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.js +6 -2
  177. package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.js.map +1 -1
  178. package/dist/src/ui/components/data-entry/file-input/types.d.ts +1 -0
  179. package/dist/src/ui/components/data-entry/file-input/types.d.ts.map +1 -1
  180. package/dist/src/ui/components/data-entry/file-input/useUploadFile.d.ts.map +1 -1
  181. package/dist/src/ui/components/data-entry/file-input/useUploadFile.js.map +1 -1
  182. package/dist/src/ui/components/data-entry/file-input/utils.d.ts +1 -0
  183. package/dist/src/ui/components/data-entry/file-input/utils.d.ts.map +1 -1
  184. package/dist/src/ui/components/data-entry/file-input/utils.js +1 -0
  185. package/dist/src/ui/components/data-entry/file-input/utils.js.map +1 -1
  186. package/dist/src/ui/components/data-entry/text-input/text-input.js +1 -1
  187. package/dist/src/ui/components/data-entry/text-input/text-input.js.map +1 -1
  188. package/dist/src/ui/components/index.d.ts +0 -1
  189. package/dist/src/ui/components/index.d.ts.map +1 -1
  190. package/dist/src/ui/components/index.js +0 -2
  191. package/dist/src/ui/components/index.js.map +1 -1
  192. package/dist/style.css +34 -0
  193. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  194. package/package.json +6 -1
  195. package/dist/src/ui/components/object-set-table/examples/api-usage/api-usage.d.ts.map +0 -1
  196. package/dist/src/ui/components/object-set-table/examples/api-usage/api-usage.js.map +0 -1
  197. package/dist/src/ui/components/object-set-table/examples/api-usage/button.d.ts.map +0 -1
  198. package/dist/src/ui/components/object-set-table/examples/api-usage/button.js.map +0 -1
  199. package/dist/src/ui/components/object-set-table/examples/computed-columns/computed-columns.d.ts.map +0 -1
  200. package/dist/src/ui/components/object-set-table/examples/computed-columns/computed-columns.js.map +0 -1
  201. package/dist/src/ui/components/object-set-table/examples/custom-rendering/custom-rendering.d.ts.map +0 -1
  202. package/dist/src/ui/components/object-set-table/examples/custom-rendering/custom-rendering.js.map +0 -1
  203. package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.d.ts.map +0 -1
  204. package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.js.map +0 -1
  205. package/dist/src/ui/components/object-set-table/hooks/useGlobalTableKeyEvents.d.ts.map +0 -1
  206. package/dist/src/ui/components/object-set-table/hooks/useGlobalTableKeyEvents.js.map +0 -1
  207. package/dist/src/ui/components/object-set-table/index.d.ts +0 -6
  208. package/dist/src/ui/components/object-set-table/index.d.ts.map +0 -1
  209. package/dist/src/ui/components/object-set-table/index.js +0 -6
  210. package/dist/src/ui/components/object-set-table/index.js.map +0 -1
  211. package/dist/src/ui/components/object-set-table/logic/public-table-api.d.ts.map +0 -1
  212. package/dist/src/ui/components/object-set-table/logic/public-table-api.js.map +0 -1
  213. package/dist/src/ui/components/object-set-table/logic/selection-manager.d.ts.map +0 -1
  214. package/dist/src/ui/components/object-set-table/logic/selection-manager.js.map +0 -1
  215. package/dist/src/ui/components/object-set-table/logic/table-api.d.ts.map +0 -1
  216. package/dist/src/ui/components/object-set-table/logic/table-api.js.map +0 -1
  217. package/dist/src/ui/components/object-set-table/logic/types.d.ts.map +0 -1
  218. package/dist/src/ui/components/object-set-table/logic/types.js.map +0 -1
  219. package/dist/src/ui/components/object-set-table/mock-data.d.ts.map +0 -1
  220. package/dist/src/ui/components/object-set-table/mock-data.js.map +0 -1
  221. package/dist/src/ui/components/object-set-table/object-set-table.d.ts.map +0 -1
  222. package/dist/src/ui/components/object-set-table/object-set-table.js.map +0 -1
  223. package/dist/src/ui/components/object-set-table/subcomponents/body.d.ts.map +0 -1
  224. package/dist/src/ui/components/object-set-table/subcomponents/body.js.map +0 -1
  225. package/dist/src/ui/components/object-set-table/subcomponents/cells/basic-cell.d.ts.map +0 -1
  226. package/dist/src/ui/components/object-set-table/subcomponents/cells/basic-cell.js.map +0 -1
  227. package/dist/src/ui/components/object-set-table/subcomponents/cells/default-cell.d.ts.map +0 -1
  228. package/dist/src/ui/components/object-set-table/subcomponents/cells/default-cell.js.map +0 -1
  229. package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.d.ts +0 -3
  230. package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.d.ts.map +0 -1
  231. package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.js +0 -7
  232. package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.js.map +0 -1
  233. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/empty-cell.d.ts.map +0 -1
  234. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/empty-cell.js.map +0 -1
  235. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.d.ts.map +0 -1
  236. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.js.map +0 -1
  237. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/use-cell-logic.d.ts.map +0 -1
  238. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/use-cell-logic.js.map +0 -1
  239. package/dist/src/ui/components/object-set-table/subcomponents/cells/row-number-cell.d.ts.map +0 -1
  240. package/dist/src/ui/components/object-set-table/subcomponents/cells/row-number-cell.js.map +0 -1
  241. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.d.ts.map +0 -1
  242. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.js.map +0 -1
  243. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.d.ts.map +0 -1
  244. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.js.map +0 -1
  245. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/index.d.ts.map +0 -1
  246. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/index.js.map +0 -1
  247. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.d.ts.map +0 -1
  248. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.js.map +0 -1
  249. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/string-editor.d.ts.map +0 -1
  250. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/string-editor.js.map +0 -1
  251. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/boolean-render.d.ts.map +0 -1
  252. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/boolean-render.js.map +0 -1
  253. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/get-render-fn.d.ts +0 -4
  254. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/get-render-fn.d.ts.map +0 -1
  255. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/get-render-fn.js.map +0 -1
  256. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.d.ts.map +0 -1
  257. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.js.map +0 -1
  258. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.d.ts.map +0 -1
  259. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.js.map +0 -1
  260. package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-formatter.d.ts.map +0 -1
  261. package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-formatter.js.map +0 -1
  262. package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-getter.d.ts +0 -4
  263. package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-getter.d.ts.map +0 -1
  264. package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-getter.js.map +0 -1
  265. package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-column-config.d.ts +0 -4
  266. package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-column-config.d.ts.map +0 -1
  267. package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-column-config.js.map +0 -1
  268. package/dist/src/ui/components/object-set-table/subcomponents/default-header-renderers/default-header-renderer.d.ts.map +0 -1
  269. package/dist/src/ui/components/object-set-table/subcomponents/default-header-renderers/default-header-renderer.js.map +0 -1
  270. package/dist/src/ui/components/object-set-table/subcomponents/default-sort-columns/default-sort-fns.d.ts +0 -3
  271. package/dist/src/ui/components/object-set-table/subcomponents/default-sort-columns/default-sort-fns.d.ts.map +0 -1
  272. package/dist/src/ui/components/object-set-table/subcomponents/default-sort-columns/default-sort-fns.js.map +0 -1
  273. package/dist/src/ui/components/object-set-table/subcomponents/header/header-cell.d.ts.map +0 -1
  274. package/dist/src/ui/components/object-set-table/subcomponents/header/header-cell.js.map +0 -1
  275. package/dist/src/ui/components/object-set-table/subcomponents/header/header-number-td.d.ts.map +0 -1
  276. package/dist/src/ui/components/object-set-table/subcomponents/header/header-number-td.js.map +0 -1
  277. package/dist/src/ui/components/object-set-table/subcomponents/header.d.ts.map +0 -1
  278. package/dist/src/ui/components/object-set-table/subcomponents/header.js.map +0 -1
  279. package/dist/src/ui/components/object-set-table/subcomponents/rows/render-row.d.ts.map +0 -1
  280. package/dist/src/ui/components/object-set-table/subcomponents/rows/render-row.js.map +0 -1
  281. package/dist/src/ui/components/object-set-table/subcomponents/rows/row-actions.d.ts.map +0 -1
  282. package/dist/src/ui/components/object-set-table/subcomponents/rows/row-actions.js.map +0 -1
  283. package/dist/src/ui/components/object-set-table/subcomponents/rows/table-row.d.ts.map +0 -1
  284. package/dist/src/ui/components/object-set-table/subcomponents/rows/table-row.js +0 -14
  285. package/dist/src/ui/components/object-set-table/subcomponents/rows/table-row.js.map +0 -1
  286. package/dist/src/ui/components/object-set-table/subcomponents/sort-indicator.d.ts.map +0 -1
  287. package/dist/src/ui/components/object-set-table/subcomponents/sort-indicator.js.map +0 -1
  288. package/dist/src/ui/components/object-set-table/subcomponents/table-focus-trap.d.ts.map +0 -1
  289. package/dist/src/ui/components/object-set-table/subcomponents/table-focus-trap.js.map +0 -1
  290. package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.d.ts.map +0 -1
  291. package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.js.map +0 -1
  292. package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.d.ts.map +0 -1
  293. package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.js.map +0 -1
  294. package/dist/src/ui/components/object-set-table/types.d.ts.map +0 -1
  295. package/dist/src/ui/components/object-set-table/types.js.map +0 -1
  296. package/dist/src/ui/components/object-set-table/utils.d.ts.map +0 -1
  297. package/dist/src/ui/components/object-set-table/utils.js.map +0 -1
  298. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/body.js +0 -0
  299. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/basic-cell.d.ts +0 -0
  300. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/render-cell/empty-cell.js +0 -0
  301. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/get-cell-editor-fn.js +0 -0
  302. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/index.d.ts +0 -0
  303. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/index.js +0 -0
  304. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-renderers/get-render-fn.js +0 -0
  305. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-fns/default-cell-value-formatter.d.ts +0 -0
  306. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-fns/default-cell-value-formatter.js +0 -0
  307. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-fns/default-column-config.js +0 -0
  308. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-sort-columns/default-sort-fns.js +0 -0
  309. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/header/header-cell.d.ts +0 -0
  310. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/header/header-number-td.d.ts +0 -0
  311. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/rows/table-row.d.ts +0 -0
  312. /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/table-focus-trap.d.ts +0 -0
  313. /package/dist/src/{ui/components/object-set-table → table}/examples/api-usage/api-usage.d.ts +0 -0
  314. /package/dist/src/{ui/components/object-set-table → table}/examples/api-usage/button.d.ts +0 -0
  315. /package/dist/src/{ui/components/object-set-table → table}/hooks/useGlobalTableKeyEvents.d.ts +0 -0
  316. /package/dist/src/{ui/components/object-set-table → table}/logic/public-table-api.d.ts +0 -0
  317. /package/dist/src/{ui/components/object-set-table → table}/logic/public-table-api.js +0 -0
  318. /package/dist/src/{ui/components/object-set-table → table}/logic/selection-manager.d.ts +0 -0
  319. /package/dist/src/{ui/components/object-set-table → table}/logic/types.js +0 -0
  320. /package/dist/src/{ui/components/object-set-table → table/table}/mock-data.d.ts +0 -0
  321. /package/dist/src/{ui/components/object-set-table → table/table}/mock-data.js +0 -0
  322. /package/dist/src/{ui/components/object-set-table → table/table}/object-set-table.d.ts +0 -0
  323. /package/dist/src/{ui/components/object-set-table → table/table}/types.js +0 -0
  324. /package/dist/src/{ui/components/object-set-table → table/table}/utils.d.ts +0 -0
  325. /package/dist/src/{ui/components/object-set-table → table/table}/utils.js +0 -0
@@ -1,3 +1,4 @@
1
1
  export * from './ui/index.js';
2
2
  export * from './scalars/index.js';
3
+ export * from './table/index.js';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA"}
package/dist/src/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './ui/index.js';
2
2
  export * from './scalars/index.js';
3
+ export * from './table/index.js';
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA"}
@@ -13,7 +13,7 @@ export const FormMessageList = ({ messages, type = 'info', className, ...props }
13
13
  info: 'before:bg-blue-900 dark:before:bg-blue-900',
14
14
  warning: 'before:bg-orange-900 dark:before:bg-orange-900',
15
15
  };
16
- return (_jsx("ul", { className: cn('flex flex-col gap-1', className), ...props, children: messages.map((message) => (_jsx(FormMessage, { as: "li", type: type, className: cn(
16
+ return (_jsx("ul", { "data-type": type, className: cn('flex flex-col gap-1', className), ...props, children: messages.map((message) => (_jsx(FormMessage, { as: "li", type: type, className: cn(
17
17
  // Layout
18
18
  'relative pl-4',
19
19
  // Visual styles
@@ -1 +1 @@
1
- {"version":3,"file":"message-list.js","sourceRoot":"","sources":["../../../../../../src/scalars/components/fragments/form-message/message-list.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAwB,MAAM,mBAAmB,CAAA;AACrE,OAAO,EAAE,EAAE,EAAE,MAAM,kCAAkC,CAAA;AAQrD,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAAE,QAAQ,EAAE,IAAI,GAAG,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAClH,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,CACL,KAAC,WAAW,IAAC,IAAI,EAAE,IAAI,KAAM,KAAK,YAC/B,QAAQ,CAAC,CAAC,CAAC,GACA,CACf,CAAA;IACH,CAAC;IAED,MAAM,WAAW,GAAoC;QACnD,KAAK,EAAE,0CAA0C;QACjD,IAAI,EAAE,4CAA4C;QAClD,OAAO,EAAE,gDAAgD;KAC1D,CAAA;IAED,OAAO,CACL,aAAI,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,KAAM,KAAK,YAC3D,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CACzB,KAAC,WAAW,IAEV,EAAE,EAAC,IAAI,EACP,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,EAAE;YACX,SAAS;YACT,eAAe;YACf,gBAAgB;YAChB,oFAAoF,EACpF,WAAW,CAAC,IAAI,CAAC,CAClB,YAEA,OAAO,IAXH,OAAO,CAYA,CACf,CAAC,GACC,CACN,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"message-list.js","sourceRoot":"","sources":["../../../../../../src/scalars/components/fragments/form-message/message-list.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAwB,MAAM,mBAAmB,CAAA;AACrE,OAAO,EAAE,EAAE,EAAE,MAAM,kCAAkC,CAAA;AAQrD,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAAE,QAAQ,EAAE,IAAI,GAAG,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAClH,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,CACL,KAAC,WAAW,IAAC,IAAI,EAAE,IAAI,KAAM,KAAK,YAC/B,QAAQ,CAAC,CAAC,CAAC,GACA,CACf,CAAA;IACH,CAAC;IAED,MAAM,WAAW,GAAoC;QACnD,KAAK,EAAE,0CAA0C;QACjD,IAAI,EAAE,4CAA4C;QAClD,OAAO,EAAE,gDAAgD;KAC1D,CAAA;IAED,OAAO,CACL,0BAAe,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,KAAM,KAAK,YAC5E,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CACzB,KAAC,WAAW,IAEV,EAAE,EAAC,IAAI,EACP,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,EAAE;YACX,SAAS;YACT,eAAe;YACf,gBAAgB;YAChB,oFAAoF,EACpF,WAAW,CAAC,IAAI,CAAC,CAClB,YAEA,OAAO,IAXH,OAAO,CAYA,CACf,CAAC,GACC,CACN,CAAA;AACH,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { DataType } from '../types.js';
1
+ import type { DataType } from '../table/types.js';
2
2
  declare const TableBody: <T extends DataType>() => import("react/jsx-runtime").JSX.Element;
3
3
  export { TableBody };
4
4
  //# sourceMappingURL=body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../../src/table/components/body.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAIjD,QAAA,MAAM,SAAS,GAAI,CAAC,SAAS,QAAQ,8CAqCpC,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"body.js","sourceRoot":"","sources":["../../../../src/table/components/body.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAA;AAE7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAEhD,MAAM,SAAS,GAAG,GAAuB,EAAE;IACzC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,qBAAqB,EAAK,CAAA;IAEzD,qCAAqC;IACrC,uBAAuB,EAAE,CAAA;IAEzB,MAAM,kBAAkB,GAAG,GAAG,CAAC,MAAM,EAAE,CAAA;IACvC,uHAAuH;IACvH,MAAM,qBAAqB,GAAG,kBAAkB;QAC9C,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,CAAC,GAAG,CAAC;QACpD,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,CAAC,CAAA;IAElD,MAAM,cAAc,GAAG,qBAAqB;QAC1C,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/E,CAAC,CAAC,CAAC,CAAA;IAEL,OAAO,CACL,iBAAO,SAAS,EAAC,iCAAiC,aAC/C,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC/B,KAAC,SAAS,IAAuD,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,IAA5E,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAiC,CACjG,CAAC,EAED,kBAAkB,IAAI,CACrB,KAAC,SAAS,IAAC,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAC,WAAW,GAAG,CAC7G,EAEA,cAAc,GAAG,CAAC;gBACjB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACvD,KAAC,SAAS,IAER,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,EAAE,EAC1D,QAAQ,EAAE,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EACnE,IAAI,EAAC,OAAO,IAHP,KAAK,CAIV,CACH,CAAC,IACE,CACT,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic-cell.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/cells/basic-cell.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAYxE,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from '../../../../../scalars/lib/utils.js';
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
3
  import { useInternalTableState } from '../table-provider/table-provider.js';
4
4
  const TableCellBasic = ({ children, className, ...props }) => {
5
5
  const { config: { minRowHeight }, } = useInternalTableState();
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic-cell.js","sourceRoot":"","sources":["../../../../../src/table/components/cells/basic-cell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAE3E,MAAM,cAAc,GAAyD,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACjH,MAAM,EACJ,MAAM,EAAE,EAAE,YAAY,EAAE,GACzB,GAAG,qBAAqB,EAAE,CAAA;IAE3B,OAAO,CACL,aAAI,SAAS,EAAE,EAAE,CAAC,sBAAsB,EAAE,SAAS,CAAC,KAAM,KAAK,YAC7D,cAAK,SAAS,EAAC,eAAe,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,EAAE,YACjG,QAAQ,GACL,GACH,CACN,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -2,6 +2,7 @@ interface DefaultTableCellProps extends React.HTMLAttributes<HTMLTableCellElemen
2
2
  isSelected: boolean;
3
3
  isEditable: boolean;
4
4
  isEditing?: boolean;
5
+ hasErrors?: boolean;
5
6
  }
6
7
  declare const DefaultTableCell: React.FC<DefaultTableCellProps>;
7
8
  export { DefaultTableCell };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-cell.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/cells/default-cell.tsx"],"names":[],"mappings":"AAGA,UAAU,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;IAChF,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsBrD,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from '../../../../../scalars/lib/utils.js';
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
3
  import { TableCellBasic } from './basic-cell.js';
4
- const DefaultTableCell = ({ children, className, isSelected, isEditable, isEditing = false, ...props }) => {
5
- return (_jsx(TableCellBasic, { tabIndex: 0, ...props, className: cn(className, 'py-0 focus:outline-none'), children: _jsx("div", { className: cn('flex flex-1 items-center border border-transparent', !isEditing && 'py-2', isSelected && (isEditable ? 'border-blue-900' : 'border-gray-400')), children: _jsx("div", { className: "w-full px-[12px] py-2", children: children }) }) }));
4
+ const DefaultTableCell = ({ children, className, isSelected, isEditable, isEditing = false, hasErrors = false, ...props }) => {
5
+ return (_jsx(TableCellBasic, { tabIndex: 0, ...props, className: cn(className, 'py-0 focus:outline-none'), children: _jsx("div", { className: cn('flex flex-1 items-center border border-transparent', !isEditing && 'py-2', isSelected && (isEditable ? (hasErrors ? 'border-red-900' : 'border-blue-900') : 'border-gray-400')), children: _jsx("div", { className: "w-full px-[12px] py-2", children: children }) }) }));
6
6
  };
7
7
  export { DefaultTableCell };
8
8
  //# sourceMappingURL=default-cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-cell.js","sourceRoot":"","sources":["../../../../../src/table/components/cells/default-cell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAShD,MAAM,gBAAgB,GAAoC,CAAC,EACzD,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,GAAG,KAAK,EACjB,SAAS,GAAG,KAAK,EACjB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,cAAc,IAAC,QAAQ,EAAE,CAAC,KAAM,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,yBAAyB,CAAC,YACzF,cACE,SAAS,EAAE,EAAE,CACX,oDAAoD,EACpD,CAAC,SAAS,IAAI,MAAM,EACpB,UAAU,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CACpG,YAED,cAAK,SAAS,EAAC,uBAAuB,YAAE,QAAQ,GAAO,GACnD,GACS,CAClB,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -0,0 +1,6 @@
1
+ interface InformationCellProps {
2
+ rowIndex: number;
3
+ }
4
+ declare const InformationCell: ({ rowIndex }: InformationCellProps) => import("react/jsx-runtime").JSX.Element;
5
+ export { InformationCell };
6
+ //# sourceMappingURL=information-cell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"information-cell.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/cells/information-cell.tsx"],"names":[],"mappings":"AAMA,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,QAAA,MAAM,eAAe,GAAI,cAAc,oBAAoB,4CAkB1D,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { FormMessageList } from '../../../scalars/components/fragments/form-message/message-list.js';
3
+ import { Icon } from '../../../ui/components/icon/icon.js';
4
+ import { Tooltip, TooltipProvider } from '../../../ui/components/tooltip/tooltip.js';
5
+ import { useInternalTableState } from '../table-provider/table-provider.js';
6
+ import { TableCellBasic } from './basic-cell.js';
7
+ const InformationCell = ({ rowIndex }) => {
8
+ const { state: { selectedCellIndex, selectedRowErrors }, } = useInternalTableState();
9
+ return (_jsx(TableCellBasic, { className: "min-w-[40px] max-w-[40px] [&_div]:justify-center", children: _jsx("div", { className: "flex items-center justify-center h-full w-full", children: selectedCellIndex?.row === rowIndex && Array.isArray(selectedRowErrors) && selectedRowErrors.length > 0 && (_jsx(TooltipProvider, { children: _jsx(Tooltip, { content: _jsx(FormMessageList, { messages: selectedRowErrors, type: "error" }), align: "end", side: "bottom", children: _jsx(Icon, { name: "Error", size: 16, className: "text-red-900" }) }) })) }) }));
10
+ };
11
+ export { InformationCell };
12
+ //# sourceMappingURL=information-cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"information-cell.js","sourceRoot":"","sources":["../../../../../src/table/components/cells/information-cell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAA;AACpG,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAA;AAC1D,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAA;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAMhD,MAAM,eAAe,GAAG,CAAC,EAAE,QAAQ,EAAwB,EAAE,EAAE;IAC7D,MAAM,EACJ,KAAK,EAAE,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,GAChD,GAAG,qBAAqB,EAAE,CAAA;IAE3B,OAAO,CACL,KAAC,cAAc,IAAC,SAAS,EAAC,kDAAkD,YAC1E,cAAK,SAAS,EAAC,gDAAgD,YAC5D,iBAAiB,EAAE,GAAG,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,IAAI,CAC1G,KAAC,eAAe,cACd,KAAC,OAAO,IAAC,OAAO,EAAE,KAAC,eAAe,IAAC,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAC,OAAO,GAAG,EAAE,KAAK,EAAC,KAAK,EAAC,IAAI,EAAC,QAAQ,YACxG,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAC,cAAc,GAAG,GAChD,GACM,CACnB,GACG,GACS,CAClB,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { ColumnDef, DataType } from '../../../types.js';
1
+ import type { ColumnDef, DataType } from '../../../table/types.js';
2
2
  interface EmptyCellProps<T> {
3
3
  column: ColumnDef<T>;
4
4
  isSelected: boolean;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/table/components/cells/render-cell/empty-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAGlE,UAAU,cAAc,CAAC,CAAC;IACxB,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAA;CACjE;AAED,QAAA,MAAM,SAAS,GAAI,CAAC,SAAS,QAAQ,EAAE,iCAAiC,cAAc,CAAC,CAAC,CAAC,4CAExF,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-cell.js","sourceRoot":"","sources":["../../../../../../src/table/components/cells/render-cell/empty-cell.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAQrD,MAAM,SAAS,GAAG,CAAqB,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAqB,EAAE,EAAE;IAC3F,OAAO,KAAC,gBAAgB,IAAoB,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,IAAzE,MAAM,CAAC,KAAK,CAAiE,CAAA;AAC7G,CAAC,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { ColumnDef, DataType } from '../../../types.js';
1
+ import type { ColumnDef, DataType } from '../../../table/types.js';
2
2
  interface RenderCellProps<T extends DataType> {
3
3
  rowItem: T;
4
4
  column: ColumnDef<T>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/table/components/cells/render-cell/render-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,SAAS,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAO/E,UAAU,eAAe,CAAC,CAAC,SAAS,QAAQ;IAC1C,OAAO,EAAE,CAAC,CAAA;IACV,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,QAAA,MAAM,UAAU,GAAI,CAAC,SAAS,QAAQ,EAAE,8DAMrC,eAAe,CAAC,CAAC,CAAC,4CA2DpB,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { DefaultTableCell } from '../default-cell.js';
3
- import { Form } from '../../../../../../scalars/components/form/form.js';
4
- import { cn } from '../../../../../../scalars/lib/utils.js';
3
+ import { Form } from '../../../../scalars/components/form/form.js';
4
+ import { cn } from '../../../../scalars/lib/utils.js';
5
5
  import { EmptyCell } from './empty-cell.js';
6
6
  import { useCellLogic } from './use-cell-logic.js';
7
7
  const RenderCell = ({ rowItem, column, rowIndex, columnIndex, renderEmptyCell = false, }) => {
8
- const { config, isThisCellSelected, isCellEditMode, handleCellClick, formRef } = useCellLogic({
8
+ const { config, isThisCellSelected, isCellEditMode, handleCellClick, formRef, hasErrors } = useCellLogic({
9
9
  column,
10
10
  rowIndex,
11
11
  columnIndex,
@@ -28,7 +28,11 @@ const RenderCell = ({ rowItem, column, rowIndex, columnIndex, renderEmptyCell =
28
28
  // get and format the cell value
29
29
  const cellValue = column.valueFormatter?.(column.valueGetter?.(rowItem, cellContext), cellContext);
30
30
  const isThisCellEditMode = isCellEditMode && isThisCellSelected;
31
- return (_jsx(DefaultTableCell, { onClick: handleCellClick, isSelected: isThisCellSelected, isEditable: column.editable ?? false, isEditing: isThisCellEditMode, children: _jsxs(Form, { ref: formRef, onSubmit: () => undefined, submitChangesOnly: true, children: [_jsx("div", { className: cn({ hidden: !isThisCellEditMode }), children: column.renderCellEditor?.(cellValue, () => null, cellContext) }), _jsx("div", { className: cn({ hidden: isThisCellEditMode }), children: column.renderCell?.(cellValue, cellContext) })] }) }, column.field));
31
+ return (_jsx(DefaultTableCell, { onClick: handleCellClick, isSelected: isThisCellSelected, isEditable: column.editable ?? false, isEditing: isThisCellEditMode, hasErrors: hasErrors, children: _jsxs(Form, { ref: formRef, onSubmit: () => undefined, submitChangesOnly: true, extraFormProps: { mode: 'all', shouldUnregister: true }, children: [_jsx("div", { className: cn({ hidden: !isThisCellEditMode },
32
+ // errors and warnings messages
33
+ '[&_[data-type="error"]]:hidden [&_[data-type="warning"]]:hidden',
34
+ // character counter
35
+ '[&_[data-type="character-counter"]]:hidden'), children: column.renderCellEditor?.(cellValue, () => null, cellContext) }), _jsx("div", { className: cn({ hidden: isThisCellEditMode }), children: column.renderCell?.(cellValue, cellContext) })] }) }, column.field));
32
36
  };
33
37
  export { RenderCell };
34
38
  //# sourceMappingURL=render-cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render-cell.js","sourceRoot":"","sources":["../../../../../../src/table/components/cells/render-cell/render-cell.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAA;AAClE,OAAO,EAAE,EAAE,EAAE,MAAM,kCAAkC,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAUlD,MAAM,UAAU,GAAG,CAAqB,EACtC,OAAO,EACP,MAAM,EACN,QAAQ,EACR,WAAW,EACX,eAAe,GAAG,KAAK,GACJ,EAAE,EAAE;IACvB,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,YAAY,CAAC;QACvG,MAAM;QACN,QAAQ;QACR,WAAW;QACX,eAAe;KAChB,CAAC,CAAA;IAEF;;;OAGG;IACH,IAAI,eAAe,EAAE,CAAC;QACpB,OAAO,KAAC,SAAS,IAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB,EAAE,OAAO,EAAE,eAAe,GAAI,CAAA;IAChG,CAAC;IAED,MAAM,WAAW,GAAmB;QAClC,GAAG,EAAE,OAAO;QACZ,MAAM;QACN,QAAQ;QACR,WAAW;QACX,WAAW,EAAE,MAAM;KACpB,CAAA;IAED,gCAAgC;IAChC,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,WAAW,CAAC,CAAA;IAElG,MAAM,kBAAkB,GAAG,cAAc,IAAI,kBAAkB,CAAA;IAE/D,OAAO,CACL,KAAC,gBAAgB,IAEf,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,kBAAkB,EAC9B,UAAU,EAAE,MAAM,CAAC,QAAQ,IAAI,KAAK,EACpC,SAAS,EAAE,kBAAkB,EAC7B,SAAS,EAAE,SAAS,YAEpB,MAAC,IAAI,IACH,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,GAAG,EAAE,CAAC,SAAS,EACzB,iBAAiB,QACjB,cAAc,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,aAEvD,cACE,SAAS,EAAE,EAAE,CACX,EAAE,MAAM,EAAE,CAAC,kBAAkB,EAAE;oBAC/B,+BAA+B;oBAC/B,iEAAiE;oBACjE,oBAAoB;oBACpB,4CAA4C,CAC7C,YAEA,MAAM,CAAC,gBAAgB,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,GAC1D,EACN,cAAK,SAAS,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC,YAAG,MAAM,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,GAAO,IAClG,IAzBF,MAAM,CAAC,KAAK,CA0BA,CACpB,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { ColumnDef, DataType } from '../../../types.js';
1
+ import type { ColumnDef, DataType } from '../../../table/types.js';
2
2
  interface UseCellLogicProps<T extends DataType> {
3
3
  column: ColumnDef<T>;
4
4
  rowIndex: number;
@@ -6,11 +6,12 @@ interface UseCellLogicProps<T extends DataType> {
6
6
  renderEmptyCell?: boolean;
7
7
  }
8
8
  declare const useCellLogic: <T extends DataType>({ column, rowIndex, columnIndex, renderEmptyCell, }: UseCellLogicProps<T>) => {
9
- config: import("../../../types.js").ObjectSetTableConfig<T>;
9
+ config: import("../../../table/types.js").ObjectSetTableConfig<T>;
10
10
  isThisCellSelected: boolean;
11
11
  isCellEditMode: boolean;
12
12
  handleCellClick: (event: React.MouseEvent<HTMLTableCellElement>) => void;
13
13
  formRef: import("react").RefObject<import("react-hook-form").UseFormReturn> | null;
14
+ hasErrors: boolean;
14
15
  };
15
16
  export { useCellLogic };
16
17
  //# sourceMappingURL=use-cell-logic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-cell-logic.d.ts","sourceRoot":"","sources":["../../../../../../src/table/components/cells/render-cell/use-cell-logic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAIlE,UAAU,iBAAiB,CAAC,CAAC,SAAS,QAAQ;IAC5C,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AACD,QAAA,MAAM,YAAY,GAAI,CAAC,SAAS,QAAQ,EAAE,qDAKvC,iBAAiB,CAAC,CAAC,CAAC;;;;6BAcK,KAAK,CAAC,UAAU,CAAC,oBAAoB,CAAC;;;CAyCjE,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import { useMemo } from 'react';
2
- import { isCellEqual } from '../../../utils.js';
2
+ import { isCellEqual } from '../../../table/utils.js';
3
3
  import { useInternalTableState } from '../../table-provider/table-provider.js';
4
4
  const useCellLogic = ({ column, rowIndex, columnIndex, renderEmptyCell = false, }) => {
5
- const { config, state: { selectedCellIndex, isCellEditMode }, api, } = useInternalTableState();
5
+ const { config, state: { selectedCellIndex, isCellEditMode, selectedRowErrors }, api, } = useInternalTableState();
6
6
  const currentCellIndex = {
7
7
  row: rowIndex,
8
8
  column: columnIndex,
@@ -19,7 +19,10 @@ const useCellLogic = ({ column, rowIndex, columnIndex, renderEmptyCell = false,
19
19
  // if a cell is being edited but the cell being clicked is not the same
20
20
  // we need to save it before exiting edit mode and selecting a new cell
21
21
  if (api.isEditing()) {
22
- void api.exitCellEditMode(true);
22
+ void api.exitCellEditMode(true).then(() => {
23
+ api.selection.selectCell(rowIndex, columnIndex);
24
+ });
25
+ return;
23
26
  }
24
27
  if (event.detail === 2 && column.editable && !renderEmptyCell) {
25
28
  api.enterCellEditMode(rowIndex, columnIndex);
@@ -32,12 +35,14 @@ const useCellLogic = ({ column, rowIndex, columnIndex, renderEmptyCell = false,
32
35
  return handler;
33
36
  }, [api, selectedCellIndex, rowIndex, columnIndex, column.editable, renderEmptyCell]);
34
37
  const formRef = renderEmptyCell ? null : api._getState().dataFormReferences[rowIndex]?.[columnIndex];
38
+ const hasErrors = selectedCellIndex?.row === rowIndex && Array.isArray(selectedRowErrors) && selectedRowErrors.length > 0;
35
39
  return {
36
40
  config,
37
41
  isThisCellSelected,
38
42
  isCellEditMode,
39
43
  handleCellClick,
40
44
  formRef,
45
+ hasErrors,
41
46
  };
42
47
  };
43
48
  export { useCellLogic };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-cell-logic.js","sourceRoot":"","sources":["../../../../../../src/table/components/cells/render-cell/use-cell-logic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAA;AAQ9E,MAAM,YAAY,GAAG,CAAqB,EACxC,MAAM,EACN,QAAQ,EACR,WAAW,EACX,eAAe,GAAG,KAAK,GACF,EAAE,EAAE;IACzB,MAAM,EACJ,MAAM,EACN,KAAK,EAAE,EAAE,iBAAiB,EAAE,cAAc,EAAE,iBAAiB,EAAE,EAC/D,GAAG,GACJ,GAAG,qBAAqB,EAAK,CAAA;IAE9B,MAAM,gBAAgB,GAAG;QACvB,GAAG,EAAE,QAAQ;QACb,MAAM,EAAE,WAAW;KACpB,CAAA;IACD,MAAM,kBAAkB,GAAG,WAAW,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAAA;IAE3E,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,EAAE;QACnC,MAAM,OAAO,GAAG,CAAC,KAA6C,EAAE,EAAE;YAChE,qDAAqD;YACrD,IAAI,GAAG,CAAC,SAAS,EAAE,IAAI,iBAAiB,EAAE,GAAG,KAAK,QAAQ,IAAI,iBAAiB,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;gBACvG,OAAM;YACR,CAAC;YAED,+EAA+E;YAC/E,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;gBACxD,uEAAuE;gBACvE,uEAAuE;gBACvE,IAAI,GAAG,CAAC,SAAS,EAAE,EAAE,CAAC;oBACpB,KAAK,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;wBACxC,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAA;oBACjD,CAAC,CAAC,CAAA;oBACF,OAAM;gBACR,CAAC;gBAED,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,QAAQ,IAAI,CAAC,eAAe,EAAE,CAAC;oBAC9D,GAAG,CAAC,iBAAiB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAA;gBAC9C,CAAC;qBAAM,CAAC;oBACN,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAA;gBACjD,CAAC;YACH,CAAC;QACH,CAAC,CAAA;QAED,OAAO,OAAO,CAAA;IAChB,CAAC,EAAE,CAAC,GAAG,EAAE,iBAAiB,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAA;IAErF,MAAM,OAAO,GAAG,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,CAAA;IAEpG,MAAM,SAAS,GACb,iBAAiB,EAAE,GAAG,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAA;IAEzG,OAAO;QACL,MAAM;QACN,kBAAkB;QAClB,cAAc;QACd,eAAe;QACf,OAAO;QACP,SAAS;KACV,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -2,6 +2,7 @@ interface RowNumberCellProps {
2
2
  index: number;
3
3
  handleSelectRowOnClick?: (event: React.MouseEvent<HTMLTableCellElement>) => void;
4
4
  selected: boolean;
5
+ hasErrors: boolean;
5
6
  }
6
7
  declare const RowNumberCell: React.FC<RowNumberCellProps>;
7
8
  export { RowNumberCell };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-number-cell.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/cells/row-number-cell.tsx"],"names":[],"mappings":"AAIA,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAA;IAChF,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyB/C,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -1,15 +1,15 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from '../../../../../scalars/lib/utils.js';
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
3
  import { useInternalTableState } from '../table-provider/table-provider.js';
4
4
  import { TableCellBasic } from './basic-cell.js';
5
- const RowNumberCell = ({ index, handleSelectRowOnClick, selected }) => {
5
+ const RowNumberCell = ({ index, handleSelectRowOnClick, selected, hasErrors }) => {
6
6
  const { config: { showRowNumbers, allowRowSelection, minRowHeight }, } = useInternalTableState();
7
7
  if (!showRowNumbers && !allowRowSelection) {
8
8
  // if allow selection is enabled we need to show the row anyways
9
9
  // to allow the user to select the row
10
10
  return null;
11
11
  }
12
- return (_jsx(TableCellBasic, { className: cn('select-none border-r border-gray-300 text-center', allowRowSelection && 'cursor-pointer', selected && 'bg-blue-900 text-white'), onClick: handleSelectRowOnClick, children: _jsx("div", { className: "flex flex-1 items-center justify-center py-4", style: { minHeight: minRowHeight }, children: showRowNumbers ? index : '' }) }));
12
+ return (_jsx(TableCellBasic, { className: cn('select-none border-r border-gray-300 text-center', allowRowSelection && 'cursor-pointer', selected && !hasErrors && 'bg-blue-900 text-white'), onClick: handleSelectRowOnClick, children: _jsx("div", { className: "flex flex-1 items-center justify-center py-4", style: { minHeight: minRowHeight }, children: showRowNumbers ? index : '' }) }));
13
13
  };
14
14
  export { RowNumberCell };
15
15
  //# sourceMappingURL=row-number-cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-number-cell.js","sourceRoot":"","sources":["../../../../../src/table/components/cells/row-number-cell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAShD,MAAM,aAAa,GAAiC,CAAC,EAAE,KAAK,EAAE,sBAAsB,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;IAC7G,MAAM,EACJ,MAAM,EAAE,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,GAC5D,GAAG,qBAAqB,EAAE,CAAA;IAE3B,IAAI,CAAC,cAAc,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAC1C,gEAAgE;QAChE,sCAAsC;QACtC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,CACL,KAAC,cAAc,IACb,SAAS,EAAE,EAAE,CACX,kDAAkD,EAClD,iBAAiB,IAAI,gBAAgB,EACrC,QAAQ,IAAI,CAAC,SAAS,IAAI,wBAAwB,CACnD,EACD,OAAO,EAAE,sBAAsB,YAE/B,cAAK,SAAS,EAAC,8CAA8C,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,YAC7F,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GACxB,GACS,CAClB,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import { type BooleanFieldProps } from '../../../../../scalars/components/boolean-field/boolean-field.js';
2
- import type { CellContext, DataType } from '../../types.js';
1
+ import { type BooleanFieldProps } from '../../../scalars/components/boolean-field/boolean-field.js';
2
+ import type { CellContext, DataType } from '../../table/types.js';
3
3
  export declare const booleanCellEditorFactory: <T extends DataType>(booleanFieldProps: Omit<BooleanFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
4
4
  //# sourceMappingURL=boolean-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/boolean-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4DAA4D,CAAA;AAEjH,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,QAAQ,EACzD,mBAAmB,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAEvC,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAiC1G,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { BooleanField } from '../../../../../scalars/components/boolean-field/boolean-field.js';
3
- import { cn } from '../../../../../scalars/lib/utils.js';
2
+ import { BooleanField } from '../../../scalars/components/boolean-field/boolean-field.js';
3
+ import { cn } from '../../../scalars/lib/utils.js';
4
4
  export const booleanCellEditorFactory = (booleanFieldProps) => {
5
5
  const BooleanCellEditor = (value, onChange, context) => {
6
6
  const booleanValue = (() => {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/boolean-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAA0B,MAAM,4DAA4D,CAAA;AACjH,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,iBAAyE,EACzE,EAAE;IACF,MAAM,iBAAiB,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QAC3G,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE;YACzB,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;gBAC/B,OAAO,KAAK,CAAA;YACd,CAAC;iBAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBACrC,OAAO,KAAK,KAAK,MAAM,CAAA;YACzB,CAAC;YAED,OAAO,OAAO,CAAC,KAAK,CAAC,CAAA;QACvB,CAAC,CAAC,EAAE,CAAA;QAEJ,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC,uBAAuB,EAAE;gBACrC,gBAAgB,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;gBACnD,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;aAChD,CAAC,YAEF,KAAC,YAAY,IACX,SAAS,QACT,QAAQ,EAAE,KAAK,EACf,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KACtB,iBAAiB,EACrB,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,CAAC,KAAc,EAAE,EAAE;oBAC3B,QAAQ,CAAC,KAAK,CAAC,CAAA;gBACjB,CAAC,GACD,GACE,CACP,CAAA;IACH,CAAC,CAAA;IAED,OAAO,iBAAiB,CAAA;AAC1B,CAAC,CAAA"}
@@ -1,3 +1,3 @@
1
- import type { ColumnType, DataType, RenderCellEditorFn } from '../../types.js';
1
+ import type { ColumnType, DataType, RenderCellEditorFn } from '../../table/types.js';
2
2
  export declare const getCellEditorFn: <T extends DataType = DataType>(type?: ColumnType) => RenderCellEditorFn<T, unknown>;
3
3
  //# sourceMappingURL=get-cell-editor-fn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-cell-editor-fn.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/get-cell-editor-fn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAKpF,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,UAAU,KAAG,kBAAkB,CAAC,CAAC,EAAE,OAAO,CAa/G,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-cell-editor-fn.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/get-cell-editor-fn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAE5D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAgC,IAAiB,EAAkC,EAAE;IAClH,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,QAAQ;YACX,OAAO,uBAAuB,CAAC,EAAE,CAAC,CAAA;QACpC,KAAK,QAAQ;YACX,OAAO,uBAAuB,CAAC,EAAE,CAAC,CAAA;QACpC,KAAK,SAAS;YACZ,OAAO,wBAAwB,CAAC,EAAE,CAAC,CAAA;QACrC,KAAK,SAAS;YACZ,OAAO,uBAAuB,CAAC,EAAE,CAAC,CAAA;QACpC;YACE,OAAO,uBAAuB,CAAC,EAAE,CAAC,CAAA;IACtC,CAAC;AACH,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { NumberFieldProps } from '../../../../../scalars/components/number-field/types.js';
2
- import type { CellContext, DataType } from '../../types.js';
1
+ import type { NumberFieldProps } from '../../../scalars/components/number-field/types.js';
2
+ import type { CellContext, DataType } from '../../table/types.js';
3
3
  export declare const numberCellEditorFactory: <T extends DataType>(numberFieldProps: Omit<NumberFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
4
4
  //# sourceMappingURL=number-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/number-editor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAA;AACzF,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,QAAQ,EACxD,kBAAkB,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAEtC,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,OAAO,WAAW,WAAW,CAAC,CAAC,CAAC,4CAmB5G,CAAA"}
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { NumberField } from '../../../../../scalars/components/number-field/number-field.js';
2
+ import { NumberField } from '../../../scalars/components/number-field/number-field.js';
3
3
  export const numberCellEditorFactory = (numberFieldProps) => {
4
4
  const NumberCellEditor = (value, onChange, context) => {
5
5
  const numericValue = typeof value === 'number' ? value : Number(value) || 0;
6
- return (_jsx(NumberField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...numberFieldProps, value: numericValue, onChange: (event) => {
6
+ return (_jsx(NumberField, { name: context.column.field, autoComplete: "off", className: "max-w-full", autoFocus: true, ...numberFieldProps, value: numericValue, onChange: (event) => {
7
7
  onChange(Number(event.target.value));
8
8
  } }));
9
9
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/number-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0DAA0D,CAAA;AAItF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,gBAAuE,EACvE,EAAE;IACF,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAAE,QAAwC,EAAE,OAAuB,EAAE,EAAE;QAC7G,MAAM,YAAY,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QAE3E,OAAO,CACL,KAAC,WAAW,IACV,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,YAAY,EAAC,KAAK,EAClB,SAAS,EAAC,YAAY,EACtB,SAAS,WACL,gBAAgB,EACpB,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;gBAClB,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;YACtC,CAAC,GACD,CACH,CAAA;IACH,CAAC,CAAA;IAED,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { type StringFieldProps } from '../../../../../scalars/components/string-field/string-field.js';
2
- import type { CellContext, DataType } from '../../types.js';
1
+ import { type StringFieldProps } from '../../../scalars/components/string-field/string-field.js';
2
+ import type { CellContext, DataType } from '../../table/types.js';
3
3
  export declare const stringCellEditorFactory: <T extends DataType>(stringFieldProps: Omit<StringFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
4
4
  //# sourceMappingURL=string-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/string-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,0DAA0D,CAAA;AAC7G,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,QAAQ,EACxD,kBAAkB,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAEtC,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAkBzG,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { StringField } from '../../../../../scalars/components/string-field/string-field.js';
2
+ import { StringField } from '../../../scalars/components/string-field/string-field.js';
3
3
  export const stringCellEditorFactory = (stringFieldProps) => {
4
4
  const StringCellEditor = (value, onChange, context) => {
5
5
  const stringValue = typeof value === 'string' ? value : String(value ?? '');
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/string-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,0DAA0D,CAAA;AAG7G,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,gBAAuE,EACvE,EAAE;IACF,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QAC1G,MAAM,WAAW,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;QAE3E,OAAO,CACL,KAAC,WAAW,IACV,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,EACtB,SAAS,WACL,gBAAgB,EACpB,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gBACd,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YAC1B,CAAC,GACD,CACH,CAAA;IACH,CAAC,CAAA;IAED,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { CellContext, DataType } from '../../types.js';
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
2
  declare const renderBooleanCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
3
  export { renderBooleanCell };
4
4
  //# sourceMappingURL=boolean-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/boolean-render.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,iBAAiB,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAehG,CAAA;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from '../../../../../scalars/lib/utils.js';
3
- import { Checkbox } from '../../../data-entry/checkbox/checkbox.js';
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
+ import { Checkbox } from '../../../ui/components/data-entry/checkbox/checkbox.js';
4
4
  const renderBooleanCell = (value, context) => {
5
5
  return (_jsx("div", { className: cn({
6
6
  'justify-end': context.column.align === 'right',
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/boolean-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,wDAAwD,CAAA;AAGjF,MAAM,iBAAiB,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IACnG,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CACX;YACE,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC/C,gBAAgB,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YACnD,eAAe,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SAC1E,EACD,aAAa,CACd,YAED,KAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,EAAE,QAAQ,EAAE,IAAI,GAAI,GACzD,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { ColumnType, RenderCellFn } from '../../table/types.js';
2
+ declare const getRenderFn: <T>(type: ColumnType | undefined) => RenderCellFn<T>;
3
+ export { getRenderFn };
4
+ //# sourceMappingURL=get-render-fn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-render-fn.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/get-render-fn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKpE,QAAA,MAAM,WAAW,GAAI,CAAC,EAAE,MAAM,UAAU,GAAG,SAAS,KAAG,YAAY,CAAC,CAAC,CAapE,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-render-fn.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/get-render-fn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,MAAM,WAAW,GAAG,CAAI,IAA4B,EAAmB,EAAE;IACvE,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,QAAQ;YACX,OAAO,cAAc,CAAA;QACvB,KAAK,QAAQ;YACX,OAAO,gBAAgB,CAAA;QACzB,KAAK,SAAS;YACZ,OAAO,iBAAiB,CAAA;QAC1B,KAAK,SAAS;YACZ,OAAO,cAAc,CAAA;QACvB;YACE,OAAO,cAAc,CAAA;IACzB,CAAC;AACH,CAAC,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { CellContext, DataType } from '../../types.js';
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
2
  declare const renderNumberCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
3
  export { renderNumberCell };
4
4
  //# sourceMappingURL=number-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/number-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,gBAAgB,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAe/F,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from '../../../../../scalars/lib/utils.js';
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
3
  const renderNumberCell = (value, context) => {
4
4
  return (_jsx("div", { className: cn({
5
5
  'text-right': context.column.align === 'right',
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/number-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,gBAAgB,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAClG,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CACX;YACE,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,EACD,eAAe,CAChB,YAEA,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { CellContext, DataType } from '../../types.js';
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
2
  declare const renderTextCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
3
  export { renderTextCell };
4
4
  //# sourceMappingURL=text-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/text-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,cAAc,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAY7F,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from '../../../../../scalars/lib/utils.js';
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
3
  const renderTextCell = (value, context) => {
4
4
  return (_jsx("div", { className: cn({
5
5
  'text-right': context.column.align === 'right',
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/text-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,cAAc,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAChG,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC;YACZ,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO;YAC9C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ;YAChD,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;SACtE,CAAC,YAED,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GACpB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-cell-value-formatter.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-fns/default-cell-value-formatter.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,qBAAqB,GAAI,OAAO,OAAO,WAQ5C,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-cell-value-formatter.js","sourceRoot":"","sources":["../../../../../src/table/components/default-fns/default-cell-value-formatter.ts"],"names":[],"mappings":"AAAA,MAAM,qBAAqB,GAAG,CAAC,KAAc,EAAE,EAAE;IAC/C,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QAC1C,OAAO,EAAE,CAAA;IACX,CAAC;IAED,iFAAiF;IACjF,yEAAyE;IACzE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAA;AACtB,CAAC,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { ValueGetterFn } from '../../table/types.js';
2
+ declare const defaultValueGetter: ValueGetterFn<any>;
3
+ export { defaultValueGetter };
4
+ //# sourceMappingURL=default-cell-value-getter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-cell-value-getter.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-fns/default-cell-value-getter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAGtE,QAAA,MAAM,kBAAkB,EAElB,aAAa,CAAC,GAAG,CAAC,CAAA;AAExB,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import { getColumnValue } from '../../utils.js';
1
+ import { getColumnValue } from '../../table/utils.js';
2
2
  const defaultValueGetter = ((row, context) => {
3
3
  return getColumnValue(row, context.column.field);
4
4
  });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-cell-value-getter.js","sourceRoot":"","sources":["../../../../../src/table/components/default-fns/default-cell-value-getter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,MAAM,kBAAkB,GAAG,CAAC,CAAI,GAAM,EAAE,OAAuB,EAAW,EAAE;IAC1E,OAAO,cAAc,CAAC,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AAClD,CAAC,CAAuB,CAAA;AAExB,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { ColumnAlignment, ColumnType } from '../../table/types.js';
2
+ declare const defaultColumnAlignment: (columnType: ColumnType) => ColumnAlignment;
3
+ export { defaultColumnAlignment };
4
+ //# sourceMappingURL=default-column-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-column-config.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-fns/default-column-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEvE,QAAA,MAAM,sBAAsB,GAAI,YAAY,UAAU,KAAG,eAUxD,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-column-config.js","sourceRoot":"","sources":["../../../../../src/table/components/default-fns/default-column-config.ts"],"names":[],"mappings":"AAEA,MAAM,sBAAsB,GAAG,CAAC,UAAsB,EAAmB,EAAE;IACzE,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,QAAQ;YACX,OAAO,OAAO,CAAA;QAEhB,KAAK,QAAQ,CAAC;QACd,KAAK,SAAS,CAAC;QACf;YACE,OAAO,MAAM,CAAA;IACjB,CAAC;AACH,CAAC,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { CellContext } from '../../types.js';
1
+ import type { CellContext } from '../../table/types.js';
2
2
  declare const defaultHeaderRenderer: <T, V = string>(value: V, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
3
  export { defaultHeaderRenderer };
4
4
  //# sourceMappingURL=default-header-renderer.d.ts.map