@leav/ui 0.3.6-57473e5 → 0.3.6-5a7fd10

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 (364) 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 +11 -5
  5. package/dist/__mocks__/common/form.js +18 -2
  6. package/dist/__mocks__/common/form.js.map +1 -1
  7. package/dist/__mocks__/common/record.d.ts +13 -2
  8. package/dist/__mocks__/common/record.js.map +1 -1
  9. package/dist/__mocks__/common/value.js +2 -1
  10. package/dist/__mocks__/common/value.js.map +1 -1
  11. package/dist/__mocks__/common/view.js +1 -1
  12. package/dist/__mocks__/common/view.js.map +1 -1
  13. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +1 -1
  14. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
  15. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +2 -1
  16. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
  17. package/dist/_gqlTypes/index.d.ts +169 -44
  18. package/dist/_gqlTypes/index.js +1138 -1039
  19. package/dist/_gqlTypes/index.js.map +1 -1
  20. package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +3 -4
  21. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js +2 -3
  22. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  23. package/dist/_queries/records/getRecordColumnsValues.d.ts +4 -2
  24. package/dist/_queries/records/getRecordColumnsValues.js +4 -1
  25. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  26. package/dist/_queries/records/recordFormAttributeFragment.js +1 -0
  27. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  28. package/dist/_queries/views/viewDetailsFragment.js +2 -3
  29. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  30. package/dist/_utils/index.js +1 -1
  31. package/dist/_utils/index.js.map +1 -1
  32. package/dist/_utils/interleaveElement.d.ts +1 -0
  33. package/dist/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js → _utils/interleaveElement.js} +2 -6
  34. package/dist/_utils/interleaveElement.js.map +1 -0
  35. package/dist/components/CreateDirectory/CreateDirectory.js +1 -1
  36. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  37. package/dist/components/EditApplication/EditApplication.js +2 -2
  38. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  39. package/dist/components/EditApplication/_types.d.ts +2 -2
  40. package/dist/components/Explorer/DataView.d.ts +10 -1
  41. package/dist/components/Explorer/DataView.js +37 -36
  42. package/dist/components/Explorer/DataView.js.map +1 -1
  43. package/dist/components/Explorer/Explorer.d.ts +8 -4
  44. package/dist/components/Explorer/Explorer.js +50 -12
  45. package/dist/components/Explorer/Explorer.js.map +1 -1
  46. package/dist/components/Explorer/ExplorerTitle.d.ts +7 -0
  47. package/dist/components/Explorer/ExplorerTitle.js +30 -0
  48. package/dist/components/Explorer/ExplorerTitle.js.map +1 -0
  49. package/dist/components/Explorer/IdCard.d.ts +7 -0
  50. package/dist/components/Explorer/IdCard.js +15 -0
  51. package/dist/components/Explorer/IdCard.js.map +1 -0
  52. package/dist/components/Explorer/TableCell.d.ts +8 -0
  53. package/dist/components/Explorer/TableCell.js +143 -0
  54. package/dist/components/Explorer/TableCell.js.map +1 -0
  55. package/dist/components/Explorer/TableTagGroup.d.ts +7 -0
  56. package/dist/components/Explorer/TableTagGroup.js +30 -0
  57. package/dist/components/Explorer/TableTagGroup.js.map +1 -0
  58. package/dist/components/Explorer/_queries/useExplorerData.d.ts +23 -5
  59. package/dist/components/Explorer/_queries/useExplorerData.js +118 -17
  60. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  61. package/dist/components/Explorer/_types.d.ts +38 -3
  62. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.d.ts +2 -0
  63. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js +37 -0
  64. package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js.map +1 -0
  65. package/dist/components/Explorer/index.d.ts +1 -3
  66. package/dist/components/Explorer/index.js +1 -3
  67. package/dist/components/Explorer/index.js.map +1 -1
  68. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.d.ts +2 -1
  69. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +85 -0
  70. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -0
  71. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +5 -0
  72. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +12 -0
  73. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  74. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +11 -0
  75. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +61 -0
  76. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  77. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
  78. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +28 -0
  79. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -0
  80. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
  81. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +56 -0
  82. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -0
  83. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
  84. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +12 -0
  85. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -0
  86. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  87. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +77 -0
  88. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  89. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +9 -0
  90. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  91. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  92. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  93. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +37 -0
  94. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  95. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  96. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +90 -0
  97. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  98. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  99. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +23 -0
  100. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  101. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  102. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  103. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  104. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  105. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +44 -0
  106. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  107. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.d.ts +3 -0
  108. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js +72 -0
  109. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js.map +1 -0
  110. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  111. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +53 -0
  112. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  113. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +10 -0
  114. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +110 -0
  115. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  116. package/dist/components/Explorer/manage-view-settings/index.d.ts +8 -0
  117. package/dist/components/Explorer/manage-view-settings/index.js +11 -0
  118. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -0
  119. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.d.ts +1 -0
  120. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.js +1 -0
  121. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -0
  122. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.d.ts +7 -0
  123. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContextProvider.js +2 -1
  124. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -0
  125. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.js +2 -2
  126. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -0
  127. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -0
  128. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +3 -0
  129. package/dist/components/Explorer/{edit-settings/useOpenSettings.js → manage-view-settings/open-view-settings/useOpenViewSettings.js} +7 -5
  130. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  131. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -0
  132. package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingsPanel.d.ts +1 -1
  133. package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingsPanel.js +10 -10
  134. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -0
  135. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  136. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +109 -0
  137. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  138. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  139. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  140. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  141. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.d.ts +6 -0
  142. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +11 -0
  143. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -0
  144. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.d.ts +4 -0
  145. package/dist/components/{RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js → Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js} +3 -3
  146. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -0
  147. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +4 -0
  148. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +13 -0
  149. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -0
  150. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +138 -0
  151. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +194 -0
  152. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -0
  153. package/dist/components/Explorer/nullValuesConditions.d.ts +1 -0
  154. package/dist/components/Explorer/nullValuesConditions.js +14 -0
  155. package/dist/components/Explorer/nullValuesConditions.js.map +1 -0
  156. package/dist/components/Explorer/{useCreateMainAction.d.ts → useCreateAction.d.ts} +3 -3
  157. package/dist/components/Explorer/{useCreateMainAction.js → useCreateAction.js} +11 -7
  158. package/dist/components/Explorer/useCreateAction.js.map +1 -0
  159. package/dist/components/Explorer/useDeactivateAction.js +3 -2
  160. package/dist/components/Explorer/useDeactivateAction.js.map +1 -1
  161. package/dist/components/Explorer/useEditAction.js +6 -4
  162. package/dist/components/Explorer/useEditAction.js.map +1 -1
  163. package/dist/components/Explorer/usePagination.d.ts +7 -0
  164. package/dist/components/Explorer/usePagination.js +25 -0
  165. package/dist/components/Explorer/usePagination.js.map +1 -0
  166. package/dist/components/Explorer/usePrimaryActions.d.ts +12 -0
  167. package/dist/components/Explorer/usePrimaryActions.js +21 -0
  168. package/dist/components/Explorer/usePrimaryActions.js.map +1 -0
  169. package/dist/components/Explorer/useSearchInput.d.ts +10 -0
  170. package/dist/components/Explorer/useSearchInput.js +31 -0
  171. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  172. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  173. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  174. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  175. package/dist/components/Explorer/useViewSettingsReducer.d.ts +7 -0
  176. package/dist/components/Explorer/useViewSettingsReducer.js +60 -0
  177. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  178. package/dist/components/ExportModal/ExportModal.js +2 -2
  179. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  180. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  181. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  182. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  183. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  184. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +5 -9
  185. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  186. package/dist/components/LibraryItemsList/MenuView/MenuView.js +2 -7
  187. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  188. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +0 -1
  189. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  190. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  191. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  192. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +1 -1
  193. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  194. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +26 -29
  195. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  196. package/dist/components/RecordEdition/EditRecord/EditRecord.js +2 -2
  197. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  198. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +15 -2
  199. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  200. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +9 -20
  201. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  202. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -1
  203. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +44 -34
  204. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  205. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  206. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  207. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  208. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +1 -1
  209. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  210. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  211. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  212. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  213. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  214. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
  215. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  216. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  217. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +18 -0
  218. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  219. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  220. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  221. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  222. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +5 -2
  223. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +147 -191
  224. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  225. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  226. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +10 -30
  227. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  228. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  229. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +38 -45
  230. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  231. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  232. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +31 -46
  233. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  234. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  235. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +9 -77
  236. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  237. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  238. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +29 -49
  239. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  240. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  241. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +34 -54
  242. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  243. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  244. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +48 -64
  245. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  246. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  247. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +30 -53
  248. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  249. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +16 -9
  250. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +66 -401
  251. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  252. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.d.ts +4 -0
  253. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.js → DSListSelect.js} +45 -52
  254. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
  255. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -9
  256. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +15 -0
  257. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  258. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  259. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  260. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +55 -0
  261. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  262. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  263. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +37 -0
  264. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  265. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  266. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  267. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  268. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  269. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  270. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  271. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +131 -0
  272. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  273. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  274. package/dist/components/SelectTreeNode/index.js +1 -1
  275. package/dist/components/SelectTreeNode/index.js.map +1 -1
  276. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  277. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  278. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  279. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  280. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  281. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  282. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  283. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  284. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  285. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  286. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  287. package/dist/{components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → hooks/useDebouncedValue}/index.js +1 -1
  288. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  289. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  290. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  291. package/dist/locales/en/shared.json +53 -13
  292. package/dist/locales/fr/shared.json +53 -13
  293. package/dist/types/views.d.ts +3 -3
  294. package/package.json +7 -2
  295. package/dist/components/Explorer/edit-settings/ColumnItem.js +0 -59
  296. package/dist/components/Explorer/edit-settings/ColumnItem.js.map +0 -1
  297. package/dist/components/Explorer/edit-settings/DisplayMode.d.ts +0 -6
  298. package/dist/components/Explorer/edit-settings/DisplayMode.js +0 -25
  299. package/dist/components/Explorer/edit-settings/DisplayMode.js.map +0 -1
  300. package/dist/components/Explorer/edit-settings/DisplayModeTable.d.ts +0 -6
  301. package/dist/components/Explorer/edit-settings/DisplayModeTable.js +0 -74
  302. package/dist/components/Explorer/edit-settings/DisplayModeTable.js.map +0 -1
  303. package/dist/components/Explorer/edit-settings/EditSettingsContext.js.map +0 -1
  304. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.d.ts +0 -2
  305. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js.map +0 -1
  306. package/dist/components/Explorer/edit-settings/SettingItem.js.map +0 -1
  307. package/dist/components/Explorer/edit-settings/SettingsPanel.js.map +0 -1
  308. package/dist/components/Explorer/edit-settings/SidePanel.js.map +0 -1
  309. package/dist/components/Explorer/edit-settings/useEditSettings.js.map +0 -1
  310. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.d.ts +0 -10
  311. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js +0 -24
  312. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js.map +0 -1
  313. package/dist/components/Explorer/edit-settings/useOpenSettings.d.ts +0 -1
  314. package/dist/components/Explorer/edit-settings/useOpenSettings.js.map +0 -1
  315. package/dist/components/Explorer/useCreateMainAction.js.map +0 -1
  316. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  317. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js +0 -6
  318. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  319. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  320. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  321. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  322. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  323. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  324. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  325. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  326. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  327. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  328. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  329. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  330. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  331. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  332. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  333. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  334. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  335. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  336. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  337. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  338. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  339. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  340. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  341. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  342. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  343. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  344. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  345. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  346. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  347. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  348. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -90
  349. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  350. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  351. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  352. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  353. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  354. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  355. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  356. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  357. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  358. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +0 -3
  359. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
  360. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.d.ts +0 -0
  361. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.d.ts +0 -0
  362. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.js +0 -0
  363. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.d.ts +0 -0
  364. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.js +0 -0
@@ -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.",
@@ -606,14 +621,39 @@
606
621
  "edit-item": "Éditer l’élément",
607
622
  "settings": "Paramètres",
608
623
  "back": "Retour",
609
- "view-configuration": "Configuration de la vue",
610
- "display-mode": "Mode d’affichage",
611
- "display-mode-list": "Liste",
612
- "display-mode-table": "Tableau",
613
- "display-mode-mosaic": "Mosaïque",
614
- "display-mode-planning": "Planning",
624
+ "router-menu": "Configuration de la vue",
625
+ "configure-display": "Mode d’affichage",
626
+ "view-type-list": "Liste",
627
+ "view-type-table": "Tableau",
628
+ "view-type-mosaic": "Mosaïque",
629
+ "view-type-planning": "Planning",
615
630
  "filters": "Filtrer",
616
- "sort": "Trier",
617
- "coming-soon": "A venir"
631
+ "sort-items": "Trier",
632
+ "filter-items": "Filtrer",
633
+ "sort-list": {
634
+ "active": "Tris actifs",
635
+ "inactive": "Tris inactifs"
636
+ },
637
+ "filter-list": {
638
+ "active": "Filtres actifs",
639
+ "inactive": "Filtres inactifs"
640
+ },
641
+ "reset-filter": "Réinitialiser le filtre",
642
+ "delete-filters": "Supprimer tous les filtres",
643
+ "empty-data": "Aucun élément trouvé.",
644
+ "sort-ascending": "Ascendant",
645
+ "sort-descending": "Descendant",
646
+ "available-attributes": "Autres propriétés disponibles",
647
+ "coming-soon": "À venir",
648
+ "show": "Afficher",
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"
618
658
  }
619
659
  }
@@ -13,12 +13,12 @@ export interface IView {
13
13
  color?: string;
14
14
  filters?: IFilter[];
15
15
  valuesVersions?: IValueVersion;
16
- settings?: IGetViewListSettings[];
17
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-57473e5",
3
+ "version": "0.3.6-5a7fd10",
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",
@@ -64,10 +65,14 @@
64
65
  "dependencies": {
65
66
  "@ckeditor/ckeditor5-build-inline": "39.0.1",
66
67
  "@ckeditor/ckeditor5-react": "6.1.0",
68
+ "@dnd-kit/core": "6.1.0",
69
+ "@dnd-kit/sortable": "8.0.0",
67
70
  "@leav/utils": "0.0.3",
71
+ "@uidotdev/usehooks": "2.4.1",
68
72
  "dompurify": "3.1.3",
69
73
  "html-react-parser": "4.2.2",
70
74
  "i18next-resources-to-backend": "1.1.4",
75
+ "lodash.isequal": "4.5.0",
71
76
  "moment": "2.30.1",
72
77
  "object-path": "0.11.8",
73
78
  "react-beautiful-dnd": "13.1.1",
@@ -1,59 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { KitTypography } from 'aristid-ds';
3
- import { FaEye, FaEyeSlash } from 'react-icons/fa';
4
- import styled from 'styled-components';
5
- const StyledValue = styled(KitTypography.Text) `
6
- color: var(--general-utilities-disabled);
7
- `;
8
- const StyledConfigurationItem = styled.li `
9
- list-style: none;
10
- color: var(--general-utilities-text-primary);
11
- display: flex;
12
- width: 100%;
13
- height: 40px;
14
- padding: 0 calc(var(--general-spacing-xs) * 1px);
15
- align-items: center;
16
- gap: calc(var(--general-spacing-xs) * 1px);
17
- border-radius: calc(var(--general-spacing-xs) * 1px);
18
- text-align: left;
19
-
20
- &:first-child {
21
- margin-top: calc(var(--general-spacing-xs) * 1px);
22
- }
23
-
24
- &:hover {
25
- background: var(--general-utilities-main-light);
26
-
27
- ${StyledValue} {
28
- color: var(--general-utilities-text-primary);
29
- }
30
- }
31
-
32
- .title {
33
- flex: 1 1 auto;
34
- }
35
-
36
- > svg {
37
- flex: 0 0 calc(var(--general-spacing-s) * 1px);
38
- }
39
-
40
- > button {
41
- border: none;
42
- background: transparent;
43
- padding: 0;
44
- &:not([disabled]) {
45
- cursor: pointer;
46
- }
47
- }
48
- `;
49
- const StyledFaEye = styled(FaEye) `
50
- color: currentColor;
51
- `;
52
- const StyledEyeSlash = styled(FaEyeSlash) `
53
- color: var(--general-utilities-disabled);
54
- `;
55
- const StyledEmptyIcon = styled.div `
56
- width: calc(var(--general-spacing-s) * 1px);
57
- `;
58
- 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, {}) })] }));
59
- //# 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,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,25 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
3
- import { KitRadio, KitSpace, KitTag } from 'aristid-ds';
4
- import { useState } from 'react';
5
- import styled from 'styled-components';
6
- import { DisplayModeTable } from './DisplayModeTable';
7
- const StyledWrapperDiv = styled.div `
8
- display: flex;
9
- flex-direction: column;
10
- gap: calc(var(--general-spacing-l) * 1px);
11
-
12
- .ant-radio-wrapper {
13
- padding: calc(var(--general-spacing-xs) * 1px);
14
- }
15
- `;
16
- export const DisplayMode = ({ library }) => {
17
- const { t } = useSharedTranslation();
18
- const [currentDisplayMode, setCurrentDisplayMode] = useState('table');
19
- const _handleDisplayModeChange = (event) => {
20
- setCurrentDisplayMode(event.target.value);
21
- };
22
- const comingSoonTag = _jsx(KitTag, { type: "secondary", idCardProps: { description: String(t('explorer.coming-soon')) } });
23
- 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 })] }));
24
- };
25
- //# 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,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,74 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useDebouncedValue } from '../../../hooks/useDebouncedValue/useDebouncedValue';
3
- import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
4
- import { KitInput, KitTypography } from 'aristid-ds';
5
- import { useMemo, useState } from 'react';
6
- import styled from 'styled-components';
7
- import { FaGripLines } from 'react-icons/fa';
8
- import { ColumnItem } from './ColumnItem';
9
- import { useGetLibraryColumns } from './useGetLibraryColumns';
10
- const StyledList = styled.ul `
11
- padding: 0;
12
- margin: 0;
13
- list-style: none;
14
- color: var(--general-utilities-text-primary);
15
- `;
16
- const StyledDivider = styled.hr `
17
- display: block;
18
- height: 1px;
19
- border: 0;
20
- border-top: 1px solid var(--general-utilities-main-light);
21
- margin: 0 calc(var(--general-spacing-s) * 1px);
22
- padding: 0;
23
- `;
24
- export const DisplayModeTable = ({ library }) => {
25
- const { t } = useSharedTranslation();
26
- // TODO Where to stock visible columns list
27
- // TODO when are changes saved (and thus, when is the table updated) ?
28
- const [orderedVisibleColumns, setOrderedVisibleColumns] = useState([]);
29
- const [searchInput, setSearchInput] = useState('');
30
- const debouncedSearchInput = useDebouncedValue(searchInput, 300);
31
- const { attributeDetailsById } = useGetLibraryColumns(library);
32
- const searchFilteredColumns = useMemo(() => {
33
- const columnIds = Object.keys(attributeDetailsById);
34
- if (columnIds.length === 0) {
35
- return {};
36
- }
37
- if (searchInput === '') {
38
- return attributeDetailsById;
39
- }
40
- return columnIds.reduce((acc, columnId) => {
41
- if (attributeDetailsById[columnId].label.includes(searchInput) || columnId.includes(searchInput)) {
42
- acc[columnId] = attributeDetailsById[columnId];
43
- }
44
- return acc;
45
- }, {});
46
- }, [debouncedSearchInput, attributeDetailsById]);
47
- const searchFilteredColumnsIds = Object.keys(searchFilteredColumns);
48
- const _onSearchChanged = (event) => {
49
- const shouldIgnoreInputChange = event.target.value.length < 3 && searchInput.length < 3;
50
- if (shouldIgnoreInputChange) {
51
- return;
52
- }
53
- setSearchInput(() => {
54
- if (event.target.value.length > 2) {
55
- return event.target.value;
56
- }
57
- return '';
58
- });
59
- };
60
- const _toggleColumnVisibility = (columnId) => () => {
61
- setOrderedVisibleColumns(() => {
62
- if (orderedVisibleColumns.includes(columnId)) {
63
- return orderedVisibleColumns.filter(id => id !== columnId);
64
- }
65
- return [...orderedVisibleColumns, columnId];
66
- });
67
- };
68
- 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
69
- .filter(columnId => searchFilteredColumnsIds.includes(columnId))
70
- .map(columnId => (_jsx(ColumnItem, { title: attributeDetailsById[columnId].label, visible: true, onVisibilityClick: _toggleColumnVisibility(columnId), dragHandler: _jsx(FaGripLines, {}) }, columnId)))] }), _jsx(StyledDivider, {}), _jsx(StyledList, { children: searchFilteredColumnsIds
71
- .filter(columnId => !orderedVisibleColumns.includes(columnId))
72
- .map(columnId => (_jsx(ColumnItem, { visible: false, title: attributeDetailsById[columnId].label, onVisibilityClick: _toggleColumnVisibility(columnId) }, attributeDetailsById[columnId].id))) })] })] }));
73
- };
74
- //# 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,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,EAAE,CAAA;;;;;CAK3B,CAAC;AAEF,MAAM,aAAa,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;CAO9B,CAAC;AAMF,MAAM,CAAC,MAAM,gBAAgB,GAA8C,CAAC,EAAC,OAAO,EAAC,EAAE,EAAE;IACrF,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,2CAA2C;IAC3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,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,CAAC,IAAI,CAAC,CAAA;;CAE7C,CAAC;AAEF,MAAM,uBAAuB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAwB3B,WAAW;;;;;;;;;;;;;;;;;;CAkBxB,CAAC;AASF,MAAM,CAAC,MAAM,WAAW,GAAyC,CAAC,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,EAAE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,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 +0,0 @@
1
- {"version":3,"file":"useCreateMainAction.js","sourceRoot":"","sources":["../../../src/components/Explorer/useCreateMainAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC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ieldReducer';
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;