@leav/ui 0.1.0 → 0.1.2

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 (372) hide show
  1. package/README.md +1 -1
  2. package/dist/__mocks__/common/attribute.d.ts +2 -2
  3. package/dist/__mocks__/common/attribute.js.map +1 -1
  4. package/dist/__mocks__/common/form.d.ts +1 -1
  5. package/dist/antdTheme/index.js +0 -20
  6. package/dist/antdTheme/index.js.map +1 -1
  7. package/dist/components/AttributesSelectionList/sharedComponents.d.ts +3 -3
  8. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.d.ts +12 -0
  9. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +35 -0
  10. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -0
  11. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.d.ts +2 -0
  12. package/dist/components/{RecordEdition/EditRecord/_hooks/useHandleDeleteValues → LibraryItemsList/CreateNewRecordButton}/index.js +2 -1
  13. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js.map +1 -0
  14. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +3 -8
  15. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  16. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +4 -13
  17. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js.map +1 -1
  18. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +3 -28
  19. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js.map +1 -1
  20. package/dist/components/RecordEdition/EditRecord/EditRecord.js +251 -32
  21. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  22. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js.map +1 -0
  23. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js.map +1 -0
  24. package/dist/components/RecordEdition/EditRecord/creationErrorContext.js.map +1 -0
  25. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +1 -1
  26. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +5 -3
  27. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  28. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -0
  29. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +1 -1
  30. package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.d.ts +1 -1
  31. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.d.ts +1 -0
  32. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.d.ts +1 -0
  33. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.d.ts +1 -1
  34. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js +1 -1
  35. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js.map +1 -1
  36. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.d.ts +1 -1
  37. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js +6 -1
  38. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  39. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.d.ts +1 -1
  40. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.d.ts +1 -1
  41. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +1 -1
  42. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +1 -1
  43. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +1 -1
  44. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +6 -2
  45. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +1 -1
  46. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.d.ts +1 -1
  47. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +1 -1
  48. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js.map +1 -1
  49. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +1 -1
  50. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +1 -1
  51. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js.map +1 -1
  52. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.d.ts +1 -1
  53. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js +1 -1
  54. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js.map +1 -1
  55. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
  56. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.d.ts +1 -1
  57. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.d.ts +1 -1
  58. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.d.ts +1 -1
  59. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
  60. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.d.ts +1 -1
  61. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +7 -5
  62. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  63. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +1 -1
  64. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +10 -5
  65. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  66. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +1 -1
  67. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +1 -1
  68. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +1 -1
  69. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.d.ts +1 -1
  70. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +1 -1
  71. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +1 -1
  72. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +1 -1
  73. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +1 -1
  74. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +1 -1
  75. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +1 -1
  76. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  77. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.d.ts +1 -1
  78. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.d.ts +1 -1
  79. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +7 -5
  80. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  81. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.d.ts +1 -1
  82. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +3 -2
  83. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +5 -6
  84. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  85. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +1 -1
  86. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +6 -4
  87. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.d.ts +1 -1
  88. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.d.ts +1 -1
  89. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +3 -15
  90. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +1 -9
  91. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  92. package/dist/hooks/useGetRecordForm/useGetRecordForm.js +3 -3
  93. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  94. package/package.json +2 -2
  95. package/dist/components/RecordEdition/EditRecord/EditRecordSkeleton.d.ts +0 -6
  96. package/dist/components/RecordEdition/EditRecord/EditRecordSkeleton.js +0 -13
  97. package/dist/components/RecordEdition/EditRecord/EditRecordSkeleton.js.map +0 -1
  98. package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/index.d.ts +0 -1
  99. package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/index.js.map +0 -1
  100. package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/useHandleDeleteValues.d.ts +0 -13
  101. package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/useHandleDeleteValues.js +0 -47
  102. package/dist/components/RecordEdition/EditRecord/_hooks/useHandleDeleteValues/useHandleDeleteValues.js.map +0 -1
  103. package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/index.d.ts +0 -1
  104. package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/index.js +0 -5
  105. package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/index.js.map +0 -1
  106. package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/useHandleSubmit.d.ts +0 -15
  107. package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/useHandleSubmit.js +0 -206
  108. package/dist/components/RecordEdition/EditRecord/_hooks/useHandleSubmit/useHandleSubmit.js.map +0 -1
  109. package/dist/components/RecordEdition/EditRecord/_types.js.map +0 -1
  110. package/dist/components/RecordEdition/EditRecord/helpers/extractFormElements/extractFormElements.d.ts +0 -3
  111. package/dist/components/RecordEdition/EditRecord/helpers/extractFormElements/extractFormElements.js +0 -11
  112. package/dist/components/RecordEdition/EditRecord/helpers/extractFormElements/extractFormElements.js.map +0 -1
  113. package/dist/components/RecordEdition/EditRecord/helpers/extractFormElements/index.d.ts +0 -2
  114. package/dist/components/RecordEdition/EditRecord/helpers/extractFormElements/index.js +0 -6
  115. package/dist/components/RecordEdition/EditRecord/helpers/extractFormElements/index.js.map +0 -1
  116. package/dist/components/RecordEdition/EditRecord/helpers/getActiveFieldValues/getActiveFieldValues.d.ts +0 -3
  117. package/dist/components/RecordEdition/EditRecord/helpers/getActiveFieldValues/getActiveFieldValues.js +0 -4
  118. package/dist/components/RecordEdition/EditRecord/helpers/getActiveFieldValues/getActiveFieldValues.js.map +0 -1
  119. package/dist/components/RecordEdition/EditRecord/helpers/getActiveFieldValues/index.d.ts +0 -1
  120. package/dist/components/RecordEdition/EditRecord/helpers/getActiveFieldValues/index.js +0 -5
  121. package/dist/components/RecordEdition/EditRecord/helpers/getActiveFieldValues/index.js.map +0 -1
  122. package/dist/components/RecordEdition/EditRecord/helpers/isCurrentVersion/index.d.ts +0 -1
  123. package/dist/components/RecordEdition/EditRecord/helpers/isCurrentVersion/index.js +0 -5
  124. package/dist/components/RecordEdition/EditRecord/helpers/isCurrentVersion/index.js.map +0 -1
  125. package/dist/components/RecordEdition/EditRecord/helpers/isCurrentVersion/isCurrentVersion.d.ts +0 -7
  126. package/dist/components/RecordEdition/EditRecord/helpers/isCurrentVersion/isCurrentVersion.js +0 -21
  127. package/dist/components/RecordEdition/EditRecord/helpers/isCurrentVersion/isCurrentVersion.js.map +0 -1
  128. package/dist/components/RecordEdition/EditRecord/hooks/__mocks__/useDeleteValueMutation.d.ts +0 -4
  129. package/dist/components/RecordEdition/EditRecord/hooks/__mocks__/useDeleteValueMutation.js +0 -9
  130. package/dist/components/RecordEdition/EditRecord/hooks/__mocks__/useDeleteValueMutation.js.map +0 -1
  131. package/dist/components/RecordEdition/EditRecord/hooks/__mocks__/useSaveValueMutation.d.ts +0 -4
  132. package/dist/components/RecordEdition/EditRecord/hooks/__mocks__/useSaveValueMutation.js +0 -9
  133. package/dist/components/RecordEdition/EditRecord/hooks/__mocks__/useSaveValueMutation.js.map +0 -1
  134. package/dist/components/RecordEdition/EditRecord/hooks/helpers/getPropertyCacheFieldName.d.ts +0 -2
  135. package/dist/components/RecordEdition/EditRecord/hooks/helpers/getPropertyCacheFieldName.js +0 -5
  136. package/dist/components/RecordEdition/EditRecord/hooks/helpers/getPropertyCacheFieldName.js.map +0 -1
  137. package/dist/components/RecordEdition/EditRecord/hooks/useExecuteDeleteValueMutation.d.ts +0 -6
  138. package/dist/components/RecordEdition/EditRecord/hooks/useExecuteDeleteValueMutation.js +0 -40
  139. package/dist/components/RecordEdition/EditRecord/hooks/useExecuteDeleteValueMutation.js.map +0 -1
  140. package/dist/components/RecordEdition/EditRecord/hooks/useExecuteSaveValueBatchMutation.d.ts +0 -6
  141. package/dist/components/RecordEdition/EditRecord/hooks/useExecuteSaveValueBatchMutation.js +0 -62
  142. package/dist/components/RecordEdition/EditRecord/hooks/useExecuteSaveValueBatchMutation.js.map +0 -1
  143. package/dist/components/RecordEdition/EditRecord/hooks/useRecordEditionContext.d.ts +0 -4
  144. package/dist/components/RecordEdition/EditRecord/hooks/useRecordEditionContext.js +0 -7
  145. package/dist/components/RecordEdition/EditRecord/hooks/useRecordEditionContext.js.map +0 -1
  146. package/dist/components/RecordEdition/EditRecord/reducers/linkFieldReducer/index.d.ts +0 -2
  147. package/dist/components/RecordEdition/EditRecord/reducers/linkFieldReducer/index.js +0 -6
  148. package/dist/components/RecordEdition/EditRecord/reducers/linkFieldReducer/index.js.map +0 -1
  149. package/dist/components/RecordEdition/EditRecord/reducers/linkFieldReducer/linkFieldReducer.d.ts +0 -52
  150. package/dist/components/RecordEdition/EditRecord/reducers/linkFieldReducer/linkFieldReducer.js +0 -110
  151. package/dist/components/RecordEdition/EditRecord/reducers/linkFieldReducer/linkFieldReducer.js.map +0 -1
  152. package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/index.d.ts +0 -2
  153. package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/index.js +0 -6
  154. package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/index.js.map +0 -1
  155. package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -100
  156. package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/standardFieldReducer.js +0 -200
  157. package/dist/components/RecordEdition/EditRecord/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  158. package/dist/components/RecordEdition/EditRecord/shared/AddValueBtn/AddValueBtn.d.ts +0 -10
  159. package/dist/components/RecordEdition/EditRecord/shared/AddValueBtn/AddValueBtn.js +0 -31
  160. package/dist/components/RecordEdition/EditRecord/shared/AddValueBtn/AddValueBtn.js.map +0 -1
  161. package/dist/components/RecordEdition/EditRecord/shared/AddValueBtn/index.d.ts +0 -2
  162. package/dist/components/RecordEdition/EditRecord/shared/AddValueBtn/index.js +0 -6
  163. package/dist/components/RecordEdition/EditRecord/shared/AddValueBtn/index.js.map +0 -1
  164. package/dist/components/RecordEdition/EditRecord/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.d.ts +0 -6
  165. package/dist/components/RecordEdition/EditRecord/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js +0 -21
  166. package/dist/components/RecordEdition/EditRecord/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js.map +0 -1
  167. package/dist/components/RecordEdition/EditRecord/shared/DeleteAllValuesBtn/index.d.ts +0 -2
  168. package/dist/components/RecordEdition/EditRecord/shared/DeleteAllValuesBtn/index.js +0 -6
  169. package/dist/components/RecordEdition/EditRecord/shared/DeleteAllValuesBtn/index.js.map +0 -1
  170. package/dist/components/RecordEdition/EditRecord/shared/DeleteValueBtn/DeleteValueBtn.d.ts +0 -7
  171. package/dist/components/RecordEdition/EditRecord/shared/DeleteValueBtn/DeleteValueBtn.js +0 -26
  172. package/dist/components/RecordEdition/EditRecord/shared/DeleteValueBtn/DeleteValueBtn.js.map +0 -1
  173. package/dist/components/RecordEdition/EditRecord/shared/DeleteValueBtn/index.d.ts +0 -2
  174. package/dist/components/RecordEdition/EditRecord/shared/DeleteValueBtn/index.js +0 -6
  175. package/dist/components/RecordEdition/EditRecord/shared/DeleteValueBtn/index.js.map +0 -1
  176. package/dist/components/RecordEdition/EditRecord/shared/FieldFooter/FieldFooter.d.ts +0 -9
  177. package/dist/components/RecordEdition/EditRecord/shared/FieldFooter/FieldFooter.js +0 -28
  178. package/dist/components/RecordEdition/EditRecord/shared/FieldFooter/FieldFooter.js.map +0 -1
  179. package/dist/components/RecordEdition/EditRecord/shared/FieldFooter/index.d.ts +0 -2
  180. package/dist/components/RecordEdition/EditRecord/shared/FieldFooter/index.js +0 -6
  181. package/dist/components/RecordEdition/EditRecord/shared/FieldFooter/index.js.map +0 -1
  182. package/dist/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/InheritedFieldLabel.d.ts +0 -7
  183. package/dist/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/InheritedFieldLabel.js +0 -22
  184. package/dist/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/InheritedFieldLabel.js.map +0 -1
  185. package/dist/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/index.d.ts +0 -2
  186. package/dist/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/index.js +0 -6
  187. package/dist/components/RecordEdition/EditRecord/shared/InheritedFieldLabel/index.js.map +0 -1
  188. package/dist/components/RecordEdition/EditRecord/shared/NoValue/NoValue.d.ts +0 -8
  189. package/dist/components/RecordEdition/EditRecord/shared/NoValue/NoValue.js +0 -33
  190. package/dist/components/RecordEdition/EditRecord/shared/NoValue/NoValue.js.map +0 -1
  191. package/dist/components/RecordEdition/EditRecord/shared/NoValue/index.d.ts +0 -2
  192. package/dist/components/RecordEdition/EditRecord/shared/NoValue/index.js +0 -6
  193. package/dist/components/RecordEdition/EditRecord/shared/NoValue/index.js.map +0 -1
  194. package/dist/components/RecordEdition/EditRecord/shared/UpdatedFieldIcon/UpdatedFieldIcon.d.ts +0 -3
  195. package/dist/components/RecordEdition/EditRecord/shared/UpdatedFieldIcon/UpdatedFieldIcon.js +0 -13
  196. package/dist/components/RecordEdition/EditRecord/shared/UpdatedFieldIcon/UpdatedFieldIcon.js.map +0 -1
  197. package/dist/components/RecordEdition/EditRecord/shared/UpdatedFieldIcon/index.d.ts +0 -2
  198. package/dist/components/RecordEdition/EditRecord/shared/UpdatedFieldIcon/index.js +0 -6
  199. package/dist/components/RecordEdition/EditRecord/shared/UpdatedFieldIcon/index.js.map +0 -1
  200. package/dist/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/ValueDetailsBtn.d.ts +0 -11
  201. package/dist/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/ValueDetailsBtn.js +0 -42
  202. package/dist/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +0 -1
  203. package/dist/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/index.d.ts +0 -2
  204. package/dist/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/index.js +0 -6
  205. package/dist/components/RecordEdition/EditRecord/shared/ValueDetailsBtn/index.js.map +0 -1
  206. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +0 -14
  207. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/ValuesVersionBtn.js +0 -68
  208. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/ValuesVersionBtn.js.map +0 -1
  209. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/index.d.ts +0 -2
  210. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/index.js +0 -6
  211. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionBtn/index.js.map +0 -1
  212. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionIndicator/ValuesVersionIndicator.d.ts +0 -9
  213. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionIndicator/ValuesVersionIndicator.js +0 -34
  214. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionIndicator/ValuesVersionIndicator.js.map +0 -1
  215. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionIndicator/index.d.ts +0 -2
  216. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionIndicator/index.js +0 -6
  217. package/dist/components/RecordEdition/EditRecord/shared/ValuesVersionIndicator/index.js.map +0 -1
  218. package/dist/components/RecordEdition/EditRecord/uiElements/Container/Container.d.ts +0 -4
  219. package/dist/components/RecordEdition/EditRecord/uiElements/Container/Container.js +0 -14
  220. package/dist/components/RecordEdition/EditRecord/uiElements/Container/Container.js.map +0 -1
  221. package/dist/components/RecordEdition/EditRecord/uiElements/Container/index.d.ts +0 -2
  222. package/dist/components/RecordEdition/EditRecord/uiElements/Container/index.js +0 -6
  223. package/dist/components/RecordEdition/EditRecord/uiElements/Container/index.js.map +0 -1
  224. package/dist/components/RecordEdition/EditRecord/uiElements/ErrorField/ErrorField.d.ts +0 -5
  225. package/dist/components/RecordEdition/EditRecord/uiElements/ErrorField/ErrorField.js +0 -63
  226. package/dist/components/RecordEdition/EditRecord/uiElements/ErrorField/ErrorField.js.map +0 -1
  227. package/dist/components/RecordEdition/EditRecord/uiElements/ErrorField/index.d.ts +0 -2
  228. package/dist/components/RecordEdition/EditRecord/uiElements/ErrorField/index.js +0 -6
  229. package/dist/components/RecordEdition/EditRecord/uiElements/ErrorField/index.js.map +0 -1
  230. package/dist/components/RecordEdition/EditRecord/uiElements/FormDivider/FormDivider.d.ts +0 -5
  231. package/dist/components/RecordEdition/EditRecord/uiElements/FormDivider/FormDivider.js +0 -9
  232. package/dist/components/RecordEdition/EditRecord/uiElements/FormDivider/FormDivider.js.map +0 -1
  233. package/dist/components/RecordEdition/EditRecord/uiElements/FormDivider/index.d.ts +0 -2
  234. package/dist/components/RecordEdition/EditRecord/uiElements/FormDivider/index.js +0 -6
  235. package/dist/components/RecordEdition/EditRecord/uiElements/FormDivider/index.js.map +0 -1
  236. package/dist/components/RecordEdition/EditRecord/uiElements/FormTabs/FormTabs.d.ts +0 -5
  237. package/dist/components/RecordEdition/EditRecord/uiElements/FormTabs/FormTabs.js +0 -57
  238. package/dist/components/RecordEdition/EditRecord/uiElements/FormTabs/FormTabs.js.map +0 -1
  239. package/dist/components/RecordEdition/EditRecord/uiElements/FormTabs/index.d.ts +0 -2
  240. package/dist/components/RecordEdition/EditRecord/uiElements/FormTabs/index.js +0 -6
  241. package/dist/components/RecordEdition/EditRecord/uiElements/FormTabs/index.js.map +0 -1
  242. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.d.ts +0 -14
  243. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js +0 -29
  244. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js.map +0 -1
  245. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/FloatingMenuHandler/index.d.ts +0 -2
  246. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/FloatingMenuHandler/index.js +0 -6
  247. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/FloatingMenuHandler/index.js.map +0 -1
  248. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/LinkField.d.ts +0 -13
  249. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/LinkField.js +0 -313
  250. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/LinkField.js.map +0 -1
  251. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.d.ts +0 -7
  252. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.js +0 -11
  253. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.js.map +0 -1
  254. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/RecordIdentityCell/index.d.ts +0 -2
  255. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/RecordIdentityCell/index.js +0 -6
  256. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/RecordIdentityCell/index.js.map +0 -1
  257. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.d.ts +0 -14
  258. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js +0 -52
  259. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js.map +0 -1
  260. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/QuickSearch/index.d.ts +0 -2
  261. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/QuickSearch/index.js +0 -6
  262. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/QuickSearch/index.js.map +0 -1
  263. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/ValuesAdd.d.ts +0 -10
  264. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/ValuesAdd.js +0 -214
  265. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/ValuesAdd.js.map +0 -1
  266. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/index.d.ts +0 -2
  267. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/index.js +0 -6
  268. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/ValuesAdd/index.js.map +0 -1
  269. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/index.d.ts +0 -2
  270. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/index.js +0 -6
  271. package/dist/components/RecordEdition/EditRecord/uiElements/LinkField/index.js.map +0 -1
  272. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardField.d.ts +0 -5
  273. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardField.js +0 -210
  274. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardField.js.map +0 -1
  275. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -4
  276. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  277. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  278. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -4
  279. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  280. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  281. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -4
  282. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -23
  283. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  284. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.d.ts +0 -4
  285. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.js +0 -29
  286. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/DateRangeInput.js.map +0 -1
  287. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -4
  288. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  289. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  290. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -4
  291. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  292. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  293. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -4
  294. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  295. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  296. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -4
  297. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  298. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  299. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +0 -14
  300. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +0 -423
  301. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +0 -1
  302. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.d.ts +0 -17
  303. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js +0 -35
  304. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js.map +0 -1
  305. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/index.d.ts +0 -2
  306. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/index.js +0 -6
  307. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/index.js.map +0 -1
  308. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/index.d.ts +0 -2
  309. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/index.js +0 -6
  310. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/index.js.map +0 -1
  311. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/index.d.ts +0 -2
  312. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/index.js +0 -6
  313. package/dist/components/RecordEdition/EditRecord/uiElements/StandardField/index.js.map +0 -1
  314. package/dist/components/RecordEdition/EditRecord/uiElements/TextBlock/TextBlock.d.ts +0 -5
  315. package/dist/components/RecordEdition/EditRecord/uiElements/TextBlock/TextBlock.js +0 -7
  316. package/dist/components/RecordEdition/EditRecord/uiElements/TextBlock/TextBlock.js.map +0 -1
  317. package/dist/components/RecordEdition/EditRecord/uiElements/TextBlock/index.d.ts +0 -2
  318. package/dist/components/RecordEdition/EditRecord/uiElements/TextBlock/index.js +0 -6
  319. package/dist/components/RecordEdition/EditRecord/uiElements/TextBlock/index.js.map +0 -1
  320. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeField.d.ts +0 -5
  321. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeField.js +0 -225
  322. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeField.js.map +0 -1
  323. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/TreeFieldValue.d.ts +0 -11
  324. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js +0 -50
  325. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js.map +0 -1
  326. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/index.d.ts +0 -2
  327. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/index.js +0 -6
  328. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/TreeFieldValue/index.js.map +0 -1
  329. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/ValuesAdd/ValuesAdd.d.ts +0 -10
  330. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/ValuesAdd/ValuesAdd.js +0 -109
  331. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +0 -1
  332. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/ValuesAdd/index.d.ts +0 -2
  333. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/ValuesAdd/index.js +0 -6
  334. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/ValuesAdd/index.js.map +0 -1
  335. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/index.d.ts +0 -2
  336. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/index.js +0 -6
  337. package/dist/components/RecordEdition/EditRecord/uiElements/TreeField/index.js.map +0 -1
  338. package/dist/components/RecordEdition/EditRecord/uiElements/index.d.ts +0 -6
  339. package/dist/components/RecordEdition/EditRecord/uiElements/index.js +0 -24
  340. package/dist/components/RecordEdition/EditRecord/uiElements/index.js.map +0 -1
  341. package/dist/components/RecordEdition/EditRecordModal/EditRecordModalHeader/EditRecordModalHeader.d.ts +0 -3
  342. package/dist/components/RecordEdition/EditRecordModal/EditRecordModalHeader/EditRecordModalHeader.js +0 -54
  343. package/dist/components/RecordEdition/EditRecordModal/EditRecordModalHeader/EditRecordModalHeader.js.map +0 -1
  344. package/dist/components/RecordEdition/EditRecordModal/EditRecordModalHeader/index.d.ts +0 -2
  345. package/dist/components/RecordEdition/EditRecordModal/EditRecordModalHeader/index.js +0 -6
  346. package/dist/components/RecordEdition/EditRecordModal/EditRecordModalHeader/index.js.map +0 -1
  347. package/dist/components/RecordEdition/EditRecordModal/ValuesVersionSummary/ValuesVersionSummary.js.map +0 -1
  348. package/dist/components/RecordEdition/EditRecordModal/ValuesVersionSummary/index.js.map +0 -1
  349. package/dist/components/RecordEdition/EditRecordModal/creationErrorContext.js.map +0 -1
  350. package/dist/components/RecordEdition/_types.d.ts +0 -114
  351. package/dist/components/RecordEdition/_types.js +0 -12
  352. package/dist/components/RecordEdition/_types.js.map +0 -1
  353. package/dist/components/RecordEdition/editRecordModalReducer/editRecordModalReducer.d.ts +0 -66
  354. package/dist/components/RecordEdition/editRecordModalReducer/editRecordModalReducer.js +0 -67
  355. package/dist/components/RecordEdition/editRecordModalReducer/editRecordModalReducer.js.map +0 -1
  356. package/dist/components/RecordEdition/editRecordModalReducer/editRecordModalReducerContext.d.ts +0 -7
  357. package/dist/components/RecordEdition/editRecordModalReducer/editRecordModalReducerContext.js +0 -10
  358. package/dist/components/RecordEdition/editRecordModalReducer/editRecordModalReducerContext.js.map +0 -1
  359. package/dist/components/RecordEdition/editRecordModalReducer/index.d.ts +0 -2
  360. package/dist/components/RecordEdition/editRecordModalReducer/index.js +0 -6
  361. package/dist/components/RecordEdition/editRecordModalReducer/index.js.map +0 -1
  362. package/dist/components/RecordEdition/editRecordModalReducer/useEditRecordModalReducer.d.ts +0 -1
  363. package/dist/components/RecordEdition/editRecordModalReducer/useEditRecordModalReducer.js +0 -7
  364. package/dist/components/RecordEdition/editRecordModalReducer/useEditRecordModalReducer.js.map +0 -1
  365. /package/dist/components/RecordEdition/{EditRecordModal → EditRecord}/ValuesVersionSummary/ValuesVersionSummary.d.ts +0 -0
  366. /package/dist/components/RecordEdition/{EditRecordModal → EditRecord}/ValuesVersionSummary/ValuesVersionSummary.js +0 -0
  367. /package/dist/components/RecordEdition/{EditRecordModal → EditRecord}/ValuesVersionSummary/index.d.ts +0 -0
  368. /package/dist/components/RecordEdition/{EditRecordModal → EditRecord}/ValuesVersionSummary/index.js +0 -0
  369. /package/dist/components/RecordEdition/{EditRecordModal → EditRecord}/creationErrorContext.d.ts +0 -0
  370. /package/dist/components/RecordEdition/{EditRecordModal → EditRecord}/creationErrorContext.js +0 -0
  371. /package/dist/components/RecordEdition/{EditRecord → EditRecordContent}/_types.d.ts +0 -0
  372. /package/dist/components/RecordEdition/{EditRecord → EditRecordContent}/_types.js +0 -0
@@ -1,423 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { CloseOutlined, ExclamationCircleOutlined } from '@ant-design/icons';
6
- import { Button, Form, Input, Popover, Space, theme } from 'antd';
7
- import moment from 'moment';
8
- import React, { useEffect, useRef } from 'react';
9
- import styled from 'styled-components';
10
- import { themeVars } from '../../../../../../antdTheme';
11
- import { FloatingMenu } from '../../../../../../components';
12
- import Dimmer from '../../../../../../components/Dimmer';
13
- import DeleteValueBtn from '../../../../../../components/RecordEdition/EditRecord/shared/DeleteValueBtn';
14
- import InheritedFieldLabel from '../../../../../../components/RecordEdition/EditRecord/shared/InheritedFieldLabel';
15
- import UpdatedFieldIcon from '../../../../../../components/RecordEdition/EditRecord/shared/UpdatedFieldIcon';
16
- import ValueDetailsBtn from '../../../../../../components/RecordEdition/EditRecord/shared/ValueDetailsBtn';
17
- import ValuesVersionBtn from '../../../../../../components/RecordEdition/EditRecord/shared/ValuesVersionBtn';
18
- import ValuesVersionIndicator from '../../../../../../components/RecordEdition/EditRecord/shared/ValuesVersionIndicator';
19
- import { FieldScope } from '../../../../../../components/RecordEdition/EditRecord/_types';
20
- import { EditRecordReducerActionsTypes } from '../../../../../../components/RecordEdition/editRecordModalReducer/editRecordModalReducer';
21
- import { useEditRecordModalReducer } from '../../../../../../components/RecordEdition/editRecordModalReducer/useEditRecordModalReducer';
22
- import { useSharedTranslation } from '../../../../../../hooks/useSharedTranslation';
23
- import { AttributeFormat } from '../../../../../../_gqlTypes';
24
- import { stringifyDateRangeValue } from '../../../../../../_utils';
25
- import { newValueId, StandardFieldReducerActionsTypes, StandardFieldValueState } from '../../../reducers/standardFieldReducer/standardFieldReducer';
26
- import CheckboxInput from './Inputs/CheckboxInput';
27
- import ColorInput from './Inputs/ColorInput';
28
- import DateInput from './Inputs/DateInput';
29
- import DateRangeInput from './Inputs/DateRangeInput';
30
- import EncryptedInput from './Inputs/EncryptedInput';
31
- import NumberInput from './Inputs/NumberInput';
32
- import TextInput from './Inputs/TextInput';
33
- import ValuesList from './ValuesList';
34
- const ErrorMessage = styled.div `
35
- color: ${themeVars.errorColor};
36
- font-weight: bold;
37
- `;
38
- const FormWrapper = styled.div `
39
- position: relative;
40
- z-index: ${p => (p.$isEditing ? 2 : 0)};
41
- `;
42
- const InputWrapper = styled.div `
43
- position: relative;
44
-
45
- && input {
46
- background: ${themeVars.defaultBg};
47
- transition: none;
48
- border-radius: 0;
49
- line-height: 2.5em;
50
- padding-left: 17px;
51
- }
52
-
53
- ${FormWrapper}:not(:last-child) & input:not(:hover) {
54
- border-bottom: none;
55
- }
56
-
57
- ${FormWrapper}:first-child & input {
58
- border-top-left-radius: 5px;
59
- border-top-right-radius: 5px;
60
- }
61
-
62
- ${FormWrapper}:last-child & input {
63
- border-bottom-left-radius: 5px;
64
- border-bottom-right-radius: 5px;
65
- }
66
-
67
- &.editing input {
68
- border-radius: 5px;
69
- }
70
-
71
- &.editing .field-wrapper,
72
- &.editing .nested-input {
73
- z-index: 0;
74
- }
75
-
76
- &.format-boolean label {
77
- margin-right: 1em;
78
- }
79
-
80
- &:not(.format-boolean) label {
81
- position: absolute;
82
- left: 11px;
83
- top: calc(50% - 0.9em);
84
- font-size: 1.1em;
85
- background: transparent;
86
- padding: 0 0.5em;
87
- color: ${themeVars.secondaryTextColor};
88
- transition: all 0.2s ease;
89
- transition-property: left, top, font-size;
90
- z-index: 1;
91
- white-space: nowrap;
92
- text-overflow: ellipsis;
93
- overflow: hidden;
94
- width: 100%;
95
- }
96
-
97
- &:not(.format-boolean):not(.editing):not(.has-value) label {
98
- padding-right: 3rem;
99
- }
100
-
101
- input:disabled {
102
- background: ${themeVars.defaultBg};
103
- }
104
-
105
- &.has-value:not(.format-boolean) label,
106
- &.editing:not(.format-boolean) label {
107
- top: 0px;
108
- font-size: 0.9em;
109
- background: transparent;
110
- text-shadow: 0px 0px 4px #fff;
111
- z-index: 2;
112
- border-radius: 5px;
113
- }
114
-
115
- ${FormWrapper}.first-value &.has-value:not(.format-boolean) input:not(:first-child),
116
- ${FormWrapper}.first-value &.editing:not(.format-boolean) input:not(:only-child),
117
- ${FormWrapper}.first-value &.editing.format-date_range input,
118
- ${FormWrapper}.first-value &.editing.format-date_range .ant-picker-range-separator {
119
- padding-top: 1em;
120
- }
121
-
122
- &:not(.has-value):not(.editing):not(.format-boolean) input {
123
- padding: 9px 0;
124
- }
125
-
126
- &:not(:hover) .floating-menu {
127
- display: none;
128
- }
129
-
130
- .floating-menu {
131
- top: 50%;
132
- transform: translateY(-50%);
133
- }
134
- `;
135
- const ActionsWrapper = styled.div `
136
- position: absolute;
137
- display: flex;
138
- width: 100%;
139
- flex-direction: column;
140
- `;
141
- const ButtonsWrapper = styled.div `
142
- display: flex;
143
- margin: 0.5em 0;
144
- justify-content: flex-end;
145
-
146
- & > button {
147
- margin-left: 0.5em;
148
- }
149
- `;
150
- const FormItem = styled(Form.Item) `
151
- && {
152
- margin: 0;
153
- }
154
- `;
155
- const RichTextEditorInput = React.lazy(() => import('./Inputs/RichTextEditorInput'));
156
- const inputComponentByFormat = {
157
- [AttributeFormat.text]: TextInput,
158
- [AttributeFormat.date]: DateInput,
159
- [AttributeFormat.date_range]: DateRangeInput,
160
- [AttributeFormat.boolean]: CheckboxInput,
161
- [AttributeFormat.numeric]: NumberInput,
162
- [AttributeFormat.encrypted]: EncryptedInput,
163
- [AttributeFormat.extended]: TextInput,
164
- [AttributeFormat.color]: ColorInput,
165
- [AttributeFormat.rich_text]: RichTextEditorInput
166
- };
167
- function StandardFieldValue({ value: fieldValue, onSubmit, onDelete, onScopeChange, state, dispatch }) {
168
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
169
- const { t, i18n } = useSharedTranslation();
170
- const { token } = theme.useToken();
171
- const actionsWrapperRef = useRef();
172
- const inputRef = useRef();
173
- const { state: editRecordState, dispatch: editRecordDispatch } = useEditRecordModalReducer();
174
- const attribute = state.formElement.attribute;
175
- const isValuesListEnabled = !!((_a = attribute === null || attribute === void 0 ? void 0 : attribute.values_list) === null || _a === void 0 ? void 0 : _a.enable);
176
- const isValuesListOpen = !!((_b = attribute === null || attribute === void 0 ? void 0 : attribute.values_list) === null || _b === void 0 ? void 0 : _b.allowFreeEntry);
177
- // Scroll to input when editing field
178
- useEffect(() => {
179
- var _a;
180
- if (fieldValue.isEditing) {
181
- (_a = actionsWrapperRef === null || actionsWrapperRef === void 0 ? void 0 : actionsWrapperRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ block: 'nearest' });
182
- }
183
- }, [fieldValue.isEditing]);
184
- // Cancel value editing if value details panel is closed
185
- useEffect(() => {
186
- if (editRecordState.activeValue === null && fieldValue.isEditing) {
187
- dispatch({
188
- type: StandardFieldReducerActionsTypes.CANCEL_EDITING,
189
- idValue: fieldValue.idValue
190
- });
191
- }
192
- }, [editRecordState.activeValue]);
193
- useEffect(() => {
194
- if (fieldValue.isEditing) {
195
- editRecordDispatch({
196
- type: EditRecordReducerActionsTypes.SET_EDITING_VALUE,
197
- value: fieldValue.editingValue
198
- });
199
- }
200
- }, [fieldValue.isEditing, fieldValue.editingValue]);
201
- const _handleSubmit = async (valueToSave) => {
202
- if (valueToSave === '') {
203
- return _handleDelete();
204
- }
205
- const convertedValue = typeof valueToSave === 'object' ? JSON.stringify(valueToSave) : valueToSave;
206
- onSubmit(fieldValue.idValue, convertedValue);
207
- };
208
- const _handlePressEnter = async () => {
209
- if (!isValuesListEnabled) {
210
- return _handleSubmit(fieldValue.editingValue);
211
- }
212
- const valuesList = _getFilteredValuesList();
213
- if (!valuesList.length) {
214
- return;
215
- }
216
- return _handleSubmit(valuesList[0].value);
217
- };
218
- const _handleDelete = async () => {
219
- if (fieldValue.idValue === newValueId) {
220
- return _handleCancel();
221
- }
222
- onDelete(fieldValue.idValue);
223
- };
224
- const _handleFocus = () => {
225
- if (state.isReadOnly || fieldValue.isEditing || attribute.format === AttributeFormat.boolean) {
226
- return;
227
- }
228
- dispatch({
229
- type: StandardFieldReducerActionsTypes.FOCUS_FIELD,
230
- idValue: fieldValue.idValue
231
- });
232
- if (!state.metadataEdit) {
233
- editRecordDispatch({
234
- type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,
235
- value: { value: fieldValue.value, editingValue: fieldValue.editingValue, attribute }
236
- });
237
- }
238
- };
239
- const _handleValueChange = (value) => {
240
- dispatch({
241
- type: StandardFieldReducerActionsTypes.CHANGE_VALUE,
242
- idValue: fieldValue.idValue,
243
- value
244
- });
245
- };
246
- const _handleCloseError = () => dispatch({
247
- type: StandardFieldReducerActionsTypes.SET_ERROR_DISPLAY,
248
- displayError: false,
249
- idValue: fieldValue.idValue
250
- });
251
- const _handleCancel = () => {
252
- dispatch({
253
- type: StandardFieldReducerActionsTypes.CANCEL_EDITING,
254
- idValue: fieldValue.idValue
255
- });
256
- if (!state.metadataEdit) {
257
- editRecordDispatch({
258
- type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,
259
- value: null
260
- });
261
- }
262
- };
263
- const _handleClickSubmit = () => {
264
- _handleSubmit(fieldValue.editingValue);
265
- };
266
- const _handleValueCopy = (value) => {
267
- var _a;
268
- (_a = inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
269
- _handleValueChange(value);
270
- };
271
- const _getInput = () => {
272
- let inputStyle = {};
273
- if (!fieldValue.isEditing &&
274
- attribute.format !== AttributeFormat.boolean &&
275
- attribute.format !== AttributeFormat.rich_text) {
276
- let displayedValue = String(fieldValue.displayValue);
277
- let prefixValue;
278
- if (attribute.format === AttributeFormat.color &&
279
- (fieldValue.value === null || fieldValue.value.value === null)) {
280
- fieldValue.value = null;
281
- }
282
- const hasValue = fieldValue.value !== null;
283
- if (hasValue) {
284
- switch (attribute.format) {
285
- case AttributeFormat.date_range:
286
- const dateRangeValue = fieldValue.displayValue;
287
- displayedValue =
288
- (dateRangeValue === null || dateRangeValue === void 0 ? void 0 : dateRangeValue.from) && (dateRangeValue === null || dateRangeValue === void 0 ? void 0 : dateRangeValue.to)
289
- ? stringifyDateRangeValue(dateRangeValue, t)
290
- : '';
291
- break;
292
- case AttributeFormat.encrypted:
293
- displayedValue = '•••••••••';
294
- break;
295
- case AttributeFormat.date:
296
- if (!isNaN(fieldValue.displayValue)) {
297
- displayedValue = new Intl.DateTimeFormat(i18n.language).format(new Date(Number(displayedValue) * 1000));
298
- }
299
- break;
300
- case AttributeFormat.color:
301
- prefixValue = _getColorDisplay();
302
- displayedValue = '#' + displayedValue;
303
- inputStyle = {
304
- paddingLeft: '39px'
305
- };
306
- }
307
- }
308
- return (_jsxs(_Fragment, { children: [prefixValue, _jsx(Input, { style: inputStyle, className: hasValue ? 'has-value' : '', value: displayedValue, onFocus: _handleFocus, disabled: state.isReadOnly }, "display")] }));
309
- }
310
- const InputComponent = inputComponentByFormat[attribute.format];
311
- // This should never happen, unless we have some bad settings in DB
312
- if (!InputComponent) {
313
- return _jsx("div", { children: t('record_edition.invalid_format') });
314
- }
315
- return (_jsx(InputComponent, { state: state, fieldValue: fieldValue, onChange: _handleValueChange, onFocus: _handleFocus, onSubmit: _handleSubmit, onPressEnter: _handlePressEnter, settings: state.formElement.settings, inputRef: inputRef }));
316
- };
317
- const _getColorDisplay = () => {
318
- const colorValue = '#' + String(fieldValue.displayValue);
319
- const colorPickerStyle = {
320
- width: '16px',
321
- height: '16px',
322
- borderRadius: '2px',
323
- backgroundColor: colorValue,
324
- marginTop: fieldValue.index ? '15px' : '25px',
325
- marginLeft: '5px'
326
- };
327
- return _jsx("label", { style: colorPickerStyle });
328
- };
329
- const _getFilteredValuesList = () => {
330
- var _a, _b, _c, _d, _e, _f;
331
- let values = [];
332
- if (isValuesListEnabled) {
333
- if (attribute.format === AttributeFormat.date_range) {
334
- const valuesList = (_b = (_a = attribute === null || attribute === void 0 ? void 0 : attribute.values_list) === null || _a === void 0 ? void 0 : _a.dateRangeValues) !== null && _b !== void 0 ? _b : [];
335
- values = valuesList
336
- .filter(val => {
337
- return fieldValue.state === StandardFieldValueState.PRISTINE || !fieldValue.editingValue;
338
- })
339
- .map(v => {
340
- const rangeValue = {
341
- from: moment(Number(v.from) * 1000).format('L'),
342
- to: moment(Number(v.to) * 1000).format('L')
343
- };
344
- return {
345
- value: stringifyDateRangeValue(rangeValue, t),
346
- rawValue: { from: v.from, to: v.to }
347
- };
348
- });
349
- }
350
- else {
351
- const valuesList = (_d = (_c = attribute === null || attribute === void 0 ? void 0 : attribute.values_list) === null || _c === void 0 ? void 0 : _c.values) !== null && _d !== void 0 ? _d : [];
352
- values = valuesList
353
- .filter(val => {
354
- return (fieldValue.state === StandardFieldValueState.PRISTINE ||
355
- !fieldValue.editingValue ||
356
- attribute.format === AttributeFormat.date ||
357
- val.match(new RegExp(String(fieldValue.editingValue), 'i')));
358
- })
359
- .map(v => ({ value: v, rawValue: v }));
360
- }
361
- }
362
- const hydratedValues = values.map(value => (Object.assign(Object.assign({}, value), { isNewValue: false, canCopy: isValuesListOpen &&
363
- attribute.format !== AttributeFormat.date &&
364
- attribute.format !== AttributeFormat.date_range })));
365
- // Display current value on top of values list as "new value". Don't do that for date range attribute as it
366
- // doesn't make much sense
367
- if (isValuesListOpen &&
368
- String(fieldValue.editingValue) &&
369
- attribute.format !== AttributeFormat.date_range &&
370
- !((_f = (_e = attribute === null || attribute === void 0 ? void 0 : attribute.values_list) === null || _e === void 0 ? void 0 : _e.values) !== null && _f !== void 0 ? _f : []).some(v => v === fieldValue.editingValue)) {
371
- hydratedValues.unshift({
372
- value: String(fieldValue.editingValue),
373
- rawValue: String(fieldValue.editingValue),
374
- isNewValue: true,
375
- canCopy: false
376
- });
377
- }
378
- return hydratedValues;
379
- };
380
- const errorContent = (_jsx(ErrorMessage, { children: _jsxs(Space, Object.assign({ size: "small" }, { children: [_jsx(ExclamationCircleOutlined, {}), fieldValue.error, _jsx(Button, { onClick: _handleCloseError, size: "small", icon: _jsx(CloseOutlined, {}), style: { border: 'none' } })] })) }));
381
- const isErrorVisible = fieldValue.isErrorDisplayed;
382
- const wrapperClasses = `
383
- ${attribute.format ? `format-${attribute.format}` : ''}
384
- ${((_c = fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.value) === null || _c === void 0 ? void 0 : _c.value) ? 'has-value' : ''}
385
- ${fieldValue.isEditing ? 'editing' : ''}
386
- `;
387
- const canDeleteValue = !state.isReadOnly && fieldValue.idValue !== newValueId && attribute.format !== AttributeFormat.boolean;
388
- const valuesList = _getFilteredValuesList();
389
- const valueActions = [];
390
- if (!fieldValue.isEditing) {
391
- valueActions.push({
392
- button: _jsx(ValueDetailsBtn, { value: fieldValue.value, attribute: attribute, shape: "circle" })
393
- });
394
- }
395
- const hasMultipleValuesDisplay = attribute.multiple_values && !!Object.keys(state.values[state.activeScope].values).length;
396
- if ((_d = attribute === null || attribute === void 0 ? void 0 : attribute.versions_conf) === null || _d === void 0 ? void 0 : _d.versionable) {
397
- const versions = {
398
- [FieldScope.CURRENT]: (_f = (_e = state.values[FieldScope.CURRENT]) === null || _e === void 0 ? void 0 : _e.version) !== null && _f !== void 0 ? _f : null,
399
- [FieldScope.INHERITED]: (_h = (_g = state.values[FieldScope.INHERITED]) === null || _g === void 0 ? void 0 : _g.version) !== null && _h !== void 0 ? _h : null
400
- };
401
- if (!hasMultipleValuesDisplay) {
402
- valueActions.push({
403
- title: t('values_version.title'),
404
- button: (_jsx(ValuesVersionBtn, { versions: versions, activeScope: state.activeScope, onScopeChange: onScopeChange }))
405
- });
406
- }
407
- }
408
- if (canDeleteValue && !fieldValue.isEditing && fieldValue.displayValue) {
409
- valueActions.push({
410
- title: t('global.delete'),
411
- button: _jsx(DeleteValueBtn, { onDelete: _handleDelete, shape: "circle" })
412
- });
413
- }
414
- const valuesVersionIndicatorStyle = {
415
- top: '1px',
416
- left: '1px',
417
- bottom: hasMultipleValuesDisplay ? '0' : '1px',
418
- borderRadius: hasMultipleValuesDisplay ? 'none' : token.borderRadius
419
- };
420
- return (_jsxs(_Fragment, { children: [fieldValue.isEditing && _jsx(Dimmer, { onClick: _handleCancel }), _jsx(FormWrapper, Object.assign({ "$isEditing": fieldValue.isEditing, className: !fieldValue.index ? 'first-value' : '' }, { children: _jsx(Form, { children: _jsxs(FormItem, { children: [_jsx(Popover, Object.assign({ placement: "topLeft", open: isErrorVisible, content: errorContent }, { children: _jsxs(InputWrapper, Object.assign({ "$isEditing": fieldValue.isEditing, className: wrapperClasses, "data-testid": "input-wrapper" }, { children: [_jsx(ValuesVersionIndicator, { activeScope: state.activeScope, style: valuesVersionIndicatorStyle }), !fieldValue.index && (_jsxs("label", Object.assign({ className: "attribute-label", onClick: _handleFocus }, { children: [state.formElement.settings.label, editRecordState.externalUpdate.updatedValues[attribute === null || attribute === void 0 ? void 0 : attribute.id] && (_jsx(UpdatedFieldIcon, {})), state.activeScope === FieldScope.INHERITED && (_jsx(InheritedFieldLabel, { version: state.values[FieldScope.INHERITED].version }))] }))), _getInput(), !state.metadataEdit && _jsx(FloatingMenu, { actions: valueActions })] })) })), _jsxs(ActionsWrapper, Object.assign({ ref: actionsWrapperRef }, { children: [fieldValue.isEditing && ((_j = attribute === null || attribute === void 0 ? void 0 : attribute.values_list) === null || _j === void 0 ? void 0 : _j.enable) && (_jsx(ValuesList, { attribute: attribute, valuesList: valuesList, onValueSelect: _handleSubmit, onValueCopy: _handleValueCopy })), fieldValue.isEditing && (_jsxs(ButtonsWrapper, { children: [_jsx(Button, Object.assign({ size: "small", onClick: _handleCancel, style: { background: '#FFF' } }, { children: t('global.cancel') })), (!isValuesListEnabled || isValuesListOpen) && (_jsx(Button, Object.assign({ type: "primary", size: "small", onClick: _handleClickSubmit }, { children: t('global.submit') })))] }))] }))] }) }) }))] }));
421
- }
422
- export default StandardFieldValue;
423
- //# sourceMappingURL=StandardFieldValue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StandardFieldValue.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/StandardFieldValue.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAE,yBAAyB,EAAC,MAAM,mBAAmB,CAAC;AAE3E,OAAO,EAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAY,OAAO,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AAC1E,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,EAAE,EAAmB,SAAS,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AACjE,OAAO,MAAmB,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,YAAY,EAA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O,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,OAAO,GAAI,CAC/E,KACG,CACX,EACA,SAAS,EAAE,EACX,CAAC,KAAK,CAAC,YAAY,IAAI,KAAC,YAAY,IAAC,OAAO,EAAE,YAAY,GAAI,KACpD,IACT,EACV,MAAC,cAAc,kBAAC,GAAG,EAAE,iBAAiB,iBACjC,UAAU,CAAC,SAAS,KAAI,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,0CAAE,MAAM,CAAA,IAAI,CACvD,KAAC,UAAU,IACP,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,gBAAgB,GAC/B,CACL,EACA,UAAU,CAAC,SAAS,IAAI,CACrB,MAAC,cAAc,eACX,KAAC,MAAM,kBAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,EAAC,UAAU,EAAE,MAAM,EAAC,gBACnE,CAAC,CAAC,eAAe,CAAC,IACd,EACR,CAAC,CAAC,mBAAmB,IAAI,gBAAgB,CAAC,IAAI,CAC3C,KAAC,MAAM,kBAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,kBAAkB,gBAC1D,CAAC,CAAC,eAAe,CAAC,IACd,CACZ,IACY,CACpB,KACY,IACV,GACR,IACG,IACf,CACN,CAAC;AACN,CAAC;AAED,eAAe,kBAAkB,CAAC"}
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { IDateRangeValue } from '@leav/utils';
3
- import { RecordFormAttributeStandardAttributeFragment } from '../../../../../../../_gqlTypes';
4
- export interface IValueOfValuesList {
5
- value: string;
6
- rawValue: string | IDateRangeValue;
7
- isNewValue: boolean;
8
- canCopy: boolean;
9
- }
10
- interface IValuesListProps {
11
- attribute: RecordFormAttributeStandardAttributeFragment;
12
- valuesList: IValueOfValuesList[];
13
- onValueSelect: (value: string | IDateRangeValue) => void;
14
- onValueCopy: (value: string | IDateRangeValue) => void;
15
- }
16
- declare function ValuesList({ attribute, valuesList: values, onValueCopy, onValueSelect }: IValuesListProps): JSX.Element;
17
- export default ValuesList;
@@ -1,35 +0,0 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { CopyOutlined } from '@ant-design/icons';
6
- import { Button, Tooltip } from 'antd';
7
- import styled from 'styled-components';
8
- import List from '../../../../../../../components/List';
9
- import { useSharedTranslation } from '../../../../../../../hooks/useSharedTranslation';
10
- import { AttributeFormat } from '../../../../../../../_gqlTypes';
11
- const ListItem = styled.div `
12
- cursor: pointer;
13
- display: flex;
14
- justify-content: space-between;
15
- width: 100%;
16
- `;
17
- function ValuesList({ attribute, valuesList: values, onValueCopy, onValueSelect }) {
18
- const { t, i18n } = useSharedTranslation();
19
- const _handleClick = (item) => {
20
- onValueSelect(item.rawValue);
21
- };
22
- const renderItem = (item) => {
23
- const _handleCopy = (e) => {
24
- e.stopPropagation();
25
- onValueCopy(item.rawValue);
26
- };
27
- const valueToDisplay = attribute.format === AttributeFormat.date
28
- ? new Intl.DateTimeFormat(i18n.language).format(new Date(Number(item.value) * 1000))
29
- : item.value;
30
- return (_jsxs(ListItem, { children: [_jsxs("span", { children: [valueToDisplay, item.isNewValue && ` (${t('record_edition.new_value')})`] }), item.canCopy && (_jsx(Tooltip, Object.assign({ title: t('record_edition.copy_value') }, { children: _jsx(Button, { icon: _jsx(CopyOutlined, {}), shape: "circle", onClick: _handleCopy }) })))] }));
31
- };
32
- return (_jsx(List, { dataSource: values, bordered: true, size: "small", maxHeight: 250, locale: { emptyText: t('record_edition.no_matching_value') }, renderItemContent: renderItem, onItemClick: _handleClick }));
33
- }
34
- export default ValuesList;
35
- //# sourceMappingURL=ValuesList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ValuesList.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAC,MAAM,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AAErC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,IAAI,MAAM,qBAAqB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,eAAe,EAA+C,MAAM,eAAe,CAAC;AAe5F,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAK1B,CAAC;AAEF,SAAS,UAAU,CAAC,EAAC,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAmB;IAC7F,MAAM,EAAC,CAAC,EAAE,IAAI,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACzC,MAAM,YAAY,GAAG,CAAC,IAAwB,EAAE,EAAE;QAC9C,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,CAAC,IAAwB,EAAE,EAAE;QAC5C,MAAM,WAAW,GAAG,CAAC,CAAiB,EAAE,EAAE;YACtC,CAAC,CAAC,eAAe,EAAE,CAAC;YAEpB,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC/B,CAAC,CAAC;QAEF,MAAM,cAAc,GAChB,SAAS,CAAC,MAAM,KAAK,eAAe,CAAC,IAAI;YACrC,CAAC,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;YACpF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;QAErB,OAAO,CACH,MAAC,QAAQ,eACL,2BACK,cAAc,EACd,IAAI,CAAC,UAAU,IAAI,KAAK,CAAC,CAAC,0BAA0B,CAAC,GAAG,IACtD,EACN,IAAI,CAAC,OAAO,IAAI,CACb,KAAC,OAAO,kBAAC,KAAK,EAAE,CAAC,CAAC,2BAA2B,CAAC,gBAC1C,KAAC,MAAM,IAAC,IAAI,EAAE,KAAC,YAAY,KAAG,EAAE,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAE,WAAW,GAAI,IACjE,CACb,IACM,CACd,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,IAAI,IACD,UAAU,EAAE,MAAM,EAClB,QAAQ,QACR,IAAI,EAAC,OAAO,EACZ,SAAS,EAAE,GAAG,EACd,MAAM,EAAE,EAAC,SAAS,EAAE,CAAC,CAAC,kCAAkC,CAAC,EAAC,EAC1D,iBAAiB,EAAE,UAAU,EAC7B,WAAW,EAAE,YAAY,GAC3B,CACL,CAAC;AACN,CAAC;AAED,eAAe,UAAU,CAAC"}
@@ -1,2 +0,0 @@
1
- import ValuesList from './ValuesList';
2
- export default ValuesList;
@@ -1,6 +0,0 @@
1
- // Copyright LEAV Solutions 2017
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import ValuesList from './ValuesList';
5
- export default ValuesList;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/ValuesList/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,eAAe,UAAU,CAAC"}
@@ -1,2 +0,0 @@
1
- import StandardFieldValue from './StandardFieldValue';
2
- export default StandardFieldValue;
@@ -1,6 +0,0 @@
1
- // Copyright LEAV Solutions 2017
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import StandardFieldValue from './StandardFieldValue';
5
- export default StandardFieldValue;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecord/uiElements/StandardField/StandardFieldValue/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,eAAe,kBAAkB,CAAC"}
@@ -1,2 +0,0 @@
1
- import StandardField from './StandardField';
2
- export default StandardField;
@@ -1,6 +0,0 @@
1
- // Copyright LEAV Solutions 2017
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import StandardField from './StandardField';
5
- export default StandardField;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecord/uiElements/StandardField/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,eAAe,aAAa,CAAC"}
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { IFormTextBlockSettings } from '@leav/utils';
3
- import { IFormElementProps } from '../../_types';
4
- declare function TextBlock({ element }: IFormElementProps<IFormTextBlockSettings>): JSX.Element;
5
- export default TextBlock;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import ReactMarkdown from 'react-markdown';
3
- function TextBlock({ element }) {
4
- return _jsx(ReactMarkdown, { children: element.settings.content });
5
- }
6
- export default TextBlock;
7
- //# sourceMappingURL=TextBlock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextBlock.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecord/uiElements/TextBlock/TextBlock.tsx"],"names":[],"mappings":";AAKA,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAG3C,SAAS,SAAS,CAAC,EAAC,OAAO,EAA4C;IACnE,OAAO,KAAC,aAAa,cAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,GAAiB,CAAC;AACrE,CAAC;AAED,eAAe,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- import TextBlock from './TextBlock';
2
- export default TextBlock;
@@ -1,6 +0,0 @@
1
- // Copyright LEAV Solutions 2017
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import TextBlock from './TextBlock';
5
- export default TextBlock;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecord/uiElements/TextBlock/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,eAAe,SAAS,CAAC"}
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { ICommonFieldsSettings } from '@leav/utils';
3
- import { IFormElementProps } from '../../_types';
4
- declare function TreeField({ element, onValueSubmit, onValueDelete, onDeleteMultipleValues }: IFormElementProps<ICommonFieldsSettings>): JSX.Element;
5
- export default TreeField;