@powerhousedao/document-engineering 1.28.0 → 1.30.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 (271) 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 +17 -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/cells/render-cell/render-cell.d.ts +2 -2
  14. package/dist/src/table/components/cells/render-cell/render-cell.d.ts.map +1 -1
  15. package/dist/src/table/components/cells/render-cell/render-cell.js +4 -4
  16. package/dist/src/table/components/cells/render-cell/render-cell.js.map +1 -1
  17. package/dist/src/table/components/cells/render-cell/use-cell-logic.d.ts +3 -4
  18. package/dist/src/table/components/cells/render-cell/use-cell-logic.d.ts.map +1 -1
  19. package/dist/src/table/components/cells/render-cell/use-cell-logic.js +3 -3
  20. package/dist/src/table/components/cells/render-cell/use-cell-logic.js.map +1 -1
  21. package/dist/src/table/components/default-cell-editors/aid-editor.d.ts +4 -0
  22. package/dist/src/table/components/default-cell-editors/aid-editor.d.ts.map +1 -0
  23. package/dist/src/table/components/default-cell-editors/aid-editor.js +12 -0
  24. package/dist/src/table/components/default-cell-editors/aid-editor.js.map +1 -0
  25. package/dist/src/table/components/default-cell-editors/amount-editor.d.ts +4 -0
  26. package/dist/src/table/components/default-cell-editors/amount-editor.d.ts.map +1 -0
  27. package/dist/src/table/components/default-cell-editors/amount-editor.js +15 -0
  28. package/dist/src/table/components/default-cell-editors/amount-editor.js.map +1 -0
  29. package/dist/src/table/components/default-cell-editors/boolean-editor.d.ts +1 -1
  30. package/dist/src/table/components/default-cell-editors/boolean-editor.d.ts.map +1 -1
  31. package/dist/src/table/components/default-cell-editors/boolean-editor.js +1 -1
  32. package/dist/src/table/components/default-cell-editors/boolean-editor.js.map +1 -1
  33. package/dist/src/table/components/default-cell-editors/country-editor.d.ts +4 -0
  34. package/dist/src/table/components/default-cell-editors/country-editor.d.ts.map +1 -0
  35. package/dist/src/table/components/default-cell-editors/country-editor.js +12 -0
  36. package/dist/src/table/components/default-cell-editors/country-editor.js.map +1 -0
  37. package/dist/src/table/components/default-cell-editors/currency-editor.d.ts +4 -0
  38. package/dist/src/table/components/default-cell-editors/currency-editor.d.ts.map +1 -0
  39. package/dist/src/table/components/default-cell-editors/currency-editor.js +12 -0
  40. package/dist/src/table/components/default-cell-editors/currency-editor.js.map +1 -0
  41. package/dist/src/table/components/default-cell-editors/date-editor.d.ts +4 -0
  42. package/dist/src/table/components/default-cell-editors/date-editor.d.ts.map +1 -0
  43. package/dist/src/table/components/default-cell-editors/date-editor.js +12 -0
  44. package/dist/src/table/components/default-cell-editors/date-editor.js.map +1 -0
  45. package/dist/src/table/components/default-cell-editors/datetime-editor.d.ts +4 -0
  46. package/dist/src/table/components/default-cell-editors/datetime-editor.d.ts.map +1 -0
  47. package/dist/src/table/components/default-cell-editors/datetime-editor.js +12 -0
  48. package/dist/src/table/components/default-cell-editors/datetime-editor.js.map +1 -0
  49. package/dist/src/table/components/default-cell-editors/email-editor.d.ts +4 -0
  50. package/dist/src/table/components/default-cell-editors/email-editor.d.ts.map +1 -0
  51. package/dist/src/table/components/default-cell-editors/email-editor.js +12 -0
  52. package/dist/src/table/components/default-cell-editors/email-editor.js.map +1 -0
  53. package/dist/src/table/components/default-cell-editors/enum-editor.d.ts +4 -0
  54. package/dist/src/table/components/default-cell-editors/enum-editor.d.ts.map +1 -0
  55. package/dist/src/table/components/default-cell-editors/enum-editor.js +12 -0
  56. package/dist/src/table/components/default-cell-editors/enum-editor.js.map +1 -0
  57. package/dist/src/table/components/default-cell-editors/get-cell-editor-fn.d.ts.map +1 -1
  58. package/dist/src/table/components/default-cell-editors/get-cell-editor-fn.js +44 -8
  59. package/dist/src/table/components/default-cell-editors/get-cell-editor-fn.js.map +1 -1
  60. package/dist/src/table/components/default-cell-editors/index.d.ts +3 -3
  61. package/dist/src/table/components/default-cell-editors/index.d.ts.map +1 -1
  62. package/dist/src/table/components/default-cell-editors/index.js +3 -3
  63. package/dist/src/table/components/default-cell-editors/index.js.map +1 -1
  64. package/dist/src/table/components/default-cell-editors/number-editor.d.ts +1 -1
  65. package/dist/src/table/components/default-cell-editors/number-editor.d.ts.map +1 -1
  66. package/dist/src/table/components/default-cell-editors/number-editor.js +1 -1
  67. package/dist/src/table/components/default-cell-editors/number-editor.js.map +1 -1
  68. package/dist/src/table/components/default-cell-editors/oid-editor.d.ts +4 -0
  69. package/dist/src/table/components/default-cell-editors/oid-editor.d.ts.map +1 -0
  70. package/dist/src/table/components/default-cell-editors/oid-editor.js +12 -0
  71. package/dist/src/table/components/default-cell-editors/oid-editor.js.map +1 -0
  72. package/dist/src/table/components/default-cell-editors/phid-editor.d.ts +4 -0
  73. package/dist/src/table/components/default-cell-editors/phid-editor.d.ts.map +1 -0
  74. package/dist/src/table/components/default-cell-editors/phid-editor.js +12 -0
  75. package/dist/src/table/components/default-cell-editors/phid-editor.js.map +1 -0
  76. package/dist/src/table/components/default-cell-editors/string-editor.d.ts +1 -1
  77. package/dist/src/table/components/default-cell-editors/string-editor.d.ts.map +1 -1
  78. package/dist/src/table/components/default-cell-editors/string-editor.js +1 -1
  79. package/dist/src/table/components/default-cell-editors/string-editor.js.map +1 -1
  80. package/dist/src/table/components/default-cell-editors/time-editor.d.ts +4 -0
  81. package/dist/src/table/components/default-cell-editors/time-editor.d.ts.map +1 -0
  82. package/dist/src/table/components/default-cell-editors/time-editor.js +12 -0
  83. package/dist/src/table/components/default-cell-editors/time-editor.js.map +1 -0
  84. package/dist/src/table/components/default-cell-editors/url-editor.d.ts +4 -0
  85. package/dist/src/table/components/default-cell-editors/url-editor.d.ts.map +1 -0
  86. package/dist/src/table/components/default-cell-editors/url-editor.js +12 -0
  87. package/dist/src/table/components/default-cell-editors/url-editor.js.map +1 -0
  88. package/dist/src/table/components/default-cell-renderers/aid-render.d.ts +4 -0
  89. package/dist/src/table/components/default-cell-renderers/aid-render.d.ts.map +1 -0
  90. package/dist/src/table/components/default-cell-renderers/aid-render.js +11 -0
  91. package/dist/src/table/components/default-cell-renderers/aid-render.js.map +1 -0
  92. package/dist/src/table/components/default-cell-renderers/amount-render.d.ts +4 -0
  93. package/dist/src/table/components/default-cell-renderers/amount-render.d.ts.map +1 -0
  94. package/dist/src/table/components/default-cell-renderers/amount-render.js +11 -0
  95. package/dist/src/table/components/default-cell-renderers/amount-render.js.map +1 -0
  96. package/dist/src/table/components/default-cell-renderers/country-render.d.ts +4 -0
  97. package/dist/src/table/components/default-cell-renderers/country-render.d.ts.map +1 -0
  98. package/dist/src/table/components/default-cell-renderers/country-render.js +11 -0
  99. package/dist/src/table/components/default-cell-renderers/country-render.js.map +1 -0
  100. package/dist/src/table/components/default-cell-renderers/currency-render.d.ts +4 -0
  101. package/dist/src/table/components/default-cell-renderers/currency-render.d.ts.map +1 -0
  102. package/dist/src/table/components/default-cell-renderers/currency-render.js +11 -0
  103. package/dist/src/table/components/default-cell-renderers/currency-render.js.map +1 -0
  104. package/dist/src/table/components/default-cell-renderers/date-render.d.ts +4 -0
  105. package/dist/src/table/components/default-cell-renderers/date-render.d.ts.map +1 -0
  106. package/dist/src/table/components/default-cell-renderers/date-render.js +24 -0
  107. package/dist/src/table/components/default-cell-renderers/date-render.js.map +1 -0
  108. package/dist/src/table/components/default-cell-renderers/datetime-render.d.ts +4 -0
  109. package/dist/src/table/components/default-cell-renderers/datetime-render.d.ts.map +1 -0
  110. package/dist/src/table/components/default-cell-renderers/datetime-render.js +24 -0
  111. package/dist/src/table/components/default-cell-renderers/datetime-render.js.map +1 -0
  112. package/dist/src/table/components/default-cell-renderers/email-render.d.ts +4 -0
  113. package/dist/src/table/components/default-cell-renderers/email-render.d.ts.map +1 -0
  114. package/dist/src/table/components/default-cell-renderers/email-render.js +11 -0
  115. package/dist/src/table/components/default-cell-renderers/email-render.js.map +1 -0
  116. package/dist/src/table/components/default-cell-renderers/enum-render.d.ts +4 -0
  117. package/dist/src/table/components/default-cell-renderers/enum-render.d.ts.map +1 -0
  118. package/dist/src/table/components/default-cell-renderers/enum-render.js +11 -0
  119. package/dist/src/table/components/default-cell-renderers/enum-render.js.map +1 -0
  120. package/dist/src/table/components/default-cell-renderers/get-render-fn.d.ts.map +1 -1
  121. package/dist/src/table/components/default-cell-renderers/get-render-fn.js +36 -0
  122. package/dist/src/table/components/default-cell-renderers/get-render-fn.js.map +1 -1
  123. package/dist/src/table/components/default-cell-renderers/oid-render.d.ts +4 -0
  124. package/dist/src/table/components/default-cell-renderers/oid-render.d.ts.map +1 -0
  125. package/dist/src/table/components/default-cell-renderers/oid-render.js +11 -0
  126. package/dist/src/table/components/default-cell-renderers/oid-render.js.map +1 -0
  127. package/dist/src/table/components/default-cell-renderers/phid-render.d.ts +4 -0
  128. package/dist/src/table/components/default-cell-renderers/phid-render.d.ts.map +1 -0
  129. package/dist/src/table/components/default-cell-renderers/phid-render.js +11 -0
  130. package/dist/src/table/components/default-cell-renderers/phid-render.js.map +1 -0
  131. package/dist/src/table/components/default-cell-renderers/time-render.d.ts +4 -0
  132. package/dist/src/table/components/default-cell-renderers/time-render.d.ts.map +1 -0
  133. package/dist/src/table/components/default-cell-renderers/time-render.js +11 -0
  134. package/dist/src/table/components/default-cell-renderers/time-render.js.map +1 -0
  135. package/dist/src/table/components/default-cell-renderers/url-render.d.ts +4 -0
  136. package/dist/src/table/components/default-cell-renderers/url-render.d.ts.map +1 -0
  137. package/dist/src/table/components/default-cell-renderers/url-render.js +12 -0
  138. package/dist/src/table/components/default-cell-renderers/url-render.js.map +1 -0
  139. package/dist/src/table/components/default-fns/default-column-config.d.ts.map +1 -1
  140. package/dist/src/table/components/default-fns/default-column-config.js +12 -0
  141. package/dist/src/table/components/default-fns/default-column-config.js.map +1 -1
  142. package/dist/src/table/components/default-sort-columns/default-sort-fns.d.ts.map +1 -1
  143. package/dist/src/table/components/default-sort-columns/default-sort-fns.js +12 -0
  144. package/dist/src/table/components/default-sort-columns/default-sort-fns.js.map +1 -1
  145. package/dist/src/table/components/rows/render-row.js +3 -3
  146. package/dist/src/table/components/rows/render-row.js.map +1 -1
  147. package/dist/src/table/components/rows/row-actions.d.ts.map +1 -1
  148. package/dist/src/table/components/rows/row-actions.js +5 -2
  149. package/dist/src/table/components/rows/row-actions.js.map +1 -1
  150. package/dist/src/table/components/table-provider/table-provider.d.ts.map +1 -1
  151. package/dist/src/table/components/table-provider/table-provider.js +2 -4
  152. package/dist/src/table/components/table-provider/table-provider.js.map +1 -1
  153. package/dist/src/table/components/table-provider/table-reducer.d.ts.map +1 -1
  154. package/dist/src/table/components/table-provider/table-reducer.js +0 -3
  155. package/dist/src/table/components/table-provider/table-reducer.js.map +1 -1
  156. package/dist/src/table/examples/table-editing/table-editing.d.ts.map +1 -1
  157. package/dist/src/table/examples/table-editing/table-editing.js +9 -7
  158. package/dist/src/table/examples/table-editing/table-editing.js.map +1 -1
  159. package/dist/src/table/hooks/useGlobalTableKeyEvents.d.ts.map +1 -1
  160. package/dist/src/table/hooks/useGlobalTableKeyEvents.js +20 -0
  161. package/dist/src/table/hooks/useGlobalTableKeyEvents.js.map +1 -1
  162. package/dist/src/table/index.d.ts +1 -0
  163. package/dist/src/table/index.d.ts.map +1 -1
  164. package/dist/src/table/index.js +1 -0
  165. package/dist/src/table/index.js.map +1 -1
  166. package/dist/src/table/logic/table-api.d.ts.map +1 -1
  167. package/dist/src/table/logic/table-api.js +43 -16
  168. package/dist/src/table/logic/table-api.js.map +1 -1
  169. package/dist/src/table/table/mock-data.d.ts +1 -0
  170. package/dist/src/table/table/mock-data.d.ts.map +1 -1
  171. package/dist/src/table/table/mock-data.js +7 -0
  172. package/dist/src/table/table/mock-data.js.map +1 -1
  173. package/dist/src/table/table/object-set-table.d.ts.map +1 -1
  174. package/dist/src/table/table/object-set-table.js +5 -1
  175. package/dist/src/table/table/object-set-table.js.map +1 -1
  176. package/dist/src/table/table/types.d.ts +12 -3
  177. package/dist/src/table/table/types.d.ts.map +1 -1
  178. package/dist/src/table/table/utils.js +2 -2
  179. package/dist/src/table/table/utils.js.map +1 -1
  180. package/dist/src/ui/components/data-entry/amount-input/use-amount-input.d.ts.map +1 -1
  181. package/dist/src/ui/components/data-entry/amount-input/use-amount-input.js +3 -2
  182. package/dist/src/ui/components/data-entry/amount-input/use-amount-input.js.map +1 -1
  183. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.d.ts.map +1 -1
  184. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.js +8 -3
  185. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.js.map +1 -1
  186. package/dist/src/ui/components/data-entry/file-input/file-input.d.ts.map +1 -1
  187. package/dist/src/ui/components/data-entry/file-input/file-input.js +15 -7
  188. package/dist/src/ui/components/data-entry/file-input/file-input.js.map +1 -1
  189. package/dist/src/ui/components/data-entry/file-input/index.d.ts +1 -1
  190. package/dist/src/ui/components/data-entry/file-input/index.d.ts.map +1 -1
  191. package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.d.ts +12 -3
  192. package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.d.ts.map +1 -1
  193. package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.js +16 -8
  194. package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.js.map +1 -1
  195. package/dist/src/ui/components/data-entry/file-input/sub-components/loading-bar.d.ts +7 -0
  196. package/dist/src/ui/components/data-entry/file-input/sub-components/loading-bar.d.ts.map +1 -0
  197. package/dist/src/ui/components/data-entry/file-input/sub-components/loading-bar.js +8 -0
  198. package/dist/src/ui/components/data-entry/file-input/sub-components/loading-bar.js.map +1 -0
  199. package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-image.d.ts +9 -0
  200. package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-image.d.ts.map +1 -0
  201. package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-image.js +13 -0
  202. package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-image.js.map +1 -0
  203. package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-pdf.d.ts +9 -0
  204. package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-pdf.d.ts.map +1 -0
  205. package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-pdf.js +13 -0
  206. package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-pdf.js.map +1 -0
  207. package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-unsupported.d.ts +8 -0
  208. package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-unsupported.d.ts.map +1 -0
  209. package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-unsupported.js +11 -0
  210. package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-unsupported.js.map +1 -0
  211. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.d.ts +10 -0
  212. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.d.ts.map +1 -0
  213. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.js +13 -0
  214. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.js.map +1 -0
  215. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.d.ts +9 -0
  216. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.d.ts.map +1 -0
  217. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.js +9 -0
  218. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.js.map +1 -0
  219. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.d.ts +10 -0
  220. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.d.ts.map +1 -0
  221. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.js +13 -0
  222. package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.js.map +1 -0
  223. package/dist/src/ui/components/data-entry/file-input/types.d.ts +17 -0
  224. package/dist/src/ui/components/data-entry/file-input/types.d.ts.map +1 -1
  225. package/dist/src/ui/components/data-entry/file-input/types.js +6 -1
  226. package/dist/src/ui/components/data-entry/file-input/types.js.map +1 -1
  227. package/dist/src/ui/components/data-entry/file-input/useUploadFile.d.ts +8 -0
  228. package/dist/src/ui/components/data-entry/file-input/useUploadFile.d.ts.map +1 -1
  229. package/dist/src/ui/components/data-entry/file-input/useUploadFile.js +63 -2
  230. package/dist/src/ui/components/data-entry/file-input/useUploadFile.js.map +1 -1
  231. package/dist/src/ui/components/data-entry/file-input/utils.d.ts +6 -0
  232. package/dist/src/ui/components/data-entry/file-input/utils.d.ts.map +1 -1
  233. package/dist/src/ui/components/data-entry/file-input/utils.js +96 -0
  234. package/dist/src/ui/components/data-entry/file-input/utils.js.map +1 -1
  235. package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.d.ts.map +1 -1
  236. package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.js +7 -4
  237. package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.js.map +1 -1
  238. package/dist/src/ui/components/data-entry/phone-number-input/types.d.ts +3 -2
  239. package/dist/src/ui/components/data-entry/phone-number-input/types.d.ts.map +1 -1
  240. package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.d.ts +9 -1
  241. package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.d.ts.map +1 -1
  242. package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.js +192 -22
  243. package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.js.map +1 -1
  244. package/dist/src/ui/components/data-entry/select/command-list-item.d.ts.map +1 -1
  245. package/dist/src/ui/components/data-entry/select/command-list-item.js +1 -1
  246. package/dist/src/ui/components/data-entry/select/command-list-item.js.map +1 -1
  247. package/dist/src/ui/components/data-entry/textarea/textarea.d.ts.map +1 -1
  248. package/dist/src/ui/components/data-entry/textarea/textarea.js +23 -9
  249. package/dist/src/ui/components/data-entry/textarea/textarea.js.map +1 -1
  250. package/dist/src/ui/components/icon-components/BookOpenText.d.ts +7 -0
  251. package/dist/src/ui/components/icon-components/BookOpenText.d.ts.map +1 -0
  252. package/dist/src/ui/components/icon-components/BookOpenText.js +7 -0
  253. package/dist/src/ui/components/icon-components/BookOpenText.js.map +1 -0
  254. package/dist/src/ui/components/icon-components/BrokenImage.d.ts +7 -0
  255. package/dist/src/ui/components/icon-components/BrokenImage.d.ts.map +1 -0
  256. package/dist/src/ui/components/icon-components/BrokenImage.js +7 -0
  257. package/dist/src/ui/components/icon-components/BrokenImage.js.map +1 -0
  258. package/dist/src/ui/components/icon-components/ContentUnavailableIcon.d.ts +7 -0
  259. package/dist/src/ui/components/icon-components/ContentUnavailableIcon.d.ts.map +1 -0
  260. package/dist/src/ui/components/icon-components/ContentUnavailableIcon.js +7 -0
  261. package/dist/src/ui/components/icon-components/ContentUnavailableIcon.js.map +1 -0
  262. package/dist/src/ui/components/icon-components/Image.d.ts.map +1 -1
  263. package/dist/src/ui/components/icon-components/Image.js +2 -2
  264. package/dist/src/ui/components/icon-components/Image.js.map +1 -1
  265. package/dist/src/ui/components/icon-components/index.d.ts +1 -1
  266. package/dist/src/ui/components/icon-components/index.d.ts.map +1 -1
  267. package/dist/src/ui/components/icon-components/index.js +12 -0
  268. package/dist/src/ui/components/icon-components/index.js.map +1 -1
  269. package/dist/style.css +85 -0
  270. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  271. package/package.json +2 -1
@@ -0,0 +1,3 @@
1
+ export { PhoneNumberField } from './phone-number-field.js';
2
+ export type { PhoneNumberFieldProps } from './types.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/phone-number-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { PhoneNumberField } from './phone-number-field.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/scalars/components/phone-number-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare const PhoneNumberField: import("react").ForwardRefExoticComponent<import("../../../ui/components/data-entry/phone-number-input/types.js").PhoneNumberInputProps & import("../types.js").FieldErrorHandling & import("react").RefAttributes<unknown>>;
2
+ export { PhoneNumberField };
3
+ //# sourceMappingURL=phone-number-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone-number-field.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/phone-number-field/phone-number-field.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,gBAAgB,8NAWpB,CAAA;AAIF,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -0,0 +1,17 @@
1
+ 'use client';
2
+ import { PhoneNumberInput } from '../../../ui/components/data-entry/phone-number-input/index.js';
3
+ import { withFieldValidation } from '../fragments/with-field-validation/index.js';
4
+ const PhoneNumberField = withFieldValidation(PhoneNumberInput, {
5
+ validations: {
6
+ _validFormat: () => (value) => {
7
+ if (value === '' || value === undefined) {
8
+ return true;
9
+ }
10
+ // TODO: implement validation
11
+ return true;
12
+ },
13
+ },
14
+ });
15
+ PhoneNumberField.displayName = 'PhoneNumberField';
16
+ export { PhoneNumberField };
17
+ //# sourceMappingURL=phone-number-field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone-number-field.js","sourceRoot":"","sources":["../../../../../src/scalars/components/phone-number-field/phone-number-field.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAA;AAChG,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAA;AAGjF,MAAM,gBAAgB,GAAG,mBAAmB,CAAwB,gBAAgB,EAAE;IACpF,WAAW,EAAE;QACX,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,KAAyB,EAAE,EAAE;YAChD,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxC,OAAO,IAAI,CAAA;YACb,CAAC;YAED,6BAA6B;YAC7B,OAAO,IAAI,CAAA;QACb,CAAC;KACF;CACF,CAAC,CAAA;AAEF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { PhoneNumberInputProps } from '../../../ui/components/data-entry/phone-number-input/types.js';
2
+ import type { FieldErrorHandling } from '../types.js';
3
+ type PhoneNumberFieldProps = PhoneNumberInputProps & FieldErrorHandling;
4
+ export type { PhoneNumberFieldProps };
5
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/phone-number-field/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAA;AAC1G,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAErD,KAAK,qBAAqB,GAAG,qBAAqB,GAAG,kBAAkB,CAAA;AAEvE,YAAY,EAAE,qBAAqB,EAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/scalars/components/phone-number-field/types.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
- import type { ColumnDef, DataType } from '../../../table/types.js';
1
+ import type { ColumnDef, DataType, IndexedData } from '../../../table/types.js';
2
2
  interface RenderCellProps<T extends DataType> {
3
- rowItem: T;
3
+ rowItem: IndexedData<T>;
4
4
  column: ColumnDef<T>;
5
5
  rowIndex: number;
6
6
  columnIndex: number;
@@ -1 +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
+ {"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,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO5F,UAAU,eAAe,CAAC,CAAC,SAAS,QAAQ;IAC1C,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAA;IACvB,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,4CA4DpB,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -6,7 +6,6 @@ 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
8
  const { config, isThisCellSelected, isCellEditMode, handleCellClick, formRef, hasErrors } = useCellLogic({
9
- column,
10
9
  rowIndex,
11
10
  columnIndex,
12
11
  renderEmptyCell,
@@ -19,16 +18,17 @@ const RenderCell = ({ rowItem, column, rowIndex, columnIndex, renderEmptyCell =
19
18
  return _jsx(EmptyCell, { column: column, isSelected: isThisCellSelected, onClick: handleCellClick });
20
19
  }
21
20
  const cellContext = {
22
- row: rowItem,
21
+ row: rowItem.data,
23
22
  column,
24
23
  rowIndex,
25
24
  columnIndex,
26
25
  tableConfig: config,
27
26
  };
28
27
  // get and format the cell value
29
- const cellValue = column.valueFormatter?.(column.valueGetter?.(rowItem, cellContext), cellContext);
28
+ const cellValue = column.valueFormatter?.(column.valueGetter?.(rowItem.data, cellContext), cellContext);
30
29
  const isThisCellEditMode = isCellEditMode && isThisCellSelected;
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 },
30
+ const isAddingRow = rowIndex === config.data.length;
31
+ return (_jsx(DefaultTableCell, { onClick: handleCellClick, isSelected: isThisCellSelected, isEditable: (column.editable ?? false) || (isAddingRow && !!column.renderCellEditor), 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
32
  // errors and warnings messages
33
33
  '[&_[data-type="error"]]:hidden [&_[data-type="warning"]]:hidden',
34
34
  // character counter
@@ -1 +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
+ {"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,CAAI;QAC1G,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,CAAC,IAAI;QACjB,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,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,WAAW,CAAC,CAAA;IAEvG,MAAM,kBAAkB,GAAG,cAAc,IAAI,kBAAkB,CAAA;IAE/D,MAAM,WAAW,GAAG,QAAQ,KAAK,MAAM,CAAC,IAAI,CAAC,MAAM,CAAA;IAEnD,OAAO,CACL,KAAC,gBAAgB,IAEf,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,kBAAkB,EAC9B,UAAU,EAAE,CAAC,MAAM,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC,EACpF,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,11 +1,10 @@
1
- import type { ColumnDef, DataType } from '../../../table/types.js';
2
- interface UseCellLogicProps<T extends DataType> {
3
- column: ColumnDef<T>;
1
+ import type { DataType } from '../../../table/types.js';
2
+ interface UseCellLogicProps {
4
3
  rowIndex: number;
5
4
  columnIndex: number;
6
5
  renderEmptyCell?: boolean;
7
6
  }
8
- declare const useCellLogic: <T extends DataType>({ column, rowIndex, columnIndex, renderEmptyCell, }: UseCellLogicProps<T>) => {
7
+ declare const useCellLogic: <T extends DataType>({ rowIndex, columnIndex, renderEmptyCell }: UseCellLogicProps) => {
9
8
  config: import("../../../table/types.js").ObjectSetTableConfig<T>;
10
9
  isThisCellSelected: boolean;
11
10
  isCellEditMode: boolean;
@@ -1 +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
+ {"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,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAIvD,UAAU,iBAAiB;IACzB,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,4CAAoD,iBAAiB;;;;6BAcnF,KAAK,CAAC,UAAU,CAAC,oBAAoB,CAAC;;;CAyCjE,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { useMemo } from 'react';
2
2
  import { isCellEqual } from '../../../table/utils.js';
3
3
  import { useInternalTableState } from '../../table-provider/table-provider.js';
4
- const useCellLogic = ({ column, rowIndex, columnIndex, renderEmptyCell = false, }) => {
4
+ const useCellLogic = ({ rowIndex, columnIndex, renderEmptyCell = false }) => {
5
5
  const { config, state: { selectedCellIndex, isCellEditMode, selectedRowErrors }, api, } = useInternalTableState();
6
6
  const currentCellIndex = {
7
7
  row: rowIndex,
@@ -24,7 +24,7 @@ const useCellLogic = ({ column, rowIndex, columnIndex, renderEmptyCell = false,
24
24
  });
25
25
  return;
26
26
  }
27
- if (event.detail === 2 && column.editable && !renderEmptyCell) {
27
+ if (event.detail === 2 && api.canEditCell(rowIndex, columnIndex) && !renderEmptyCell) {
28
28
  api.enterCellEditMode(rowIndex, columnIndex);
29
29
  }
30
30
  else {
@@ -33,7 +33,7 @@ const useCellLogic = ({ column, rowIndex, columnIndex, renderEmptyCell = false,
33
33
  }
34
34
  };
35
35
  return handler;
36
- }, [api, selectedCellIndex, rowIndex, columnIndex, column.editable, renderEmptyCell]);
36
+ }, [api, selectedCellIndex, rowIndex, columnIndex, renderEmptyCell]);
37
37
  const formRef = renderEmptyCell ? null : api._getState().dataFormReferences[rowIndex]?.[columnIndex];
38
38
  const hasErrors = selectedCellIndex?.row === rowIndex && Array.isArray(selectedRowErrors) && selectedRowErrors.length > 0;
39
39
  return {
@@ -1 +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"}
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;AAO9E,MAAM,YAAY,GAAG,CAAqB,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,GAAG,KAAK,EAAqB,EAAE,EAAE;IACjH,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,GAAG,CAAC,WAAW,CAAC,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;oBACrF,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,eAAe,CAAC,CAAC,CAAA;IAEpE,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"}
@@ -0,0 +1,4 @@
1
+ import type { AIDFieldProps } from '../../../scalars/components/aid-field/types.js';
2
+ import type { CellContext, DataType } from '../../table/types.js';
3
+ export declare const buildAidCellEditor: <T extends DataType>(aidFieldProps: Omit<AIDFieldProps, "name" | "value" | "onChange" | "autoComplete" | "fetchOptionsCallback" | "fetchSelectedOptionCallback" | "previewPlaceholder">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=aid-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aid-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/aid-editor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAA;AACnF,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,QAAQ,EACnD,eAAe,IAAI,CACjB,aAAa,EACX,MAAM,GACN,OAAO,GACP,UAAU,GACV,cAAc,GACd,sBAAsB,GACtB,6BAA6B,GAC7B,oBAAoB,CACvB,aAE6B,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAmBtG,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { AIDField } from '../../../scalars/components/aid-field/aid-field.js';
3
+ export const buildAidCellEditor = (aidFieldProps) => {
4
+ const AidCellEditor = (value, onChange, context) => {
5
+ const aidValue = typeof value === 'string' ? value : String(value ?? '');
6
+ return (_jsx(AIDField, { name: context.column.field, className: "max-w-full", autoFocus: true, autoComplete: false, ...aidFieldProps, value: aidValue, onChange: (value) => {
7
+ onChange(value);
8
+ } }));
9
+ };
10
+ return AidCellEditor;
11
+ };
12
+ //# sourceMappingURL=aid-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aid-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/aid-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oDAAoD,CAAA;AAI7E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,aASC,EACD,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,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;QAExE,OAAO,CACL,KAAC,QAAQ,IACP,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,EACtB,SAAS,QACT,YAAY,EAAE,KAAK,KACf,aAAa,EACjB,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,CAAC,KAAa,EAAE,EAAE;gBAC1B,QAAQ,CAAC,KAAK,CAAC,CAAA;YACjB,CAAC,GACD,CACH,CAAA;IACH,CAAC,CAAA;IAED,OAAO,aAAa,CAAA;AACtB,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { type AmountFieldProps } from '../../../scalars/components/amount-field/index.js';
2
+ import type { CellContext, DataType } from '../../table/types.js';
3
+ export declare const buildAmountCellEditor: <T extends DataType>(amountFieldProps: Omit<AmountFieldProps, "name" | "value" | "onChange" | "type" | "defaultValue">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=amount-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amount-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/amount-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,mDAAmD,CAAA;AAEtG,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,QAAQ,EACtD,kBAAkB,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,cAAc,CAAC,aAEhE,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAuBzG,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { AmountField } from '../../../scalars/components/amount-field/index.js';
3
+ export const buildAmountCellEditor = (amountFieldProps) => {
4
+ const AmountCellEditor = (value, onChange, context) => {
5
+ // Convert value to Amount type if it's not already
6
+ const amountValue = typeof value === 'object' && value !== null && 'value' in value
7
+ ? value
8
+ : { value: typeof value === 'number' ? value : undefined };
9
+ return (_jsx(AmountField, { name: context.column.field, className: "max-w-full", autoFocus: true, type: "Amount", ...amountFieldProps, value: amountValue, onChange: (e) => {
10
+ onChange(e.target.value);
11
+ } }));
12
+ };
13
+ return AmountCellEditor;
14
+ };
15
+ //# sourceMappingURL=amount-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amount-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/amount-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,mDAAmD,CAAA;AAItG,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,gBAAiG,EACjG,EAAE;IACF,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QAC1G,mDAAmD;QACnD,MAAM,WAAW,GACf,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK;YAC7D,CAAC,CAAC,KAAK;YACP,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,CAAA;QAE9D,OAAO,CACL,KAAC,WAAW,IACV,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,EACtB,SAAS,QACT,IAAI,EAAC,QAAQ,KACT,gBAAgB,EACpB,KAAK,EAAE,WAAqB,EAC5B,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
1
  import { type BooleanFieldProps } from '../../../scalars/components/boolean-field/boolean-field.js';
2
2
  import type { CellContext, DataType } from '../../table/types.js';
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;
3
+ export declare const buildBooleanCellEditor: <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
@@ -1 +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
+ {"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,sBAAsB,GAAI,CAAC,SAAS,QAAQ,EACvD,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,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { BooleanField } from '../../../scalars/components/boolean-field/boolean-field.js';
3
3
  import { cn } from '../../../scalars/lib/utils.js';
4
- export const booleanCellEditorFactory = (booleanFieldProps) => {
4
+ export const buildBooleanCellEditor = (booleanFieldProps) => {
5
5
  const BooleanCellEditor = (value, onChange, context) => {
6
6
  const booleanValue = (() => {
7
7
  if (typeof value === 'boolean') {
@@ -1 +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
+ {"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,sBAAsB,GAAG,CACpC,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"}
@@ -0,0 +1,4 @@
1
+ import { type CountryCodeFieldProps } from '../../../scalars/components/country-code-field/index.js';
2
+ import type { CellContext, DataType } from '../../table/types.js';
3
+ export declare const buildCountryCellEditor: <T extends DataType>(countryFieldProps: Omit<CountryCodeFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=country-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/country-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,yDAAyD,CAAA;AACtH,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,QAAQ,EACvD,mBAAmB,IAAI,CAAC,qBAAqB,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAE3C,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAkB1G,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { CountryCodeField } from '../../../scalars/components/country-code-field/index.js';
3
+ export const buildCountryCellEditor = (countryFieldProps) => {
4
+ const CountryCellEditor = (value, onChange, context) => {
5
+ const countryValue = typeof value === 'string' ? value : String(value ?? '');
6
+ return (_jsx(CountryCodeField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...countryFieldProps, value: countryValue, onChange: (value) => {
7
+ onChange(value);
8
+ } }));
9
+ };
10
+ return CountryCellEditor;
11
+ };
12
+ //# sourceMappingURL=country-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/country-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAA8B,MAAM,yDAAyD,CAAA;AAGtH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,iBAA6E,EAC7E,EAAE;IACF,MAAM,iBAAiB,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QAC3G,MAAM,YAAY,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;QAE5E,OAAO,CACL,KAAC,gBAAgB,IACf,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,EACtB,SAAS,WACL,iBAAiB,EACrB,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,CAAC,KAAa,EAAE,EAAE;gBAC1B,QAAQ,CAAC,KAAK,CAAC,CAAA;YACjB,CAAC,GACD,CACH,CAAA;IACH,CAAC,CAAA;IAED,OAAO,iBAAiB,CAAA;AAC1B,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CurrencyCodeFieldProps } from '../../../scalars/components/currency-code-field/types.js';
2
+ import type { CellContext, DataType } from '../../table/types.js';
3
+ export declare const buildCurrencyCellEditor: <T extends DataType>(currencyFieldProps: Omit<CurrencyCodeFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=currency-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currency-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/currency-editor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAA;AACtG,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,QAAQ,EACxD,oBAAoB,IAAI,CAAC,sBAAsB,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAE5C,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAkB3G,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { CurrencyCodeField } from '../../../scalars/components/currency-code-field/currency-code-field.js';
3
+ export const buildCurrencyCellEditor = (currencyFieldProps) => {
4
+ const CurrencyCellEditor = (value, onChange, context) => {
5
+ const currencyValue = typeof value === 'string' ? value : String(value ?? '');
6
+ return (_jsx(CurrencyCodeField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...currencyFieldProps, value: currencyValue, onChange: (value) => {
7
+ onChange(value);
8
+ } }));
9
+ };
10
+ return CurrencyCellEditor;
11
+ };
12
+ //# sourceMappingURL=currency-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currency-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/currency-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wEAAwE,CAAA;AAI1G,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,kBAA+E,EAC/E,EAAE;IACF,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QAC5G,MAAM,aAAa,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;QAE7E,OAAO,CACL,KAAC,iBAAiB,IAChB,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,EACtB,SAAS,WACL,kBAAkB,EACtB,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;gBAClB,QAAQ,CAAC,KAAK,CAAC,CAAA;YACjB,CAAC,GACD,CACH,CAAA;IACH,CAAC,CAAA;IAED,OAAO,kBAAkB,CAAA;AAC3B,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { type DatePickerFieldProps } from '../../../scalars/components/date-picker-field/index.js';
2
+ import type { CellContext, DataType } from '../../table/types.js';
3
+ export declare const buildDateCellEditor: <T extends DataType>(datePickerFieldProps: Omit<DatePickerFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=date-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/date-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,wDAAwD,CAAA;AACnH,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,QAAQ,EACpD,sBAAsB,IAAI,CAAC,oBAAoB,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAEhD,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAiBvG,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { DatePickerField } from '../../../scalars/components/date-picker-field/index.js';
3
+ export const buildDateCellEditor = (datePickerFieldProps) => {
4
+ const DateCellEditor = (value, onChange, context) => {
5
+ const dateValue = value ? String(value) : '';
6
+ return (_jsx(DatePickerField, { name: context.column.field, className: "max-w-full", ...datePickerFieldProps, value: dateValue, onChange: (e) => {
7
+ onChange(e.target.value);
8
+ } }));
9
+ };
10
+ return DateCellEditor;
11
+ };
12
+ //# sourceMappingURL=date-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/date-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAA6B,MAAM,wDAAwD,CAAA;AAGnH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,oBAA+E,EAC/E,EAAE;IACF,MAAM,cAAc,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QACxG,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;QAE5C,OAAO,CACL,KAAC,eAAe,IACd,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,KAClB,oBAAoB,EACxB,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 DateTimePickerFieldProps } from '../../../scalars/components/date-time-picker-field/index.js';
2
+ import type { CellContext, DataType } from '../../table/types.js';
3
+ export declare const buildDateTimeCellEditor: <T extends DataType>(dateTimePickerFieldProps: Omit<DateTimePickerFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=datetime-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datetime-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/datetime-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,6DAA6D,CAAA;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,QAAQ,EACxD,0BAA0B,IAAI,CAAC,wBAAwB,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAEpD,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAiB3G,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { DateTimePickerField, } from '../../../scalars/components/date-time-picker-field/index.js';
3
+ export const buildDateTimeCellEditor = (dateTimePickerFieldProps) => {
4
+ const DateTimeCellEditor = (value, onChange, context) => {
5
+ const dateTimeValue = value ? String(value) : '';
6
+ return (_jsx(DateTimePickerField, { name: context.column.field, className: "max-w-full", ...dateTimePickerFieldProps, value: dateTimeValue, onChange: (e) => {
7
+ onChange(e.target.value);
8
+ } }));
9
+ };
10
+ return DateTimeCellEditor;
11
+ };
12
+ //# sourceMappingURL=datetime-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datetime-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/datetime-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,mBAAmB,GAEpB,MAAM,6DAA6D,CAAA;AAGpE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,wBAAuF,EACvF,EAAE;IACF,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QAC5G,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;QAEhD,OAAO,CACL,KAAC,mBAAmB,IAClB,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,KAClB,wBAAwB,EAC5B,KAAK,EAAE,aAAa,EACpB,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,kBAAkB,CAAA;AAC3B,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { type EmailFieldProps } from '../../../scalars/components/email-field/email-field.js';
2
+ import type { CellContext, DataType } from '../../table/types.js';
3
+ export declare const buildEmailCellEditor: <T extends DataType>(emailFieldProps: Omit<EmailFieldProps, "name" | "value" | "onChange">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=email-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/email-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,wDAAwD,CAAA;AACzG,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,QAAQ,EACrD,iBAAiB,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,aAErC,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,WAAW,WAAW,CAAC,CAAC,CAAC,4CAkBxG,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { EmailField } from '../../../scalars/components/email-field/email-field.js';
3
+ export const buildEmailCellEditor = (emailFieldProps) => {
4
+ const EmailCellEditor = (value, onChange, context) => {
5
+ const emailValue = typeof value === 'string' ? value : String(value ?? '');
6
+ return (_jsx(EmailField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...emailFieldProps, value: emailValue, onChange: (e) => {
7
+ onChange(e.target.value);
8
+ } }));
9
+ };
10
+ return EmailCellEditor;
11
+ };
12
+ //# sourceMappingURL=email-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/email-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAwB,MAAM,wDAAwD,CAAA;AAGzG,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,eAAqE,EACrE,EAAE;IACF,MAAM,eAAe,GAAG,CAAC,KAAc,EAAE,QAAqC,EAAE,OAAuB,EAAE,EAAE;QACzG,MAAM,UAAU,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;QAE1E,OAAO,CACL,KAAC,UAAU,IACT,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,EACtB,SAAS,WACL,eAAe,EACnB,KAAK,EAAE,UAAU,EACjB,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,eAAe,CAAA;AACxB,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { type SelectFieldProps } from '../../../scalars/components/fragments/select-field/index.js';
2
+ import type { CellContext, DataType } from '../../table/types.js';
3
+ export declare const buildEnumCellEditor: <T extends DataType>(selectFieldProps: Omit<SelectFieldProps, "name" | "value" | "onChange" | "selectionIcon" | "selectionIconPosition">) => (value: unknown, onChange: (newValue: unknown) => void, context: CellContext<T>) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=enum-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum-editor.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/enum-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,6DAA6D,CAAA;AAChH,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEjE,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,QAAQ,EACpD,kBAAkB,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,eAAe,GAAG,uBAAuB,CAAC,aAEpF,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 { SelectField } from '../../../scalars/components/fragments/select-field/index.js';
3
+ export const buildEnumCellEditor = (selectFieldProps) => {
4
+ const EnumCellEditor = (value, onChange, context) => {
5
+ const enumValue = typeof value === 'string' ? value : String(value ?? '');
6
+ return (_jsx(SelectField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...selectFieldProps, value: enumValue, onChange: (newValue) => {
7
+ onChange(newValue);
8
+ } }));
9
+ };
10
+ return EnumCellEditor;
11
+ };
12
+ //# sourceMappingURL=enum-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum-editor.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/enum-editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,6DAA6D,CAAA;AAGhH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,gBAAmH,EACnH,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,WAAW,IACV,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAC1B,SAAS,EAAC,YAAY,EACtB,SAAS,WACL,gBAAgB,EACpB,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE;gBACrB,QAAQ,CAAC,QAAQ,CAAC,CAAA;YACpB,CAAC,GACD,CACH,CAAA;IACH,CAAC,CAAA;IAED,OAAO,cAAc,CAAA;AACvB,CAAC,CAAA"}
@@ -1 +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"}
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;AAiBpF,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,OAAO,UAAU,KAAG,kBAAkB,CAAC,CAAC,EAAE,OAAO,CAqC/G,CAAA"}
@@ -1,18 +1,54 @@
1
- import { booleanCellEditorFactory } from './boolean-editor.js';
2
- import { numberCellEditorFactory } from './number-editor.js';
3
- import { stringCellEditorFactory } from './string-editor.js';
1
+ import { buildBooleanCellEditor } from './boolean-editor.js';
2
+ import { buildCountryCellEditor } from './country-editor.js';
3
+ import { buildDateCellEditor } from './date-editor.js';
4
+ import { buildDateTimeCellEditor } from './datetime-editor.js';
5
+ import { buildNumberCellEditor } from './number-editor.js';
6
+ import { buildStringCellEditor } from './string-editor.js';
7
+ import { buildTimeCellEditor } from './time-editor.js';
8
+ import { buildUrlCellEditor } from './url-editor.js';
9
+ import { buildPhidCellEditor } from './phid-editor.js';
10
+ import { buildOidCellEditor } from './oid-editor.js';
11
+ import { buildAidCellEditor } from './aid-editor.js';
12
+ import { buildEmailCellEditor } from './email-editor.js';
13
+ import { buildEnumCellEditor } from './enum-editor.js';
14
+ import { buildCurrencyCellEditor } from './currency-editor.js';
15
+ import { buildAmountCellEditor } from './amount-editor.js';
4
16
  export const getCellEditorFn = (type) => {
5
17
  switch (type) {
6
18
  case 'string':
7
- return stringCellEditorFactory({});
19
+ return buildStringCellEditor({});
8
20
  case 'number':
9
- return numberCellEditorFactory({});
21
+ return buildNumberCellEditor({});
10
22
  case 'boolean':
11
- return booleanCellEditorFactory({});
23
+ return buildBooleanCellEditor({});
24
+ case 'country':
25
+ return buildCountryCellEditor({});
26
+ case 'date':
27
+ return buildDateCellEditor({});
28
+ case 'datetime':
29
+ return buildDateTimeCellEditor({});
30
+ case 'time':
31
+ return buildTimeCellEditor({});
32
+ case 'url':
33
+ return buildUrlCellEditor({});
34
+ case 'phid':
35
+ return buildPhidCellEditor({});
36
+ case 'oid':
37
+ return buildOidCellEditor({});
38
+ case 'aid':
39
+ return buildAidCellEditor({});
40
+ case 'email':
41
+ return buildEmailCellEditor({});
42
+ case 'enum':
43
+ return buildEnumCellEditor({});
44
+ case 'currency':
45
+ return buildCurrencyCellEditor({});
46
+ case 'amount':
47
+ return buildAmountCellEditor({});
12
48
  case undefined:
13
- return stringCellEditorFactory({});
49
+ return buildStringCellEditor({});
14
50
  default:
15
- return stringCellEditorFactory({});
51
+ return buildStringCellEditor({});
16
52
  }
17
53
  };
18
54
  //# sourceMappingURL=get-cell-editor-fn.js.map
@@ -1 +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"}
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,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAE1D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAgC,IAAiB,EAAkC,EAAE;IAClH,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,QAAQ;YACX,OAAO,qBAAqB,CAAC,EAAE,CAAC,CAAA;QAClC,KAAK,QAAQ;YACX,OAAO,qBAAqB,CAAC,EAAE,CAAC,CAAA;QAClC,KAAK,SAAS;YACZ,OAAO,sBAAsB,CAAC,EAAE,CAAC,CAAA;QACnC,KAAK,SAAS;YACZ,OAAO,sBAAsB,CAAC,EAAE,CAAC,CAAA;QACnC,KAAK,MAAM;YACT,OAAO,mBAAmB,CAAC,EAAE,CAAC,CAAA;QAChC,KAAK,UAAU;YACb,OAAO,uBAAuB,CAAC,EAAE,CAAC,CAAA;QACpC,KAAK,MAAM;YACT,OAAO,mBAAmB,CAAC,EAAE,CAAC,CAAA;QAChC,KAAK,KAAK;YACR,OAAO,kBAAkB,CAAC,EAAE,CAAC,CAAA;QAC/B,KAAK,MAAM;YACT,OAAO,mBAAmB,CAAC,EAAE,CAAC,CAAA;QAChC,KAAK,KAAK;YACR,OAAO,kBAAkB,CAAC,EAAE,CAAC,CAAA;QAC/B,KAAK,KAAK;YACR,OAAO,kBAAkB,CAAC,EAAE,CAAC,CAAA;QAC/B,KAAK,OAAO;YACV,OAAO,oBAAoB,CAAC,EAAE,CAAC,CAAA;QACjC,KAAK,MAAM;YACT,OAAO,mBAAmB,CAAC,EAAE,CAAC,CAAA;QAChC,KAAK,UAAU;YACb,OAAO,uBAAuB,CAAC,EAAE,CAAC,CAAA;QACpC,KAAK,QAAQ;YACX,OAAO,qBAAqB,CAAC,EAAE,CAAC,CAAA;QAClC,KAAK,SAAS;YACZ,OAAO,qBAAqB,CAAC,EAAE,CAAC,CAAA;QAClC;YACE,OAAO,qBAAqB,CAAC,EAAE,CAAC,CAAA;IACpC,CAAC;AACH,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- export { booleanCellEditorFactory } from './boolean-editor.js';
2
- export { numberCellEditorFactory } from './number-editor.js';
3
- export { stringCellEditorFactory } from './string-editor.js';
1
+ export { buildBooleanCellEditor } from './boolean-editor.js';
2
+ export { buildNumberCellEditor } from './number-editor.js';
3
+ export { buildStringCellEditor } from './string-editor.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1,4 +1,4 @@
1
- export { booleanCellEditorFactory } from './boolean-editor.js';
2
- export { numberCellEditorFactory } from './number-editor.js';
3
- export { stringCellEditorFactory } from './string-editor.js';
1
+ export { buildBooleanCellEditor } from './boolean-editor.js';
2
+ export { buildNumberCellEditor } from './number-editor.js';
3
+ export { buildStringCellEditor } from './string-editor.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/table/components/default-cell-editors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA"}