@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,13 +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 { Switch } from 'antd';
6
- function BooleanFilter({ filter, updateFilterValue }) {
7
- const _handleChange = (value) => {
8
- updateFilterValue({ ...filter.value, value });
9
- };
10
- return (_jsx(Switch, { disabled: !filter.active, "data-test-id": "filter-input-boolean", checked: !!filter.value.value, onChange: _handleChange }));
11
- }
12
- export default BooleanFilter;
13
- //# sourceMappingURL=BooleanFilter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BooleanFilter.js","sourceRoot":"","sources":["../../../../../../../src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,MAAM,EAAC,MAAM,MAAM,CAAC;AAI5B,SAAS,aAAa,CAAC,EAAC,MAAM,EAAE,iBAAiB,EAAoB;IACjE,MAAM,aAAa,GAAG,CAAC,KAAc,EAAE,EAAE;QACrC,iBAAiB,CAAC,EAAC,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,EAAC,CAAC,CAAC;IAChD,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,MAAM,IACH,QAAQ,EAAE,CAAC,MAAM,CAAC,MAAM,kBACX,sBAAsB,EACnC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAC7B,QAAQ,EAAE,aAAa,GACzB,CACL,CAAC;AACN,CAAC;AAED,eAAe,aAAa,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 {Switch} from 'antd';\nimport React from 'react';\nimport {type IFilterInputProps} from '../../Filter';\n\nfunction BooleanFilter({filter, updateFilterValue}: IFilterInputProps): JSX.Element {\n const _handleChange = (value: boolean) => {\n updateFilterValue({...filter.value, value});\n };\n\n return (\n <Switch\n disabled={!filter.active}\n data-test-id=\"filter-input-boolean\"\n checked={!!filter.value.value}\n onChange={_handleChange}\n />\n );\n}\n\nexport default BooleanFilter;\n"]}
@@ -1,2 +0,0 @@
1
- import BooleanFilter from './BooleanFilter';
2
- export default BooleanFilter;
@@ -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 BooleanFilter from './BooleanFilter';
5
- export default BooleanFilter;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,eAAe,aAAa,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 BooleanFilter from './BooleanFilter';\n\nexport default BooleanFilter;\n"]}
@@ -1,3 +0,0 @@
1
- import { type IFilterInputProps } from '../../Filter';
2
- declare const DateBetweenFilter: ({ filter, updateFilterValue }: IFilterInputProps) => JSX.Element;
3
- export default DateBetweenFilter;
@@ -1,26 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { DatePicker } from 'antd';
3
- import dayjs from 'dayjs';
4
- import { themeVars } from '../../../../../../antdTheme';
5
- const DateBetweenFilter = ({ filter, updateFilterValue }) => {
6
- const dateRangeValue = filter?.value?.value?.from && filter?.value?.value?.to
7
- ? filter.value.value
8
- : null;
9
- const _handleChange = (value) => {
10
- if (!value) {
11
- updateFilterValue(null);
12
- return;
13
- }
14
- // Force time to 00:00:00
15
- const [dateFrom, dateTo] = value;
16
- dateFrom.startOf('day');
17
- dateTo.startOf('day');
18
- updateFilterValue({ ...filter.value, value: { from: String(dateFrom.unix()), to: String(dateTo.unix()) } });
19
- };
20
- const dayjsRange = dateRangeValue
21
- ? [dayjs(Number(dateRangeValue.from) * 1000), dayjs(Number(dateRangeValue.to) * 1000)]
22
- : null;
23
- return (_jsx(DatePicker.RangePicker, { popupStyle: { background: themeVars.defaultBg }, disabled: !filter.active, onChange: _handleChange, value: dayjsRange }));
24
- };
25
- export default DateBetweenFilter;
26
- //# sourceMappingURL=DateBetweenFilter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateBetweenFilter.js","sourceRoot":"","sources":["../../../../../../../src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAGxC,MAAM,iBAAiB,GAAG,CAAC,EAAC,MAAM,EAAE,iBAAiB,EAAoB,EAAE,EAAE;IACzE,MAAM,cAAc,GACf,MAAM,EAAE,KAAK,EAAE,KAAyB,EAAE,IAAI,IAAK,MAAM,EAAE,KAAK,EAAE,KAAyB,EAAE,EAAE;QAC5F,CAAC,CAAE,MAAM,CAAC,KAAK,CAAC,KAAyB;QACzC,CAAC,CAAC,IAAI,CAAC;IACf,MAAM,aAAa,GAAG,CAAC,KAAwC,EAAE,EAAE;QAC/D,IAAI,CAAC,KAAK,EAAE,CAAC;YACT,iBAAiB,CAAC,IAAI,CAAC,CAAC;YACxB,OAAO;QACX,CAAC;QAED,yBAAyB;QACzB,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;QACjC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAEtB,iBAAiB,CAAC,EAAC,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,EAAC,EAAC,CAAC,CAAC;IAC5G,CAAC,CAAC;IAEF,MAAM,UAAU,GAA+B,cAAc;QACzD,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;QACtF,CAAC,CAAC,IAAI,CAAC;IAEX,OAAO,CACH,KAAC,UAAU,CAAC,WAAW,IACnB,UAAU,EAAE,EAAC,UAAU,EAAE,SAAS,CAAC,SAAS,EAAC,EAC7C,QAAQ,EAAE,CAAC,MAAM,CAAC,MAAM,EACxB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,UAAU,GACnB,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,iBAAiB,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 IDateRangeValue} from '@leav/utils';\nimport {DatePicker} from 'antd';\nimport dayjs from 'dayjs';\nimport {themeVars} from '_ui/antdTheme';\nimport {type IFilterInputProps} from '../../Filter';\n\nconst DateBetweenFilter = ({filter, updateFilterValue}: IFilterInputProps) => {\n const dateRangeValue: IDateRangeValue =\n (filter?.value?.value as IDateRangeValue)?.from && (filter?.value?.value as IDateRangeValue)?.to\n ? (filter.value.value as IDateRangeValue)\n : null;\n const _handleChange = (value: [dayjs.Dayjs, dayjs.Dayjs] | null) => {\n if (!value) {\n updateFilterValue(null);\n return;\n }\n\n // Force time to 00:00:00\n const [dateFrom, dateTo] = value;\n dateFrom.startOf('day');\n dateTo.startOf('day');\n\n updateFilterValue({...filter.value, value: {from: String(dateFrom.unix()), to: String(dateTo.unix())}});\n };\n\n const dayjsRange: [dayjs.Dayjs, dayjs.Dayjs] = dateRangeValue\n ? [dayjs(Number(dateRangeValue.from) * 1000), dayjs(Number(dateRangeValue.to) * 1000)]\n : null;\n\n return (\n <DatePicker.RangePicker\n popupStyle={{background: themeVars.defaultBg}}\n disabled={!filter.active}\n onChange={_handleChange}\n value={dayjsRange}\n />\n );\n};\n\nexport default DateBetweenFilter;\n"]}
@@ -1,2 +0,0 @@
1
- import DateBetweenFilter from './DateBetweenFilter';
2
- export default DateBetweenFilter;
@@ -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 DateBetweenFilter from './DateBetweenFilter';
5
- export default DateBetweenFilter;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,eAAe,iBAAiB,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 DateBetweenFilter from './DateBetweenFilter';\n\nexport default DateBetweenFilter;\n"]}
@@ -1,3 +0,0 @@
1
- import { type IFilterInputProps } from '../../Filter';
2
- declare const DateFilter: ({ filter, updateFilterValue }: IFilterInputProps) => JSX.Element;
3
- export default DateFilter;
@@ -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 { DatePicker } from 'antd';
6
- import dayjs from 'dayjs';
7
- import { themeVars } from '../../../../../../antdTheme';
8
- const DateFilter = ({ filter, updateFilterValue }) => {
9
- const _handleChange = (value) => {
10
- if (!value) {
11
- updateFilterValue(null);
12
- return;
13
- }
14
- // Force time to 00:00:00
15
- value.startOf('day');
16
- updateFilterValue({ ...filter.value, value: value.unix() });
17
- };
18
- const value = filter?.value?.value ? dayjs(Number(filter.value.value) * 1000) : null;
19
- return (_jsx(DatePicker, { popupStyle: { background: themeVars.defaultBg }, disabled: !filter.active, onOk: _handleChange, onChange: _handleChange, "aria-label": "date-filter", value: value }));
20
- };
21
- export default DateFilter;
22
- //# sourceMappingURL=DateFilter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateFilter.js","sourceRoot":"","sources":["../../../../../../../src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAGxC,MAAM,UAAU,GAAG,CAAC,EAAC,MAAM,EAAE,iBAAiB,EAAoB,EAAE,EAAE;IAClE,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;QAChD,IAAI,CAAC,KAAK,EAAE,CAAC;YACT,iBAAiB,CAAC,IAAI,CAAC,CAAC;YACxB,OAAO;QACX,CAAC;QAED,yBAAyB;QACzB,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAErB,iBAAiB,CAAC,EAAC,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,EAAC,CAAC,CAAC;IAC9D,CAAC,CAAC;IAEF,MAAM,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAErF,OAAO,CACH,KAAC,UAAU,IACP,UAAU,EAAE,EAAC,UAAU,EAAE,SAAS,CAAC,SAAS,EAAC,EAC7C,QAAQ,EAAE,CAAC,MAAM,CAAC,MAAM,EACxB,IAAI,EAAE,aAAa,EACnB,QAAQ,EAAE,aAAa,gBACZ,aAAa,EACxB,KAAK,EAAE,KAAK,GACd,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,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 {DatePicker} from 'antd';\nimport dayjs from 'dayjs';\nimport {themeVars} from '_ui/antdTheme';\nimport {type IFilterInputProps} from '../../Filter';\n\nconst DateFilter = ({filter, updateFilterValue}: IFilterInputProps) => {\n const _handleChange = (value: dayjs.Dayjs | null) => {\n if (!value) {\n updateFilterValue(null);\n return;\n }\n\n // Force time to 00:00:00\n value.startOf('day');\n\n updateFilterValue({...filter.value, value: value.unix()});\n };\n\n const value = filter?.value?.value ? dayjs(Number(filter.value.value) * 1000) : null;\n\n return (\n <DatePicker\n popupStyle={{background: themeVars.defaultBg}}\n disabled={!filter.active}\n onOk={_handleChange}\n onChange={_handleChange}\n aria-label=\"date-filter\"\n value={value}\n />\n );\n};\n\nexport default DateFilter;\n"]}
@@ -1,2 +0,0 @@
1
- import DateFilter from './DateFilter';
2
- export default DateFilter;
@@ -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 DateFilter from './DateFilter';
5
- export default DateFilter;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,eAAe,UAAU,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 DateFilter from './DateFilter';\n\nexport default DateFilter;\n"]}
@@ -1,3 +0,0 @@
1
- import { type IFilterInputProps } from '../../Filter';
2
- declare const NumericFilter: ({ filter, updateFilterValue, onPressEnter }: IFilterInputProps) => JSX.Element;
3
- export default NumericFilter;
@@ -1,35 +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 { Input } from 'antd';
6
- import styled from 'styled-components';
7
- const StyledInput = styled(Input) `
8
- // Remove arrows on number input
9
- && {
10
- -moz-appearance: textfield;
11
- ::-webkit-inner-spin-button {
12
- -webkit-appearance: none;
13
- margin: 0;
14
- }
15
- }
16
- `;
17
- const NumericFilter = ({ filter, updateFilterValue, onPressEnter }) => {
18
- const _handleChange = (event) => {
19
- // If input is not a valid number, event.target.value will be an empty string
20
- const newValue = event.target.value || 0;
21
- updateFilterValue({ ...filter.value, value: newValue });
22
- };
23
- const _handleKeyDown = (e) => {
24
- if (e.key !== 'Enter') {
25
- return;
26
- }
27
- e.preventDefault();
28
- e.stopPropagation();
29
- onPressEnter();
30
- };
31
- const filterValue = isNaN(Number(filter.value.value)) ? '' : filter.value.value;
32
- return (_jsx(StyledInput, { type: "number", disabled: !filter.active, value: filterValue, onChange: _handleChange, onKeyDown: _handleKeyDown }));
33
- };
34
- export default NumericFilter;
35
- //# sourceMappingURL=NumericFilter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NumericFilter.js","sourceRoot":"","sources":["../../../../../../../src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAE3B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAGvC,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;;;;;;;CAShC,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,EAAC,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAoB,EAAE,EAAE;IACnF,MAAM,aAAa,GAAG,CAAC,KAA0C,EAAE,EAAE;QACjE,6EAA6E;QAC7E,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC;QACzC,iBAAiB,CAAC,EAAC,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAC,CAAC,CAAC;IAC1D,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,CAAC,CAAwC,EAAE,EAAE;QAChE,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE,CAAC;YACpB,OAAO;QACX,CAAC;QAED,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,YAAY,EAAE,CAAC;IACnB,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAE,MAAM,CAAC,KAAK,CAAC,KAAgB,CAAC;IAE5F,OAAO,CACH,KAAC,WAAW,IACR,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,MAAM,CAAC,MAAM,EACxB,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,aAAa,EACvB,SAAS,EAAE,cAAc,GAC3B,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,aAAa,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 {Input} from 'antd';\nimport React from 'react';\nimport styled from 'styled-components';\nimport {type IFilterInputProps} from '../../Filter';\n\nconst StyledInput = styled(Input)`\n // Remove arrows on number input\n && {\n -moz-appearance: textfield;\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n }\n`;\n\nconst NumericFilter = ({filter, updateFilterValue, onPressEnter}: IFilterInputProps) => {\n const _handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n // If input is not a valid number, event.target.value will be an empty string\n const newValue = event.target.value || 0;\n updateFilterValue({...filter.value, value: newValue});\n };\n\n const _handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key !== 'Enter') {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n onPressEnter();\n };\n\n const filterValue = isNaN(Number(filter.value.value)) ? '' : (filter.value.value as number);\n\n return (\n <StyledInput\n type=\"number\"\n disabled={!filter.active}\n value={filterValue}\n onChange={_handleChange}\n onKeyDown={_handleKeyDown}\n />\n );\n};\n\nexport default NumericFilter;\n"]}
@@ -1,2 +0,0 @@
1
- import NumericFilter from './NumericFilter';
2
- export default NumericFilter;
@@ -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 NumericFilter from './NumericFilter';
5
- export default NumericFilter;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,eAAe,aAAa,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 NumericFilter from './NumericFilter';\n\nexport default NumericFilter;\n"]}
@@ -1,3 +0,0 @@
1
- import { type IFilterInputProps } from '../../Filter';
2
- declare const TextFilter: ({ filter, updateFilterValue, onPressEnter }: IFilterInputProps) => JSX.Element;
3
- export default TextFilter;
@@ -1,34 +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 { Input } from 'antd';
6
- import styled from 'styled-components';
7
- import { themeVars } from '../../../../../../antdTheme';
8
- const Text = styled(Input.TextArea) `
9
- background: ${themeVars.defaultBg} 0% 0% no-repeat padding-box;
10
- border: 1px solid ${themeVars.borderColor};
11
- border-radius: 3px;
12
- `;
13
- const MAX_INPUT_ROWS = 5;
14
- const TextFilter = ({ filter, updateFilterValue, onPressEnter }) => {
15
- const _handleChange = (event) => {
16
- const newValue = (event.target.value ?? '').toString();
17
- updateFilterValue({ ...filter.value, value: newValue });
18
- };
19
- const _handlePressEnter = (e) => {
20
- // If holding shift key, keep normal behavior (ie. insert new line)
21
- if (e.shiftKey) {
22
- return;
23
- }
24
- e.preventDefault();
25
- e.stopPropagation();
26
- onPressEnter();
27
- };
28
- const value = filter.value.value ? String(filter.value.value) : null;
29
- const textRows = value ? value.split('\n').length : 1;
30
- const inputRows = textRows <= MAX_INPUT_ROWS ? textRows : MAX_INPUT_ROWS;
31
- return (_jsx(Text, { disabled: !filter.active, rows: inputRows, value: value, onChange: _handleChange, onPressEnter: _handlePressEnter, "data-testid": "filter-textarea" }));
32
- };
33
- export default TextFilter;
34
- //# sourceMappingURL=TextFilter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextFilter.js","sourceRoot":"","sources":["../../../../../../../src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAE3B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAGxC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;kBACjB,SAAS,CAAC,SAAS;wBACb,SAAS,CAAC,WAAW;;CAE5C,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,CAAC;AAEzB,MAAM,UAAU,GAAG,CAAC,EAAC,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAoB,EAAE,EAAE;IAChF,MAAM,aAAa,GAAG,CAAC,KAA6C,EAAE,EAAE;QACpE,MAAM,QAAQ,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;QAEvD,iBAAiB,CAAC,EAAC,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAC,CAAC,CAAC;IAC1D,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,CAA2C,EAAE,EAAE;QACtE,mEAAmE;QACnE,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;YACb,OAAO;QACX,CAAC;QAED,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,YAAY,EAAE,CAAC;IACnB,CAAC,CAAC;IAEF,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACrE,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,MAAM,SAAS,GAAG,QAAQ,IAAI,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC;IAEzE,OAAO,CACH,KAAC,IAAI,IACD,QAAQ,EAAE,CAAC,MAAM,CAAC,MAAM,EACxB,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,aAAa,EACvB,YAAY,EAAE,iBAAiB,iBACnB,iBAAiB,GAC/B,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,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 {Input} from 'antd';\nimport React from 'react';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\nimport {type IFilterInputProps} from '../../Filter';\n\nconst Text = styled(Input.TextArea)`\n background: ${themeVars.defaultBg} 0% 0% no-repeat padding-box;\n border: 1px solid ${themeVars.borderColor};\n border-radius: 3px;\n`;\n\nconst MAX_INPUT_ROWS = 5;\n\nconst TextFilter = ({filter, updateFilterValue, onPressEnter}: IFilterInputProps) => {\n const _handleChange = (event: React.ChangeEvent<HTMLTextAreaElement>) => {\n const newValue = (event.target.value ?? '').toString();\n\n updateFilterValue({...filter.value, value: newValue});\n };\n\n const _handlePressEnter = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {\n // If holding shift key, keep normal behavior (ie. insert new line)\n if (e.shiftKey) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n onPressEnter();\n };\n\n const value = filter.value.value ? String(filter.value.value) : null;\n const textRows = value ? value.split('\\n').length : 1;\n const inputRows = textRows <= MAX_INPUT_ROWS ? textRows : MAX_INPUT_ROWS;\n\n return (\n <Text\n disabled={!filter.active}\n rows={inputRows}\n value={value}\n onChange={_handleChange}\n onPressEnter={_handlePressEnter}\n data-testid=\"filter-textarea\"\n />\n );\n};\n\nexport default TextFilter;\n"]}
@@ -1,2 +0,0 @@
1
- import TextFilter from './TextFilter';
2
- export default TextFilter;
@@ -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 TextFilter from './TextFilter';
5
- export default TextFilter;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,eAAe,UAAU,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 TextFilter from './TextFilter';\n\nexport default TextFilter;\n"]}
@@ -1,2 +0,0 @@
1
- import { AttributeFormat } from '../../../../_gqlTypes';
2
- export declare const getDefaultFilterValueByFormat: (format: AttributeFormat) => boolean | string | number;
@@ -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 { AttributeFormat } from '../../../../_gqlTypes';
5
- import dayjs from 'dayjs';
6
- export const getDefaultFilterValueByFormat = (format) => {
7
- switch (format) {
8
- case AttributeFormat.boolean:
9
- return true;
10
- case AttributeFormat.date:
11
- return dayjs.utc().startOf('day').unix();
12
- default:
13
- return '';
14
- }
15
- };
16
- //# sourceMappingURL=filterUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterUtils.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,MAAuB,EAA6B,EAAE;IAChG,QAAQ,MAAM,EAAE,CAAC;QACb,KAAK,eAAe,CAAC,OAAO;YACxB,OAAO,IAAI,CAAC;QAChB,KAAK,eAAe,CAAC,IAAI;YACrB,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;QAC7C;YACI,OAAO,EAAE,CAAC;IAClB,CAAC;AACL,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 {AttributeFormat} from '_ui/_gqlTypes';\nimport dayjs from 'dayjs';\n\nexport const getDefaultFilterValueByFormat = (format: AttributeFormat): boolean | string | number => {\n switch (format) {\n case AttributeFormat.boolean:\n return true;\n case AttributeFormat.date:\n return dayjs.utc().startOf('day').unix();\n default:\n return '';\n }\n};\n"]}
@@ -1,2 +0,0 @@
1
- import Filter from './Filter';
2
- export default Filter;
@@ -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 Filter from './Filter';
5
- export default Filter;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/FiltersPanel/Filter/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAe,MAAM,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 Filter from './Filter';\n\nexport default Filter;\n"]}
@@ -1,8 +0,0 @@
1
- import { type ButtonProps } from 'antd';
2
- import { type ReactNode } from 'react';
3
- interface IFilterDropdownButtonProps extends ButtonProps {
4
- children?: ReactNode;
5
- secondary?: boolean;
6
- }
7
- declare function FilterDropdownButton({ children, secondary, ...buttonProps }: IFilterDropdownButtonProps): JSX.Element;
8
- export default FilterDropdownButton;
@@ -1,11 +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 { DownOutlined } from '@ant-design/icons';
6
- import { Button, Typography } from 'antd';
7
- function FilterDropdownButton({ children, secondary = false, ...buttonProps }) {
8
- return (_jsx(Button, { icon: _jsx(DownOutlined, {}), type: "text", style: { minWidth: '50%', padding: '0 .5em' }, ...buttonProps, children: _jsx(Typography.Text, { ellipsis: { tooltip: true }, type: secondary ? 'secondary' : null, style: { width: 'calc(100% - 1em)' }, children: children }) }));
9
- }
10
- export default FilterDropdownButton;
11
- //# sourceMappingURL=FilterDropdownButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FilterDropdownButton.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAC,MAAM,EAAoB,UAAU,EAAC,MAAM,MAAM,CAAC;AAQ1D,SAAS,oBAAoB,CAAC,EAAC,QAAQ,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,WAAW,EAA6B;IACnG,OAAO,CACH,KAAC,MAAM,IAAC,IAAI,EAAE,KAAC,YAAY,KAAG,EAAE,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,EAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAC,KAAM,WAAW,YACpG,KAAC,UAAU,CAAC,IAAI,IACZ,QAAQ,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,EACzB,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,EACpC,KAAK,EAAE,EAAC,KAAK,EAAE,kBAAkB,EAAC,YAEjC,QAAQ,GACK,GACb,CACZ,CAAC;AACN,CAAC;AAED,eAAe,oBAAoB,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 {DownOutlined} from '@ant-design/icons';\nimport {Button, type ButtonProps, Typography} from 'antd';\nimport React, {type ReactNode} from 'react';\n\ninterface IFilterDropdownButtonProps extends ButtonProps {\n children?: ReactNode;\n secondary?: boolean;\n}\n\nfunction FilterDropdownButton({children, secondary = false, ...buttonProps}: IFilterDropdownButtonProps): JSX.Element {\n return (\n <Button icon={<DownOutlined />} type=\"text\" style={{minWidth: '50%', padding: '0 .5em'}} {...buttonProps}>\n <Typography.Text\n ellipsis={{tooltip: true}}\n type={secondary ? 'secondary' : null}\n style={{width: 'calc(100% - 1em)'}}\n >\n {children}\n </Typography.Text>\n </Button>\n );\n}\n\nexport default FilterDropdownButton;\n"]}
@@ -1,2 +0,0 @@
1
- import FilterDropdownButton from './FilterDropdownButton';
2
- export default FilterDropdownButton;
@@ -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 FilterDropdownButton from './FilterDropdownButton';
5
- export default FilterDropdownButton;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAE1D,eAAe,oBAAoB,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 FilterDropdownButton from './FilterDropdownButton';\n\nexport default FilterDropdownButton;\n"]}
@@ -1,6 +0,0 @@
1
- import { type IFilterTree } from '../../../../types/search';
2
- interface IFilterTreeConditionProps {
3
- filter: IFilterTree;
4
- }
5
- declare const FilterTreeCondition: ({ filter }: IFilterTreeConditionProps) => JSX.Element;
6
- export default FilterTreeCondition;
@@ -1,38 +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 { Dropdown } from 'antd';
6
- import useSearchReducer from '../../../../components/LibraryItemsList/hooks/useSearchReducer';
7
- import { SearchActionTypes } from '../../../../components/LibraryItemsList/hooks/useSearchReducer/searchReducer';
8
- import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
9
- import { TreeConditionFilter } from '../../../../types/search';
10
- import FilterDropdownButton from '../FilterDropdownButton';
11
- import { getTreeConditionOptions } from '../FiltersOptions';
12
- const FilterTreeCondition = ({ filter }) => {
13
- const { t } = useSharedTranslation();
14
- const { state: searchState, dispatch: searchDispatch } = useSearchReducer();
15
- const conditionOptions = getTreeConditionOptions(t);
16
- const handleOperatorChange = (e) => {
17
- const newFilters = searchState.filters.map(f => {
18
- if (f.index === filter.index) {
19
- return {
20
- ...filter,
21
- condition: TreeConditionFilter[e],
22
- };
23
- }
24
- return f;
25
- });
26
- searchDispatch({ type: SearchActionTypes.SET_FILTERS, filters: newFilters });
27
- };
28
- const menu = {
29
- items: conditionOptions.map(condition => ({
30
- key: condition.value,
31
- onClick: () => handleOperatorChange(condition.value),
32
- label: condition.text,
33
- })),
34
- };
35
- return (_jsx(Dropdown, { disabled: !filter.active, menu: menu, trigger: ['click'], children: _jsx(FilterDropdownButton, { "data-testid": "filter-condition-dropdown", children: conditionOptions.filter(c => c.value === filter.condition)[0].text }) }));
36
- };
37
- export default FilterTreeCondition;
38
- //# sourceMappingURL=FilterTreeCondition.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FilterTreeCondition.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,MAAM,CAAC;AAC9B,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AACtF,OAAO,EAAC,iBAAiB,EAAC,MAAM,sEAAsE,CAAC;AACvG,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAmB,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AACvE,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAC,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AAM1D,MAAM,mBAAmB,GAAG,CAAC,EAAC,MAAM,EAA4B,EAAE,EAAE;IAChE,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAC,GAAG,gBAAgB,EAAE,CAAC;IAE1E,MAAM,gBAAgB,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAEpD,MAAM,oBAAoB,GAAG,CAAC,CAAM,EAAE,EAAE;QACpC,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;YAC3C,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,EAAE,CAAC;gBAC3B,OAAO;oBACH,GAAG,MAAM;oBACT,SAAS,EAAE,mBAAmB,CAAC,CAAC,CAAC;iBACpC,CAAC;YACN,CAAC;YAED,OAAO,CAAC,CAAC;QACb,CAAC,CAAC,CAAC;QAEH,cAAc,CAAC,EAAC,IAAI,EAAE,iBAAiB,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,EAAC,CAAC,CAAC;IAC/E,CAAC,CAAC;IAEF,MAAM,IAAI,GAAG;QACT,KAAK,EAAE,gBAAgB,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;YACtC,GAAG,EAAE,SAAS,CAAC,KAAK;YACpB,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB,CAAC,SAAS,CAAC,KAAK,CAAC;YACpD,KAAK,EAAE,SAAS,CAAC,IAAI;SACxB,CAAC,CAAC;KACN,CAAC;IAEF,OAAO,CACH,KAAC,QAAQ,IAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,OAAO,CAAC,YAC9D,KAAC,oBAAoB,mBAAa,2BAA2B,YACxD,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAChD,GAChB,CACd,CAAC;AACN,CAAC,CAAC;AAEF,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 {Dropdown} from 'antd';\nimport useSearchReducer from '_ui/components/LibraryItemsList/hooks/useSearchReducer';\nimport {SearchActionTypes} from '_ui/components/LibraryItemsList/hooks/useSearchReducer/searchReducer';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type IFilterTree, TreeConditionFilter} from '_ui/types/search';\nimport FilterDropdownButton from '../FilterDropdownButton';\nimport {getTreeConditionOptions} from '../FiltersOptions';\n\ninterface IFilterTreeConditionProps {\n filter: IFilterTree;\n}\n\nconst FilterTreeCondition = ({filter}: IFilterTreeConditionProps) => {\n const {t} = useSharedTranslation();\n const {state: searchState, dispatch: searchDispatch} = useSearchReducer();\n\n const conditionOptions = getTreeConditionOptions(t);\n\n const handleOperatorChange = (e: any) => {\n const newFilters = searchState.filters.map(f => {\n if (f.index === filter.index) {\n return {\n ...filter,\n condition: TreeConditionFilter[e],\n };\n }\n\n return f;\n });\n\n searchDispatch({type: SearchActionTypes.SET_FILTERS, filters: newFilters});\n };\n\n const menu = {\n items: conditionOptions.map(condition => ({\n key: condition.value,\n onClick: () => handleOperatorChange(condition.value),\n label: condition.text,\n })),\n };\n\n return (\n <Dropdown disabled={!filter.active} menu={menu} trigger={['click']}>\n <FilterDropdownButton data-testid=\"filter-condition-dropdown\">\n {conditionOptions.filter(c => c.value === filter.condition)[0].text}\n </FilterDropdownButton>\n </Dropdown>\n );\n};\n\nexport default FilterTreeCondition;\n"]}
@@ -1,2 +0,0 @@
1
- import FilterTreeCondition from './FilterTreeCondition';
2
- export default FilterTreeCondition;
@@ -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 FilterTreeCondition from './FilterTreeCondition';
5
- export default FilterTreeCondition;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/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 FilterTreeCondition from './FilterTreeCondition';\n\nexport default FilterTreeCondition;\n"]}
@@ -1,14 +0,0 @@
1
- import { type TFunction } from 'i18next';
2
- import { type AttributeConditionType, type IFilter, OperatorFilter, TreeConditionFilter } from '../../../types/search';
3
- import { AttributeFormat } from '../../../_gqlTypes';
4
- export interface IFilterConditionOption<T> {
5
- text: string;
6
- value: T;
7
- textByFormat?: {
8
- [key in AttributeFormat]?: string;
9
- };
10
- }
11
- export declare function getAttributeConditionOptions(t: TFunction): Array<IFilterConditionOption<AttributeConditionType>>;
12
- export declare function getTreeConditionOptions(t: TFunction): Array<IFilterConditionOption<TreeConditionFilter>>;
13
- export declare function getOperatorOptions(t: TFunction): Array<IFilterConditionOption<OperatorFilter>>;
14
- export declare const getConditionOptionsByType: (filter: IFilter, showThroughCondition: boolean, t: TFunction) => Array<IFilterConditionOption<AttributeConditionType>>;