@leav/ui 1.8.0-c4bc6f9a → 1.9.0-0dfef3bb

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 (502) hide show
  1. package/dist/_gqlTypes/index.d.ts +362 -173
  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/view-type/SelectViewType.js +1 -1
  47. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
  48. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +2 -2
  49. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  50. package/dist/components/Filters/_queries/treeFiltersDataQuery.d.ts +6 -0
  51. package/dist/components/Filters/_queries/treeFiltersDataQuery.js +54 -0
  52. package/dist/components/Filters/_queries/treeFiltersDataQuery.js.map +1 -0
  53. package/dist/components/Filters/context/useGetTreeFilters.js +24 -40
  54. package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
  55. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.d.ts +6 -0
  56. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js +54 -0
  57. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js.map +1 -0
  58. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +22 -41
  59. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
  60. package/dist/components/Notifications/hooks/useNotificationSubscription.d.ts +9 -3
  61. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  62. package/dist/components/RecordEdition/EditRecord/EditRecord.js +3 -3
  63. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  64. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +4 -0
  65. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  66. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -3
  67. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  68. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +28 -17
  69. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  70. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +1 -0
  71. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +30 -18
  72. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  73. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.d.ts +2 -0
  74. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +11 -0
  75. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +1 -0
  76. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.d.ts +2 -0
  77. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +35 -0
  78. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +1 -0
  79. package/dist/components/RecordEdition/_types.d.ts +1 -1
  80. package/dist/components/RecordEdition/_types.js.map +1 -1
  81. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +7 -6
  82. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  83. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +1 -1
  84. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +6 -2
  85. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
  86. package/dist/components/SearchModal/SearchModal.js +28 -18
  87. package/dist/components/SearchModal/SearchModal.js.map +1 -1
  88. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +0 -2
  89. package/dist/components/SelectTreeNode/SelectTreeNode.js +2 -2
  90. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  91. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +0 -2
  92. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +60 -115
  93. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  94. package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +0 -1
  95. package/dist/components/SelectTreeNode/TreeNodeTitle.js +3 -7
  96. package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
  97. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.d.ts +6 -0
  98. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js +56 -0
  99. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js.map +1 -0
  100. package/dist/components/SelectTreeNode/_types.d.ts +0 -1
  101. package/dist/components/SelectTreeNode/_types.js.map +1 -1
  102. package/dist/components/index.d.ts +0 -3
  103. package/dist/components/index.js +0 -3
  104. package/dist/components/index.js.map +1 -1
  105. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.d.ts +1 -1
  106. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.d.ts +9 -3
  107. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  108. package/dist/hooks/useIFrameMessenger/schema.d.ts +2 -2
  109. package/dist/hooks/useIFrameMessenger/schema.js +1 -1
  110. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  111. package/dist/hooks/useIFrameMessenger/types.d.ts +5 -0
  112. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  113. package/dist/locales/en/shared.json +11 -4
  114. package/dist/locales/fr/shared.json +11 -4
  115. package/package.json +12 -21
  116. package/dist/__mocks__/common/mockSearchContextProvider.d.ts +0 -6
  117. package/dist/__mocks__/common/mockSearchContextProvider.js +0 -10
  118. package/dist/__mocks__/common/mockSearchContextProvider.js.map +0 -1
  119. package/dist/components/AttributesSelectionList/Attribute/Attribute.d.ts +0 -3
  120. package/dist/components/AttributesSelectionList/Attribute/Attribute.js +0 -50
  121. package/dist/components/AttributesSelectionList/Attribute/Attribute.js.map +0 -1
  122. package/dist/components/AttributesSelectionList/Attribute/index.d.ts +0 -2
  123. package/dist/components/AttributesSelectionList/Attribute/index.js +0 -6
  124. package/dist/components/AttributesSelectionList/Attribute/index.js.map +0 -1
  125. package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +0 -10
  126. package/dist/components/AttributesSelectionList/AttributesSelectionList.js +0 -72
  127. package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +0 -1
  128. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +0 -7
  129. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +0 -39
  130. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js.map +0 -1
  131. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.d.ts +0 -2
  132. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js +0 -6
  133. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js.map +0 -1
  134. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.d.ts +0 -2
  135. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +0 -63
  136. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js.map +0 -1
  137. package/dist/components/AttributesSelectionList/SelectedAttributesList/index.d.ts +0 -2
  138. package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js +0 -6
  139. package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js.map +0 -1
  140. package/dist/components/AttributesSelectionList/_types.d.ts +0 -8
  141. package/dist/components/AttributesSelectionList/_types.js +0 -2
  142. package/dist/components/AttributesSelectionList/_types.js.map +0 -1
  143. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +0 -3
  144. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +0 -9
  145. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js.map +0 -1
  146. package/dist/components/AttributesSelectionList/index.d.ts +0 -2
  147. package/dist/components/AttributesSelectionList/index.js +0 -6
  148. package/dist/components/AttributesSelectionList/index.js.map +0 -1
  149. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.d.ts +0 -11
  150. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +0 -10
  151. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js.map +0 -1
  152. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.d.ts +0 -33
  153. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +0 -77
  154. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js.map +0 -1
  155. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.d.ts +0 -10
  156. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +0 -8
  157. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js.map +0 -1
  158. package/dist/components/AttributesSelectionList/sharedComponents.d.ts +0 -809
  159. package/dist/components/AttributesSelectionList/sharedComponents.js +0 -16
  160. package/dist/components/AttributesSelectionList/sharedComponents.js.map +0 -1
  161. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +0 -10
  162. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +0 -39
  163. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +0 -1
  164. package/dist/components/DeactivateRecordsModal/index.d.ts +0 -1
  165. package/dist/components/DeactivateRecordsModal/index.js +0 -5
  166. package/dist/components/DeactivateRecordsModal/index.js.map +0 -1
  167. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.d.ts +0 -13
  168. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +0 -50
  169. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +0 -1
  170. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.d.ts +0 -2
  171. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js +0 -6
  172. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js.map +0 -1
  173. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.d.ts +0 -2
  174. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +0 -80
  175. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +0 -1
  176. package/dist/components/LibraryItemsList/DisplayOptions/index.d.ts +0 -2
  177. package/dist/components/LibraryItemsList/DisplayOptions/index.js +0 -6
  178. package/dist/components/LibraryItemsList/DisplayOptions/index.js.map +0 -1
  179. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.d.ts +0 -2
  180. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js +0 -22
  181. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js.map +0 -1
  182. package/dist/components/LibraryItemsList/DisplayTypeSelector/index.d.ts +0 -2
  183. package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js +0 -6
  184. package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js.map +0 -1
  185. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +0 -13
  186. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +0 -229
  187. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +0 -1
  188. package/dist/components/LibraryItemsList/FiltersDropdown/index.d.ts +0 -2
  189. package/dist/components/LibraryItemsList/FiltersDropdown/index.js +0 -6
  190. package/dist/components/LibraryItemsList/FiltersDropdown/index.js.map +0 -1
  191. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.d.ts +0 -11
  192. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +0 -328
  193. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +0 -1
  194. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +0 -7
  195. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +0 -90
  196. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +0 -1
  197. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.d.ts +0 -2
  198. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js +0 -6
  199. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js.map +0 -1
  200. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.d.ts +0 -3
  201. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js +0 -13
  202. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js.map +0 -1
  203. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.d.ts +0 -2
  204. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js +0 -6
  205. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js.map +0 -1
  206. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.d.ts +0 -3
  207. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js +0 -26
  208. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js.map +0 -1
  209. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.d.ts +0 -2
  210. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js +0 -6
  211. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js.map +0 -1
  212. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.d.ts +0 -3
  213. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js +0 -22
  214. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js.map +0 -1
  215. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.d.ts +0 -2
  216. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js +0 -6
  217. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js.map +0 -1
  218. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.d.ts +0 -3
  219. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js +0 -35
  220. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js.map +0 -1
  221. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.d.ts +0 -2
  222. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js +0 -6
  223. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js.map +0 -1
  224. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.d.ts +0 -3
  225. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js +0 -34
  226. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js.map +0 -1
  227. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.d.ts +0 -2
  228. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js +0 -6
  229. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js.map +0 -1
  230. package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.d.ts +0 -2
  231. package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js +0 -16
  232. package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js.map +0 -1
  233. package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.d.ts +0 -2
  234. package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js +0 -6
  235. package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js.map +0 -1
  236. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.d.ts +0 -8
  237. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js +0 -11
  238. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js.map +0 -1
  239. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.d.ts +0 -2
  240. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js +0 -6
  241. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js.map +0 -1
  242. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +0 -6
  243. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +0 -38
  244. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js.map +0 -1
  245. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.d.ts +0 -2
  246. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js +0 -6
  247. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js.map +0 -1
  248. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.d.ts +0 -14
  249. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +0 -147
  250. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +0 -1
  251. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.d.ts +0 -2
  252. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +0 -121
  253. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js.map +0 -1
  254. package/dist/components/LibraryItemsList/FiltersPanel/index.d.ts +0 -2
  255. package/dist/components/LibraryItemsList/FiltersPanel/index.js +0 -6
  256. package/dist/components/LibraryItemsList/FiltersPanel/index.js.map +0 -1
  257. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.d.ts +0 -3
  258. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +0 -17
  259. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js.map +0 -1
  260. package/dist/components/LibraryItemsList/IconViewType/IconViewType.d.ts +0 -8
  261. package/dist/components/LibraryItemsList/IconViewType/IconViewType.js +0 -18
  262. package/dist/components/LibraryItemsList/IconViewType/IconViewType.js.map +0 -1
  263. package/dist/components/LibraryItemsList/IconViewType/index.d.ts +0 -2
  264. package/dist/components/LibraryItemsList/IconViewType/index.js +0 -6
  265. package/dist/components/LibraryItemsList/IconViewType/index.js.map +0 -1
  266. package/dist/components/LibraryItemsList/LibraryItemsList.d.ts +0 -14
  267. package/dist/components/LibraryItemsList/LibraryItemsList.js +0 -18
  268. package/dist/components/LibraryItemsList/LibraryItemsList.js.map +0 -1
  269. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.d.ts +0 -16
  270. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +0 -202
  271. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +0 -1
  272. package/dist/components/LibraryItemsList/LibraryItemsListContent/index.d.ts +0 -2
  273. package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js +0 -6
  274. package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js.map +0 -1
  275. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.d.ts +0 -6
  276. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +0 -32
  277. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js.map +0 -1
  278. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.d.ts +0 -2
  279. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js +0 -6
  280. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js.map +0 -1
  281. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.d.ts +0 -2
  282. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js +0 -21
  283. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js.map +0 -1
  284. package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.d.ts +0 -2
  285. package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js +0 -6
  286. package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js.map +0 -1
  287. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.d.ts +0 -8
  288. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +0 -56
  289. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js.map +0 -1
  290. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.d.ts +0 -2
  291. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js +0 -6
  292. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js.map +0 -1
  293. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.d.ts +0 -7
  294. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +0 -54
  295. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js.map +0 -1
  296. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.d.ts +0 -2
  297. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js +0 -6
  298. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js.map +0 -1
  299. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.d.ts +0 -8
  300. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +0 -66
  301. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js.map +0 -1
  302. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.d.ts +0 -2
  303. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js +0 -6
  304. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js.map +0 -1
  305. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.d.ts +0 -8
  306. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +0 -59
  307. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js.map +0 -1
  308. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +0 -9
  309. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +0 -56
  310. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js.map +0 -1
  311. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.d.ts +0 -2
  312. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js +0 -6
  313. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js.map +0 -1
  314. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.d.ts +0 -5
  315. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js +0 -34
  316. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js.map +0 -1
  317. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.d.ts +0 -2
  318. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js +0 -6
  319. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js.map +0 -1
  320. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.d.ts +0 -5
  321. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js +0 -23
  322. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js.map +0 -1
  323. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.d.ts +0 -3
  324. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +0 -80
  325. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +0 -1
  326. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.d.ts +0 -2
  327. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js +0 -6
  328. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js.map +0 -1
  329. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.d.ts +0 -2
  330. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js +0 -6
  331. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js.map +0 -1
  332. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.d.ts +0 -12
  333. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +0 -11
  334. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +0 -1
  335. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.d.ts +0 -12
  336. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js +0 -2
  337. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js.map +0 -1
  338. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.d.ts +0 -2
  339. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js +0 -40
  340. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js.map +0 -1
  341. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.d.ts +0 -6
  342. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +0 -81
  343. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js.map +0 -1
  344. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.d.ts +0 -2
  345. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js +0 -6
  346. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js.map +0 -1
  347. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.d.ts +0 -9
  348. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +0 -142
  349. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +0 -1
  350. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.d.ts +0 -2
  351. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js +0 -6
  352. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js.map +0 -1
  353. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.d.ts +0 -2
  354. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +0 -232
  355. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js.map +0 -1
  356. package/dist/components/LibraryItemsList/LibraryItemsListTable/index.d.ts +0 -2
  357. package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js +0 -6
  358. package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js.map +0 -1
  359. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.d.ts +0 -9
  360. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +0 -27
  361. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js.map +0 -1
  362. package/dist/components/LibraryItemsList/MenuItemList/index.d.ts +0 -2
  363. package/dist/components/LibraryItemsList/MenuItemList/index.js +0 -6
  364. package/dist/components/LibraryItemsList/MenuItemList/index.js.map +0 -1
  365. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.d.ts +0 -2
  366. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +0 -62
  367. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +0 -1
  368. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.d.ts +0 -2
  369. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js +0 -6
  370. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js.map +0 -1
  371. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.d.ts +0 -5
  372. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +0 -139
  373. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js.map +0 -1
  374. package/dist/components/LibraryItemsList/MenuItemListSelected/index.d.ts +0 -2
  375. package/dist/components/LibraryItemsList/MenuItemListSelected/index.js +0 -6
  376. package/dist/components/LibraryItemsList/MenuItemListSelected/index.js.map +0 -1
  377. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.d.ts +0 -2
  378. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +0 -58
  379. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js.map +0 -1
  380. package/dist/components/LibraryItemsList/MenuSelection/index.d.ts +0 -2
  381. package/dist/components/LibraryItemsList/MenuSelection/index.js +0 -6
  382. package/dist/components/LibraryItemsList/MenuSelection/index.js.map +0 -1
  383. package/dist/components/LibraryItemsList/MenuView/MenuView.d.ts +0 -6
  384. package/dist/components/LibraryItemsList/MenuView/MenuView.js +0 -162
  385. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +0 -1
  386. package/dist/components/LibraryItemsList/MenuView/index.d.ts +0 -2
  387. package/dist/components/LibraryItemsList/MenuView/index.js +0 -6
  388. package/dist/components/LibraryItemsList/MenuView/index.js.map +0 -1
  389. package/dist/components/LibraryItemsList/SearchItems/SearchItems.d.ts +0 -2
  390. package/dist/components/LibraryItemsList/SearchItems/SearchItems.js +0 -21
  391. package/dist/components/LibraryItemsList/SearchItems/SearchItems.js.map +0 -1
  392. package/dist/components/LibraryItemsList/SearchItems/index.d.ts +0 -2
  393. package/dist/components/LibraryItemsList/SearchItems/index.js +0 -6
  394. package/dist/components/LibraryItemsList/SearchItems/index.js.map +0 -1
  395. package/dist/components/LibraryItemsList/Sidebar/Sidebar.d.ts +0 -2
  396. package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +0 -58
  397. package/dist/components/LibraryItemsList/Sidebar/Sidebar.js.map +0 -1
  398. package/dist/components/LibraryItemsList/Sidebar/index.d.ts +0 -2
  399. package/dist/components/LibraryItemsList/Sidebar/index.js +0 -6
  400. package/dist/components/LibraryItemsList/Sidebar/index.js.map +0 -1
  401. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.d.ts +0 -6
  402. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +0 -199
  403. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js.map +0 -1
  404. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.d.ts +0 -2
  405. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js +0 -6
  406. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js.map +0 -1
  407. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.d.ts +0 -2
  408. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +0 -50
  409. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js.map +0 -1
  410. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.d.ts +0 -3
  411. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +0 -11
  412. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js.map +0 -1
  413. package/dist/components/LibraryItemsList/TileDisplay/index.d.ts +0 -2
  414. package/dist/components/LibraryItemsList/TileDisplay/index.js +0 -6
  415. package/dist/components/LibraryItemsList/TileDisplay/index.js.map +0 -1
  416. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.d.ts +0 -2
  417. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +0 -66
  418. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js.map +0 -1
  419. package/dist/components/LibraryItemsList/VersionsPanel/index.d.ts +0 -2
  420. package/dist/components/LibraryItemsList/VersionsPanel/index.js +0 -6
  421. package/dist/components/LibraryItemsList/VersionsPanel/index.js.map +0 -1
  422. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.d.ts +0 -9
  423. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +0 -85
  424. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +0 -1
  425. package/dist/components/LibraryItemsList/ViewPanel/EditView/index.d.ts +0 -2
  426. package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js +0 -6
  427. package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js.map +0 -1
  428. package/dist/components/LibraryItemsList/ViewPanel/View/View.d.ts +0 -7
  429. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +0 -152
  430. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +0 -1
  431. package/dist/components/LibraryItemsList/ViewPanel/View/index.d.ts +0 -2
  432. package/dist/components/LibraryItemsList/ViewPanel/View/index.js +0 -6
  433. package/dist/components/LibraryItemsList/ViewPanel/View/index.js.map +0 -1
  434. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.d.ts +0 -2
  435. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +0 -209
  436. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js.map +0 -1
  437. package/dist/components/LibraryItemsList/ViewPanel/index.d.ts +0 -2
  438. package/dist/components/LibraryItemsList/ViewPanel/index.js +0 -6
  439. package/dist/components/LibraryItemsList/ViewPanel/index.js.map +0 -1
  440. package/dist/components/LibraryItemsList/constants.d.ts +0 -12
  441. package/dist/components/LibraryItemsList/constants.js +0 -19
  442. package/dist/components/LibraryItemsList/constants.js.map +0 -1
  443. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.d.ts +0 -3
  444. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js +0 -21
  445. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js.map +0 -1
  446. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +0 -3
  447. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +0 -18
  448. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js.map +0 -1
  449. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.d.ts +0 -4
  450. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +0 -64
  451. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js.map +0 -1
  452. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.d.ts +0 -5
  453. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +0 -40
  454. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js.map +0 -1
  455. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.d.ts +0 -6
  456. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +0 -10
  457. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +0 -1
  458. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.d.ts +0 -2
  459. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js +0 -13
  460. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js.map +0 -1
  461. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.d.ts +0 -2
  462. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js +0 -18
  463. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js.map +0 -1
  464. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.d.ts +0 -8
  465. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +0 -99
  466. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +0 -1
  467. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +0 -82
  468. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js +0 -2
  469. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js.map +0 -1
  470. package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.d.ts +0 -2
  471. package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js +0 -6
  472. package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js.map +0 -1
  473. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.d.ts +0 -7
  474. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js +0 -7
  475. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js.map +0 -1
  476. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +0 -121
  477. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +0 -228
  478. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +0 -1
  479. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +0 -5
  480. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js +0 -8
  481. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js.map +0 -1
  482. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.d.ts +0 -7
  483. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +0 -40
  484. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +0 -1
  485. package/dist/components/LibraryItemsList/index.d.ts +0 -1
  486. package/dist/components/LibraryItemsList/index.js +0 -5
  487. package/dist/components/LibraryItemsList/index.js.map +0 -1
  488. package/dist/components/LibraryItemsList/manageItems.d.ts +0 -11
  489. package/dist/components/LibraryItemsList/manageItems.js +0 -98
  490. package/dist/components/LibraryItemsList/manageItems.js.map +0 -1
  491. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +0 -7
  492. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +0 -38
  493. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +0 -1
  494. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.d.ts +0 -2
  495. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js +0 -6
  496. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js.map +0 -1
  497. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.d.ts +0 -12
  498. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +0 -29
  499. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js.map +0 -1
  500. package/dist/components/LibraryItemsList/shared/sharedUtils.d.ts +0 -4
  501. package/dist/components/LibraryItemsList/shared/sharedUtils.js +0 -9
  502. package/dist/components/LibraryItemsList/shared/sharedUtils.js.map +0 -1
@@ -0,0 +1,56 @@
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 { gql } from '@apollo/client';
5
+ const DEFAULT_DEPTH_TREE_NODES = 10;
6
+ /**
7
+ * Generates recursive GraphQL for tree node children.
8
+ * Used to fetch nested children up to the specified depth.
9
+ */
10
+ export const treeContentTreeNodeChildren = (depth = 0) => `
11
+ children {
12
+ id
13
+ childrenCount
14
+ record {
15
+ id
16
+ whoAmI {
17
+ id
18
+ label
19
+ library {
20
+ id
21
+ }
22
+ }
23
+ }
24
+ ${depth > 0 ? treeContentTreeNodeChildren(depth - 1) : ''}
25
+ }
26
+ `;
27
+ export const treeContentDataQuery = (depthTreeNodes = DEFAULT_DEPTH_TREE_NODES) => gql `
28
+ query TreeContentDataQuery(
29
+ $treeId: ID!
30
+ $startAt: ID
31
+ $childrenAsRecordValuePermissionFilter: ChildrenAsRecordValuePermissionFilterInput
32
+ $dependentValuesPermissionFilter: DependentValuesPermissionFilterInput
33
+ ) {
34
+ treeContent(
35
+ treeId: $treeId
36
+ startAt: $startAt
37
+ childrenAsRecordValuePermissionFilter: $childrenAsRecordValuePermissionFilter
38
+ dependentValuesPermissionFilter: $dependentValuesPermissionFilter
39
+ ) {
40
+ id
41
+ childrenCount
42
+ record {
43
+ id
44
+ whoAmI {
45
+ id
46
+ label
47
+ library {
48
+ id
49
+ }
50
+ }
51
+ }
52
+ ${treeContentTreeNodeChildren(depthTreeNodes - 1)}
53
+ }
54
+ }
55
+ `;
56
+ //# sourceMappingURL=treeContentDataQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"treeContentDataQuery.js","sourceRoot":"","sources":["../../../../src/components/SelectTreeNode/_queries/treeContentDataQuery.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,GAAG,EAAC,MAAM,gBAAgB,CAAC;AAEnC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,KAAK,GAAG,CAAC,EAAE,EAAE,CAAC;;;;;;;;;;;;;;UAchD,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,2BAA2B,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;;CAEhE,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,cAAc,GAAG,wBAAwB,EAAE,EAAE,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAyBxE,2BAA2B,CAAC,cAAc,GAAG,CAAC,CAAC;;;CAG5D,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 {gql} from '@apollo/client';\n\nconst DEFAULT_DEPTH_TREE_NODES = 10;\n\n/**\n * Generates recursive GraphQL for tree node children.\n * Used to fetch nested children up to the specified depth.\n */\nexport const treeContentTreeNodeChildren = (depth = 0) => `\n children {\n id\n childrenCount\n record {\n id\n whoAmI {\n id\n label\n library {\n id\n }\n }\n }\n ${depth > 0 ? treeContentTreeNodeChildren(depth - 1) : ''}\n }\n`;\n\nexport const treeContentDataQuery = (depthTreeNodes = DEFAULT_DEPTH_TREE_NODES) => gql`\n query TreeContentDataQuery(\n $treeId: ID!\n $startAt: ID\n $childrenAsRecordValuePermissionFilter: ChildrenAsRecordValuePermissionFilterInput\n $dependentValuesPermissionFilter: DependentValuesPermissionFilterInput\n ) {\n treeContent(\n treeId: $treeId\n startAt: $startAt\n childrenAsRecordValuePermissionFilter: $childrenAsRecordValuePermissionFilter\n dependentValuesPermissionFilter: $dependentValuesPermissionFilter\n ) {\n id\n childrenCount\n record {\n id\n whoAmI {\n id\n label\n library {\n id\n }\n }\n }\n ${treeContentTreeNodeChildren(depthTreeNodes - 1)}\n }\n }\n`;\n"]}
@@ -3,7 +3,6 @@ import { type KitTree } from 'aristid-ds';
3
3
  import { type ITreeNodeWithRecord } from '../../types';
4
4
  export interface ITreeMapElement extends ITreeNodeWithRecord {
5
5
  isLeaf?: boolean;
6
- paginationOffset: number;
7
6
  children: ITreeMapElement[];
8
7
  parents?: string[];
9
8
  isShowMore?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/SelectTreeNode/_types.ts"],"names":[],"mappings":"AAuBA,gEAAgE;AAChE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,SAA4B,EAAkD,EAAE,CAC/G,SAAS,IAAI,SAAS,IAAI,aAAa,IAAI,SAAS,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 ComponentProps, type Key} from 'react';\nimport {type KitTree} from 'aristid-ds';\nimport {type ITreeNodeWithRecord} from '_ui/types';\n\nexport interface ITreeMapElement extends ITreeNodeWithRecord {\n isLeaf?: boolean;\n paginationOffset: number;\n children: ITreeMapElement[];\n parents?: string[];\n isShowMore?: boolean;\n selectable?: boolean;\n disabled?: boolean;\n}\n\nexport interface ITreeMap {\n [nodeId: string]: ITreeMapElement;\n}\n\ntype OnCheckFirstParam = Parameters<ComponentProps<typeof KitTree>['onCheck']>[0];\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const _isObjectSelection = (selection: OnCheckFirstParam): selection is Exclude<OnCheckFirstParam, Key[]> =>\n 'checked' in selection && 'halfChecked' in selection;\n"]}
1
+ {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/SelectTreeNode/_types.ts"],"names":[],"mappings":"AAsBA,gEAAgE;AAChE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,SAA4B,EAAkD,EAAE,CAC/G,SAAS,IAAI,SAAS,IAAI,aAAa,IAAI,SAAS,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 ComponentProps, type Key} from 'react';\nimport {type KitTree} from 'aristid-ds';\nimport {type ITreeNodeWithRecord} from '_ui/types';\n\nexport interface ITreeMapElement extends ITreeNodeWithRecord {\n isLeaf?: boolean;\n children: ITreeMapElement[];\n parents?: string[];\n isShowMore?: boolean;\n selectable?: boolean;\n disabled?: boolean;\n}\n\nexport interface ITreeMap {\n [nodeId: string]: ITreeMapElement;\n}\n\ntype OnCheckFirstParam = Parameters<ComponentProps<typeof KitTree>['onCheck']>[0];\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const _isObjectSelection = (selection: OnCheckFirstParam): selection is Exclude<OnCheckFirstParam, Key[]> =>\n 'checked' in selection && 'halfChecked' in selection;\n"]}
@@ -1,8 +1,6 @@
1
1
  export * from './AttributePicker';
2
- export * from './AttributesSelectionList';
3
2
  export * from './BasicButton';
4
3
  export * from './CreateDirectory';
5
- export * from './DeactivateRecordsModal';
6
4
  export * from './Dimmer';
7
5
  export * from './EditApplication';
8
6
  export * from './EditAttributeModal';
@@ -20,7 +18,6 @@ export * from './FloatingMenu';
20
18
  export * from './ImageLoading';
21
19
  export * from './ImageMissing';
22
20
  export * from './ImportModal';
23
- export * from './LibraryItemsList';
24
21
  export * from './LibraryPicker';
25
22
  export * from './List';
26
23
  export * from './Loading';
@@ -2,10 +2,8 @@
2
2
  // This file is released under LGPL V3
3
3
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
4
  export * from './AttributePicker';
5
- export * from './AttributesSelectionList';
6
5
  export * from './BasicButton';
7
6
  export * from './CreateDirectory';
8
- export * from './DeactivateRecordsModal';
9
7
  export * from './Dimmer';
10
8
  export * from './EditApplication';
11
9
  export * from './EditAttributeModal';
@@ -23,7 +21,6 @@ export * from './FloatingMenu';
23
21
  export * from './ImageLoading';
24
22
  export * from './ImageMissing';
25
23
  export * from './ImportModal';
26
- export * from './LibraryItemsList';
27
24
  export * from './LibraryPicker';
28
25
  export * from './List';
29
26
  export * from './Loading';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kCAAkC,CAAC;AACjD,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,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 * from './AttributePicker';\nexport * from './AttributesSelectionList';\nexport * from './BasicButton';\nexport * from './CreateDirectory';\nexport * from './DeactivateRecordsModal';\nexport * from './Dimmer';\nexport * from './EditApplication';\nexport * from './EditAttributeModal';\nexport * from './EditLibraryModal';\nexport * from './EditTreeModal';\nexport * from './EntityCard';\nexport * from './EntityPreview';\nexport * from './ErrorBoundary';\nexport * from './ErrorDisplay';\nexport * from './ErrorMessage';\nexport * from './Explorer';\nexport * from './FieldsGroup';\nexport * from './Filters';\nexport * from './FloatingMenu';\nexport * from './ImageLoading';\nexport * from './ImageMissing';\nexport * from './ImportModal';\nexport * from './LibraryItemsList';\nexport * from './LibraryPicker';\nexport * from './List';\nexport * from './Loading';\nexport * from './Notifications';\nexport * from './RecordCard';\nexport * from './RecordEdition';\nexport * from './RecordHistory';\nexport * from './RecordPreviewWithModal';\nexport * from './SearchModal';\nexport * from './SelectTreeNode';\nexport * from './SelectTreeNodeModalOld';\nexport * from './ShowMore';\nexport * from './SimpleErrorBoundary';\nexport * from './SubmitStateNotifier';\nexport * from './TreePicker';\nexport * from './TriggerPreviewsGenerationModal';\nexport * from './UploadFiles';\nexport * from './ValuesVersionConfigurator';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kCAAkC,CAAC;AACjD,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,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 * from './AttributePicker';\nexport * from './BasicButton';\nexport * from './CreateDirectory';\nexport * from './Dimmer';\nexport * from './EditApplication';\nexport * from './EditAttributeModal';\nexport * from './EditLibraryModal';\nexport * from './EditTreeModal';\nexport * from './EntityCard';\nexport * from './EntityPreview';\nexport * from './ErrorBoundary';\nexport * from './ErrorDisplay';\nexport * from './ErrorMessage';\nexport * from './Explorer';\nexport * from './FieldsGroup';\nexport * from './Filters';\nexport * from './FloatingMenu';\nexport * from './ImageLoading';\nexport * from './ImageMissing';\nexport * from './ImportModal';\nexport * from './LibraryPicker';\nexport * from './List';\nexport * from './Loading';\nexport * from './Notifications';\nexport * from './RecordCard';\nexport * from './RecordEdition';\nexport * from './RecordHistory';\nexport * from './RecordPreviewWithModal';\nexport * from './SearchModal';\nexport * from './SelectTreeNode';\nexport * from './SelectTreeNodeModalOld';\nexport * from './ShowMore';\nexport * from './SimpleErrorBoundary';\nexport * from './SubmitStateNotifier';\nexport * from './TreePicker';\nexport * from './TriggerPreviewsGenerationModal';\nexport * from './UploadFiles';\nexport * from './ValuesVersionConfigurator';\n"]}
@@ -2,4 +2,4 @@ import { type IGetLibraryDetailExtendedQuery, type IGetLibraryDetailExtendedVari
2
2
  export interface IUseGetLibraryDetailExtendedQueryHookParams {
3
3
  library: string;
4
4
  }
5
- export default function useGetLibraryDetailExtendedQuery({ library }: IUseGetLibraryDetailExtendedQueryHookParams): import("@apollo/client").QueryResult<IGetLibraryDetailExtendedQuery, IGetLibraryDetailExtendedVariables>;
5
+ export default function useGetLibraryDetailExtendedQuery({ library }: IUseGetLibraryDetailExtendedQueryHookParams): import("@apollo/client").InteropQueryResult<IGetLibraryDetailExtendedQuery, IGetLibraryDetailExtendedVariables>;
@@ -1,4 +1,10 @@
1
1
  import { type RecordUpdateFilterInput } from '../../_gqlTypes';
2
- export declare const useGetRecordUpdatesSubscription: (filters: RecordUpdateFilterInput, skip?: boolean) => import("@apollo/client").SubscriptionResult<import("../../_gqlTypes").RecordUpdateSubscription, import("../../_gqlTypes").Exact<{
3
- filters?: import("../../_gqlTypes").InputMaybe<RecordUpdateFilterInput>;
4
- }>>;
2
+ export declare const useGetRecordUpdatesSubscription: (filters: RecordUpdateFilterInput, skip?: boolean) => {
3
+ restart: () => void;
4
+ loading: boolean;
5
+ data?: import("../../_gqlTypes").RecordUpdateSubscription;
6
+ error?: import("@apollo/client").ApolloError;
7
+ variables?: import("../../_gqlTypes").Exact<{
8
+ filters?: import("../../_gqlTypes").InputMaybe<RecordUpdateFilterInput>;
9
+ }>;
10
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"useGetRecordValuesQuery.js","sourceRoot":"","sources":["../../../src/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AAEtE,OAAO,EAAmB,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAE1D,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,qBAAqB,EAA0B,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAClG,OAAO,EACH,sBAAsB,GAIzB,MAAM,+CAA+C,CAAC;AAWvD,MAAM,wBAAwB,GAAG,CAAC,SAAmB,EAAuB,EAAE,CAC1E,SAAS,CAAC,MAAM,CAAC,CAAC,UAA+B,EAAE,QAAgB,EAAE,CAAS,EAAE,EAAE;IAC9E,IAA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a,GAAG,KAAK,EAAE,gBAA0B,EAAE,EAAE;QACvD,MAAM,eAAe,GAAG;YACpB,OAAO,EAAE,wBAAwB,CAAC,gBAAgB,IAAI,EAAE,CAAC;SAC5D,CAAC;QAEF,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QAEzD,MAAM,SAAS,GAA2B,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAChF,YAAY,CAAC,EAAC,GAAG,SAAS,EAAE,GAAG,SAAS,EAAC,CAAC,CAAC;QAE3C,OAAO,WAAW,CAAC;IACvB,CAAC,CAAC;IAEF,aAAa;IACb,OAAO;QACH,GAAG,KAAK;QACR,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,OAAO,SAAS,KAAK,SAAS;QACxD,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,aAAa;KACzB,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\n\nimport {type QueryResult, useQuery} from '@apollo/client';\nimport {type Override} from '@leav/utils';\nimport {useState} from 'react';\nimport {RecordFilterCondition, type RecordFilterInput, RecordFilterOperator} from '_ui/_gqlTypes';\nimport {\n getRecordColumnsValues,\n type GetRecordColumnsValuesRecord,\n type IGetRecordColumnsValues,\n type IGetRecordColumnsValuesVariables,\n} from '../../_queries/records/getRecordColumnsValues';\n\nexport interface IColumnsValuesByRecord {\n [recordId: string]: GetRecordColumnsValuesRecord;\n}\n\nexport type IUseGetRecordColumnsValuesQueryHook = Override<\n QueryResult<IGetRecordColumnsValues>,\n {data: IColumnsValuesByRecord}\n>;\n\nconst _recordIdsToQueryFilters = (recordIds: string[]): RecordFilterInput[] =>\n recordIds.reduce((allFilters: RecordFilterInput[], recordId: string, i: number) => {\n if (i) {\n allFilters.push({operator: RecordFilterOperator.OR});\n }\n\n allFilters.push({field: 'id', condition: RecordFilterCondition.EQUAL, value: recordId});\n\n return allFilters;\n }, []);\n\nexport const useGetRecordValuesQuery = (\n libraryId: string,\n columns: string[],\n recordIds: string[],\n skip?: boolean,\n): IUseGetRecordColumnsValuesQueryHook => {\n const [queryData, setQueryData] = useState<IColumnsValuesByRecord>();\n\n const _convertQueryResult = (queryResult: IGetRecordColumnsValues): IColumnsValuesByRecord =>\n (queryResult.records.list ?? []).reduce((valuesByRecord, recordValues) => {\n valuesByRecord[recordValues._id] = recordValues;\n return valuesByRecord;\n }, {});\n\n const query = useQuery<IGetRecordColumnsValues, IGetRecordColumnsValuesVariables>(getRecordColumnsValues(columns), {\n variables: {\n library: libraryId,\n // Turn records ids into filters with OR operators\n filters: _recordIdsToQueryFilters(recordIds),\n },\n skip: skip || !libraryId || !columns.length || !recordIds.length,\n onCompleted: data => {\n const cleanData: IColumnsValuesByRecord = _convertQueryResult(data);\n setQueryData(cleanData);\n },\n });\n\n const customRefetch = async (refetchRecordIds: string[]) => {\n const customVariables = {\n filters: _recordIdsToQueryFilters(refetchRecordIds ?? []),\n };\n\n const refetchData = await query.refetch(customVariables);\n\n const cleanData: IColumnsValuesByRecord = _convertQueryResult(refetchData.data);\n setQueryData({...queryData, ...cleanData});\n\n return refetchData;\n };\n\n // @ts-ignore\n return {\n ...query,\n loading: query.loading || typeof queryData === undefined,\n data: queryData,\n refetch: customRefetch,\n };\n};\n"]}
1
+ {"version":3,"file":"useGetRecordValuesQuery.js","sourceRoot":"","sources":["../../../src/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AAEtE,OAAO,EAA2C,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAElF,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,qBAAqB,EAA0B,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAClG,OAAO,EACH,s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AAM;QAChE,WAAW,EAAE,IAAI,CAAC,EAAE;YAChB,MAAM,SAAS,GAA2B,mBAAmB,CAAC,IAAI,CAAC,CAAC;YACpE,YAAY,CAAC,SAAS,CAAC,CAAC;QAC5B,CAAC;KACJ,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG,KAAK,EAAE,gBAA0B,EAAE,EAAE;QACvD,MAAM,eAAe,GAAG;YACpB,OAAO,EAAE,wBAAwB,CAAC,gBAAgB,IAAI,EAAE,CAAC;SAC5D,CAAC;QAEF,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QAEzD,MAAM,SAAS,GAA2B,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAChF,YAAY,CAAC,EAAC,GAAG,SAAS,EAAE,GAAG,SAAS,EAAC,CAAC,CAAC;QAE3C,OAAO,WAAW,CAAC;IACvB,CAAC,CAAC;IAEF,aAAa;IACb,OAAO;QACH,GAAG,KAAK;QACR,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,OAAO,SAAS,KAAK,SAAS;QACxD,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,aAE+C;KAC3D,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\n\nimport {type ApolloQueryResult, type QueryResult, useQuery} from '@apollo/client';\nimport {type Override} from '@leav/utils';\nimport {useState} from 'react';\nimport {RecordFilterCondition, type RecordFilterInput, RecordFilterOperator} from '_ui/_gqlTypes';\nimport {\n getRecordColumnsValues,\n type GetRecordColumnsValuesRecord,\n type IGetRecordColumnsValues,\n type IGetRecordColumnsValuesVariables,\n} from '../../_queries/records/getRecordColumnsValues';\n\nexport interface IColumnsValuesByRecord {\n [recordId: string]: GetRecordColumnsValuesRecord;\n}\n\nexport type IUseGetRecordColumnsValuesQueryHook = Override<\n QueryResult<IGetRecordColumnsValues>,\n {data: IColumnsValuesByRecord}\n>;\n\nconst _recordIdsToQueryFilters = (recordIds: string[]): RecordFilterInput[] =>\n recordIds.reduce((allFilters: RecordFilterInput[], recordId: string, i: number) => {\n if (i) {\n allFilters.push({operator: RecordFilterOperator.OR});\n }\n\n allFilters.push({field: 'id', condition: RecordFilterCondition.EQUAL, value: recordId});\n\n return allFilters;\n }, []);\n\nexport const useGetRecordValuesQuery = (\n libraryId: string,\n columns: string[],\n recordIds: string[],\n skip?: boolean,\n): IUseGetRecordColumnsValuesQueryHook => {\n const [queryData, setQueryData] = useState<IColumnsValuesByRecord>();\n\n const _convertQueryResult = (queryResult: IGetRecordColumnsValues): IColumnsValuesByRecord =>\n (queryResult.records.list ?? []).reduce((valuesByRecord, recordValues) => {\n valuesByRecord[recordValues._id] = recordValues;\n return valuesByRecord;\n }, {});\n\n const query = useQuery<IGetRecordColumnsValues, IGetRecordColumnsValuesVariables>(getRecordColumnsValues(columns), {\n variables: {\n library: libraryId,\n // Turn records ids into filters with OR operators\n filters: _recordIdsToQueryFilters(recordIds),\n },\n skip: skip || !libraryId || !columns.length || !recordIds.length,\n onCompleted: data => {\n const cleanData: IColumnsValuesByRecord = _convertQueryResult(data);\n setQueryData(cleanData);\n },\n });\n\n const customRefetch = async (refetchRecordIds: string[]) => {\n const customVariables = {\n filters: _recordIdsToQueryFilters(refetchRecordIds ?? []),\n };\n\n const refetchData = await query.refetch(customVariables);\n\n const cleanData: IColumnsValuesByRecord = _convertQueryResult(refetchData.data);\n setQueryData({...queryData, ...cleanData});\n\n return refetchData;\n };\n\n // @ts-ignore\n return {\n ...query,\n loading: query.loading || typeof queryData === undefined,\n data: queryData,\n refetch: customRefetch as (\n variables?: Partial<IGetRecordColumnsValuesVariables>,\n ) => Promise<ApolloQueryResult<IGetRecordColumnsValues>>,\n };\n};\n"]}
@@ -44,7 +44,7 @@ export declare const iframePanelSchema: z.ZodObject<{
44
44
  export declare const creationPanelSchema: z.ZodObject<{
45
45
  type: z.ZodLiteral<"creationForm">;
46
46
  formId: z.ZodString;
47
- attributeSource: z.ZodString;
47
+ attributeSource: z.ZodOptional<z.ZodString>;
48
48
  isStandalone: z.ZodLiteral<true>;
49
49
  }, z.core.$strip>;
50
50
  export declare const baseExplorerPanelSchema: z.ZodObject<{
@@ -138,7 +138,7 @@ export declare const PanelSchema: z.ZodIntersection<z.ZodObject<{
138
138
  }, z.core.$strip>, z.ZodObject<{
139
139
  type: z.ZodLiteral<"creationForm">;
140
140
  formId: z.ZodString;
141
- attributeSource: z.ZodString;
141
+ attributeSource: z.ZodOptional<z.ZodString>;
142
142
  isStandalone: z.ZodLiteral<true>;
143
143
  }, z.core.$strip>]>>;
144
144
  export declare const PanelIFrameSchema: z.ZodIntersection<z.ZodObject<{
@@ -59,7 +59,7 @@ const editionPanelSchema = z.object({
59
59
  export const creationPanelSchema = z.object({
60
60
  type: z.literal('creationForm'),
61
61
  formId: z.string(),
62
- attributeSource: z.string(),
62
+ attributeSource: z.string().optional(),
63
63
  isStandalone: z.literal(true),
64
64
  });
65
65
  export const baseExplorerPanelSchema = z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/hooks/useIFrameMessenger/schema.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE9C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AACxC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AACzC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAC1C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,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4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC1C,SAAS,EAAE,eAAe;IAC1B,aAAa,EAAE,mBAAmB,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC;AAEH,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,aAAa,EAAE,mBAAmB,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,uBAAuB,CAAC,GAAG,CACnD,CAAC,CAAC,KAAK,CAAC,CAAC,4BAA4B,EAAE,0BAA0B,CAAC,CAAC,CACtE,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,GAAG,CAC1C,CAAC,CAAC,KAAK,CAAC,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,mBAAmB,CAAC,CAAC,CAC7F,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,GAAG,CAAC,iBAAiB,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 * as z from 'zod/v4';\n\nexport const FONT_AWESOME_ICON_REGEX = /^fa-/;\n\nexport const PanelIdSchema = z.string();\nexport const LanguageSchema = z.string();\nexport const LibraryIdSchema = z.string();\nexport const FontAwesomeIconSchema = z.string().regex(FONT_AWESOME_ICON_REGEX).optional();\n\nexport const WhereSchema = z.union([z.literal('popup'), z.literal('slider'), z.literal('fullpage')]);\n\nexport const FlapPanelIdSchema = z.union([z.literal('info-history'), z.literal('thread')]);\n\nexport const ExplorerPropsSchema = z.object({\n showSearch: z.boolean().optional(),\n showFilters: z.boolean().optional(),\n showSorts: z.boolean().optional(),\n freezeView: z.boolean().optional(),\n showAttributeLabels: z.boolean().optional(),\n creationFormId: z.string().optional(),\n noPagination: z.literal(true).optional(),\n showActionsLabels: z.boolean().optional(),\n defaultPrimaryActions: z.array(z.union([z.literal('create')])).optional(),\n defaultMassActions: z\n .array(z.union([z.literal('deactivate'), z.literal('export'), z.literal('editAttribute')]))\n .optional(),\n defaultActionsForItem: z\n .array(z.union([z.literal('replaceLink'), z.literal('remove'), z.literal('activate')]))\n .optional(),\n});\n\nexport const ItemActionsSchema = z\n .array(\n z.object({\n where: WhereSchema,\n what: z.literal('record'),\n targetPanelId: PanelIdSchema.optional(),\n targetFlapPanelId: FlapPanelIdSchema.optional(),\n icon: FontAwesomeIconSchema,\n label: z.record(LanguageSchema, z.string()),\n onRowClick: z.boolean().optional(),\n }),\n )\n .refine(actions => actions.reduce((acc, action) => (action.onRowClick ? acc + 1 : acc), 0) <= 1, {\n message: 'At most one action must have onRowClick set to true',\n });\n\nexport const basePanelSchema = z.object({\n id: PanelIdSchema,\n icon: FontAwesomeIconSchema,\n name: z.record(LanguageSchema, z.string()).optional(),\n isStandalone: z.boolean().optional(),\n hideInCompactMode: z.boolean().optional(),\n});\n\nexport const iframePanelSchema = z.object({\n type: z.literal('custom'),\n iframeSource: z.string(),\n viewId: z.string().optional(),\n isSelfContaining: z.boolean().optional(),\n});\n\nconst editionPanelSchema = z.object({\n type: z.literal('editionForm'),\n formId: z.string(),\n});\n\nexport const creationPanelSchema = z.object({\n type: z.literal('creationForm'),\n formId: z.string(),\n attributeSource: z.string(),\n isStandalone: z.literal(true),\n});\n\nexport const baseExplorerPanelSchema = z.object({\n type: z.literal('explorer'),\n viewId: z.string().optional(),\n actions: ItemActionsSchema,\n});\n\nexport const attributeExplorerPanelSchema = z.object({\n attributeSource: z.string(),\n deactivateOnUnlink: z.boolean().optional(),\n libraryId: LibraryIdSchema,\n explorerProps: ExplorerPropsSchema.optional(),\n});\n\nconst libraryExplorerPanelSchema = z.object({\n explorerProps: ExplorerPropsSchema.optional(),\n});\n\nconst explorerPanelSchema = baseExplorerPanelSchema.and(\n z.union([attributeExplorerPanelSchema, libraryExplorerPanelSchema]),\n);\n\nexport const PanelSchema = basePanelSchema.and(\n z.union([explorerPanelSchema, iframePanelSchema, editionPanelSchema, creationPanelSchema]),\n);\n\nexport const PanelIFrameSchema = basePanelSchema.and(iframePanelSchema);\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/hooks/useIFrameMessenger/schema.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE9C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AACxC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AACzC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAC1C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,QAAQ,EAAE,CAAC;AAE1F,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAErG,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAE3F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,CAAC,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,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,GAAG,CAC1C,CAAC,CAAC,KAAK,CAAC,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,mBAAmB,CAAC,CAAC,CAC7F,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,GAAG,CAAC,iBAAiB,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 * as z from 'zod/v4';\n\nexport const FONT_AWESOME_ICON_REGEX = /^fa-/;\n\nexport const PanelIdSchema = z.string();\nexport const LanguageSchema = z.string();\nexport const LibraryIdSchema = z.string();\nexport const FontAwesomeIconSchema = z.string().regex(FONT_AWESOME_ICON_REGEX).optional();\n\nexport const WhereSchema = z.union([z.literal('popup'), z.literal('slider'), z.literal('fullpage')]);\n\nexport const FlapPanelIdSchema = z.union([z.literal('info-history'), z.literal('thread')]);\n\nexport const ExplorerPropsSchema = z.object({\n showSearch: z.boolean().optional(),\n showFilters: z.boolean().optional(),\n showSorts: z.boolean().optional(),\n freezeView: z.boolean().optional(),\n showAttributeLabels: z.boolean().optional(),\n creationFormId: z.string().optional(),\n noPagination: z.literal(true).optional(),\n showActionsLabels: z.boolean().optional(),\n defaultPrimaryActions: z.array(z.union([z.literal('create')])).optional(),\n defaultMassActions: z\n .array(z.union([z.literal('deactivate'), z.literal('export'), z.literal('editAttribute')]))\n .optional(),\n defaultActionsForItem: z\n .array(z.union([z.literal('replaceLink'), z.literal('remove'), z.literal('activate')]))\n .optional(),\n});\n\nexport const ItemActionsSchema = z\n .array(\n z.object({\n where: WhereSchema,\n what: z.literal('record'),\n targetPanelId: PanelIdSchema.optional(),\n targetFlapPanelId: FlapPanelIdSchema.optional(),\n icon: FontAwesomeIconSchema,\n label: z.record(LanguageSchema, z.string()),\n onRowClick: z.boolean().optional(),\n }),\n )\n .refine(actions => actions.reduce((acc, action) => (action.onRowClick ? acc + 1 : acc), 0) <= 1, {\n message: 'At most one action must have onRowClick set to true',\n });\n\nexport const basePanelSchema = z.object({\n id: PanelIdSchema,\n icon: FontAwesomeIconSchema,\n name: z.record(LanguageSchema, z.string()).optional(),\n isStandalone: z.boolean().optional(),\n hideInCompactMode: z.boolean().optional(),\n});\n\nexport const iframePanelSchema = z.object({\n type: z.literal('custom'),\n iframeSource: z.string(),\n viewId: z.string().optional(),\n isSelfContaining: z.boolean().optional(),\n});\n\nconst editionPanelSchema = z.object({\n type: z.literal('editionForm'),\n formId: z.string(),\n});\n\nexport const creationPanelSchema = z.object({\n type: z.literal('creationForm'),\n formId: z.string(),\n attributeSource: z.string().optional(),\n isStandalone: z.literal(true),\n});\n\nexport const baseExplorerPanelSchema = z.object({\n type: z.literal('explorer'),\n viewId: z.string().optional(),\n actions: ItemActionsSchema,\n});\n\nexport const attributeExplorerPanelSchema = z.object({\n attributeSource: z.string(),\n deactivateOnUnlink: z.boolean().optional(),\n libraryId: LibraryIdSchema,\n explorerProps: ExplorerPropsSchema.optional(),\n});\n\nconst libraryExplorerPanelSchema = z.object({\n explorerProps: ExplorerPropsSchema.optional(),\n});\n\nconst explorerPanelSchema = baseExplorerPanelSchema.and(\n z.union([attributeExplorerPanelSchema, libraryExplorerPanelSchema]),\n);\n\nexport const PanelSchema = basePanelSchema.and(\n z.union([explorerPanelSchema, iframePanelSchema, editionPanelSchema, creationPanelSchema]),\n);\n\nexport const PanelIFrameSchema = basePanelSchema.and(iframePanelSchema);\n"]}
@@ -4,6 +4,8 @@ import { type KitNotification } from 'aristid-ds';
4
4
  import { type IKitConfirmDialog } from 'aristid-ds/dist/Kit/Feedback/Modal/types';
5
5
  import { type ToastedAlertProps } from 'aristid-ds/dist/Kit/Feedback/Alert/types';
6
6
  import { type LibraryIdSchema, type WhereSchema, type PanelIdSchema, type PanelSchema, type PanelIFrameSchema, type FlapPanelIdSchema, type attributeExplorerPanelSchema, type baseExplorerPanelSchema } from '../../hooks/useIFrameMessenger/schema';
7
+ import { type AnyPrimitive } from '@leav/utils';
8
+ import { type IRecordIdentity, type ITreeNodeWithRecord } from '../../types';
7
9
  export declare const packetId = "__fromIframeMessenger";
8
10
  export interface IEncodedMessage {
9
11
  payload: string;
@@ -67,6 +69,9 @@ export type NavigateToPanelMessage = IMessageBase & {
67
69
  flapRecordId?: string;
68
70
  flapLibraryId?: LibraryId;
69
71
  flapPanelId?: FlapPanelId;
72
+ queryParams?: Record<string, string> & {
73
+ formInitialValues?: Record<string, Array<AnyPrimitive | IRecordIdentity | ITreeNodeWithRecord>>;
74
+ };
70
75
  };
71
76
  };
72
77
  export type ClosePanelMessage = IMessageBase & {
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/hooks/useIFrameMessenger/types.ts"],"names":[],"mappings":"AAmBA,MAAM,CAAC,MAAM,QAAQ,GAAG,uBAAuB,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 RefObject, type ComponentProps, type Key, type JSXElementConstructor} from 'react';\nimport type * as z from 'zod/v4';\nimport {type KitNotification} from 'aristid-ds';\nimport {type IKitConfirmDialog} from 'aristid-ds/dist/Kit/Feedback/Modal/types';\nimport {type ToastedAlertProps} from 'aristid-ds/dist/Kit/Feedback/Alert/types';\nimport {\n type LibraryIdSchema,\n type WhereSchema,\n type PanelIdSchema,\n type PanelSchema,\n type PanelIFrameSchema,\n type FlapPanelIdSchema,\n type attributeExplorerPanelSchema,\n type baseExplorerPanelSchema,\n} from '_ui/hooks/useIFrameMessenger/schema';\n\nexport const packetId = '__fromIframeMessenger';\n\nexport interface IEncodedMessage {\n payload: string;\n [packetId]: boolean;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type ComponentPropsWithKey<T extends keyof JSX.IntrinsicElements | JSXElementConstructor<any>> =\n ComponentProps<T> & {\n key?: Key;\n };\n\nexport interface IMessageBase {\n __frameId?: string;\n}\n\nexport type ModalConfirmMessage = IMessageBase & {\n type: 'modal-confirm';\n id: string;\n data: IKitConfirmDialog;\n overrides?: string[];\n};\n\nexport type AlertMessage = IMessageBase & {\n type: 'alert';\n id: string;\n data: ToastedAlertProps;\n overrides?: string[];\n};\n\nexport type NotificationMessage = IMessageBase & {\n type: 'notification';\n id: string;\n data: ComponentPropsWithKey<typeof KitNotification>;\n overrides?: string[];\n};\n\nexport type ChangeLanguageMessage = IMessageBase & {\n type: 'change-language';\n language: string;\n};\n\nexport type SimpleMessage = IMessageBase & {\n type: 'message';\n id: string;\n data: unknown;\n};\n\nexport type RegisterMessage = IMessageBase & {\n type: 'register';\n id: string;\n};\n\nexport type UnregisterMessage = IMessageBase & {\n type: 'unregister';\n id: string;\n};\n\nexport type Panel = z.infer<typeof PanelSchema>;\n\nexport type AttributeExplorerPanel = Panel &\n z.infer<typeof baseExplorerPanelSchema> &\n z.infer<typeof attributeExplorerPanelSchema>;\n\nexport type LibraryId = z.infer<typeof LibraryIdSchema>;\n\nexport type PanelId = z.infer<typeof PanelIdSchema>;\n\nexport type Where = z.infer<typeof WhereSchema>;\n\nexport type PanelIFrame = z.infer<typeof PanelIFrameSchema>;\n\ntype FlapPanelId = z.infer<typeof FlapPanelIdSchema>;\n\nexport type NavigateToPanelMessage = IMessageBase & {\n type: 'navigate-to-panel';\n data: {\n where: Where;\n libraryId: LibraryId;\n panelId?: PanelId;\n recordId?: string;\n flapRecordId?: string;\n flapLibraryId?: LibraryId;\n flapPanelId?: FlapPanelId;\n };\n};\n\nexport type ClosePanelMessage = IMessageBase & {\n type: 'close-panel';\n data: {\n recordId: string;\n where: string;\n recordPanelId: string;\n };\n};\n\nexport type NavigateToIframeMessage = IMessageBase & {\n type: 'navigate-to-iframe';\n data: {\n panel: PanelIFrame;\n destination: {libraryId: LibraryId};\n where: Where;\n recordId: string;\n recordPanelId: string;\n };\n};\n\nexport type MessageToPanelMessage = IMessageBase & {\n type: 'message-to-panel';\n data: {\n type: string;\n target?: string;\n payload: unknown;\n };\n};\n\nexport type OpenFlapPanelMessage = IMessageBase & {\n type: 'open-flap-panel';\n data: {\n flapRecordId: string;\n flapLibraryId: LibraryId;\n flapPanelId: FlapPanelId;\n redirectUrl?: string;\n };\n};\n\nexport type CloseFlapPanelMessage = IMessageBase & {\n type: 'close-flap-panel';\n};\n\nexport type GetUrlMessage = IMessageBase & {\n type: 'get-url';\n id: string;\n data: {\n onGetUrl: (url: string) => void;\n flapParams?: {\n flapRecordId: string;\n flapLibraryId: LibraryId;\n flapPanelId: FlapPanelId;\n };\n panelParams?: {\n recordId: string;\n where: Where;\n recordPanelId: PanelId;\n };\n };\n overrides?: string[];\n};\n\nexport type GetPanelConfigMessage = IMessageBase & {\n type: 'get-panel-config';\n id: string;\n data: {\n panelId?: string;\n onGetPanelConfig: (data: PanelIFrame) => void;\n };\n overrides?: string[];\n};\n\nexport type MessageToParent =\n | ModalConfirmMessage\n | AlertMessage\n | NotificationMessage\n | SimpleMessage\n | RegisterMessage\n | UnregisterMessage\n | NavigateToPanelMessage\n | ClosePanelMessage\n | NavigateToIframeMessage\n | MessageToPanelMessage\n | OpenFlapPanelMessage\n | CloseFlapPanelMessage\n | GetUrlMessage\n | GetPanelConfigMessage;\n\nexport type MessageFromParent =\n | (IMessageBase & {\n type: 'on-call-callback';\n path: string;\n data: unknown;\n })\n | ChangeLanguageMessage;\n\nexport type Message = MessageToParent | MessageFromParent;\n\nexport type MessageHandler<T = Message> = (message: T, dispatch: MessageDispatcher<T>) => void;\nexport type MessageDispatcher<T = Message> = (message: T, frameId?: string) => void;\n\nexport type CallCbFunction = (path: string, data: unknown, frameId: string) => void;\n\nexport type CallbackFunction = (...args: never[]) => void;\nexport type Callbacks = Record<string, Record<string, CallbackFunction>>;\n\nexport type MessageToPanelMessageHandler = (data: MessageToPanelMessage['data']['payload']) => void;\nexport type AddMessageToPanelMessageHandler = (type: string, handler: MessageToPanelMessageHandler) => void;\n\nexport interface IUseIFrameMessengerOptions {\n ref?: RefObject<HTMLIFrameElement>;\n id?: string;\n handlers?: {\n onModalConfirm?: (\n data: ModalConfirmMessage['data'],\n id: string,\n dispatch: MessageDispatcher,\n callCb: CallCbFunction,\n ) => void;\n onAlert?: (data: AlertMessage['data'], id: string, dispatch: MessageDispatcher, callCb: CallCbFunction) => void;\n onNotification?: (\n data: NotificationMessage['data'],\n id: string,\n dispatch: MessageDispatcher,\n callCb: CallCbFunction,\n ) => void;\n onMessage?: (data: unknown, id: string, dispatch: MessageDispatcher, callCb: CallCbFunction) => void;\n onNavigateToPanel?: (data: NavigateToPanelMessage['data']) => void;\n onClosePanel?: (data: ClosePanelMessage['data']) => void;\n onNavigateToIframe?: (data: NavigateToIframeMessage['data']) => void;\n onOpenFlapPanel?: (data: OpenFlapPanelMessage['data']) => void;\n onGetUrl?: (data: GetUrlMessage['data']) => void;\n onGetPanelConfig?: (\n data: GetPanelConfigMessage['data'],\n id: string,\n dispatch: MessageDispatcher,\n callCb: CallCbFunction,\n ) => void;\n onCloseFlapPanel?: () => void;\n };\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/hooks/useIFrameMessenger/types.ts"],"names":[],"mappings":"AAqBA,MAAM,CAAC,MAAM,QAAQ,GAAG,uBAAuB,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 RefObject, type ComponentProps, type Key, type JSXElementConstructor} from 'react';\nimport type * as z from 'zod/v4';\nimport {type KitNotification} from 'aristid-ds';\nimport {type IKitConfirmDialog} from 'aristid-ds/dist/Kit/Feedback/Modal/types';\nimport {type ToastedAlertProps} from 'aristid-ds/dist/Kit/Feedback/Alert/types';\nimport {\n type LibraryIdSchema,\n type WhereSchema,\n type PanelIdSchema,\n type PanelSchema,\n type PanelIFrameSchema,\n type FlapPanelIdSchema,\n type attributeExplorerPanelSchema,\n type baseExplorerPanelSchema,\n} from '_ui/hooks/useIFrameMessenger/schema';\nimport {type AnyPrimitive} from '@leav/utils';\nimport {type IRecordIdentity, type ITreeNodeWithRecord} from '_ui/types';\n\nexport const packetId = '__fromIframeMessenger';\n\nexport interface IEncodedMessage {\n payload: string;\n [packetId]: boolean;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type ComponentPropsWithKey<T extends keyof JSX.IntrinsicElements | JSXElementConstructor<any>> =\n ComponentProps<T> & {\n key?: Key;\n };\n\nexport interface IMessageBase {\n __frameId?: string;\n}\n\nexport type ModalConfirmMessage = IMessageBase & {\n type: 'modal-confirm';\n id: string;\n data: IKitConfirmDialog;\n overrides?: string[];\n};\n\nexport type AlertMessage = IMessageBase & {\n type: 'alert';\n id: string;\n data: ToastedAlertProps;\n overrides?: string[];\n};\n\nexport type NotificationMessage = IMessageBase & {\n type: 'notification';\n id: string;\n data: ComponentPropsWithKey<typeof KitNotification>;\n overrides?: string[];\n};\n\nexport type ChangeLanguageMessage = IMessageBase & {\n type: 'change-language';\n language: string;\n};\n\nexport type SimpleMessage = IMessageBase & {\n type: 'message';\n id: string;\n data: unknown;\n};\n\nexport type RegisterMessage = IMessageBase & {\n type: 'register';\n id: string;\n};\n\nexport type UnregisterMessage = IMessageBase & {\n type: 'unregister';\n id: string;\n};\n\nexport type Panel = z.infer<typeof PanelSchema>;\n\nexport type AttributeExplorerPanel = Panel &\n z.infer<typeof baseExplorerPanelSchema> &\n z.infer<typeof attributeExplorerPanelSchema>;\n\nexport type LibraryId = z.infer<typeof LibraryIdSchema>;\n\nexport type PanelId = z.infer<typeof PanelIdSchema>;\n\nexport type Where = z.infer<typeof WhereSchema>;\n\nexport type PanelIFrame = z.infer<typeof PanelIFrameSchema>;\n\ntype FlapPanelId = z.infer<typeof FlapPanelIdSchema>;\n\nexport type NavigateToPanelMessage = IMessageBase & {\n type: 'navigate-to-panel';\n data: {\n where: Where;\n libraryId: LibraryId;\n panelId?: PanelId;\n recordId?: string;\n flapRecordId?: string;\n flapLibraryId?: LibraryId;\n flapPanelId?: FlapPanelId;\n queryParams?: Record<string, string> & {\n formInitialValues?: Record<string, Array<AnyPrimitive | IRecordIdentity | ITreeNodeWithRecord>>;\n };\n };\n};\n\nexport type ClosePanelMessage = IMessageBase & {\n type: 'close-panel';\n data: {\n recordId: string;\n where: string;\n recordPanelId: string;\n };\n};\n\nexport type NavigateToIframeMessage = IMessageBase & {\n type: 'navigate-to-iframe';\n data: {\n panel: PanelIFrame;\n destination: {libraryId: LibraryId};\n where: Where;\n recordId: string;\n recordPanelId: string;\n };\n};\n\nexport type MessageToPanelMessage = IMessageBase & {\n type: 'message-to-panel';\n data: {\n type: string;\n target?: string;\n payload: unknown;\n };\n};\n\nexport type OpenFlapPanelMessage = IMessageBase & {\n type: 'open-flap-panel';\n data: {\n flapRecordId: string;\n flapLibraryId: LibraryId;\n flapPanelId: FlapPanelId;\n redirectUrl?: string;\n };\n};\n\nexport type CloseFlapPanelMessage = IMessageBase & {\n type: 'close-flap-panel';\n};\n\nexport type GetUrlMessage = IMessageBase & {\n type: 'get-url';\n id: string;\n data: {\n onGetUrl: (url: string) => void;\n flapParams?: {\n flapRecordId: string;\n flapLibraryId: LibraryId;\n flapPanelId: FlapPanelId;\n };\n panelParams?: {\n recordId: string;\n where: Where;\n recordPanelId: PanelId;\n };\n };\n overrides?: string[];\n};\n\nexport type GetPanelConfigMessage = IMessageBase & {\n type: 'get-panel-config';\n id: string;\n data: {\n panelId?: string;\n onGetPanelConfig: (data: PanelIFrame) => void;\n };\n overrides?: string[];\n};\n\nexport type MessageToParent =\n | ModalConfirmMessage\n | AlertMessage\n | NotificationMessage\n | SimpleMessage\n | RegisterMessage\n | UnregisterMessage\n | NavigateToPanelMessage\n | ClosePanelMessage\n | NavigateToIframeMessage\n | MessageToPanelMessage\n | OpenFlapPanelMessage\n | CloseFlapPanelMessage\n | GetUrlMessage\n | GetPanelConfigMessage;\n\nexport type MessageFromParent =\n | (IMessageBase & {\n type: 'on-call-callback';\n path: string;\n data: unknown;\n })\n | ChangeLanguageMessage;\n\nexport type Message = MessageToParent | MessageFromParent;\n\nexport type MessageHandler<T = Message> = (message: T, dispatch: MessageDispatcher<T>) => void;\nexport type MessageDispatcher<T = Message> = (message: T, frameId?: string) => void;\n\nexport type CallCbFunction = (path: string, data: unknown, frameId: string) => void;\n\nexport type CallbackFunction = (...args: never[]) => void;\nexport type Callbacks = Record<string, Record<string, CallbackFunction>>;\n\nexport type MessageToPanelMessageHandler = (data: MessageToPanelMessage['data']['payload']) => void;\nexport type AddMessageToPanelMessageHandler = (type: string, handler: MessageToPanelMessageHandler) => void;\n\nexport interface IUseIFrameMessengerOptions {\n ref?: RefObject<HTMLIFrameElement>;\n id?: string;\n handlers?: {\n onModalConfirm?: (\n data: ModalConfirmMessage['data'],\n id: string,\n dispatch: MessageDispatcher,\n callCb: CallCbFunction,\n ) => void;\n onAlert?: (data: AlertMessage['data'], id: string, dispatch: MessageDispatcher, callCb: CallCbFunction) => void;\n onNotification?: (\n data: NotificationMessage['data'],\n id: string,\n dispatch: MessageDispatcher,\n callCb: CallCbFunction,\n ) => void;\n onMessage?: (data: unknown, id: string, dispatch: MessageDispatcher, callCb: CallCbFunction) => void;\n onNavigateToPanel?: (data: NavigateToPanelMessage['data']) => void;\n onClosePanel?: (data: ClosePanelMessage['data']) => void;\n onNavigateToIframe?: (data: NavigateToIframeMessage['data']) => void;\n onOpenFlapPanel?: (data: OpenFlapPanelMessage['data']) => void;\n onGetUrl?: (data: GetUrlMessage['data']) => void;\n onGetPanelConfig?: (\n data: GetPanelConfigMessage['data'],\n id: string,\n dispatch: MessageDispatcher,\n callCb: CallCbFunction,\n ) => void;\n onCloseFlapPanel?: () => void;\n };\n}\n"]}
@@ -669,7 +669,8 @@
669
669
  "previews_generation_failed_only": "Only if previous generation failed",
670
670
  "previews_generation_success": "Previews generation started",
671
671
  "previews_generation_nothing_to_do": "No preview to generate",
672
- "previews_generation_select_all": "All versions"
672
+ "previews_generation_select_all": "All versions",
673
+ "conditional_processing": "Conditional processing"
673
674
  },
674
675
  "menu-selection": {
675
676
  "nb-selected": "Selection {{nbSelected}} / {{total}}",
@@ -746,8 +747,8 @@
746
747
  "copied": "Copied"
747
748
  },
748
749
  "massAction": {
749
- "itemsTotal_one": "{{count, number}} item",
750
- "itemsTotal_other": "{{count, number}} items",
750
+ "results_one": "result",
751
+ "results_other": "results",
751
752
  "selectedItems_one": "{{count, number}} selected",
752
753
  "selectedItems_other": "{{count, number}} selected",
753
754
  "deactivate": "Deactivate",
@@ -782,7 +783,9 @@
782
783
  "select_page_other": "Select visible items ({{count, number}})",
783
784
  "select_all": "Select all items ({{count, number}})",
784
785
  "deselect_all": "Deselect all items"
785
- }
786
+ },
787
+ "generate_previews": "Generate previews",
788
+ "generate_previews_error_description": "An error occurred while generating previews. Please contact an administrator."
786
789
  },
787
790
  "export_profile_modal": {
788
791
  "title": "Export",
@@ -795,6 +798,10 @@
795
798
  "export_button": "Export",
796
799
  "error_title": "Export profile error"
797
800
  },
801
+ "generate_previews_modal": {
802
+ "title": "Generate previews",
803
+ "generate_button": "Generate"
804
+ },
798
805
  "add-existing-item": "Add existing item",
799
806
  "activate_item_one": "Activate this item?",
800
807
  "activate_item_other": "Activate these items?",
@@ -669,7 +669,8 @@
669
669
  "previews_generation_failed_only": "Seulement si la précédente génération a échoué",
670
670
  "previews_generation_success": "La génération des aperçus a bien été lancée",
671
671
  "previews_generation_nothing_to_do": "Aucun aperçu à générer",
672
- "previews_generation_select_all": "Toutes les versions"
672
+ "previews_generation_select_all": "Toutes les versions",
673
+ "conditional_processing": "Traitement conditionnel"
673
674
  },
674
675
  "menu-selection": {
675
676
  "nb-selected": "Sélection {{nbSelected}} / {{total}}",
@@ -746,8 +747,8 @@
746
747
  "copied": "Copié"
747
748
  },
748
749
  "massAction": {
749
- "itemsTotal_one": "{{count, number}} élément",
750
- "itemsTotal_other": "{{count, number}} éléments",
750
+ "results_one": "résultat",
751
+ "results_other": "résultats",
751
752
  "selectedItems_one": "{{count, number}} sélectionné",
752
753
  "selectedItems_other": "{{count, number}} sélectionnés",
753
754
  "deactivate": "Supprimer",
@@ -782,7 +783,9 @@
782
783
  "select_page_other": "Sélectionner les éléments visibles ({{count, number}})",
783
784
  "select_all": "Tout sélectionner ({{count, number}})",
784
785
  "deselect_all": "Tout désélectionner"
785
- }
786
+ },
787
+ "generate_previews": "Générer les aperçus",
788
+ "generate_previews_error_description": "Une erreur est survenue lors de la génération des aperçus. Veuillez contacter un administrateur."
786
789
  },
787
790
  "export_profile_modal": {
788
791
  "title": "Export",
@@ -795,6 +798,10 @@
795
798
  "export_button": "Exporter",
796
799
  "error_title": "Erreur de profil d'export"
797
800
  },
801
+ "generate_previews_modal": {
802
+ "title": "Générer les aperçus",
803
+ "generate_button": "Générer"
804
+ },
798
805
  "add-existing-item": "Ajouter un élément existant",
799
806
  "activate_item_one": "Activer cet élément ?",
800
807
  "activate_item_other": "Activer ces éléments ?",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leav/ui",
3
- "version": "1.8.0-c4bc6f9a",
3
+ "version": "1.9.0-0dfef3bb",
4
4
  "description": "Shared React components and hooks",
5
5
  "scripts": {
6
6
  "prepublishOnly": "yarn build",
@@ -24,27 +24,25 @@
24
24
  "license": "LGPL3",
25
25
  "repository": "https://github.com/leav-solutions/leav-engine",
26
26
  "devDependencies": {
27
- "@apollo/client": "3.8.1",
27
+ "@apollo/client": "3.14.0",
28
28
  "@babel/preset-env": "7.29.0",
29
29
  "@babel/preset-react": "7.28.5",
30
30
  "@graphql-codegen/add": "5.0.3",
31
- "@graphql-codegen/cli": "6.1.1",
32
- "@graphql-codegen/typescript": "5.0.7",
33
- "@graphql-codegen/typescript-operations": "5.0.7",
31
+ "@graphql-codegen/cli": "6.1.2",
32
+ "@graphql-codegen/typescript": "5.0.8",
33
+ "@graphql-codegen/typescript-operations": "5.0.8",
34
34
  "@graphql-codegen/typescript-react-apollo": "4.4.0",
35
35
  "@testing-library/jest-dom": "5.17.0",
36
36
  "@testing-library/react": "14.3.1",
37
37
  "@testing-library/react-hooks": "8.0.1",
38
38
  "@testing-library/user-event": "14.6.1",
39
39
  "@total-typescript/ts-reset": "0.6.1",
40
- "@types/dompurify": "3.0.3",
40
+ "@types/dompurify": "3.2.0",
41
41
  "@types/jest": "29.5.14",
42
42
  "@types/lodash.isequal": "^4",
43
- "@types/object-path": "0.11.4",
44
43
  "@types/react": "18.2.14",
45
44
  "@types/react-dom": "18.2.6",
46
- "@types/react-table": "7.7.20",
47
- "aristid-ds": "14.0.0-1708442",
45
+ "aristid-ds": "15.2.0-efdeb96",
48
46
  "babel-jest": "29.7.0",
49
47
  "graphql": "16.12.0",
50
48
  "i18next": "22.5.1",
@@ -62,7 +60,7 @@
62
60
  },
63
61
  "peerDependencies": {
64
62
  "@apollo/client": ">=3.8.1",
65
- "aristid-ds": "^14.0.0-1708442",
63
+ "aristid-ds": "15.2.0-efdeb96",
66
64
  "i18next": ">=22.5.1",
67
65
  "react": "^18.2.0",
68
66
  "react-dom": "^18.2.0",
@@ -72,25 +70,18 @@
72
70
  "dependencies": {
73
71
  "@ant-design/icons": "5.6.1",
74
72
  "@ckeditor/ckeditor5-build-inline": "39.0.2",
75
- "@ckeditor/ckeditor5-react": "6.1.0",
76
- "@dnd-kit/core": "6.1.0",
73
+ "@ckeditor/ckeditor5-react": "6.3.0",
74
+ "@dnd-kit/core": "6.3.1",
77
75
  "@dnd-kit/sortable": "8.0.0",
78
76
  "@dnd-kit/utilities": "3.2.2",
79
- "@fortawesome/fontawesome-svg-core": "7.0.1",
80
- "@fortawesome/free-regular-svg-icons": "7.0.1",
81
- "@fortawesome/free-solid-svg-icons": "7.0.1",
82
- "@fortawesome/react-fontawesome": "3.0.2",
83
- "@leav/utils": "1.8.0",
77
+ "@leav/utils": "1.9.0",
84
78
  "@uidotdev/usehooks": "2.4.1",
85
79
  "dayjs": "^1.11.13",
86
- "dompurify": "3.2.4",
80
+ "dompurify": "3.3.1",
87
81
  "html-react-parser": "4.2.10",
88
82
  "i18next-resources-to-backend": "1.1.4",
89
83
  "lodash.isequal": "4.5.0",
90
- "object-path": "0.11.8",
91
84
  "react-markdown": "5.0.3",
92
- "react-table": "7.8.0",
93
- "react-table-sticky": "1.1.3",
94
85
  "styled-components": "6.0.8",
95
86
  "xlsx": "0.18.5",
96
87
  "zod": "3.25.76"
@@ -1,6 +0,0 @@
1
- import { type PropsWithChildren } from 'react';
2
- import { type ISearchState } from '../../components/LibraryItemsList/hooks/useSearchReducer/_types';
3
- declare const MockSearchContextProvider: ({ state, children }: PropsWithChildren<{
4
- state?: Partial<ISearchState>;
5
- }>) => JSX.Element;
6
- export default MockSearchContextProvider;
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { SearchContext } from '../../components/LibraryItemsList/hooks/useSearchReducer/searchContext';
3
- import { initialSearchState } from '../../components/LibraryItemsList/hooks/useSearchReducer/searchReducer';
4
- import { mockGetLibraryDetailExtendedElement } from '../mockQuery/mockGetLibraryDetailExtendedQuery';
5
- const MockSearchContextProvider = ({ state, children }) => (_jsx(SearchContext.Provider, { value: {
6
- state: { ...initialSearchState, library: mockGetLibraryDetailExtendedElement, ...state },
7
- dispatch: jest.fn(),
8
- }, children: children }));
9
- export default MockSearchContextProvider;
10
- //# sourceMappingURL=mockSearchContextProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mockSearchContextProvider.js","sourceRoot":"","sources":["../../../src/__mocks__/common/mockSearchContextProvider.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,aAAa,EAAC,MAAM,sEAAsE,CAAC;AACnG,OAAO,EAAC,kBAAkB,EAAC,MAAM,sEAAsE,CAAC;AAExG,OAAO,EAAC,mCAAmC,EAAC,MAAM,gDAAgD,CAAC;AAEnG,MAAM,yBAAyB,GAAG,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAqD,EAAE,EAAE,CAAC,CACzG,KAAC,aAAa,CAAC,QAAQ,IACnB,KAAK,EAAE;QACH,KAAK,EAAE,EAAC,GAAG,kBAAkB,EAAE,OAAO,EAAE,mCAAmC,EAAE,GAAG,KAAK,EAAC;QACtF,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE;KACtB,YAEA,QAAQ,GACY,CAC5B,CAAC;AAEF,eAAe,yBAAyB,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 PropsWithChildren} from 'react';\nimport {SearchContext} from '_ui/components/LibraryItemsList/hooks/useSearchReducer/searchContext';\nimport {initialSearchState} from '_ui/components/LibraryItemsList/hooks/useSearchReducer/searchReducer';\nimport {type ISearchState} from '_ui/components/LibraryItemsList/hooks/useSearchReducer/_types';\nimport {mockGetLibraryDetailExtendedElement} from '../mockQuery/mockGetLibraryDetailExtendedQuery';\n\nconst MockSearchContextProvider = ({state, children}: PropsWithChildren<{state?: Partial<ISearchState>}>) => (\n <SearchContext.Provider\n value={{\n state: {...initialSearchState, library: mockGetLibraryDetailExtendedElement, ...state},\n dispatch: jest.fn(),\n }}\n >\n {children}\n </SearchContext.Provider>\n);\n\nexport default MockSearchContextProvider;\n"]}
@@ -1,3 +0,0 @@
1
- import { type ICommonAttributeComponentProps } from '../_types';
2
- declare function Attribute({ attribute, path, library, parentAttribute }: ICommonAttributeComponentProps): JSX.Element;
3
- export default Attribute;
@@ -1,50 +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 { localizedTranslation } from '@leav/utils';
6
- import { Checkbox, Radio, Space } from 'antd';
7
- import styled from 'styled-components';
8
- import { themeVars } from '../../../antdTheme';
9
- import { useLang } from '../../../hooks';
10
- import { attributeToSelectedAttribute } from '../helpers/attributeToSelectedAttribute';
11
- import { AttributesSelectionListActionTypes } from '../reducer/attributesSelectionListReducer';
12
- import { useAttributesSelectionListState } from '../reducer/attributesSelectionListStateContext';
13
- import { SmallText, TextAttribute } from '../sharedComponents';
14
- const Item = styled.div `
15
- padding: 0.5em;
16
- display: flex;
17
- justify-content: space-between;
18
- align-items: center;
19
- width: 100%;
20
- cursor: pointer;
21
- border: 2px solid transparent;
22
-
23
- &:hover {
24
- border-color: ${themeVars.primaryColor};
25
- background-color: ${themeVars.activeColor};
26
- }
27
- `;
28
- const CheckboxWrapper = styled.div `
29
- margin-left: 1em;
30
- `;
31
- function Attribute({ attribute, path, library, parentAttribute }) {
32
- const attributePath = [path, attribute.id].filter(p => !!p).join('.');
33
- const { lang } = useLang();
34
- const { state, dispatch } = useAttributesSelectionListState();
35
- const _handleClick = () => {
36
- dispatch({
37
- type: AttributesSelectionListActionTypes.TOGGLE_ATTRIBUTE_SELECTION,
38
- attribute: attributeToSelectedAttribute(attribute, {
39
- path: attributePath,
40
- library,
41
- parentAttributeData: parentAttribute,
42
- }),
43
- });
44
- };
45
- const label = localizedTranslation(attribute.label, lang);
46
- const isSelected = state.selectedAttributes.findIndex(selectedAttribute => selectedAttribute.path === attributePath) !== -1;
47
- return (_jsxs(Item, { onClick: _handleClick, "data-testid": "attribute-in-list", children: [_jsxs(Space, { children: [_jsx(TextAttribute, { children: label ?? attribute.id }), label && _jsx(SmallText, { children: attribute.id })] }), _jsx(CheckboxWrapper, { children: state.multiple ? _jsx(Checkbox, { checked: isSelected }) : _jsx(Radio, { checked: isSelected }) })] }));
48
- }
49
- export default Attribute;
50
- //# sourceMappingURL=Attribute.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Attribute.js","sourceRoot":"","sources":["../../../../src/components/A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SAAS,EAAE,4BAA4B,CAAC,SAAS,EAAE;gBAC/C,IAAI,EAAE,aAAa;gBACnB,OAAO;gBACP,mBAAmB,EAAE,eAAe;aACvC,CAAC;SACL,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,MAAM,KAAK,GAAG,oBAAoB,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAC1D,MAAM,UAAU,GACZ,KAAK,CAAC,kBAAkB,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAAE,CAAC,iBAAiB,CAAC,IAAI,KAAK,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IAE7G,OAAO,CACH,MAAC,IAAI,IAAC,OAAO,EAAE,YAAY,iBAAc,mBAAmB,aACxD,MAAC,KAAK,eACF,KAAC,aAAa,cAAE,KAAK,IAAI,SAAS,CAAC,EAAE,GAAiB,EACrD,KAAK,IAAI,KAAC,SAAS,cAAE,SAAS,CAAC,EAAE,GAAa,IAC3C,EACR,KAAC,eAAe,cACX,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAC,QAAQ,IAAC,OAAO,EAAE,UAAU,GAAI,CAAC,CAAC,CAAC,KAAC,KAAK,IAAC,OAAO,EAAE,UAAU,GAAI,GACtE,IACf,CACV,CAAC;AACN,CAAC;AAED,eAAe,SAAS,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 {localizedTranslation} from '@leav/utils';\nimport {Checkbox, Radio, Space} from 'antd';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\nimport {useLang} from '_ui/hooks';\nimport {attributeToSelectedAttribute} from '../helpers/attributeToSelectedAttribute';\nimport {AttributesSelectionListActionTypes} from '../reducer/attributesSelectionListReducer';\nimport {useAttributesSelectionListState} from '../reducer/attributesSelectionListStateContext';\nimport {SmallText, TextAttribute} from '../sharedComponents';\nimport {type ICommonAttributeComponentProps} from '../_types';\n\nconst Item = styled.div`\n padding: 0.5em;\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n cursor: pointer;\n border: 2px solid transparent;\n\n &:hover {\n border-color: ${themeVars.primaryColor};\n background-color: ${themeVars.activeColor};\n }\n`;\n\nconst CheckboxWrapper = styled.div`\n margin-left: 1em;\n`;\n\nfunction Attribute({attribute, path, library, parentAttribute}: ICommonAttributeComponentProps): JSX.Element {\n const attributePath = [path, attribute.id].filter(p => !!p).join('.');\n const {lang} = useLang();\n const {state, dispatch} = useAttributesSelectionListState();\n\n const _handleClick = () => {\n dispatch({\n type: AttributesSelectionListActionTypes.TOGGLE_ATTRIBUTE_SELECTION,\n attribute: attributeToSelectedAttribute(attribute, {\n path: attributePath,\n library,\n parentAttributeData: parentAttribute,\n }),\n });\n };\n\n const label = localizedTranslation(attribute.label, lang);\n const isSelected =\n state.selectedAttributes.findIndex(selectedAttribute => selectedAttribute.path === attributePath) !== -1;\n\n return (\n <Item onClick={_handleClick} data-testid=\"attribute-in-list\">\n <Space>\n <TextAttribute>{label ?? attribute.id}</TextAttribute>\n {label && <SmallText>{attribute.id}</SmallText>}\n </Space>\n <CheckboxWrapper>\n {state.multiple ? <Checkbox checked={isSelected} /> : <Radio checked={isSelected} />}\n </CheckboxWrapper>\n </Item>\n );\n}\n\nexport default Attribute;\n"]}
@@ -1,2 +0,0 @@
1
- import Attribute from './Attribute';
2
- export default Attribute;
@@ -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 Attribute from './Attribute';
5
- export default Attribute;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/AttributesSelectionList/Attribute/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,eAAe,SAAS,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 Attribute from './Attribute';\n\nexport default Attribute;\n"]}
@@ -1,10 +0,0 @@
1
- import { type ISelectedAttribute } from '../../types/attributes';
2
- interface IAttributesSelectionListProps {
3
- library: string;
4
- multiple?: boolean;
5
- selectedAttributes?: ISelectedAttribute[];
6
- canExpandExtendedAttributes?: boolean;
7
- onSelectionChange: (selectedAttributes: ISelectedAttribute[]) => void;
8
- }
9
- declare function AttributesSelectionList({ library, multiple, selectedAttributes, canExpandExtendedAttributes, onSelectionChange, }: IAttributesSelectionListProps): JSX.Element;
10
- export default AttributesSelectionList;