@powerhousedao/document-engineering 1.29.0 → 1.31.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 (290) hide show
  1. package/dist/src/scalars/components/phone-number-field/index.d.ts +3 -0
  2. package/dist/src/scalars/components/phone-number-field/index.d.ts.map +1 -0
  3. package/dist/src/scalars/components/phone-number-field/index.js +2 -0
  4. package/dist/src/scalars/components/phone-number-field/index.js.map +1 -0
  5. package/dist/src/scalars/components/phone-number-field/phone-number-field.d.ts +3 -0
  6. package/dist/src/scalars/components/phone-number-field/phone-number-field.d.ts.map +1 -0
  7. package/dist/src/scalars/components/phone-number-field/phone-number-field.js +33 -0
  8. package/dist/src/scalars/components/phone-number-field/phone-number-field.js.map +1 -0
  9. package/dist/src/scalars/components/phone-number-field/types.d.ts +5 -0
  10. package/dist/src/scalars/components/phone-number-field/types.d.ts.map +1 -0
  11. package/dist/src/scalars/components/phone-number-field/types.js +2 -0
  12. package/dist/src/scalars/components/phone-number-field/types.js.map +1 -0
  13. package/dist/src/table/components/default-cell-editors/aid-editor.d.ts +4 -0
  14. package/dist/src/table/components/default-cell-editors/aid-editor.d.ts.map +1 -0
  15. package/dist/src/table/components/default-cell-editors/aid-editor.js +12 -0
  16. package/dist/src/table/components/default-cell-editors/aid-editor.js.map +1 -0
  17. package/dist/src/table/components/default-cell-editors/amount-editor.d.ts +4 -0
  18. package/dist/src/table/components/default-cell-editors/amount-editor.d.ts.map +1 -0
  19. package/dist/src/table/components/default-cell-editors/amount-editor.js +15 -0
  20. package/dist/src/table/components/default-cell-editors/amount-editor.js.map +1 -0
  21. package/dist/src/table/components/default-cell-editors/boolean-editor.d.ts +1 -1
  22. package/dist/src/table/components/default-cell-editors/boolean-editor.d.ts.map +1 -1
  23. package/dist/src/table/components/default-cell-editors/boolean-editor.js +1 -1
  24. package/dist/src/table/components/default-cell-editors/boolean-editor.js.map +1 -1
  25. package/dist/src/table/components/default-cell-editors/country-editor.d.ts +4 -0
  26. package/dist/src/table/components/default-cell-editors/country-editor.d.ts.map +1 -0
  27. package/dist/src/table/components/default-cell-editors/country-editor.js +12 -0
  28. package/dist/src/table/components/default-cell-editors/country-editor.js.map +1 -0
  29. package/dist/src/table/components/default-cell-editors/currency-editor.d.ts +4 -0
  30. package/dist/src/table/components/default-cell-editors/currency-editor.d.ts.map +1 -0
  31. package/dist/src/table/components/default-cell-editors/currency-editor.js +12 -0
  32. package/dist/src/table/components/default-cell-editors/currency-editor.js.map +1 -0
  33. package/dist/src/table/components/default-cell-editors/date-editor.d.ts +4 -0
  34. package/dist/src/table/components/default-cell-editors/date-editor.d.ts.map +1 -0
  35. package/dist/src/table/components/default-cell-editors/date-editor.js +12 -0
  36. package/dist/src/table/components/default-cell-editors/date-editor.js.map +1 -0
  37. package/dist/src/table/components/default-cell-editors/datetime-editor.d.ts +4 -0
  38. package/dist/src/table/components/default-cell-editors/datetime-editor.d.ts.map +1 -0
  39. package/dist/src/table/components/default-cell-editors/datetime-editor.js +12 -0
  40. package/dist/src/table/components/default-cell-editors/datetime-editor.js.map +1 -0
  41. package/dist/src/table/components/default-cell-editors/email-editor.d.ts +4 -0
  42. package/dist/src/table/components/default-cell-editors/email-editor.d.ts.map +1 -0
  43. package/dist/src/table/components/default-cell-editors/email-editor.js +12 -0
  44. package/dist/src/table/components/default-cell-editors/email-editor.js.map +1 -0
  45. package/dist/src/table/components/default-cell-editors/enum-editor.d.ts +4 -0
  46. package/dist/src/table/components/default-cell-editors/enum-editor.d.ts.map +1 -0
  47. package/dist/src/table/components/default-cell-editors/enum-editor.js +12 -0
  48. package/dist/src/table/components/default-cell-editors/enum-editor.js.map +1 -0
  49. package/dist/src/table/components/default-cell-editors/get-cell-editor-fn.d.ts.map +1 -1
  50. package/dist/src/table/components/default-cell-editors/get-cell-editor-fn.js +44 -8
  51. package/dist/src/table/components/default-cell-editors/get-cell-editor-fn.js.map +1 -1
  52. package/dist/src/table/components/default-cell-editors/index.d.ts +3 -3
  53. package/dist/src/table/components/default-cell-editors/index.d.ts.map +1 -1
  54. package/dist/src/table/components/default-cell-editors/index.js +3 -3
  55. package/dist/src/table/components/default-cell-editors/index.js.map +1 -1
  56. package/dist/src/table/components/default-cell-editors/number-editor.d.ts +1 -1
  57. package/dist/src/table/components/default-cell-editors/number-editor.d.ts.map +1 -1
  58. package/dist/src/table/components/default-cell-editors/number-editor.js +1 -1
  59. package/dist/src/table/components/default-cell-editors/number-editor.js.map +1 -1
  60. package/dist/src/table/components/default-cell-editors/oid-editor.d.ts +4 -0
  61. package/dist/src/table/components/default-cell-editors/oid-editor.d.ts.map +1 -0
  62. package/dist/src/table/components/default-cell-editors/oid-editor.js +12 -0
  63. package/dist/src/table/components/default-cell-editors/oid-editor.js.map +1 -0
  64. package/dist/src/table/components/default-cell-editors/phid-editor.d.ts +4 -0
  65. package/dist/src/table/components/default-cell-editors/phid-editor.d.ts.map +1 -0
  66. package/dist/src/table/components/default-cell-editors/phid-editor.js +12 -0
  67. package/dist/src/table/components/default-cell-editors/phid-editor.js.map +1 -0
  68. package/dist/src/table/components/default-cell-editors/string-editor.d.ts +1 -1
  69. package/dist/src/table/components/default-cell-editors/string-editor.d.ts.map +1 -1
  70. package/dist/src/table/components/default-cell-editors/string-editor.js +1 -1
  71. package/dist/src/table/components/default-cell-editors/string-editor.js.map +1 -1
  72. package/dist/src/table/components/default-cell-editors/time-editor.d.ts +4 -0
  73. package/dist/src/table/components/default-cell-editors/time-editor.d.ts.map +1 -0
  74. package/dist/src/table/components/default-cell-editors/time-editor.js +12 -0
  75. package/dist/src/table/components/default-cell-editors/time-editor.js.map +1 -0
  76. package/dist/src/table/components/default-cell-editors/url-editor.d.ts +4 -0
  77. package/dist/src/table/components/default-cell-editors/url-editor.d.ts.map +1 -0
  78. package/dist/src/table/components/default-cell-editors/url-editor.js +12 -0
  79. package/dist/src/table/components/default-cell-editors/url-editor.js.map +1 -0
  80. package/dist/src/table/components/default-cell-renderers/aid-render.d.ts +4 -0
  81. package/dist/src/table/components/default-cell-renderers/aid-render.d.ts.map +1 -0
  82. package/dist/src/table/components/default-cell-renderers/aid-render.js +11 -0
  83. package/dist/src/table/components/default-cell-renderers/aid-render.js.map +1 -0
  84. package/dist/src/table/components/default-cell-renderers/amount-render.d.ts +4 -0
  85. package/dist/src/table/components/default-cell-renderers/amount-render.d.ts.map +1 -0
  86. package/dist/src/table/components/default-cell-renderers/amount-render.js +11 -0
  87. package/dist/src/table/components/default-cell-renderers/amount-render.js.map +1 -0
  88. package/dist/src/table/components/default-cell-renderers/country-render.d.ts +4 -0
  89. package/dist/src/table/components/default-cell-renderers/country-render.d.ts.map +1 -0
  90. package/dist/src/table/components/default-cell-renderers/country-render.js +11 -0
  91. package/dist/src/table/components/default-cell-renderers/country-render.js.map +1 -0
  92. package/dist/src/table/components/default-cell-renderers/currency-render.d.ts +4 -0
  93. package/dist/src/table/components/default-cell-renderers/currency-render.d.ts.map +1 -0
  94. package/dist/src/table/components/default-cell-renderers/currency-render.js +11 -0
  95. package/dist/src/table/components/default-cell-renderers/currency-render.js.map +1 -0
  96. package/dist/src/table/components/default-cell-renderers/date-render.d.ts +4 -0
  97. package/dist/src/table/components/default-cell-renderers/date-render.d.ts.map +1 -0
  98. package/dist/src/table/components/default-cell-renderers/date-render.js +24 -0
  99. package/dist/src/table/components/default-cell-renderers/date-render.js.map +1 -0
  100. package/dist/src/table/components/default-cell-renderers/datetime-render.d.ts +4 -0
  101. package/dist/src/table/components/default-cell-renderers/datetime-render.d.ts.map +1 -0
  102. package/dist/src/table/components/default-cell-renderers/datetime-render.js +24 -0
  103. package/dist/src/table/components/default-cell-renderers/datetime-render.js.map +1 -0
  104. package/dist/src/table/components/default-cell-renderers/email-render.d.ts +4 -0
  105. package/dist/src/table/components/default-cell-renderers/email-render.d.ts.map +1 -0
  106. package/dist/src/table/components/default-cell-renderers/email-render.js +11 -0
  107. package/dist/src/table/components/default-cell-renderers/email-render.js.map +1 -0
  108. package/dist/src/table/components/default-cell-renderers/enum-render.d.ts +4 -0
  109. package/dist/src/table/components/default-cell-renderers/enum-render.d.ts.map +1 -0
  110. package/dist/src/table/components/default-cell-renderers/enum-render.js +11 -0
  111. package/dist/src/table/components/default-cell-renderers/enum-render.js.map +1 -0
  112. package/dist/src/table/components/default-cell-renderers/get-render-fn.d.ts.map +1 -1
  113. package/dist/src/table/components/default-cell-renderers/get-render-fn.js +36 -0
  114. package/dist/src/table/components/default-cell-renderers/get-render-fn.js.map +1 -1
  115. package/dist/src/table/components/default-cell-renderers/oid-render.d.ts +4 -0
  116. package/dist/src/table/components/default-cell-renderers/oid-render.d.ts.map +1 -0
  117. package/dist/src/table/components/default-cell-renderers/oid-render.js +11 -0
  118. package/dist/src/table/components/default-cell-renderers/oid-render.js.map +1 -0
  119. package/dist/src/table/components/default-cell-renderers/phid-render.d.ts +4 -0
  120. package/dist/src/table/components/default-cell-renderers/phid-render.d.ts.map +1 -0
  121. package/dist/src/table/components/default-cell-renderers/phid-render.js +11 -0
  122. package/dist/src/table/components/default-cell-renderers/phid-render.js.map +1 -0
  123. package/dist/src/table/components/default-cell-renderers/time-render.d.ts +4 -0
  124. package/dist/src/table/components/default-cell-renderers/time-render.d.ts.map +1 -0
  125. package/dist/src/table/components/default-cell-renderers/time-render.js +11 -0
  126. package/dist/src/table/components/default-cell-renderers/time-render.js.map +1 -0
  127. package/dist/src/table/components/default-cell-renderers/url-render.d.ts +4 -0
  128. package/dist/src/table/components/default-cell-renderers/url-render.d.ts.map +1 -0
  129. package/dist/src/table/components/default-cell-renderers/url-render.js +12 -0
  130. package/dist/src/table/components/default-cell-renderers/url-render.js.map +1 -0
  131. package/dist/src/table/components/default-fns/default-column-config.d.ts.map +1 -1
  132. package/dist/src/table/components/default-fns/default-column-config.js +12 -0
  133. package/dist/src/table/components/default-fns/default-column-config.js.map +1 -1
  134. package/dist/src/table/components/default-sort-columns/default-sort-fns.d.ts.map +1 -1
  135. package/dist/src/table/components/default-sort-columns/default-sort-fns.js +12 -0
  136. package/dist/src/table/components/default-sort-columns/default-sort-fns.js.map +1 -1
  137. package/dist/src/table/components/rows/render-row.js +2 -2
  138. package/dist/src/table/components/rows/render-row.js.map +1 -1
  139. package/dist/src/table/components/rows/row-actions.d.ts.map +1 -1
  140. package/dist/src/table/components/rows/row-actions.js +5 -2
  141. package/dist/src/table/components/rows/row-actions.js.map +1 -1
  142. package/dist/src/table/components/table-provider/table-provider.d.ts.map +1 -1
  143. package/dist/src/table/components/table-provider/table-provider.js +2 -4
  144. package/dist/src/table/components/table-provider/table-provider.js.map +1 -1
  145. package/dist/src/table/examples/table-editing/table-editing.d.ts.map +1 -1
  146. package/dist/src/table/examples/table-editing/table-editing.js +7 -6
  147. package/dist/src/table/examples/table-editing/table-editing.js.map +1 -1
  148. package/dist/src/table/hooks/useGlobalTableKeyEvents.d.ts.map +1 -1
  149. package/dist/src/table/hooks/useGlobalTableKeyEvents.js +20 -0
  150. package/dist/src/table/hooks/useGlobalTableKeyEvents.js.map +1 -1
  151. package/dist/src/table/index.d.ts +1 -0
  152. package/dist/src/table/index.d.ts.map +1 -1
  153. package/dist/src/table/index.js +1 -0
  154. package/dist/src/table/index.js.map +1 -1
  155. package/dist/src/table/logic/table-api.d.ts.map +1 -1
  156. package/dist/src/table/logic/table-api.js +26 -9
  157. package/dist/src/table/logic/table-api.js.map +1 -1
  158. package/dist/src/table/table/mock-data.d.ts +1 -0
  159. package/dist/src/table/table/mock-data.d.ts.map +1 -1
  160. package/dist/src/table/table/mock-data.js +7 -0
  161. package/dist/src/table/table/mock-data.js.map +1 -1
  162. package/dist/src/table/table/object-set-table.d.ts.map +1 -1
  163. package/dist/src/table/table/object-set-table.js +1 -0
  164. package/dist/src/table/table/object-set-table.js.map +1 -1
  165. package/dist/src/table/table/types.d.ts +11 -2
  166. package/dist/src/table/table/types.d.ts.map +1 -1
  167. package/dist/src/ui/components/data-entry/amount-input/amount-input.d.ts.map +1 -1
  168. package/dist/src/ui/components/data-entry/amount-input/amount-input.js +2 -2
  169. package/dist/src/ui/components/data-entry/amount-input/amount-input.js.map +1 -1
  170. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.d.ts.map +1 -1
  171. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.js +8 -3
  172. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.js.map +1 -1
  173. package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.d.ts +7 -0
  174. package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.d.ts.map +1 -0
  175. package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.js +64 -0
  176. package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.js.map +1 -0
  177. package/dist/src/ui/components/data-entry/file-input/examples/index.d.ts +2 -0
  178. package/dist/src/ui/components/data-entry/file-input/examples/index.d.ts.map +1 -0
  179. package/dist/src/ui/components/data-entry/file-input/examples/index.js +2 -0
  180. package/dist/src/ui/components/data-entry/file-input/examples/index.js.map +1 -0
  181. package/dist/src/ui/components/data-entry/file-input/file-input.d.ts.map +1 -1
  182. package/dist/src/ui/components/data-entry/file-input/file-input.js +14 -8
  183. package/dist/src/ui/components/data-entry/file-input/file-input.js.map +1 -1
  184. package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.d.ts +11 -3
  185. package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.d.ts.map +1 -1
  186. package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.js +24 -12
  187. package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.js.map +1 -1
  188. package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-corrupted.d.ts +9 -0
  189. package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-corrupted.d.ts.map +1 -0
  190. package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-corrupted.js +10 -0
  191. package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-corrupted.js.map +1 -0
  192. package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-loading.d.ts +8 -0
  193. package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-loading.d.ts.map +1 -0
  194. package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-loading.js +11 -0
  195. package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-loading.js.map +1 -0
  196. package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-unsupported.d.ts +6 -0
  197. package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-unsupported.d.ts.map +1 -0
  198. package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-unsupported.js +8 -0
  199. package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-unsupported.js.map +1 -0
  200. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-audio.d.ts +8 -0
  201. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-audio.d.ts.map +1 -0
  202. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-audio.js +8 -0
  203. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-audio.js.map +1 -0
  204. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.d.ts +5 -7
  205. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.d.ts.map +1 -1
  206. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.js +4 -13
  207. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.js.map +1 -1
  208. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.d.ts +9 -0
  209. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.d.ts.map +1 -0
  210. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.js +8 -0
  211. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.js.map +1 -0
  212. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.d.ts +4 -7
  213. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.d.ts.map +1 -1
  214. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.js +4 -13
  215. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.js.map +1 -1
  216. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-video.d.ts +8 -0
  217. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-video.d.ts.map +1 -0
  218. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-video.js +8 -0
  219. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-video.js.map +1 -0
  220. package/dist/src/ui/components/data-entry/file-input/types.d.ts +8 -8
  221. package/dist/src/ui/components/data-entry/file-input/types.d.ts.map +1 -1
  222. package/dist/src/ui/components/data-entry/file-input/types.js +2 -2
  223. package/dist/src/ui/components/data-entry/file-input/types.js.map +1 -1
  224. package/dist/src/ui/components/data-entry/file-input/useFetchQuery.d.ts +11 -0
  225. package/dist/src/ui/components/data-entry/file-input/useFetchQuery.d.ts.map +1 -0
  226. package/dist/src/ui/components/data-entry/file-input/useFetchQuery.js +30 -0
  227. package/dist/src/ui/components/data-entry/file-input/useFetchQuery.js.map +1 -0
  228. package/dist/src/ui/components/data-entry/file-input/useUploadFile.d.ts +6 -0
  229. package/dist/src/ui/components/data-entry/file-input/useUploadFile.d.ts.map +1 -1
  230. package/dist/src/ui/components/data-entry/file-input/useUploadFile.js +54 -2
  231. package/dist/src/ui/components/data-entry/file-input/useUploadFile.js.map +1 -1
  232. package/dist/src/ui/components/data-entry/file-input/utils.d.ts +34 -2
  233. package/dist/src/ui/components/data-entry/file-input/utils.d.ts.map +1 -1
  234. package/dist/src/ui/components/data-entry/file-input/utils.js +182 -24
  235. package/dist/src/ui/components/data-entry/file-input/utils.js.map +1 -1
  236. package/dist/src/ui/components/data-entry/number-input/number-input.d.ts.map +1 -1
  237. package/dist/src/ui/components/data-entry/number-input/number-input.js +5 -5
  238. package/dist/src/ui/components/data-entry/number-input/number-input.js.map +1 -1
  239. package/dist/src/ui/components/data-entry/number-input/types.d.ts +1 -0
  240. package/dist/src/ui/components/data-entry/number-input/types.d.ts.map +1 -1
  241. package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.d.ts.map +1 -1
  242. package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.js +8 -9
  243. package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.js.map +1 -1
  244. package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-diff.d.ts +15 -0
  245. package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-diff.d.ts.map +1 -0
  246. package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-diff.js +117 -0
  247. package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-diff.js.map +1 -0
  248. package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-input-diff.d.ts +14 -0
  249. package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-input-diff.d.ts.map +1 -0
  250. package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-input-diff.js +8 -0
  251. package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-input-diff.js.map +1 -0
  252. package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/splitted-phone-number.d.ts +12 -0
  253. package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/splitted-phone-number.d.ts.map +1 -0
  254. package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/splitted-phone-number.js +9 -0
  255. package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/splitted-phone-number.js.map +1 -0
  256. package/dist/src/ui/components/data-entry/phone-number-input/types.d.ts +2 -1
  257. package/dist/src/ui/components/data-entry/phone-number-input/types.d.ts.map +1 -1
  258. package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.d.ts +8 -2
  259. package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.d.ts.map +1 -1
  260. package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.js +94 -16
  261. package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.js.map +1 -1
  262. package/dist/src/ui/components/data-entry/textarea/textarea.d.ts.map +1 -1
  263. package/dist/src/ui/components/data-entry/textarea/textarea.js +8 -4
  264. package/dist/src/ui/components/data-entry/textarea/textarea.js.map +1 -1
  265. package/dist/src/ui/components/icon-components/BrokenAudio.d.ts +7 -0
  266. package/dist/src/ui/components/icon-components/BrokenAudio.d.ts.map +1 -0
  267. package/dist/src/ui/components/icon-components/BrokenAudio.js +7 -0
  268. package/dist/src/ui/components/icon-components/BrokenAudio.js.map +1 -0
  269. package/dist/src/ui/components/icon-components/BrokenVideo.d.ts +7 -0
  270. package/dist/src/ui/components/icon-components/BrokenVideo.d.ts.map +1 -0
  271. package/dist/src/ui/components/icon-components/BrokenVideo.js +7 -0
  272. package/dist/src/ui/components/icon-components/BrokenVideo.js.map +1 -0
  273. package/dist/src/ui/components/icon-components/PlaceholderAudio.d.ts +7 -0
  274. package/dist/src/ui/components/icon-components/PlaceholderAudio.d.ts.map +1 -0
  275. package/dist/src/ui/components/icon-components/PlaceholderAudio.js +7 -0
  276. package/dist/src/ui/components/icon-components/PlaceholderAudio.js.map +1 -0
  277. package/dist/src/ui/components/icon-components/PlaceholderVideo.d.ts +7 -0
  278. package/dist/src/ui/components/icon-components/PlaceholderVideo.d.ts.map +1 -0
  279. package/dist/src/ui/components/icon-components/PlaceholderVideo.js +7 -0
  280. package/dist/src/ui/components/icon-components/PlaceholderVideo.js.map +1 -0
  281. package/dist/src/ui/components/icon-components/index.d.ts +1 -1
  282. package/dist/src/ui/components/icon-components/index.d.ts.map +1 -1
  283. package/dist/src/ui/components/icon-components/index.js +12 -0
  284. package/dist/src/ui/components/icon-components/index.js.map +1 -1
  285. package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.d.ts.map +1 -1
  286. package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.js +2 -1
  287. package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.js.map +1 -1
  288. package/dist/style.css +174 -11
  289. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  290. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { StringField } from '../../../scalars/components/string-field/string-field.js';
3
- export const stringCellEditorFactory = (stringFieldProps) => {
3
+ export const buildStringCellEditor = (stringFieldProps) => {
4
4
  const StringCellEditor = (value, onChange, context) => {
5
5
  const stringValue = typeof value === 'string' ? value : String(value ?? '');
6
6
  return (_jsx(StringField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...stringFieldProps, value: stringValue, onChange: (e) => {
@@ -1 +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
+ {"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,qBAAqB,GAAG,CACnC,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"}
@@ -0,0 +1,4 @@
1
+ import { type TimeFieldProps } from '../../../scalars/components/time-picker-field/index.js';
2
+ import type { CellContext, DataType } from '../../table/types.js';
3
+ export declare const buildTimeCellEditor: <T extends DataType>(timeFieldProps: Omit<TimeFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=time-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/time-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,wDAAwD,CAAA;AAC7G,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,QAAQ,EACpD,gBAAgB,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAEpC,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAkBvG,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { TimePickerField } from '../../../scalars/components/time-picker-field/index.js';
3
+ export const buildTimeCellEditor = (timeFieldProps) => {
4
+ const TimeCellEditor = (value, onChange, context) => {
5
+ const timeValue = typeof value === 'string' ? value : String(value ?? '');
6
+ return (_jsx(TimePickerField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...timeFieldProps, value: timeValue, onChange: (e) => {
7
+ onChange(e.target.value);
8
+ } }));
9
+ };
10
+ return TimeCellEditor;
11
+ };
12
+ //# sourceMappingURL=time-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/time-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAuB,eAAe,EAAE,MAAM,wDAAwD,CAAA;AAG7G,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,cAAmE,EACnE,EAAE;IACF,MAAM,cAAc,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QACxG,MAAM,SAAS,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;QAEzE,OAAO,CACL,KAAC,eAAe,IACd,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,EACtB,SAAS,WACL,cAAc,EAClB,KAAK,EAAE,SAAS,EAChB,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,cAAc,CAAA;AACvB,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { type UrlFieldProps } from '../../../scalars/components/url-field/url-field.js';
2
+ import type { CellContext, DataType } from '../../table/types.js';
3
+ export declare const buildUrlCellEditor: <T extends DataType>(urlFieldProps: Omit<UrlFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=url-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/url-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,oDAAoD,CAAA;AACjG,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,QAAQ,EACnD,eAAe,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAEnC,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAkBtG,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { UrlField } from '../../../scalars/components/url-field/url-field.js';
3
+ export const buildUrlCellEditor = (urlFieldProps) => {
4
+ const UrlCellEditor = (value, onChange, context) => {
5
+ const urlValue = typeof value === 'string' ? value : (value?.toString() ?? '');
6
+ return (_jsx(UrlField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...urlFieldProps, value: urlValue, onChange: (e) => {
7
+ onChange(e.target.value);
8
+ } }));
9
+ };
10
+ return UrlCellEditor;
11
+ };
12
+ //# sourceMappingURL=url-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/url-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAsB,MAAM,oDAAoD,CAAA;AAGjG,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,aAAiE,EACjE,EAAE;IACF,MAAM,aAAa,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QACvG,MAAM,QAAQ,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAA;QAE9E,OAAO,CACL,KAAC,QAAQ,IACP,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,EACtB,SAAS,WACL,aAAa,EACjB,KAAK,EAAE,QAAQ,EACf,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,aAAa,CAAA;AACtB,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
+ declare const renderAidCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export { renderAidCell };
4
+ //# sourceMappingURL=aid-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aid-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/aid-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,aAAa,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAY5F,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
+ const renderAidCell = (value, context) => {
4
+ return (_jsx("div", { className: cn({
5
+ 'text-right': context.column.align === 'right',
6
+ 'text-center': context.column.align === 'center',
7
+ 'text-left': context.column.align === 'left' || !context.column.align,
8
+ }), children: value?.toString() ?? '' }));
9
+ };
10
+ export { renderAidCell };
11
+ //# sourceMappingURL=aid-render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aid-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/aid-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,aAAa,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAC/F,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,aAAa,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
+ declare const renderAmountCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export { renderAmountCell };
4
+ //# sourceMappingURL=amount-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amount-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/amount-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,4CAY/F,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
+ const renderAmountCell = (value, context) => {
4
+ return (_jsx("div", { className: cn({
5
+ 'text-right': context.column.align === 'right',
6
+ 'text-center': context.column.align === 'center',
7
+ 'text-left': context.column.align === 'left' || !context.column.align,
8
+ }), children: value?.toString() ?? '' }));
9
+ };
10
+ export { renderAmountCell };
11
+ //# sourceMappingURL=amount-render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amount-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/amount-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,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,gBAAgB,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
+ declare const renderCountryCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export { renderCountryCell };
4
+ //# sourceMappingURL=country-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/country-render.tsx"],"names":[],"mappings":"AACA,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,4CAYhG,CAAA;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
+ const renderCountryCell = (value, context) => {
4
+ return (_jsx("div", { className: cn({
5
+ 'text-right': context.column.align === 'right',
6
+ 'text-center': context.column.align === 'center',
7
+ 'text-left': context.column.align === 'left' || !context.column.align,
8
+ }), children: value?.toString() ?? '' }));
9
+ };
10
+ export { renderCountryCell };
11
+ //# sourceMappingURL=country-render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/country-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,iBAAiB,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IACnG,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,iBAAiB,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
+ declare const renderCurrencyCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export { renderCurrencyCell };
4
+ //# sourceMappingURL=currency-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currency-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/currency-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,kBAAkB,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAYjG,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
+ const renderCurrencyCell = (value, context) => {
4
+ return (_jsx("div", { className: cn({
5
+ 'text-right': context.column.align === 'right',
6
+ 'text-center': context.column.align === 'center',
7
+ 'text-left': context.column.align === 'left' || !context.column.align,
8
+ }), children: value?.toString() ?? '' }));
9
+ };
10
+ export { renderCurrencyCell };
11
+ //# sourceMappingURL=currency-render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currency-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/currency-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,kBAAkB,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IACpG,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,kBAAkB,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
+ declare const renderDateCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export { renderDateCell };
4
+ //# sourceMappingURL=date-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/date-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,4CAyB7F,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
+ const renderDateCell = (value, context) => {
4
+ const formatDate = (dateValue) => {
5
+ if (!dateValue)
6
+ return '';
7
+ try {
8
+ const date = new Date(dateValue);
9
+ if (isNaN(date.getTime()))
10
+ return String(dateValue);
11
+ return date.toLocaleDateString();
12
+ }
13
+ catch {
14
+ return String(dateValue);
15
+ }
16
+ };
17
+ return (_jsx("div", { className: cn({
18
+ 'text-right': context.column.align === 'right',
19
+ 'text-center': context.column.align === 'center',
20
+ 'text-left': context.column.align === 'left' || !context.column.align,
21
+ }), children: formatDate(value) }));
22
+ };
23
+ export { renderDateCell };
24
+ //# sourceMappingURL=date-render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/date-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,cAAc,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAChG,MAAM,UAAU,GAAG,CAAC,SAAkB,EAAU,EAAE;QAChD,IAAI,CAAC,SAAS;YAAE,OAAO,EAAE,CAAA;QAEzB,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,SAA0B,CAAC,CAAA;YACjD,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBAAE,OAAO,MAAM,CAAC,SAAS,CAAC,CAAA;YAEnD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAA;QAClC,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,MAAM,CAAC,SAAS,CAAC,CAAA;QAC1B,CAAC;IACH,CAAC,CAAA;IAED,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,UAAU,CAAC,KAAK,CAAC,GACd,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
+ declare const renderDateTimeCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export { renderDateTimeCell };
4
+ //# sourceMappingURL=datetime-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datetime-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/datetime-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,kBAAkB,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAyBjG,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
+ const renderDateTimeCell = (value, context) => {
4
+ const formatDateTime = (dateValue) => {
5
+ if (!dateValue)
6
+ return '';
7
+ try {
8
+ const date = new Date(dateValue);
9
+ if (isNaN(date.getTime()))
10
+ return String(dateValue);
11
+ return date.toLocaleString();
12
+ }
13
+ catch {
14
+ return String(dateValue);
15
+ }
16
+ };
17
+ return (_jsx("div", { className: cn({
18
+ 'text-right': context.column.align === 'right',
19
+ 'text-center': context.column.align === 'center',
20
+ 'text-left': context.column.align === 'left' || !context.column.align,
21
+ }), children: formatDateTime(value) }));
22
+ };
23
+ export { renderDateTimeCell };
24
+ //# sourceMappingURL=datetime-render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datetime-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/datetime-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,kBAAkB,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IACpG,MAAM,cAAc,GAAG,CAAC,SAAkB,EAAU,EAAE;QACpD,IAAI,CAAC,SAAS;YAAE,OAAO,EAAE,CAAA;QAEzB,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,SAA0B,CAAC,CAAA;YACjD,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBAAE,OAAO,MAAM,CAAC,SAAS,CAAC,CAAA;YAEnD,OAAO,IAAI,CAAC,cAAc,EAAE,CAAA;QAC9B,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,MAAM,CAAC,SAAS,CAAC,CAAA;QAC1B,CAAC;IACH,CAAC,CAAA;IAED,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,cAAc,CAAC,KAAK,CAAC,GAClB,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
+ declare const renderEmailCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export { renderEmailCell };
4
+ //# sourceMappingURL=email-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/email-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,eAAe,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAY9F,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
+ const renderEmailCell = (value, context) => {
4
+ return (_jsx("div", { className: cn({
5
+ 'text-right': context.column.align === 'right',
6
+ 'text-center': context.column.align === 'center',
7
+ 'text-left': context.column.align === 'left' || !context.column.align,
8
+ }), children: value?.toString() ?? '' }));
9
+ };
10
+ export { renderEmailCell };
11
+ //# sourceMappingURL=email-render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/email-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,eAAe,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IACjG,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,eAAe,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
+ declare const renderEnumCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export { renderEnumCell };
4
+ //# sourceMappingURL=enum-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/enum-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"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
+ const renderEnumCell = (value, context) => {
4
+ return (_jsx("div", { className: cn({
5
+ 'text-right': context.column.align === 'right',
6
+ 'text-center': context.column.align === 'center',
7
+ 'text-left': context.column.align === 'left' || !context.column.align,
8
+ }), children: value?.toString() ?? '' }));
9
+ };
10
+ export { renderEnumCell };
11
+ //# sourceMappingURL=enum-render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/enum-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"}
@@ -1 +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"}
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;AAiBpE,QAAA,MAAM,WAAW,GAAI,CAAC,EAAE,MAAM,UAAU,GAAG,SAAS,KAAG,YAAY,CAAC,CAAC,CAqCpE,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -1,6 +1,18 @@
1
1
  import { renderBooleanCell } from './boolean-render.js';
2
+ import { renderCountryCell } from './country-render.js';
3
+ import { renderDateCell } from './date-render.js';
4
+ import { renderDateTimeCell } from './datetime-render.js';
2
5
  import { renderNumberCell } from './number-render.js';
3
6
  import { renderTextCell } from './text-render.js';
7
+ import { renderTimeCell } from './time-render.js';
8
+ import { renderUrlCell } from './url-render.js';
9
+ import { renderPhidCell } from './phid-render.js';
10
+ import { renderOidCell } from './oid-render.js';
11
+ import { renderAidCell } from './aid-render.js';
12
+ import { renderEmailCell } from './email-render.js';
13
+ import { renderEnumCell } from './enum-render.js';
14
+ import { renderCurrencyCell } from './currency-render.js';
15
+ import { renderAmountCell } from './amount-render.js';
4
16
  const getRenderFn = (type) => {
5
17
  switch (type) {
6
18
  case 'string':
@@ -9,6 +21,30 @@ const getRenderFn = (type) => {
9
21
  return renderNumberCell;
10
22
  case 'boolean':
11
23
  return renderBooleanCell;
24
+ case 'country':
25
+ return renderCountryCell;
26
+ case 'date':
27
+ return renderDateCell;
28
+ case 'datetime':
29
+ return renderDateTimeCell;
30
+ case 'time':
31
+ return renderTimeCell;
32
+ case 'url':
33
+ return renderUrlCell;
34
+ case 'phid':
35
+ return renderPhidCell;
36
+ case 'oid':
37
+ return renderOidCell;
38
+ case 'aid':
39
+ return renderAidCell;
40
+ case 'email':
41
+ return renderEmailCell;
42
+ case 'enum':
43
+ return renderEnumCell;
44
+ case 'currency':
45
+ return renderCurrencyCell;
46
+ case 'amount':
47
+ return renderAmountCell;
12
48
  case undefined:
13
49
  return renderTextCell;
14
50
  default:
@@ -1 +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
+ {"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,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,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,iBAAiB,CAAA;QAC1B,KAAK,MAAM;YACT,OAAO,cAAc,CAAA;QACvB,KAAK,UAAU;YACb,OAAO,kBAAkB,CAAA;QAC3B,KAAK,MAAM;YACT,OAAO,cAAc,CAAA;QACvB,KAAK,KAAK;YACR,OAAO,aAAa,CAAA;QACtB,KAAK,MAAM;YACT,OAAO,cAAc,CAAA;QACvB,KAAK,KAAK;YACR,OAAO,aAAa,CAAA;QACtB,KAAK,KAAK;YACR,OAAO,aAAa,CAAA;QACtB,KAAK,OAAO;YACV,OAAO,eAAe,CAAA;QACxB,KAAK,MAAM;YACT,OAAO,cAAc,CAAA;QACvB,KAAK,UAAU;YACb,OAAO,kBAAkB,CAAA;QAC3B,KAAK,QAAQ;YACX,OAAO,gBAAgB,CAAA;QACzB,KAAK,SAAS;YACZ,OAAO,cAAc,CAAA;QACvB;YACE,OAAO,cAAc,CAAA;IACzB,CAAC;AACH,CAAC,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
+ declare const renderOidCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export { renderOidCell };
4
+ //# sourceMappingURL=oid-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oid-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/oid-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,aAAa,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAY5F,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
+ const renderOidCell = (value, context) => {
4
+ return (_jsx("div", { className: cn({
5
+ 'text-right': context.column.align === 'right',
6
+ 'text-center': context.column.align === 'center',
7
+ 'text-left': context.column.align === 'left' || !context.column.align,
8
+ }), children: value?.toString() ?? '' }));
9
+ };
10
+ export { renderOidCell };
11
+ //# sourceMappingURL=oid-render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oid-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/oid-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,aAAa,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAC/F,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,aAAa,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
+ declare const renderPhidCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export { renderPhidCell };
4
+ //# sourceMappingURL=phid-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phid-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/phid-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"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
+ const renderPhidCell = (value, context) => {
4
+ return (_jsx("div", { className: cn({
5
+ 'text-right': context.column.align === 'right',
6
+ 'text-center': context.column.align === 'center',
7
+ 'text-left': context.column.align === 'left' || !context.column.align,
8
+ }), children: value?.toString() ?? '' }));
9
+ };
10
+ export { renderPhidCell };
11
+ //# sourceMappingURL=phid-render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phid-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/phid-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,4 @@
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
+ declare const renderTimeCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export { renderTimeCell };
4
+ //# sourceMappingURL=time-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/time-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"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
+ const renderTimeCell = (value, context) => {
4
+ return (_jsx("div", { className: cn({
5
+ 'text-right': context.column.align === 'right',
6
+ 'text-center': context.column.align === 'center',
7
+ 'text-left': context.column.align === 'left' || !context.column.align,
8
+ }), children: value?.toString() ?? '' }));
9
+ };
10
+ export { renderTimeCell };
11
+ //# sourceMappingURL=time-render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/time-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,4 @@
1
+ import type { CellContext, DataType } from '../../table/types.js';
2
+ declare const renderUrlCell: <T extends DataType = DataType>(value: unknown, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export { renderUrlCell };
4
+ //# sourceMappingURL=url-render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-render.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/url-render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,QAAA,MAAM,aAAa,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,OAAO,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,4CAoB5F,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../../../scalars/lib/utils.js';
3
+ const renderUrlCell = (value, context) => {
4
+ const url = value?.toString() ?? '';
5
+ return (_jsx("div", { className: cn({
6
+ 'text-right': context.column.align === 'right',
7
+ 'text-center': context.column.align === 'center',
8
+ 'text-left': context.column.align === 'left' || !context.column.align,
9
+ }), children: url ? (_jsx("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "text-blue-600 hover:text-blue-800 underline", children: url })) : ('') }));
10
+ };
11
+ export { renderUrlCell };
12
+ //# sourceMappingURL=url-render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-render.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-renderers/url-render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAA;AAGlD,MAAM,aAAa,GAAG,CAAgC,KAAc,EAAE,OAAuB,EAAE,EAAE;IAC/F,MAAM,GAAG,GAAG,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;IAEnC,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,GAAG,CAAC,CAAC,CAAC,CACL,YAAG,IAAI,EAAE,GAAG,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,EAAC,SAAS,EAAC,6CAA6C,YAC5G,GAAG,GACF,CACL,CAAC,CAAC,CAAC,CACF,EAAE,CACH,GACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -1 +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"}
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,eAsBxD,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
@@ -1,9 +1,21 @@
1
1
  const defaultColumnAlignment = (columnType) => {
2
2
  switch (columnType) {
3
3
  case 'number':
4
+ case 'amount':
4
5
  return 'right';
5
6
  case 'string':
6
7
  case 'boolean':
8
+ case 'country':
9
+ case 'enum':
10
+ case 'currency':
11
+ case 'date':
12
+ case 'datetime':
13
+ case 'time':
14
+ case 'url':
15
+ case 'email':
16
+ case 'phid':
17
+ case 'oid':
18
+ case 'aid':
7
19
  default:
8
20
  return 'left';
9
21
  }
@@ -1 +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
+ {"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,CAAC;QACd,KAAK,QAAQ;YACX,OAAO,OAAO,CAAA;QAEhB,KAAK,QAAQ,CAAC;QACd,KAAK,SAAS,CAAC;QACf,KAAK,SAAS,CAAC;QACf,KAAK,MAAM,CAAC;QACZ,KAAK,UAAU,CAAC;QAChB,KAAK,MAAM,CAAC;QACZ,KAAK,UAAU,CAAC;QAChB,KAAK,MAAM,CAAC;QACZ,KAAK,KAAK,CAAC;QACX,KAAK,OAAO,CAAC;QACb,KAAK,MAAM,CAAC;QACZ,KAAK,KAAK,CAAC;QACX,KAAK,KAAK,CAAC;QACX;YACE,OAAO,MAAM,CAAA;IACjB,CAAC;AACH,CAAC,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"default-sort-fns.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-sort-columns/default-sort-fns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AA4B9D,eAAO,MAAM,cAAc,GAAI,CAAC,GAAG,OAAO,EAAE,YAAY,UAAU,KAAG,MAAM,CAAC,CAAC,CAU5E,CAAA"}
1
+ {"version":3,"file":"default-sort-fns.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-sort-columns/default-sort-fns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AA4B9D,eAAO,MAAM,cAAc,GAAI,CAAC,GAAG,OAAO,EAAE,YAAY,UAAU,KAAG,MAAM,CAAC,CAAC,CAsB5E,CAAA"}
@@ -25,9 +25,21 @@ const defaultSortTextFn = (a, b) => {
25
25
  export const defaultSortFns = (columnType) => {
26
26
  switch (columnType) {
27
27
  case 'number':
28
+ case 'amount':
28
29
  return defaultSortNumberFn;
29
30
  case 'boolean':
30
31
  case 'string':
32
+ case 'country':
33
+ case 'enum':
34
+ case 'currency':
35
+ case 'date':
36
+ case 'datetime':
37
+ case 'time':
38
+ case 'url':
39
+ case 'email':
40
+ case 'phid':
41
+ case 'oid':
42
+ case 'aid':
31
43
  default:
32
44
  return defaultSortTextFn;
33
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"default-sort-fns.js","sourceRoot":"","sources":["../../../../../src/table/components/default-sort-columns/default-sort-fns.ts"],"names":[],"mappings":"AAEA,MAAM,mBAAmB,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE;IACrD,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QAC7B,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAC,CAAA;IACX,CAAC;IACD,OAAO,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;AAC9B,CAAC,CAAA;AAED,MAAM,iBAAiB,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE;IACnD,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QAC7B,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAC,CAAA;IACX,CAAC;IACD,OAAQ,CAAY,CAAC,aAAa,CAAC,CAAW,CAAC,CAAA;AACjD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,CAAc,UAAsB,EAAa,EAAE;IAC/E,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,QAAQ;YACX,OAAO,mBAAgC,CAAA;QAEzC,KAAK,SAAS,CAAC;QACf,KAAK,QAAQ,CAAC;QACd;YACE,OAAO,iBAA8B,CAAA;IACzC,CAAC;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"default-sort-fns.js","sourceRoot":"","sources":["../../../../../src/table/components/default-sort-columns/default-sort-fns.ts"],"names":[],"mappings":"AAEA,MAAM,mBAAmB,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE;IACrD,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QAC7B,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAC,CAAA;IACX,CAAC;IACD,OAAO,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;AAC9B,CAAC,CAAA;AAED,MAAM,iBAAiB,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE;IACnD,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QAC7B,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,CAAC,CAAA;IACX,CAAC;IACD,OAAQ,CAAY,CAAC,aAAa,CAAC,CAAW,CAAC,CAAA;AACjD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,CAAc,UAAsB,EAAa,EAAE;IAC/E,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ;YACX,OAAO,mBAAgC,CAAA;QAEzC,KAAK,SAAS,CAAC;QACf,KAAK,QAAQ,CAAC;QACd,KAAK,SAAS,CAAC;QACf,KAAK,MAAM,CAAC;QACZ,KAAK,UAAU,CAAC;QAChB,KAAK,MAAM,CAAC;QACZ,KAAK,UAAU,CAAC;QAChB,KAAK,MAAM,CAAC;QACZ,KAAK,KAAK,CAAC;QACX,KAAK,OAAO,CAAC;QACb,KAAK,MAAM,CAAC;QACZ,KAAK,KAAK,CAAC;QACX,KAAK,KAAK,CAAC;QACX;YACE,OAAO,iBAA8B,CAAA;IACzC,CAAC;AACH,CAAC,CAAA"}
@@ -63,7 +63,7 @@ const RenderRow = ({ item, rowIndex, mode = 'default' }) => {
63
63
  return false;
64
64
  }
65
65
  return (mode === 'default' &&
66
- (!!config.onDelete ||
66
+ (!!api.canDelete() ||
67
67
  config.actions?.primary ||
68
68
  (Array.isArray(config.actions?.secondary) && config.actions.secondary.length > 0)));
69
69
  }, [
@@ -71,7 +71,7 @@ const RenderRow = ({ item, rowIndex, mode = 'default' }) => {
71
71
  rowIndex,
72
72
  selectedRowErrors,
73
73
  mode,
74
- config.onDelete,
74
+ api,
75
75
  config.actions?.primary,
76
76
  config.actions?.secondary,
77
77
  ]);