@leav/ui 0.3.6-4d50dfd → 0.3.6-50b62a3

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 (443) 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 +436 -94
  18. package/dist/_gqlTypes/index.js +254 -45
  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/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js → _utils/interleaveElement.js} +2 -6
  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 +9 -1
  47. package/dist/components/Explorer/DataView.js +36 -36
  48. package/dist/components/Explorer/DataView.js.map +1 -1
  49. package/dist/components/Explorer/Explorer.d.ts +5 -3
  50. package/dist/components/Explorer/Explorer.js +57 -23
  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/IdCard.d.ts +7 -0
  56. package/dist/components/Explorer/IdCard.js +15 -0
  57. package/dist/components/Explorer/IdCard.js.map +1 -0
  58. package/dist/components/Explorer/TableCell.d.ts +8 -0
  59. package/dist/components/Explorer/TableCell.js +144 -0
  60. package/dist/components/Explorer/TableCell.js.map +1 -0
  61. package/dist/components/Explorer/TableTagGroup.d.ts +7 -0
  62. package/dist/components/Explorer/TableTagGroup.js +30 -0
  63. package/dist/components/Explorer/TableTagGroup.js.map +1 -0
  64. package/dist/components/Explorer/_constants.d.ts +4 -0
  65. package/dist/components/Explorer/_constants.js +17 -0
  66. package/dist/components/Explorer/_constants.js.map +1 -0
  67. package/dist/components/Explorer/_queries/useExplorerData.d.ts +30 -6
  68. package/dist/components/Explorer/_queries/useExplorerData.js +175 -14
  69. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  70. package/dist/components/Explorer/_types.d.ts +53 -4
  71. package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
  72. package/dist/components/Explorer/conditionsHelper.js +16 -0
  73. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  74. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.d.ts +4 -0
  75. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js +47 -0
  76. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js.map +1 -0
  77. package/dist/components/Explorer/index.d.ts +1 -5
  78. package/dist/components/Explorer/index.js +1 -5
  79. package/dist/components/Explorer/index.js.map +1 -1
  80. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.d.ts +2 -1
  81. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +85 -0
  82. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -0
  83. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +5 -0
  84. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +12 -0
  85. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  86. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +11 -0
  87. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +61 -0
  88. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  89. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
  90. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +28 -0
  91. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -0
  92. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
  93. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +56 -0
  94. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -0
  95. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
  96. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +12 -0
  97. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -0
  98. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  99. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +83 -0
  100. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  101. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +9 -0
  102. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  103. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  104. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  105. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +22 -0
  106. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  107. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  108. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  109. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  110. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  111. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
  112. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  113. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  114. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  115. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  116. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  117. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  118. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  119. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  120. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  121. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  122. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  123. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +71 -0
  124. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  125. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  126. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  127. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  128. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  129. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +19 -0
  130. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  131. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  132. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +28 -0
  133. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  134. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +11 -0
  135. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +100 -0
  136. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  137. package/dist/components/Explorer/manage-view-settings/index.d.ts +8 -0
  138. package/dist/components/Explorer/manage-view-settings/index.js +11 -0
  139. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -0
  140. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.d.ts +2 -0
  141. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.js +1 -0
  142. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -0
  143. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.d.ts +7 -0
  144. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContextProvider.js +2 -1
  145. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -0
  146. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.js +2 -2
  147. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -0
  148. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -0
  149. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +5 -0
  150. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +39 -0
  151. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  152. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -0
  153. package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingsPanel.d.ts +2 -1
  154. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +70 -0
  155. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -0
  156. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  157. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +113 -0
  158. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  159. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  160. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  161. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  162. package/dist/components/Explorer/{edit-settings/ViewSetingsContext.d.ts → manage-view-settings/store-view-settings/ViewSettingsContext.d.ts} +1 -2
  163. package/dist/components/Explorer/{edit-settings/ViewSetingsContext.js → manage-view-settings/store-view-settings/ViewSettingsContext.js} +2 -6
  164. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -0
  165. package/dist/components/Explorer/{edit-settings → manage-view-settings/store-view-settings}/useViewSettingsContext.js +1 -1
  166. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -0
  167. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +4 -0
  168. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +24 -0
  169. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -0
  170. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +145 -0
  171. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +199 -0
  172. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -0
  173. package/dist/components/Explorer/useCreateAction.d.ts +4 -2
  174. package/dist/components/Explorer/useCreateAction.js +35 -2
  175. package/dist/components/Explorer/useCreateAction.js.map +1 -1
  176. package/dist/components/Explorer/useEditAction.js +8 -6
  177. package/dist/components/Explorer/useEditAction.js.map +1 -1
  178. package/dist/components/Explorer/usePagination.d.ts +7 -0
  179. package/dist/components/Explorer/usePagination.js +25 -0
  180. package/dist/components/Explorer/usePagination.js.map +1 -0
  181. package/dist/components/Explorer/usePrimaryActions.d.ts +1 -9
  182. package/dist/components/Explorer/usePrimaryActions.js +16 -17
  183. package/dist/components/Explorer/usePrimaryActions.js.map +1 -1
  184. package/dist/components/Explorer/useRemoveAction.d.ts +12 -0
  185. package/dist/components/Explorer/useRemoveAction.js +90 -0
  186. package/dist/components/Explorer/useRemoveAction.js.map +1 -0
  187. package/dist/components/Explorer/useSearchInput.d.ts +10 -0
  188. package/dist/components/Explorer/useSearchInput.js +31 -0
  189. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  190. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  191. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  192. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  193. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  194. package/dist/components/Explorer/useViewSettingsReducer.js +126 -0
  195. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  196. package/dist/components/ExportModal/ExportModal.js +2 -2
  197. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  198. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  199. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  200. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  201. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  202. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  203. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  204. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +7 -2
  205. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
  206. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  207. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  208. package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
  209. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  210. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  211. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  212. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  213. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  214. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  215. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  216. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  217. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  218. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  219. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  220. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  221. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  222. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  223. package/dist/components/RecordEdition/EditRecord/EditRecord.js +9 -17
  224. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  225. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +16 -3
  226. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  227. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +10 -21
  228. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  229. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -1
  230. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +44 -34
  231. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  232. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  233. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  234. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  235. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  236. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  237. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  238. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  239. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  240. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  241. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  242. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  243. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  244. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
  245. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  246. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  247. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +18 -0
  248. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  249. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  250. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  251. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  252. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +5 -2
  253. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +178 -186
  254. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  255. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  256. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +11 -30
  257. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  258. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  259. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +73 -45
  260. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  261. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  262. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +35 -46
  263. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  264. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  265. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +11 -76
  266. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  267. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  268. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +32 -49
  269. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  270. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  271. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +38 -54
  272. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  273. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  274. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +51 -63
  275. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  276. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  277. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +33 -53
  278. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  279. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +17 -9
  280. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +67 -401
  281. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  282. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.d.ts +4 -0
  283. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.js → DSListSelect.js} +48 -52
  284. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
  285. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -9
  286. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +16 -0
  287. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  288. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  289. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  290. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +55 -0
  291. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  292. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  293. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +32 -0
  294. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  295. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  296. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  297. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  298. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  299. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  300. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  301. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  302. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  303. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +36 -3
  304. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  305. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  306. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  307. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  308. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  309. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  310. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  311. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  312. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  313. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  314. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
  315. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
  316. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  317. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +1 -13
  318. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +1 -1
  319. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  320. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  321. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  322. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  323. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +131 -0
  324. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  325. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  326. package/dist/components/SelectTreeNode/index.js +1 -1
  327. package/dist/components/SelectTreeNode/index.js.map +1 -1
  328. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  329. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  330. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  331. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  332. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  333. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  334. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  335. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  336. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  337. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  338. package/dist/constants.d.ts +3 -0
  339. package/dist/constants.js +3 -0
  340. package/dist/constants.js.map +1 -1
  341. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  342. package/dist/{components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → hooks/useDebouncedValue}/index.js +1 -1
  343. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  344. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  345. package/dist/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer → hooks/useExecuteSaveViewMutation}/index.js +1 -2
  346. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  347. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  348. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
  349. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  350. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  351. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  352. package/dist/locales/en/shared.json +71 -15
  353. package/dist/locales/fr/shared.json +71 -15
  354. package/dist/types/views.d.ts +4 -4
  355. package/package.json +7 -2
  356. package/dist/components/Explorer/edit-settings/ColumnItem.js +0 -62
  357. package/dist/components/Explorer/edit-settings/ColumnItem.js.map +0 -1
  358. package/dist/components/Explorer/edit-settings/DisplayMode.d.ts +0 -6
  359. package/dist/components/Explorer/edit-settings/DisplayMode.js +0 -34
  360. package/dist/components/Explorer/edit-settings/DisplayMode.js.map +0 -1
  361. package/dist/components/Explorer/edit-settings/DisplayModeTable.d.ts +0 -6
  362. package/dist/components/Explorer/edit-settings/DisplayModeTable.js +0 -76
  363. package/dist/components/Explorer/edit-settings/DisplayModeTable.js.map +0 -1
  364. package/dist/components/Explorer/edit-settings/EditSettingsContext.js.map +0 -1
  365. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.d.ts +0 -2
  366. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js.map +0 -1
  367. package/dist/components/Explorer/edit-settings/SettingItem.js.map +0 -1
  368. package/dist/components/Explorer/edit-settings/SettingsPanel.js +0 -53
  369. package/dist/components/Explorer/edit-settings/SettingsPanel.js.map +0 -1
  370. package/dist/components/Explorer/edit-settings/SidePanel.js.map +0 -1
  371. package/dist/components/Explorer/edit-settings/ViewSetingsContext.js.map +0 -1
  372. package/dist/components/Explorer/edit-settings/ViewSetingsContextProvider.d.ts +0 -2
  373. package/dist/components/Explorer/edit-settings/ViewSetingsContextProvider.js +0 -12
  374. package/dist/components/Explorer/edit-settings/ViewSetingsContextProvider.js.map +0 -1
  375. package/dist/components/Explorer/edit-settings/useEditSettings.js.map +0 -1
  376. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.d.ts +0 -10
  377. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js +0 -24
  378. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js.map +0 -1
  379. package/dist/components/Explorer/edit-settings/useOpenSettings.d.ts +0 -1
  380. package/dist/components/Explorer/edit-settings/useOpenSettings.js +0 -19
  381. package/dist/components/Explorer/edit-settings/useOpenSettings.js.map +0 -1
  382. package/dist/components/Explorer/edit-settings/useViewSettingsContext.js.map +0 -1
  383. package/dist/components/Explorer/edit-settings/viewSettingsReducer.d.ts +0 -42
  384. package/dist/components/Explorer/edit-settings/viewSettingsReducer.js +0 -53
  385. package/dist/components/Explorer/edit-settings/viewSettingsReducer.js.map +0 -1
  386. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  387. package/dist/components/Explorer/useDeactivateAction.js +0 -51
  388. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
  389. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  390. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  391. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  392. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  393. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  394. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  395. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  396. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  397. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js +0 -7
  398. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  399. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
  400. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
  401. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
  402. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  403. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  404. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  405. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  406. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  407. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  408. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  409. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  410. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  411. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  412. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  413. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  414. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  415. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  416. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  417. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  418. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  419. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  420. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  421. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  422. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  423. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  424. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -90
  425. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  426. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  427. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  428. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  429. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  430. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  431. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  432. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  433. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  434. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +0 -3
  435. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
  436. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  437. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
  438. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.d.ts +0 -0
  439. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.d.ts +0 -0
  440. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.js +0 -0
  441. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.d.ts +0 -0
  442. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.js +0 -0
  443. /package/dist/components/Explorer/{edit-settings → manage-view-settings/store-view-settings}/useViewSettingsContext.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Explorer.js","sourceRoot":"","sources":["../../../src/components/Explorer/Explorer.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACnD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,uBAAuB,IAAI,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,sBAAsB,EAAC,MAAM,wCAAwC,CAAC;AAW9E,MAAM,UAAU,GAAG,CAAsB,KAAQ,EAA2B,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;AAEhG,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAKzC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAsC,CAAC,EACxD,OAAO,EACP,WAAW,EACX,cAAc,EACd,KAAK,EACL,qBAAqB,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EAC9C,qBAAqB,GAAG,CAAC,QAAQ,CAAC,EACrC,EAAE,EAAE;IACD,MAAM,EAAC,IAAI,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAExC,MAAM,EAAC,IAAI,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I,KAAK,SAAS;4BACzB,CAAC,CAAC;gCACI,eAAe,EAAE,sBAAsB;gCACvC,WAAW;gCACX,QAAQ,EAAE,IAAI,CAAC,QAAQ;gCACvB,cAAc;gCACd,UAAU;gCACV,UAAU,EAAE,IAAI,EAAE,UAAU,IAAI,CAAC;6BACpC;4BACH,CAAC,CAAC,SAAS,EAEnB,WAAW,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,GAAG,CAAC,WAAW,IAAI,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GACzF,CACL,IACmB,EACvB,YAAY,IAAI,YAAY,CAAC,KAAC,SAAS,KAAG,EAAE,YAAY,CAAC,EACzD,SAAS,EACT,WAAW,IACe,CAClC,CAAC;AACN,CAAC,CAAC"}
@@ -1,7 +1,9 @@
1
1
  import { FunctionComponent } from 'react';
2
+ import { Entrypoint } from './_types';
2
3
  interface IExplorerTitleProps {
3
4
  title?: string;
4
5
  library: string;
6
+ entrypoint: Entrypoint;
5
7
  }
6
8
  export declare const ExplorerTitle: FunctionComponent<IExplorerTitleProps>;
7
9
  export {};
@@ -3,28 +3,45 @@ import { jsx as _jsx } 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 { localizedTranslation } from '@leav/utils';
6
- import { useExplorerLibraryDataQuery } from '../../_gqlTypes';
6
+ import { useExplorerLibraryDetailsQuery, useExplorerLinkAttributeQuery } from '../../_gqlTypes';
7
7
  import useLang from '../../hooks/useLang';
8
8
  import { AntSkeleton } from 'aristid-ds';
9
9
  // TODO: use <h1 /> tag
10
- export const ExplorerTitle = ({ title, library }) => {
11
- const { data, loading, error } = useExplorerLibraryDataQuery({ variables: { libraryId: library }, skip: !!title });
10
+ export const ExplorerTitle = ({ title, library, entrypoint }) => {
11
+ const { data, loading, error } = useExplorerLibraryDetailsQuery({ variables: { libraryId: library }, skip: !!title });
12
+ const { data: attributeData, loading: attributeLoading, error: attributeError } = useExplorerLinkAttributeQuery({
13
+ skip: !!title || entrypoint.type !== 'link',
14
+ variables: {
15
+ id: entrypoint.linkAttributeId
16
+ }
17
+ });
12
18
  const { lang } = useLang();
13
19
  if (title) {
14
20
  return _jsx("span", { children: title });
15
21
  }
16
- if (loading) {
22
+ if (loading || attributeLoading) {
17
23
  return _jsx(AntSkeleton.Input, { style: { width: 400 }, active: true });
18
24
  }
19
25
  // TODO: handle error and bad library ID
20
- if (error) {
21
- return _jsx("span", { children: error.message });
26
+ if (error || attributeError) {
27
+ return _jsx("span", { children: error?.message ?? attributeError?.message });
22
28
  }
23
- const libraryData = data?.libraries?.list[0];
24
- if (!libraryData) {
25
- // TODO: make it i18n
26
- return _jsx("span", { children: "Unknown library" });
29
+ let label;
30
+ if (entrypoint.type === 'library') {
31
+ const libraryData = data?.libraries?.list[0];
32
+ if (!libraryData) {
33
+ // TODO: make it i18n
34
+ return _jsx("span", { children: "Unknown library" });
35
+ }
36
+ label = libraryData.label;
27
37
  }
28
- return _jsx("span", { children: localizedTranslation(libraryData.label, lang) });
38
+ else {
39
+ const linkAttributeData = attributeData?.attributes?.list[0];
40
+ if (!linkAttributeData) {
41
+ return _jsx("span", { children: "Unknown link attribute" });
42
+ }
43
+ label = 'label' in linkAttributeData ? linkAttributeData.label : null;
44
+ }
45
+ return _jsx("span", { children: localizedTranslation(label, lang) });
29
46
  };
30
47
  //# sourceMappingURL=ExplorerTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExplorerTitle.js","sourceRoot":"","sources":["../../../src/components/Explorer/ExplorerTitle.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,2BAA2B,EAAC,MAAM,eAAe,CAAC;AAC1D,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAC;AA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f,qBAAqB;YACrB,OAAO,6CAA4B,CAAC;QACxC,CAAC;QAED,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;IAC9B,CAAC;SAAM,CAAC;QACJ,MAAM,iBAAiB,GAAG,aAAa,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QAE7D,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACrB,OAAO,oDAAmC,CAAC;QAC/C,CAAC;QAED,KAAK,GAAG,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IAC1E,CAAC;IAED,OAAO,yBAAO,oBAAoB,CAAC,KAAK,EAAE,IAAI,CAAC,GAAQ,CAAC;AAC5D,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { RecordIdentityFragment } from '../../_gqlTypes';
3
+ interface IIdCardProps {
4
+ item: RecordIdentityFragment['whoAmI'];
5
+ }
6
+ export declare const IdCard: FunctionComponent<IIdCardProps>;
7
+ export {};
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import { KitIdCard } from 'aristid-ds';
6
+ export const IdCard = ({ item }) => {
7
+ const { id, label, library, preview, subLabel } = item;
8
+ const itemLabel = label ?? id;
9
+ const avatarProps = { label: itemLabel };
10
+ if (preview) {
11
+ avatarProps.src = preview.small;
12
+ }
13
+ return _jsx(KitIdCard, { avatarProps: avatarProps, title: label ?? id, description: subLabel ?? library.id });
14
+ };
15
+ //# sourceMappingURL=IdCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdCard.js","sourceRoot":"","sources":["../../../src/components/Explorer/IdCard.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AASrC,MAAM,CAAC,MAAM,MAAM,GAAoC,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE;IAC9D,MAAM,EAAC,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAC,GAAG,IAAI,CAAC;IACrD,MAAM,SAAS,GAAG,KAAK,IAAI,EAAE,CAAC;IAC9B,MAAM,WAAW,GAAe,EAAC,KAAK,EAAE,SAAS,EAAC,CAAC;IAEnD,IAAI,OAAO,EAAE,CAAC;QACV,WAAW,CAAC,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC;IACpC,CAAC;IAED,OAAO,KAAC,SAAS,IAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,EAAE,WAAW,EAAE,QAAQ,IAAI,OAAO,CAAC,EAAE,GAAI,CAAC;AAC5G,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { AttributePropertiesFragment, PropertyValueFragment } from '../../_gqlTypes';
3
+ interface ITableCellProps {
4
+ values: PropertyValueFragment[];
5
+ attributeProperties: AttributePropertiesFragment;
6
+ }
7
+ export declare const TableCell: FunctionComponent<ITableCellProps>;
8
+ export {};
@@ -0,0 +1,144 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import { useCallback } from 'react';
6
+ import { AttributeFormat, AttributeType } from '../../_gqlTypes';
7
+ import { useSharedTranslation } from '../../hooks/useSharedTranslation';
8
+ import { FaArrowRight, FaCalendar, FaListAlt } from 'react-icons/fa';
9
+ import DOMPurify from 'dompurify';
10
+ import { KitAvatar, KitSpace, KitTag, KitTypography } from 'aristid-ds';
11
+ import styled from 'styled-components';
12
+ import { IdCard } from './IdCard';
13
+ import { multiColorTagAvatarClassName, TableTagGroup } from './TableTagGroup';
14
+ import { ColorFactory } from 'antd/lib/color-picker/color';
15
+ const isStandardValue = (v, attribute) => [AttributeType.simple, AttributeType.advanced].includes(attribute.type);
16
+ const isStandardValues = (values, attribute) => values.every(value => isStandardValue(value, attribute));
17
+ const isLinkValue = (v, attribute) => [AttributeType.simple_link, AttributeType.advanced_link].includes(attribute.type);
18
+ const isLinkValues = (values, attribute) => values.every(value => isLinkValue(value, attribute));
19
+ const isTreeValue = (v, attribute) => [AttributeType.tree].includes(attribute.type);
20
+ const isDateRangeValue = (v) => 'from' in v && 'to' in v;
21
+ const StyledCenteringWrapper = styled.div `
22
+ display: flex;
23
+ align-items: center;
24
+ gap: calc(var(--general-spacing-xs) * 1px);
25
+ `;
26
+ const StyledColorChip = styled.div `
27
+ height: calc(var(--general-spacing-s) * 1px);
28
+ width: calc(var(--general-spacing-s) * 1px);
29
+ border-radius: calc(var(--general-border-radius-xs) * 1px);
30
+ background-color: ${props => props.$colorTextContent};
31
+ `;
32
+ const StyledFaListAlt = styled(FaListAlt) `
33
+ flex-shrink: 0;
34
+ `;
35
+ const StyledFaCalendar = styled(FaCalendar) `
36
+ flex-shrink: 0;
37
+ `;
38
+ export const TableCell = ({ values, attributeProperties }) => {
39
+ const { t } = useSharedTranslation();
40
+ const _getDateRangeValueContent = useCallback((value) => {
41
+ if (!isDateRangeValue(value)) {
42
+ return t('explorer.invalid-value');
43
+ }
44
+ return (_jsxs(KitSpace, { size: "xxs", children: [_jsx(StyledFaCalendar, {}), value.from, " ", _jsx(FaArrowRight, {}), " ", value.to] }));
45
+ }, []);
46
+ if (attributeProperties.multiple_values) {
47
+ if (isStandardValues(values, attributeProperties)) {
48
+ const tags = values.map(value => {
49
+ switch (attributeProperties.format) {
50
+ case AttributeFormat.boolean:
51
+ return {
52
+ idCardProps: {
53
+ description: value.valuePayload ? String(t('global.yes')) : String(t('global.no'))
54
+ },
55
+ type: value.valuePayload ? 'primary' : 'neutral'
56
+ };
57
+ case AttributeFormat.color:
58
+ const color = new ColorFactory(value.valueRawPayload);
59
+ return {
60
+ idCardProps: {
61
+ description: value.valuePayload,
62
+ avatarProps: {
63
+ color: color.toHexString(),
64
+ shape: 'square',
65
+ className: multiColorTagAvatarClassName
66
+ }
67
+ }
68
+ };
69
+ case AttributeFormat.date_range:
70
+ return {
71
+ idCardProps: {
72
+ description: _getDateRangeValueContent(value.valuePayload)
73
+ },
74
+ type: 'primary'
75
+ };
76
+ default:
77
+ const valueContent = attributeProperties.format === AttributeFormat.encrypted
78
+ ? '●●●●●●●●●●●●'
79
+ : value.valuePayload;
80
+ return {
81
+ idCardProps: { description: valueContent },
82
+ type: 'primary'
83
+ };
84
+ }
85
+ });
86
+ return _jsx(TableTagGroup, { tags: tags });
87
+ }
88
+ else if (isLinkValues(values, attributeProperties)) {
89
+ return (_jsx(KitAvatar.Group, { maxCount: 5, children: values.map((value, index) => {
90
+ if (!isLinkValue(value, attributeProperties)) {
91
+ return null;
92
+ }
93
+ return (_jsx(KitAvatar, { label: String(value?.linkPayload?.whoAmI.label), src: value?.linkPayload?.whoAmI.preview?.small, color: "primary", secondaryColorInvert: true }, index));
94
+ }) }));
95
+ }
96
+ else {
97
+ // TODO: handle multiple tree values
98
+ return null;
99
+ }
100
+ }
101
+ else {
102
+ const value = values[0]; // Not multiple_values attribute should not have more than one value
103
+ if (!value) {
104
+ return null;
105
+ }
106
+ let content = null;
107
+ if (isStandardValue(value, attributeProperties)) {
108
+ if (value.valuePayload === null) {
109
+ return null;
110
+ }
111
+ switch (attributeProperties.format) {
112
+ case AttributeFormat.boolean:
113
+ const valueToDisplay = value.valuePayload ? t('global.yes') : t('global.no');
114
+ content = (_jsx(KitTag, { type: !!value.valuePayload ? 'primary' : 'neutral', idCardProps: { description: valueToDisplay } }, attributeProperties.id));
115
+ break;
116
+ case AttributeFormat.rich_text:
117
+ const tmp = document.createElement('div');
118
+ tmp.innerHTML = DOMPurify.sanitize(value.valuePayload);
119
+ const textContent = tmp.textContent;
120
+ content = (_jsxs(_Fragment, { children: [_jsx(StyledFaListAlt, {}), _jsx(KitTypography.Text, { ellipsis: { tooltip: textContent }, children: textContent }, attributeProperties.id)] }));
121
+ break;
122
+ case AttributeFormat.color:
123
+ const color = new ColorFactory(value.valueRawPayload);
124
+ content = (_jsxs(_Fragment, { children: [_jsx(StyledColorChip, { "$colorTextContent": color.toHexString() }), _jsx(KitTypography.Text, { ellipsis: { tooltip: value.valuePayload }, children: value.valuePayload }, attributeProperties.id)] }));
125
+ break;
126
+ case AttributeFormat.date_range:
127
+ content = _getDateRangeValueContent(value.valuePayload);
128
+ break;
129
+ default:
130
+ const valueContent = attributeProperties.format === AttributeFormat.encrypted ? '●●●●●●●●●●●●' : value.valuePayload;
131
+ content = (_jsx(KitTypography.Text, { ellipsis: { tooltip: valueContent }, children: valueContent }, attributeProperties.id));
132
+ break;
133
+ }
134
+ }
135
+ if (isTreeValue(value, attributeProperties)) {
136
+ content = value.treePayload?.record.id ?? '';
137
+ }
138
+ if (isLinkValue(value, attributeProperties)) {
139
+ content = value.linkPayload?.whoAmI ? (_jsx(IdCard, { item: value.linkPayload?.whoAmI }, attributeProperties.id)) : null;
140
+ }
141
+ return _jsx(StyledCenteringWrapper, { children: content });
142
+ }
143
+ };
144
+ //# sourceMappingURL=TableCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../src/components/Explorer/TableCell.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAA+B,WAAW,EAAC,MAAM,OAAO,CAAC;AAChE,OAAO,EACH,eAAe,EAEf,aAAa,EAKhB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,S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mBAAmB,CAAC,EAAE,CAE1B,CACxB,CAAC;oBACF,MAAM;YACd,CAAC;QACL,CAAC;QAED,IAAI,WAAW,CAAC,KAAK,EAAE,mBAAmB,CAAC,EAAE,CAAC;YAC1C,OAAO,GAAG,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC;QACjD,CAAC;QAED,IAAI,WAAW,CAAC,KAAK,EAAE,mBAAmB,CAAC,EAAE,CAAC;YAC1C,OAAO,GAAG,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,CAClC,KAAC,MAAM,IAA8B,IAAI,EAAE,KAAK,CAAC,WAAW,EAAE,MAAM,IAAvD,mBAAmB,CAAC,EAAE,CAAqC,CAC3E,CAAC,CAAC,CAAC,IAAI,CAAC;QACb,CAAC;QAED,OAAO,KAAC,sBAAsB,cAAE,OAAO,GAA0B,CAAC;IACtE,CAAC;AACL,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { IKitTag } from 'aristid-ds/dist/Kit/DataDisplay/Tag/types';
2
+ import { FunctionComponent } from 'react';
3
+ export declare const multiColorTagAvatarClassName = "multi-color-tag-avatar";
4
+ export declare const TableTagGroup: FunctionComponent<{
5
+ tags: IKitTag[];
6
+ maxTags?: number;
7
+ }>;
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import { KitTag, KitTooltip } from 'aristid-ds';
6
+ import styled from 'styled-components';
7
+ export const multiColorTagAvatarClassName = 'multi-color-tag-avatar';
8
+ const StyledTagsGroupDiv = styled.div `
9
+ display: flex;
10
+ column-gap: calc(var(--general-spacing-xxs) * 1px);
11
+ row-gap: calc(var(--general-spacing-xxs) * 0.5px);
12
+ flex-wrap: wrap;
13
+
14
+ & > span {
15
+ margin-right: var(--general-spacing-none);
16
+ }
17
+
18
+ // TODO: wait DS to allow better customization on avatar
19
+ &&& .${multiColorTagAvatarClassName} {
20
+ height: calc(var(--general-spacing-s) * 1px);
21
+ width: calc(var(--general-spacing-s) * 1px);
22
+ border-radius: calc(var(--general-border-radius-xs) * 1px);
23
+ }
24
+ `;
25
+ export const TableTagGroup = ({ tags, maxTags = 3 }) => {
26
+ const hiddenTags = tags.slice(maxTags);
27
+ const visibleTags = tags.slice(0, maxTags);
28
+ return (_jsxs(StyledTagsGroupDiv, { children: [visibleTags.map((tag, index) => (_jsx(KitTag, { ...tag }, index))), hiddenTags.length > 0 && (_jsx(KitTooltip, { overlay: hiddenTags.map((hiddenTag, index) => (_jsx("div", { children: hiddenTag.idCardProps?.description }, index))), children: _jsx(KitTag, { type: "primary", idCardProps: { description: `+${hiddenTags.length}` } }) }))] }));
29
+ };
30
+ //# sourceMappingURL=TableTagGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableTagGroup.js","sourceRoot":"","sources":["../../../src/components/Explorer/TableTagGroup.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,YAAY,CAAC;AAG9C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,4BAA4B,GAAG,wBAAwB,CAAC;AAErE,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;WAW1B,4BAA4B;;;;;CAKtC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAGrB,CAAC,EAAC,IAAI,EAAE,OAAO,GAAG,CAAC,EAAC,EAAE,EAAE;IACzB,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACvC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IAE3C,OAAO,CACH,MAAC,kBAAkB,eACd,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CAC7B,KAAC,MAAM,OAAiB,GAAG,IAAd,KAAK,CAAa,CAClC,CAAC,EACD,UAAU,CAAC,MAAM,GAAG,CAAC,IAAI,CACtB,KAAC,UAAU,IACP,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1C,wBAAkB,SAAS,CAAC,WAAW,EAAE,WAAW,IAA1C,KAAK,CAA4C,CAC9D,CAAC,YAEF,KAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,WAAW,EAAE,EAAC,WAAW,EAAE,IAAI,UAAU,CAAC,MAAM,EAAE,EAAC,GAAI,GACrE,CAChB,IACgB,CACxB,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ViewTypes } from '../../_gqlTypes';
2
+ import { ViewType } from './manage-view-settings/store-view-settings/viewSettingsReducer';
3
+ export declare const mapViewTypeFromExplorerToLegacy: Record<ViewType, ViewTypes>;
4
+ export declare const mapViewTypeFromLegacyToExplorer: Record<ViewTypes, ViewType>;
@@ -0,0 +1,17 @@
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 { ViewTypes } from '../../_gqlTypes';
5
+ //TODO: this mapping is here for backward compatibility. When the old explorer is removed, we should updates types on the backend and remove this mapping
6
+ export const mapViewTypeFromExplorerToLegacy = {
7
+ table: ViewTypes.list,
8
+ mosaic: ViewTypes.cards,
9
+ timeline: ViewTypes.timeline,
10
+ list: ViewTypes.list
11
+ };
12
+ export const mapViewTypeFromLegacyToExplorer = {
13
+ [ViewTypes.list]: 'table',
14
+ [ViewTypes.cards]: 'mosaic',
15
+ [ViewTypes.timeline]: 'timeline'
16
+ };
17
+ //# sourceMappingURL=_constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_constants.js","sourceRoot":"","sources":["../../../src/components/Explorer/_constants.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAGxC,yJAAyJ;AACzJ,MAAM,CAAC,MAAM,+BAA+B,GAAgC;IACxE,KAAK,EAAE,SAAS,CAAC,IAAI;IACrB,MAAM,EAAE,SAAS,CAAC,KAAK;IACvB,QAAQ,EAAE,SAAS,CAAC,QAAQ;IAC5B,IAAI,EAAE,SAAS,CAAC,IAAI;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAgC;IACxE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO;IACzB,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,QAAQ;IAC3B,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,UAAU;CACnC,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 { Entrypoint, IExplorerData, IExplorerFilter } from '../_types';
2
+ import { ExplorerLibraryDataQuery, ExplorerLinkDataQuery, RecordFilterInput, SortOrder } from '../../../_gqlTypes';
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"];
9
- filters?: import("../../../_gqlTypes").InputMaybe<Array<import("../../../_gqlTypes").InputMaybe<import("../../../_gqlTypes").RecordFilterInput>> | import("../../../_gqlTypes").InputMaybe<import("../../../_gqlTypes").RecordFilterInput>>;
10
- }>>) => Promise<import("@apollo/client").ApolloQueryResult<ExplorerQuery>>;
25
+ pagination?: import("../../../_gqlTypes").InputMaybe<import("../../../_gqlTypes").RecordsPagination>;
26
+ filters?: import("../../../_gqlTypes").InputMaybe<Array<import("../../../_gqlTypes").InputMaybe<RecordFilterInput>> | import("../../../_gqlTypes").InputMaybe<RecordFilterInput>>;
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,24 @@
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 { AttributeFormat, RecordFilterCondition, RecordFilterOperator, useExplorerLibraryDataQuery, useExplorerLinkDataQuery } from '../../../_gqlTypes';
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 { useMemo } from 'react';
8
+ import { interleaveElement } from '../../../_utils/interleaveElement';
9
+ import dayjs from 'dayjs';
10
+ import { nullValueConditions } from '../conditionsHelper';
11
+ import { AttributeConditionFilter } from '../../../types';
12
+ export const dateValuesSeparator = '\n';
13
+ const _mappingLibrary = (data, libraryId, availableLangs) => {
14
+ const attributes = data.records.list.length
15
+ ? data.records.list[0].properties.reduce((acc, property) => {
16
+ acc[property.attributeId] = {
17
+ ...property.attributeProperties,
18
+ label: localizedTranslation(property.attributeProperties.label, availableLangs)
19
+ };
20
+ return acc;
21
+ }, {})
22
+ : {};
15
23
  const records = data.records.list.map(({ whoAmI, properties }) => ({
16
24
  libraryId,
17
25
  key: whoAmI.id, // For <KitTable /> only
@@ -26,17 +34,170 @@ const _mapping = (data, libraryId, availableLangs) => {
26
34
  propertiesById: properties.reduce((acc, { attributeId, values }) => ({ ...acc, [attributeId]: values }), {})
27
35
  }));
28
36
  return {
37
+ totalCount: data.records.totalCount ?? 0,
38
+ attributes,
39
+ records
40
+ };
41
+ };
42
+ const _mappingLink = (data, libraryId, availableLangs) => {
43
+ const attributes = data.records.list.length
44
+ ? (data.records.list[0].property[0]?.payload?.properties ?? []).reduce((acc, property) => {
45
+ acc[property.attributeId] = {
46
+ ...property.attributeProperties,
47
+ label: localizedTranslation(property.attributeProperties.label, availableLangs)
48
+ };
49
+ return acc;
50
+ }, {})
51
+ : {};
52
+ const records = data.records.list[0].property
53
+ .map((linkValue) => {
54
+ if (!linkValue.payload) {
55
+ return null;
56
+ }
57
+ return {
58
+ libraryId,
59
+ key: linkValue.payload.whoAmI.id, // For <KitTable /> only
60
+ itemId: linkValue.payload.whoAmI.id, // For <KitTable /> only
61
+ whoAmI: {
62
+ label: null,
63
+ subLabel: null,
64
+ color: null,
65
+ preview: null,
66
+ ...linkValue.payload.whoAmI
67
+ },
68
+ propertiesById: linkValue.payload.properties.reduce((acc, { attributeId, values }) => ({ ...acc, [attributeId]: values }), {}),
69
+ id_value: linkValue.id_value
70
+ };
71
+ })
72
+ .filter(Boolean);
73
+ return {
74
+ totalCount: records.length,
29
75
  attributes,
30
76
  records
31
77
  };
32
78
  };
33
- export const useExplorerData = (libraryId, attributeIds) => {
79
+ const _getDateRequestFilters = ({ field, condition, value }) => {
80
+ switch (condition) {
81
+ case RecordFilterCondition.BETWEEN:
82
+ const [from, to] = value.split(dateValuesSeparator);
83
+ return [
84
+ {
85
+ field,
86
+ condition,
87
+ value: JSON.stringify({
88
+ from,
89
+ to
90
+ })
91
+ }
92
+ ];
93
+ case RecordFilterCondition.NOT_EQUAL:
94
+ return [
95
+ {
96
+ field,
97
+ condition: RecordFilterCondition.LESS_THAN,
98
+ value: dayjs.unix(Number(value)).startOf('day').unix().toString()
99
+ },
100
+ { operator: RecordFilterOperator.OR },
101
+ {
102
+ field,
103
+ condition: RecordFilterCondition.GREATER_THAN,
104
+ value: dayjs.unix(Number(value)).endOf('day').unix().toString()
105
+ },
106
+ { operator: RecordFilterOperator.OR },
107
+ {
108
+ field,
109
+ condition: RecordFilterCondition.IS_EMPTY,
110
+ value: null
111
+ }
112
+ ];
113
+ case RecordFilterCondition.EQUAL:
114
+ return [
115
+ {
116
+ field,
117
+ condition: RecordFilterCondition.BETWEEN,
118
+ value: JSON.stringify({
119
+ from: dayjs.unix(Number(value)).startOf('day').unix().toString(),
120
+ to: dayjs.unix(Number(value)).endOf('day').unix().toString()
121
+ })
122
+ }
123
+ ];
124
+ default:
125
+ return [
126
+ {
127
+ field,
128
+ condition,
129
+ value
130
+ }
131
+ ];
132
+ }
133
+ };
134
+ const _getBooleanRequestFilters = ({ field, condition, value }) => {
135
+ if (value === 'false') {
136
+ return [
137
+ {
138
+ field,
139
+ condition: AttributeConditionFilter.NOT_EQUAL,
140
+ value: 'true'
141
+ }
142
+ ];
143
+ }
144
+ return [{ field, condition, value }];
145
+ };
146
+ export const useExplorerData = ({ entrypoint, libraryId, attributeIds, fulltextSearch, sorts, pagination, filters, skip }) => {
34
147
  const { lang: availableLangs } = useLang();
35
- const { data, loading, refetch } = useExplorerQuery({ variables: { libraryId, attributeIds } });
148
+ const queryFilters = interleaveElement({ operator: RecordFilterOperator.AND }, filters
149
+ .filter(({ value, condition }) => value !== null || nullValueConditions.includes(condition))
150
+ .map(({ attribute, field, condition, value }) => {
151
+ switch (attribute.format) {
152
+ case AttributeFormat.date:
153
+ return _getDateRequestFilters({ field, condition, value });
154
+ case AttributeFormat.boolean:
155
+ return _getBooleanRequestFilters({ field, condition, value });
156
+ default:
157
+ return [
158
+ {
159
+ field,
160
+ condition,
161
+ value
162
+ }
163
+ ];
164
+ }
165
+ }));
166
+ const isLibrary = entrypoint.type === 'library';
167
+ const isLink = entrypoint.type === 'link';
168
+ const { data: linkData, loading: linkLoading, refetch: linkRefetch } = useExplorerLinkDataQuery({
169
+ skip: skip || !isLink,
170
+ variables: {
171
+ parentLibraryId: entrypoint.parentLibraryId,
172
+ parentRecordId: entrypoint.parentRecordId,
173
+ linkAttributeId: entrypoint.linkAttributeId,
174
+ attributeIds
175
+ }
176
+ });
177
+ const { data: libraryData, loading: libraryLoading, refetch: libraryRefetch } = useExplorerLibraryDataQuery({
178
+ skip: skip || !isLibrary,
179
+ variables: {
180
+ libraryId,
181
+ attributeIds,
182
+ pagination,
183
+ searchQuery: fulltextSearch,
184
+ multipleSort: sorts,
185
+ filters: queryFilters
186
+ }
187
+ });
188
+ const memoizedData = useMemo(() => {
189
+ if (isLibrary) {
190
+ return libraryData ? _mappingLibrary(libraryData, libraryId, availableLangs) : null;
191
+ }
192
+ if (isLink) {
193
+ return linkData ? _mappingLink(linkData, libraryId, availableLangs) : null;
194
+ }
195
+ return null;
196
+ }, [libraryData, linkData]);
36
197
  return {
37
- data: data !== undefined ? _mapping(data, libraryId, availableLangs) : null,
38
- loading,
39
- refetch
198
+ data: memoizedData,
199
+ loading: isLibrary ? libraryLoading : linkLoading,
200
+ refetch: isLibrary ? libraryRefetch : linkRefetch
40
201
  };
41
202
  };
42
203
  //# sourceMappingURL=useExplorerData.js.map