@leav/ui 0.3.6-be1e7eb → 0.3.6-c1148d9

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 (516) hide show
  1. package/dist/__mocks__/common/attribute.d.ts +1 -0
  2. package/dist/__mocks__/common/attribute.js +9 -2
  3. package/dist/__mocks__/common/attribute.js.map +1 -1
  4. package/dist/__mocks__/common/form.d.ts +12 -5
  5. package/dist/__mocks__/common/form.js +33 -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 -2
  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 +605 -114
  18. package/dist/_gqlTypes/index.js +365 -56
  19. package/dist/_gqlTypes/index.js.map +1 -1
  20. package/dist/_queries/attributes/attributeDetailsFragment.js +0 -1
  21. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  22. package/dist/_queries/attributes/getAttributesByLib.js +7 -5
  23. package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
  24. package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +3 -4
  25. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js +2 -3
  26. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  27. package/dist/_queries/records/createRecordMutation.js +2 -3
  28. package/dist/_queries/records/createRecordMutation.js.map +1 -1
  29. package/dist/_queries/records/getRecordColumnsValues.d.ts +5 -3
  30. package/dist/_queries/records/getRecordColumnsValues.js +4 -1
  31. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  32. package/dist/_queries/records/getRecordsFromLibraryQuery.js +1 -0
  33. package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
  34. package/dist/_queries/records/recordFormAttributeFragment.js +3 -0
  35. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  36. package/dist/_queries/views/saveViewMutation.js +1 -1
  37. package/dist/_queries/views/viewDetailsFragment.js +14 -11
  38. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  39. package/dist/_utils/attributeType.d.ts +3 -0
  40. package/dist/_utils/attributeType.js +7 -0
  41. package/dist/_utils/attributeType.js.map +1 -0
  42. package/dist/_utils/index.js +5 -2
  43. package/dist/_utils/index.js.map +1 -1
  44. package/dist/_utils/interleaveElement.d.ts +1 -0
  45. package/dist/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js → _utils/interleaveElement.js} +2 -3
  46. package/dist/_utils/interleaveElement.js.map +1 -0
  47. package/dist/antdTheme/index.d.ts +0 -3
  48. package/dist/antdTheme/index.js +3 -42
  49. package/dist/antdTheme/index.js.map +1 -1
  50. package/dist/components/CreateDirectory/CreateDirectory.js +1 -1
  51. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  52. package/dist/components/EditApplication/EditApplication.js +2 -2
  53. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  54. package/dist/components/EditApplication/_types.d.ts +2 -2
  55. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +0 -1
  56. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
  57. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +2 -5
  58. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
  59. package/dist/components/Explorer/DataView.d.ts +15 -1
  60. package/dist/components/Explorer/DataView.js +103 -24
  61. package/dist/components/Explorer/DataView.js.map +1 -1
  62. package/dist/components/Explorer/Explorer.d.ts +10 -6
  63. package/dist/components/Explorer/Explorer.js +101 -29
  64. package/dist/components/Explorer/Explorer.js.map +1 -1
  65. package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
  66. package/dist/components/Explorer/ExplorerTitle.js +28 -11
  67. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  68. package/dist/components/Explorer/ExplorerToolbar.d.ts +4 -0
  69. package/dist/components/Explorer/ExplorerToolbar.js +49 -0
  70. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -0
  71. package/dist/components/Explorer/TableCell.d.ts +2 -1
  72. package/dist/components/Explorer/TableCell.js +131 -20
  73. package/dist/components/Explorer/TableCell.js.map +1 -1
  74. package/dist/components/Explorer/TableTagGroup.d.ts +7 -0
  75. package/dist/components/Explorer/TableTagGroup.js +30 -0
  76. package/dist/components/Explorer/TableTagGroup.js.map +1 -0
  77. package/dist/components/Explorer/_constants.d.ts +5 -0
  78. package/dist/components/Explorer/_constants.js +18 -0
  79. package/dist/components/Explorer/_constants.js.map +1 -0
  80. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +4 -0
  81. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +99 -0
  82. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -0
  83. package/dist/components/Explorer/_queries/useExplorerData.d.ts +29 -5
  84. package/dist/components/Explorer/_queries/useExplorerData.js +92 -18
  85. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  86. package/dist/components/Explorer/_types.d.ts +79 -3
  87. package/dist/components/Explorer/_types.js +7 -1
  88. package/dist/components/Explorer/_types.js.map +1 -1
  89. package/dist/components/Explorer/{useEditAction.d.ts → actions-item/useEditItemAction.d.ts} +4 -4
  90. package/dist/components/Explorer/{useEditAction.js → actions-item/useEditItemAction.js} +15 -13
  91. package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -0
  92. package/dist/components/Explorer/actions-item/useRemoveItemAction.d.ts +23 -0
  93. package/dist/components/Explorer/actions-item/useRemoveItemAction.js +109 -0
  94. package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +1 -0
  95. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +27 -0
  96. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +71 -0
  97. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -0
  98. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +28 -0
  99. package/dist/components/Explorer/actions-mass/useMassActions.js +111 -0
  100. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -0
  101. package/dist/components/Explorer/{useCreateAction.d.ts → actions-primary/useCreatePrimaryAction.d.ts} +9 -5
  102. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +75 -0
  103. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -0
  104. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +17 -0
  105. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +38 -0
  106. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -0
  107. package/dist/components/Explorer/actions-primary/usePrimaryActions.d.ts +12 -0
  108. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +25 -0
  109. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -0
  110. package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
  111. package/dist/components/Explorer/conditionsHelper.js +16 -0
  112. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  113. package/dist/components/Explorer/link-item/LinkModal.d.ts +7 -0
  114. package/dist/components/Explorer/link-item/LinkModal.js +72 -0
  115. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -0
  116. package/dist/components/Explorer/link-item/useLinkMassAction.d.ts +22 -0
  117. package/dist/components/Explorer/link-item/useLinkMassAction.js +55 -0
  118. package/dist/components/Explorer/link-item/useLinkMassAction.js.map +1 -0
  119. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.d.ts +1 -1
  120. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +11 -4
  121. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
  122. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +6 -0
  123. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +12 -0
  124. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  125. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +13 -0
  126. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +67 -0
  127. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  128. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +19 -52
  129. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
  130. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  131. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +88 -0
  132. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  133. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +9 -0
  134. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  135. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  136. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  137. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +22 -0
  138. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  139. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  140. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  141. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  142. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  143. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
  144. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  145. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  146. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  147. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  148. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  149. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  150. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  151. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  152. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  153. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  154. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  155. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +35 -0
  156. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  157. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.d.ts +7 -0
  158. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +40 -0
  159. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
  160. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  161. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  162. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  163. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.d.ts +3 -0
  164. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js +79 -0
  165. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
  166. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  167. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +19 -0
  168. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  169. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  170. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +28 -0
  171. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  172. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +10 -0
  173. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js +2 -0
  174. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +1 -0
  175. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +12 -0
  176. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +108 -0
  177. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  178. package/dist/components/Explorer/manage-view-settings/index.d.ts +4 -4
  179. package/dist/components/Explorer/manage-view-settings/index.js +3 -3
  180. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -1
  181. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +3 -2
  182. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +2 -2
  183. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
  184. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js +2 -2
  185. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -1
  186. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +3 -3
  187. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -1
  188. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +11 -0
  189. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +55 -0
  190. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  191. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.d.ts +2 -1
  192. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +26 -34
  193. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  194. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.d.ts +7 -0
  195. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js +42 -0
  196. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js.map +1 -0
  197. package/dist/components/Explorer/manage-view-settings/save-view/useSaveView.d.ts +4 -0
  198. package/dist/components/Explorer/manage-view-settings/save-view/useSaveView.js +17 -0
  199. package/dist/components/Explorer/manage-view-settings/save-view/useSaveView.js.map +1 -0
  200. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  201. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +113 -0
  202. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  203. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  204. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  205. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  206. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +2 -0
  207. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +21 -1
  208. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  209. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +138 -16
  210. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +207 -24
  211. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  212. package/dist/components/Explorer/manage-view-settings/useManageViews.d.ts +3 -0
  213. package/dist/components/Explorer/manage-view-settings/useManageViews.js +48 -0
  214. package/dist/components/Explorer/manage-view-settings/useManageViews.js.map +1 -0
  215. package/dist/components/Explorer/useColumnWidth.d.ts +8 -0
  216. package/dist/components/Explorer/useColumnWidth.js +49 -0
  217. package/dist/components/Explorer/useColumnWidth.js.map +1 -0
  218. package/dist/components/Explorer/usePagination.d.ts +7 -0
  219. package/dist/components/Explorer/usePagination.js +25 -0
  220. package/dist/components/Explorer/usePagination.js.map +1 -0
  221. package/dist/components/Explorer/useSearchInput.d.ts +16 -0
  222. package/dist/components/Explorer/useSearchInput.js +39 -0
  223. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  224. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  225. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  226. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  227. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  228. package/dist/components/Explorer/useViewSettingsReducer.js +215 -0
  229. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  230. package/dist/components/ExportModal/ExportModal.js +2 -2
  231. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  232. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  233. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  234. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  235. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  236. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  237. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  238. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +7 -2
  239. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
  240. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  241. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  242. package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
  243. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  244. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  245. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  246. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  247. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  248. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  249. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  250. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  251. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  252. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  253. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  254. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  255. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  256. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  257. package/dist/components/RecordEdition/EditRecord/EditRecord.js +77 -75
  258. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  259. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +17 -4
  260. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  261. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +10 -21
  262. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  263. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -1
  264. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +44 -34
  265. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  266. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  267. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  268. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  269. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  270. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -7
  271. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +1 -1
  272. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  273. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  274. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  275. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  276. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  277. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  278. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  279. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  280. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  281. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
  282. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  283. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  284. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +16 -0
  285. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  286. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  287. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  288. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  289. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +5 -2
  290. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +201 -186
  291. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  292. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  293. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +11 -30
  294. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  295. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  296. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +79 -45
  297. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  298. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  299. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +37 -46
  300. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  301. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  302. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +14 -74
  303. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  304. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  305. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +33 -49
  306. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  307. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  308. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +33 -60
  309. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  310. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  311. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +52 -64
  312. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  313. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  314. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +33 -56
  315. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  316. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +16 -9
  317. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +56 -402
  318. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  319. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.d.ts +4 -0
  320. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.js → DSListSelect.js} +48 -52
  321. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
  322. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -9
  323. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +15 -0
  324. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  325. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  326. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  327. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +56 -0
  328. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  329. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  330. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +32 -0
  331. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  332. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +4 -7
  333. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  334. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  335. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  336. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  337. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  338. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  339. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  340. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  341. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.d.ts +7 -0
  342. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js +9 -0
  343. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -0
  344. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.d.ts +2 -0
  345. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/AttributeDetails → AttributeSummary}/index.js +2 -2
  346. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -0
  347. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.d.ts +2 -0
  348. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +25 -0
  349. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -0
  350. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.d.ts +3 -0
  351. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +53 -0
  352. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -0
  353. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.d.ts +2 -0
  354. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails → Breacrumb}/index.js +2 -2
  355. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -0
  356. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  357. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +41 -6
  358. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  359. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  360. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  361. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  362. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  363. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  364. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  365. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  366. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  367. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  368. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
  369. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
  370. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  371. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.d.ts +8 -0
  372. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +73 -0
  373. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -0
  374. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.d.ts +2 -0
  375. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/TreeValuePath → ValuesSummary}/index.js +2 -2
  376. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -0
  377. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.d.ts +1 -1
  378. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.js +2 -2
  379. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -0
  380. package/dist/components/RecordEdition/EditRecordSkeleton/index.d.ts +2 -0
  381. package/dist/components/RecordEdition/{EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → EditRecordSkeleton}/index.js +2 -1
  382. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -0
  383. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +12 -10
  384. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +15 -13
  385. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  386. package/dist/components/RecordEdition/index.d.ts +1 -0
  387. package/dist/components/RecordEdition/index.js +1 -0
  388. package/dist/components/RecordEdition/index.js.map +1 -1
  389. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  390. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  391. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  392. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  393. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +129 -0
  394. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  395. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  396. package/dist/components/SelectTreeNode/index.js +1 -1
  397. package/dist/components/SelectTreeNode/index.js.map +1 -1
  398. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  399. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  400. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  401. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  402. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  403. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  404. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  405. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  406. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  407. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  408. package/dist/constants.d.ts +3 -0
  409. package/dist/constants.js +3 -0
  410. package/dist/constants.js.map +1 -1
  411. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  412. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo → hooks/useDebouncedValue}/index.js +1 -2
  413. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  414. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  415. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata → hooks/useExecuteSaveViewMutation}/index.js +1 -2
  416. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  417. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  418. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
  419. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  420. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  421. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  422. package/dist/locales/en/shared.json +97 -12
  423. package/dist/locales/fr/shared.json +99 -14
  424. package/dist/types/views.d.ts +4 -4
  425. package/package.json +5 -2
  426. package/dist/components/Explorer/manage-view-settings/_shared/useGetLibraryColumns.d.ts +0 -10
  427. package/dist/components/Explorer/manage-view-settings/_shared/useGetLibraryColumns.js +0 -24
  428. package/dist/components/Explorer/manage-view-settings/_shared/useGetLibraryColumns.js.map +0 -1
  429. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenSettings.d.ts +0 -1
  430. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenSettings.js +0 -19
  431. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenSettings.js.map +0 -1
  432. package/dist/components/Explorer/useCreateAction.js +0 -40
  433. package/dist/components/Explorer/useCreateAction.js.map +0 -1
  434. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  435. package/dist/components/Explorer/useDeactivateAction.js +0 -51
  436. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
  437. package/dist/components/Explorer/useEditAction.js.map +0 -1
  438. package/dist/components/Explorer/usePrimaryActions.d.ts +0 -20
  439. package/dist/components/Explorer/usePrimaryActions.js +0 -29
  440. package/dist/components/Explorer/usePrimaryActions.js.map +0 -1
  441. package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.js.map +0 -1
  442. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  443. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  444. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  445. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  446. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  447. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  448. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js +0 -9
  449. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  450. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  451. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js +0 -7
  452. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  453. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
  454. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
  455. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
  456. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  457. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  458. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  459. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  460. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  461. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  462. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  463. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  464. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  465. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  466. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  467. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  468. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  469. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  470. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  471. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  472. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  473. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  474. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  475. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  476. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  477. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  478. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -90
  479. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  480. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  481. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  482. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  483. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  484. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  485. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  486. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  487. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  488. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +0 -3
  489. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
  490. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.d.ts +0 -6
  491. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js +0 -56
  492. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js.map +0 -1
  493. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.d.ts +0 -2
  494. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.js.map +0 -1
  495. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.d.ts +0 -8
  496. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js +0 -41
  497. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js.map +0 -1
  498. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.d.ts +0 -2
  499. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.js.map +0 -1
  500. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.d.ts +0 -10
  501. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +0 -63
  502. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +0 -1
  503. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.d.ts +0 -2
  504. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js +0 -76
  505. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js.map +0 -1
  506. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.d.ts +0 -2
  507. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.js.map +0 -1
  508. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.d.ts +0 -11
  509. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js +0 -43
  510. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js.map +0 -1
  511. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.d.ts +0 -2
  512. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.js.map +0 -1
  513. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.d.ts +0 -2
  514. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.js.map +0 -1
  515. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  516. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
@@ -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;AAQvC,uBAAuB;AACvB,MAAM,CAAC,MAAM,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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,4 @@
1
+ import { FunctionComponent } from 'react';
2
+ export declare const ExplorerToolbar: FunctionComponent<{
3
+ isMassSelectionAll: boolean;
4
+ }>;
@@ -0,0 +1,49 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { KitDivider, KitFilter, KitSpace } from 'aristid-ds';
3
+ import styled from 'styled-components';
4
+ import { useSharedTranslation } from '../../hooks/useSharedTranslation';
5
+ import { SortOrder } from '../../_gqlTypes';
6
+ import { useViewSettingsContext } from './manage-view-settings/store-view-settings/useViewSettingsContext';
7
+ import { CommonFilterItem } from './manage-view-settings/_shared/CommonFilterItem';
8
+ import { useAttributeDetailsData } from './manage-view-settings/_shared/useAttributeDetailsData';
9
+ import { useOpenViewSettings } from './manage-view-settings';
10
+ const FilterStyled = styled(KitFilter) `
11
+ flex: 0 0 auto;
12
+ `;
13
+ const ExplorerToolbarListStyled = styled.ul `
14
+ padding: calc(var(--general-spacing-xs) * 1px);
15
+ margin: 0;
16
+ margin-bottom: calc(var(--general-spacing-s) * 1px);
17
+ background: var(--general-colors-neutral-grey-100);
18
+ border-radius: calc(var(--general-border-radius-s) * 1px);
19
+ list-style: none;
20
+ display: flex;
21
+ overflow: auto;
22
+ flex-wrap: nowrap;
23
+ align-items: center;
24
+ gap: 0;
25
+ white-space: nowrap;
26
+ min-height: 26px; // height of the filter chip
27
+ `;
28
+ const DividerStyled = styled(KitDivider) `
29
+ height: 2em;
30
+ `;
31
+ export const ExplorerToolbar = ({ isMassSelectionAll, children }) => {
32
+ const { t } = useSharedTranslation();
33
+ const { view } = useViewSettingsContext();
34
+ const { filters, sort } = view;
35
+ const { openSettingsPanel } = useOpenViewSettings({ view });
36
+ const { attributeDetailsById } = useAttributeDetailsData(view.libraryId);
37
+ if (filters.length === 0 && sort.length === 0 && children === null) {
38
+ return null;
39
+ }
40
+ const sortValues = sort.length === 0
41
+ ? undefined
42
+ : sort.map(({ field, order }) => (attributeDetailsById?.[field]?.label ?? field) +
43
+ ' ' +
44
+ (order === SortOrder.asc ? t('explorer.sort-ascending') : t('explorer.sort-descending')));
45
+ const _handleClickOnSort = () => isMassSelectionAll ? undefined : () => openSettingsPanel('sort-items');
46
+ return (_jsxs(ExplorerToolbarListStyled, { "aria-label": t('explorer.toolbar'), children: [children !== null && (_jsxs(_Fragment, { children: [_jsx("li", { children: children }), filters.length !== 0 && _jsx(DividerStyled, { type: "vertical" })] })), _jsxs(KitSpace, { size: "s", children: [filters.length > 0 &&
47
+ filters.map(filter => (_jsx("li", { children: _jsx(CommonFilterItem, { filter: filter, disabled: isMassSelectionAll }, filter.id) }, filter.id))), sort.length > 0 && (_jsx("li", { children: _jsx(FilterStyled, { label: t('explorer.sort-items'), values: sortValues, disabled: isMassSelectionAll, onClick: _handleClickOnSort }) }))] })] }));
48
+ };
49
+ //# sourceMappingURL=ExplorerToolbar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExplorerToolbar.js","sourceRoot":"","sources":["../../../src/components/Explorer/ExplorerToolbar.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC3D,OAAO,MAAM,MAAM,mBAAmB,CAAC;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../_gqlTypes';
2
1
  import { FunctionComponent } from 'react';
2
+ import { AttributePropertiesFragment, PropertyValueFragment } from '../../_gqlTypes';
3
3
  interface ITableCellProps {
4
4
  values: PropertyValueFragment[];
5
+ attributeProperties: AttributePropertiesFragment;
5
6
  }
6
7
  export declare const TableCell: FunctionComponent<ITableCellProps>;
7
8
  export {};
@@ -1,41 +1,152 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
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
+ import { useCallback } from 'react';
5
6
  import { AttributeFormat, AttributeType } from '../../_gqlTypes';
6
7
  import { useSharedTranslation } from '../../hooks/useSharedTranslation';
7
- import { KitTag, KitTypography } from 'aristid-ds';
8
+ import { FaArrowRight, FaCalendar, FaListAlt } from 'react-icons/fa';
9
+ import DOMPurify from 'dompurify';
10
+ import { KitAvatar, KitSpace, KitTag, KitTypography } from 'aristid-ds';
8
11
  import styled from 'styled-components';
9
12
  import { IdCard } from './IdCard';
10
- const isLinkValue = (v) => [AttributeType.simple_link, AttributeType.advanced_link].includes(v.attribute.type);
11
- const isTreeValue = (v) => [AttributeType.tree].includes(v.attribute.type);
12
- const isStandardValue = (v) => [AttributeType.simple, AttributeType.advanced].includes(v.attribute.type);
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;
13
21
  const StyledCenteringWrapper = styled.div `
14
22
  display: flex;
15
23
  align-items: center;
24
+ gap: calc(var(--general-spacing-xs) * 1px);
16
25
  `;
17
- export const TableCell = ({ values }) => {
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 }) => {
18
39
  const { t } = useSharedTranslation();
19
- return (_jsx(StyledCenteringWrapper, { children: values.map((value) => {
20
- if (isStandardValue(value)) {
21
- switch (value.attribute.format) {
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
+ const _getFirstValue = useCallback((value, attribute) => {
47
+ if (isStandardValue(value, attribute) && attribute.format === AttributeFormat.boolean) {
48
+ if (!value || value.valuePayload === null) {
49
+ return { valuePayload: false };
50
+ }
51
+ }
52
+ return value;
53
+ }, []);
54
+ if (attributeProperties.multiple_values) {
55
+ if (isStandardValues(values, attributeProperties)) {
56
+ const tags = values.map(value => {
57
+ switch (attributeProperties.format) {
22
58
  case AttributeFormat.boolean:
23
- const valueToDisplay = value.valuePayload ? t('global.yes') : t('global.no');
24
- return (_jsx(KitTag, { type: !!value.valuePayload ? 'primary' : 'neutral', idCardProps: { description: valueToDisplay } }, value.attribute.id));
59
+ return {
60
+ idCardProps: {
61
+ description: value.valuePayload ? String(t('global.yes')) : String(t('global.no'))
62
+ },
63
+ type: value.valuePayload ? 'primary' : 'neutral'
64
+ };
65
+ case AttributeFormat.color:
66
+ const color = new ColorFactory(value.valueRawPayload);
67
+ return {
68
+ idCardProps: {
69
+ description: value.valuePayload,
70
+ avatarProps: {
71
+ color: color.toHexString(),
72
+ shape: 'square',
73
+ className: multiColorTagAvatarClassName
74
+ }
75
+ }
76
+ };
77
+ case AttributeFormat.date_range:
78
+ return {
79
+ idCardProps: {
80
+ description: _getDateRangeValueContent(value.valuePayload)
81
+ },
82
+ type: 'primary'
83
+ };
25
84
  default:
26
- const valueContent = value.attribute.format === AttributeFormat.encrypted
85
+ const valueContent = attributeProperties.format === AttributeFormat.encrypted
27
86
  ? '●●●●●●●●●●●●'
28
87
  : value.valuePayload;
29
- return (_jsx(KitTypography.Text, { ellipsis: { tooltip: valueContent }, children: valueContent }, value.attribute.id));
88
+ return {
89
+ idCardProps: { description: valueContent },
90
+ type: 'primary'
91
+ };
30
92
  }
93
+ });
94
+ return _jsx(TableTagGroup, { tags: tags });
95
+ }
96
+ else if (isLinkValues(values, attributeProperties)) {
97
+ return (_jsx(KitAvatar.Group, { maxCount: 5, children: values.map((value, index) => {
98
+ if (!isLinkValue(value, attributeProperties)) {
99
+ return null;
100
+ }
101
+ return (_jsx(KitAvatar, { label: String(value?.linkPayload?.whoAmI.label), src: value?.linkPayload?.whoAmI.preview?.small, color: "primary", secondaryColorInvert: true }, index));
102
+ }) }));
103
+ }
104
+ else {
105
+ // TODO: handle multiple tree values
106
+ return null;
107
+ }
108
+ }
109
+ else {
110
+ const value = _getFirstValue(values[0], attributeProperties); // Not multiple_values attribute should not have more than one value
111
+ if (!value) {
112
+ return null;
113
+ }
114
+ let content = null;
115
+ if (isStandardValue(value, attributeProperties)) {
116
+ if (value.valuePayload === null) {
117
+ return null;
31
118
  }
32
- const defaultValue = '';
33
- if (isTreeValue(value)) {
34
- return value.treePayload?.record.id ?? defaultValue;
35
- }
36
- if (isLinkValue(value)) {
37
- return value.linkPayload?.whoAmI ? (_jsx(IdCard, { item: value.linkPayload?.whoAmI }, value.attribute.id)) : null;
119
+ switch (attributeProperties.format) {
120
+ case AttributeFormat.boolean:
121
+ const valueToDisplay = value.valuePayload ? t('global.yes') : t('global.no');
122
+ content = (_jsx(KitTag, { type: !!value.valuePayload ? 'primary' : 'neutral', idCardProps: { description: valueToDisplay } }, attributeProperties.id));
123
+ break;
124
+ case AttributeFormat.rich_text:
125
+ const tmp = document.createElement('div');
126
+ tmp.innerHTML = DOMPurify.sanitize(value.valuePayload);
127
+ const textContent = tmp.textContent;
128
+ content = (_jsxs(_Fragment, { children: [_jsx(StyledFaListAlt, {}), _jsx(KitTypography.Text, { ellipsis: { tooltip: textContent }, children: textContent }, attributeProperties.id)] }));
129
+ break;
130
+ case AttributeFormat.color:
131
+ const color = new ColorFactory(value.valueRawPayload);
132
+ content = (_jsxs(_Fragment, { children: [_jsx(StyledColorChip, { "$colorTextContent": color.toHexString() }), _jsx(KitTypography.Text, { ellipsis: { tooltip: value.valuePayload }, children: value.valuePayload }, attributeProperties.id)] }));
133
+ break;
134
+ case AttributeFormat.date_range:
135
+ content = _getDateRangeValueContent(value.valuePayload);
136
+ break;
137
+ default:
138
+ const valueContent = attributeProperties.format === AttributeFormat.encrypted ? '●●●●●●●●●●●●' : value.valuePayload;
139
+ content = (_jsx(KitTypography.Text, { ellipsis: { tooltip: valueContent }, children: valueContent }, attributeProperties.id));
140
+ break;
38
141
  }
39
- }) }));
142
+ }
143
+ if (isTreeValue(value, attributeProperties)) {
144
+ content = value.treePayload?.record.id ?? '';
145
+ }
146
+ if (isLinkValue(value, attributeProperties)) {
147
+ content = value.linkPayload?.whoAmI ? (_jsx(IdCard, { item: value.linkPayload?.whoAmI }, attributeProperties.id)) : null;
148
+ }
149
+ return _jsx(StyledCenteringWrapper, { children: content });
150
+ }
40
151
  };
41
152
  //# sourceMappingURL=TableCell.js.map
@@ -1 +1 @@
1
-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3E,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,5 @@
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>;
5
+ export declare const MASS_SELECTION_ALL = "all";
@@ -0,0 +1,18 @@
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
+ export const MASS_SELECTION_ALL = 'all';
18
+ //# 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;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { RecordFilterInput } from '../../../_gqlTypes';
2
+ import { ExplorerFilter } from '../_types';
3
+ export declare const dateValuesSeparator = "\n";
4
+ export declare const prepareFiltersForRequest: (filters: ExplorerFilter[]) => RecordFilterInput[];
@@ -0,0 +1,99 @@
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 { isExplorerFilterStandard, isExplorerFilterThrough } from '../_types';
9
+ import { nullValueConditions } from '../conditionsHelper';
10
+ export const dateValuesSeparator = '\n';
11
+ const _getDateAtNoon = (date) => dayjs.unix(Number(date)).add(12, 'hour').unix().toString();
12
+ const _getDateRequestFilters = ({ field, condition, value }) => {
13
+ switch (condition) {
14
+ case RecordFilterCondition.BETWEEN:
15
+ const [from, to] = value.split(dateValuesSeparator);
16
+ return [
17
+ {
18
+ field,
19
+ condition,
20
+ value: JSON.stringify({
21
+ from,
22
+ to
23
+ })
24
+ }
25
+ ];
26
+ case RecordFilterCondition.NOT_EQUAL:
27
+ return [
28
+ {
29
+ field,
30
+ condition: RecordFilterCondition.NOT_EQUAL,
31
+ value: _getDateAtNoon(Number(value))
32
+ }
33
+ ];
34
+ case RecordFilterCondition.EQUAL:
35
+ return [
36
+ {
37
+ field,
38
+ condition,
39
+ value: _getDateAtNoon(Number(value))
40
+ }
41
+ ];
42
+ default:
43
+ return [
44
+ {
45
+ field,
46
+ condition,
47
+ value
48
+ }
49
+ ];
50
+ }
51
+ };
52
+ const _getBooleanRequestFilters = (filter) => {
53
+ if (filter.value === 'false') {
54
+ return [
55
+ {
56
+ field: filter.field,
57
+ condition: AttributeConditionFilter.NOT_EQUAL,
58
+ value: 'true'
59
+ }
60
+ ];
61
+ }
62
+ return [{ field: filter.field, condition: filter.condition, value: filter.value }];
63
+ };
64
+ export const prepareFiltersForRequest = (filters) => interleaveElement({ operator: RecordFilterOperator.AND }, filters
65
+ .filter(filter => {
66
+ if (isExplorerFilterThrough(filter)) {
67
+ return (filter.subField &&
68
+ filter.subCondition &&
69
+ (filter.value !== null || nullValueConditions.includes(filter.subCondition)));
70
+ }
71
+ return filter.value !== null || (filter.condition && nullValueConditions.includes(filter.condition));
72
+ })
73
+ .map(filter => {
74
+ const condition = filter.condition === AttributeConditionFilter.THROUGH ? filter.subCondition : filter.condition;
75
+ const field = filter.condition === AttributeConditionFilter.THROUGH
76
+ ? `${filter.field}.${filter.subField}`
77
+ : filter.field;
78
+ return { ...filter, condition, field };
79
+ })
80
+ .map(filter => {
81
+ if (isExplorerFilterStandard(filter)) {
82
+ switch (filter.attribute.format) {
83
+ case AttributeFormat.date:
84
+ return _getDateRequestFilters(filter);
85
+ case AttributeFormat.boolean:
86
+ return _getBooleanRequestFilters(filter);
87
+ default:
88
+ break;
89
+ }
90
+ }
91
+ return [
92
+ {
93
+ field: filter.field,
94
+ condition: filter.condition,
95
+ value: filter.value
96
+ }
97
+ ];
98
+ }));
99
+ //# 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;A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E;IACV,MAAM,SAAS,GACX,MAAM,CAAC,SAAS,KAAK,wBAAwB,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC;IACnG,MAAM,KAAK,GACP,MAAM,CAAC,SAAS,KAAK,wBAAwB,CAAC,OAAO;QACjD,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,QAAQ,EAAE;QACtC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;IACvB,OAAO,EAAC,GAAG,MAAM,EAAE,SAAS,EAAE,KAAK,EAAC,CAAC;AACzC,CAAC,CAAC;KACD,GAAG,CAAC,MAAM,CAAC,EAAE;IACV,IAAI,wBAAwB,CAAC,MAAM,CAAC,EAAE,CAAC;QACnC,QAAQ,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;YAC9B,KAAK,eAAe,CAAC,IAAI;gBACrB,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAC;YAC1C,KAAK,eAAe,CAAC,OAAO;gBACxB,OAAO,yBAAyB,CAAC,MAAM,CAAC,CAAC;YAC7C;gBACI,MAAM;QACd,CAAC;IACL,CAAC;IACD,OAAO;QACH;YACI,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,KAAK,EAAE,MAAM,CAAC,KAAK;SACtB;KACJ,CAAC;AACN,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 { Entrypoint, IExplorerData, ExplorerFilter } from '../_types';
2
+ import { ExplorerLibraryDataQuery, ExplorerLinkDataQuery, 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: ExplorerFilter[];
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
  };