@leav/ui 0.3.6-df40eff → 0.3.6-e0c1773

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 (529) hide show
  1. package/dist/__mocks__/common/attribute.d.ts +1 -0
  2. package/dist/__mocks__/common/attribute.js +9 -1
  3. package/dist/__mocks__/common/attribute.js.map +1 -1
  4. package/dist/__mocks__/common/form.d.ts +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 +552 -104
  18. package/dist/_gqlTypes/index.js +325 -52
  19. package/dist/_gqlTypes/index.js.map +1 -1
  20. package/dist/_queries/attributes/getAttributesByLib.js +7 -5
  21. package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
  22. package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +3 -4
  23. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js +2 -3
  24. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  25. package/dist/_queries/records/getRecordColumnsValues.d.ts +5 -3
  26. package/dist/_queries/records/getRecordColumnsValues.js +4 -1
  27. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  28. package/dist/_queries/records/getRecordsFromLibraryQuery.js +1 -0
  29. package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
  30. package/dist/_queries/records/recordFormAttributeFragment.js +2 -0
  31. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  32. package/dist/_queries/views/saveViewMutation.js +1 -1
  33. package/dist/_queries/views/viewDetailsFragment.js +14 -11
  34. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  35. package/dist/_utils/attributeType.d.ts +3 -0
  36. package/dist/_utils/attributeType.js +7 -0
  37. package/dist/_utils/attributeType.js.map +1 -0
  38. package/dist/_utils/index.js +5 -2
  39. package/dist/_utils/index.js.map +1 -1
  40. package/dist/_utils/interleaveElement.d.ts +1 -0
  41. package/dist/{components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js → _utils/interleaveElement.js} +2 -6
  42. package/dist/_utils/interleaveElement.js.map +1 -0
  43. package/dist/antdTheme/index.d.ts +0 -3
  44. package/dist/antdTheme/index.js +3 -42
  45. package/dist/antdTheme/index.js.map +1 -1
  46. package/dist/components/CreateDirectory/CreateDirectory.js +1 -1
  47. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  48. package/dist/components/EditApplication/EditApplication.js +2 -2
  49. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  50. package/dist/components/EditApplication/_types.d.ts +2 -2
  51. package/dist/components/Explorer/DataView.d.ts +14 -1
  52. package/dist/components/Explorer/DataView.js +96 -29
  53. package/dist/components/Explorer/DataView.js.map +1 -1
  54. package/dist/components/Explorer/Explorer.d.ts +9 -4
  55. package/dist/components/Explorer/Explorer.js +93 -31
  56. package/dist/components/Explorer/Explorer.js.map +1 -1
  57. package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
  58. package/dist/components/Explorer/ExplorerTitle.js +28 -11
  59. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  60. package/dist/components/Explorer/ExplorerToolbar.d.ts +5 -0
  61. package/dist/components/Explorer/ExplorerToolbar.js +45 -0
  62. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -0
  63. package/dist/components/Explorer/IdCard.d.ts +7 -0
  64. package/dist/components/Explorer/IdCard.js +15 -0
  65. package/dist/components/Explorer/IdCard.js.map +1 -0
  66. package/dist/components/Explorer/TableCell.d.ts +2 -1
  67. package/dist/components/Explorer/TableCell.js +132 -20
  68. package/dist/components/Explorer/TableCell.js.map +1 -1
  69. package/dist/components/Explorer/TableTagGroup.d.ts +7 -0
  70. package/dist/components/Explorer/TableTagGroup.js +30 -0
  71. package/dist/components/Explorer/TableTagGroup.js.map +1 -0
  72. package/dist/components/Explorer/_constants.d.ts +5 -0
  73. package/dist/components/Explorer/_constants.js +18 -0
  74. package/dist/components/Explorer/_constants.js.map +1 -0
  75. package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +4 -0
  76. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +99 -0
  77. package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -0
  78. package/dist/components/Explorer/_queries/useExplorerData.d.ts +29 -5
  79. package/dist/components/Explorer/_queries/useExplorerData.js +92 -15
  80. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  81. package/dist/components/Explorer/_types.d.ts +82 -4
  82. package/dist/components/Explorer/_types.js +7 -1
  83. package/dist/components/Explorer/_types.js.map +1 -1
  84. package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
  85. package/dist/components/Explorer/conditionsHelper.js +16 -0
  86. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  87. package/dist/components/Explorer/index.d.ts +1 -3
  88. package/dist/components/Explorer/index.js +1 -3
  89. package/dist/components/Explorer/index.js.map +1 -1
  90. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.d.ts +1 -1
  91. package/dist/components/Explorer/{edit-settings → manage-view-settings/_shared}/ColumnItem.js +12 -5
  92. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -0
  93. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +6 -0
  94. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +12 -0
  95. package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
  96. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +13 -0
  97. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +67 -0
  98. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -0
  99. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.d.ts +6 -0
  100. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +28 -0
  101. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -0
  102. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +6 -0
  103. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +56 -0
  104. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -0
  105. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.d.ts +8 -0
  106. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +12 -0
  107. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -0
  108. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.d.ts +4 -0
  109. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +88 -0
  110. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -0
  111. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +9 -0
  112. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +33 -0
  113. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -0
  114. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +3 -0
  115. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +22 -0
  116. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
  117. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  118. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  119. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  120. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
  121. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
  122. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
  123. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  124. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  125. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  126. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  127. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  128. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  129. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  130. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  131. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  132. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +3 -0
  133. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +35 -0
  134. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
  135. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.d.ts +7 -0
  136. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +40 -0
  137. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
  138. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
  139. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
  140. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
  141. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.d.ts +3 -0
  142. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js +79 -0
  143. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
  144. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
  145. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +19 -0
  146. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
  147. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
  148. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +28 -0
  149. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
  150. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +10 -0
  151. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js +2 -0
  152. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +1 -0
  153. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +12 -0
  154. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +108 -0
  155. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
  156. package/dist/components/Explorer/manage-view-settings/index.d.ts +8 -0
  157. package/dist/components/Explorer/manage-view-settings/index.js +11 -0
  158. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -0
  159. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.d.ts +1 -0
  160. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -0
  161. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -0
  162. package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.js +2 -2
  163. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -0
  164. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -0
  165. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +5 -0
  166. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +39 -0
  167. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -0
  168. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -0
  169. package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingsPanel.d.ts +2 -1
  170. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +77 -0
  171. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -0
  172. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.d.ts +4 -0
  173. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +113 -0
  174. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -0
  175. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.d.ts +10 -0
  176. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js +32 -0
  177. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -0
  178. package/dist/components/Explorer/{edit-settings/ViewSetingsContext.d.ts → manage-view-settings/store-view-settings/ViewSettingsContext.d.ts} +1 -2
  179. package/dist/components/Explorer/{edit-settings/ViewSetingsContext.js → manage-view-settings/store-view-settings/ViewSettingsContext.js} +1 -5
  180. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -0
  181. package/dist/components/Explorer/{edit-settings → manage-view-settings/store-view-settings}/useViewSettingsContext.js +1 -1
  182. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -0
  183. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +4 -0
  184. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +25 -0
  185. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -0
  186. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +159 -0
  187. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +232 -0
  188. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -0
  189. package/dist/components/Explorer/useColumnWidth.d.ts +6 -0
  190. package/dist/components/Explorer/useColumnWidth.js +48 -0
  191. package/dist/components/Explorer/useColumnWidth.js.map +1 -0
  192. package/dist/components/Explorer/useCreateAction.d.ts +4 -2
  193. package/dist/components/Explorer/useCreateAction.js +35 -2
  194. package/dist/components/Explorer/useCreateAction.js.map +1 -1
  195. package/dist/components/Explorer/useDeactivateMassAction.d.ts +27 -0
  196. package/dist/components/Explorer/useDeactivateMassAction.js +71 -0
  197. package/dist/components/Explorer/useDeactivateMassAction.js.map +1 -0
  198. package/dist/components/Explorer/useEditAction.js +8 -6
  199. package/dist/components/Explorer/useEditAction.js.map +1 -1
  200. package/dist/components/Explorer/useMassActions.d.ts +28 -0
  201. package/dist/components/Explorer/useMassActions.js +111 -0
  202. package/dist/components/Explorer/useMassActions.js.map +1 -0
  203. package/dist/components/Explorer/usePagination.d.ts +7 -0
  204. package/dist/components/Explorer/usePagination.js +25 -0
  205. package/dist/components/Explorer/usePagination.js.map +1 -0
  206. package/dist/components/Explorer/usePrimaryActions.d.ts +1 -9
  207. package/dist/components/Explorer/usePrimaryActions.js +16 -17
  208. package/dist/components/Explorer/usePrimaryActions.js.map +1 -1
  209. package/dist/components/Explorer/useRemoveAction.d.ts +23 -0
  210. package/dist/components/Explorer/useRemoveAction.js +109 -0
  211. package/dist/components/Explorer/useRemoveAction.js.map +1 -0
  212. package/dist/components/Explorer/useSearchInput.d.ts +16 -0
  213. package/dist/components/Explorer/useSearchInput.js +39 -0
  214. package/dist/components/Explorer/useSearchInput.js.map +1 -0
  215. package/dist/components/Explorer/useTableScrollableHeight.d.ts +5 -0
  216. package/dist/components/Explorer/useTableScrollableHeight.js +15 -0
  217. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -0
  218. package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
  219. package/dist/components/Explorer/useViewSettingsReducer.js +208 -0
  220. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
  221. package/dist/components/ExportModal/ExportModal.js +2 -2
  222. package/dist/components/ExportModal/ExportModal.js.map +1 -1
  223. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +5 -5
  224. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  225. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
  226. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
  227. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
  228. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  229. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +7 -2
  230. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
  231. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  232. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  233. package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
  234. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  235. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
  236. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  237. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  238. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  239. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
  240. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
  241. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
  242. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  243. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  244. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  245. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
  246. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  247. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  248. package/dist/components/RecordEdition/EditRecord/EditRecord.js +77 -75
  249. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  250. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +17 -4
  251. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  252. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +10 -21
  253. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  254. package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -1
  255. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +44 -34
  256. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  257. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  258. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  259. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  260. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  261. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -7
  262. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +1 -1
  263. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +3 -1
  264. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
  265. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  266. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  267. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  268. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
  269. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
  270. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
  271. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
  272. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
  273. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
  274. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
  275. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +16 -0
  276. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
  277. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +4 -0
  278. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js +25 -0
  279. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +1 -0
  280. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +5 -2
  281. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +201 -186
  282. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  283. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +2 -8
  284. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +11 -30
  285. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  286. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +2 -13
  287. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +79 -45
  288. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  289. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +3 -14
  290. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +37 -46
  291. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  292. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +3 -14
  293. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +14 -74
  294. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  295. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +3 -14
  296. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +33 -49
  297. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  298. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +3 -14
  299. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +33 -60
  300. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  301. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +3 -14
  302. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +52 -64
  303. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  304. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +3 -14
  305. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +33 -56
  306. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  307. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +16 -9
  308. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +56 -402
  309. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  310. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.d.ts +4 -0
  311. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.js → DSListSelect.js} +48 -52
  312. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
  313. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.d.ts +2 -9
  314. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +15 -0
  315. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js +2 -0
  316. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -0
  317. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.d.ts +42 -0
  318. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +56 -0
  319. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -0
  320. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.d.ts +12 -0
  321. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +32 -0
  322. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -0
  323. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +4 -7
  324. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  325. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
  326. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
  327. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  328. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  329. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
  330. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
  331. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  332. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.d.ts +7 -0
  333. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js +9 -0
  334. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -0
  335. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.d.ts +2 -0
  336. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/AttributeDetails → AttributeSummary}/index.js +2 -2
  337. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -0
  338. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.d.ts +2 -0
  339. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +25 -0
  340. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -0
  341. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.d.ts +3 -0
  342. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +53 -0
  343. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -0
  344. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.d.ts +2 -0
  345. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails → Breacrumb}/index.js +2 -2
  346. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -0
  347. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
  348. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +41 -6
  349. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  350. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  351. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  352. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  353. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  354. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  355. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  356. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  357. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  358. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  359. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
  360. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
  361. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  362. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.d.ts +8 -0
  363. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +66 -0
  364. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -0
  365. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.d.ts +2 -0
  366. package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/TreeValuePath → ValuesSummary}/index.js +2 -2
  367. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -0
  368. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.d.ts +1 -1
  369. package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.js +2 -2
  370. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -0
  371. package/dist/components/RecordEdition/EditRecordSkeleton/index.d.ts +2 -0
  372. package/dist/components/RecordEdition/{EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler → EditRecordSkeleton}/index.js +2 -1
  373. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -0
  374. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +12 -10
  375. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +15 -13
  376. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  377. package/dist/components/RecordEdition/index.d.ts +1 -0
  378. package/dist/components/RecordEdition/index.js +1 -0
  379. package/dist/components/RecordEdition/index.js.map +1 -1
  380. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
  381. package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
  382. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  383. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
  384. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +129 -0
  385. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
  386. package/dist/components/SelectTreeNode/index.d.ts +1 -1
  387. package/dist/components/SelectTreeNode/index.js +1 -1
  388. package/dist/components/SelectTreeNode/index.js.map +1 -1
  389. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
  390. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
  391. package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
  392. package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
  393. package/dist/components/SelectTreeNodeModal/index.js +1 -2
  394. package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
  395. package/dist/components/UploadFiles/UploadFiles.js +1 -1
  396. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  397. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
  398. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  399. package/dist/constants.d.ts +3 -0
  400. package/dist/constants.js +3 -0
  401. package/dist/constants.js.map +1 -1
  402. package/dist/hooks/useDebouncedValue/index.d.ts +1 -0
  403. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo → hooks/useDebouncedValue}/index.js +1 -2
  404. package/dist/hooks/useDebouncedValue/index.js.map +1 -0
  405. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  406. package/dist/{components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata → hooks/useExecuteSaveViewMutation}/index.js +1 -2
  407. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  408. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  409. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
  410. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  411. package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -0
  412. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  413. package/dist/locales/en/shared.json +93 -17
  414. package/dist/locales/fr/shared.json +95 -19
  415. package/dist/types/views.d.ts +4 -4
  416. package/package.json +5 -2
  417. package/dist/components/Explorer/edit-settings/ColumnItem.js.map +0 -1
  418. package/dist/components/Explorer/edit-settings/DisplayMode.d.ts +0 -6
  419. package/dist/components/Explorer/edit-settings/DisplayMode.js +0 -34
  420. package/dist/components/Explorer/edit-settings/DisplayMode.js.map +0 -1
  421. package/dist/components/Explorer/edit-settings/DisplayModeTable.d.ts +0 -6
  422. package/dist/components/Explorer/edit-settings/DisplayModeTable.js +0 -89
  423. package/dist/components/Explorer/edit-settings/DisplayModeTable.js.map +0 -1
  424. package/dist/components/Explorer/edit-settings/EditSettingsContext.js.map +0 -1
  425. package/dist/components/Explorer/edit-settings/EditSettingsContextProvider.js.map +0 -1
  426. package/dist/components/Explorer/edit-settings/SettingItem.js.map +0 -1
  427. package/dist/components/Explorer/edit-settings/SettingsPanel.js +0 -53
  428. package/dist/components/Explorer/edit-settings/SettingsPanel.js.map +0 -1
  429. package/dist/components/Explorer/edit-settings/SidePanel.js.map +0 -1
  430. package/dist/components/Explorer/edit-settings/ViewSetingsContext.js.map +0 -1
  431. package/dist/components/Explorer/edit-settings/useEditSettings.js.map +0 -1
  432. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.d.ts +0 -10
  433. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js +0 -24
  434. package/dist/components/Explorer/edit-settings/useGetLibraryColumns.js.map +0 -1
  435. package/dist/components/Explorer/edit-settings/useOpenSettings.d.ts +0 -1
  436. package/dist/components/Explorer/edit-settings/useOpenSettings.js +0 -19
  437. package/dist/components/Explorer/edit-settings/useOpenSettings.js.map +0 -1
  438. package/dist/components/Explorer/edit-settings/useViewSettingsContext.js.map +0 -1
  439. package/dist/components/Explorer/edit-settings/viewSettingsReducer.d.ts +0 -43
  440. package/dist/components/Explorer/edit-settings/viewSettingsReducer.js +0 -58
  441. package/dist/components/Explorer/edit-settings/viewSettingsReducer.js.map +0 -1
  442. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  443. package/dist/components/Explorer/useDeactivateAction.js +0 -51
  444. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
  445. package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.js.map +0 -1
  446. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.d.ts +0 -2
  447. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js +0 -6
  448. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/index.js.map +0 -1
  449. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +0 -138
  450. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +0 -361
  451. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +0 -1
  452. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +0 -7
  453. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +0 -1
  454. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +0 -1
  455. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js +0 -7
  456. package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +0 -1
  457. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
  458. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
  459. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
  460. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -3
  461. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +0 -14
  462. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +0 -1
  463. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.d.ts +0 -3
  464. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js +0 -22
  465. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/ColorInput.js.map +0 -1
  466. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -3
  467. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +0 -22
  468. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +0 -1
  469. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -3
  470. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js +0 -19
  471. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +0 -1
  472. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -3
  473. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js +0 -32
  474. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.js.map +0 -1
  475. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -3
  476. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +0 -51
  477. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +0 -1
  478. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -3
  479. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js +0 -26
  480. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +0 -1
  481. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +0 -13
  482. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +0 -90
  483. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +0 -1
  484. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +0 -7
  485. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +0 -45
  486. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +0 -1
  487. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +0 -9
  488. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +0 -141
  489. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +0 -1
  490. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +0 -1
  491. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +0 -1
  492. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.d.ts +0 -3
  493. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
  494. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.d.ts +0 -6
  495. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js +0 -56
  496. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js.map +0 -1
  497. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.d.ts +0 -2
  498. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.js.map +0 -1
  499. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.d.ts +0 -8
  500. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js +0 -41
  501. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js.map +0 -1
  502. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.d.ts +0 -2
  503. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.js.map +0 -1
  504. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.d.ts +0 -10
  505. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +0 -63
  506. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +0 -1
  507. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.d.ts +0 -2
  508. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js +0 -76
  509. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js.map +0 -1
  510. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.d.ts +0 -2
  511. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.js.map +0 -1
  512. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.d.ts +0 -11
  513. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js +0 -43
  514. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js.map +0 -1
  515. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.d.ts +0 -2
  516. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.js.map +0 -1
  517. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.d.ts +0 -2
  518. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.js.map +0 -1
  519. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  520. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
  521. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContext.js +0 -0
  522. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContextProvider.d.ts +0 -0
  523. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/EditSettingsContextProvider.js +0 -0
  524. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/SidePanel.d.ts +0 -0
  525. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.d.ts +0 -0
  526. /package/dist/components/Explorer/{edit-settings → manage-view-settings/open-view-settings}/useEditSettings.js +0 -0
  527. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.d.ts +0 -0
  528. /package/dist/components/Explorer/{edit-settings → manage-view-settings/router-menu}/SettingItem.js +0 -0
  529. /package/dist/components/Explorer/{edit-settings → manage-view-settings/store-view-settings}/useViewSettingsContext.d.ts +0 -0
@@ -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;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,KAAK,MAAM,OAAO,CA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C,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
  };
@@ -2,16 +2,21 @@
2
2
  // This file is released under LGPL V3
3
3
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
4
  import { localizedTranslation } from '@leav/utils';
5
- import { useExplorerQuery } from '../../../_gqlTypes';
6
- import { useLang } from '../../../hooks';
7
- const _mapping = (data, libraryId, availableLangs) => {
8
- const attributes = {};
9
- // TODO: can we use `Array.reduce` method?
10
- if (data.records.list.length > 0) {
11
- data.records.list[0].properties.forEach(({ attributeId, values }) => {
12
- attributes[attributeId] = localizedTranslation(values[0].attribute.label, availableLangs);
13
- });
14
- }
5
+ import { useMemo } from 'react';
6
+ import { useGetRecordUpdatesSubscription, useLang } from '../../../hooks';
7
+ import { useExplorerLibraryDataQuery, useExplorerLinkDataQuery } from '../../../_gqlTypes';
8
+ import { prepareFiltersForRequest } from './prepareFiltersForRequest';
9
+ export const dateValuesSeparator = '\n';
10
+ const _mappingLibrary = (data, libraryId, availableLangs) => {
11
+ const attributes = data.records.list.length
12
+ ? data.records.list[0].properties.reduce((acc, property) => {
13
+ acc[property.attributeId] = {
14
+ ...property.attributeProperties,
15
+ label: localizedTranslation(property.attributeProperties.label, availableLangs)
16
+ };
17
+ return acc;
18
+ }, {})
19
+ : {};
15
20
  const records = data.records.list.map(({ whoAmI, properties }) => ({
16
21
  libraryId,
17
22
  key: whoAmI.id, // For <KitTable /> only
@@ -26,17 +31,89 @@ const _mapping = (data, libraryId, availableLangs) => {
26
31
  propertiesById: properties.reduce((acc, { attributeId, values }) => ({ ...acc, [attributeId]: values }), {})
27
32
  }));
28
33
  return {
34
+ totalCount: data.records.totalCount ?? 0,
29
35
  attributes,
30
36
  records
31
37
  };
32
38
  };
33
- export const useExplorerData = (libraryId, attributeIds) => {
39
+ const _mappingLink = (data, libraryId, availableLangs) => {
40
+ const attributes = data.records.list.length
41
+ ? (data.records.list[0].property[0]?.payload?.properties ?? []).reduce((acc, property) => {
42
+ acc[property.attributeId] = {
43
+ ...property.attributeProperties,
44
+ label: localizedTranslation(property.attributeProperties.label, availableLangs)
45
+ };
46
+ return acc;
47
+ }, {})
48
+ : {};
49
+ const records = data.records.list[0].property
50
+ .map((linkValue) => {
51
+ if (!linkValue.payload) {
52
+ return null;
53
+ }
54
+ return {
55
+ libraryId,
56
+ key: linkValue.payload.whoAmI.id, // For <KitTable /> only
57
+ itemId: linkValue.payload.whoAmI.id, // For <KitTable /> only
58
+ whoAmI: {
59
+ label: null,
60
+ subLabel: null,
61
+ color: null,
62
+ preview: null,
63
+ ...linkValue.payload.whoAmI
64
+ },
65
+ propertiesById: linkValue.payload.properties.reduce((acc, { attributeId, values }) => ({ ...acc, [attributeId]: values }), {}),
66
+ id_value: linkValue.id_value ?? undefined
67
+ };
68
+ })
69
+ .filter(Boolean);
70
+ return {
71
+ totalCount: records.length,
72
+ attributes,
73
+ records
74
+ };
75
+ };
76
+ export const useExplorerData = ({ entrypoint, libraryId, attributeIds, fulltextSearch, sorts, pagination, filters, skip }) => {
34
77
  const { lang: availableLangs } = useLang();
35
- const { data, loading, refetch } = useExplorerQuery({ variables: { libraryId, attributeIds } });
78
+ const isLibrary = entrypoint.type === 'library';
79
+ const isLink = entrypoint.type === 'link';
80
+ const { data: linkData, loading: linkLoading, refetch: linkRefetch } = useExplorerLinkDataQuery({
81
+ fetchPolicy: 'network-only',
82
+ skip: skip || !isLink,
83
+ variables: {
84
+ parentLibraryId: entrypoint.parentLibraryId,
85
+ parentRecordId: entrypoint.parentRecordId,
86
+ linkAttributeId: entrypoint.linkAttributeId,
87
+ attributeIds
88
+ }
89
+ });
90
+ const { data: libraryData, loading: libraryLoading, refetch: libraryRefetch } = useExplorerLibraryDataQuery({
91
+ fetchPolicy: 'network-only',
92
+ skip: skip || !isLibrary,
93
+ variables: {
94
+ libraryId,
95
+ attributeIds,
96
+ pagination,
97
+ searchQuery: fulltextSearch,
98
+ multipleSort: sorts,
99
+ filters: prepareFiltersForRequest(filters)
100
+ }
101
+ });
102
+ const memoizedData = useMemo(() => {
103
+ if (isLibrary) {
104
+ return libraryData ? _mappingLibrary(libraryData, libraryId, availableLangs) : null;
105
+ }
106
+ if (isLink) {
107
+ return linkData ? _mappingLink(linkData, libraryId, availableLangs) : null;
108
+ }
109
+ return null;
110
+ }, [libraryData, linkData]);
111
+ const ids = memoizedData?.records.map(record => record.itemId);
112
+ useGetRecordUpdatesSubscription({ libraries: [libraryId], records: ids }, !libraryId);
36
113
  return {
37
- data: data !== undefined ? _mapping(data, libraryId, availableLangs) : null,
38
- loading,
39
- refetch
114
+ data: memoizedData,
115
+ loading: isLibrary ? libraryLoading : linkLoading,
116
+ refetch: isLibrary ? libraryRefetch : linkRefetch
40
117
  };
41
118
  };
42
119
  //# sourceMappingURL=useExplorerData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useExplorerData.js","sourceRoot":"","sources":["../../../../src/components/Explorer/_queries/useExplorerData.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAgB,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,MAAM,QAAQ,GAAG,CAAC,IAAmB,EAAE,SAAiB,EAAE,cAAwB,EAAiB,EAAE;IACjG,MAAM,UAAU,GAAG,EAAE,CAAC;IACtB,0CAA0C;IAC1C,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAAC,WAAW,EAAE,MAAM,EAAC,EAAE,EAAE;YAC9D,UAAU,CAAC,WAAW,CAAC,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;QAC9F,CAAC,CAAC,CAAC;IACP,CAAC;IACD,MAA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C,CAAC;IAEpF,OAAO;QACH,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW;QACjD,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW;KACpD,CAAC;AACN,CAAC,CAAC"}
@@ -1,9 +1,14 @@
1
- import { PropertyValueFragment, RecordIdentityFragment } from '../../_gqlTypes';
1
+ import { Override } from '@leav/utils';
2
+ import { AttributeFormat, AttributePropertiesFragment, AttributeType, PropertyValueFragment, RecordFilterCondition, RecordFilterInput, RecordIdentityFragment } from '../../_gqlTypes';
2
3
  import { ReactElement } from 'react';
3
- export type ItemWhoAmI = Required<RecordIdentityFragment['whoAmI']>;
4
+ import { IViewSettingsState } from './manage-view-settings';
5
+ import { ThroughConditionFilter } from '../../types/search';
4
6
  export interface IExplorerData {
7
+ totalCount: number;
5
8
  attributes: {
6
- [attributeId: string]: string;
9
+ [attributeId: string]: Override<AttributePropertiesFragment, {
10
+ label: string;
11
+ }>;
7
12
  };
8
13
  records: IItemData[];
9
14
  }
@@ -11,22 +16,95 @@ export interface IItemData {
11
16
  libraryId: string;
12
17
  key: string;
13
18
  itemId: string;
14
- whoAmI: ItemWhoAmI;
19
+ whoAmI: Required<RecordIdentityFragment['whoAmI']>;
15
20
  propertiesById: {
16
21
  [attributeId: string]: PropertyValueFragment[];
17
22
  };
23
+ /**
24
+ * Can be named `linkId` too, but for historical reason we keep old name 👴🏼.
25
+ */
26
+ id_value?: string;
18
27
  }
19
28
  export interface IItemAction {
20
29
  callback: (item: IItemData) => void;
21
30
  icon: ReactElement;
22
31
  label: string;
23
32
  isDanger?: boolean;
33
+ disabled?: boolean;
24
34
  }
25
35
  export interface IPrimaryAction {
26
36
  callback: () => void;
37
+ disabled?: boolean;
38
+ icon: ReactElement;
39
+ label: string;
40
+ }
41
+ export interface IMassActions {
42
+ callback: (massSelectedFilter: RecordFilterInput[]) => void | Promise<void>;
27
43
  icon: ReactElement;
28
44
  label: string;
29
45
  }
30
46
  export type ActionHook<T = {}> = {
31
47
  isEnabled: boolean;
32
48
  } & T;
49
+ interface IExplorerFilterBaseAttribute {
50
+ type: AttributeType;
51
+ label: string;
52
+ }
53
+ interface IExplorerFilterStandardAttribute extends IExplorerFilterBaseAttribute {
54
+ format: AttributeFormat;
55
+ }
56
+ interface IExplorerFilterLinkAttribute extends IExplorerFilterBaseAttribute {
57
+ linkedLibrary?: {
58
+ id: string;
59
+ };
60
+ }
61
+ interface IExplorerBaseFilter {
62
+ id: string;
63
+ field: string;
64
+ value: string | null;
65
+ }
66
+ export interface IExplorerFilterStandard extends IExplorerBaseFilter {
67
+ attribute: IExplorerFilterStandardAttribute;
68
+ condition: RecordFilterCondition | null;
69
+ }
70
+ export interface IExplorerFilterLink extends IExplorerBaseFilter {
71
+ attribute: IExplorerFilterLinkAttribute;
72
+ condition: RecordFilterCondition | null;
73
+ }
74
+ export interface IExplorerFilterThrough extends IExplorerBaseFilter {
75
+ attribute: IExplorerFilterLinkAttribute;
76
+ condition: ThroughConditionFilter.THROUGH | null;
77
+ subCondition: RecordFilterCondition | null;
78
+ subField: string | null;
79
+ }
80
+ export type ExplorerFilter = IExplorerFilterStandard | IExplorerFilterLink | IExplorerFilterThrough;
81
+ export declare const isExplorerFilterStandard: (filter: ExplorerFilter) => filter is IExplorerFilterStandard;
82
+ export declare const isExplorerFilterLink: (filter: ExplorerFilter) => filter is IExplorerFilterLink;
83
+ export declare const isExplorerFilterThrough: (filter: ExplorerFilter) => filter is IExplorerFilterThrough;
84
+ export interface IFilterDropDownProps {
85
+ filter: ExplorerFilter;
86
+ }
87
+ export type DefaultViewSettings = Override<Partial<IViewSettingsState>, {
88
+ filters?: Array<{
89
+ field: string;
90
+ condition: RecordFilterCondition;
91
+ value: string | null;
92
+ }>;
93
+ }>;
94
+ export interface IEntrypointTree {
95
+ type: 'tree';
96
+ treeId: string;
97
+ nodeId: string;
98
+ }
99
+ export interface IEntrypointLibrary {
100
+ type: 'library';
101
+ libraryId: string;
102
+ }
103
+ export interface IEntrypointLink {
104
+ type: 'link';
105
+ parentLibraryId: string;
106
+ parentRecordId: string;
107
+ linkAttributeId: string;
108
+ }
109
+ export type Entrypoint = IEntrypointTree | IEntrypointLibrary | IEntrypointLink;
110
+ export {};
@@ -1,2 +1,8 @@
1
- export {};
1
+ import { AttributeType } from '../../_gqlTypes';
2
+ import { ThroughConditionFilter } from '../../types/search';
3
+ export const isExplorerFilterStandard = (filter) => [AttributeType.simple, AttributeType.advanced].includes(filter.attribute.type);
4
+ export const isExplorerFilterLink = (filter) => [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) &&
5
+ filter.condition !== ThroughConditionFilter.THROUGH;
6
+ export const isExplorerFilterThrough = (filter) => [AttributeType.simple_link, AttributeType.advanced_link].includes(filter.attribute.type) &&
7
+ filter.condition === ThroughConditionFilter.THROUGH;
2
8
  //# sourceMappingURL=_types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/Explorer/_types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/Explorer/_types.ts"],"names":[],"mappings":"AAIA,OAAO,EAGH,aAAa,EAKhB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAC,sBAAsB,EAAC,MAAM,kBAAkB,CAAC;AAuFxD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,MAAsB,EAAqC,EAAE,CAClG,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AAEnF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAsB,EAAiC,EAAE,CAC1F,CAAC,aAAa,CAAC,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC;IACxF,MAAM,CAAC,SAAS,KAAK,sBAAsB,CAAC,OAAO,CAAC;AAExD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,MAAsB,EAAoC,EAAE,CAChG,CAAC,aAAa,CAAC,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC;IACxF,MAAM,CAAC,SAAS,KAAK,sBAAsB,CAAC,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const hasOnlyNoValueConditions: (attributeFormat: string) => boolean;
2
+ export declare const nullValueConditions: import("../../_gqlTypes").RecordFilterCondition[];
@@ -0,0 +1,16 @@
1
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
+ // This file is released under LGPL V3
3
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
+ import { AttributeFormat } from '../../_gqlTypes';
5
+ import { AttributeConditionFilter } from '../../types';
6
+ export const hasOnlyNoValueConditions = (attributeFormat) => [AttributeFormat.color, AttributeFormat.date_range, AttributeFormat.encrypted, AttributeFormat.extended].includes(attributeFormat);
7
+ export const nullValueConditions = [
8
+ AttributeConditionFilter.IS_EMPTY,
9
+ AttributeConditionFilter.IS_NOT_EMPTY,
10
+ AttributeConditionFilter.TODAY,
11
+ AttributeConditionFilter.TOMORROW,
12
+ AttributeConditionFilter.YESTERDAY,
13
+ AttributeConditionFilter.LAST_MONTH,
14
+ AttributeConditionFilter.NEXT_MONTH
15
+ ];
16
+ //# sourceMappingURL=conditionsHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditionsHelper.js","sourceRoot":"","sources":["../../../src/components/Explorer/conditionsHelper.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAC;AAEnD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,eAAuB,EAAW,EAAE,CACzE,CAAC,eAAe,CAAC,KAAK,EAAE,eAAe,CAAC,UAAU,EAAE,eAAe,CAAC,SAAS,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAC7G,eAAe,CAClB,CAAC;AAEN,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,wBAAwB,CAAC,QAAQ;IACjC,wBAAwB,CAAC,YAAY;IACrC,wBAAwB,CAAC,KAAK;IAC9B,wBAAwB,CAAC,QAAQ;IACjC,wBAAwB,CAAC,SAAS;IAClC,wBAAwB,CAAC,UAAU;IACnC,wBAAwB,CAAC,UAAU;CACtC,CAAC"}
@@ -1,7 +1,5 @@
1
1
  import { Explorer as InternalExplorer } from './Explorer';
2
- import { useEditSettings } from './edit-settings/useEditSettings';
3
- import { EditSettingsContextProvider } from './edit-settings/EditSettingsContextProvider';
4
- import { SidePanel } from './edit-settings/SidePanel';
2
+ import { useEditSettings, SidePanel, EditSettingsContextProvider } from './manage-view-settings';
5
3
  type CompoundedComponent = typeof InternalExplorer & {
6
4
  useEditSettings: typeof useEditSettings;
7
5
  EditSettingsContextProvider: typeof EditSettingsContextProvider;
@@ -2,9 +2,7 @@
2
2
  // This file is released under LGPL V3
3
3
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
4
  import { Explorer as InternalExplorer } from './Explorer';
5
- import { useEditSettings } from './edit-settings/useEditSettings';
6
- import { EditSettingsContextProvider } from './edit-settings/EditSettingsContextProvider';
7
- import { SidePanel } from './edit-settings/SidePanel';
5
+ import { useEditSettings, SidePanel, EditSettingsContextProvider } from './manage-view-settings';
8
6
  export const Explorer = InternalExplorer;
9
7
  Explorer.EditSettingsContextProvider = EditSettingsContextProvider;
10
8
  Explorer.useEditSettings = useEditSettings;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Explorer/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,IAAI,gBAAgB,EAAC,MAAM,YAAY,CAAC;AACxD,OAAO,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAC,2BAA2B,EAAC,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAQpD,MAAM,CAAC,MAAM,QAAQ,GAAG,gBAAkD,CAAC;AAC3E,QAAQ,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;AACnE,QAAQ,CAAC,eAAe,GAAG,eAAe,CAAC;AAC3C,QAAQ,CAAC,iBAAiB,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Explorer/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,IAAI,gBAAgB,EAAC,MAAM,YAAY,CAAC;AACxD,OAAO,EAAC,eAAe,EAAE,SAAS,EAAE,2BAA2B,EAAC,MAAM,wBAAwB,CAAC;AAQ/F,MAAM,CAAC,MAAM,QAAQ,GAAG,gBAAkD,CAAC;AAC3E,QAAQ,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;AACnE,QAAQ,CAAC,eAAe,GAAG,eAAe,CAAC;AAC3C,QAAQ,CAAC,iBAAiB,GAAG,SAAS,CAAC"}
@@ -5,8 +5,8 @@ interface IColumnItemProps {
5
5
  visible: boolean;
6
6
  title: string;
7
7
  onVisibilityClick?: () => void;
8
- disabled?: boolean;
9
8
  value?: string;
9
+ locked?: boolean;
10
10
  }
11
11
  export declare const ColumnItem: FunctionComponent<IColumnItemProps>;
12
12
  export {};
@@ -3,16 +3,15 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  // This file is released under LGPL V3
4
4
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
5
  import { KitTypography } from 'aristid-ds';
6
- import { FaEye, FaEyeSlash } from 'react-icons/fa';
6
+ import { FaEye, FaEyeSlash, FaLock } from 'react-icons/fa';
7
7
  import styled from 'styled-components';
8
8
  import { useSortable } from '@dnd-kit/sortable';
9
9
  import { CSS } from '@dnd-kit/utilities';
10
- import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
10
+ import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
11
11
  const StyledValue = styled(KitTypography.Text) `
12
12
  color: var(--general-utilities-disabled);
13
13
  `;
14
14
  const StyledConfigurationItem = styled.li `
15
- list-style: none;
16
15
  color: var(--general-utilities-text-primary);
17
16
  display: flex;
18
17
  width: 100%;
@@ -53,18 +52,25 @@ const StyledConfigurationItem = styled.li `
53
52
  }
54
53
  `;
55
54
  const StyledFaEye = styled(FaEye) `
55
+ display: flex;
56
56
  color: currentColor;
57
57
  `;
58
58
  const StyledEyeSlash = styled(FaEyeSlash) `
59
+ display: flex;
60
+ color: var(--general-utilities-disabled);
61
+ `;
62
+ const StyledLocked = styled(FaLock) `
63
+ display: flex;
59
64
  color: var(--general-utilities-disabled);
60
65
  `;
61
66
  const StyledDragHandle = styled.span `
67
+ display: flex;
62
68
  cursor: ${props => (props.$isDragging ? 'grabbing' : 'grab')};
63
69
  `;
64
70
  const StyledEmptyIcon = styled.div `
65
71
  width: calc(var(--general-spacing-s) * 1px);
66
72
  `;
67
- export const ColumnItem = ({ itemId, dragHandler, title, disabled, visible, onVisibilityClick }) => {
73
+ export const ColumnItem = ({ itemId, dragHandler, title, visible, onVisibilityClick, locked = false }) => {
68
74
  const { t } = useSharedTranslation();
69
75
  const { attributes, listeners, setNodeRef, transform, transition, isDragging } = useSortable({ id: itemId });
70
76
  const style = {
@@ -73,6 +79,7 @@ export const ColumnItem = ({ itemId, dragHandler, title, disabled, visible, onVi
73
79
  };
74
80
  const _handleClick = () => onVisibilityClick?.();
75
81
  const visibilityButtonLabel = visible ? t('explorer.hide') : t('explorer.show');
76
- return (_jsxs(StyledConfigurationItem, { className: disabled ? 'disabled' : '', ref: setNodeRef, style: style, children: [dragHandler ? (_jsx(StyledDragHandle, { ...attributes, ...listeners, "$isDragging": isDragging, children: dragHandler })) : (_jsx(StyledEmptyIcon, {})), _jsx(KitTypography.Text, { size: "fontSize5", ellipsis: true, className: "title", children: title }), _jsx("button", { disabled: disabled, onClick: _handleClick, title: visibilityButtonLabel, "aria-label": visibilityButtonLabel, children: visible ? _jsx(StyledFaEye, {}) : _jsx(StyledEyeSlash, {}) })] }));
82
+ const visibilityIcon = locked ? _jsx(StyledLocked, {}) : visible ? _jsx(StyledFaEye, {}) : _jsx(StyledEyeSlash, {});
83
+ return (_jsxs(StyledConfigurationItem, { ref: setNodeRef, style: style, children: [dragHandler ? (_jsx(StyledDragHandle, { ...attributes, ...listeners, "$isDragging": isDragging, children: dragHandler })) : (_jsx(StyledEmptyIcon, {})), _jsx(KitTypography.Text, { size: "fontSize5", ellipsis: true, className: "title", children: title }), _jsx("button", { disabled: locked, onClick: _handleClick, title: visibilityButtonLabel, "aria-label": visibilityButtonLabel, children: visibilityIcon })] }));
77
84
  };
78
85
  //# sourceMappingURL=ColumnItem.js.map