@leav/ui 0.3.6-89067e7 → 0.3.6-8bd5a2d

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 (295) hide show
  1. package/dist/__mocks__/common/form.d.ts +11 -5
  2. package/dist/__mocks__/common/form.js +18 -2
  3. package/dist/__mocks__/common/form.js.map +1 -1
  4. package/dist/__mocks__/common/record.d.ts +13 -2
  5. package/dist/__mocks__/common/record.js.map +1 -1
  6. package/dist/_gqlTypes/index.d.ts +65 -18
  7. package/dist/_gqlTypes/index.js +59 -5
  8. package/dist/_gqlTypes/index.js.map +1 -1
  9. package/dist/components/CreateDirectory/CreateDirectory.js +1 -1
  10. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  11. package/dist/components/EditApplication/EditApplication.js +2 -2
  12. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  13. package/dist/components/EditApplication/_types.d.ts +2 -2
  14. package/dist/components/Explorer/DataView.d.ts +10 -1
  15. package/dist/components/Explorer/DataView.js +31 -33
  16. package/dist/components/Explorer/DataView.js.map +1 -1
  17. package/dist/components/Explorer/Explorer.d.ts +3 -0
  18. package/dist/components/Explorer/Explorer.js +54 -14
  19. package/dist/components/Explorer/Explorer.js.map +1 -1
  20. package/dist/components/Explorer/ExplorerTitle.js +3 -1
  21. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  22. package/dist/components/Explorer/IdCard.d.ts +7 -0
  23. package/dist/components/Explorer/IdCard.js +15 -0
  24. package/dist/components/Explorer/IdCard.js.map +1 -0
  25. package/dist/components/Explorer/TableCell.d.ts +8 -0
  26. package/dist/components/Explorer/TableCell.js +143 -0
  27. package/dist/components/Explorer/TableCell.js.map +1 -0
  28. package/dist/components/Explorer/TableTagGroup.d.ts +7 -0
  29. package/dist/components/Explorer/TableTagGroup.js +30 -0
  30. package/dist/components/Explorer/TableTagGroup.js.map +1 -0
  31. package/dist/components/Explorer/_queries/useExplorerData.d.ts +20 -4
  32. package/dist/components/Explorer/_queries/useExplorerData.js +58 -17
  33. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  34. package/dist/components/Explorer/_types.d.ts +25 -3
  35. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.d.ts +2 -0
  36. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js +41 -0
  37. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js.map +1 -0
  38. package/dist/components/Explorer/index.d.ts +1 -3
  39. package/dist/components/Explorer/index.js +1 -3
  40. package/dist/components/Explorer/index.js.map +1 -1
  41. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.d.ts +2 -1
  42. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +85 -0
  43. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -0
  44. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +11 -0
  45. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +61 -0
  46. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  47. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
  48. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +28 -0
  49. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -0
  50. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
  51. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +56 -0
  52. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -0
  53. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
  54. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +12 -0
  55. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -0
  56. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  57. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +88 -0
  58. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  59. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +10 -0
  60. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  61. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  62. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  63. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +17 -0
  64. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  65. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  66. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  67. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  68. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  69. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +35 -0
  70. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  71. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.d.ts +3 -0
  72. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js +69 -0
  73. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js.map +1 -0
  74. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  75. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +43 -0
  76. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  77. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +14 -0
  78. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +82 -0
  79. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  80. package/dist/components/Explorer/manage-view-settings/index.d.ts +8 -0
  81. package/dist/components/Explorer/manage-view-settings/index.js +11 -0
  82. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -0
  83. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.d.ts +1 -0
  84. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.js +1 -0
  85. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -0
  86. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.d.ts +7 -0
  87. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContextProvider.js +2 -1
  88. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -0
  89. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.js +2 -2
  90. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -0
  91. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -0
  92. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +3 -0
  93. package/dist/components/Explorer/{edit-settings/useOpenSettings.js → manage-view-settings/open-view-settings/useOpenViewSettings.js} +7 -5
  94. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  95. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -0
  96. package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingsPanel.d.ts +1 -1
  97. package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingsPanel.js +10 -10
  98. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -0
  99. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  100. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +109 -0
  101. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  102. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  103. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  104. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  105. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.d.ts +6 -0
  106. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +11 -0
  107. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -0
  108. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.d.ts +4 -0
  109. package/dist/components/{RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js → Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js} +3 -3
  110. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -0
  111. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +4 -0
  112. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +13 -0
  113. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -0
  114. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +130 -0
  115. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +164 -0
  116. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -0
  117. package/dist/components/Explorer/useEditAction.js +1 -0
  118. package/dist/components/Explorer/useEditAction.js.map +1 -1
  119. package/dist/components/Explorer/usePagination.d.ts +7 -0
  120. package/dist/components/Explorer/usePagination.js +25 -0
  121. package/dist/components/Explorer/usePagination.js.map +1 -0
  122. package/dist/components/Explorer/usePrimaryActions.d.ts +1 -8
  123. package/dist/components/Explorer/usePrimaryActions.js +4 -11
  124. package/dist/components/Explorer/usePrimaryActions.js.map +1 -1
  125. package/dist/components/Explorer/useSearchInput.d.ts +10 -0
  126. package/dist/components/Explorer/useSearchInput.js +31 -0
  127. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  128. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  129. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  130. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  131. package/dist/components/ExportModal/ExportModal.js +2 -2
  132. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  133. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  134. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  135. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  136. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  137. package/dist/components/RecordEdition/EditRecord/EditRecord.js +2 -2
  138. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  139. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +1 -1
  140. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  141. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +7 -20
  142. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  143. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +2 -1
  144. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +40 -33
  145. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  146. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
  147. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  148. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  149. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +1 -1
  150. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  151. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +1 -1
  152. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  153. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  154. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  155. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  156. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +3 -2
  157. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +165 -192
  158. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  159. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  160. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +10 -29
  161. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  162. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  163. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +33 -43
  164. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  165. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  166. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +19 -47
  167. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  168. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  169. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +9 -77
  170. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  171. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  172. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +24 -46
  173. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  174. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  175. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +29 -50
  176. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  177. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  178. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +43 -62
  179. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  180. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  181. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +28 -50
  182. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  183. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +14 -9
  184. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +64 -401
  185. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  186. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +3 -2
  187. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js +23 -49
  188. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +1 -1
  189. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -9
  190. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +13 -0
  191. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  192. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  193. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  194. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +55 -0
  195. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  196. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  197. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +31 -0
  198. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  199. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  200. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  201. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  202. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  203. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  204. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  205. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +131 -0
  206. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  207. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  208. package/dist/components/SelectTreeNode/index.js +1 -1
  209. package/dist/components/SelectTreeNode/index.js.map +1 -1
  210. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  211. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  212. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  213. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  214. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  215. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  216. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  217. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  218. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  219. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  220. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  221. package/dist/{components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → hooks/useDebouncedValue}/index.js +1 -1
  222. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  223. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  224. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  225. package/dist/locales/en/shared.json +50 -11
  226. package/dist/locales/fr/shared.json +50 -11
  227. package/package.json +5 -2
  228. package/dist/components/Explorer/edit-settings/ColumnItem.js +0 -62
  229. package/dist/components/Explorer/edit-settings/ColumnItem.js.map +0 -1
  230. package/dist/components/Explorer/edit-settings/DisplayMode.d.ts +0 -6
  231. package/dist/components/Explorer/edit-settings/DisplayMode.js +0 -28
  232. package/dist/components/Explorer/edit-settings/DisplayMode.js.map +0 -1
  233. package/dist/components/Explorer/edit-settings/DisplayModeTable.d.ts +0 -6
  234. package/dist/components/Explorer/edit-settings/DisplayModeTable.js +0 -77
  235. package/dist/components/Explorer/edit-settings/DisplayModeTable.js.map +0 -1
  236. package/dist/components/Explorer/edit-settings/EditSettingsContext.js.map +0 -1
  237. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.d.ts +0 -2
  238. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js.map +0 -1
  239. package/dist/components/Explorer/edit-settings/SettingItem.js.map +0 -1
  240. package/dist/components/Explorer/edit-settings/SettingsPanel.js.map +0 -1
  241. package/dist/components/Explorer/edit-settings/SidePanel.js.map +0 -1
  242. package/dist/components/Explorer/edit-settings/useEditSettings.js.map +0 -1
  243. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.d.ts +0 -10
  244. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js +0 -24
  245. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js.map +0 -1
  246. package/dist/components/Explorer/edit-settings/useOpenSettings.d.ts +0 -1
  247. package/dist/components/Explorer/edit-settings/useOpenSettings.js.map +0 -1
  248. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  249. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js +0 -6
  250. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  251. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  252. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  253. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  254. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  255. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js +0 -9
  256. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  257. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  258. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  259. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  260. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  261. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  262. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  263. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  264. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  265. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  266. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  267. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  268. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  269. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  270. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  271. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  272. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  273. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  274. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  275. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  276. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  277. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  278. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  279. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  280. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  281. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -90
  282. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  283. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  284. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  285. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  286. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  287. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  288. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  289. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  290. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  291. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.d.ts +0 -0
  292. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.d.ts +0 -0
  293. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.js +0 -0
  294. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.d.ts +0 -0
  295. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.js +0 -0
@@ -1,62 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } 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 { KitTypography } from 'aristid-ds';
6
- import { FaEye, FaEyeSlash } from 'react-icons/fa';
7
- import styled from 'styled-components';
8
- const StyledValue = styled(KitTypography.Text) `
9
- color: var(--general-utilities-disabled);
10
- `;
11
- const StyledConfigurationItem = styled.li `
12
- list-style: none;
13
- color: var(--general-utilities-text-primary);
14
- display: flex;
15
- width: 100%;
16
- height: 40px;
17
- padding: 0 calc(var(--general-spacing-xs) * 1px);
18
- align-items: center;
19
- gap: calc(var(--general-spacing-xs) * 1px);
20
- border-radius: calc(var(--general-spacing-xs) * 1px);
21
- text-align: left;
22
-
23
- &:first-child {
24
- margin-top: calc(var(--general-spacing-xs) * 1px);
25
- }
26
-
27
- &:hover {
28
- background: var(--general-utilities-main-light);
29
-
30
- ${StyledValue} {
31
- color: var(--general-utilities-text-primary);
32
- }
33
- }
34
-
35
- .title {
36
- flex: 1 1 auto;
37
- }
38
-
39
- > svg {
40
- flex: 0 0 calc(var(--general-spacing-s) * 1px);
41
- }
42
-
43
- > button {
44
- border: none;
45
- background: transparent;
46
- padding: 0;
47
- &:not([disabled]) {
48
- cursor: pointer;
49
- }
50
- }
51
- `;
52
- const StyledFaEye = styled(FaEye) `
53
- color: currentColor;
54
- `;
55
- const StyledEyeSlash = styled(FaEyeSlash) `
56
- color: var(--general-utilities-disabled);
57
- `;
58
- const StyledEmptyIcon = styled.div `
59
- width: calc(var(--general-spacing-s) * 1px);
60
- `;
61
- export const ColumnItem = ({ dragHandler, title, disabled, visible, onVisibilityClick }) => (_jsxs(StyledConfigurationItem, { className: disabled ? 'disabled' : '', children: [dragHandler || _jsx(StyledEmptyIcon, {}), _jsx(KitTypography.Text, { size: "fontSize5", ellipsis: true, className: "title", children: title }), _jsx("button", { disabled: disabled, onClick: onVisibilityClick, children: visible ? _jsx(StyledFaEye, {}) : _jsx(StyledEyeSlash, {}) })] }));
62
- //# sourceMappingURL=ColumnItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColumnItem.js","sourceRoot":"","sources":["../../../../src/components/Explorer/edit-settings/ColumnItem.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAiB,KAAK,EAAE,UAAU,EAAc,MAAM,gBAAgB,CAAC;AAC9E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;;CAE7C,CAAC;AAEF,MAAM,uBAAuB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;;;;;;;;;;UAmB/B,WAAW;;;;;;;;;;;;;;;;;;;;;CAqBpB,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;CAEhC,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;;CAExC,CAAC;AAEF,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;CAEjC,CAAC;AAWF,MAAM,CAAC,MAAM,UAAU,GAAwC,CAAC,EAC5D,WAAW,EACX,KAAK,EACL,QAAQ,EACR,OAAO,EACP,iBAAiB,EACpB,EAAE,EAAE,CAAC,CACF,MAAC,uBAAuB,IAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,aACzD,WAAW,IAAI,KAAC,eAAe,KAAG,EACnC,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,QAAQ,QAAC,SAAS,EAAC,OAAO,YAC1D,KAAK,GACW,EACrB,iBAAQ,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,YACjD,OAAO,CAAC,CAAC,CAAC,KAAC,WAAW,KAAG,CAAC,CAAC,CAAC,KAAC,cAAc,KAAG,GAC1C,IACa,CAC7B,CAAC"}
@@ -1,6 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- interface IDisplayModeProps {
3
- library: string;
4
- }
5
- export declare const DisplayMode: FunctionComponent<IDisplayModeProps>;
6
- export {};
@@ -1,28 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } 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 { useSharedTranslation } from '../../../hooks/useSharedTranslation';
6
- import { KitRadio, KitSpace, KitTag } from 'aristid-ds';
7
- import { useState } from 'react';
8
- import styled from 'styled-components';
9
- import { DisplayModeTable } from './DisplayModeTable';
10
- const StyledWrapperDiv = styled.div `
11
- display: flex;
12
- flex-direction: column;
13
- gap: calc(var(--general-spacing-l) * 1px);
14
-
15
- .ant-radio-wrapper {
16
- padding: calc(var(--general-spacing-xs) * 1px);
17
- }
18
- `;
19
- export const DisplayMode = ({ library }) => {
20
- const { t } = useSharedTranslation();
21
- const [currentDisplayMode, setCurrentDisplayMode] = useState('table');
22
- const _handleDisplayModeChange = (event) => {
23
- setCurrentDisplayMode(event.target.value);
24
- };
25
- const comingSoonTag = _jsx(KitTag, { type: "secondary", idCardProps: { description: String(t('explorer.coming-soon')) } });
26
- return (_jsxs(StyledWrapperDiv, { children: [_jsx(KitRadio.Group, { value: currentDisplayMode, onChange: _handleDisplayModeChange, children: _jsxs(KitSpace, { direction: "vertical", size: 0, children: [_jsx(KitRadio, { value: "list", disabled: true, children: _jsxs(KitSpace, { children: [t('explorer.display-mode-list'), " ", comingSoonTag] }) }), _jsx(KitRadio, { value: "table", children: t('explorer.display-mode-table') }), _jsx(KitRadio, { value: "mosaic", disabled: true, children: _jsxs(KitSpace, { children: [t('explorer.display-mode-mosaic'), " ", comingSoonTag] }) }), _jsx(KitRadio, { value: "planning", disabled: true, children: _jsxs(KitSpace, { children: [t('explorer.display-mode-planning'), " ", comingSoonTag] }) })] }) }), currentDisplayMode === 'table' && _jsx(DisplayModeTable, { library: library })] }));
27
- };
28
- //# sourceMappingURL=DisplayMode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DisplayMode.js","sourceRoot":"","sources":["../../../../src/components/Explorer/edit-settings/DisplayMode.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,YAAY,CAAC;AAEtD,OAAO,EAAoB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAEpD,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;CAQlC,CAAC;AAMF,MAAM,CAAC,MAAM,WAAW,GAAyC,CAAC,EAAC,OAAO,EAAC,EAAE,EAAE;IAC3E,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;IAEtE,MAAM,wBAAwB,GAAG,CAAC,KAAuB,EAAE,EAAE;QACzD,qBAAqB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9C,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,KAAC,MAAM,IAAC,IAAI,EAAC,WAAW,EAAC,WAAW,EAAE,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,EAAC,GAAI,CAAC;IAEjH,OAAO,CACH,MAAC,gBAAgB,eACb,KAAC,QAAQ,CAAC,KAAK,IAAC,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,wBAAwB,YACzE,MAAC,QAAQ,IAAC,SAAS,EAAC,UAAU,EAAC,IAAI,EAAE,CAAC,aAClC,KAAC,QAAQ,IAAC,KAAK,EAAC,MAAM,EAAC,QAAQ,kBAC3B,MAAC,QAAQ,eACJ,CAAC,CAAC,4BAA4B,CAAC,OAAG,aAAa,IACzC,GACJ,EACX,KAAC,QAAQ,IAAC,KAAK,EAAC,OAAO,YAAE,CAAC,CAAC,6BAA6B,CAAC,GAAY,EACrE,KAAC,QAAQ,IAAC,KAAK,EAAC,QAAQ,EAAC,QAAQ,kBAC7B,MAAC,QAAQ,eACJ,CAAC,CAAC,8BAA8B,CAAC,OAAG,aAAa,IAC3C,GACJ,EACX,KAAC,QAAQ,IAAC,KAAK,EAAC,UAAU,EAAC,QAAQ,kBAC/B,MAAC,QAAQ,eACJ,CAAC,CAAC,gCAAgC,CAAC,OAAG,aAAa,IAC7C,GACJ,IACJ,GACE,EAChB,kBAAkB,KAAK,OAAO,IAAI,KAAC,gBAAgB,IAAC,OAAO,EAAE,OAAO,GAAI,IAC1D,CACtB,CAAC;AACN,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- interface IDisplayModeTableProps {
3
- library: string;
4
- }
5
- export declare const DisplayModeTable: FunctionComponent<IDisplayModeTableProps>;
6
- export {};
@@ -1,77 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } 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 { useDebouncedValue } from '../../../hooks/useDebouncedValue/useDebouncedValue';
6
- import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
7
- import { KitInput, KitTypography } from 'aristid-ds';
8
- import { useMemo, useState } from 'react';
9
- import styled from 'styled-components';
10
- import { FaGripLines } from 'react-icons/fa';
11
- import { ColumnItem } from './ColumnItem';
12
- import { useGetLibraryColumns } from './useGetLibraryColumns';
13
- const StyledList = styled.ul `
14
- padding: 0;
15
- margin: 0;
16
- list-style: none;
17
- color: var(--general-utilities-text-primary);
18
- `;
19
- const StyledDivider = styled.hr `
20
- display: block;
21
- height: 1px;
22
- border: 0;
23
- border-top: 1px solid var(--general-utilities-main-light);
24
- margin: 0 calc(var(--general-spacing-s) * 1px);
25
- padding: 0;
26
- `;
27
- export const DisplayModeTable = ({ library }) => {
28
- const { t } = useSharedTranslation();
29
- // TODO Where to stock visible columns list
30
- // TODO when are changes saved (and thus, when is the table updated) ?
31
- const [orderedVisibleColumns, setOrderedVisibleColumns] = useState([]);
32
- const [searchInput, setSearchInput] = useState('');
33
- const debouncedSearchInput = useDebouncedValue(searchInput, 300);
34
- const { attributeDetailsById } = useGetLibraryColumns(library);
35
- const searchFilteredColumns = useMemo(() => {
36
- const columnIds = Object.keys(attributeDetailsById);
37
- if (columnIds.length === 0) {
38
- return {};
39
- }
40
- if (searchInput === '') {
41
- return attributeDetailsById;
42
- }
43
- return columnIds.reduce((acc, columnId) => {
44
- if (attributeDetailsById[columnId].label.includes(searchInput) || columnId.includes(searchInput)) {
45
- acc[columnId] = attributeDetailsById[columnId];
46
- }
47
- return acc;
48
- }, {});
49
- }, [debouncedSearchInput, attributeDetailsById]);
50
- const searchFilteredColumnsIds = Object.keys(searchFilteredColumns);
51
- const _onSearchChanged = (event) => {
52
- const shouldIgnoreInputChange = event.target.value.length < 3 && searchInput.length < 3;
53
- if (shouldIgnoreInputChange) {
54
- return;
55
- }
56
- setSearchInput(() => {
57
- if (event.target.value.length > 2) {
58
- return event.target.value;
59
- }
60
- return '';
61
- });
62
- };
63
- const _toggleColumnVisibility = (columnId) => () => {
64
- setOrderedVisibleColumns(() => {
65
- if (orderedVisibleColumns.includes(columnId)) {
66
- return orderedVisibleColumns.filter(id => id !== columnId);
67
- }
68
- return [...orderedVisibleColumns, columnId];
69
- });
70
- };
71
- return (_jsxs("div", { children: [_jsx(KitTypography.Title, { level: "h4", children: t('items_list.columns') }), _jsx(KitInput, { placeholder: String(t('global.search')), onChange: _onSearchChanged, allowClear: true }), _jsxs("div", { children: [_jsxs(StyledList, { children: [_jsx(ColumnItem, { title: t('record_edition.whoAmI'), visible: false, disabled: true }), orderedVisibleColumns
72
- .filter(columnId => searchFilteredColumnsIds.includes(columnId))
73
- .map(columnId => (_jsx(ColumnItem, { title: attributeDetailsById[columnId].label, visible: true, onVisibilityClick: _toggleColumnVisibility(columnId), dragHandler: _jsx(FaGripLines, {}) }, columnId)))] }), _jsx(StyledDivider, {}), _jsx(StyledList, { children: searchFilteredColumnsIds
74
- .filter(columnId => !orderedVisibleColumns.includes(columnId))
75
- .map(columnId => (_jsx(ColumnItem, { visible: false, title: attributeDetailsById[columnId].label, onVisibilityClick: _toggleColumnVisibility(columnId) }, attributeDetailsById[columnId].id))) })] })] }));
76
- };
77
- //# sourceMappingURL=DisplayModeTable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DisplayModeTable.js","sourceRoot":"","sources":["../../../../src/components/Explorer/edit-settings/DisplayModeTable.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,iBAAiB,EAAC,MAAM,+CAA+C,CAAC;AAChF,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACnD,OAAO,EAAiC,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACxE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAE5D,MAAM,UAAU,GAAG,MAAM,CAAC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U,IAAC,KAAK,EAAE,CAAC,CAAC,uBAAuB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,SAAG,EACzE,qBAAqB;iCACjB,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,wBAAwB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;iCAC/D,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CACb,KAAC,UAAU,IAEP,KAAK,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC,KAAK,EAC3C,OAAO,QACP,iBAAiB,EAAE,uBAAuB,CAAC,QAAQ,CAAC,EACpD,WAAW,EAAE,KAAC,WAAW,KAAG,IAJvB,QAAQ,CAKf,CACL,CAAC,IACG,EACb,KAAC,aAAa,KAAG,EACjB,KAAC,UAAU,cACN,wBAAwB;6BACpB,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,qBAAqB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;6BAC7D,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CACb,KAAC,UAAU,IAEP,OAAO,EAAE,KAAK,EACd,KAAK,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC,KAAK,EAC3C,iBAAiB,EAAE,uBAAuB,CAAC,QAAQ,CAAC,IAH/C,oBAAoB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAIxC,CACL,CAAC,GACG,IACX,IACJ,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"EditSettingsContext.js","sourceRoot":"","sources":["../../../../src/components/Explorer/edit-settings/EditSettingsContext.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAY,MAAM,OAAO,CAAC;AAc/C,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAuB;IACnE,iBAAiB,EAAE,GAAG,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACD,cAAc,EAAE,IAAI;IACpB,OAAO,EAAE,GAAG,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;CACJ,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- export declare const EditSettingsContextProvider: FunctionComponent;
@@ -1 +0,0 @@
1
- {"version":3,"file":"EditSettingsContextProvider.js","sourceRoot":"","sources":["../../../../src/components/Explorer/edit-settings/EditSettingsContextProvider.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,EAAC,mBAAmB,EAAuB,MAAM,uBAAuB,CAAC;AAEhF,MAAM,CAAC,MAAM,2BAA2B,GAAsB,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE;IACzE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAyC,IAAI,CAAC,CAAC;IACnG,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAE9C,OAAO,CACH,KAAC,mBAAmB,CAAC,QAAQ,IACzB,KAAK,EAAE;YACH,cAAc;YACd,iBAAiB;YACjB,OAAO;SACV,YAEA,QAAQ,GACkB,CAClC,CAAC;AACN,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SettingItem.js","sourceRoot":"","sources":["../../../../src/components/Explorer/edit-settings/SettingItem.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAC9C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAA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AAC,GAAuB,EACxF,MAAC,uBAAuB,eACpB,KAAC,WAAW,IACR,IAAI,EAAE,KAAC,MAAM,KAAG,EAChB,KAAK,EAAE,CAAC,CAAC,uBAAuB,CAAC,EACjC,OAAO,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,cAAc,CAAC,GAC1D,EACF,KAAC,WAAW,IACR,IAAI,EAAE,KAAC,QAAQ,KAAG,EAClB,KAAK,EAAE,CAAC,CAAC,kBAAkB,CAAC,EAC5B,OAAO,EAAE,GAAG,EAAE;oCACV,+BAA+B;gCACnC,CAAC,GACH,EACF,KAAC,WAAW,IACR,IAAI,EAAE,KAAC,eAAe,KAAG,EACzB,KAAK,EAAE,CAAC,CAAC,eAAe,CAAC,EACzB,OAAO,EAAE,GAAG,EAAE;oCACV,+BAA+B;gCACnC,CAAC,GACH,IACoB,IACxB,CACT,EACA,WAAW,KAAK,cAAc,IAAI,KAAC,WAAW,IAAC,OAAO,EAAE,OAAO,GAAI,IAC9C,CAC7B,CAAC;AACN,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SidePanel.js","sourceRoot":"","sources":["../../../../src/components/Explorer/edit-settings/SidePanel.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAC;AACxC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,MAAM,CAAC,MAAM,SAAS,GAAsB,GAAG,EAAE;IAC7C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,EAAC,cAAc,EAAE,OAAO,EAAC,GAAG,eAAe,EAAE,CAAC;IAEpD,IAAI,CAAC,cAAc,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,gEAAgE;IAEhE,MAAM,kBAAkB,GAA4C;QAChE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,0CAA0C;KAC/E,CAAC;IAEF,OAAO,CACH,KAAC,YAAY,IACT,KAAK,EAAE,EAAC,MAAM,EAAE,OAAO,EAAC,EACxB,WAAW,QACX,QAAQ,QACR,QAAQ,QACR,WAAW,EAAE,EAAC,KAAK,EAAE,cAAc,CAAC,KAAK,EAAC,EAC1C,eAAe,EACX,cAAc,CAAC,iBAAiB;YAC5B,CAAC,CAAC,EAAC,OAAO,EAAE,cAAc,CAAC,iBAAiB,EAAE,GAAG,kBAAkB,EAAC;YACpE,CAAC,CAAC,SAAS,EAEnB,OAAO,EAAE,OAAO,YAEf,cAAc,CAAC,OAAO,GACZ,CAClB,CAAC;AACN,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useEditSettings.js","sourceRoot":"","sources":["../../../../src/components/Explorer/edit-settings/useEditSettings.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACjC,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC"}
@@ -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 { useGetAttributesByLibQuery } from '../../../_gqlTypes';
5
- import { useLang } from '../../../hooks';
6
- import { localizedTranslation } from '@leav/utils';
7
- const _mapping = (data, availableLangs) => data?.attributes?.list.reduce((acc, attribute) => {
8
- acc[attribute.id] = {
9
- ...attribute,
10
- label: localizedTranslation(attribute.label, availableLangs)
11
- };
12
- return acc;
13
- }, {}) ?? {};
14
- export const useGetLibraryColumns = (library) => {
15
- const { lang: availableLangs } = useLang();
16
- const { data, error, loading } = useGetAttributesByLibQuery({
17
- variables: {
18
- library
19
- }
20
- });
21
- const attributeDetailsById = _mapping(data, availableLangs);
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/edit-settings/useGetLibraryColumns.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoD,0BAA0B,EAAC,MAAM,oBAAoB,CAAC;AACjH,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAMjD,MAAM,QAAQ,GAAG,CAAC,IAAyC,EAAE,cAAwB,EAAgB,EAAE,CACnG,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE;IAC7C,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG;QAChB,GAAG,SAAS;QACZ,KAAK,EAAE,oBAAoB,CAAC,SAAS,CAAC,KAAK,EAAE,cAAc,CAAC;KAC/D,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,cAAc,EAAC,GAAG,OAAO,EAAE,CAAC;IACzC,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,cAAc,CAAC,CAAC;IAE5D,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 +0,0 @@
1
- {"version":3,"file":"useOpenSettings.js","sourceRoot":"","sources":["../../../../src/components/Explorer/edit-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,iBAAiB,CAAC;AAC9C,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,6 +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 standardFieldReducer from './standardFieldReducer';
5
- export default standardFieldReducer;
6
- //# sourceMappingURL=index.js.map
@@ -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;