@leav/ui 0.3.6-3869884 → 0.3.6-3c4e933

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 (464) hide show
  1. package/dist/__mocks__/common/attribute.d.ts +1 -0
  2. package/dist/__mocks__/common/attribute.js +9 -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 +3 -1
  10. package/dist/__mocks__/common/value.js.map +1 -1
  11. package/dist/__mocks__/common/view.js +7 -5
  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 +435 -105
  18. package/dist/_gqlTypes/index.js +254 -47
  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 +5 -3
  24. package/dist/_queries/records/getRecordColumnsValues.js +4 -1
  25. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  26. package/dist/_queries/records/getRecordsFromLibraryQuery.js +1 -0
  27. package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
  28. package/dist/_queries/records/recordFormAttributeFragment.js +2 -0
  29. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  30. package/dist/_queries/views/saveViewMutation.js +1 -1
  31. package/dist/_queries/views/viewDetailsFragment.js +14 -11
  32. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  33. package/dist/_utils/index.js +5 -2
  34. package/dist/_utils/index.js.map +1 -1
  35. package/dist/_utils/interleaveElement.d.ts +1 -0
  36. package/dist/_utils/interleaveElement.js +5 -0
  37. package/dist/_utils/interleaveElement.js.map +1 -0
  38. package/dist/antdTheme/index.d.ts +0 -3
  39. package/dist/antdTheme/index.js +3 -42
  40. package/dist/antdTheme/index.js.map +1 -1
  41. package/dist/components/CreateDirectory/CreateDirectory.js +1 -1
  42. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  43. package/dist/components/EditApplication/EditApplication.js +2 -2
  44. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  45. package/dist/components/EditApplication/_types.d.ts +2 -2
  46. package/dist/components/Explorer/DataView.d.ts +14 -1
  47. package/dist/components/Explorer/DataView.js +96 -29
  48. package/dist/components/Explorer/DataView.js.map +1 -1
  49. package/dist/components/Explorer/Explorer.d.ts +9 -4
  50. package/dist/components/Explorer/Explorer.js +86 -22
  51. package/dist/components/Explorer/Explorer.js.map +1 -1
  52. package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
  53. package/dist/components/Explorer/ExplorerTitle.js +28 -11
  54. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  55. package/dist/components/Explorer/ExplorerToolbar.d.ts +5 -0
  56. package/dist/components/Explorer/ExplorerToolbar.js +45 -0
  57. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -0
  58. package/dist/components/Explorer/IdCard.d.ts +7 -0
  59. package/dist/components/Explorer/IdCard.js +15 -0
  60. package/dist/components/Explorer/IdCard.js.map +1 -0
  61. package/dist/components/Explorer/TableCell.d.ts +2 -1
  62. package/dist/components/Explorer/TableCell.js +139 -15
  63. package/dist/components/Explorer/TableCell.js.map +1 -1
  64. package/dist/components/Explorer/TableTagGroup.d.ts +7 -0
  65. package/dist/components/Explorer/TableTagGroup.js +30 -0
  66. package/dist/components/Explorer/TableTagGroup.js.map +1 -0
  67. package/dist/components/Explorer/_constants.d.ts +5 -0
  68. package/dist/components/Explorer/_constants.js +18 -0
  69. package/dist/components/Explorer/_constants.js.map +1 -0
  70. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +4 -0
  71. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +81 -0
  72. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -0
  73. package/dist/components/Explorer/_queries/useExplorerData.d.ts +29 -5
  74. package/dist/components/Explorer/_queries/useExplorerData.js +87 -14
  75. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  76. package/dist/components/Explorer/_types.d.ts +59 -4
  77. package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
  78. package/dist/components/Explorer/conditionsHelper.js +16 -0
  79. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  80. package/dist/components/Explorer/index.d.ts +1 -5
  81. package/dist/components/Explorer/index.js +1 -5
  82. package/dist/components/Explorer/index.js.map +1 -1
  83. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.d.ts +1 -1
  84. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.js +12 -5
  85. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -0
  86. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +6 -0
  87. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +12 -0
  88. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  89. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +13 -0
  90. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +67 -0
  91. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  92. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
  93. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +28 -0
  94. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -0
  95. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
  96. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +56 -0
  97. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -0
  98. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
  99. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +12 -0
  100. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -0
  101. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  102. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +83 -0
  103. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  104. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +9 -0
  105. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  106. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  107. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  108. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +22 -0
  109. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  110. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  111. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  112. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  113. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  114. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
  115. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  116. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  117. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  118. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  119. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  120. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  121. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  122. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  123. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  124. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  125. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  126. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +71 -0
  127. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  128. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  129. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  130. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  131. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  132. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +19 -0
  133. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  134. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  135. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +28 -0
  136. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  137. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +11 -0
  138. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +100 -0
  139. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  140. package/dist/components/Explorer/manage-view-settings/index.d.ts +8 -0
  141. package/dist/components/Explorer/manage-view-settings/index.js +11 -0
  142. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -0
  143. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.d.ts +2 -0
  144. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.js +1 -0
  145. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -0
  146. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.d.ts +7 -0
  147. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContextProvider.js +2 -1
  148. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -0
  149. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.js +2 -2
  150. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -0
  151. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -0
  152. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +5 -0
  153. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +39 -0
  154. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  155. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -0
  156. package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingsPanel.d.ts +2 -1
  157. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +70 -0
  158. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -0
  159. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  160. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +113 -0
  161. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  162. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  163. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  164. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  165. package/dist/components/Explorer/{edit-settings/ViewSetingsContext.d.ts → manage-view-settings/store-view-settings/ViewSettingsContext.d.ts} +1 -2
  166. package/dist/components/Explorer/{edit-settings/ViewSetingsContext.js → manage-view-settings/store-view-settings/ViewSettingsContext.js} +2 -6
  167. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -0
  168. package/dist/components/Explorer/{edit-settings → manage-view-settings/store-view-settings}/useViewSettingsContext.js +1 -1
  169. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -0
  170. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +4 -0
  171. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +25 -0
  172. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -0
  173. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +159 -0
  174. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +210 -0
  175. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -0
  176. package/dist/components/Explorer/useColumnWidth.d.ts +6 -0
  177. package/dist/components/Explorer/useColumnWidth.js +48 -0
  178. package/dist/components/Explorer/useColumnWidth.js.map +1 -0
  179. package/dist/components/Explorer/useCreateAction.d.ts +4 -2
  180. package/dist/components/Explorer/useCreateAction.js +35 -2
  181. package/dist/components/Explorer/useCreateAction.js.map +1 -1
  182. package/dist/components/Explorer/useDeactivateMassAction.d.ts +27 -0
  183. package/dist/components/Explorer/useDeactivateMassAction.js +71 -0
  184. package/dist/components/Explorer/useDeactivateMassAction.js.map +1 -0
  185. package/dist/components/Explorer/useEditAction.js +8 -6
  186. package/dist/components/Explorer/useEditAction.js.map +1 -1
  187. package/dist/components/Explorer/useMassActions.d.ts +27 -0
  188. package/dist/components/Explorer/useMassActions.js +109 -0
  189. package/dist/components/Explorer/useMassActions.js.map +1 -0
  190. package/dist/components/Explorer/usePagination.d.ts +7 -0
  191. package/dist/components/Explorer/usePagination.js +25 -0
  192. package/dist/components/Explorer/usePagination.js.map +1 -0
  193. package/dist/components/Explorer/usePrimaryActions.d.ts +1 -9
  194. package/dist/components/Explorer/usePrimaryActions.js +16 -17
  195. package/dist/components/Explorer/usePrimaryActions.js.map +1 -1
  196. package/dist/components/Explorer/useRemoveAction.d.ts +23 -0
  197. package/dist/components/Explorer/useRemoveAction.js +109 -0
  198. package/dist/components/Explorer/useRemoveAction.js.map +1 -0
  199. package/dist/components/Explorer/useSearchInput.d.ts +16 -0
  200. package/dist/components/Explorer/useSearchInput.js +39 -0
  201. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  202. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  203. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  204. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  205. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  206. package/dist/components/Explorer/useViewSettingsReducer.js +126 -0
  207. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  208. package/dist/components/ExportModal/ExportModal.js +2 -2
  209. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  210. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  211. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  212. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  213. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  214. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  215. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  216. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +7 -2
  217. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
  218. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  219. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  220. package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
  221. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  222. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  223. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  224. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  225. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  226. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  227. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  228. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  229. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  230. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  231. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  232. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  233. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  234. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  235. package/dist/components/RecordEdition/EditRecord/EditRecord.js +10 -18
  236. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  237. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +17 -4
  238. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  239. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +10 -21
  240. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  241. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -1
  242. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +44 -34
  243. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  244. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  245. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  246. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  247. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  248. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  249. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  250. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  251. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  252. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  253. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  254. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  255. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  256. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
  257. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  258. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  259. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +16 -0
  260. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  261. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  262. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  263. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  264. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +5 -2
  265. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +178 -186
  266. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  267. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  268. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +11 -30
  269. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  270. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  271. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +73 -45
  272. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  273. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  274. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +35 -46
  275. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  276. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  277. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +11 -76
  278. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  279. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  280. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +32 -49
  281. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  282. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  283. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +38 -54
  284. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  285. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  286. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +51 -63
  287. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  288. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  289. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +33 -53
  290. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  291. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +17 -9
  292. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +67 -401
  293. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  294. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.d.ts +4 -0
  295. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.js → DSListSelect.js} +48 -52
  296. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
  297. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -9
  298. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +16 -0
  299. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  300. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  301. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  302. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +55 -0
  303. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  304. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  305. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +32 -0
  306. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  307. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  308. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  309. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  310. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  311. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  312. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  313. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  314. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  315. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +36 -3
  316. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  317. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  318. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  319. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  320. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  321. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  322. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  323. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  324. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  325. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  326. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
  327. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
  328. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  329. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +1 -13
  330. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +1 -1
  331. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.d.ts +1 -1
  332. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.js +2 -2
  333. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -0
  334. package/dist/components/RecordEdition/EditRecordSkeleton/index.d.ts +2 -0
  335. package/dist/components/RecordEdition/{EditRecordContent/reducers/standardFieldReducer → EditRecordSkeleton}/index.js +2 -2
  336. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -0
  337. package/dist/components/RecordEdition/index.d.ts +1 -0
  338. package/dist/components/RecordEdition/index.js +1 -0
  339. package/dist/components/RecordEdition/index.js.map +1 -1
  340. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  341. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  342. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  343. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  344. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +131 -0
  345. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  346. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  347. package/dist/components/SelectTreeNode/index.js +1 -1
  348. package/dist/components/SelectTreeNode/index.js.map +1 -1
  349. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  350. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  351. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  352. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  353. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  354. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  355. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  356. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  357. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  358. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  359. package/dist/constants.d.ts +3 -0
  360. package/dist/constants.js +3 -0
  361. package/dist/constants.js.map +1 -1
  362. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  363. package/dist/{components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → hooks/useDebouncedValue}/index.js +1 -1
  364. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  365. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  366. package/dist/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js → hooks/useExecuteSaveViewMutation/index.js} +2 -6
  367. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  368. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  369. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
  370. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  371. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  372. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  373. package/dist/locales/en/shared.json +80 -15
  374. package/dist/locales/fr/shared.json +82 -17
  375. package/dist/types/views.d.ts +4 -4
  376. package/package.json +5 -2
  377. package/dist/components/Explorer/edit-settings/ColumnItem.js.map +0 -1
  378. package/dist/components/Explorer/edit-settings/DisplayMode.d.ts +0 -6
  379. package/dist/components/Explorer/edit-settings/DisplayMode.js +0 -34
  380. package/dist/components/Explorer/edit-settings/DisplayMode.js.map +0 -1
  381. package/dist/components/Explorer/edit-settings/DisplayModeTable.d.ts +0 -6
  382. package/dist/components/Explorer/edit-settings/DisplayModeTable.js +0 -89
  383. package/dist/components/Explorer/edit-settings/DisplayModeTable.js.map +0 -1
  384. package/dist/components/Explorer/edit-settings/EditSettingsContext.js.map +0 -1
  385. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.d.ts +0 -2
  386. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js.map +0 -1
  387. package/dist/components/Explorer/edit-settings/SettingItem.js.map +0 -1
  388. package/dist/components/Explorer/edit-settings/SettingsPanel.js +0 -53
  389. package/dist/components/Explorer/edit-settings/SettingsPanel.js.map +0 -1
  390. package/dist/components/Explorer/edit-settings/SidePanel.js.map +0 -1
  391. package/dist/components/Explorer/edit-settings/ViewSetingsContext.js.map +0 -1
  392. package/dist/components/Explorer/edit-settings/ViewSetingsContextProvider.d.ts +0 -2
  393. package/dist/components/Explorer/edit-settings/ViewSetingsContextProvider.js +0 -12
  394. package/dist/components/Explorer/edit-settings/ViewSetingsContextProvider.js.map +0 -1
  395. package/dist/components/Explorer/edit-settings/useEditSettings.js.map +0 -1
  396. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.d.ts +0 -10
  397. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js +0 -24
  398. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js.map +0 -1
  399. package/dist/components/Explorer/edit-settings/useOpenSettings.d.ts +0 -1
  400. package/dist/components/Explorer/edit-settings/useOpenSettings.js +0 -19
  401. package/dist/components/Explorer/edit-settings/useOpenSettings.js.map +0 -1
  402. package/dist/components/Explorer/edit-settings/useViewSettingsContext.js.map +0 -1
  403. package/dist/components/Explorer/edit-settings/viewSettingsReducer.d.ts +0 -43
  404. package/dist/components/Explorer/edit-settings/viewSettingsReducer.js +0 -58
  405. package/dist/components/Explorer/edit-settings/viewSettingsReducer.js.map +0 -1
  406. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  407. package/dist/components/Explorer/useDeactivateAction.js +0 -51
  408. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
  409. package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.js.map +0 -1
  410. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  411. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  412. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  413. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  414. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  415. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  416. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  417. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  418. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js +0 -7
  419. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  420. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
  421. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
  422. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
  423. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  424. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  425. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  426. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  427. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  428. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  429. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  430. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  431. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  432. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  433. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  434. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  435. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  436. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  437. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  438. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  439. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  440. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  441. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  442. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  443. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  444. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  445. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -90
  446. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  447. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  448. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  449. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  450. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  451. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  452. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  453. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  454. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  455. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +0 -3
  456. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
  457. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  458. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
  459. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.d.ts +0 -0
  460. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.d.ts +0 -0
  461. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.js +0 -0
  462. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.d.ts +0 -0
  463. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.js +0 -0
  464. /package/dist/components/Explorer/{edit-settings → manage-view-settings/store-view-settings}/useViewSettingsContext.d.ts +0 -0
@@ -0,0 +1,81 @@
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 dayjs from 'dayjs';
5
+ import { AttributeFormat, RecordFilterCondition, RecordFilterOperator } from '../../../_gqlTypes';
6
+ import { interleaveElement } from '../../../_utils/interleaveElement';
7
+ import { AttributeConditionFilter } from '../../../types';
8
+ import { nullValueConditions } from '../conditionsHelper';
9
+ export const dateValuesSeparator = '\n';
10
+ const _getDateAtNoon = (date) => dayjs.unix(Number(date)).add(12, 'hour').unix().toString();
11
+ const _getDateRequestFilters = ({ field, condition, value }) => {
12
+ switch (condition) {
13
+ case RecordFilterCondition.BETWEEN:
14
+ const [from, to] = value.split(dateValuesSeparator);
15
+ return [
16
+ {
17
+ field,
18
+ condition,
19
+ value: JSON.stringify({
20
+ from,
21
+ to
22
+ })
23
+ }
24
+ ];
25
+ case RecordFilterCondition.NOT_EQUAL:
26
+ return [
27
+ {
28
+ field,
29
+ condition: RecordFilterCondition.NOT_EQUAL,
30
+ value: _getDateAtNoon(Number(value))
31
+ }
32
+ ];
33
+ case RecordFilterCondition.EQUAL:
34
+ return [
35
+ {
36
+ field,
37
+ condition,
38
+ value: _getDateAtNoon(Number(value))
39
+ }
40
+ ];
41
+ default:
42
+ return [
43
+ {
44
+ field,
45
+ condition,
46
+ value
47
+ }
48
+ ];
49
+ }
50
+ };
51
+ const _getBooleanRequestFilters = ({ field, condition, value }) => {
52
+ if (value === 'false') {
53
+ return [
54
+ {
55
+ field,
56
+ condition: AttributeConditionFilter.NOT_EQUAL,
57
+ value: 'true'
58
+ }
59
+ ];
60
+ }
61
+ return [{ field, condition, value }];
62
+ };
63
+ export const prepareFiltersForRequest = (filters) => interleaveElement({ operator: RecordFilterOperator.AND }, filters
64
+ .filter(({ value, condition }) => value !== null || nullValueConditions.includes(condition ?? ''))
65
+ .map(({ attribute, field, condition, value }) => {
66
+ switch (attribute.format) {
67
+ case AttributeFormat.date:
68
+ return _getDateRequestFilters({ field, condition, value });
69
+ case AttributeFormat.boolean:
70
+ return _getBooleanRequestFilters({ field, condition, value });
71
+ default:
72
+ return [
73
+ {
74
+ field,
75
+ condition,
76
+ value
77
+ }
78
+ ];
79
+ }
80
+ }));
81
+ //# sourceMappingURL=prepareFiltersForRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareFiltersForRequest.js","sourceRoot":"","sources":["../../../../src/components/Explorer/_queries/prepareFiltersForRequest.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAE,qBAAqB,EAAqB,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAC9G,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAC;AAEnD,OAAO,EAAC,mBAAmB,EAAC,MAAM,qBAAqB,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAExC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC;AAE5G,MAAM,sBAAsB,GAAG,CAAC,EAC5B,KAAK,EACL,SAAS,EACT,KAAK,EACgD,EAAuB,EAAE;IAC9E,QAAQ,SAAS,EAAE,CAAC;QAChB,KAAK,qBAAqB,CAAC,OAAO;YAC9B,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,KAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;YACrD,OAAO;gBACH;oBACI,KAAK;oBACL,SAAS;oBACT,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC;wBAClB,IAAI;wBACJ,EAAE;qBACL,CAAC;iBACL;aACJ,CAAC;QACF,KAAK,qBAAqB,CAAC,SAAS;YAChC,OAAO;gBACH;oBACI,KAAK;oBACL,SAAS,EAAE,qBAAqB,CAAC,SAAS;oBAC1C,KAAK,EAAE,cAAc,CAAC,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,yBAAyB,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAC,CAAC,CAAC;QAChE;YACI,OAAO;gBACH;oBACI,KAAK;oBACL,SAAS;oBACT,KAAK;iBACR;aACJ,CAAC;IACV,CAAC;AACL,CAAC,CAAC,CACT,CAAC"}
@@ -1,11 +1,35 @@
1
- import { IExplorerData } from '../_types';
2
- import { ExplorerQuery } from '../../../_gqlTypes';
3
- export declare const useExplorerData: (libraryId: string, attributeIds: string[]) => {
1
+ import { ExplorerLibraryDataQuery, ExplorerLinkDataQuery, SortOrder } from '../../../_gqlTypes';
2
+ import { Entrypoint, IExplorerData, IExplorerFilter } from '../_types';
3
+ export declare const dateValuesSeparator = "\n";
4
+ export declare const useExplorerData: ({ entrypoint, libraryId, attributeIds, fulltextSearch, sorts, pagination, filters, skip }: {
5
+ entrypoint: Entrypoint;
6
+ libraryId: string;
7
+ attributeIds: string[];
8
+ fulltextSearch: string;
9
+ sorts: Array<{
10
+ field: string;
11
+ order: SortOrder;
12
+ }>;
13
+ pagination: null | {
14
+ limit: number;
15
+ offset: number;
16
+ };
17
+ filters: IExplorerFilter[];
18
+ skip: boolean;
19
+ }) => {
4
20
  data: IExplorerData;
5
21
  loading: boolean;
6
- refetch: (variables?: Partial<import("../../../_gqlTypes").Exact<{
22
+ refetch: ((variables?: Partial<import("../../../_gqlTypes").Exact<{
7
23
  libraryId: import("../../../_gqlTypes").Scalars["ID"];
8
24
  attributeIds: Array<import("../../../_gqlTypes").Scalars["ID"]> | import("../../../_gqlTypes").Scalars["ID"];
25
+ pagination?: import("../../../_gqlTypes").InputMaybe<import("../../../_gqlTypes").RecordsPagination>;
9
26
  filters?: import("../../../_gqlTypes").InputMaybe<Array<import("../../../_gqlTypes").InputMaybe<import("../../../_gqlTypes").RecordFilterInput>> | import("../../../_gqlTypes").InputMaybe<import("../../../_gqlTypes").RecordFilterInput>>;
10
- }>>) => Promise<import("@apollo/client").ApolloQueryResult<ExplorerQuery>>;
27
+ multipleSort?: import("../../../_gqlTypes").InputMaybe<Array<import("../../../_gqlTypes").RecordSortInput> | import("../../../_gqlTypes").RecordSortInput>;
28
+ searchQuery?: import("../../../_gqlTypes").InputMaybe<import("../../../_gqlTypes").Scalars["String"]>;
29
+ }>>) => Promise<import("@apollo/client").ApolloQueryResult<ExplorerLibraryDataQuery>>) | ((variables?: Partial<import("../../../_gqlTypes").Exact<{
30
+ attributeIds: Array<import("../../../_gqlTypes").Scalars["ID"]> | import("../../../_gqlTypes").Scalars["ID"];
31
+ parentLibraryId: import("../../../_gqlTypes").Scalars["ID"];
32
+ parentRecordId?: import("../../../_gqlTypes").InputMaybe<import("../../../_gqlTypes").Scalars["String"]>;
33
+ linkAttributeId: import("../../../_gqlTypes").Scalars["ID"];
34
+ }>>) => Promise<import("@apollo/client").ApolloQueryResult<ExplorerLinkDataQuery>>);
11
35
  };
@@ -2,16 +2,21 @@
2
2
  // This file is released under LGPL V3
3
3
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
4
  import { localizedTranslation } from '@leav/utils';
5
- import { useExplorerQuery } from '../../../_gqlTypes';
5
+ import { useMemo } from 'react';
6
6
  import { useLang } from '../../../hooks';
7
- const _mapping = (data, libraryId, availableLangs) => {
8
- const attributes = {};
9
- // TODO: can we use `Array.reduce` method?
10
- if (data.records.list.length > 0) {
11
- data.records.list[0].properties.forEach(({ attributeId, values }) => {
12
- attributes[attributeId] = localizedTranslation(values[0].attribute.label, availableLangs);
13
- });
14
- }
7
+ import { useExplorerLibraryDataQuery, useExplorerLinkDataQuery } from '../../../_gqlTypes';
8
+ import { prepareFiltersForRequest } from './prepareFiltersForRequest';
9
+ export const dateValuesSeparator = '\n';
10
+ const _mappingLibrary = (data, libraryId, availableLangs) => {
11
+ const attributes = data.records.list.length
12
+ ? data.records.list[0].properties.reduce((acc, property) => {
13
+ acc[property.attributeId] = {
14
+ ...property.attributeProperties,
15
+ label: localizedTranslation(property.attributeProperties.label, availableLangs)
16
+ };
17
+ return acc;
18
+ }, {})
19
+ : {};
15
20
  const records = data.records.list.map(({ whoAmI, properties }) => ({
16
21
  libraryId,
17
22
  key: whoAmI.id, // For <KitTable /> only
@@ -26,17 +31,85 @@ const _mapping = (data, libraryId, availableLangs) => {
26
31
  propertiesById: properties.reduce((acc, { attributeId, values }) => ({ ...acc, [attributeId]: values }), {})
27
32
  }));
28
33
  return {
34
+ totalCount: data.records.totalCount ?? 0,
29
35
  attributes,
30
36
  records
31
37
  };
32
38
  };
33
- export const useExplorerData = (libraryId, attributeIds) => {
39
+ const _mappingLink = (data, libraryId, availableLangs) => {
40
+ const attributes = data.records.list.length
41
+ ? (data.records.list[0].property[0]?.payload?.properties ?? []).reduce((acc, property) => {
42
+ acc[property.attributeId] = {
43
+ ...property.attributeProperties,
44
+ label: localizedTranslation(property.attributeProperties.label, availableLangs)
45
+ };
46
+ return acc;
47
+ }, {})
48
+ : {};
49
+ const records = data.records.list[0].property
50
+ .map((linkValue) => {
51
+ if (!linkValue.payload) {
52
+ return null;
53
+ }
54
+ return {
55
+ libraryId,
56
+ key: linkValue.payload.whoAmI.id, // For <KitTable /> only
57
+ itemId: linkValue.payload.whoAmI.id, // For <KitTable /> only
58
+ whoAmI: {
59
+ label: null,
60
+ subLabel: null,
61
+ color: null,
62
+ preview: null,
63
+ ...linkValue.payload.whoAmI
64
+ },
65
+ propertiesById: linkValue.payload.properties.reduce((acc, { attributeId, values }) => ({ ...acc, [attributeId]: values }), {}),
66
+ id_value: linkValue.id_value ?? undefined
67
+ };
68
+ })
69
+ .filter(Boolean);
70
+ return {
71
+ totalCount: records.length,
72
+ attributes,
73
+ records
74
+ };
75
+ };
76
+ export const useExplorerData = ({ entrypoint, libraryId, attributeIds, fulltextSearch, sorts, pagination, filters, skip }) => {
34
77
  const { lang: availableLangs } = useLang();
35
- const { data, loading, refetch } = useExplorerQuery({ variables: { libraryId, attributeIds } });
78
+ const isLibrary = entrypoint.type === 'library';
79
+ const isLink = entrypoint.type === 'link';
80
+ const { data: linkData, loading: linkLoading, refetch: linkRefetch } = useExplorerLinkDataQuery({
81
+ skip: skip || !isLink,
82
+ variables: {
83
+ parentLibraryId: entrypoint.parentLibraryId,
84
+ parentRecordId: entrypoint.parentRecordId,
85
+ linkAttributeId: entrypoint.linkAttributeId,
86
+ attributeIds
87
+ }
88
+ });
89
+ const { data: libraryData, loading: libraryLoading, refetch: libraryRefetch } = useExplorerLibraryDataQuery({
90
+ skip: skip || !isLibrary,
91
+ variables: {
92
+ libraryId,
93
+ attributeIds,
94
+ pagination,
95
+ searchQuery: fulltextSearch,
96
+ multipleSort: sorts,
97
+ filters: prepareFiltersForRequest(filters)
98
+ }
99
+ });
100
+ const memoizedData = useMemo(() => {
101
+ if (isLibrary) {
102
+ return libraryData ? _mappingLibrary(libraryData, libraryId, availableLangs) : null;
103
+ }
104
+ if (isLink) {
105
+ return linkData ? _mappingLink(linkData, libraryId, availableLangs) : null;
106
+ }
107
+ return null;
108
+ }, [libraryData, linkData]);
36
109
  return {
37
- data: data !== undefined ? _mapping(data, libraryId, availableLangs) : null,
38
- loading,
39
- refetch
110
+ data: memoizedData,
111
+ loading: isLibrary ? libraryLoading : linkLoading,
112
+ refetch: isLibrary ? libraryRefetch : linkRefetch
40
113
  };
41
114
  };
42
115
  //# sourceMappingURL=useExplorerData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useExplorerData.js","sourceRoot":"","sources":["../../../../src/components/Explorer/_queries/useExplorerData.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAgB,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,MAAM,QAAQ,GAAG,CAAC,IAAmB,EAAE,SAAiB,EAAE,cAAwB,EAAiB,EAAE;IACjG,MAAM,UAAU,GAAG,EAAE,CAAC;IACtB,0CA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AC/E,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE5B,OAAO;QACH,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW;QACjD,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW;KACpD,CAAC;AACN,CAAC,CAAC"}
@@ -1,9 +1,13 @@
1
- import { PropertyValueFragment, RecordIdentityFragment } from '../../_gqlTypes';
1
+ import { Override } from '@leav/utils';
2
+ import { AttributeFormat, AttributePropertiesFragment, PropertyValueFragment, RecordFilterCondition, RecordFilterInput, RecordIdentityFragment } from '../../_gqlTypes';
2
3
  import { ReactElement } from 'react';
3
- export type ItemWhoAmI = Required<RecordIdentityFragment['whoAmI']>;
4
+ import { IViewSettingsState } from './manage-view-settings';
4
5
  export interface IExplorerData {
6
+ totalCount: number;
5
7
  attributes: {
6
- [attributeId: string]: string;
8
+ [attributeId: string]: Override<AttributePropertiesFragment, {
9
+ label: string;
10
+ }>;
7
11
  };
8
12
  records: IItemData[];
9
13
  }
@@ -11,22 +15,73 @@ export interface IItemData {
11
15
  libraryId: string;
12
16
  key: string;
13
17
  itemId: string;
14
- whoAmI: ItemWhoAmI;
18
+ whoAmI: Required<RecordIdentityFragment['whoAmI']>;
15
19
  propertiesById: {
16
20
  [attributeId: string]: PropertyValueFragment[];
17
21
  };
22
+ /**
23
+ * Can be named `linkId` too, but for historical reason we keep old name 👴🏼.
24
+ */
25
+ id_value?: string;
18
26
  }
19
27
  export interface IItemAction {
20
28
  callback: (item: IItemData) => void;
21
29
  icon: ReactElement;
22
30
  label: string;
23
31
  isDanger?: boolean;
32
+ disabled?: boolean;
24
33
  }
25
34
  export interface IPrimaryAction {
26
35
  callback: () => void;
36
+ disabled?: boolean;
37
+ icon: ReactElement;
38
+ label: string;
39
+ }
40
+ export interface IMassActions {
41
+ callback: (massSelectedFilter: RecordFilterInput[]) => void | Promise<void>;
27
42
  icon: ReactElement;
28
43
  label: string;
29
44
  }
30
45
  export type ActionHook<T = {}> = {
31
46
  isEnabled: boolean;
32
47
  } & T;
48
+ export interface IExplorerFilter {
49
+ id: string;
50
+ attribute: {
51
+ format: AttributeFormat;
52
+ label: string;
53
+ };
54
+ field: string;
55
+ condition: RecordFilterCondition | null;
56
+ value: string | null;
57
+ }
58
+ export interface IFilterChildrenDropDownProps {
59
+ filter: IExplorerFilter;
60
+ onFilterChange: (filterData: IExplorerFilter) => void;
61
+ }
62
+ export interface IFilterDropDownProps {
63
+ filter: IExplorerFilter;
64
+ }
65
+ export type DefaultViewSettings = Override<Partial<IViewSettingsState>, {
66
+ filters?: Array<{
67
+ field: string;
68
+ condition: RecordFilterCondition;
69
+ value: string | null;
70
+ }>;
71
+ }>;
72
+ export interface IEntrypointTree {
73
+ type: 'tree';
74
+ treeId: string;
75
+ nodeId: string;
76
+ }
77
+ export interface IEntrypointLibrary {
78
+ type: 'library';
79
+ libraryId: string;
80
+ }
81
+ export interface IEntrypointLink {
82
+ type: 'link';
83
+ parentLibraryId: string;
84
+ parentRecordId: string;
85
+ linkAttributeId: string;
86
+ }
87
+ export type Entrypoint = IEntrypointTree | IEntrypointLibrary | IEntrypointLink;
@@ -0,0 +1,2 @@
1
+ export declare const hasOnlyNoValueConditions: (attributeFormat: string) => boolean;
2
+ export declare const nullValueConditions: import("../../_gqlTypes").RecordFilterCondition[];
@@ -0,0 +1,16 @@
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 { AttributeFormat } from '../../_gqlTypes';
5
+ import { AttributeConditionFilter } from '../../types';
6
+ export const hasOnlyNoValueConditions = (attributeFormat) => [AttributeFormat.color, AttributeFormat.date_range, AttributeFormat.encrypted, AttributeFormat.extended].includes(attributeFormat);
7
+ export const nullValueConditions = [
8
+ AttributeConditionFilter.IS_EMPTY,
9
+ AttributeConditionFilter.IS_NOT_EMPTY,
10
+ AttributeConditionFilter.TODAY,
11
+ AttributeConditionFilter.TOMORROW,
12
+ AttributeConditionFilter.YESTERDAY,
13
+ AttributeConditionFilter.LAST_MONTH,
14
+ AttributeConditionFilter.NEXT_MONTH
15
+ ];
16
+ //# sourceMappingURL=conditionsHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditionsHelper.js","sourceRoot":"","sources":["../../../src/components/Explorer/conditionsHelper.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAC;AAEnD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,eAAuB,EAAW,EAAE,CACzE,CAAC,eAAe,CAAC,KAAK,EAAE,eAAe,CAAC,UAAU,EAAE,eAAe,CAAC,SAAS,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAC7G,eAAe,CAClB,CAAC;AAEN,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,wBAAwB,CAAC,QAAQ;IACjC,wBAAwB,CAAC,YAAY;IACrC,wBAAwB,CAAC,KAAK;IAC9B,wBAAwB,CAAC,QAAQ;IACjC,wBAAwB,CAAC,SAAS;IAClC,wBAAwB,CAAC,UAAU;IACnC,wBAAwB,CAAC,UAAU;CACtC,CAAC"}
@@ -1,12 +1,8 @@
1
1
  import { Explorer as InternalExplorer } from './Explorer';
2
- import { useEditSettings } from './edit-settings/useEditSettings';
3
- import { EditSettingsContextProvider } from './edit-settings/EditSettingsContextProvider';
4
- import { SidePanel } from './edit-settings/SidePanel';
5
- import { ViewSettingsContextProvider } from './edit-settings/ViewSetingsContextProvider';
2
+ import { useEditSettings, SidePanel, EditSettingsContextProvider } from './manage-view-settings';
6
3
  type CompoundedComponent = typeof InternalExplorer & {
7
4
  useEditSettings: typeof useEditSettings;
8
5
  EditSettingsContextProvider: typeof EditSettingsContextProvider;
9
- ViewSettingsContextProvider: typeof ViewSettingsContextProvider;
10
6
  SettingsSidePanel: typeof SidePanel;
11
7
  };
12
8
  export declare const Explorer: CompoundedComponent;
@@ -2,13 +2,9 @@
2
2
  // This file is released under LGPL V3
3
3
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
4
  import { Explorer as InternalExplorer } from './Explorer';
5
- import { useEditSettings } from './edit-settings/useEditSettings';
6
- import { EditSettingsContextProvider } from './edit-settings/EditSettingsContextProvider';
7
- import { SidePanel } from './edit-settings/SidePanel';
8
- import { ViewSettingsContextProvider } from './edit-settings/ViewSetingsContextProvider';
5
+ import { useEditSettings, SidePanel, EditSettingsContextProvider } from './manage-view-settings';
9
6
  export const Explorer = InternalExplorer;
10
7
  Explorer.EditSettingsContextProvider = EditSettingsContextProvider;
11
- Explorer.ViewSettingsContextProvider = ViewSettingsContextProvider;
12
8
  Explorer.useEditSettings = useEditSettings;
13
9
  Explorer.SettingsSidePanel = SidePanel;
14
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Explorer/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,IAAI,gBAAgB,EAAC,MAAM,YAAY,CAAC;AACxD,OAAO,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAC,2BAA2B,EAAC,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAC,2BAA2B,EAAC,MAAM,4CAA4C,CAAC;AASvF,MAAM,CAAC,MAAM,QAAQ,GAAG,gBAAkD,CAAC;AAC3E,QAAQ,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;AACnE,QAAQ,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;AACnE,QAAQ,CAAC,eAAe,GAAG,eAAe,CAAC;AAC3C,QAAQ,CAAC,iBAAiB,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Explorer/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,IAAI,gBAAgB,EAAC,MAAM,YAAY,CAAC;AACxD,OAAO,EAAC,eAAe,EAAE,SAAS,EAAE,2BAA2B,EAAC,MAAM,wBAAwB,CAAC;AAQ/F,MAAM,CAAC,MAAM,QAAQ,GAAG,gBAAkD,CAAC;AAC3E,QAAQ,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;AACnE,QAAQ,CAAC,eAAe,GAAG,eAAe,CAAC;AAC3C,QAAQ,CAAC,iBAAiB,GAAG,SAAS,CAAC"}
@@ -5,8 +5,8 @@ interface IColumnItemProps {
5
5
  visible: boolean;
6
6
  title: string;
7
7
  onVisibilityClick?: () => void;
8
- disabled?: boolean;
9
8
  value?: string;
9
+ locked?: boolean;
10
10
  }
11
11
  export declare const ColumnItem: FunctionComponent<IColumnItemProps>;
12
12
  export {};
@@ -3,16 +3,15 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  // This file is released under LGPL V3
4
4
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
5
  import { KitTypography } from 'aristid-ds';
6
- import { FaEye, FaEyeSlash } from 'react-icons/fa';
6
+ import { FaEye, FaEyeSlash, FaLock } from 'react-icons/fa';
7
7
  import styled from 'styled-components';
8
8
  import { useSortable } from '@dnd-kit/sortable';
9
9
  import { CSS } from '@dnd-kit/utilities';
10
- import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
10
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
11
11
  const StyledValue = styled(KitTypography.Text) `
12
12
  color: var(--general-utilities-disabled);
13
13
  `;
14
14
  const StyledConfigurationItem = styled.li `
15
- list-style: none;
16
15
  color: var(--general-utilities-text-primary);
17
16
  display: flex;
18
17
  width: 100%;
@@ -53,18 +52,25 @@ const StyledConfigurationItem = styled.li `
53
52
  }
54
53
  `;
55
54
  const StyledFaEye = styled(FaEye) `
55
+ display: flex;
56
56
  color: currentColor;
57
57
  `;
58
58
  const StyledEyeSlash = styled(FaEyeSlash) `
59
+ display: flex;
60
+ color: var(--general-utilities-disabled);
61
+ `;
62
+ const StyledLocked = styled(FaLock) `
63
+ display: flex;
59
64
  color: var(--general-utilities-disabled);
60
65
  `;
61
66
  const StyledDragHandle = styled.span `
67
+ display: flex;
62
68
  cursor: ${props => (props.$isDragging ? 'grabbing' : 'grab')};
63
69
  `;
64
70
  const StyledEmptyIcon = styled.div `
65
71
  width: calc(var(--general-spacing-s) * 1px);
66
72
  `;
67
- export const ColumnItem = ({ itemId, dragHandler, title, disabled, visible, onVisibilityClick }) => {
73
+ export const ColumnItem = ({ itemId, dragHandler, title, visible, onVisibilityClick, locked = false }) => {
68
74
  const { t } = useSharedTranslation();
69
75
  const { attributes, listeners, setNodeRef, transform, transition, isDragging } = useSortable({ id: itemId });
70
76
  const style = {
@@ -73,6 +79,7 @@ export const ColumnItem = ({ itemId, dragHandler, title, disabled, visible, onVi
73
79
  };
74
80
  const _handleClick = () => onVisibilityClick?.();
75
81
  const visibilityButtonLabel = visible ? t('explorer.hide') : t('explorer.show');
76
- return (_jsxs(StyledConfigurationItem, { className: disabled ? 'disabled' : '', ref: setNodeRef, style: style, children: [dragHandler ? (_jsx(StyledDragHandle, { ...attributes, ...listeners, "$isDragging": isDragging, children: dragHandler })) : (_jsx(StyledEmptyIcon, {})), _jsx(KitTypography.Text, { size: "fontSize5", ellipsis: true, className: "title", children: title }), _jsx("button", { disabled: disabled, onClick: _handleClick, title: visibilityButtonLabel, "aria-label": visibilityButtonLabel, children: visible ? _jsx(StyledFaEye, {}) : _jsx(StyledEyeSlash, {}) })] }));
82
+ const visibilityIcon = locked ? _jsx(StyledLocked, {}) : visible ? _jsx(StyledFaEye, {}) : _jsx(StyledEyeSlash, {});
83
+ return (_jsxs(StyledConfigurationItem, { ref: setNodeRef, style: style, children: [dragHandler ? (_jsx(StyledDragHandle, { ...attributes, ...listeners, "$isDragging": isDragging, children: dragHandler })) : (_jsx(StyledEmptyIcon, {})), _jsx(KitTypography.Text, { size: "fontSize5", ellipsis: true, className: "title", children: title }), _jsx("button", { disabled: locked, onClick: _handleClick, title: visibilityButtonLabel, "aria-label": visibilityButtonLabel, children: visibilityIcon })] }));
77
84
  };
78
85
  //# sourceMappingURL=ColumnItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnItem.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/_shared/ColumnItem.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACzD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,GAAG,EAAC,MAAM,oBAAoB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;;CAE7C,CAAC;AAEF,MAAM,uBAAuB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;;;;;;;;;UAkB/B,WAAW;;;;;;;;;;;;;;;;;;;;;CAqBpB,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;CAGhC,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC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AAK,aACjD,WAAW,CAAC,CAAC,CAAC,CACX,KAAC,gBAAgB,OAAK,UAAU,KAAM,SAAS,iBAAe,UAAU,YACnE,WAAW,GACG,CACtB,CAAC,CAAC,CAAC,CACA,KAAC,eAAe,KAAG,CACtB,EACD,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,QAAQ,QAAC,SAAS,EAAC,OAAO,YAC1D,KAAK,GACW,EACrB,iBACI,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,qBAAqB,gBAChB,qBAAqB,YAEhC,cAAc,GACV,IACa,CAC7B,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IExplorerFilter } from '../../_types';
3
+ export declare const CommonFilterItem: FunctionComponent<{
4
+ filter: IExplorerFilter;
5
+ disabled?: boolean;
6
+ }>;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { FilterDropDown } from '../filter-items/filter-type/FilterDropDown';
3
+ import styled from 'styled-components';
4
+ import { KitFilter } from 'aristid-ds';
5
+ const FilterStyled = styled(KitFilter) `
6
+ flex: 0 0 auto;
7
+ `;
8
+ export const CommonFilterItem = ({ filter, disabled }) => (_jsx(FilterStyled, { expandable: true, disabled: disabled, label: filter.attribute.label, values: filter.value === null ? [] : [filter.value], dropDownProps: {
9
+ placement: 'bottomLeft',
10
+ dropdownRender: () => _jsx(FilterDropDown, { filter: filter })
11
+ } }));
12
+ //# sourceMappingURL=CommonFilterItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonFilterItem.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/_shared/CommonFilterItem.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,cAAc,EAAC,MAAM,4CAA4C,CAAC;AAC1E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AAGrC,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;;CAErC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAqE,CAAC,EAC/F,MAAM,EACN,QAAQ,EACX,EAAE,EAAE,CAAC,CACF,KAAC,YAAY,IACT,UAAU,QACV,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK,EAC7B,MAAM,EAAE,MAAM,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACnD,aAAa,EAAE;QACX,SAAS,EAAE,YAAY;QACvB,cAAc,EAAE,GAAG,EAAE,CAAC,KAAC,cAAc,IAAC,MAAM,EAAE,MAAM,GAAI;KAC3D,GACH,CACL,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { ChangeEvent } from 'react';
2
+ import { AttributeDetailsFragment } from '../../../../_gqlTypes';
3
+ interface IColumnsById {
4
+ [attributeId: string]: AttributeDetailsFragment & {
5
+ index: string;
6
+ };
7
+ }
8
+ export declare const useAttributeDetailsData: (libraryId: string) => {
9
+ attributeDetailsById: IColumnsById;
10
+ searchFilteredColumnsIds: string[];
11
+ onSearchChanged: (event: ChangeEvent<HTMLInputElement>) => void;
12
+ };
13
+ export {};
@@ -0,0 +1,67 @@
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 { useMemo, useState } from 'react';
5
+ import { useDebouncedValue } from '../../../../hooks/useDebouncedValue';
6
+ import { useGetAttributesByLibQuery } from '../../../../_gqlTypes';
7
+ import { localizedTranslation } from '@leav/utils';
8
+ import { useLang } from '../../../../hooks';
9
+ const sanitize = (str) => str
10
+ .normalize('NFD')
11
+ .replace(/\p{Diacritic}/gu, '')
12
+ .toLowerCase();
13
+ const _mapping = (data, availableLanguages) => data?.attributes?.list.reduce((acc, attribute) => {
14
+ const label = localizedTranslation(attribute.label, availableLanguages);
15
+ acc[attribute.id] = {
16
+ ...attribute,
17
+ label,
18
+ index: `${sanitize(attribute.id)} ${sanitize(label)}`
19
+ };
20
+ return acc;
21
+ }, {}) ?? {};
22
+ export const useAttributeDetailsData = (libraryId) => {
23
+ const [searchInput, setSearchInput] = useState('');
24
+ const debouncedSearchInput = useDebouncedValue(searchInput, 300);
25
+ const { lang: availableLanguages } = useLang();
26
+ const { data } = useGetAttributesByLibQuery({
27
+ variables: {
28
+ library: libraryId
29
+ }
30
+ });
31
+ const attributeDetailsById = _mapping(data, availableLanguages);
32
+ const searchFilteredColumns = useMemo(() => {
33
+ const columnIds = Object.keys(attributeDetailsById);
34
+ if (columnIds.length === 0) {
35
+ return {};
36
+ }
37
+ if (debouncedSearchInput === '') {
38
+ return attributeDetailsById;
39
+ }
40
+ const searchString = sanitize(debouncedSearchInput);
41
+ return columnIds.reduce((acc, columnId) => {
42
+ if (attributeDetailsById[columnId].index.includes(searchString)) {
43
+ acc[columnId] = attributeDetailsById[columnId];
44
+ }
45
+ return acc;
46
+ }, {});
47
+ }, [debouncedSearchInput, attributeDetailsById]);
48
+ const searchFilteredColumnsIds = Object.keys(searchFilteredColumns);
49
+ const onSearchChanged = (event) => {
50
+ const shouldIgnoreInputChange = event.target.value.length < 3 && debouncedSearchInput.length < 3;
51
+ if (shouldIgnoreInputChange) {
52
+ return;
53
+ }
54
+ setSearchInput(() => {
55
+ if (event.target.value.length > 2) {
56
+ return event.target.value;
57
+ }
58
+ return '';
59
+ });
60
+ };
61
+ return {
62
+ attributeDetailsById,
63
+ searchFilteredColumnsIds,
64
+ onSearchChanged
65
+ };
66
+ };
67
+ //# sourceMappingURL=useAttributeDetailsData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAttributeDetailsData.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/_shared/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BAAuB,EAAE,CAAC;YAC1B,OAAO;QACX,CAAC;QACD,cAAc,CAAC,GAAG,EAAE;YAChB,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAChC,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;YAC9B,CAAC;YACD,OAAO,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO;QACH,oBAAoB;QACpB,wBAAwB;QACxB,eAAe;KAClB,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { FunctionComponent } from 'react';
2
+ interface IConfigureDisplayProps {
3
+ libraryId: string;
4
+ }
5
+ export declare const ConfigureDisplay: FunctionComponent<IConfigureDisplayProps>;
6
+ export {};