@powerhousedao/document-engineering 1.14.0 → 1.16.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 (240) hide show
  1. package/dist/src/scalars/components/amount-field/amount-currency-validations.d.ts +1 -1
  2. package/dist/src/scalars/components/amount-field/amount-currency-validations.d.ts.map +1 -1
  3. package/dist/src/scalars/components/amount-field/amount-currency-validations.js +6 -3
  4. package/dist/src/scalars/components/amount-field/amount-currency-validations.js.map +1 -1
  5. package/dist/src/scalars/components/amount-field/amount-field-validations.d.ts +1 -1
  6. package/dist/src/scalars/components/amount-field/amount-field-validations.d.ts.map +1 -1
  7. package/dist/src/scalars/components/amount-field/amount-field-validations.js +2 -2
  8. package/dist/src/scalars/components/amount-field/amount-field-validations.js.map +1 -1
  9. package/dist/src/scalars/components/date-picker-field/date-picker-validations.js +6 -6
  10. package/dist/src/scalars/components/date-picker-field/date-picker-validations.js.map +1 -1
  11. package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field-validations.d.ts.map +1 -1
  12. package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field-validations.js +14 -7
  13. package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field-validations.js.map +1 -1
  14. package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.js +1 -1
  15. package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.js.map +1 -1
  16. package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.js +2 -2
  17. package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.js.map +1 -1
  18. package/dist/src/scalars/components/examples/reset-button/reset-button.js +2 -2
  19. package/dist/src/scalars/components/examples/reset-button/reset-button.js.map +1 -1
  20. package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.d.ts.map +1 -1
  21. package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.js +2 -2
  22. package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.js.map +1 -1
  23. package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.js +3 -3
  24. package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.js.map +1 -1
  25. package/dist/src/scalars/components/fragments/command/command.d.ts +6 -6
  26. package/dist/src/scalars/components/fragments/command/command.d.ts.map +1 -1
  27. package/dist/src/scalars/components/fragments/command/command.js.map +1 -1
  28. package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.d.ts.map +1 -1
  29. package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.js +1 -2
  30. package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.js.map +1 -1
  31. package/dist/src/scalars/lib/decorators.js +2 -2
  32. package/dist/src/scalars/lib/decorators.js.map +1 -1
  33. package/dist/src/scalars/lib/value-cast.js +4 -4
  34. package/dist/src/scalars/lib/value-cast.js.map +1 -1
  35. package/dist/src/ui/components/button/button.d.ts +11 -0
  36. package/dist/src/ui/components/button/button.d.ts.map +1 -0
  37. package/dist/src/ui/components/button/button.js +32 -0
  38. package/dist/src/ui/components/button/button.js.map +1 -0
  39. package/dist/src/ui/components/button/index.d.ts +2 -0
  40. package/dist/src/ui/components/button/index.d.ts.map +1 -0
  41. package/dist/src/ui/components/button/index.js +2 -0
  42. package/dist/src/ui/components/button/index.js.map +1 -0
  43. package/dist/src/ui/components/confirm/alert-dialog.d.ts +21 -0
  44. package/dist/src/ui/components/confirm/alert-dialog.d.ts.map +1 -0
  45. package/dist/src/ui/components/confirm/alert-dialog.js +40 -0
  46. package/dist/src/ui/components/confirm/alert-dialog.js.map +1 -0
  47. package/dist/src/ui/components/confirm/confirm.d.ts +12 -0
  48. package/dist/src/ui/components/confirm/confirm.d.ts.map +1 -0
  49. package/dist/src/ui/components/confirm/confirm.js +14 -0
  50. package/dist/src/ui/components/confirm/confirm.js.map +1 -0
  51. package/dist/src/ui/components/confirm/index.d.ts +3 -0
  52. package/dist/src/ui/components/confirm/index.d.ts.map +1 -0
  53. package/dist/src/ui/components/confirm/index.js +2 -0
  54. package/dist/src/ui/components/confirm/index.js.map +1 -0
  55. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.d.ts.map +1 -1
  56. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.js +13 -4
  57. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.js.map +1 -1
  58. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.d.ts.map +1 -1
  59. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.js +2 -2
  60. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.js.map +1 -1
  61. package/dist/src/ui/components/data-entry/currency-code-picker/types.d.ts +2 -4
  62. package/dist/src/ui/components/data-entry/currency-code-picker/types.d.ts.map +1 -1
  63. package/dist/src/ui/components/data-entry/date-picker/subcomponents/date-picker-diff/date-picker-diff.js +1 -1
  64. package/dist/src/ui/components/data-entry/date-picker/subcomponents/date-picker-diff/date-picker-diff.js.map +1 -1
  65. package/dist/src/ui/components/data-entry/date-picker/subcomponents/month-grid.js +2 -2
  66. package/dist/src/ui/components/data-entry/date-picker/subcomponents/month-grid.js.map +1 -1
  67. package/dist/src/ui/components/data-entry/date-picker/use-date-picker.d.ts.map +1 -1
  68. package/dist/src/ui/components/data-entry/date-picker/use-date-picker.js +3 -3
  69. package/dist/src/ui/components/data-entry/date-picker/use-date-picker.js.map +1 -1
  70. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker-content.d.ts +3 -1
  71. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker-content.d.ts.map +1 -1
  72. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker-content.js +2 -2
  73. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker-content.js.map +1 -1
  74. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.d.ts.map +1 -1
  75. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.js +2 -2
  76. package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.js.map +1 -1
  77. package/dist/src/ui/components/data-entry/date-time-picker/subcomponent/date-time-picker-diff.d.ts.map +1 -1
  78. package/dist/src/ui/components/data-entry/date-time-picker/subcomponent/date-time-picker-diff.js +4 -5
  79. package/dist/src/ui/components/data-entry/date-time-picker/subcomponent/date-time-picker-diff.js.map +1 -1
  80. package/dist/src/ui/components/data-entry/date-time-picker/use-date-time-picker.d.ts +1 -2
  81. package/dist/src/ui/components/data-entry/date-time-picker/use-date-time-picker.d.ts.map +1 -1
  82. package/dist/src/ui/components/data-entry/date-time-picker/use-date-time-picker.js +62 -89
  83. package/dist/src/ui/components/data-entry/date-time-picker/use-date-time-picker.js.map +1 -1
  84. package/dist/src/ui/components/data-entry/date-time-picker/utils.d.ts +11 -1
  85. package/dist/src/ui/components/data-entry/date-time-picker/utils.d.ts.map +1 -1
  86. package/dist/src/ui/components/data-entry/date-time-picker/utils.js +70 -3
  87. package/dist/src/ui/components/data-entry/date-time-picker/utils.js.map +1 -1
  88. package/dist/src/ui/components/data-entry/input/splitted-input-diff.d.ts +3 -1
  89. package/dist/src/ui/components/data-entry/input/splitted-input-diff.d.ts.map +1 -1
  90. package/dist/src/ui/components/data-entry/input/splitted-input-diff.js +4 -2
  91. package/dist/src/ui/components/data-entry/input/splitted-input-diff.js.map +1 -1
  92. package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.d.ts.map +1 -1
  93. package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.js +21 -2
  94. package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.js.map +1 -1
  95. package/dist/src/ui/components/data-entry/number-input/number-input.d.ts.map +1 -1
  96. package/dist/src/ui/components/data-entry/number-input/number-input.js +1 -1
  97. package/dist/src/ui/components/data-entry/number-input/number-input.js.map +1 -1
  98. package/dist/src/ui/components/data-entry/number-input/types.d.ts +2 -2
  99. package/dist/src/ui/components/data-entry/number-input/types.d.ts.map +1 -1
  100. package/dist/src/ui/components/data-entry/select/command-list-item.d.ts.map +1 -1
  101. package/dist/src/ui/components/data-entry/select/command-list-item.js +2 -7
  102. package/dist/src/ui/components/data-entry/select/command-list-item.js.map +1 -1
  103. package/dist/src/ui/components/data-entry/select/render-icon.d.ts +3 -0
  104. package/dist/src/ui/components/data-entry/select/render-icon.d.ts.map +1 -0
  105. package/dist/src/ui/components/data-entry/select/render-icon.js +10 -0
  106. package/dist/src/ui/components/data-entry/select/render-icon.js.map +1 -0
  107. package/dist/src/ui/components/data-entry/select/select-diff.d.ts +3 -1
  108. package/dist/src/ui/components/data-entry/select/select-diff.d.ts.map +1 -1
  109. package/dist/src/ui/components/data-entry/select/select-diff.js +2 -2
  110. package/dist/src/ui/components/data-entry/select/select-diff.js.map +1 -1
  111. package/dist/src/ui/components/data-entry/select/select.d.ts.map +1 -1
  112. package/dist/src/ui/components/data-entry/select/select.js +4 -2
  113. package/dist/src/ui/components/data-entry/select/select.js.map +1 -1
  114. package/dist/src/ui/components/data-entry/select/selected-content.d.ts.map +1 -1
  115. package/dist/src/ui/components/data-entry/select/selected-content.js +1 -6
  116. package/dist/src/ui/components/data-entry/select/selected-content.js.map +1 -1
  117. package/dist/src/ui/components/data-entry/select/types.d.ts +3 -1
  118. package/dist/src/ui/components/data-entry/select/types.d.ts.map +1 -1
  119. package/dist/src/ui/components/data-entry/text-input/text-input.d.ts.map +1 -1
  120. package/dist/src/ui/components/data-entry/text-input/text-input.js +1 -1
  121. package/dist/src/ui/components/data-entry/text-input/text-input.js.map +1 -1
  122. package/dist/src/ui/components/data-entry/textarea/textarea.d.ts.map +1 -1
  123. package/dist/src/ui/components/data-entry/textarea/textarea.js +1 -1
  124. package/dist/src/ui/components/data-entry/textarea/textarea.js.map +1 -1
  125. package/dist/src/ui/components/data-entry/time-picker/use-time-picker.d.ts.map +1 -1
  126. package/dist/src/ui/components/data-entry/time-picker/use-time-picker.js +14 -8
  127. package/dist/src/ui/components/data-entry/time-picker/use-time-picker.js.map +1 -1
  128. package/dist/src/ui/components/data-entry/time-picker/utils.d.ts +1 -0
  129. package/dist/src/ui/components/data-entry/time-picker/utils.d.ts.map +1 -1
  130. package/dist/src/ui/components/data-entry/time-picker/utils.js +11 -0
  131. package/dist/src/ui/components/data-entry/time-picker/utils.js.map +1 -1
  132. package/dist/src/ui/components/data-entry/toggle/subcomponents/toogle-diff.d.ts +2 -2
  133. package/dist/src/ui/components/data-entry/toggle/subcomponents/toogle-diff.d.ts.map +1 -1
  134. package/dist/src/ui/components/data-entry/toggle/subcomponents/toogle-diff.js +2 -2
  135. package/dist/src/ui/components/data-entry/toggle/subcomponents/toogle-diff.js.map +1 -1
  136. package/dist/src/ui/components/data-entry/toggle/toggle.d.ts.map +1 -1
  137. package/dist/src/ui/components/data-entry/toggle/toggle.js +1 -1
  138. package/dist/src/ui/components/data-entry/toggle/toggle.js.map +1 -1
  139. package/dist/src/ui/components/data-entry/url-input/url-input-diff.d.ts +1 -1
  140. package/dist/src/ui/components/data-entry/url-input/url-input-diff.d.ts.map +1 -1
  141. package/dist/src/ui/components/data-entry/url-input/url-input-diff.js +2 -2
  142. package/dist/src/ui/components/data-entry/url-input/url-input-diff.js.map +1 -1
  143. package/dist/src/ui/components/data-entry/url-input/url-input.d.ts.map +1 -1
  144. package/dist/src/ui/components/data-entry/url-input/url-input.js +1 -1
  145. package/dist/src/ui/components/data-entry/url-input/url-input.js.map +1 -1
  146. package/dist/src/ui/components/index.d.ts +2 -0
  147. package/dist/src/ui/components/index.d.ts.map +1 -1
  148. package/dist/src/ui/components/index.js +3 -0
  149. package/dist/src/ui/components/index.js.map +1 -1
  150. package/dist/src/ui/components/object-set-table/examples/custom-rendering/custom-rendering.d.ts.map +1 -1
  151. package/dist/src/ui/components/object-set-table/examples/custom-rendering/custom-rendering.js +0 -1
  152. package/dist/src/ui/components/object-set-table/examples/custom-rendering/custom-rendering.js.map +1 -1
  153. package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.d.ts +5 -0
  154. package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.d.ts.map +1 -0
  155. package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.js +108 -0
  156. package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.js.map +1 -0
  157. package/dist/src/ui/components/object-set-table/hooks/useGlobalTableKeyEvents.d.ts.map +1 -1
  158. package/dist/src/ui/components/object-set-table/hooks/useGlobalTableKeyEvents.js +17 -2
  159. package/dist/src/ui/components/object-set-table/hooks/useGlobalTableKeyEvents.js.map +1 -1
  160. package/dist/src/ui/components/object-set-table/logic/selection-manager.d.ts +4 -0
  161. package/dist/src/ui/components/object-set-table/logic/selection-manager.d.ts.map +1 -1
  162. package/dist/src/ui/components/object-set-table/logic/selection-manager.js +6 -0
  163. package/dist/src/ui/components/object-set-table/logic/selection-manager.js.map +1 -1
  164. package/dist/src/ui/components/object-set-table/logic/table-api.d.ts +25 -1
  165. package/dist/src/ui/components/object-set-table/logic/table-api.d.ts.map +1 -1
  166. package/dist/src/ui/components/object-set-table/logic/table-api.js +82 -3
  167. package/dist/src/ui/components/object-set-table/logic/table-api.js.map +1 -1
  168. package/dist/src/ui/components/object-set-table/logic/types.d.ts +6 -1
  169. package/dist/src/ui/components/object-set-table/logic/types.d.ts.map +1 -1
  170. package/dist/src/ui/components/object-set-table/object-set-table.d.ts +3 -0
  171. package/dist/src/ui/components/object-set-table/object-set-table.d.ts.map +1 -1
  172. package/dist/src/ui/components/object-set-table/object-set-table.js +10 -1
  173. package/dist/src/ui/components/object-set-table/object-set-table.js.map +1 -1
  174. package/dist/src/ui/components/object-set-table/subcomponents/body.d.ts.map +1 -1
  175. package/dist/src/ui/components/object-set-table/subcomponents/body.js +11 -5
  176. package/dist/src/ui/components/object-set-table/subcomponents/body.js.map +1 -1
  177. package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.d.ts +5 -1
  178. package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.d.ts.map +1 -1
  179. package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.js +8 -2
  180. package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.js.map +1 -1
  181. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/empty-cell.d.ts +9 -0
  182. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/empty-cell.d.ts.map +1 -0
  183. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/empty-cell.js +7 -0
  184. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/empty-cell.js.map +1 -0
  185. package/dist/src/ui/components/object-set-table/subcomponents/cells/{render-cell.d.ts → render-cell/render-cell.d.ts} +1 -1
  186. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.d.ts.map +1 -0
  187. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.js +34 -0
  188. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.js.map +1 -0
  189. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/use-cell-logic.d.ts +16 -0
  190. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/use-cell-logic.d.ts.map +1 -0
  191. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/use-cell-logic.js +44 -0
  192. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/use-cell-logic.js.map +1 -0
  193. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.d.ts +3 -0
  194. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.d.ts.map +1 -0
  195. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.js +22 -0
  196. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.js.map +1 -0
  197. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.d.ts +3 -0
  198. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.d.ts.map +1 -0
  199. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.js +18 -0
  200. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.js.map +1 -0
  201. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.d.ts +3 -0
  202. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.d.ts.map +1 -0
  203. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.js +9 -0
  204. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.js.map +1 -0
  205. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/text-editor.d.ts +3 -0
  206. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/text-editor.d.ts.map +1 -0
  207. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/text-editor.js +9 -0
  208. package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/text-editor.js.map +1 -0
  209. package/dist/src/ui/components/object-set-table/subcomponents/rows/render-row.js +2 -2
  210. package/dist/src/ui/components/object-set-table/subcomponents/rows/render-row.js.map +1 -1
  211. package/dist/src/ui/components/object-set-table/subcomponents/table-focus-trap.d.ts.map +1 -1
  212. package/dist/src/ui/components/object-set-table/subcomponents/table-focus-trap.js +13 -1
  213. package/dist/src/ui/components/object-set-table/subcomponents/table-focus-trap.js.map +1 -1
  214. package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.d.ts.map +1 -1
  215. package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.js +8 -0
  216. package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.js.map +1 -1
  217. package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.d.ts +2 -0
  218. package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.d.ts.map +1 -1
  219. package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.js +6 -1
  220. package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.js.map +1 -1
  221. package/dist/src/ui/components/object-set-table/types.d.ts +29 -4
  222. package/dist/src/ui/components/object-set-table/types.d.ts.map +1 -1
  223. package/dist/src/ui/components/object-set-table/utils.d.ts +9 -0
  224. package/dist/src/ui/components/object-set-table/utils.d.ts.map +1 -1
  225. package/dist/src/ui/components/object-set-table/utils.js +23 -1
  226. package/dist/src/ui/components/object-set-table/utils.js.map +1 -1
  227. package/dist/style.css +347 -0
  228. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  229. package/package.json +4 -4
  230. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker-diff.d.ts +0 -9
  231. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker-diff.d.ts.map +0 -1
  232. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker-diff.js +0 -8
  233. package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker-diff.js.map +0 -1
  234. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.d.ts +0 -9
  235. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.d.ts.map +0 -1
  236. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.js +0 -8
  237. package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.js.map +0 -1
  238. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell.d.ts.map +0 -1
  239. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell.js +0 -62
  240. package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/document-engineering",
3
- "version": "1.14.0",
3
+ "version": "1.16.0",
4
4
  "description": "",
5
5
  "files": [
6
6
  "/dist"
@@ -103,7 +103,7 @@
103
103
  "@testing-library/user-event": "^14.5.2",
104
104
  "@types/diff": "^7.0.2",
105
105
  "@types/jest": "^29.5.14",
106
- "@types/node": "^22.13.5",
106
+ "@types/node": "^22.15.15",
107
107
  "@types/react": "^18.3.12",
108
108
  "@types/react-dom": "^18.3.1",
109
109
  "@types/react-virtualized": "^9.22.0",
@@ -145,9 +145,8 @@
145
145
  },
146
146
  "dependencies": {
147
147
  "@internationalized/date": "^3.5.6",
148
- "@powerhousedao/design-system": "1.34.2-canary.59",
148
+ "@radix-ui/react-alert-dialog": "^1.1.14",
149
149
  "@radix-ui/react-checkbox": "^1.1.2",
150
- "@radix-ui/react-dialog": "^1.1.2",
151
150
  "@radix-ui/react-dropdown-menu": "^2.1.5",
152
151
  "@radix-ui/react-popover": "^1.1.2",
153
152
  "@radix-ui/react-radio-group": "^1.2.1",
@@ -168,6 +167,7 @@
168
167
  "graphql": "^16.9.0",
169
168
  "nanoid": "^5.0.9",
170
169
  "react-circle-flags": "^0.0.22",
170
+ "react-confirm": "^0.4.0",
171
171
  "react-day-picker": "9.4.3",
172
172
  "react-hook-form": "^7.53.0",
173
173
  "react-virtualized": "^9.22.6",
@@ -1,9 +0,0 @@
1
- import type { CountryCodePickerProps, CountryCodePickerWithDifference } from './types.js';
2
- interface CountryCodePickerDiffProps extends CountryCodePickerWithDifference {
3
- value: string;
4
- label: CountryCodePickerProps['label'];
5
- required: CountryCodePickerProps['required'];
6
- }
7
- declare const CountryCodePickerDiff: ({ value, label, required, viewMode, baseValue, }: CountryCodePickerDiffProps) => import("react/jsx-runtime").JSX.Element;
8
- export { CountryCodePickerDiff };
9
- //# sourceMappingURL=country-code-picker-diff.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"country-code-picker-diff.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/country-code-picker/country-code-picker-diff.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAA;AAEzF,UAAU,0BAA2B,SAAQ,+BAA+B;IAC1E,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAA;IACtC,QAAQ,EAAE,sBAAsB,CAAC,UAAU,CAAC,CAAA;CAC7C;AAED,QAAA,MAAM,qBAAqB,GAAI,kDAM5B,0BAA0B,4CAW5B,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { FormGroup, FormLabel } from '../../../../scalars/components/fragments/index.js';
3
- import { SplittedInputDiff } from '../input/splitted-input-diff.js';
4
- const CountryCodePickerDiff = ({ value = '', label, required, viewMode, baseValue = '', }) => {
5
- return (_jsxs(FormGroup, { children: [label && (_jsx(FormLabel, { disabled: true, required: required, children: label })), _jsx(SplittedInputDiff, { baseValue: baseValue, value: value, viewMode: viewMode, diffMode: "sentences" })] }));
6
- };
7
- export { CountryCodePickerDiff };
8
- //# sourceMappingURL=country-code-picker-diff.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"country-code-picker-diff.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/country-code-picker/country-code-picker-diff.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,mDAAmD,CAAA;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AASnE,MAAM,qBAAqB,GAAG,CAAC,EAC7B,KAAK,GAAG,EAAE,EACV,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,GAAG,EAAE,GACa,EAAE,EAAE;IAC/B,OAAO,CACL,MAAC,SAAS,eACP,KAAK,IAAI,CACR,KAAC,SAAS,IAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,YAC1C,KAAK,GACI,CACb,EACD,KAAC,iBAAiB,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAC,WAAW,GAAG,IACxF,CACb,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
@@ -1,9 +0,0 @@
1
- import type { CurrencyCodePickerProps, CurrencyCodePickerWithDifference } from './types.js';
2
- interface CurrencyCodePickerDiffProps extends CurrencyCodePickerWithDifference {
3
- value: string;
4
- label: CurrencyCodePickerProps['label'];
5
- required: CurrencyCodePickerProps['required'];
6
- }
7
- declare const CurrencyCodePickerDiff: ({ value, label, required, viewMode, baseValue, }: CurrencyCodePickerDiffProps) => import("react/jsx-runtime").JSX.Element;
8
- export { CurrencyCodePickerDiff };
9
- //# sourceMappingURL=currency-code-picker-diff.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"currency-code-picker-diff.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,gCAAgC,EAAE,MAAM,YAAY,CAAA;AAE3F,UAAU,2BAA4B,SAAQ,gCAAgC;IAC5E,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,uBAAuB,CAAC,OAAO,CAAC,CAAA;IACvC,QAAQ,EAAE,uBAAuB,CAAC,UAAU,CAAC,CAAA;CAC9C;AAED,QAAA,MAAM,sBAAsB,GAAI,kDAM7B,2BAA2B,4CAW7B,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { FormGroup, FormLabel } from '../../../../scalars/components/fragments/index.js';
3
- import { SplittedInputDiff } from '../input/splitted-input-diff.js';
4
- const CurrencyCodePickerDiff = ({ value = '', label, required, viewMode, baseValue = '', }) => {
5
- return (_jsxs(FormGroup, { children: [label && (_jsx(FormLabel, { disabled: true, required: required, children: label })), _jsx(SplittedInputDiff, { baseValue: baseValue, value: value, viewMode: viewMode, diffMode: "sentences" })] }));
6
- };
7
- export { CurrencyCodePickerDiff };
8
- //# sourceMappingURL=currency-code-picker-diff.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"currency-code-picker-diff.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/currency-code-picker/currency-code-picker-diff.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,mDAAmD,CAAA;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AASnE,MAAM,sBAAsB,GAAG,CAAC,EAC9B,KAAK,GAAG,EAAE,EACV,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,GAAG,EAAE,GACc,EAAE,EAAE;IAChC,OAAO,CACL,MAAC,SAAS,eACP,KAAK,IAAI,CACR,KAAC,SAAS,IAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,YAC1C,KAAK,GACI,CACb,EACD,KAAC,iBAAiB,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAC,WAAW,GAAG,IACxF,CACb,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"render-cell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/render-cell.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAe,SAAS,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAKtE,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,4CA4FpB,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,62 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useCallback } from 'react';
3
- import { Input } from '../../../data-entry/input/index.js';
4
- import { isCellEqual } from '../../utils.js';
5
- import { useInternalTableState } from '../table-provider/table-provider.js';
6
- import { DefaultTableCell } from './default-cell.js';
7
- const RenderCell = ({ rowItem, column, rowIndex, columnIndex, renderEmptyCell = false, }) => {
8
- const { config, state: { dispatch, selectedCellIndex, isCellEditMode }, api, } = useInternalTableState();
9
- /**
10
- * Create a handler for the click event on the table cell
11
- * This handler is used to enter cell edit mode or select a cell
12
- */
13
- const createCellClickHandler = useCallback((index, column, columnDef) => (e) => {
14
- // if the cell is being edited, ignore clicking on it
15
- if (isCellEditMode && selectedCellIndex?.row === index && selectedCellIndex.column === column) {
16
- return;
17
- }
18
- // if shift or ctrl is pressed, the user is probably trying to select rows
19
- if (!e.ctrlKey && !e.metaKey && !e.shiftKey) {
20
- if (e.detail === 2 && columnDef.editable) {
21
- // TODO: move this to the api
22
- dispatch?.({
23
- type: 'ENTER_CELL_EDIT_MODE',
24
- payload: { row: index, column },
25
- });
26
- }
27
- else {
28
- api.selection.selectCell(index, column);
29
- }
30
- }
31
- }, [dispatch, isCellEditMode]);
32
- const currentCellIndex = {
33
- row: rowIndex,
34
- column: columnIndex,
35
- };
36
- const isThisCellSelected = isCellEqual(selectedCellIndex, currentCellIndex);
37
- /**
38
- * If the cell is empty, we don't want to render anything
39
- * so we're going to return a default table cell with no content
40
- */
41
- if (renderEmptyCell) {
42
- return (_jsx(DefaultTableCell, { onClick: createCellClickHandler(rowIndex, columnIndex, column), isSelected: isThisCellSelected, isEditable: false }, column.field));
43
- }
44
- const cellContext = {
45
- row: rowItem,
46
- column,
47
- rowIndex,
48
- columnIndex,
49
- tableConfig: config,
50
- };
51
- // get and format the cell value
52
- const cellValue = column.valueFormatter?.(column.valueGetter?.(rowItem, cellContext), cellContext);
53
- const isThisCellEditMode = isCellEditMode && isThisCellSelected;
54
- return (_jsx(DefaultTableCell, { onClick: createCellClickHandler(rowIndex, columnIndex, column), isSelected: isThisCellSelected, isEditable: column.editable ?? false, children: isThisCellEditMode ? (_jsx(Input, { className: "max-w-full", autoFocus: true, defaultValue: column.valueGetter?.(rowItem, cellContext), onKeyDown: (e) => {
55
- if (e.key === 'Enter') {
56
- const newValue = e.target.value;
57
- column.onSave?.(newValue, cellContext);
58
- }
59
- } })) : (column.renderCell?.(cellValue, cellContext)) }, column.field));
60
- };
61
- export { RenderCell };
62
- //# sourceMappingURL=render-cell.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render-cell.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/object-set-table/subcomponents/cells/render-cell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,oCAAoC,CAAA;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAUpD,MAAM,UAAU,GAAG,CAAqB,EACtC,OAAO,EACP,MAAM,EACN,QAAQ,EACR,WAAW,EACX,eAAe,GAAG,KAAK,GACJ,EAAE,EAAE;IACvB,MAAM,EACJ,MAAM,EACN,KAAK,EAAE,EAAE,QAAQ,EAAE,iBAAiB,EAAE,cAAc,EAAE,EACtD,GAAG,GACJ,GAAG,qBAAqB,EAAK,CAAA;IAE9B;;;OAGG;IACH,MAAM,sBAAsB,GAAG,WAAW,CACxC,CAAC,KAAa,EAAE,MAAc,EAAE,SAAuB,EAAE,EAAE,CAAC,CAAC,CAAyC,EAAE,EAAE;QACxG,qDAAqD;QACrD,IAAI,cAAc,IAAI,iBAAiB,EAAE,GAAG,KAAK,KAAK,IAAI,iBAAiB,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;YAC9F,OAAM;QACR,CAAC;QAED,0EAA0E;QAC1E,IAAI,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;YAC5C,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC;gBACzC,6BAA6B;gBAC7B,QAAQ,EAAE,CAAC;oBACT,IAAI,EAAE,sBAAsB;oBAC5B,OAAO,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE;iBAChC,CAAC,CAAA;YACJ,CAAC;iBAAM,CAAC;gBACN,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;YACzC,CAAC;QACH,CAAC;IACH,CAAC,EACD,CAAC,QAAQ,EAAE,cAAc,CAAC,CAC3B,CAAA;IAED,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;;;OAGG;IACH,IAAI,eAAe,EAAE,CAAC;QACpB,OAAO,CACL,KAAC,gBAAgB,IAEf,OAAO,EAAE,sBAAsB,CAAC,QAAQ,EAAE,WAAW,EAAE,MAAM,CAAC,EAC9D,UAAU,EAAE,kBAAkB,EAC9B,UAAU,EAAE,KAAK,IAHZ,MAAM,CAAC,KAAK,CAIjB,CACH,CAAA;IACH,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,sBAAsB,CAAC,QAAQ,EAAE,WAAW,EAAE,MAAM,CAAC,EAC9D,UAAU,EAAE,kBAAkB,EAC9B,UAAU,EAAE,MAAM,CAAC,QAAQ,IAAI,KAAK,YAEnC,kBAAkB,CAAC,CAAC,CAAC,CACpB,KAAC,KAAK,IACJ,SAAS,EAAC,YAAY,EACtB,SAAS,QACT,YAAY,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,WAAW,CAAW,EAClE,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;gBACf,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE,CAAC;oBACtB,MAAM,QAAQ,GAAI,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAA;oBACrD,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAA;gBACxC,CAAC;YACH,CAAC,GACD,CACH,CAAC,CAAC,CAAC,CACF,MAAM,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,CAC5C,IAnBI,MAAM,CAAC,KAAK,CAoBA,CACpB,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}