@leav/ui 1.9.0 → 1.10.0

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 (514) hide show
  1. package/dist/_gqlTypes/index.d.ts +291 -120
  2. package/dist/_gqlTypes/index.js +204 -87
  3. package/dist/_gqlTypes/index.js.map +1 -1
  4. package/dist/_queries/records/createRecordMutation.js +2 -2
  5. package/dist/_queries/records/createRecordMutation.js.map +1 -1
  6. package/dist/_utils/getFiltersFromRequest.js +5 -6
  7. package/dist/_utils/getFiltersFromRequest.js.map +1 -1
  8. package/dist/_utils/index.js +3 -4
  9. package/dist/_utils/index.js.map +1 -1
  10. package/dist/_utils/typeguards.d.ts +5 -0
  11. package/dist/_utils/typeguards.js +6 -0
  12. package/dist/_utils/typeguards.js.map +1 -1
  13. package/dist/components/Explorer/Explorer.d.ts +2 -1
  14. package/dist/components/Explorer/Explorer.js +31 -13
  15. package/dist/components/Explorer/Explorer.js.map +1 -1
  16. package/dist/components/Explorer/ExplorerToolbar.js +2 -1
  17. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  18. package/dist/components/Explorer/_queries/useExplorerCountData.d.ts +16 -0
  19. package/dist/components/Explorer/_queries/useExplorerCountData.js +26 -0
  20. package/dist/components/Explorer/_queries/useExplorerCountData.js.map +1 -0
  21. package/dist/components/Explorer/_queries/useExplorerData.js +18 -20
  22. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  23. package/dist/components/Explorer/actions-mass/ResultsCount.d.ts +10 -0
  24. package/dist/components/Explorer/actions-mass/ResultsCount.js +8 -0
  25. package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -0
  26. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js +1 -1
  27. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
  28. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +9 -2
  29. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +18 -4
  30. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +1 -1
  31. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.d.ts +10 -0
  32. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js +69 -0
  33. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js.map +1 -0
  34. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.d.ts +18 -0
  35. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js +57 -0
  36. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js.map +1 -0
  37. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.d.ts +19 -0
  38. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js +94 -0
  39. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js.map +1 -0
  40. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +5 -3
  41. package/dist/components/Explorer/actions-mass/useMassActions.js +19 -13
  42. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  43. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +3 -1
  44. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +5 -1
  45. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  46. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +6 -1
  47. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -1
  48. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +3 -0
  49. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +5 -5
  50. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
  51. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +1 -1
  52. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
  53. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +2 -2
  54. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  55. package/dist/components/Explorer/useViewSettingsReducer.js +11 -8
  56. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  57. package/dist/components/Filters/_queries/treeFiltersDataQuery.d.ts +6 -0
  58. package/dist/components/Filters/_queries/treeFiltersDataQuery.js +54 -0
  59. package/dist/components/Filters/_queries/treeFiltersDataQuery.js.map +1 -0
  60. package/dist/components/Filters/context/useGetTreeFilters.js +24 -40
  61. package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
  62. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +1 -2
  63. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -1
  64. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.d.ts +6 -0
  65. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js +54 -0
  66. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js.map +1 -0
  67. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +22 -41
  68. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
  69. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  70. package/dist/components/RecordEdition/EditRecord/EditRecord.js +3 -3
  71. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  72. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +4 -0
  73. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  74. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -3
  75. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  76. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +28 -17
  77. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  78. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +1 -0
  79. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +30 -18
  80. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  81. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.d.ts +2 -0
  82. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +11 -0
  83. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +1 -0
  84. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.d.ts +2 -0
  85. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +35 -0
  86. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +1 -0
  87. package/dist/components/RecordEdition/_types.d.ts +1 -1
  88. package/dist/components/RecordEdition/_types.js.map +1 -1
  89. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +7 -6
  90. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  91. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +1 -1
  92. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +6 -2
  93. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
  94. package/dist/components/SearchModal/SearchModal.js +28 -18
  95. package/dist/components/SearchModal/SearchModal.js.map +1 -1
  96. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +0 -2
  97. package/dist/components/SelectTreeNode/SelectTreeNode.js +2 -2
  98. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  99. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +0 -2
  100. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +60 -114
  101. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  102. package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +0 -1
  103. package/dist/components/SelectTreeNode/TreeNodeTitle.js +3 -7
  104. package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
  105. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.d.ts +6 -0
  106. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js +56 -0
  107. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js.map +1 -0
  108. package/dist/components/SelectTreeNode/_types.d.ts +0 -1
  109. package/dist/components/SelectTreeNode/_types.js.map +1 -1
  110. package/dist/components/index.d.ts +0 -3
  111. package/dist/components/index.js +0 -3
  112. package/dist/components/index.js.map +1 -1
  113. package/dist/hooks/useGetRecordForm/useGetRecordForm.js +24 -22
  114. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  115. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +9 -6
  116. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  117. package/dist/hooks/useIFrameMessenger/schema.d.ts +14 -2
  118. package/dist/hooks/useIFrameMessenger/schema.js +7 -1
  119. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  120. package/dist/hooks/useIFrameMessenger/types.d.ts +5 -0
  121. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  122. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.d.ts +1 -1
  123. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +14 -6
  124. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
  125. package/dist/locales/en/shared.json +14 -4
  126. package/dist/locales/fr/shared.json +14 -4
  127. package/package.json +11 -20
  128. package/dist/__mocks__/common/mockSearchContextProvider.d.ts +0 -6
  129. package/dist/__mocks__/common/mockSearchContextProvider.js +0 -10
  130. package/dist/__mocks__/common/mockSearchContextProvider.js.map +0 -1
  131. package/dist/components/AttributesSelectionList/Attribute/Attribute.d.ts +0 -3
  132. package/dist/components/AttributesSelectionList/Attribute/Attribute.js +0 -50
  133. package/dist/components/AttributesSelectionList/Attribute/Attribute.js.map +0 -1
  134. package/dist/components/AttributesSelectionList/Attribute/index.d.ts +0 -2
  135. package/dist/components/AttributesSelectionList/Attribute/index.js +0 -6
  136. package/dist/components/AttributesSelectionList/Attribute/index.js.map +0 -1
  137. package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +0 -10
  138. package/dist/components/AttributesSelectionList/AttributesSelectionList.js +0 -72
  139. package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +0 -1
  140. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +0 -7
  141. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +0 -39
  142. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js.map +0 -1
  143. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.d.ts +0 -2
  144. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js +0 -6
  145. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js.map +0 -1
  146. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.d.ts +0 -2
  147. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +0 -63
  148. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js.map +0 -1
  149. package/dist/components/AttributesSelectionList/SelectedAttributesList/index.d.ts +0 -2
  150. package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js +0 -6
  151. package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js.map +0 -1
  152. package/dist/components/AttributesSelectionList/_types.d.ts +0 -8
  153. package/dist/components/AttributesSelectionList/_types.js +0 -2
  154. package/dist/components/AttributesSelectionList/_types.js.map +0 -1
  155. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +0 -3
  156. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +0 -9
  157. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js.map +0 -1
  158. package/dist/components/AttributesSelectionList/index.d.ts +0 -2
  159. package/dist/components/AttributesSelectionList/index.js +0 -6
  160. package/dist/components/AttributesSelectionList/index.js.map +0 -1
  161. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.d.ts +0 -11
  162. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +0 -10
  163. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js.map +0 -1
  164. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.d.ts +0 -33
  165. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +0 -77
  166. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js.map +0 -1
  167. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.d.ts +0 -10
  168. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +0 -8
  169. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js.map +0 -1
  170. package/dist/components/AttributesSelectionList/sharedComponents.d.ts +0 -809
  171. package/dist/components/AttributesSelectionList/sharedComponents.js +0 -16
  172. package/dist/components/AttributesSelectionList/sharedComponents.js.map +0 -1
  173. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +0 -10
  174. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +0 -39
  175. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +0 -1
  176. package/dist/components/DeactivateRecordsModal/index.d.ts +0 -1
  177. package/dist/components/DeactivateRecordsModal/index.js +0 -5
  178. package/dist/components/DeactivateRecordsModal/index.js.map +0 -1
  179. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.d.ts +0 -13
  180. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +0 -50
  181. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +0 -1
  182. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.d.ts +0 -2
  183. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js +0 -6
  184. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js.map +0 -1
  185. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.d.ts +0 -2
  186. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +0 -80
  187. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +0 -1
  188. package/dist/components/LibraryItemsList/DisplayOptions/index.d.ts +0 -2
  189. package/dist/components/LibraryItemsList/DisplayOptions/index.js +0 -6
  190. package/dist/components/LibraryItemsList/DisplayOptions/index.js.map +0 -1
  191. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.d.ts +0 -2
  192. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js +0 -22
  193. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js.map +0 -1
  194. package/dist/components/LibraryItemsList/DisplayTypeSelector/index.d.ts +0 -2
  195. package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js +0 -6
  196. package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js.map +0 -1
  197. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +0 -13
  198. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +0 -229
  199. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +0 -1
  200. package/dist/components/LibraryItemsList/FiltersDropdown/index.d.ts +0 -2
  201. package/dist/components/LibraryItemsList/FiltersDropdown/index.js +0 -6
  202. package/dist/components/LibraryItemsList/FiltersDropdown/index.js.map +0 -1
  203. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.d.ts +0 -11
  204. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +0 -328
  205. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +0 -1
  206. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +0 -7
  207. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +0 -90
  208. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +0 -1
  209. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.d.ts +0 -2
  210. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js +0 -6
  211. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js.map +0 -1
  212. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.d.ts +0 -3
  213. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js +0 -13
  214. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js.map +0 -1
  215. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.d.ts +0 -2
  216. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js +0 -6
  217. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js.map +0 -1
  218. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.d.ts +0 -3
  219. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js +0 -26
  220. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js.map +0 -1
  221. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.d.ts +0 -2
  222. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js +0 -6
  223. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js.map +0 -1
  224. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.d.ts +0 -3
  225. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js +0 -22
  226. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js.map +0 -1
  227. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.d.ts +0 -2
  228. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js +0 -6
  229. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js.map +0 -1
  230. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.d.ts +0 -3
  231. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js +0 -35
  232. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js.map +0 -1
  233. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.d.ts +0 -2
  234. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js +0 -6
  235. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js.map +0 -1
  236. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.d.ts +0 -3
  237. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js +0 -34
  238. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js.map +0 -1
  239. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.d.ts +0 -2
  240. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js +0 -6
  241. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js.map +0 -1
  242. package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.d.ts +0 -2
  243. package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js +0 -16
  244. package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js.map +0 -1
  245. package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.d.ts +0 -2
  246. package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js +0 -6
  247. package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js.map +0 -1
  248. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.d.ts +0 -8
  249. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js +0 -11
  250. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js.map +0 -1
  251. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.d.ts +0 -2
  252. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js +0 -6
  253. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js.map +0 -1
  254. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +0 -6
  255. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +0 -38
  256. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js.map +0 -1
  257. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.d.ts +0 -2
  258. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js +0 -6
  259. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js.map +0 -1
  260. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.d.ts +0 -14
  261. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +0 -147
  262. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +0 -1
  263. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.d.ts +0 -2
  264. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +0 -121
  265. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js.map +0 -1
  266. package/dist/components/LibraryItemsList/FiltersPanel/index.d.ts +0 -2
  267. package/dist/components/LibraryItemsList/FiltersPanel/index.js +0 -6
  268. package/dist/components/LibraryItemsList/FiltersPanel/index.js.map +0 -1
  269. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.d.ts +0 -3
  270. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +0 -17
  271. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js.map +0 -1
  272. package/dist/components/LibraryItemsList/IconViewType/IconViewType.d.ts +0 -8
  273. package/dist/components/LibraryItemsList/IconViewType/IconViewType.js +0 -18
  274. package/dist/components/LibraryItemsList/IconViewType/IconViewType.js.map +0 -1
  275. package/dist/components/LibraryItemsList/IconViewType/index.d.ts +0 -2
  276. package/dist/components/LibraryItemsList/IconViewType/index.js +0 -6
  277. package/dist/components/LibraryItemsList/IconViewType/index.js.map +0 -1
  278. package/dist/components/LibraryItemsList/LibraryItemsList.d.ts +0 -14
  279. package/dist/components/LibraryItemsList/LibraryItemsList.js +0 -18
  280. package/dist/components/LibraryItemsList/LibraryItemsList.js.map +0 -1
  281. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.d.ts +0 -16
  282. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +0 -202
  283. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +0 -1
  284. package/dist/components/LibraryItemsList/LibraryItemsListContent/index.d.ts +0 -2
  285. package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js +0 -6
  286. package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js.map +0 -1
  287. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.d.ts +0 -6
  288. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +0 -32
  289. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js.map +0 -1
  290. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.d.ts +0 -2
  291. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js +0 -6
  292. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js.map +0 -1
  293. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.d.ts +0 -2
  294. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js +0 -21
  295. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js.map +0 -1
  296. package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.d.ts +0 -2
  297. package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js +0 -6
  298. package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js.map +0 -1
  299. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.d.ts +0 -8
  300. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +0 -56
  301. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js.map +0 -1
  302. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.d.ts +0 -2
  303. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js +0 -6
  304. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js.map +0 -1
  305. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.d.ts +0 -7
  306. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +0 -54
  307. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js.map +0 -1
  308. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.d.ts +0 -2
  309. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js +0 -6
  310. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js.map +0 -1
  311. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.d.ts +0 -8
  312. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +0 -66
  313. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js.map +0 -1
  314. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.d.ts +0 -2
  315. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js +0 -6
  316. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js.map +0 -1
  317. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.d.ts +0 -8
  318. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +0 -59
  319. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js.map +0 -1
  320. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +0 -9
  321. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +0 -56
  322. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js.map +0 -1
  323. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.d.ts +0 -2
  324. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js +0 -6
  325. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js.map +0 -1
  326. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.d.ts +0 -5
  327. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js +0 -34
  328. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js.map +0 -1
  329. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.d.ts +0 -2
  330. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js +0 -6
  331. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js.map +0 -1
  332. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.d.ts +0 -5
  333. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js +0 -23
  334. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js.map +0 -1
  335. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.d.ts +0 -3
  336. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +0 -80
  337. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +0 -1
  338. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.d.ts +0 -2
  339. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js +0 -6
  340. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js.map +0 -1
  341. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.d.ts +0 -2
  342. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js +0 -6
  343. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js.map +0 -1
  344. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.d.ts +0 -12
  345. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +0 -11
  346. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +0 -1
  347. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.d.ts +0 -12
  348. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js +0 -2
  349. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js.map +0 -1
  350. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.d.ts +0 -2
  351. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js +0 -40
  352. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js.map +0 -1
  353. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.d.ts +0 -6
  354. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +0 -81
  355. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js.map +0 -1
  356. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.d.ts +0 -2
  357. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js +0 -6
  358. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js.map +0 -1
  359. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.d.ts +0 -9
  360. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +0 -142
  361. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +0 -1
  362. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.d.ts +0 -2
  363. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js +0 -6
  364. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js.map +0 -1
  365. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.d.ts +0 -2
  366. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +0 -232
  367. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js.map +0 -1
  368. package/dist/components/LibraryItemsList/LibraryItemsListTable/index.d.ts +0 -2
  369. package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js +0 -6
  370. package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js.map +0 -1
  371. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.d.ts +0 -9
  372. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +0 -27
  373. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js.map +0 -1
  374. package/dist/components/LibraryItemsList/MenuItemList/index.d.ts +0 -2
  375. package/dist/components/LibraryItemsList/MenuItemList/index.js +0 -6
  376. package/dist/components/LibraryItemsList/MenuItemList/index.js.map +0 -1
  377. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.d.ts +0 -2
  378. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +0 -62
  379. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +0 -1
  380. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.d.ts +0 -2
  381. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js +0 -6
  382. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js.map +0 -1
  383. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.d.ts +0 -5
  384. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +0 -139
  385. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js.map +0 -1
  386. package/dist/components/LibraryItemsList/MenuItemListSelected/index.d.ts +0 -2
  387. package/dist/components/LibraryItemsList/MenuItemListSelected/index.js +0 -6
  388. package/dist/components/LibraryItemsList/MenuItemListSelected/index.js.map +0 -1
  389. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.d.ts +0 -2
  390. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +0 -58
  391. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js.map +0 -1
  392. package/dist/components/LibraryItemsList/MenuSelection/index.d.ts +0 -2
  393. package/dist/components/LibraryItemsList/MenuSelection/index.js +0 -6
  394. package/dist/components/LibraryItemsList/MenuSelection/index.js.map +0 -1
  395. package/dist/components/LibraryItemsList/MenuView/MenuView.d.ts +0 -6
  396. package/dist/components/LibraryItemsList/MenuView/MenuView.js +0 -162
  397. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +0 -1
  398. package/dist/components/LibraryItemsList/MenuView/index.d.ts +0 -2
  399. package/dist/components/LibraryItemsList/MenuView/index.js +0 -6
  400. package/dist/components/LibraryItemsList/MenuView/index.js.map +0 -1
  401. package/dist/components/LibraryItemsList/SearchItems/SearchItems.d.ts +0 -2
  402. package/dist/components/LibraryItemsList/SearchItems/SearchItems.js +0 -21
  403. package/dist/components/LibraryItemsList/SearchItems/SearchItems.js.map +0 -1
  404. package/dist/components/LibraryItemsList/SearchItems/index.d.ts +0 -2
  405. package/dist/components/LibraryItemsList/SearchItems/index.js +0 -6
  406. package/dist/components/LibraryItemsList/SearchItems/index.js.map +0 -1
  407. package/dist/components/LibraryItemsList/Sidebar/Sidebar.d.ts +0 -2
  408. package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +0 -58
  409. package/dist/components/LibraryItemsList/Sidebar/Sidebar.js.map +0 -1
  410. package/dist/components/LibraryItemsList/Sidebar/index.d.ts +0 -2
  411. package/dist/components/LibraryItemsList/Sidebar/index.js +0 -6
  412. package/dist/components/LibraryItemsList/Sidebar/index.js.map +0 -1
  413. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.d.ts +0 -6
  414. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +0 -199
  415. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js.map +0 -1
  416. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.d.ts +0 -2
  417. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js +0 -6
  418. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js.map +0 -1
  419. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.d.ts +0 -2
  420. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +0 -50
  421. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js.map +0 -1
  422. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.d.ts +0 -3
  423. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +0 -11
  424. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js.map +0 -1
  425. package/dist/components/LibraryItemsList/TileDisplay/index.d.ts +0 -2
  426. package/dist/components/LibraryItemsList/TileDisplay/index.js +0 -6
  427. package/dist/components/LibraryItemsList/TileDisplay/index.js.map +0 -1
  428. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.d.ts +0 -2
  429. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +0 -66
  430. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js.map +0 -1
  431. package/dist/components/LibraryItemsList/VersionsPanel/index.d.ts +0 -2
  432. package/dist/components/LibraryItemsList/VersionsPanel/index.js +0 -6
  433. package/dist/components/LibraryItemsList/VersionsPanel/index.js.map +0 -1
  434. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.d.ts +0 -9
  435. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +0 -85
  436. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +0 -1
  437. package/dist/components/LibraryItemsList/ViewPanel/EditView/index.d.ts +0 -2
  438. package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js +0 -6
  439. package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js.map +0 -1
  440. package/dist/components/LibraryItemsList/ViewPanel/View/View.d.ts +0 -7
  441. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +0 -152
  442. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +0 -1
  443. package/dist/components/LibraryItemsList/ViewPanel/View/index.d.ts +0 -2
  444. package/dist/components/LibraryItemsList/ViewPanel/View/index.js +0 -6
  445. package/dist/components/LibraryItemsList/ViewPanel/View/index.js.map +0 -1
  446. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.d.ts +0 -2
  447. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +0 -209
  448. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js.map +0 -1
  449. package/dist/components/LibraryItemsList/ViewPanel/index.d.ts +0 -2
  450. package/dist/components/LibraryItemsList/ViewPanel/index.js +0 -6
  451. package/dist/components/LibraryItemsList/ViewPanel/index.js.map +0 -1
  452. package/dist/components/LibraryItemsList/constants.d.ts +0 -12
  453. package/dist/components/LibraryItemsList/constants.js +0 -19
  454. package/dist/components/LibraryItemsList/constants.js.map +0 -1
  455. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.d.ts +0 -3
  456. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js +0 -21
  457. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js.map +0 -1
  458. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +0 -3
  459. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +0 -18
  460. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js.map +0 -1
  461. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.d.ts +0 -4
  462. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +0 -64
  463. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js.map +0 -1
  464. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.d.ts +0 -5
  465. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +0 -40
  466. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js.map +0 -1
  467. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.d.ts +0 -6
  468. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +0 -10
  469. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +0 -1
  470. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.d.ts +0 -2
  471. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js +0 -13
  472. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js.map +0 -1
  473. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.d.ts +0 -2
  474. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js +0 -18
  475. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js.map +0 -1
  476. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.d.ts +0 -8
  477. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +0 -99
  478. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +0 -1
  479. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +0 -82
  480. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js +0 -2
  481. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js.map +0 -1
  482. package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.d.ts +0 -2
  483. package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js +0 -6
  484. package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js.map +0 -1
  485. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.d.ts +0 -7
  486. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js +0 -7
  487. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js.map +0 -1
  488. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +0 -121
  489. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +0 -228
  490. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +0 -1
  491. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +0 -5
  492. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js +0 -8
  493. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js.map +0 -1
  494. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.d.ts +0 -7
  495. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +0 -40
  496. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +0 -1
  497. package/dist/components/LibraryItemsList/index.d.ts +0 -1
  498. package/dist/components/LibraryItemsList/index.js +0 -5
  499. package/dist/components/LibraryItemsList/index.js.map +0 -1
  500. package/dist/components/LibraryItemsList/manageItems.d.ts +0 -11
  501. package/dist/components/LibraryItemsList/manageItems.js +0 -98
  502. package/dist/components/LibraryItemsList/manageItems.js.map +0 -1
  503. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +0 -7
  504. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +0 -38
  505. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +0 -1
  506. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.d.ts +0 -2
  507. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js +0 -6
  508. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js.map +0 -1
  509. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.d.ts +0 -12
  510. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +0 -29
  511. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js.map +0 -1
  512. package/dist/components/LibraryItemsList/shared/sharedUtils.d.ts +0 -4
  513. package/dist/components/LibraryItemsList/shared/sharedUtils.js +0 -9
  514. package/dist/components/LibraryItemsList/shared/sharedUtils.js.map +0 -1
@@ -1,16 +0,0 @@
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 styled from 'styled-components';
5
- export const TextAttribute = styled.span `
6
- color: hsl(0, 0%, 13%);
7
- font-weight: 700;
8
- `;
9
- export const SmallText = styled.span `
10
- color: hsl(0, 0%, 45%);
11
- font-weight: 400;
12
- `;
13
- export const CustomForm = styled.form `
14
- width: 100%;
15
- `;
16
- //# sourceMappingURL=sharedComponents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sharedComponents.js","sourceRoot":"","sources":["../../../src/components/AttributesSelectionList/sharedComponents.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAA;;;CAGvC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAA;;;CAGnC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAA;;CAEpC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport styled from 'styled-components';\n\nexport const TextAttribute = styled.span`\n color: hsl(0, 0%, 13%);\n font-weight: 700;\n`;\n\nexport const SmallText = styled.span`\n color: hsl(0, 0%, 45%);\n font-weight: 400;\n`;\n\nexport const CustomForm = styled.form`\n width: 100%;\n`;\n"]}
@@ -1,10 +0,0 @@
1
- import { type IFilter, type ISearchSelection } from '../../types';
2
- interface IDeactivateRecordsModalProps {
3
- open: boolean;
4
- library: string;
5
- selection: ISearchSelection;
6
- filters?: IFilter[];
7
- onClose: () => void;
8
- }
9
- declare function DeactivateRecordsModal({ library, onClose, open, selection, filters, }: IDeactivateRecordsModalProps): JSX.Element;
10
- export default DeactivateRecordsModal;
@@ -1,39 +0,0 @@
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 { Modal } from 'antd';
6
- import { useSharedTranslation } from '../../hooks/useSharedTranslation';
7
- import { useDeactivateRecordsMutation } from '../../_gqlTypes';
8
- import { getRequestFromFilters } from '../../_utils/getRequestFromFilter';
9
- import { ErrorDisplay } from '../ErrorDisplay';
10
- import useSearchReducer from '../LibraryItemsList/hooks/useSearchReducer';
11
- import { SearchActionTypes } from '../LibraryItemsList/hooks/useSearchReducer/searchReducer';
12
- import { Loading } from '../Loading';
13
- function DeactivateRecordsModal({ library, onClose, open, selection, filters, }) {
14
- const { t } = useSharedTranslation();
15
- const { dispatch: searchDispatch } = useSearchReducer();
16
- const hasSelectedAll = selection.allSelected;
17
- const [deactivateRecords, { loading, error, called }] = useDeactivateRecordsMutation({
18
- variables: {
19
- libraryId: library,
20
- recordsIds: hasSelectedAll ? null : selection.selected.map(record => record.id),
21
- filters: hasSelectedAll ? getRequestFromFilters(filters) : null,
22
- },
23
- });
24
- const _handleOk = async () => {
25
- try {
26
- // Run the deactivate mutation
27
- await deactivateRecords();
28
- searchDispatch({ type: SearchActionTypes.SET_LOADING, loading: true }); // Refresh the search
29
- searchDispatch({ type: SearchActionTypes.CLEAR_SELECTION }); // Refresh the search
30
- onClose();
31
- }
32
- catch (e) {
33
- // Errors are handled with the error variable
34
- }
35
- };
36
- return (_jsxs(Modal, { title: t('records_deactivation.title'), okText: t('global.submit'), cancelText: t('global.cancel'), onOk: _handleOk, onCancel: onClose, confirmLoading: loading, open: open, closable: true, centered: true, okButtonProps: { className: 'submit-btn' }, destroyOnClose: true, children: [loading && _jsx(Loading, { "data-testid": "loading" }), !loading && error && _jsx(ErrorDisplay, { message: error.message }), !called && t('records_deactivation.confirm')] }));
37
- }
38
- export default DeactivateRecordsModal;
39
- //# sourceMappingURL=DeactivateRecordsModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeactivateRecordsModal.js","sourceRoot":"","sources":["../../../src/components/DeactivateRecordsModal/DeactivateRecordsModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AAEtE,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,qBAAqB,EAAC,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,gBAAgB,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAC,iBAAiB,EAAC,MAAM,0DAA0D,CAAC;AAC3F,OAAO,EAAC,OAAO,EAAC,MAAM,YAAY,CAAC;AAUnC,SAAS,sBAAsB,CAAC,EAC5B,OAAO,EACP,OAAO,EACP,IAAI,EACJ,SAAS,EACT,OAAO,GACoB;IAC3B,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,QAAQ,EAAE,cAAc,EAAC,GAAG,gBAAgB,EAAE,CAAC;IAEtD,MAAM,cAAc,GAAG,SAAS,CAAC,WAAW,CAAC;IAE7C,MAAM,CAAC,iBAAiB,EAAE,EAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAC,CAAC,GAAG,4BAA4B,CAAC;QAC/E,SAAS,EAAE;YACP,SAAS,EAAE,OAAO;YAClB,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,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L V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\n\nimport {Modal} from 'antd';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type IFilter, type ISearchSelection} from '_ui/types';\nimport {useDeactivateRecordsMutation} from '_ui/_gqlTypes';\nimport {getRequestFromFilters} from '_ui/_utils/getRequestFromFilter';\nimport {ErrorDisplay} from '../ErrorDisplay';\nimport useSearchReducer from '../LibraryItemsList/hooks/useSearchReducer';\nimport {SearchActionTypes} from '../LibraryItemsList/hooks/useSearchReducer/searchReducer';\nimport {Loading} from '../Loading';\n\ninterface IDeactivateRecordsModalProps {\n open: boolean;\n library: string;\n selection: ISearchSelection;\n filters?: IFilter[];\n onClose: () => void;\n}\n\nfunction DeactivateRecordsModal({\n library,\n onClose,\n open,\n selection,\n filters,\n}: IDeactivateRecordsModalProps): JSX.Element {\n const {t} = useSharedTranslation();\n const {dispatch: searchDispatch} = useSearchReducer();\n\n const hasSelectedAll = selection.allSelected;\n\n const [deactivateRecords, {loading, error, called}] = useDeactivateRecordsMutation({\n variables: {\n libraryId: library,\n recordsIds: hasSelectedAll ? null : selection.selected.map(record => record.id),\n filters: hasSelectedAll ? getRequestFromFilters(filters) : null,\n },\n });\n\n const _handleOk = async () => {\n try {\n // Run the deactivate mutation\n await deactivateRecords();\n\n searchDispatch({type: SearchActionTypes.SET_LOADING, loading: true}); // Refresh the search\n searchDispatch({type: SearchActionTypes.CLEAR_SELECTION}); // Refresh the search\n\n onClose();\n } catch (e) {\n // Errors are handled with the error variable\n }\n };\n\n return (\n <Modal\n title={t('records_deactivation.title')}\n okText={t('global.submit')}\n cancelText={t('global.cancel')}\n onOk={_handleOk}\n onCancel={onClose}\n confirmLoading={loading}\n open={open}\n closable\n centered\n okButtonProps={{className: 'submit-btn'}}\n destroyOnClose\n >\n {loading && <Loading data-testid=\"loading\" />}\n {!loading && error && <ErrorDisplay message={error.message} />}\n {!called && t('records_deactivation.confirm')}\n </Modal>\n );\n}\n\nexport default DeactivateRecordsModal;\n"]}
@@ -1 +0,0 @@
1
- export { default as DeactivateRecordsModal } from './DeactivateRecordsModal';
@@ -1,5 +0,0 @@
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
- export { default as DeactivateRecordsModal } from './DeactivateRecordsModal';
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DeactivateRecordsModal/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,0BAA0B,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nexport {default as DeactivateRecordsModal} from './DeactivateRecordsModal';\n"]}
@@ -1,13 +0,0 @@
1
- import { type FunctionComponent } from 'react';
2
- import { LibraryBehavior } from '../../../_gqlTypes';
3
- import { type IValueVersion } from '../../../types';
4
- interface ICreateNewRecordButtonProps {
5
- label: string;
6
- libraryBehavior: LibraryBehavior;
7
- libraryId: string;
8
- notifyNewCreation: () => void;
9
- valuesVersions: IValueVersion;
10
- canCreateAndEdit?: boolean;
11
- }
12
- export declare const CreateNewRecordButton: FunctionComponent<ICreateNewRecordButtonProps>;
13
- export {};
@@ -1,50 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, 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 { useState } from 'react';
6
- import { PlusOutlined } from '@ant-design/icons';
7
- import { Button } from 'antd';
8
- import { LibraryBehavior } from '../../../_gqlTypes';
9
- import { CreateDirectory, EditRecordModal, UploadFiles } from '../../../components';
10
- export const CreateNewRecordButton = ({ label, libraryBehavior, libraryId, notifyNewCreation, valuesVersions, canCreateAndEdit = true, }) => {
11
- const [isRecordCreationVisible, setIsRecordCreationVisible] = useState(false);
12
- const [isUploadFilesModalVisible, setIsUploadFilesModalVisible] = useState(false);
13
- const [isCreateDirectoryModalVisible, setIsCreateDirectoryModalVisible] = useState(false);
14
- const _handleRecordCreationClose = () => {
15
- setIsRecordCreationVisible(false);
16
- };
17
- const _handleUploadFilesClose = () => {
18
- setIsUploadFilesModalVisible(false);
19
- };
20
- const _handleCreateDirectoryClose = () => {
21
- setIsCreateDirectoryModalVisible(false);
22
- };
23
- const _handleCreate = () => {
24
- notifyNewCreation();
25
- _handleRecordCreationClose();
26
- };
27
- const _handleCreateAndEdit = () => {
28
- notifyNewCreation();
29
- };
30
- const _handleClickNew = () => {
31
- switch (libraryBehavior) {
32
- case LibraryBehavior.standard:
33
- case LibraryBehavior.join:
34
- setIsRecordCreationVisible(true);
35
- break;
36
- case LibraryBehavior.files:
37
- setIsUploadFilesModalVisible(true);
38
- break;
39
- case LibraryBehavior.directories:
40
- setIsCreateDirectoryModalVisible(true);
41
- break;
42
- }
43
- };
44
- const submitButtons = ['create'];
45
- if (canCreateAndEdit) {
46
- submitButtons.push('createAndEdit');
47
- }
48
- return (_jsxs(_Fragment, { children: [_jsx(Button, { type: "primary", block: true, icon: _jsx(PlusOutlined, {}), className: "primary-btn", onClick: _handleClickNew, children: label }), isRecordCreationVisible && (_jsx(EditRecordModal, { record: null, library: libraryId, open: isRecordCreationVisible, onClose: _handleRecordCreationClose, valuesVersion: valuesVersions, onCreate: _handleCreate, onCreateAndEdit: _handleCreateAndEdit, submitButtons: submitButtons })), isUploadFilesModalVisible && (_jsx(UploadFiles, { libraryId: libraryId, multiple: true, onClose: _handleUploadFilesClose, onCompleted: notifyNewCreation })), isCreateDirectoryModalVisible && (_jsx(CreateDirectory, { libraryId: libraryId, onClose: _handleCreateDirectoryClose, onCompleted: notifyNewCreation }))] }));
49
- };
50
- //# sourceMappingURL=CreateNewRecordButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateNewRecordButton.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAiC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAC,MAAM,EAAC,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAC,eAAe,EAAE,eAAe,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAa7E,MAAM,CAAC,MAAM,qBAAqB,GAAmD,CAAC,EAClF,KAAK,EACL,eAAe,EACf,SAAS,EACT,iBAAiB,EACjB,cAAc,EACd,gBAAgB,GAAG,IAAI,GAC1B,EAAE,EAAE;IACD,MAAM,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9E,MAAM,CAAC,yBAAyB,EAAE,4BAA4B,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClF,MAAM,CAAC,6BAA6B,EAAE,gCAAgC,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE1F,MAAM,0BAA0B,GAAG,GAAG,EAAE;QACpC,0BAA0B,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC,CAAC;IAEF,MAAM,uBAAuB,GAAG,GAAG,EAAE;QACjC,4BAA4B,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,MAAM,2BAA2B,GAAG,GAAG,EAAE;QACrC,gCAAgC,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC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EAAE,uBAAuB,EAChC,WAAW,EAAE,iBAAiB,GAChC,CACL,EACA,6BAA6B,IAAI,CAC9B,KAAC,eAAe,IACZ,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,2BAA2B,EACpC,WAAW,EAAE,iBAAiB,GAChC,CACL,IACF,CACN,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type FunctionComponent, useRef, useState} from 'react';\nimport {PlusOutlined} from '@ant-design/icons';\nimport {Button} from 'antd';\nimport {LibraryBehavior} from '_ui/_gqlTypes';\nimport {CreateDirectory, EditRecordModal, UploadFiles} from '_ui/components';\nimport {type IValueVersion} from '_ui/types';\nimport {type PossibleSubmitButtons} from '_ui/components/RecordEdition/_types';\n\ninterface ICreateNewRecordButtonProps {\n label: string;\n libraryBehavior: LibraryBehavior;\n libraryId: string;\n notifyNewCreation: () => void;\n valuesVersions: IValueVersion;\n canCreateAndEdit?: boolean;\n}\n\nexport const CreateNewRecordButton: FunctionComponent<ICreateNewRecordButtonProps> = ({\n label,\n libraryBehavior,\n libraryId,\n notifyNewCreation,\n valuesVersions,\n canCreateAndEdit = true,\n}) => {\n const [isRecordCreationVisible, setIsRecordCreationVisible] = useState(false);\n const [isUploadFilesModalVisible, setIsUploadFilesModalVisible] = useState(false);\n const [isCreateDirectoryModalVisible, setIsCreateDirectoryModalVisible] = useState(false);\n\n const _handleRecordCreationClose = () => {\n setIsRecordCreationVisible(false);\n };\n\n const _handleUploadFilesClose = () => {\n setIsUploadFilesModalVisible(false);\n };\n\n const _handleCreateDirectoryClose = () => {\n setIsCreateDirectoryModalVisible(false);\n };\n\n const _handleCreate = () => {\n notifyNewCreation();\n _handleRecordCreationClose();\n };\n\n const _handleCreateAndEdit = () => {\n notifyNewCreation();\n };\n\n const _handleClickNew = () => {\n switch (libraryBehavior) {\n case LibraryBehavior.standard:\n case LibraryBehavior.join:\n setIsRecordCreationVisible(true);\n break;\n case LibraryBehavior.files:\n setIsUploadFilesModalVisible(true);\n break;\n case LibraryBehavior.directories:\n setIsCreateDirectoryModalVisible(true);\n break;\n }\n };\n\n const submitButtons: PossibleSubmitButtons = ['create'];\n if (canCreateAndEdit) {\n submitButtons.push('createAndEdit');\n }\n\n return (\n <>\n <Button type=\"primary\" block icon={<PlusOutlined />} className=\"primary-btn\" onClick={_handleClickNew}>\n {label}\n </Button>\n {isRecordCreationVisible && (\n <EditRecordModal\n record={null}\n library={libraryId}\n open={isRecordCreationVisible}\n onClose={_handleRecordCreationClose}\n valuesVersion={valuesVersions}\n onCreate={_handleCreate}\n onCreateAndEdit={_handleCreateAndEdit}\n submitButtons={submitButtons}\n />\n )}\n {isUploadFilesModalVisible && (\n <UploadFiles\n libraryId={libraryId}\n multiple\n onClose={_handleUploadFilesClose}\n onCompleted={notifyNewCreation}\n />\n )}\n {isCreateDirectoryModalVisible && (\n <CreateDirectory\n libraryId={libraryId}\n onClose={_handleCreateDirectoryClose}\n onCompleted={notifyNewCreation}\n />\n )}\n </>\n );\n};\n"]}
@@ -1,2 +0,0 @@
1
- import { CreateNewRecordButton } from './CreateNewRecordButton';
2
- export default CreateNewRecordButton;
@@ -1,6 +0,0 @@
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 { CreateNewRecordButton } from './CreateNewRecordButton';
5
- export default CreateNewRecordButton;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/CreateNewRecordButton/index.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAE9D,eAAe,qBAAqB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {CreateNewRecordButton} from './CreateNewRecordButton';\n\nexport default CreateNewRecordButton;\n"]}
@@ -1,2 +0,0 @@
1
- declare function DisplayOptions(): JSX.Element;
2
- export default DisplayOptions;
@@ -1,80 +0,0 @@
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 { AppstoreFilled, DownOutlined, MenuOutlined } from '@ant-design/icons';
6
- import { Button, Dropdown } from 'antd';
7
- import { useState } from 'react';
8
- import styled from 'styled-components';
9
- import useSearchReducer from '../../../components/LibraryItemsList/hooks/useSearchReducer';
10
- import { SearchActionTypes } from '../../../components/LibraryItemsList/hooks/useSearchReducer/searchReducer';
11
- import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
12
- import { ViewSizes, ViewTypes } from '../../../_gqlTypes';
13
- import IconViewType from '../IconViewType';
14
- const DisplaySizeWrapper = styled.div `
15
- display: flex;
16
- justify-content: space-between;
17
-
18
- &&& {
19
- background: none;
20
- }
21
- `;
22
- function DisplayOptions() {
23
- const { t } = useSharedTranslation();
24
- const { state: searchState, dispatch: searchDispatch } = useSearchReducer();
25
- const [visible, setVisible] = useState(false);
26
- const sizes = {
27
- [ViewSizes.SMALL]: t('items_list.display.small'),
28
- [ViewSizes.MEDIUM]: t('items_list.display.medium'),
29
- [ViewSizes.BIG]: t('items_list.display.big'),
30
- };
31
- let SizeAction;
32
- (function (SizeAction) {
33
- SizeAction["LESS"] = "LESS";
34
- SizeAction["MORE"] = "MORE";
35
- })(SizeAction || (SizeAction = {}));
36
- const _handleChangeType = (type) => {
37
- searchDispatch({
38
- type: SearchActionTypes.SET_DISPLAY,
39
- display: { type, size: searchState.display.size },
40
- });
41
- };
42
- const _handleChangeSize = (action) => {
43
- let idx = Object.keys(sizes).indexOf(searchState.display.size);
44
- idx = action === SizeAction.LESS ? idx - 1 : idx + 1;
45
- idx = idx < 0 ? 0 : idx > 2 ? 2 : idx;
46
- searchDispatch({
47
- type: SearchActionTypes.SET_DISPLAY,
48
- display: { type: searchState.display.type, size: ViewSizes[Object.keys(sizes)[idx]] },
49
- });
50
- };
51
- const _handleOpenChange = () => setVisible(!visible);
52
- const menu = {
53
- style: { minWidth: '11em' },
54
- items: [
55
- {
56
- key: 'display_size',
57
- label: (_jsxs(DisplaySizeWrapper, { children: [_jsx(Button, { shape: "circle", disabled: searchState.display.size === ViewSizes.SMALL, onClick: () => _handleChangeSize(SizeAction.LESS), size: "small", children: "-" }), ` ${sizes[searchState.display.size]} `, _jsx(Button, { shape: "circle", disabled: searchState.display.size === ViewSizes.BIG, onClick: () => _handleChangeSize(SizeAction.MORE), size: "small", children: "+" })] })),
58
- },
59
- {
60
- type: 'divider',
61
- key: 'divider',
62
- },
63
- {
64
- key: 'display_list',
65
- label: t('view.type-list'),
66
- onClick: () => _handleChangeType(ViewTypes.list),
67
- icon: _jsx(MenuOutlined, {}),
68
- },
69
- {
70
- key: 'display_cards',
71
- label: t('view.type-cards'),
72
- onClick: () => _handleChangeType(ViewTypes.cards),
73
- icon: _jsx(AppstoreFilled, {}),
74
- },
75
- ],
76
- };
77
- return (_jsx(Dropdown, { open: visible, onOpenChange: _handleOpenChange, trigger: ['click'], placement: "bottomRight", menu: menu, children: _jsxs(Button, { children: [_jsx(IconViewType, { type: searchState.display.type }), _jsx(DownOutlined, {})] }) }));
78
- }
79
- export default DisplayOptions;
80
- //# sourceMappingURL=DisplayOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DisplayOptions.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/DisplayOptions/DisplayOptions.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACp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017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {AppstoreFilled, DownOutlined, MenuOutlined} from '@ant-design/icons';\nimport {Button, Dropdown, type MenuProps} from 'antd';\nimport {useState} from 'react';\nimport styled from 'styled-components';\nimport useSearchReducer from '_ui/components/LibraryItemsList/hooks/useSearchReducer';\nimport {SearchActionTypes} from '_ui/components/LibraryItemsList/hooks/useSearchReducer/searchReducer';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {ViewSizes, ViewTypes} from '_ui/_gqlTypes';\nimport IconViewType from '../IconViewType';\n\nconst DisplaySizeWrapper = styled.div`\n display: flex;\n justify-content: space-between;\n\n &&& {\n background: none;\n }\n`;\n\nfunction DisplayOptions(): JSX.Element {\n const {t} = useSharedTranslation();\n\n const {state: searchState, dispatch: searchDispatch} = useSearchReducer();\n const [visible, setVisible] = useState<boolean>(false);\n const sizes = {\n [ViewSizes.SMALL]: t('items_list.display.small'),\n [ViewSizes.MEDIUM]: t('items_list.display.medium'),\n [ViewSizes.BIG]: t('items_list.display.big'),\n };\n\n enum SizeAction {\n LESS = 'LESS',\n MORE = 'MORE',\n }\n\n const _handleChangeType = (type: ViewTypes) => {\n searchDispatch({\n type: SearchActionTypes.SET_DISPLAY,\n display: {type, size: searchState.display.size},\n });\n };\n\n const _handleChangeSize = (action: SizeAction) => {\n let idx = Object.keys(sizes).indexOf(searchState.display.size);\n idx = action === SizeAction.LESS ? idx - 1 : idx + 1;\n idx = idx < 0 ? 0 : idx > 2 ? 2 : idx;\n\n searchDispatch({\n type: SearchActionTypes.SET_DISPLAY,\n display: {type: searchState.display.type, size: ViewSizes[Object.keys(sizes)[idx]]},\n });\n };\n\n const _handleOpenChange = () => setVisible(!visible);\n\n const menu: MenuProps = {\n style: {minWidth: '11em'},\n items: [\n {\n key: 'display_size',\n label: (\n <DisplaySizeWrapper>\n <Button\n shape=\"circle\"\n disabled={searchState.display.size === ViewSizes.SMALL}\n onClick={() => _handleChangeSize(SizeAction.LESS)}\n size=\"small\"\n >\n -\n </Button>\n {` ${sizes[searchState.display.size]} `}\n <Button\n shape=\"circle\"\n disabled={searchState.display.size === ViewSizes.BIG}\n onClick={() => _handleChangeSize(SizeAction.MORE)}\n size=\"small\"\n >\n +\n </Button>\n </DisplaySizeWrapper>\n ),\n },\n {\n type: 'divider',\n key: 'divider',\n },\n {\n key: 'display_list',\n label: t('view.type-list'),\n onClick: () => _handleChangeType(ViewTypes.list),\n icon: <MenuOutlined />,\n },\n {\n key: 'display_cards',\n label: t('view.type-cards'),\n onClick: () => _handleChangeType(ViewTypes.cards),\n icon: <AppstoreFilled />,\n },\n ],\n };\n\n return (\n <Dropdown\n open={visible}\n onOpenChange={_handleOpenChange}\n trigger={['click']}\n placement=\"bottomRight\"\n menu={menu}\n >\n <Button>\n <IconViewType type={searchState.display.type} />\n <DownOutlined />\n </Button>\n </Dropdown>\n );\n}\n\nexport default DisplayOptions;\n"]}
@@ -1,2 +0,0 @@
1
- import DisplayOptions from './DisplayOptions';
2
- export default DisplayOptions;
@@ -1,6 +0,0 @@
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 DisplayOptions from './DisplayOptions';
5
- export default DisplayOptions;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/DisplayOptions/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,eAAe,cAAc,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport DisplayOptions from './DisplayOptions';\n\nexport default DisplayOptions;\n"]}
@@ -1,2 +0,0 @@
1
- declare function DisplayTypeSelector(): JSX.Element;
2
- export default DisplayTypeSelector;
@@ -1,22 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import useSearchReducer from '../../../components/LibraryItemsList/hooks/useSearchReducer';
6
- import { ViewTypes } from '../../../_gqlTypes';
7
- import Table from '../LibraryItemsListTable';
8
- import TileDisplay from '../TileDisplay';
9
- function DisplayTypeSelector() {
10
- const { state: searchState } = useSearchReducer();
11
- switch (searchState.display.type) {
12
- case ViewTypes.list:
13
- return _jsx(Table, {});
14
- case ViewTypes.timeline:
15
- return _jsx("div", { children: "Not supported yet" });
16
- case ViewTypes.cards:
17
- default:
18
- return _jsx(TileDisplay, {});
19
- }
20
- }
21
- export default DisplayTypeSelector;
22
- //# sourceMappingURL=DisplayTypeSelector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DisplayTypeSelector.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AACtF,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAC7C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,SAAS,mBAAmB;IACxB,MAAM,EAAC,KAAK,EAAE,WAAW,EAAC,GAAG,gBAAgB,EAAE,CAAC;IAEhD,QAAQ,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QAC/B,KAAK,SAAS,CAAC,IAAI;YACf,OAAO,KAAC,KAAK,KAAG,CAAC;QACrB,KAAK,SAAS,CAAC,QAAQ;YACnB,OAAO,8CAA4B,CAAC;QACxC,KAAK,SAAS,CAAC,KAAK,CAAC;QACrB;YACI,OAAO,KAAC,WAAW,KAAG,CAAC;IAC/B,CAAC;AACL,CAAC;AAED,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport useSearchReducer from '_ui/components/LibraryItemsList/hooks/useSearchReducer';\nimport {ViewTypes} from '_ui/_gqlTypes';\nimport Table from '../LibraryItemsListTable';\nimport TileDisplay from '../TileDisplay';\n\nfunction DisplayTypeSelector(): JSX.Element {\n const {state: searchState} = useSearchReducer();\n\n switch (searchState.display.type) {\n case ViewTypes.list:\n return <Table />;\n case ViewTypes.timeline:\n return <div>Not supported yet</div>;\n case ViewTypes.cards:\n default:\n return <TileDisplay />;\n }\n}\n\nexport default DisplayTypeSelector;\n"]}
@@ -1,2 +0,0 @@
1
- import DisplayTypeSelector from './DisplayTypeSelector';
2
- export default DisplayTypeSelector;
@@ -1,6 +0,0 @@
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 DisplayTypeSelector from './DisplayTypeSelector';
5
- export default DisplayTypeSelector;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/DisplayTypeSelector/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAExD,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport DisplayTypeSelector from './DisplayTypeSelector';\n\nexport default DisplayTypeSelector;\n"]}
@@ -1,13 +0,0 @@
1
- import { type IFilter } from '../../../types/search';
2
- import { type ILibraryDetailExtendedAttribute, type ILibraryDetailExtendedAttributeParentLinkedTree, type ILibraryDetailExtendedLinkedTree } from '../../../_queries/libraries/getLibraryDetailExtendQuery';
3
- interface IFiltersDropdownProps {
4
- libraryId: string;
5
- button: JSX.Element;
6
- attributes: ILibraryDetailExtendedAttribute[];
7
- libraries: ILibraryDetailExtendedAttributeParentLinkedTree['libraries'];
8
- trees: ILibraryDetailExtendedLinkedTree[];
9
- disabled?: boolean;
10
- filter?: IFilter;
11
- }
12
- declare function FiltersDropdown({ libraryId, button, attributes, libraries, trees, filter, }: IFiltersDropdownProps): JSX.Element;
13
- export default FiltersDropdown;
@@ -1,229 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { BranchesOutlined, NumberOutlined } from '@ant-design/icons';
6
- import { isTypeLink, localizedTranslation } from '@leav/utils';
7
- import { Badge, Dropdown, Input } from 'antd';
8
- import { useState } from 'react';
9
- import useSearchReducer from '../../../components/LibraryItemsList/hooks/useSearchReducer';
10
- import { SearchActionTypes } from '../../../components/LibraryItemsList/hooks/useSearchReducer/searchReducer';
11
- import { useLang } from '../../../hooks';
12
- import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
13
- import { AttributeConditionFilter, FilterType, SidebarContentType, ThroughConditionFilter, TreeConditionFilter, } from '../../../types/search';
14
- import { AttributeType } from '../../../_gqlTypes';
15
- import { defaultLinkAttributeFilterFormat } from '../constants';
16
- import { getDefaultFilterValueByFormat } from '../FiltersPanel/Filter/filterUtils';
17
- import { defaultFilterConditionByAttributeFormat } from '../helpers/defaultFilterConditionByAttributeFormat';
18
- function FiltersDropdown({ libraryId, button, attributes, libraries, trees, filter, }) {
19
- const { t } = useSharedTranslation();
20
- const { state: searchState, dispatch: searchDispatch } = useSearchReducer();
21
- const { lang } = useLang();
22
- const [visible, setVisible] = useState(false);
23
- const [search, setSearch] = useState();
24
- const getAttributeFilter = (attribute) => {
25
- // we set the new filter key with the attribute id by default
26
- let key = attribute.id;
27
- // If we replace a current filter, the filter key depends on filter type and whether it goes through parent attributes or not
28
- // The key is a concatenation of parents attribute's id
29
- if (typeof filter?.parentTreeLibrary !== 'undefined') {
30
- key = `${filter?.parentTreeLibrary.key}.${attribute.id}`;
31
- }
32
- else if (filter?.condition === ThroughConditionFilter.THROUGH && filter.type === FilterType.LIBRARY) {
33
- key = `${filter.key}.${attribute.id}`;
34
- }
35
- else if (filter?.condition === ThroughConditionFilter.THROUGH) {
36
- key = `${filter?.attribute?.id}.${attribute.id}`;
37
- }
38
- else if (filter?.attribute?.parentAttribute) {
39
- key = `${filter?.attribute?.parentAttribute.id}.${attribute.id}`;
40
- }
41
- const filterAttribute = {
42
- type: FilterType.ATTRIBUTE,
43
- index: Date.now(),
44
- active: true,
45
- key,
46
- condition: AttributeConditionFilter[defaultFilterConditionByAttributeFormat(attribute.format)],
47
- attribute: {
48
- id: attribute.id,
49
- type: attribute.type,
50
- format: isTypeLink(attribute.type) || attribute.type === AttributeType.tree
51
- ? defaultLinkAttributeFilterFormat
52
- : attribute.format,
53
- label: attribute.label,
54
- isLink: isTypeLink(attribute.type),
55
- isMultiple: attribute.multiple_values,
56
- linkedLibrary: attribute.linked_library,
57
- linkedTree: attribute.linked_tree,
58
- library: attribute.linked_library?.id || libraryId,
59
- embedded_fields: attribute.embedded_fields,
60
- },
61
- value: { value: getDefaultFilterValueByFormat(attribute.format) },
62
- };
63
- // If filter's condition is a through condition it means current filter is a parent
64
- // so we set the parentAttribute field to current filter's attribute, otherwise it means
65
- // that the current filter is just a "brother" so we get the parent attribute of the current filter instead
66
- if (filter?.condition === ThroughConditionFilter.THROUGH) {
67
- filterAttribute.attribute.parentAttribute = filter?.attribute;
68
- }
69
- else if (filter?.attribute?.parentAttribute) {
70
- filterAttribute.attribute.parentAttribute = filter?.attribute?.parentAttribute;
71
- }
72
- // When we chose an attribute through a tree attribute and a child library we have to set the parent tree library of the new filter
73
- // If current filter type is not library it means we just change the current filter attribute by another at the same level,
74
- // so the parent tree library is not as the first time, the filter itself, but the parentTreeLibrary of this one
75
- if (filter?.type === FilterType.LIBRARY) {
76
- filterAttribute.parentTreeLibrary = filter;
77
- }
78
- else if (typeof filter?.parentTreeLibrary !== 'undefined') {
79
- filterAttribute.parentTreeLibrary = filter?.parentTreeLibrary;
80
- }
81
- return filterAttribute;
82
- };
83
- const getTreeFilter = (tree) => ({
84
- type: FilterType.TREE,
85
- index: Date.now(),
86
- active: true,
87
- key: tree.id,
88
- condition: TreeConditionFilter[TreeConditionFilter.CLASSIFIED_IN],
89
- tree,
90
- value: { value: null },
91
- });
92
- const getLibraryFilter = (library) => {
93
- // If current filter's type is a LIBRARY type it means we just changed the child library
94
- // and not the parent attribute so we copy the current filter parent attribute
95
- // The key is a concatenation of parent attributes' and libraries' id
96
- const key = filter?.type !== FilterType.LIBRARY
97
- ? `${filter.attribute?.id}.${library.id}`
98
- : `${filter.parentAttribute?.id}.${library.id}`;
99
- return {
100
- type: FilterType.LIBRARY,
101
- index: Date.now(),
102
- active: true,
103
- key,
104
- condition: AttributeConditionFilter[defaultFilterConditionByAttributeFormat(defaultLinkAttributeFilterFormat)],
105
- library: { id: library.id, label: library.label },
106
- value: { value: getDefaultFilterValueByFormat(defaultLinkAttributeFilterFormat) },
107
- parentAttribute: filter?.condition === ThroughConditionFilter.THROUGH
108
- ? (filter.attribute ?? filter.parentAttribute)
109
- : filter.parentAttribute,
110
- };
111
- };
112
- const addFilter = (newFilter) => {
113
- const filters = [...searchState.filters];
114
- if (typeof filter !== 'undefined') {
115
- // we replace current filter
116
- const filterPos = searchState.filters.findIndex(f => f.index === filter.index);
117
- filters.splice(filterPos, 1, { ...newFilter, index: filter.index });
118
- setVisible(false);
119
- }
120
- else {
121
- filters.push(newFilter);
122
- }
123
- searchDispatch({
124
- type: SearchActionTypes.SET_FILTERS,
125
- filters,
126
- });
127
- searchDispatch({
128
- type: SearchActionTypes.SET_SIDEBAR,
129
- visible: true,
130
- sidebarType: SidebarContentType.FILTERS,
131
- });
132
- };
133
- const _handleOpenChange = () => setVisible(!visible);
134
- const _handleSearchChange = (e) => {
135
- setSearch(e.target.value);
136
- };
137
- const _translateLabel = function (el) {
138
- return {
139
- ...el,
140
- localizedLabel: localizedTranslation(el.label, lang) || el.id,
141
- };
142
- };
143
- const _filterBySearch = function (el) {
144
- const searchRegEx = new RegExp(`${search}`, 'i');
145
- return !search || !!el.id.match(searchRegEx) || !!el.localizedLabel.match(searchRegEx);
146
- };
147
- const filteredTrees = trees.map(_translateLabel).filter(_filterBySearch);
148
- const filteredAttributes = attributes.map(_translateLabel).filter(_filterBySearch);
149
- const filteredLibraries = libraries
150
- .map(lib => ({ ...lib, library: _translateLabel(lib.library) }))
151
- .filter(lib => _filterBySearch(lib.library));
152
- // to verify if a filter is used, we have to get the filter attribute/tree base id
153
- // and check if one of those is used in the list of filters depending on the filter type
154
- const isUIFilterUsed = (id) => searchState.filters.some(f => f?.key === id ||
155
- f.attribute?.parentAttribute?.id === id ||
156
- f.parentAttribute?.id === id ||
157
- f.parentTreeLibrary?.parentAttribute?.id === id);
158
- const menuItems = [
159
- {
160
- key: 'search',
161
- label: _jsx(Input.Search, { placeholder: t('global.search'), onChange: _handleSearchChange }),
162
- },
163
- {
164
- key: 'divider',
165
- type: 'divider',
166
- },
167
- ];
168
- let menuElements = [];
169
- if (filteredTrees.length > 0) {
170
- menuElements = [
171
- ...menuElements,
172
- {
173
- key: 'trees-group',
174
- type: 'group',
175
- label: t('filters.trees-group'),
176
- children: filteredTrees.map(tree => ({
177
- key: tree.id,
178
- icon: _jsx(BranchesOutlined, {}),
179
- onClick: () => addFilter(getTreeFilter(tree)),
180
- label: isUIFilterUsed(tree.id) ? (_jsx(Badge, { color: "blue", text: tree.localizedLabel })) : (tree.localizedLabel),
181
- })),
182
- },
183
- ];
184
- }
185
- if (filteredAttributes.length > 0) {
186
- menuElements = [
187
- ...menuElements,
188
- {
189
- key: 'attributes-group',
190
- type: 'group',
191
- label: t('filters.attributes-group'),
192
- children: filteredAttributes.map(attribute => ({
193
- key: attribute.id,
194
- icon: _jsx(NumberOutlined, {}),
195
- onClick: () => addFilter(getAttributeFilter(attribute)),
196
- label: isUIFilterUsed(attribute.id) ? (_jsx(Badge, { color: "blue", text: attribute.localizedLabel })) : (attribute.localizedLabel),
197
- })),
198
- },
199
- ];
200
- }
201
- if (filteredLibraries.length > 0) {
202
- menuElements = [
203
- ...menuElements,
204
- {
205
- key: 'libraries-group',
206
- type: 'group',
207
- label: t('filters.libraries-group'),
208
- children: filteredLibraries.map(({ library }) => ({
209
- key: library.id,
210
- icon: _jsx(NumberOutlined, {}),
211
- onClick: () => addFilter(getLibraryFilter(library)),
212
- label: isUIFilterUsed(library.id) ? (_jsx(Badge, { color: "blue", text: library.localizedLabel })) : (library.localizedLabel),
213
- })),
214
- },
215
- ];
216
- }
217
- menuItems.push({
218
- key: 'elements-wrapper',
219
- type: 'group',
220
- children: menuElements,
221
- label: null,
222
- className: 'elements-wrapper',
223
- style: { maxHeight: '75vh', overflowY: 'auto' },
224
- });
225
- const menu = { items: menuItems };
226
- return (_jsx(Dropdown, { disabled: !!filter && !filter.active, open: visible, onOpenChange: _handleOpenChange, menu: menu, trigger: ['click'], children: button }));
227
- }
228
- export default FiltersDropdown;
229
- //# sourceMappingURL=FiltersDropdown.js.map