@leav/ui 0.3.6-3450376 → 0.3.6-359f4ef

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 (593) 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 +639 -112
  18. package/dist/_gqlTypes/index.js +398 -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 +6 -3
  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/standardFieldReducerContext.js → _utils/interleaveElement.js} +2 -6
  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 -3
  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/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
  55. package/dist/components/EditApplication/_types.d.ts +2 -2
  56. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +0 -1
  57. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
  58. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +2 -5
  59. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
  60. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.d.ts +1 -1
  61. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
  62. package/dist/components/Explorer/DataView.d.ts +16 -2
  63. package/dist/components/Explorer/DataView.js +103 -24
  64. package/dist/components/Explorer/DataView.js.map +1 -1
  65. package/dist/components/Explorer/Explorer.d.ts +12 -6
  66. package/dist/components/Explorer/Explorer.js +109 -36
  67. package/dist/components/Explorer/Explorer.js.map +1 -1
  68. package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
  69. package/dist/components/Explorer/ExplorerTitle.js +28 -11
  70. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  71. package/dist/components/Explorer/ExplorerToolbar.d.ts +5 -0
  72. package/dist/components/Explorer/ExplorerToolbar.js +49 -0
  73. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -0
  74. package/dist/components/Explorer/TableCell.d.ts +2 -1
  75. package/dist/components/Explorer/TableCell.js +131 -20
  76. package/dist/components/Explorer/TableCell.js.map +1 -1
  77. package/dist/components/Explorer/TableTagGroup.d.ts +7 -0
  78. package/dist/components/Explorer/TableTagGroup.js +30 -0
  79. package/dist/components/Explorer/TableTagGroup.js.map +1 -0
  80. package/dist/components/Explorer/_constants.d.ts +5 -0
  81. package/dist/components/Explorer/_constants.js +18 -0
  82. package/dist/components/Explorer/_constants.js.map +1 -0
  83. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +4 -0
  84. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +99 -0
  85. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -0
  86. package/dist/components/Explorer/_queries/useExplorerData.d.ts +29 -5
  87. package/dist/components/Explorer/_queries/useExplorerData.js +92 -18
  88. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  89. package/dist/components/Explorer/_types.d.ts +98 -4
  90. package/dist/components/Explorer/_types.js +7 -1
  91. package/dist/components/Explorer/_types.js.map +1 -1
  92. package/dist/components/Explorer/{useEditAction.d.ts → actions-item/useEditItemAction.d.ts} +4 -4
  93. package/dist/components/Explorer/{useEditAction.js → actions-item/useEditItemAction.js} +15 -13
  94. package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -0
  95. package/dist/components/Explorer/actions-item/useRemoveItemAction.d.ts +23 -0
  96. package/dist/components/Explorer/actions-item/useRemoveItemAction.js +109 -0
  97. package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +1 -0
  98. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +27 -0
  99. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +71 -0
  100. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -0
  101. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +28 -0
  102. package/dist/components/Explorer/actions-mass/useMassActions.js +111 -0
  103. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -0
  104. package/dist/components/Explorer/{useCreateAction.d.ts → actions-primary/useCreatePrimaryAction.d.ts} +9 -5
  105. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +75 -0
  106. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -0
  107. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +17 -0
  108. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +38 -0
  109. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -0
  110. package/dist/components/Explorer/actions-primary/usePrimaryActions.d.ts +17 -0
  111. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +27 -0
  112. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -0
  113. package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
  114. package/dist/components/Explorer/conditionsHelper.js +16 -0
  115. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  116. package/dist/components/Explorer/index.d.ts +1 -3
  117. package/dist/components/Explorer/index.js +1 -3
  118. package/dist/components/Explorer/index.js.map +1 -1
  119. package/dist/components/Explorer/link-item/LinkModal.d.ts +7 -0
  120. package/dist/components/Explorer/link-item/LinkModal.js +73 -0
  121. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -0
  122. package/dist/components/Explorer/link-item/useLinkMassAction.d.ts +24 -0
  123. package/dist/components/Explorer/link-item/useLinkMassAction.js +57 -0
  124. package/dist/components/Explorer/link-item/useLinkMassAction.js.map +1 -0
  125. package/dist/components/Explorer/list-saved-views/SavedViews.d.ts +2 -0
  126. package/dist/components/Explorer/list-saved-views/SavedViews.js +74 -0
  127. package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -0
  128. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.d.ts +1 -1
  129. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.js +12 -5
  130. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -0
  131. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +6 -0
  132. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +19 -0
  133. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  134. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +13 -0
  135. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +67 -0
  136. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  137. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.d.ts +17 -0
  138. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +93 -0
  139. package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -0
  140. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
  141. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +28 -0
  142. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -0
  143. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
  144. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +55 -0
  145. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -0
  146. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
  147. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +12 -0
  148. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -0
  149. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  150. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +88 -0
  151. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  152. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +9 -0
  153. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  154. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  155. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  156. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +22 -0
  157. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  158. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  159. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  160. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  161. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  162. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
  163. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  164. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  165. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  166. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  167. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  168. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  169. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  170. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  171. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  172. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  173. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  174. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +40 -0
  175. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  176. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.d.ts +8 -0
  177. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +41 -0
  178. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
  179. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  180. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  181. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  182. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.d.ts +3 -0
  183. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js +79 -0
  184. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
  185. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  186. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +19 -0
  187. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  188. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  189. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +28 -0
  190. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  191. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +13 -0
  192. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js +2 -0
  193. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +1 -0
  194. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +12 -0
  195. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +108 -0
  196. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  197. package/dist/components/Explorer/manage-view-settings/index.d.ts +8 -0
  198. package/dist/components/Explorer/manage-view-settings/index.js +11 -0
  199. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -0
  200. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.d.ts +3 -2
  201. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.js +2 -2
  202. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -0
  203. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContextProvider.d.ts +1 -0
  204. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContextProvider.js +2 -2
  205. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -0
  206. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.js +4 -4
  207. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -0
  208. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -0
  209. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +12 -0
  210. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +66 -0
  211. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  212. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -0
  213. package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingsPanel.d.ts +2 -1
  214. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +36 -0
  215. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -0
  216. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.d.ts +8 -0
  217. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js +44 -0
  218. package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js.map +1 -0
  219. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.d.ts +1 -0
  220. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js +22 -0
  221. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js.map +1 -0
  222. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.d.ts +3 -0
  223. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +24 -0
  224. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -0
  225. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.d.ts +3 -0
  226. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +52 -0
  227. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -0
  228. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.d.ts +3 -0
  229. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +20 -0
  230. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -0
  231. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.d.ts +3 -0
  232. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +64 -0
  233. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -0
  234. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.d.ts +3 -0
  235. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +49 -0
  236. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -0
  237. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  238. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +111 -0
  239. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  240. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  241. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  242. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  243. package/dist/components/Explorer/{edit-settings/ViewSetingsContext.d.ts → manage-view-settings/store-view-settings/ViewSettingsContext.d.ts} +1 -2
  244. package/dist/components/Explorer/{edit-settings/ViewSetingsContext.js → manage-view-settings/store-view-settings/ViewSettingsContext.js} +1 -5
  245. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -0
  246. package/dist/components/Explorer/{edit-settings → manage-view-settings/store-view-settings}/useViewSettingsContext.js +1 -1
  247. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -0
  248. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +4 -0
  249. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +35 -0
  250. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -0
  251. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +175 -0
  252. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +281 -0
  253. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -0
  254. package/dist/components/Explorer/useColumnWidth.d.ts +8 -0
  255. package/dist/components/Explorer/useColumnWidth.js +49 -0
  256. package/dist/components/Explorer/useColumnWidth.js.map +1 -0
  257. package/dist/components/Explorer/useLoadView.d.ts +3 -0
  258. package/dist/components/Explorer/useLoadView.js +81 -0
  259. package/dist/components/Explorer/useLoadView.js.map +1 -0
  260. package/dist/components/Explorer/usePagination.d.ts +7 -0
  261. package/dist/components/Explorer/usePagination.js +25 -0
  262. package/dist/components/Explorer/usePagination.js.map +1 -0
  263. package/dist/components/Explorer/useSearchInput.d.ts +16 -0
  264. package/dist/components/Explorer/useSearchInput.js +40 -0
  265. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  266. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  267. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  268. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  269. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  270. package/dist/components/Explorer/useViewSettingsReducer.js +131 -0
  271. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  272. package/dist/components/ExportModal/ExportModal.js +2 -2
  273. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  274. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  275. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  276. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +1 -2
  277. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
  278. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +1 -1
  279. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  280. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  281. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  282. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  283. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +7 -2
  284. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
  285. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  286. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  287. package/dist/components/LibraryItemsList/MenuView/MenuView.js +5 -10
  288. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  289. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  290. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  291. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  292. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  293. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  294. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  295. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  296. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  297. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  298. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  299. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  300. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  301. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  302. package/dist/components/RecordEdition/EditRecord/EditRecord.js +82 -76
  303. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  304. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +2 -1
  305. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +17 -4
  306. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  307. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +17 -22
  308. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  309. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -1
  310. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +44 -34
  311. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  312. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  313. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  314. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  315. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.d.ts +5 -0
  316. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js +28 -0
  317. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js.map +1 -0
  318. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  319. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -7
  320. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +1 -1
  321. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  322. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  323. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  324. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  325. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  326. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  327. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  328. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  329. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  330. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
  331. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  332. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  333. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +16 -0
  334. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  335. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  336. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  337. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  338. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +5 -2
  339. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +203 -186
  340. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  341. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  342. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +11 -30
  343. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  344. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  345. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +77 -45
  346. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  347. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  348. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +37 -46
  349. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  350. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  351. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +14 -74
  352. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  353. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  354. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +33 -49
  355. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  356. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  357. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +33 -60
  358. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  359. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  360. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +51 -64
  361. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  362. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  363. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +33 -56
  364. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  365. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +16 -9
  366. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +56 -402
  367. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  368. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.d.ts +4 -0
  369. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.js → DSListSelect.js} +48 -52
  370. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
  371. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -9
  372. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +15 -0
  373. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  374. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  375. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  376. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +56 -0
  377. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  378. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  379. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +32 -0
  380. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  381. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +4 -7
  382. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  383. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  384. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  385. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  386. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  387. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  388. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  389. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  390. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.d.ts +7 -0
  391. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js +9 -0
  392. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -0
  393. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.d.ts +2 -0
  394. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/AttributeDetails → AttributeSummary}/index.js +2 -2
  395. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -0
  396. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.d.ts +2 -0
  397. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +25 -0
  398. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -0
  399. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.d.ts +3 -0
  400. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +53 -0
  401. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -0
  402. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.d.ts +2 -0
  403. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails → Breacrumb}/index.js +2 -2
  404. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -0
  405. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  406. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +48 -6
  407. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  408. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  409. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  410. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  411. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  412. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  413. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  414. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  415. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  416. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  417. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +3 -282
  418. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +28 -61
  419. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  420. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.d.ts +8 -0
  421. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +73 -0
  422. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -0
  423. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.d.ts +2 -0
  424. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/TreeValuePath → ValuesSummary}/index.js +2 -2
  425. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -0
  426. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.d.ts +1 -1
  427. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.js +2 -2
  428. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -0
  429. package/dist/components/RecordEdition/EditRecordSkeleton/index.d.ts +2 -0
  430. package/dist/components/RecordEdition/{EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → EditRecordSkeleton}/index.js +2 -1
  431. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -0
  432. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +12 -10
  433. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +15 -13
  434. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  435. package/dist/components/RecordEdition/index.d.ts +1 -0
  436. package/dist/components/RecordEdition/index.js +1 -0
  437. package/dist/components/RecordEdition/index.js.map +1 -1
  438. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  439. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  440. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  441. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  442. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +129 -0
  443. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  444. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  445. package/dist/components/SelectTreeNode/index.js +1 -1
  446. package/dist/components/SelectTreeNode/index.js.map +1 -1
  447. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  448. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  449. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  450. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  451. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  452. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  453. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  454. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  455. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  456. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  457. package/dist/constants.d.ts +3 -0
  458. package/dist/constants.js +3 -0
  459. package/dist/constants.js.map +1 -1
  460. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  461. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo → hooks/useDebouncedValue}/index.js +1 -2
  462. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  463. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  464. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata → hooks/useExecuteSaveViewMutation}/index.js +1 -2
  465. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  466. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  467. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +8 -7
  468. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  469. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  470. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  471. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.d.ts +1 -1
  472. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +2 -2
  473. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  474. package/dist/locales/en/shared.json +107 -18
  475. package/dist/locales/fr/shared.json +109 -20
  476. package/dist/types/views.d.ts +4 -4
  477. package/package.json +7 -4
  478. package/dist/components/Explorer/edit-settings/ColumnItem.js.map +0 -1
  479. package/dist/components/Explorer/edit-settings/DisplayMode.d.ts +0 -6
  480. package/dist/components/Explorer/edit-settings/DisplayMode.js +0 -34
  481. package/dist/components/Explorer/edit-settings/DisplayMode.js.map +0 -1
  482. package/dist/components/Explorer/edit-settings/DisplayModeTable.d.ts +0 -6
  483. package/dist/components/Explorer/edit-settings/DisplayModeTable.js +0 -89
  484. package/dist/components/Explorer/edit-settings/DisplayModeTable.js.map +0 -1
  485. package/dist/components/Explorer/edit-settings/EditSettingsContext.js.map +0 -1
  486. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js.map +0 -1
  487. package/dist/components/Explorer/edit-settings/SettingItem.js.map +0 -1
  488. package/dist/components/Explorer/edit-settings/SettingsPanel.js +0 -53
  489. package/dist/components/Explorer/edit-settings/SettingsPanel.js.map +0 -1
  490. package/dist/components/Explorer/edit-settings/SidePanel.js.map +0 -1
  491. package/dist/components/Explorer/edit-settings/ViewSetingsContext.js.map +0 -1
  492. package/dist/components/Explorer/edit-settings/useEditSettings.js.map +0 -1
  493. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.d.ts +0 -10
  494. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js +0 -24
  495. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js.map +0 -1
  496. package/dist/components/Explorer/edit-settings/useOpenSettings.d.ts +0 -1
  497. package/dist/components/Explorer/edit-settings/useOpenSettings.js +0 -19
  498. package/dist/components/Explorer/edit-settings/useOpenSettings.js.map +0 -1
  499. package/dist/components/Explorer/edit-settings/useViewSettingsContext.js.map +0 -1
  500. package/dist/components/Explorer/edit-settings/viewSettingsReducer.d.ts +0 -43
  501. package/dist/components/Explorer/edit-settings/viewSettingsReducer.js +0 -58
  502. package/dist/components/Explorer/edit-settings/viewSettingsReducer.js.map +0 -1
  503. package/dist/components/Explorer/useCreateAction.js +0 -40
  504. package/dist/components/Explorer/useCreateAction.js.map +0 -1
  505. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  506. package/dist/components/Explorer/useDeactivateAction.js +0 -51
  507. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
  508. package/dist/components/Explorer/useEditAction.js.map +0 -1
  509. package/dist/components/Explorer/usePrimaryActions.d.ts +0 -20
  510. package/dist/components/Explorer/usePrimaryActions.js +0 -29
  511. package/dist/components/Explorer/usePrimaryActions.js.map +0 -1
  512. package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.js.map +0 -1
  513. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  514. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js +0 -6
  515. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  516. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  517. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  518. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  519. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  520. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  521. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  522. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js +0 -7
  523. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  524. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
  525. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
  526. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
  527. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  528. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  529. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  530. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  531. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  532. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  533. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  534. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  535. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  536. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  537. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  538. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  539. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  540. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  541. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  542. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  543. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  544. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  545. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  546. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  547. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  548. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  549. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -90
  550. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  551. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  552. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  553. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  554. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  555. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  556. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  557. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  558. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  559. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +0 -3
  560. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
  561. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.d.ts +0 -6
  562. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js +0 -56
  563. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js.map +0 -1
  564. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.d.ts +0 -2
  565. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.js.map +0 -1
  566. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.d.ts +0 -8
  567. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js +0 -41
  568. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js.map +0 -1
  569. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.d.ts +0 -2
  570. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.js.map +0 -1
  571. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.d.ts +0 -10
  572. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +0 -63
  573. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +0 -1
  574. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.d.ts +0 -2
  575. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js +0 -76
  576. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js.map +0 -1
  577. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.d.ts +0 -2
  578. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.js.map +0 -1
  579. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.d.ts +0 -11
  580. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js +0 -43
  581. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js.map +0 -1
  582. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.d.ts +0 -2
  583. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.js.map +0 -1
  584. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.d.ts +0 -2
  585. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.js.map +0 -1
  586. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  587. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
  588. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.d.ts +0 -0
  589. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.d.ts +0 -0
  590. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.js +0 -0
  591. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.d.ts +0 -0
  592. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.js +0 -0
  593. /package/dist/components/Explorer/{edit-settings → manage-view-settings/store-view-settings}/useViewSettingsContext.d.ts +0 -0
@@ -1,53 +1,126 @@
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 { useReducer } from 'react';
6
- import { KitSpace, KitTypography } from 'aristid-ds';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { createPortal } from 'react-dom';
3
+ import { KitEmpty, KitSpace, KitTypography } from 'aristid-ds';
7
4
  import styled from 'styled-components';
8
- import { DataView } from './DataView';
9
- import { useOpenSettings } from './edit-settings/useOpenSettings';
5
+ import { Loading } from '../../components/Loading';
6
+ import { useSharedTranslation } from '../../hooks/useSharedTranslation';
10
7
  import { useExplorerData } from './_queries/useExplorerData';
11
- import { useDeactivateAction } from './useDeactivateAction';
12
- import { useEditAction } from './useEditAction';
13
- import { usePrimaryActionsButton as usePrimaryActionsButton } from './usePrimaryActions';
8
+ import { DataView } from './DataView';
14
9
  import { ExplorerTitle } from './ExplorerTitle';
15
- import { useCreateAction } from './useCreateAction';
16
- import { createPortal } from 'react-dom';
17
- import { SidePanel } from './edit-settings/SidePanel';
18
- import { useEditSettings } from './edit-settings/useEditSettings';
19
- import { ViewSettingsContext, viewSettingsInitialState } from './edit-settings/ViewSetingsContext';
20
- import ViewSettingsReducer from './edit-settings/viewSettingsReducer';
10
+ import { ExplorerToolbar } from './ExplorerToolbar';
11
+ import { useRemoveItemAction } from './actions-item/useRemoveItemAction';
12
+ import { useEditItemAction } from './actions-item/useEditItemAction';
13
+ import { usePrimaryActionsButton } from './actions-primary/usePrimaryActions';
14
+ import { useCreatePrimaryAction } from './actions-primary/useCreatePrimaryAction';
15
+ import { useLinkPrimaryAction } from './actions-primary/useLinkPrimaryAction';
16
+ import { useMassActions } from './actions-mass/useMassActions';
17
+ import { useDeactivateMassAction } from './actions-mass/useDeactivateMassAction';
18
+ import { defaultPageSizeOptions, SidePanel, useEditSettings, useOpenViewSettings, ViewSettingsContext } from './manage-view-settings';
19
+ import { useSearchInput } from './useSearchInput';
20
+ import { usePagination } from './usePagination';
21
+ import { useViewSettingsReducer } from './useViewSettingsReducer';
22
+ import { MASS_SELECTION_ALL } from './_constants';
21
23
  const isNotEmpty = (union) => union.length > 0;
24
+ const emptyArray = [];
25
+ const emptyObject = {};
22
26
  const ExplorerHeaderDivStyled = styled.div `
27
+ display: flex;
28
+ align-items: flex-start;
29
+ padding: calc(var(--general-spacing-xs) * 1px);
30
+ `;
31
+ const ExplorerActionsDivStyled = styled.div `
23
32
  display: flex;
24
33
  justify-content: space-between;
34
+ padding: calc(var(--general-spacing-xs) * 1px);
35
+ `;
36
+ const ExplorerPageDivStyled = styled.div `
37
+ display: flex;
38
+ flex-direction: column;
39
+ height: 100%;
40
+ overflow: hidden;
41
+ `;
42
+ const ExplorerEmptyDataStyled = styled.div `
43
+ flex: 1;
44
+ display: flex;
45
+ flex-direction: column;
25
46
  align-items: center;
26
- padding-bottom: calc(var(--general-spacing-xs) * 1px);
47
+ justify-content: center;
27
48
  `;
28
- export const Explorer = ({ library, itemActions, primaryActions, title, defaultActionsForItem = ['edit', 'deactivate'], defaultPrimaryActions = ['create'], defaultViewSettings }) => {
29
- const { panelElement } = useEditSettings();
30
- const [view, dispatch] = useReducer(ViewSettingsReducer, { ...viewSettingsInitialState, ...defaultViewSettings });
31
- const { data, loading, refetch } = useExplorerData(library, view.fields); // TODO: refresh when go back on page
32
- const { deactivateAction } = useDeactivateAction({
33
- isEnabled: isNotEmpty(defaultActionsForItem) && defaultActionsForItem.includes('deactivate')
49
+ export const Explorer = ({ entrypoint, itemActions = [], primaryActions = [], massActions = [], title, emptyPlaceholder, noPagination, showFiltersAndSorts = false, enableConfigureView = false, iconsOnlyItemActions = false, defaultActionsForItem = ['edit', 'remove'], defaultPrimaryActions = ['create'], defaultMassActions = ['deactivate'], defaultViewSettings }) => {
50
+ const { t } = useSharedTranslation();
51
+ const { panelElement: settingsPanelElement } = useEditSettings();
52
+ const { loading: viewSettingsLoading, view, dispatch } = useViewSettingsReducer(entrypoint, defaultViewSettings);
53
+ const { currentPage, setNewPageSize, setNewPage } = usePagination(dispatch);
54
+ const { data, loading: loadingData, refetch } = useExplorerData({
55
+ entrypoint,
56
+ libraryId: view.libraryId,
57
+ attributeIds: view.attributesIds,
58
+ fulltextSearch: view.fulltextSearch,
59
+ pagination: noPagination ? null : { limit: view.pageSize, offset: view.pageSize * (currentPage - 1) },
60
+ sorts: view.sort,
61
+ filters: view.filters,
62
+ skip: viewSettingsLoading
63
+ }); // TODO: refresh when go back on page
64
+ const isMassSelectionAll = view.massSelection === MASS_SELECTION_ALL;
65
+ const { removeItemAction } = useRemoveItemAction({
66
+ isEnabled: isNotEmpty(defaultActionsForItem) && defaultActionsForItem.includes('remove'),
67
+ store: { view, dispatch },
68
+ entrypoint
34
69
  });
35
- const { editAction, editModal } = useEditAction({
70
+ const { editItemAction, editItemModal } = useEditItemAction({
36
71
  isEnabled: isNotEmpty(defaultActionsForItem) && defaultActionsForItem.includes('edit')
37
72
  });
38
- const { createAction, createModal } = useCreateAction({
73
+ const totalCount = data?.totalCount ?? 0;
74
+ const { createPrimaryAction, createModal } = useCreatePrimaryAction({
39
75
  isEnabled: isNotEmpty(defaultPrimaryActions) && defaultPrimaryActions.includes('create'),
40
- library,
76
+ libraryId: view.libraryId,
77
+ entrypoint,
78
+ totalCount,
41
79
  refetch
42
80
  });
43
- // TODO: move to `useCreateAction` directly?
44
- const enabledDefaultActions = createAction ? [createAction] : [];
45
- const { primaryButton } = usePrimaryActionsButton([...enabledDefaultActions, ...(primaryActions ?? [])]);
46
- // TODO: harmonize to other hook signature that return only object
47
- const settingsButton = useOpenSettings(library);
48
- // TODO: remove SET
49
- const dedupItemActions = [...new Set([editAction, deactivateAction, ...(itemActions ?? [])].filter(Boolean))];
50
- return (_jsxs(ViewSettingsContext.Provider, { value: { view, dispatch }, children: [loading ? ('Loading...' // TODO: handle loading properly
51
- ) : (_jsxs(_Fragment, { children: [_jsxs(ExplorerHeaderDivStyled, { children: [_jsx(KitTypography.Title, { level: "h1", children: _jsx(ExplorerTitle, { library: library, title: title }) }), _jsxs(KitSpace, { size: "xs", children: [settingsButton, primaryButton] })] }), _jsx(DataView, { dataGroupedFilteredSorted: data?.records ?? [], itemActions: dedupItemActions, columnsLabels: data?.attributes ?? {}, attributesToDisplay: ['whoAmI', ...view.fields] })] })), panelElement && createPortal(_jsx(SidePanel, {}), panelElement), editModal, createModal] }));
81
+ const { linkPrimaryAction, linkModal } = useLinkPrimaryAction({
82
+ isEnabled: entrypoint.type === 'link',
83
+ maxItemsLeft: null // TODO: use KitTable.row
84
+ });
85
+ const allVisibleKeys = data?.records.map(({ key }) => key) ?? [];
86
+ const { deactivateMassAction } = useDeactivateMassAction({
87
+ isEnabled: isNotEmpty(defaultMassActions) && defaultMassActions.includes('deactivate'),
88
+ store: { view, dispatch },
89
+ allVisibleKeys,
90
+ refetch
91
+ });
92
+ const { setSelectedKeys, selectAllButton } = useMassActions({
93
+ isEnabled: totalCount > 0 && (isNotEmpty(defaultMassActions) || isNotEmpty(massActions)),
94
+ store: { view, dispatch },
95
+ totalCount,
96
+ allVisibleKeys,
97
+ massActions: [deactivateMassAction, ...massActions].filter(Boolean)
98
+ });
99
+ const { primaryButton } = usePrimaryActionsButton({
100
+ view,
101
+ actions: [createPrimaryAction, linkPrimaryAction, ...primaryActions].filter(Boolean)
102
+ });
103
+ const { viewSettingsButton, viewListButton } = useOpenViewSettings({ view, isEnabled: !isMassSelectionAll });
104
+ const { searchInput } = useSearchInput({ view, dispatch });
105
+ const hasNoResults = data === null || data.totalCount === 0;
106
+ return (_jsxs(ViewSettingsContext.Provider, { value: { view, dispatch }, children: [_jsxs(ExplorerPageDivStyled, { children: [_jsx(ExplorerHeaderDivStyled, { children: _jsx(KitTypography.Title, { level: "h3", children: !viewSettingsLoading && (_jsx(ExplorerTitle, { library: view.libraryId, title: title, entrypoint: entrypoint })) /*TODO: manage loading*/ }) }), _jsxs(ExplorerActionsDivStyled, { children: [searchInput, _jsxs(KitSpace, { size: "xs", children: [enableConfigureView && viewListButton, enableConfigureView && viewSettingsButton, primaryButton] })] }), !viewSettingsLoading && (_jsx(ExplorerToolbar, { showFiltersAndSort: showFiltersAndSorts, isMassSelectionAll: isMassSelectionAll, children: selectAllButton })), loadingData || viewSettingsLoading ? (_jsx(Loading, {})) : hasNoResults ? (_jsx(ExplorerEmptyDataStyled, { children: emptyPlaceholder || _jsx(KitEmpty, { title: t('explorer.empty-data') }) })) : (_jsx(DataView, { dataGroupedFilteredSorted: data?.records ?? emptyArray, attributesProperties: data?.attributes ?? emptyObject, attributesToDisplay: ['whoAmI', ...view.attributesIds], iconsOnlyItemActions: iconsOnlyItemActions, paginationProps: entrypoint.type === 'library'
107
+ ? {
108
+ pageSizeOptions: defaultPageSizeOptions,
109
+ currentPage,
110
+ pageSize: view.pageSize,
111
+ setNewPageSize,
112
+ setNewPage,
113
+ totalCount
114
+ }
115
+ : undefined, itemActions: [editItemAction, removeItemAction, ...itemActions].filter(Boolean).map(action => ({
116
+ ...action,
117
+ disabled: isMassSelectionAll
118
+ })), selection: {
119
+ onSelectionChange: setSelectedKeys,
120
+ isMassSelectionAll,
121
+ selectedKeys: isMassSelectionAll
122
+ ? data?.records.map(({ whoAmI }) => whoAmI.id)
123
+ : view.massSelection
124
+ } }))] }), settingsPanelElement && createPortal(_jsx(SidePanel, {}), settingsPanelElement?.() ?? document.body), editItemModal, createModal, linkModal] }));
52
125
  };
53
126
  //# sourceMappingURL=Explorer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Explorer.js","sourceRoot":"","sources":["../../../src/components/Explorer/Explorer.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,UAAU,EAAC,MAAM,OAAO,CAAC;AACpD,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,E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C,GAAG,CAAC,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;gCAC5C,CAAC,CAAE,IAAI,CAAC,aAA0B;yBACzC,GACH,CACL,IACmB,EACvB,oBAAoB,IAAI,YAAY,CAAC,KAAC,SAAS,KAAG,EAAE,oBAAoB,EAAE,EAAE,IAAI,QAAQ,CAAC,IAAI,CAAC,EAC9F,aAAa,EACb,WAAW,EACX,SAAS,IACiB,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;AAQvC,uBAAuB;AACvB,MAAM,CAAC,MAAM,aAAa,GAA2C,CAAC,EAAC,KAAK,EAAE,OAAO,EAAC,EAAE,EAAE;IACtF,MAAM,EAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAC,GAA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AU,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,5 @@
1
+ import { FunctionComponent } from 'react';
2
+ export declare const ExplorerToolbar: FunctionComponent<{
3
+ isMassSelectionAll: boolean;
4
+ showFiltersAndSort: boolean;
5
+ }>;
@@ -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, showFiltersAndSort, children }) => {
32
+ const { t } = useSharedTranslation();
33
+ const { view } = useViewSettingsContext();
34
+ const { filters, sort } = view;
35
+ const { openSettingsPanel } = useOpenViewSettings({ view, isEnabled: true });
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 }), showFiltersAndSort && filters.length !== 0 && _jsx(DividerStyled, { type: "vertical" })] })), showFiltersAndSort && (_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;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,C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+1,8 @@
1
- import { PropertyValueFragment } from '../../_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 { AggregationColor } from 'antd/es/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 AggregationColor(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 AggregationColor(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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,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,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";