@leav/ui 0.3.6-5d358de → 0.3.6-621cfcd

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 (338) hide show
  1. package/dist/__mocks__/common/attribute.d.ts +1 -0
  2. package/dist/__mocks__/common/attribute.js +8 -1
  3. package/dist/__mocks__/common/attribute.js.map +1 -1
  4. package/dist/__mocks__/common/form.d.ts +1 -0
  5. package/dist/__mocks__/common/form.js +18 -2
  6. package/dist/__mocks__/common/form.js.map +1 -1
  7. package/dist/__mocks__/common/value.js +2 -1
  8. package/dist/__mocks__/common/value.js.map +1 -1
  9. package/dist/__mocks__/common/view.js +7 -5
  10. package/dist/__mocks__/common/view.js.map +1 -1
  11. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +1 -1
  12. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
  13. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +2 -1
  14. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
  15. package/dist/_gqlTypes/index.d.ts +148 -47
  16. package/dist/_gqlTypes/index.js +108 -22
  17. package/dist/_gqlTypes/index.js.map +1 -1
  18. package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +3 -4
  19. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js +2 -3
  20. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  21. package/dist/_queries/records/getRecordColumnsValues.d.ts +4 -2
  22. package/dist/_queries/records/getRecordColumnsValues.js +4 -1
  23. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  24. package/dist/_queries/records/recordFormAttributeFragment.js +1 -0
  25. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  26. package/dist/_queries/views/saveViewMutation.js +1 -1
  27. package/dist/_queries/views/viewDetailsFragment.js +14 -11
  28. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  29. package/dist/_utils/index.js +5 -2
  30. package/dist/_utils/index.js.map +1 -1
  31. package/dist/_utils/interleaveElement.d.ts +1 -0
  32. package/dist/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js → _utils/interleaveElement.js} +2 -6
  33. package/dist/_utils/interleaveElement.js.map +1 -0
  34. package/dist/components/CreateDirectory/CreateDirectory.js +1 -1
  35. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  36. package/dist/components/EditApplication/EditApplication.js +2 -2
  37. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  38. package/dist/components/EditApplication/_types.d.ts +2 -2
  39. package/dist/components/Explorer/DataView.d.ts +8 -0
  40. package/dist/components/Explorer/DataView.js +33 -7
  41. package/dist/components/Explorer/DataView.js.map +1 -1
  42. package/dist/components/Explorer/Explorer.d.ts +3 -3
  43. package/dist/components/Explorer/Explorer.js +42 -19
  44. package/dist/components/Explorer/Explorer.js.map +1 -1
  45. package/dist/components/Explorer/TableCell.d.ts +1 -1
  46. package/dist/components/Explorer/TableCell.js +117 -15
  47. package/dist/components/Explorer/TableCell.js.map +1 -1
  48. package/dist/components/Explorer/TableTagGroup.d.ts +7 -0
  49. package/dist/components/Explorer/TableTagGroup.js +30 -0
  50. package/dist/components/Explorer/TableTagGroup.js.map +1 -0
  51. package/dist/components/Explorer/_constants.d.ts +4 -0
  52. package/dist/components/Explorer/_constants.js +17 -0
  53. package/dist/components/Explorer/_constants.js.map +1 -0
  54. package/dist/components/Explorer/_queries/useExplorerData.d.ts +22 -4
  55. package/dist/components/Explorer/_queries/useExplorerData.js +90 -4
  56. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  57. package/dist/components/Explorer/_types.d.ts +23 -1
  58. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.d.ts +4 -0
  59. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js +47 -0
  60. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js.map +1 -0
  61. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.d.ts +1 -1
  62. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +11 -4
  63. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
  64. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +5 -0
  65. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +12 -0
  66. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  67. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +11 -0
  68. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +61 -0
  69. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  70. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +19 -52
  71. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
  72. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  73. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +78 -0
  74. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  75. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +9 -0
  76. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  77. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  78. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  79. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +37 -0
  80. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  81. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  82. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +90 -0
  83. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  84. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  85. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +23 -0
  86. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  87. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  88. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  89. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  90. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  91. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +44 -0
  92. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  93. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.d.ts +3 -0
  94. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js +72 -0
  95. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js.map +1 -0
  96. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  97. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +53 -0
  98. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  99. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +10 -0
  100. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +110 -0
  101. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  102. package/dist/components/Explorer/manage-view-settings/index.d.ts +4 -4
  103. package/dist/components/Explorer/manage-view-settings/index.js +3 -3
  104. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -1
  105. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +1 -0
  106. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
  107. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +1 -1
  108. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -1
  109. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +5 -0
  110. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +39 -0
  111. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  112. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.d.ts +2 -1
  113. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +48 -31
  114. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  115. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  116. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +109 -0
  117. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  118. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  119. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  120. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  121. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +2 -0
  122. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +15 -1
  123. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  124. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +116 -16
  125. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +156 -24
  126. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  127. package/dist/components/Explorer/nullValuesConditions.d.ts +1 -0
  128. package/dist/components/Explorer/nullValuesConditions.js +14 -0
  129. package/dist/components/Explorer/nullValuesConditions.js.map +1 -0
  130. package/dist/components/Explorer/useDeactivateAction.js +3 -2
  131. package/dist/components/Explorer/useDeactivateAction.js.map +1 -1
  132. package/dist/components/Explorer/useEditAction.js +5 -3
  133. package/dist/components/Explorer/useEditAction.js.map +1 -1
  134. package/dist/components/Explorer/usePagination.d.ts +7 -0
  135. package/dist/components/Explorer/usePagination.js +25 -0
  136. package/dist/components/Explorer/usePagination.js.map +1 -0
  137. package/dist/components/Explorer/usePrimaryActions.d.ts +1 -9
  138. package/dist/components/Explorer/usePrimaryActions.js +4 -12
  139. package/dist/components/Explorer/usePrimaryActions.js.map +1 -1
  140. package/dist/components/Explorer/useSearchInput.d.ts +10 -0
  141. package/dist/components/Explorer/useSearchInput.js +31 -0
  142. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  143. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  144. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  145. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  146. package/dist/components/Explorer/useViewSettingsReducer.d.ts +7 -0
  147. package/dist/components/Explorer/useViewSettingsReducer.js +106 -0
  148. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  149. package/dist/components/ExportModal/ExportModal.js +2 -2
  150. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  151. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  152. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  153. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  154. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  155. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  156. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  157. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  158. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  159. package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
  160. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  161. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  162. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  163. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  164. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  165. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  166. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  167. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  168. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  169. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  170. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  171. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  172. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  173. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  174. package/dist/components/RecordEdition/EditRecord/EditRecord.js +9 -17
  175. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  176. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +15 -2
  177. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  178. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +9 -20
  179. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  180. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -1
  181. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +44 -34
  182. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  183. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  184. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  185. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  186. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +1 -1
  187. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  188. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  189. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  190. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  191. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  192. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
  193. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  194. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  195. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +18 -0
  196. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  197. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  198. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  199. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  200. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +5 -2
  201. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +145 -191
  202. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  203. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  204. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +10 -30
  205. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  206. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  207. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +38 -45
  208. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  209. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  210. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +31 -46
  211. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  212. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  213. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +9 -77
  214. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  215. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  216. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +29 -49
  217. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  218. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  219. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +34 -54
  220. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  221. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  222. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +48 -64
  223. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  224. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  225. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +30 -53
  226. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  227. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +16 -9
  228. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +66 -401
  229. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  230. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.d.ts +4 -0
  231. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.js → DSListSelect.js} +45 -52
  232. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
  233. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -9
  234. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +15 -0
  235. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  236. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  237. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  238. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +55 -0
  239. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  240. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  241. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +37 -0
  242. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  243. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  244. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  245. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  246. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  247. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  248. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  249. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  250. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  251. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +31 -3
  252. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  253. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  254. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  255. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  256. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  257. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +131 -0
  258. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  259. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  260. package/dist/components/SelectTreeNode/index.js +1 -1
  261. package/dist/components/SelectTreeNode/index.js.map +1 -1
  262. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  263. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  264. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  265. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  266. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  267. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  268. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  269. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  270. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  271. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  272. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  273. package/dist/{components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → hooks/useDebouncedValue}/index.js +1 -1
  274. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  275. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  276. package/dist/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer → hooks/useExecuteSaveViewMutation}/index.js +1 -2
  277. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  278. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  279. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
  280. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  281. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  282. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  283. package/dist/locales/en/shared.json +47 -7
  284. package/dist/locales/fr/shared.json +47 -7
  285. package/dist/types/views.d.ts +4 -4
  286. package/package.json +5 -2
  287. package/dist/components/Explorer/manage-view-settings/_shared/useGetLibraryColumns.d.ts +0 -10
  288. package/dist/components/Explorer/manage-view-settings/_shared/useGetLibraryColumns.js +0 -24
  289. package/dist/components/Explorer/manage-view-settings/_shared/useGetLibraryColumns.js.map +0 -1
  290. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenSettings.d.ts +0 -1
  291. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenSettings.js +0 -19
  292. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenSettings.js.map +0 -1
  293. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  294. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  295. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  296. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  297. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  298. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  299. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  300. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  301. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js +0 -7
  302. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  303. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  304. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  305. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  306. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  307. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  308. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  309. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  310. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  311. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  312. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  313. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  314. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  315. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  316. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  317. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  318. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  319. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  320. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  321. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  322. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  323. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  324. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  325. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -90
  326. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  327. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  328. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  329. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  330. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  331. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  332. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  333. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  334. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  335. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +0 -3
  336. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
  337. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  338. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
@@ -0,0 +1,6 @@
1
+ import { FetchResult } from '@apollo/client';
2
+ import { SaveViewMutation, SaveViewMutationVariables } from '../../_gqlTypes';
3
+ export interface IUseSaveViewMutationHook {
4
+ saveView: (variables: SaveViewMutationVariables) => Promise<FetchResult<SaveViewMutation>>;
5
+ }
6
+ export default function useExecuteSaveViewMutation(): IUseSaveViewMutationHook;
@@ -1,10 +1,10 @@
1
- import { useAddViewMutation } from '../../_gqlTypes';
1
+ import { useSaveViewMutation } from '../../_gqlTypes';
2
2
  import { getViewsListQuery } from '../../_queries/views/getViewsListQuery';
3
- export default function useExecuteAddViewMutation() {
4
- const [executeAddView] = useAddViewMutation();
3
+ export default function useExecuteSaveViewMutation() {
4
+ const [executeSaveView] = useSaveViewMutation();
5
5
  return {
6
- addView(variables) {
7
- return executeAddView({
6
+ saveView(variables) {
7
+ return executeSaveView({
8
8
  variables,
9
9
  update: (cache, mutationResult, options) => {
10
10
  if (options.variables.view.id) {
@@ -33,4 +33,4 @@ export default function useExecuteAddViewMutation() {
33
33
  }
34
34
  };
35
35
  }
36
- //# sourceMappingURL=useExecuteAddViewMutation.js.map
36
+ //# sourceMappingURL=useExecuteSaveViewMutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExecuteSaveViewMutation.js","sourceRoot":"","sources":["../../../src/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.ts"],"names":[],"mappings":"AAIA,OAAO,EAKH,mBAAmB,EACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,iBAAiB,EAAC,MAAM,sCAAsC,CAAC;AAMvE,MAAM,CAAC,OAAO,UAAU,0BAA0B;IAC9C,MAAM,CAAC,eAAe,CAAC,GAAG,mBAAmB,EAAE,CAAC;IAEhD,OAAO;QACH,QAAQ,CAAC,SAAS;YACd,OAAO,eAAe,CAAC;gBACnB,SAAS;gBACT,MAAM,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE;oBACvC,IAAI,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;wBAC5B,OAAO,CAAC,iBAAiB;oBAC7B,CAAC;oBAED,MAAM,aAAa,GAAG;wBAClB,KAAK,EAAE,iBAAiB;wBACxB,SAAS,EAAE;4BACP,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO;yBAC5C;qBACJ,CAAC;oBAEF,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAgD,aAAa,CAAC,CAAC;oBAEhG,IAAI,SAAS,EAAE,CAAC;wBACZ,KAAK,CAAC,UAAU,CAAgD;4BAC5D,GAAG,aAAa;4BAChB,IAAI,EAAE;gCACF,KAAK,EAAE;oCACH,IAAI,EAAE,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC;oCAC7D,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC;iCAC7C;6BACJ;yBACJ,CAAC,CAAC;oBACP,CAAC;gBACL,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -39,6 +39,7 @@ export type RecordFormElement = Override<RecordFormElementFragment, {
39
39
  export type IRecordForm = Override<RecordFormQuery['recordForm'], {
40
40
  elements: RecordFormElement[];
41
41
  }>;
42
+ export type RecordFormElementAttribute = RecordFormElement['attribute'];
42
43
  export interface IUseGetRecordFormHook {
43
44
  loading: boolean;
44
45
  error: ApolloError;
@@ -1 +1 @@
1
- {"version":3,"file":"useGetRecordForm.js","sourceRoot":"","sources":["../../../src/hooks/useGetRecordForm/useGetRecordForm.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,sBAAsB,EAAW,MAAM,aAAa,CAAC;AAC7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAIH,kBAAkB,EAIrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,yBAAyB,EAAC,MAAM,YAAY,CAAC;AAgErD,MAAM,gBAAgB,GAAG,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,EAMV,EAAyB,EAAE;IACxB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAc,IAAI,CAAC,CAAC;IAEtE,MAAM,cAAc,GAAG,OAAO;QAC1B,CAAC,CAAC,sBAAsB,CAAC,OAAO,CAAC;aAC1B,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC;aAC5C,GAAG,CAAC,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC;YACrB,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE,KAAK,CAAC,EAAE;SACvB,CAAC,CAAC;QACT,CAAC,CAAC,IAAI,CAAC;IAEX,MAAM,EAAC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAC,GAAG,kBAAkB,CAAC;QACjD,WAAW,EAAE,cAAc;QAC3B,2BAA2B,EAAE,IAAI;QACjC,SAAS,EAAE;YACP,SAAS;YACT,QAAQ;YACR,MAAM;YACN,OAAO,EAAE,cAAc;SAC1B;QACD,WAAW,EAAE,IAAI,CAAC,EAAE;YAChB,wEAAwE;YACxE,MAAM,mBAAmB,GAAgB;gBACrC,GAAG,IAAI,CAAC,UAAU;gBAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAClC,CAAC,OAAO,EAAqB,EAAE,CAAC,CAAC;oBAC7B,GAAG,OAAO;oBACV,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;wBAC1C,GAAG,KAAK;wBACR,OAAO,EAAE,yBAAyB,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC;wBACvD,QAAQ,EAAE,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;4BAC9C,GAAG,QAAQ;4BACX,KAAK,EAAE;gCACH,GAAG,QAAQ,CAAC,KAAK;gCACjB,OAAO,EAAE,yBAAyB,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,IAAI,EAAE,CAAC;6BACpE;yBACJ,CAAC,CAAC;qBACN,CAAC,CAAC;iBACN,CAAC,CACL;aACJ,CAAC;YAEF,aAAa,CAAC,mBAAmB,CAAC,CAAC;QACvC,CAAC;KACJ,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAC3B,OAAO,CAAC;QACJ,SAAS;QACT,QAAQ;QACR,MAAM;QACN,OAAO,EAAE,cAAc;KAC1B,CAAC,CAAC;IAEP,kHAAkH;IAClH,2BAA2B;IAC3B,OAAO,EAAC,OAAO,EAAE,OAAO,IAAI,CAAC,CAAC,UAAU,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAC,CAAC;AACxG,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"useGetRecordForm.js","sourceRoot":"","sources":["../../../src/hooks/useGetRecordForm/useGetRecordForm.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,sBAAsB,EAAW,MAAM,aAAa,CAAC;AAC7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAIH,kBAAkB,EAIrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,yBAAyB,EAAC,MAAM,YAAY,CAAC;AAkErD,MAAM,gBAAgB,GAAG,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,EAMV,EAAyB,EAAE;IACxB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAc,IAAI,CAAC,CAAC;IAEtE,MAAM,cAAc,GAAG,OAAO;QAC1B,CAAC,CAAC,sBAAsB,CAAC,OAAO,CAAC;aAC1B,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC;aAC5C,GAAG,CAAC,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC;YACrB,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE,KAAK,CAAC,EAAE;SACvB,CAAC,CAAC;QACT,CAAC,CAAC,IAAI,CAAC;IAEX,MAAM,EAAC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAC,GAAG,kBAAkB,CAAC;QACjD,WAAW,EAAE,cAAc;QAC3B,2BAA2B,EAAE,IAAI;QACjC,SAAS,EAAE;YACP,SAAS;YACT,QAAQ;YACR,MAAM;YACN,OAAO,EAAE,cAAc;SAC1B;QACD,WAAW,EAAE,IAAI,CAAC,EAAE;YAChB,wEAAwE;YACxE,MAAM,mBAAmB,GAAgB;gBACrC,GAAG,IAAI,CAAC,UAAU;gBAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAClC,CAAC,OAAO,EAAqB,EAAE,CAAC,CAAC;oBAC7B,GAAG,OAAO;oBACV,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;wBAC1C,GAAG,KAAK;wBACR,OAAO,EAAE,yBAAyB,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC;wBACvD,QAAQ,EAAE,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;4BAC9C,GAAG,QAAQ;4BACX,KAAK,EAAE;gCACH,GAAG,QAAQ,CAAC,KAAK;gCACjB,OAAO,EAAE,yBAAyB,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,IAAI,EAAE,CAAC;6BACpE;yBACJ,CAAC,CAAC;qBACN,CAAC,CAAC;iBACN,CAAC,CACL;aACJ,CAAC;YAEF,aAAa,CAAC,mBAAmB,CAAC,CAAC;QACvC,CAAC;KACJ,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAC3B,OAAO,CAAC;QACJ,SAAS;QACT,QAAQ;QACR,MAAM;QACN,OAAO,EAAE,cAAc;KAC1B,CAAC,CAAC;IAEP,kHAAkH;IAClH,2BAA2B;IAC3B,OAAO,EAAC,OAAO,EAAE,OAAO,IAAI,CAAC,CAAC,UAAU,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAC,CAAC;AACxG,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -164,7 +164,8 @@
164
164
  "advanced_settings": "Advanced settings",
165
165
  "delete": "Delete tree",
166
166
  "delete_confirm": "Do you really want to delete this tree?",
167
- "delete_confirm_warning": "Warning: this action is irreversible"
167
+ "delete_confirm_warning": "Warning: this action is irreversible",
168
+ "unknown_tree": "Unknown tree {{treeId}}"
168
169
  },
169
170
  "lang": {
170
171
  "fr": "French",
@@ -402,6 +403,7 @@
402
403
  "link_created_at": "Linked at",
403
404
  "add_value": "Add value",
404
405
  "add_value_link": "Add link",
406
+ "delete_value": "Delete value",
405
407
  "delete_value_confirm": "Do you really want to delete this value?",
406
408
  "whoAmI": "Information",
407
409
  "no_value": "No value",
@@ -423,6 +425,7 @@
423
425
  "metadata_section": "Value properties",
424
426
  "metadata_section_link": "Link properties",
425
427
  "value_length": "{{length}} characters",
428
+ "delete_all": "Delete all",
426
429
  "delete_all_values": "Delete all values",
427
430
  "delete_all_values_confirm": "Do you really want to delete all values?",
428
431
  "value_details_tooltip": "More details",
@@ -453,9 +456,9 @@
453
456
  "cancel_confirm_modal_title": "Confirm cancellation?",
454
457
  "cancel_confirm_modal_content": "You are about to cancel the creation.",
455
458
  "cancel_confirm_modal_question": "Are you sure?",
456
- "record_select": "Select a record",
457
- "inherited_input_helper": "Inherited value: {{- inheritedValue}}",
458
- "calculated_input_helper": "Calculated value: {{- calculatedValue}}",
459
+ "inherited_value": "Inherited value",
460
+ "calculated_value": "Calculated value",
461
+ "overrided_value": "Overrided value",
459
462
  "date_range_from_to": "from {{- from}} to {{- to}}",
460
463
  "link_search_result_count": "Results ({{count}}/{{total}})",
461
464
  "suggestions_count": "Suggestions ({{count}})",
@@ -463,7 +466,19 @@
463
466
  "press_enter_to": "Press enter to ",
464
467
  "select_this_value": "Select this value",
465
468
  "select_option": "Select option ",
466
- "create_and_select_option": "Create and select option "
469
+ "create_and_select_option": "Create and select option ",
470
+ "please_select_value_before_adding": "Please select a value before adding a new one",
471
+ "placeholder": {
472
+ "record_select": "Select a record",
473
+ "enter_a_text": "Enter a text",
474
+ "enter_a_date": "Enter a date (e.g. 12/25/2024)",
475
+ "enter_a_period": "Enter a period",
476
+ "enter_a_number": "Enter a number",
477
+ "enter_a_password": "Enter a password",
478
+ "start_date": "Start date",
479
+ "end_date": "End date",
480
+ "select_an_option": "Select an option"
481
+ }
467
482
  },
468
483
  "record_summary": {
469
484
  "preview_title": "Click here to visualize preview.",
@@ -613,9 +628,34 @@
613
628
  "view-type-mosaic": "Mosaic",
614
629
  "view-type-planning": "Planning",
615
630
  "filters": "Filters",
616
- "sort": "Sort",
631
+ "sort-items": "Sort",
632
+ "filter-items": "Filter",
633
+ "sort-ascending": "Ascending",
634
+ "sort-descending": "Descending",
635
+ "sort-list": {
636
+ "active": "Active sorts",
637
+ "inactive": "Inactive sorts"
638
+ },
639
+ "toolbar": {
640
+ "active": "Active filters",
641
+ "inactive": "Inactive filters"
642
+ },
643
+ "reset-filter": "Reset filter",
644
+ "reset-view": "Reset view",
645
+ "empty-data": "No items found.",
646
+ "available-attributes": "Other available attributes",
617
647
  "coming-soon": "Coming soon",
618
648
  "show": "Show",
619
- "hide": "Hide"
649
+ "hide": "Hide",
650
+ "columns": "Columns",
651
+ "visible-columns": "Visible columns",
652
+ "invisible-columns": "Invisible columns",
653
+ "pagination-total-number": "{{from, number}} - {{to, number}} of {{total, number}} items",
654
+ "active-items-number": "{{count, number}} active",
655
+ "active-items-number_zero": "None",
656
+ "invalid-value": "Invalid value",
657
+ "type-a-value": "Type a value",
658
+ "save-view": "Save",
659
+ "reinit-view": "Reset"
620
660
  }
621
661
  }
@@ -164,7 +164,8 @@
164
164
  "advanced_settings": "Paramètres avancés",
165
165
  "delete": "Supprimer l'arbre",
166
166
  "delete_confirm": "Êtes-vous sûr de vouloir supprimer cet arbre ?",
167
- "delete_confirm_warning": "Attention, cette action est irréversible"
167
+ "delete_confirm_warning": "Attention, cette action est irréversible",
168
+ "unknown_tree": "Arbre {{treeId}} inconnu"
168
169
  },
169
170
  "lang": {
170
171
  "fr": "Français",
@@ -402,6 +403,7 @@
402
403
  "link_created_at": "Lié le",
403
404
  "add_value": "Ajouter une valeur",
404
405
  "add_value_link": "Ajouter une liaison",
406
+ "delete_value": "Supprimer cette valeur",
405
407
  "delete_value_confirm": "Êtes-vous sûr de vouloir supprimer cette valeur?",
406
408
  "whoAmI": "Informations",
407
409
  "no_value": "Pas de valeur",
@@ -423,6 +425,7 @@
423
425
  "metadata_section": "Propriétés de la valeur",
424
426
  "metadata_section_link": "Propriétés de la liaison",
425
427
  "value_length": "{{length}} caractère(s)",
428
+ "delete_all": "Tout supprimer",
426
429
  "delete_all_values": "Supprimer toutes les valeurs",
427
430
  "delete_all_values_confirm": "Êtes-vous sûr de vouloir supprimer toutes les valeurs?",
428
431
  "value_details_tooltip": "Plus d'informations",
@@ -453,9 +456,9 @@
453
456
  "cancel_confirm_modal_title": "Confirmer l'abandon?",
454
457
  "cancel_confirm_modal_content": "Vous êtes sur le point d'abandonner la création.",
455
458
  "cancel_confirm_modal_question": "Êtes-vous sûr(e) ?",
456
- "record_select": "Sélectionnez un élément",
457
- "inherited_input_helper": "Valeur héritée : {{- inheritedValue }}",
458
- "calculated_input_helper": "Valeur calculée : {{- calculatedValue}}",
459
+ "inherited_value": "Valeur héritée",
460
+ "calculated_value": "Valeur calculée",
461
+ "overrided_value": "Valeur surchargée",
459
462
  "date_range_from_to": "du {{- from}} au {{- to}}",
460
463
  "link_search_result_count": "Résultats ({{count}}/{{total}})",
461
464
  "suggestions_count": "Suggestions ({{count}})",
@@ -463,7 +466,19 @@
463
466
  "press_enter_to": "Appuyer sur Entrer pour ",
464
467
  "select_this_value": "Sélectionner cette valeur",
465
468
  "select_option": "Sélectionner l’option ",
466
- "create_and_select_option": "Créer et sélectionner l’option "
469
+ "create_and_select_option": "Créer et sélectionner l’option ",
470
+ "please_select_value_before_adding": "Veuillez sélectionner une valeur avant d'en ajouter une nouvelle",
471
+ "placeholder": {
472
+ "record_select": "Sélectionnez un élément",
473
+ "enter_a_text": "Saisir un texte",
474
+ "enter_a_date": "Saisir une date (ex: 25/12/2024)",
475
+ "enter_a_period": "Saisir une période",
476
+ "enter_a_number": "Saisir un nombre",
477
+ "enter_a_password": "Saisir un mot de passe",
478
+ "start_date": "Date de début",
479
+ "end_date": "Date de fin",
480
+ "select_an_option": "Sélectionner une option"
481
+ }
467
482
  },
468
483
  "record_summary": {
469
484
  "preview_title": "Cliquez ici pour voir l’aperçu.",
@@ -613,9 +628,34 @@
613
628
  "view-type-mosaic": "Mosaïque",
614
629
  "view-type-planning": "Planning",
615
630
  "filters": "Filtrer",
616
- "sort": "Trier",
631
+ "sort-items": "Trier",
632
+ "filter-items": "Filtrer",
633
+ "sort-list": {
634
+ "active": "Tris actifs",
635
+ "inactive": "Tris inactifs"
636
+ },
637
+ "toolbar": {
638
+ "active": "Filtres actifs",
639
+ "inactive": "Filtres inactifs"
640
+ },
641
+ "reset-filter": "Réinitialiser le filtre",
642
+ "reset-view": "Réinitialiser la vue",
643
+ "empty-data": "Aucun élément trouvé.",
644
+ "sort-ascending": "Ascendant",
645
+ "sort-descending": "Descendant",
646
+ "available-attributes": "Autres propriétés disponibles",
617
647
  "coming-soon": "À venir",
618
648
  "show": "Afficher",
619
- "hide": "Masquer"
649
+ "hide": "Masquer",
650
+ "pagination-total-number": "{{from, number}} - {{to, number}} de {{total, number}} éléments",
651
+ "columns": "Colonnes",
652
+ "visible-columns": "Colonnes visibles",
653
+ "invisible-columns": "Colonnes invisibles",
654
+ "active-items-number": "{{count, number}} actifs",
655
+ "active-items-number_zero": "Aucun",
656
+ "invalid-value": "Valeur invalide",
657
+ "type-a-value": "Saisissez une valeur",
658
+ "save-view": "Enregistrer",
659
+ "reinit-view": "Réinitialiser"
620
660
  }
621
661
  }
@@ -13,12 +13,12 @@ export interface IView {
13
13
  color?: string;
14
14
  filters?: IFilter[];
15
15
  valuesVersions?: IValueVersion;
16
- settings?: IGetViewListSettings[];
17
- sort?: IGetViewListSort;
16
+ sort?: IGetViewListSort[];
17
+ attributes?: string[];
18
18
  }
19
19
  export interface IViewDisplay {
20
20
  type: ViewTypes;
21
- size: ViewSizes;
21
+ size?: ViewSizes;
22
22
  }
23
23
  export interface IGetViewListSort {
24
24
  field: string;
@@ -29,6 +29,6 @@ export interface IGetViewListSettings {
29
29
  value?: any;
30
30
  }
31
31
  export interface IGetViewListDisplay {
32
- size: ViewSizes;
32
+ size?: ViewSizes;
33
33
  type: ViewTypes;
34
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leav/ui",
3
- "version": "0.3.6-5d358de",
3
+ "version": "0.3.6-621cfcd",
4
4
  "description": "Shared React components and hooks",
5
5
  "scripts": {
6
6
  "prepublishOnly": "yarn build",
@@ -34,6 +34,7 @@
34
34
  "@total-typescript/ts-reset": "0.6.1",
35
35
  "@types/dompurify": "3.0.3",
36
36
  "@types/jest": "29.0.2",
37
+ "@types/lodash.isequal": "^4",
37
38
  "@types/object-path": "0.11.1",
38
39
  "@types/react-beautiful-dnd": "13.1.2",
39
40
  "@types/react-table": "7.7.12",
@@ -51,7 +52,7 @@
51
52
  "@ant-design/icons": ">=5.2",
52
53
  "@apollo/client": ">=3.8.1",
53
54
  "antd": "5.15.3",
54
- "aristid-ds": "10.1.0-b8e3d81",
55
+ "aristid-ds": "11.0.0-6ec698b",
55
56
  "dayjs": "^1.11.10",
56
57
  "i18next": "22.5",
57
58
  "react": "18.2.0",
@@ -67,9 +68,11 @@
67
68
  "@dnd-kit/core": "6.1.0",
68
69
  "@dnd-kit/sortable": "8.0.0",
69
70
  "@leav/utils": "0.0.3",
71
+ "@uidotdev/usehooks": "2.4.1",
70
72
  "dompurify": "3.1.3",
71
73
  "html-react-parser": "4.2.2",
72
74
  "i18next-resources-to-backend": "1.1.4",
75
+ "lodash.isequal": "4.5.0",
73
76
  "moment": "2.30.1",
74
77
  "object-path": "0.11.8",
75
78
  "react-beautiful-dnd": "13.1.1",
@@ -1,10 +0,0 @@
1
- import { AttributeDetailsFragment } from '../../../../_gqlTypes';
2
- interface IColumnsById {
3
- [attributeId: string]: AttributeDetailsFragment;
4
- }
5
- export declare const useGetLibraryColumns: (library: string) => {
6
- attributeDetailsById: IColumnsById;
7
- error: import("@apollo/client").ApolloError;
8
- loading: boolean;
9
- };
10
- export {};
@@ -1,24 +0,0 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import { localizedTranslation } from '@leav/utils';
5
- import { useGetAttributesByLibQuery } from '../../../../_gqlTypes';
6
- import { useLang } from '../../../../hooks';
7
- const _mapping = (data, availableLanguages) => data?.attributes?.list.reduce((acc, attribute) => {
8
- acc[attribute.id] = {
9
- ...attribute,
10
- label: localizedTranslation(attribute.label, availableLanguages)
11
- };
12
- return acc;
13
- }, {}) ?? {};
14
- export const useGetLibraryColumns = (library) => {
15
- const { lang: availableLanguages } = useLang();
16
- const { data, error, loading } = useGetAttributesByLibQuery({
17
- variables: {
18
- library
19
- }
20
- });
21
- const attributeDetailsById = _mapping(data, availableLanguages);
22
- return { attributeDetailsById, error, loading };
23
- };
24
- //# sourceMappingURL=useGetLibraryColumns.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useGetLibraryColumns.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/_shared/useGetLibraryColumns.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAoD,0BAA0B,EAAC,MAAM,eAAe,CAAC;AAC5G,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAMlC,MAAM,QAAQ,GAAG,CAAC,IAAyC,EAAE,kBAA4B,EAAgB,EAAE,CACvG,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,MAAM,CAAe,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE;IAC3D,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG;QAChB,GAAG,SAAS;QACZ,KAAK,EAAE,oBAAoB,CAAC,SAAS,CAAC,KAAK,EAAE,kBAAkB,CAAC;KACnE,CAAC;IACF,OAAO,GAAG,CAAC;AACf,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,OAAe,EAAE,EAAE;IACpD,MAAM,EAAC,IAAI,EAAE,kBAAkB,EAAC,GAAG,OAAO,EAAE,CAAC;IAC7C,MAAM,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAC,GAAG,0BAA0B,CAAC;QACtD,SAAS,EAAE;YACP,OAAO;SACV;KACJ,CAAC,CAAC;IAEH,MAAM,oBAAoB,GAAG,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;IAEhE,OAAO,EAAC,oBAAoB,EAAE,KAAK,EAAE,OAAO,EAAC,CAAC;AAClD,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export declare const useOpenSettings: (library: string) => JSX.Element;
@@ -1,19 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { KitButton } from 'aristid-ds';
6
- import { FaSlidersH } from 'react-icons/fa';
7
- import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
8
- import { SettingsPanel } from '../router-menu/SettingsPanel';
9
- import { useEditSettings } from './useEditSettings';
10
- export const useOpenSettings = (library) => {
11
- const { setActiveSettings } = useEditSettings();
12
- const { t } = useSharedTranslation();
13
- const _openSettingsPanel = () => setActiveSettings({
14
- content: _jsx(SettingsPanel, { library: library }),
15
- title: t('explorer.settings')
16
- });
17
- return (_jsx(KitButton, { type: "tertiary", color: "neutral", icon: _jsx(FaSlidersH, {}), onClick: _openSettingsPanel, title: String(t('explorer.settings')) /* TODO: avoid transform null to 'null' */ }));
18
- };
19
- //# sourceMappingURL=useOpenSettings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOpenSettings.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/useOpenSettings.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,OAAe,EAAE,EAAE;IAC/C,MAAM,EAAC,iBAAiB,EAAC,GAAG,eAAe,EAAE,CAAC;IAC9C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAC5B,iBAAiB,CAAC;QACd,OAAO,EAAE,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,GAAI;QAC5C,KAAK,EAAE,CAAC,CAAC,mBAAmB,CAAC;KAChC,CAAC,CAAC;IAEP,OAAO,CACH,KAAC,SAAS,IACN,IAAI,EAAC,UAAU,EACf,KAAK,EAAC,SAAS,EACf,IAAI,EAAE,KAAC,UAAU,KAAG,EACpB,OAAO,EAAE,kBAAkB,EAC3B,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,0CAA0C,GAClF,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import standardFieldReducer from './standardFieldReducer';
2
- export default standardFieldReducer;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,eAAe,oBAAoB,CAAC"}
@@ -1,138 +0,0 @@
1
- import { AnyPrimitive, IDateRangeValue, IKeyValue } from '@leav/utils';
2
- import { VersionFieldScope, FormElement, ICommonFieldsReducerState, StandardValueTypes } from '../../../../../components/RecordEdition/EditRecordContent/_types';
3
- import { RecordFormElementsValueStandardValue } from '../../../../../hooks/useGetRecordForm/useGetRecordForm';
4
- import { IRecordIdentityWhoAmI } from '../../../../../types/records';
5
- import { IValueVersion } from '../../../../../types/values';
6
- import { RecordFormAttributeStandardAttributeFragment, ValueDetailsValueFragment } from '../../../../../_gqlTypes';
7
- import { IRecordPropertyStandard } from '../../../../../_queries/records/getRecordPropertiesQuery';
8
- export type IdValue = string | null;
9
- export declare const newValueId = "__new__";
10
- export declare enum StandardFieldValueState {
11
- PRISTINE = "PRISTINE",
12
- DIRTY = "DIRTY"
13
- }
14
- export type StandardFieldReducerValues = IKeyValue<IStandardFieldValue>;
15
- export interface IStandardFieldValue {
16
- idValue: IdValue;
17
- index: number;
18
- value: IRecordPropertyStandard | null;
19
- displayValue: StandardValueTypes;
20
- editingValue: StandardValueTypes;
21
- originRawValue: StandardValueTypes;
22
- isEditing: boolean;
23
- error?: string;
24
- isErrorDisplayed: boolean;
25
- state: StandardFieldValueState;
26
- }
27
- interface IInheritedNotOverride {
28
- isInheritedValue: true;
29
- isInheritedOverrideValue: false;
30
- isInheritedNotOverrideValue: true;
31
- inheritedValue: RecordFormElementsValueStandardValue;
32
- }
33
- interface IInheritedOverride {
34
- isInheritedValue: true;
35
- isInheritedOverrideValue: true;
36
- isInheritedNotOverrideValue: false;
37
- inheritedValue: RecordFormElementsValueStandardValue;
38
- }
39
- interface INotInherited {
40
- isInheritedValue: false;
41
- isInheritedOverrideValue: false;
42
- isInheritedNotOverrideValue: false;
43
- inheritedValue: null;
44
- }
45
- export type InheritedFlags = INotInherited | IInheritedOverride | IInheritedNotOverride;
46
- interface ICalculatedNotOverride {
47
- isCalculatedValue: true;
48
- isCalculatedOverrideValue: false;
49
- isCalculatedNotOverrideValue: true;
50
- calculatedValue: RecordFormElementsValueStandardValue;
51
- }
52
- interface ICalculatedOverride {
53
- isCalculatedValue: true;
54
- isCalculatedOverrideValue: true;
55
- isCalculatedNotOverrideValue: false;
56
- calculatedValue: RecordFormElementsValueStandardValue;
57
- }
58
- interface INotCalculated {
59
- isCalculatedValue: false;
60
- isCalculatedOverrideValue: false;
61
- isCalculatedNotOverrideValue: false;
62
- calculatedValue: null;
63
- }
64
- export type CalculatedFlags = INotCalculated | ICalculatedOverride | ICalculatedNotOverride;
65
- export type IStandardFieldReducerState = ICommonFieldsReducerState<StandardFieldReducerValues, RecordFormAttributeStandardAttributeFragment> & {
66
- metadataEdit: boolean;
67
- } & InheritedFlags & CalculatedFlags;
68
- export declare enum StandardFieldReducerActionsTypes {
69
- ADD_VALUE = "ADD_VALUE",
70
- CHANGE_VALUE = "CHANGE_VALUE",
71
- FOCUS_FIELD = "FOCUS_FIELD",
72
- SET_ERROR = "SET_ERROR",
73
- SET_ERROR_DISPLAY = "SET_ERROR_DISPLAY",
74
- UNEDIT_FIELD = "UNEDIT_FIELD",
75
- CLOSE_ERROR = "CLOSE_ERROR",
76
- CLEAR_ERROR = "CLEAR_ERROR",
77
- UPDATE_AFTER_SUBMIT = "UPDATE_AFTER_SUBMIT",
78
- UPDATE_AFTER_DELETE = "UPDATE_AFTER_DELETE",
79
- CANCEL_EDITING = "CANCEL_EDITING",
80
- CHANGE_VERSION_SCOPE = "CHANGE_VERSION_SCOPE",
81
- REFRESH_VALUES = "REFRESH_VALUES"
82
- }
83
- export declare const virginValue: IStandardFieldValue;
84
- export type StandardFieldReducerValueActions = {
85
- type: StandardFieldReducerActionsTypes.ADD_VALUE;
86
- idValue?: IdValue;
87
- } | {
88
- type: StandardFieldReducerActionsTypes.CHANGE_VALUE;
89
- idValue: IdValue;
90
- value: AnyPrimitive | IDateRangeValue;
91
- } | {
92
- type: StandardFieldReducerActionsTypes.FOCUS_FIELD;
93
- idValue: IdValue;
94
- } | {
95
- type: StandardFieldReducerActionsTypes.SET_ERROR;
96
- idValue: IdValue;
97
- error: string;
98
- } | {
99
- type: StandardFieldReducerActionsTypes.UNEDIT_FIELD;
100
- idValue: IdValue;
101
- } | {
102
- type: StandardFieldReducerActionsTypes.SET_ERROR_DISPLAY;
103
- idValue: IdValue;
104
- displayError: boolean;
105
- } | {
106
- type: StandardFieldReducerActionsTypes.CLEAR_ERROR;
107
- idValue: IdValue;
108
- } | {
109
- type: StandardFieldReducerActionsTypes.UPDATE_AFTER_SUBMIT;
110
- idValue: IdValue;
111
- newValue: ValueDetailsValueFragment;
112
- } | {
113
- type: StandardFieldReducerActionsTypes.UPDATE_AFTER_DELETE;
114
- idValue?: IdValue;
115
- allDeleted?: boolean;
116
- } | {
117
- type: StandardFieldReducerActionsTypes.CANCEL_EDITING;
118
- idValue: IdValue;
119
- };
120
- export type StandardFieldReducerFieldActions = {
121
- type: StandardFieldReducerActionsTypes.CHANGE_VERSION_SCOPE;
122
- scope: VersionFieldScope;
123
- } | {
124
- type: StandardFieldReducerActionsTypes.REFRESH_VALUES;
125
- values: RecordFormElementsValueStandardValue[];
126
- formVersion: IValueVersion;
127
- };
128
- export type StandardFieldReducerAction = StandardFieldReducerValueActions | StandardFieldReducerFieldActions;
129
- export type StandardFieldDispatchFunc = (action: StandardFieldReducerAction) => void;
130
- export declare const computeInitialState: (params: {
131
- element: FormElement<unknown>;
132
- record: IRecordIdentityWhoAmI;
133
- isRecordReadOnly: boolean;
134
- metadataEdit: boolean;
135
- formVersion: IValueVersion;
136
- }) => IStandardFieldReducerState;
137
- declare const standardFieldReducer: (state: IStandardFieldReducerState, action: StandardFieldReducerAction) => IStandardFieldReducerState;
138
- export default standardFieldReducer;