@leav/ui 1.13.0-3e5f362c → 1.13.0-488bbbdb

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 (1155) hide show
  1. package/dist/__mocks__/common/application.js.map +1 -1
  2. package/dist/__mocks__/common/attribute.js.map +1 -1
  3. package/dist/__mocks__/common/filter.js +0 -3
  4. package/dist/__mocks__/common/filter.js.map +1 -1
  5. package/dist/__mocks__/common/form.js +0 -3
  6. package/dist/__mocks__/common/form.js.map +1 -1
  7. package/dist/__mocks__/common/import.js +0 -3
  8. package/dist/__mocks__/common/import.js.map +1 -1
  9. package/dist/__mocks__/common/label.js +0 -3
  10. package/dist/__mocks__/common/label.js.map +1 -1
  11. package/dist/__mocks__/common/library.js +0 -3
  12. package/dist/__mocks__/common/library.js.map +1 -1
  13. package/dist/__mocks__/common/record.js.map +1 -1
  14. package/dist/__mocks__/common/tree.js +0 -3
  15. package/dist/__mocks__/common/tree.js.map +1 -1
  16. package/dist/__mocks__/common/treeElements.js.map +1 -1
  17. package/dist/__mocks__/common/value.js.map +1 -1
  18. package/dist/__mocks__/common/versionProfile.js.map +1 -1
  19. package/dist/__mocks__/common/view.js +0 -3
  20. package/dist/__mocks__/common/view.js.map +1 -1
  21. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +0 -3
  22. package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
  23. package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js +0 -3
  24. package/dist/__mocks__/mockQuery/mockGetRecordsFromLibraryQuery.js.map +1 -1
  25. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +0 -3
  26. package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
  27. package/dist/__mocks__/react-i18next.js +0 -3
  28. package/dist/__mocks__/react-i18next.js.map +1 -1
  29. package/dist/__mocks__/utils.js.map +1 -1
  30. package/dist/_queries/applications/applicationDetailsFragment.js +0 -3
  31. package/dist/_queries/applications/applicationDetailsFragment.js.map +1 -1
  32. package/dist/_queries/applications/checkApplicationExistence.js +0 -3
  33. package/dist/_queries/applications/checkApplicationExistence.js.map +1 -1
  34. package/dist/_queries/applications/getApplicationDetails.js +0 -3
  35. package/dist/_queries/applications/getApplicationDetails.js.map +1 -1
  36. package/dist/_queries/applications/getApplicationsModulesQuery.js +0 -3
  37. package/dist/_queries/applications/getApplicationsModulesQuery.js.map +1 -1
  38. package/dist/_queries/applications/saveApplicationMutation.js +0 -3
  39. package/dist/_queries/applications/saveApplicationMutation.js.map +1 -1
  40. package/dist/_queries/attributes/attributeDetailsFragment.js +0 -3
  41. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  42. package/dist/_queries/attributes/checkAttributeExistenceQuery.js +0 -3
  43. package/dist/_queries/attributes/checkAttributeExistenceQuery.js.map +1 -1
  44. package/dist/_queries/attributes/deleteAttributeMutation.js +0 -3
  45. package/dist/_queries/attributes/deleteAttributeMutation.js.map +1 -1
  46. package/dist/_queries/attributes/getAttributeByIdQuery.js +0 -3
  47. package/dist/_queries/attributes/getAttributeByIdQuery.js.map +1 -1
  48. package/dist/_queries/attributes/getAttributeWithEmbeddedFields.js +0 -3
  49. package/dist/_queries/attributes/getAttributeWithEmbeddedFields.js.map +1 -1
  50. package/dist/_queries/attributes/getAttributesByLib.js +0 -3
  51. package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
  52. package/dist/_queries/attributes/getAttributesQuery.js +0 -3
  53. package/dist/_queries/attributes/getAttributesQuery.js.map +1 -1
  54. package/dist/_queries/attributes/getVersionProfilesQuery.js +0 -3
  55. package/dist/_queries/attributes/getVersionProfilesQuery.js.map +1 -1
  56. package/dist/_queries/attributes/getVersionableAttributesByLibrary.js +0 -3
  57. package/dist/_queries/attributes/getVersionableAttributesByLibrary.js.map +1 -1
  58. package/dist/_queries/attributes/saveAttributeMutation.js +0 -3
  59. package/dist/_queries/attributes/saveAttributeMutation.js.map +1 -1
  60. package/dist/_queries/export/exportQuery.js +0 -3
  61. package/dist/_queries/export/exportQuery.js.map +1 -1
  62. package/dist/_queries/files/createDirectory.js +0 -3
  63. package/dist/_queries/files/createDirectory.js.map +1 -1
  64. package/dist/_queries/files/forcePreviewsGenerationMutation.js +0 -3
  65. package/dist/_queries/files/forcePreviewsGenerationMutation.js.map +1 -1
  66. package/dist/_queries/files/getDirectoryDataQuery.js +0 -3
  67. package/dist/_queries/files/getDirectoryDataQuery.js.map +1 -1
  68. package/dist/_queries/files/getUploadUpdates.js +0 -3
  69. package/dist/_queries/files/getUploadUpdates.js.map +1 -1
  70. package/dist/_queries/files/uploadMutation.js +0 -3
  71. package/dist/_queries/files/uploadMutation.js.map +1 -1
  72. package/dist/_queries/import/importExcel.js +0 -3
  73. package/dist/_queries/import/importExcel.js.map +1 -1
  74. package/dist/_queries/libraries/checkLibraryExistenceQuery.js +0 -3
  75. package/dist/_queries/libraries/checkLibraryExistenceQuery.js.map +1 -1
  76. package/dist/_queries/libraries/deleteLibraryMutation.js +0 -3
  77. package/dist/_queries/libraries/deleteLibraryMutation.js.map +1 -1
  78. package/dist/_queries/libraries/getLibrariesQuery.js +0 -3
  79. package/dist/_queries/libraries/getLibrariesQuery.js.map +1 -1
  80. package/dist/_queries/libraries/getLibraryByIdQuery.js +0 -3
  81. package/dist/_queries/libraries/getLibraryByIdQuery.js.map +1 -1
  82. package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
  83. package/dist/_queries/libraries/getLibraryPermissionsQuery.js +0 -3
  84. package/dist/_queries/libraries/getLibraryPermissionsQuery.js.map +1 -1
  85. package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.js +0 -3
  86. package/dist/_queries/libraries/getLibraryPreviewsSettingsQuery.js.map +1 -1
  87. package/dist/_queries/libraries/libraryDetailsFragment.js +0 -3
  88. package/dist/_queries/libraries/libraryDetailsFragment.js.map +1 -1
  89. package/dist/_queries/libraries/saveLibraryMutation.js +0 -3
  90. package/dist/_queries/libraries/saveLibraryMutation.js.map +1 -1
  91. package/dist/_queries/permissions/isAllowedQuery.js +0 -3
  92. package/dist/_queries/permissions/isAllowedQuery.js.map +1 -1
  93. package/dist/_queries/records/activateRecordsMutation.js +0 -3
  94. package/dist/_queries/records/activateRecordsMutation.js.map +1 -1
  95. package/dist/_queries/records/createRecordMutation.js +0 -3
  96. package/dist/_queries/records/createRecordMutation.js.map +1 -1
  97. package/dist/_queries/records/deactivateRecordsMutation.js +0 -3
  98. package/dist/_queries/records/deactivateRecordsMutation.js.map +1 -1
  99. package/dist/_queries/records/doesFileExistAsChild.js +0 -3
  100. package/dist/_queries/records/doesFileExistAsChild.js.map +1 -1
  101. package/dist/_queries/records/getFileDataQuery.js +0 -3
  102. package/dist/_queries/records/getFileDataQuery.js.map +1 -1
  103. package/dist/_queries/records/getRecordColumnsValues.js +0 -3
  104. package/dist/_queries/records/getRecordColumnsValues.js.map +1 -1
  105. package/dist/_queries/records/getRecordFormQuery.js +0 -3
  106. package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
  107. package/dist/_queries/records/getRecordPropertiesQuery.js +0 -3
  108. package/dist/_queries/records/getRecordPropertiesQuery.js.map +1 -1
  109. package/dist/_queries/records/getRecordUpdatesSubscription.js +0 -3
  110. package/dist/_queries/records/getRecordUpdatesSubscription.js.map +1 -1
  111. package/dist/_queries/records/getRecordsFromLibraryQuery.js +0 -3
  112. package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
  113. package/dist/_queries/records/indexRecordsMutation.js +0 -3
  114. package/dist/_queries/records/indexRecordsMutation.js.map +1 -1
  115. package/dist/_queries/records/recordFormAttributeFragment.js +0 -3
  116. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  117. package/dist/_queries/tasks/cancelTaskMutation.js +0 -3
  118. package/dist/_queries/tasks/cancelTaskMutation.js.map +1 -1
  119. package/dist/_queries/trees/checkTreeExistenceQuery.js +0 -3
  120. package/dist/_queries/trees/checkTreeExistenceQuery.js.map +1 -1
  121. package/dist/_queries/trees/deleteTreeMutation.js +0 -3
  122. package/dist/_queries/trees/deleteTreeMutation.js.map +1 -1
  123. package/dist/_queries/trees/getTreeByIdQuery.js +0 -3
  124. package/dist/_queries/trees/getTreeByIdQuery.js.map +1 -1
  125. package/dist/_queries/trees/getTreeLibraries.js +0 -3
  126. package/dist/_queries/trees/getTreeLibraries.js.map +1 -1
  127. package/dist/_queries/trees/getTreesQuery.js +0 -3
  128. package/dist/_queries/trees/getTreesQuery.js.map +1 -1
  129. package/dist/_queries/trees/saveTreeMutation.js +0 -3
  130. package/dist/_queries/trees/saveTreeMutation.js.map +1 -1
  131. package/dist/_queries/trees/treeDetailsFragment.js +0 -3
  132. package/dist/_queries/trees/treeDetailsFragment.js.map +1 -1
  133. package/dist/_queries/trees/treeNodeChildrenQuery.js +0 -3
  134. package/dist/_queries/trees/treeNodeChildrenQuery.js.map +1 -1
  135. package/dist/_queries/userData/getUserData.js +0 -3
  136. package/dist/_queries/userData/getUserData.js.map +1 -1
  137. package/dist/_queries/userData/saveUserData.js +0 -3
  138. package/dist/_queries/userData/saveUserData.js.map +1 -1
  139. package/dist/_queries/values/deleteValueMutation.js +0 -3
  140. package/dist/_queries/values/deleteValueMutation.js.map +1 -1
  141. package/dist/_queries/values/saveValueBatchMutation.js +0 -3
  142. package/dist/_queries/values/saveValueBatchMutation.js.map +1 -1
  143. package/dist/_queries/values/valueDetailsFragment.js +0 -3
  144. package/dist/_queries/values/valueDetailsFragment.js.map +1 -1
  145. package/dist/_queries/values/valuesVersionFragment.js +0 -3
  146. package/dist/_queries/values/valuesVersionFragment.js.map +1 -1
  147. package/dist/_queries/views/deleteViewMutation.js +0 -3
  148. package/dist/_queries/views/deleteViewMutation.js.map +1 -1
  149. package/dist/_queries/views/getViewById.js +0 -3
  150. package/dist/_queries/views/getViewById.js.map +1 -1
  151. package/dist/_queries/views/getViewsListQuery.js +0 -3
  152. package/dist/_queries/views/getViewsListQuery.js.map +1 -1
  153. package/dist/_queries/views/saveViewMutation.js +0 -3
  154. package/dist/_queries/views/saveViewMutation.js.map +1 -1
  155. package/dist/_queries/views/viewDetailsFragment.js +0 -3
  156. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  157. package/dist/_utils/__mocks__/isDevEnv.js +0 -3
  158. package/dist/_utils/__mocks__/isDevEnv.js.map +1 -1
  159. package/dist/_utils/attributeType.js +0 -3
  160. package/dist/_utils/attributeType.js.map +1 -1
  161. package/dist/_utils/getFiltersFromRequest.js +0 -3
  162. package/dist/_utils/getFiltersFromRequest.js.map +1 -1
  163. package/dist/_utils/getRequestFromFilter.js +0 -3
  164. package/dist/_utils/getRequestFromFilter.js.map +1 -1
  165. package/dist/_utils/index.js +0 -3
  166. package/dist/_utils/index.js.map +1 -1
  167. package/dist/_utils/interleaveElement.js +0 -3
  168. package/dist/_utils/interleaveElement.js.map +1 -1
  169. package/dist/_utils/isDevEnv.js +0 -3
  170. package/dist/_utils/isDevEnv.js.map +1 -1
  171. package/dist/_utils/typeguards.js.map +1 -1
  172. package/dist/antdTheme/index.js +0 -3
  173. package/dist/antdTheme/index.js.map +1 -1
  174. package/dist/antdTheme/types.js.map +1 -1
  175. package/dist/components/AttributePicker/AttributePicker.js +0 -3
  176. package/dist/components/AttributePicker/AttributePicker.js.map +1 -1
  177. package/dist/components/AttributePicker/AttributesList/AttributesList.js +0 -3
  178. package/dist/components/AttributePicker/AttributesList/AttributesList.js.map +1 -1
  179. package/dist/components/AttributePicker/AttributesList/index.js +0 -3
  180. package/dist/components/AttributePicker/AttributesList/index.js.map +1 -1
  181. package/dist/components/AttributePicker/index.js +0 -3
  182. package/dist/components/AttributePicker/index.js.map +1 -1
  183. package/dist/components/BasicButton/BasicButton.js +0 -3
  184. package/dist/components/BasicButton/BasicButton.js.map +1 -1
  185. package/dist/components/BasicButton/index.js +0 -3
  186. package/dist/components/BasicButton/index.js.map +1 -1
  187. package/dist/components/CreateDirectory/CreateDirectory.js +0 -3
  188. package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
  189. package/dist/components/CreateDirectory/index.js +0 -3
  190. package/dist/components/CreateDirectory/index.js.map +1 -1
  191. package/dist/components/Dimmer/Dimmer.js.map +1 -1
  192. package/dist/components/Dimmer/index.js +0 -3
  193. package/dist/components/Dimmer/index.js.map +1 -1
  194. package/dist/components/EditApplication/EditApplication.js +0 -3
  195. package/dist/components/EditApplication/EditApplication.js.map +1 -1
  196. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js +0 -3
  197. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js.map +1 -1
  198. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js +0 -3
  199. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
  200. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js +0 -3
  201. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js.map +1 -1
  202. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.js +0 -3
  203. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/index.js.map +1 -1
  204. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.js +0 -3
  205. package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/index.js.map +1 -1
  206. package/dist/components/EditApplication/EditApplicationInfo/index.js +0 -3
  207. package/dist/components/EditApplication/EditApplicationInfo/index.js.map +1 -1
  208. package/dist/components/EditApplication/_types.js.map +1 -1
  209. package/dist/components/EditApplication/index.js +0 -3
  210. package/dist/components/EditApplication/index.js.map +1 -1
  211. package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js +0 -3
  212. package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js.map +1 -1
  213. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +0 -3
  214. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
  215. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +0 -3
  216. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
  217. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js +0 -3
  218. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js.map +1 -1
  219. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.js +0 -3
  220. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/index.js.map +1 -1
  221. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js +0 -3
  222. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js.map +1 -1
  223. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.js +0 -3
  224. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/index.js.map +1 -1
  225. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js +0 -3
  226. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js.map +1 -1
  227. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.js +0 -3
  228. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/index.js.map +1 -1
  229. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.js +0 -3
  230. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/index.js.map +1 -1
  231. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.js +0 -3
  232. package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/index.js.map +1 -1
  233. package/dist/components/EditAttributeModal/EditAttribute/index.js +0 -3
  234. package/dist/components/EditAttributeModal/EditAttribute/index.js.map +1 -1
  235. package/dist/components/EditAttributeModal/EditAttributeModal.js +0 -3
  236. package/dist/components/EditAttributeModal/EditAttributeModal.js.map +1 -1
  237. package/dist/components/EditAttributeModal/index.js +0 -3
  238. package/dist/components/EditAttributeModal/index.js.map +1 -1
  239. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js +0 -3
  240. package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js.map +1 -1
  241. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js +0 -3
  242. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.js.map +1 -1
  243. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.js +0 -3
  244. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/index.js.map +1 -1
  245. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js +0 -3
  246. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js.map +1 -1
  247. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js +0 -3
  248. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js.map +1 -1
  249. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.js +0 -3
  250. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/index.js.map +1 -1
  251. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.js +0 -3
  252. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/index.js.map +1 -1
  253. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js +0 -3
  254. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js.map +1 -1
  255. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.js +0 -3
  256. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/index.js.map +1 -1
  257. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js +0 -3
  258. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js.map +1 -1
  259. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.js +0 -3
  260. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/index.js.map +1 -1
  261. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js.map +1 -1
  262. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js +0 -3
  263. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js.map +1 -1
  264. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.js +0 -3
  265. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/index.js.map +1 -1
  266. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.js +0 -3
  267. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/index.js.map +1 -1
  268. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js +0 -3
  269. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.js.map +1 -1
  270. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js +0 -3
  271. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js.map +1 -1
  272. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js +0 -3
  273. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js.map +1 -1
  274. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.js +0 -3
  275. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/index.js.map +1 -1
  276. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.js +0 -3
  277. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/index.js.map +1 -1
  278. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js +0 -3
  279. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js.map +1 -1
  280. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.js +0 -3
  281. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/index.js.map +1 -1
  282. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.js +0 -3
  283. package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/index.js.map +1 -1
  284. package/dist/components/EditLibraryModal/EditLibrary/index.js +0 -3
  285. package/dist/components/EditLibraryModal/EditLibrary/index.js.map +1 -1
  286. package/dist/components/EditLibraryModal/EditLibraryModal.js +0 -3
  287. package/dist/components/EditLibraryModal/EditLibraryModal.js.map +1 -1
  288. package/dist/components/EditLibraryModal/index.js +0 -3
  289. package/dist/components/EditLibraryModal/index.js.map +1 -1
  290. package/dist/components/EditTreeModal/EditTree/EditTree.js +0 -3
  291. package/dist/components/EditTreeModal/EditTree/EditTree.js.map +1 -1
  292. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js +0 -3
  293. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js.map +1 -1
  294. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js +0 -3
  295. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
  296. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +0 -3
  297. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js.map +1 -1
  298. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.js +0 -3
  299. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/index.js.map +1 -1
  300. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.js +0 -3
  301. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/index.js.map +1 -1
  302. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.js +0 -3
  303. package/dist/components/EditTreeModal/EditTree/EditTreeInfo/index.js.map +1 -1
  304. package/dist/components/EditTreeModal/EditTree/index.js +0 -3
  305. package/dist/components/EditTreeModal/EditTree/index.js.map +1 -1
  306. package/dist/components/EditTreeModal/EditTreeModal.js +0 -3
  307. package/dist/components/EditTreeModal/EditTreeModal.js.map +1 -1
  308. package/dist/components/EditTreeModal/index.js +0 -3
  309. package/dist/components/EditTreeModal/index.js.map +1 -1
  310. package/dist/components/EntityCard/EntityCard.js +0 -3
  311. package/dist/components/EntityCard/EntityCard.js.map +1 -1
  312. package/dist/components/EntityCard/_types.js.map +1 -1
  313. package/dist/components/EntityCard/index.js +0 -3
  314. package/dist/components/EntityCard/index.js.map +1 -1
  315. package/dist/components/EntityPreview/EntityPreview.js +0 -3
  316. package/dist/components/EntityPreview/EntityPreview.js.map +1 -1
  317. package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js +0 -3
  318. package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js.map +1 -1
  319. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.js +0 -3
  320. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.js.map +1 -1
  321. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.js +0 -3
  322. package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/index.js.map +1 -1
  323. package/dist/components/EntityPreview/EntityPreviewList/index.js +0 -3
  324. package/dist/components/EntityPreview/EntityPreviewList/index.js.map +1 -1
  325. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js +0 -3
  326. package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js.map +1 -1
  327. package/dist/components/EntityPreview/EntityPreviewTile/index.js +0 -3
  328. package/dist/components/EntityPreview/EntityPreviewTile/index.js.map +1 -1
  329. package/dist/components/EntityPreview/_types.js.map +1 -1
  330. package/dist/components/EntityPreview/index.js +0 -3
  331. package/dist/components/EntityPreview/index.js.map +1 -1
  332. package/dist/components/ErrorBoundary/ErrorBoundary.js +0 -3
  333. package/dist/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  334. package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js +0 -3
  335. package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js.map +1 -1
  336. package/dist/components/ErrorBoundary/ErrorBoundaryContent/index.js +0 -3
  337. package/dist/components/ErrorBoundary/ErrorBoundaryContent/index.js.map +1 -1
  338. package/dist/components/ErrorBoundary/index.js +0 -3
  339. package/dist/components/ErrorBoundary/index.js.map +1 -1
  340. package/dist/components/ErrorDisplay/ErrorDisplay.js +0 -3
  341. package/dist/components/ErrorDisplay/ErrorDisplay.js.map +1 -1
  342. package/dist/components/ErrorDisplay/index.js +0 -3
  343. package/dist/components/ErrorDisplay/index.js.map +1 -1
  344. package/dist/components/ErrorMessage/ErrorMessage.js +0 -3
  345. package/dist/components/ErrorMessage/ErrorMessage.js.map +1 -1
  346. package/dist/components/ErrorMessage/index.js +0 -3
  347. package/dist/components/ErrorMessage/index.js.map +1 -1
  348. package/dist/components/Explorer/DataView.js +0 -3
  349. package/dist/components/Explorer/DataView.js.map +1 -1
  350. package/dist/components/Explorer/Explorer.d.ts +5 -1
  351. package/dist/components/Explorer/Explorer.js +7 -3
  352. package/dist/components/Explorer/Explorer.js.map +1 -1
  353. package/dist/components/Explorer/ExplorerFiltersAndSorts.js +0 -3
  354. package/dist/components/Explorer/ExplorerFiltersAndSorts.js.map +1 -1
  355. package/dist/components/Explorer/ExplorerTitle.js +0 -3
  356. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  357. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  358. package/dist/components/Explorer/IdCard.js +0 -3
  359. package/dist/components/Explorer/IdCard.js.map +1 -1
  360. package/dist/components/Explorer/TableCell.js +0 -3
  361. package/dist/components/Explorer/TableCell.js.map +1 -1
  362. package/dist/components/Explorer/TableNameCell.js +0 -3
  363. package/dist/components/Explorer/TableNameCell.js.map +1 -1
  364. package/dist/components/Explorer/TableTagGroup.js +0 -3
  365. package/dist/components/Explorer/TableTagGroup.js.map +1 -1
  366. package/dist/components/Explorer/_constants.js +0 -3
  367. package/dist/components/Explorer/_constants.js.map +1 -1
  368. package/dist/components/Explorer/_queries/useExecuteUpdateViewMutation.js.map +1 -1
  369. package/dist/components/Explorer/_queries/useExplorerCountData.js +0 -3
  370. package/dist/components/Explorer/_queries/useExplorerCountData.js.map +1 -1
  371. package/dist/components/Explorer/_queries/useExplorerData.js +0 -3
  372. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  373. package/dist/components/Explorer/_types.d.ts +6 -0
  374. package/dist/components/Explorer/_types.js.map +1 -1
  375. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js +0 -3
  376. package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -1
  377. package/dist/components/Explorer/actions-item/useReplaceItemAction.js +0 -3
  378. package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -1
  379. package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -1
  380. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
  381. package/dist/components/Explorer/actions-mass/edit-attribute/EditMonoDependencyWorkflowTreeAttribute.js.map +1 -1
  382. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js +0 -3
  383. package/dist/components/Explorer/actions-mass/edit-attribute/EditTreeAttributeValuesMapping.js.map +1 -1
  384. package/dist/components/Explorer/actions-mass/edit-attribute/TreeNodeRemap.js.map +1 -1
  385. package/dist/components/Explorer/actions-mass/edit-attribute/_types.js.map +1 -1
  386. package/dist/components/Explorer/actions-mass/edit-attribute/useDependencyValues.js +0 -3
  387. package/dist/components/Explorer/actions-mass/edit-attribute/useDependencyValues.js.map +1 -1
  388. package/dist/components/Explorer/actions-mass/edit-attribute/useEditionMappingState.js +0 -3
  389. package/dist/components/Explorer/actions-mass/edit-attribute/useEditionMappingState.js.map +1 -1
  390. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js +0 -3
  391. package/dist/components/Explorer/actions-mass/edit-attribute/useMassEditableAttributes.js.map +1 -1
  392. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodesCandidates.js +0 -3
  393. package/dist/components/Explorer/actions-mass/edit-attribute/useTreeNodesCandidates.js.map +1 -1
  394. package/dist/components/Explorer/actions-mass/export/ExportProfileSelectionModal.js +0 -3
  395. package/dist/components/Explorer/actions-mass/export/ExportProfileSelectionModal.js.map +1 -1
  396. package/dist/components/Explorer/actions-mass/export/content/NoProfiles.js +0 -3
  397. package/dist/components/Explorer/actions-mass/export/content/NoProfiles.js.map +1 -1
  398. package/dist/components/Explorer/actions-mass/export/content/ProfilesSelection.js +0 -3
  399. package/dist/components/Explorer/actions-mass/export/content/ProfilesSelection.js.map +1 -1
  400. package/dist/components/Explorer/actions-mass/export/useGetLibraryExportProfiles.js +0 -3
  401. package/dist/components/Explorer/actions-mass/export/useGetLibraryExportProfiles.js.map +1 -1
  402. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js +0 -3
  403. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js.map +1 -1
  404. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js +0 -3
  405. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js.map +1 -1
  406. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +0 -3
  407. package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
  408. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +0 -3
  409. package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
  410. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js +0 -3
  411. package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js.map +1 -1
  412. package/dist/components/Explorer/actions-mass/useExportMassAction.js +0 -3
  413. package/dist/components/Explorer/actions-mass/useExportMassAction.js.map +1 -1
  414. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js +0 -3
  415. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js.map +1 -1
  416. package/dist/components/Explorer/actions-mass/useMassActions.js +0 -3
  417. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  418. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +0 -3
  419. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  420. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +0 -3
  421. package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
  422. package/dist/components/Explorer/actions-primary/usePrimaryActions.js +0 -3
  423. package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -1
  424. package/dist/components/Explorer/conditionsHelper.js +0 -3
  425. package/dist/components/Explorer/conditionsHelper.js.map +1 -1
  426. package/dist/components/Explorer/index.js +0 -3
  427. package/dist/components/Explorer/index.js.map +1 -1
  428. package/dist/components/Explorer/link-item/LinkModal.js +0 -3
  429. package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
  430. package/dist/components/Explorer/link-item/useAddLinkMassAction.js +0 -3
  431. package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -1
  432. package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -1
  433. package/dist/components/Explorer/list-saved-views/SavedViews.js +0 -3
  434. package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -1
  435. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +0 -3
  436. package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
  437. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +0 -3
  438. package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
  439. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -1
  440. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +0 -3
  441. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
  442. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +0 -3
  443. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
  444. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +4 -4
  445. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  446. package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js.map +1 -1
  447. package/dist/components/Explorer/manage-view-settings/index.d.ts +1 -0
  448. package/dist/components/Explorer/manage-view-settings/index.js +1 -3
  449. package/dist/components/Explorer/manage-view-settings/index.js.map +1 -1
  450. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +0 -3
  451. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
  452. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js +0 -3
  453. package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -1
  454. package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -1
  455. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js +0 -3
  456. package/dist/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.js.map +1 -1
  457. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +0 -3
  458. package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
  459. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js +0 -3
  460. package/dist/components/Explorer/manage-view-settings/router-menu/SettingItem.js.map +1 -1
  461. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +0 -3
  462. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  463. package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js.map +1 -1
  464. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js +0 -3
  465. package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js.map +1 -1
  466. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  467. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +0 -3
  468. package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
  469. package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js +0 -3
  470. package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js.map +1 -1
  471. package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js +0 -3
  472. package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js.map +1 -1
  473. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +0 -3
  474. package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -1
  475. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +0 -3
  476. package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -1
  477. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +0 -3
  478. package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -1
  479. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
  480. package/dist/components/Explorer/manage-view-settings/sort-items/SortListItem.js.map +1 -1
  481. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js +0 -3
  482. package/dist/components/Explorer/manage-view-settings/store-view-settings/ViewSettingsContext.js.map +1 -1
  483. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js +0 -3
  484. package/dist/components/Explorer/manage-view-settings/store-view-settings/useViewSettingsContext.js.map +1 -1
  485. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  486. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +7 -31
  487. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +9 -20
  488. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  489. package/dist/components/Explorer/useColumnWidth.js +0 -3
  490. package/dist/components/Explorer/useColumnWidth.js.map +1 -1
  491. package/dist/components/Explorer/useLoadView.js +0 -3
  492. package/dist/components/Explorer/useLoadView.js.map +1 -1
  493. package/dist/components/Explorer/useNotifyFiltersChange.d.ts +15 -0
  494. package/dist/components/Explorer/useNotifyFiltersChange.js +23 -0
  495. package/dist/components/Explorer/useNotifyFiltersChange.js.map +1 -0
  496. package/dist/components/Explorer/usePagination.js +0 -3
  497. package/dist/components/Explorer/usePagination.js.map +1 -1
  498. package/dist/components/Explorer/useSearchInput.js +0 -3
  499. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  500. package/dist/components/Explorer/useTableScrollableHeight.js +0 -3
  501. package/dist/components/Explorer/useTableScrollableHeight.js.map +1 -1
  502. package/dist/components/Explorer/useViewSettingsReducer.js +0 -3
  503. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  504. package/dist/components/FieldsGroup/FieldsGroup.js +0 -3
  505. package/dist/components/FieldsGroup/FieldsGroup.js.map +1 -1
  506. package/dist/components/FieldsGroup/index.js +0 -3
  507. package/dist/components/FieldsGroup/index.js.map +1 -1
  508. package/dist/components/Filters/FiltersProvider.js.map +1 -1
  509. package/dist/components/Filters/_queries/treeFiltersDataQuery.js +0 -3
  510. package/dist/components/Filters/_queries/treeFiltersDataQuery.js.map +1 -1
  511. package/dist/components/Filters/_types.js.map +1 -1
  512. package/dist/components/Filters/conditionsHelper.js +0 -3
  513. package/dist/components/Filters/conditionsHelper.js.map +1 -1
  514. package/dist/components/Filters/context/filtersContext.js +0 -3
  515. package/dist/components/Filters/context/filtersContext.js.map +1 -1
  516. package/dist/components/Filters/context/filtersInitialState.js.map +1 -1
  517. package/dist/components/Filters/context/filtersReducer.d.ts +9 -1
  518. package/dist/components/Filters/context/filtersReducer.js +9 -8
  519. package/dist/components/Filters/context/filtersReducer.js.map +1 -1
  520. package/dist/components/Filters/context/useFiltersReducer.js +0 -3
  521. package/dist/components/Filters/context/useFiltersReducer.js.map +1 -1
  522. package/dist/components/Filters/context/useGetTreeFilters.js +0 -3
  523. package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
  524. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
  525. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
  526. package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -1
  527. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js +0 -3
  528. package/dist/components/Filters/filter-items/filter-type/DateAttributeDropDown.js.map +1 -1
  529. package/dist/components/Filters/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -1
  530. package/dist/components/Filters/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -1
  531. package/dist/components/Filters/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -1
  532. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js +0 -3
  533. package/dist/components/Filters/filter-items/filter-type/FilterDropDown.js.map +1 -1
  534. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js +0 -3
  535. package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
  536. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js +0 -3
  537. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -1
  538. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js +0 -3
  539. package/dist/components/Filters/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -1
  540. package/dist/components/Filters/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
  541. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js +0 -3
  542. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
  543. package/dist/components/Filters/filter-items/filter-type/_types.js.map +1 -1
  544. package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.js +0 -3
  545. package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.js.map +1 -1
  546. package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.js +0 -3
  547. package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.js.map +1 -1
  548. package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.js +0 -3
  549. package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.js.map +1 -1
  550. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +14 -4
  551. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -1
  552. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js +0 -3
  553. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js.map +1 -1
  554. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +0 -3
  555. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
  556. package/dist/components/Filters/filter-items/filter-type/tree/useTreeNodeSelection.js.map +1 -1
  557. package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.js +1 -4
  558. package/dist/components/Filters/filter-items/filter-type/tree/useTreePermissions.js.map +1 -1
  559. package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.js +0 -3
  560. package/dist/components/Filters/filter-items/filter-type/tree/useTreesSearch.js.map +1 -1
  561. package/dist/components/Filters/filter-items/filter-type/tree/utils/buildFlattenTreeMap.js.map +1 -1
  562. package/dist/components/Filters/filter-items/filter-type/tree/utils/countSelectedTreeChildren.js.map +1 -1
  563. package/dist/components/Filters/filter-items/filter-type/tree/utils/filterTreeByPermission.js.map +1 -1
  564. package/dist/components/Filters/filter-items/filter-type/tree/utils/getSelectAllState.js.map +1 -1
  565. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js +0 -3
  566. package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  567. package/dist/components/Filters/filter-items/shared/EmptyValueCheckbox.js.map +1 -1
  568. package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.js +0 -3
  569. package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.js.map +1 -1
  570. package/dist/components/Filters/filter-items/shared/SelectAllCheckbox.js.map +1 -1
  571. package/dist/components/Filters/index.js +0 -3
  572. package/dist/components/Filters/index.js.map +1 -1
  573. package/dist/components/Filters/prepareFiltersForRequest.js +0 -3
  574. package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -1
  575. package/dist/components/Filters/useFilters.js +0 -3
  576. package/dist/components/Filters/useFilters.js.map +1 -1
  577. package/dist/components/Filters/useFiltersContext.js +0 -3
  578. package/dist/components/Filters/useFiltersContext.js.map +1 -1
  579. package/dist/components/Filters/useTransformFilters.js +0 -3
  580. package/dist/components/Filters/useTransformFilters.js.map +1 -1
  581. package/dist/components/FloatingMenu/FloatingMenu.js +0 -3
  582. package/dist/components/FloatingMenu/FloatingMenu.js.map +1 -1
  583. package/dist/components/FloatingMenu/_types.js.map +1 -1
  584. package/dist/components/FloatingMenu/index.js +0 -3
  585. package/dist/components/FloatingMenu/index.js.map +1 -1
  586. package/dist/components/ImageLoading/ImageLoading.js +0 -3
  587. package/dist/components/ImageLoading/ImageLoading.js.map +1 -1
  588. package/dist/components/ImageLoading/index.js +0 -3
  589. package/dist/components/ImageLoading/index.js.map +1 -1
  590. package/dist/components/ImageMissing/ImageMissing.js +0 -3
  591. package/dist/components/ImageMissing/ImageMissing.js.map +1 -1
  592. package/dist/components/ImageMissing/index.js +0 -3
  593. package/dist/components/ImageMissing/index.js.map +1 -1
  594. package/dist/components/ImportModal/ImportModal.js +0 -3
  595. package/dist/components/ImportModal/ImportModal.js.map +1 -1
  596. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js +0 -3
  597. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js.map +1 -1
  598. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.js +0 -3
  599. package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.js.map +1 -1
  600. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js +0 -3
  601. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js.map +1 -1
  602. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.js +0 -3
  603. package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/index.js.map +1 -1
  604. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +0 -3
  605. package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
  606. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +0 -3
  607. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js.map +1 -1
  608. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.js +0 -3
  609. package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/index.js.map +1 -1
  610. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +0 -3
  611. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js.map +1 -1
  612. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.js +0 -3
  613. package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/index.js.map +1 -1
  614. package/dist/components/ImportModal/ImportModalConfigStep/index.js +0 -3
  615. package/dist/components/ImportModal/ImportModalConfigStep/index.js.map +1 -1
  616. package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.js +0 -3
  617. package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.js.map +1 -1
  618. package/dist/components/ImportModal/ImportModalDoneStep/index.js +0 -3
  619. package/dist/components/ImportModal/ImportModalDoneStep/index.js.map +1 -1
  620. package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js +0 -3
  621. package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js.map +1 -1
  622. package/dist/components/ImportModal/ImportModalProcessingStep/index.js +0 -3
  623. package/dist/components/ImportModal/ImportModalProcessingStep/index.js.map +1 -1
  624. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +0 -3
  625. package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
  626. package/dist/components/ImportModal/ImportModalSelectFileStep/index.js +0 -3
  627. package/dist/components/ImportModal/ImportModalSelectFileStep/index.js.map +1 -1
  628. package/dist/components/ImportModal/_types.js.map +1 -1
  629. package/dist/components/ImportModal/importReducer/ImportReducerContext.js +0 -3
  630. package/dist/components/ImportModal/importReducer/ImportReducerContext.js.map +1 -1
  631. package/dist/components/ImportModal/importReducer/importReducer.js +0 -3
  632. package/dist/components/ImportModal/importReducer/importReducer.js.map +1 -1
  633. package/dist/components/ImportModal/importReducer/index.js +0 -3
  634. package/dist/components/ImportModal/importReducer/index.js.map +1 -1
  635. package/dist/components/ImportModal/index.js +0 -3
  636. package/dist/components/ImportModal/index.js.map +1 -1
  637. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +0 -3
  638. package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
  639. package/dist/components/LibraryPicker/LibrariesList/index.js +0 -3
  640. package/dist/components/LibraryPicker/LibrariesList/index.js.map +1 -1
  641. package/dist/components/LibraryPicker/LibraryPicker.js +0 -3
  642. package/dist/components/LibraryPicker/LibraryPicker.js.map +1 -1
  643. package/dist/components/LibraryPicker/index.js +0 -3
  644. package/dist/components/LibraryPicker/index.js.map +1 -1
  645. package/dist/components/List/List.js +0 -3
  646. package/dist/components/List/List.js.map +1 -1
  647. package/dist/components/List/index.js +0 -3
  648. package/dist/components/List/index.js.map +1 -1
  649. package/dist/components/Loading/Loading.js +0 -3
  650. package/dist/components/Loading/Loading.js.map +1 -1
  651. package/dist/components/Loading/index.js +0 -3
  652. package/dist/components/Loading/index.js.map +1 -1
  653. package/dist/components/Notifications/InitNotificationsSubscription.js.map +1 -1
  654. package/dist/components/Notifications/hooks/useNotificationSubscription.js +0 -3
  655. package/dist/components/Notifications/hooks/useNotificationSubscription.js.map +1 -1
  656. package/dist/components/Notifications/index.js +0 -3
  657. package/dist/components/Notifications/index.js.map +1 -1
  658. package/dist/components/RecordCard/RecordCard.js +0 -3
  659. package/dist/components/RecordCard/RecordCard.js.map +1 -1
  660. package/dist/components/RecordCard/_types.js.map +1 -1
  661. package/dist/components/RecordCard/index.js +0 -3
  662. package/dist/components/RecordCard/index.js.map +1 -1
  663. package/dist/components/RecordEdition/EditRecord/EditRecord.js +0 -3
  664. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  665. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js +0 -3
  666. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js.map +1 -1
  667. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js +0 -3
  668. package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/index.js.map +1 -1
  669. package/dist/components/RecordEdition/EditRecord/index.js +0 -3
  670. package/dist/components/RecordEdition/EditRecord/index.js.map +1 -1
  671. package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.js +0 -3
  672. package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.js.map +1 -1
  673. package/dist/components/RecordEdition/EditRecordBtn/index.js +0 -3
  674. package/dist/components/RecordEdition/EditRecordBtn/index.js.map +1 -1
  675. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +0 -3
  676. package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js.map +1 -1
  677. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -1
  678. package/dist/components/RecordEdition/EditRecordButtons/index.js +0 -3
  679. package/dist/components/RecordEdition/EditRecordButtons/index.js.map +1 -1
  680. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +0 -3
  681. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  682. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  683. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  684. package/dist/components/RecordEdition/EditRecordContent/formConstants.js +0 -3
  685. package/dist/components/RecordEdition/EditRecordContent/formConstants.js.map +1 -1
  686. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  687. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.js +0 -3
  688. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/index.js.map +1 -1
  689. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js +0 -3
  690. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.js.map +1 -1
  691. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js +0 -3
  692. package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.js.map +1 -1
  693. package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.js +0 -3
  694. package/dist/components/RecordEdition/EditRecordContent/hooks/helpers/getPropertyCacheFieldName.js.map +1 -1
  695. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +0 -3
  696. package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js.map +1 -1
  697. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js.map +1 -1
  698. package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
  699. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js +0 -3
  700. package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.js.map +1 -1
  701. package/dist/components/RecordEdition/EditRecordContent/index.js +0 -3
  702. package/dist/components/RecordEdition/EditRecordContent/index.js.map +1 -1
  703. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +0 -3
  704. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
  705. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.js +0 -3
  706. package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/index.js.map +1 -1
  707. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js +0 -3
  708. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js.map +1 -1
  709. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/index.js +0 -3
  710. package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/index.js.map +1 -1
  711. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js.map +1 -1
  712. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/index.js +0 -3
  713. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/index.js.map +1 -1
  714. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
  715. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.js +0 -3
  716. package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/index.js.map +1 -1
  717. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
  718. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/index.js +0 -3
  719. package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/index.js.map +1 -1
  720. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  721. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/_types.js.map +1 -1
  722. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js +0 -3
  723. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js.map +1 -1
  724. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useExplorerLinkRecords.js.map +1 -1
  725. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useLinkRecords.js +0 -3
  726. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/link-record/useLinkRecords.js.map +1 -1
  727. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.js +0 -3
  728. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/index.js.map +1 -1
  729. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputExtraAlignLeft.js +0 -3
  730. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputExtraAlignLeft.js.map +1 -1
  731. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputWrapper.js +0 -3
  732. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/InputWrapper.js.map +1 -1
  733. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/Wrapper.js +0 -3
  734. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/Wrapper.js.map +1 -1
  735. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/LinkFieldTags.js +0 -3
  736. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/LinkFieldTags.js.map +1 -1
  737. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/link-record/useLinkRecord.js +0 -3
  738. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/link-record/useLinkRecord.js.map +1 -1
  739. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js +0 -3
  740. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/tag/unlink-record/useUnlinkRecord.js.map +1 -1
  741. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/unlink-all-records/useUnlinkAllRecords.js.map +1 -1
  742. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +0 -3
  743. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  744. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +0 -3
  745. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  746. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +0 -3
  747. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  748. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +0 -3
  749. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  750. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +0 -3
  751. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  752. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +0 -3
  753. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  754. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +0 -3
  755. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  756. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +0 -3
  757. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  758. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +0 -3
  759. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  760. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  761. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +0 -3
  762. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  763. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/_types.js.map +1 -1
  764. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.js.map +1 -1
  765. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/index.js +0 -3
  766. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/index.js.map +1 -1
  767. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.js +0 -3
  768. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/index.js.map +1 -1
  769. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +0 -3
  770. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
  771. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.js.map +1 -1
  772. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/index.js +0 -3
  773. package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/index.js.map +1 -1
  774. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +0 -3
  775. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
  776. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js +0 -3
  777. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js.map +1 -1
  778. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -1
  779. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -1
  780. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/index.js +0 -3
  781. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/index.js.map +1 -1
  782. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +0 -3
  783. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -1
  784. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +0 -3
  785. package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
  786. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js +0 -3
  787. package/dist/components/RecordEdition/EditRecordContent/uiElements/index.js.map +1 -1
  788. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js.map +1 -1
  789. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js +0 -3
  790. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -1
  791. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -1
  792. package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
  793. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +0 -3
  794. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  795. package/dist/components/RecordEdition/EditRecordModal/index.js +0 -3
  796. package/dist/components/RecordEdition/EditRecordModal/index.js.map +1 -1
  797. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js +0 -3
  798. package/dist/components/RecordEdition/EditRecordModal/useEditRecordModal.js.map +1 -1
  799. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +0 -3
  800. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  801. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +0 -3
  802. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +1 -1
  803. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +0 -3
  804. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +1 -1
  805. package/dist/components/RecordEdition/EditRecordPage/index.js +0 -3
  806. package/dist/components/RecordEdition/EditRecordPage/index.js.map +1 -1
  807. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -1
  808. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js +0 -3
  809. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -1
  810. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +0 -3
  811. package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -1
  812. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +0 -3
  813. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
  814. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js +0 -3
  815. package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -1
  816. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +0 -3
  817. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  818. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +0 -3
  819. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  820. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.js +0 -3
  821. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/index.js.map +1 -1
  822. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -1
  823. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +0 -3
  824. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -1
  825. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +0 -3
  826. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  827. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.js +0 -3
  828. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/index.js.map +1 -1
  829. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
  830. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js +0 -3
  831. package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -1
  832. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +0 -3
  833. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map +1 -1
  834. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.js +0 -3
  835. package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/index.js.map +1 -1
  836. package/dist/components/RecordEdition/EditRecordSidebar/index.js +0 -3
  837. package/dist/components/RecordEdition/EditRecordSidebar/index.js.map +1 -1
  838. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js +0 -3
  839. package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -1
  840. package/dist/components/RecordEdition/EditRecordSkeleton/index.js +0 -3
  841. package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -1
  842. package/dist/components/RecordEdition/_types.js.map +1 -1
  843. package/dist/components/RecordEdition/constants.js +0 -3
  844. package/dist/components/RecordEdition/constants.js.map +1 -1
  845. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  846. package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js +0 -3
  847. package/dist/components/RecordEdition/editRecordReducer/editRecordReducerContext.js.map +1 -1
  848. package/dist/components/RecordEdition/editRecordReducer/index.js +0 -3
  849. package/dist/components/RecordEdition/editRecordReducer/index.js.map +1 -1
  850. package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.js +0 -3
  851. package/dist/components/RecordEdition/editRecordReducer/useEditRecordReducer.js.map +1 -1
  852. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.js +0 -3
  853. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/index.js.map +1 -1
  854. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +0 -3
  855. package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js.map +1 -1
  856. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +0 -3
  857. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
  858. package/dist/components/RecordEdition/index.js +0 -3
  859. package/dist/components/RecordEdition/index.js.map +1 -1
  860. package/dist/components/RecordHistory/RecordHistory.js +0 -3
  861. package/dist/components/RecordHistory/RecordHistory.js.map +1 -1
  862. package/dist/components/RecordHistory/RecordHistoryGoUpButton.js +0 -3
  863. package/dist/components/RecordHistory/RecordHistoryGoUpButton.js.map +1 -1
  864. package/dist/components/RecordHistory/RecordHistoryLogEntry.js +0 -3
  865. package/dist/components/RecordHistory/RecordHistoryLogEntry.js.map +1 -1
  866. package/dist/components/RecordHistory/_queries/recordHistoryQuery.js +0 -3
  867. package/dist/components/RecordHistory/_queries/recordHistoryQuery.js.map +1 -1
  868. package/dist/components/RecordHistory/_types.js.map +1 -1
  869. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js +0 -3
  870. package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js.map +1 -1
  871. package/dist/components/RecordHistory/index.js +0 -3
  872. package/dist/components/RecordHistory/index.js.map +1 -1
  873. package/dist/components/RecordHistory/utils/extendedAttribute.js.map +1 -1
  874. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +0 -3
  875. package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js.map +1 -1
  876. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js +0 -3
  877. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js.map +1 -1
  878. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.js +0 -3
  879. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/index.js.map +1 -1
  880. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js +0 -3
  881. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js.map +1 -1
  882. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.js +0 -3
  883. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/index.js.map +1 -1
  884. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js +0 -3
  885. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js.map +1 -1
  886. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +0 -3
  887. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js.map +1 -1
  888. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.js +0 -3
  889. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/index.js.map +1 -1
  890. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js +0 -3
  891. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js.map +1 -1
  892. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.js +0 -3
  893. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/index.js.map +1 -1
  894. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js +0 -3
  895. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js.map +1 -1
  896. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.js +0 -3
  897. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/index.js.map +1 -1
  898. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js +0 -3
  899. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js.map +1 -1
  900. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.js +0 -3
  901. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/index.js.map +1 -1
  902. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/_types.js.map +1 -1
  903. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.js +0 -3
  904. package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/index.js.map +1 -1
  905. package/dist/components/RecordPreviewWithModal/FileModal/_constants.js +0 -3
  906. package/dist/components/RecordPreviewWithModal/FileModal/_constants.js.map +1 -1
  907. package/dist/components/RecordPreviewWithModal/FileModal/index.js +0 -3
  908. package/dist/components/RecordPreviewWithModal/FileModal/index.js.map +1 -1
  909. package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js +0 -3
  910. package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js.map +1 -1
  911. package/dist/components/RecordPreviewWithModal/index.js +0 -3
  912. package/dist/components/RecordPreviewWithModal/index.js.map +1 -1
  913. package/dist/components/SearchModal/SearchModal.js.map +1 -1
  914. package/dist/components/SearchModal/index.js +0 -3
  915. package/dist/components/SearchModal/index.js.map +1 -1
  916. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +0 -3
  917. package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
  918. package/dist/components/SelectRecordForLinkModal/index.js +0 -3
  919. package/dist/components/SelectRecordForLinkModal/index.js.map +1 -1
  920. package/dist/components/SelectTreeNode/SelectTreeNode.js +0 -3
  921. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  922. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +0 -3
  923. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  924. package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js.map +1 -1
  925. package/dist/components/SelectTreeNode/TreeNodeTitle.js +0 -3
  926. package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
  927. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js +0 -3
  928. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js.map +1 -1
  929. package/dist/components/SelectTreeNode/_types.js.map +1 -1
  930. package/dist/components/SelectTreeNode/index.js +0 -3
  931. package/dist/components/SelectTreeNode/index.js.map +1 -1
  932. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js +0 -3
  933. package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -1
  934. package/dist/components/SelectTreeNodeModalOld/index.js +0 -3
  935. package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -1
  936. package/dist/components/ShowMore/ShowMore.js +0 -3
  937. package/dist/components/ShowMore/ShowMore.js.map +1 -1
  938. package/dist/components/ShowMore/index.js +0 -3
  939. package/dist/components/ShowMore/index.js.map +1 -1
  940. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js +0 -3
  941. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
  942. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js +0 -3
  943. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js.map +1 -1
  944. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.js +0 -3
  945. package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/index.js.map +1 -1
  946. package/dist/components/SimpleErrorBoundary/index.js +0 -3
  947. package/dist/components/SimpleErrorBoundary/index.js.map +1 -1
  948. package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js +0 -3
  949. package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js.map +1 -1
  950. package/dist/components/SubmitStateNotifier/_types.js.map +1 -1
  951. package/dist/components/SubmitStateNotifier/index.js +0 -3
  952. package/dist/components/SubmitStateNotifier/index.js.map +1 -1
  953. package/dist/components/TreePicker/TreePicker.js +0 -3
  954. package/dist/components/TreePicker/TreePicker.js.map +1 -1
  955. package/dist/components/TreePicker/TreesList/TreesList.js +0 -3
  956. package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
  957. package/dist/components/TreePicker/TreesList/index.js +0 -3
  958. package/dist/components/TreePicker/TreesList/index.js.map +1 -1
  959. package/dist/components/TreePicker/index.js +0 -3
  960. package/dist/components/TreePicker/index.js.map +1 -1
  961. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +0 -3
  962. package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js.map +1 -1
  963. package/dist/components/TriggerPreviewsGenerationModal/index.js +0 -3
  964. package/dist/components/TriggerPreviewsGenerationModal/index.js.map +1 -1
  965. package/dist/components/UploadFiles/UploadFiles.js +0 -3
  966. package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
  967. package/dist/components/UploadFiles/index.js +0 -3
  968. package/dist/components/UploadFiles/index.js.map +1 -1
  969. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js +0 -3
  970. package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js.map +1 -1
  971. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +0 -3
  972. package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
  973. package/dist/components/ValuesVersionConfigurator/VersionTree/index.js +0 -3
  974. package/dist/components/ValuesVersionConfigurator/VersionTree/index.js.map +1 -1
  975. package/dist/components/ValuesVersionConfigurator/index.js +0 -3
  976. package/dist/components/ValuesVersionConfigurator/index.js.map +1 -1
  977. package/dist/components/index.js +0 -3
  978. package/dist/components/index.js.map +1 -1
  979. package/dist/constants.js +0 -3
  980. package/dist/constants.js.map +1 -1
  981. package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js.map +1 -1
  982. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js +0 -3
  983. package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js.map +1 -1
  984. package/dist/contexts/EditRecordModalContext/index.js +0 -3
  985. package/dist/contexts/EditRecordModalContext/index.js.map +1 -1
  986. package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js +0 -3
  987. package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js.map +1 -1
  988. package/dist/contexts/LangContext/LangContext.js +0 -3
  989. package/dist/contexts/LangContext/LangContext.js.map +1 -1
  990. package/dist/contexts/LangContext/index.js +0 -3
  991. package/dist/contexts/LangContext/index.js.map +1 -1
  992. package/dist/contexts/LangContext/types.js.map +1 -1
  993. package/dist/contexts/UserContext/UserContext.js +0 -3
  994. package/dist/contexts/UserContext/UserContext.js.map +1 -1
  995. package/dist/contexts/UserContext/index.js +0 -3
  996. package/dist/contexts/UserContext/index.js.map +1 -1
  997. package/dist/contexts/UserContext/types.js.map +1 -1
  998. package/dist/contexts/index.js +0 -3
  999. package/dist/contexts/index.js.map +1 -1
  1000. package/dist/gqlFragments/index.js +0 -3
  1001. package/dist/gqlFragments/index.js.map +1 -1
  1002. package/dist/gqlFragments/recordIdentityFragment.js +0 -3
  1003. package/dist/gqlFragments/recordIdentityFragment.js.map +1 -1
  1004. package/dist/gqlPossibleTypes/index.js.map +1 -1
  1005. package/dist/hooks/index.js +0 -3
  1006. package/dist/hooks/index.js.map +1 -1
  1007. package/dist/hooks/useAntdLocale/index.js +0 -3
  1008. package/dist/hooks/useAntdLocale/index.js.map +1 -1
  1009. package/dist/hooks/useAntdLocale/useAntdLocale.js.map +1 -1
  1010. package/dist/hooks/useAppLang/index.js +0 -3
  1011. package/dist/hooks/useAppLang/index.js.map +1 -1
  1012. package/dist/hooks/useAppLang/useAppLang.js +0 -3
  1013. package/dist/hooks/useAppLang/useAppLang.js.map +1 -1
  1014. package/dist/hooks/useAuth/index.js +0 -3
  1015. package/dist/hooks/useAuth/index.js.map +1 -1
  1016. package/dist/hooks/useAuth/useAuth.js +0 -3
  1017. package/dist/hooks/useAuth/useAuth.js.map +1 -1
  1018. package/dist/hooks/useCanEditRecord/index.js +0 -3
  1019. package/dist/hooks/useCanEditRecord/index.js.map +1 -1
  1020. package/dist/hooks/useCanEditRecord/useCanEditRecord.js +0 -3
  1021. package/dist/hooks/useCanEditRecord/useCanEditRecord.js.map +1 -1
  1022. package/dist/hooks/useConfirmModal/__mocks__/index.js +0 -3
  1023. package/dist/hooks/useConfirmModal/__mocks__/index.js.map +1 -1
  1024. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js +0 -3
  1025. package/dist/hooks/useConfirmModal/__mocks__/useConfirmModal.js.map +1 -1
  1026. package/dist/hooks/useConfirmModal/index.js +0 -3
  1027. package/dist/hooks/useConfirmModal/index.js.map +1 -1
  1028. package/dist/hooks/useConfirmModal/useConfirmModal.js +0 -3
  1029. package/dist/hooks/useConfirmModal/useConfirmModal.js.map +1 -1
  1030. package/dist/hooks/useDebouncedValue/index.js +0 -3
  1031. package/dist/hooks/useDebouncedValue/index.js.map +1 -1
  1032. package/dist/hooks/useDebouncedValue/useDebouncedValue.js +0 -3
  1033. package/dist/hooks/useDebouncedValue/useDebouncedValue.js.map +1 -1
  1034. package/dist/hooks/useDelayedLoading/index.js +0 -3
  1035. package/dist/hooks/useDelayedLoading/index.js.map +1 -1
  1036. package/dist/hooks/useDelayedLoading/useDelayedLoading.js +0 -3
  1037. package/dist/hooks/useDelayedLoading/useDelayedLoading.js.map +1 -1
  1038. package/dist/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation.js.map +1 -1
  1039. package/dist/hooks/useExecuteSaveViewMutation/index.js +0 -3
  1040. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -1
  1041. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -1
  1042. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js +0 -3
  1043. package/dist/hooks/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.js.map +1 -1
  1044. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +0 -3
  1045. package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js.map +1 -1
  1046. package/dist/hooks/useGetRecordForm/index.js +0 -3
  1047. package/dist/hooks/useGetRecordForm/index.js.map +1 -1
  1048. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  1049. package/dist/hooks/useGetRecordIdCard/index.js +0 -3
  1050. package/dist/hooks/useGetRecordIdCard/index.js.map +1 -1
  1051. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js +0 -3
  1052. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js.map +1 -1
  1053. package/dist/hooks/useGetRecordUpdatesSubscription/index.js +0 -3
  1054. package/dist/hooks/useGetRecordUpdatesSubscription/index.js.map +1 -1
  1055. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js +0 -3
  1056. package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.js.map +1 -1
  1057. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +0 -3
  1058. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  1059. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.d.ts +3 -1
  1060. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js +0 -3
  1061. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js.map +1 -1
  1062. package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +2 -1
  1063. package/dist/hooks/useIFrameMessenger/messageHandlers.js +9 -0
  1064. package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -1
  1065. package/dist/hooks/useIFrameMessenger/schema.js +0 -3
  1066. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  1067. package/dist/hooks/useIFrameMessenger/types.d.ts +21 -2
  1068. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  1069. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +1 -0
  1070. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +0 -3
  1071. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
  1072. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js +29 -10
  1073. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js.map +1 -1
  1074. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js +0 -3
  1075. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js.map +1 -1
  1076. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.d.ts +14 -0
  1077. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.js +19 -0
  1078. package/dist/hooks/useIFrameMessenger/useNativePanelMessengerHandlers.js.map +1 -0
  1079. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +0 -3
  1080. package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -1
  1081. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +1 -0
  1082. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js +0 -3
  1083. package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -1
  1084. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +1 -0
  1085. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js +0 -3
  1086. package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -1
  1087. package/dist/hooks/useLang/__mocks__/index.js +0 -3
  1088. package/dist/hooks/useLang/__mocks__/index.js.map +1 -1
  1089. package/dist/hooks/useLang/__mocks__/useLang.js +0 -3
  1090. package/dist/hooks/useLang/__mocks__/useLang.js.map +1 -1
  1091. package/dist/hooks/useLang/index.js +0 -3
  1092. package/dist/hooks/useLang/index.js.map +1 -1
  1093. package/dist/hooks/useLang/useLang.js +0 -3
  1094. package/dist/hooks/useLang/useLang.js.map +1 -1
  1095. package/dist/hooks/useLibraryVersionTrees/index.js +0 -3
  1096. package/dist/hooks/useLibraryVersionTrees/index.js.map +1 -1
  1097. package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js.map +1 -1
  1098. package/dist/hooks/useLocalStorage/index.js +0 -3
  1099. package/dist/hooks/useLocalStorage/index.js.map +1 -1
  1100. package/dist/hooks/useLocalStorage/useLocalStorage.js +0 -3
  1101. package/dist/hooks/useLocalStorage/useLocalStorage.js.map +1 -1
  1102. package/dist/hooks/useLoginChecker/index.js +0 -3
  1103. package/dist/hooks/useLoginChecker/index.js.map +1 -1
  1104. package/dist/hooks/useLoginChecker/useLoginChecker.js +0 -3
  1105. package/dist/hooks/useLoginChecker/useLoginChecker.js.map +1 -1
  1106. package/dist/hooks/useRecordsConsultationHistory/index.js +0 -3
  1107. package/dist/hooks/useRecordsConsultationHistory/index.js.map +1 -1
  1108. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +0 -3
  1109. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
  1110. package/dist/hooks/useRedirectToLogin/index.js +0 -3
  1111. package/dist/hooks/useRedirectToLogin/index.js.map +1 -1
  1112. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +0 -3
  1113. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
  1114. package/dist/hooks/useRefreshFieldValues/index.js +0 -3
  1115. package/dist/hooks/useRefreshFieldValues/index.js.map +1 -1
  1116. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +0 -3
  1117. package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js.map +1 -1
  1118. package/dist/hooks/useSharedTranslation/__mocks__/index.js +0 -3
  1119. package/dist/hooks/useSharedTranslation/__mocks__/index.js.map +1 -1
  1120. package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js.map +1 -1
  1121. package/dist/hooks/useSharedTranslation/index.js +0 -3
  1122. package/dist/hooks/useSharedTranslation/index.js.map +1 -1
  1123. package/dist/hooks/useSharedTranslation/useSharedTranslation.js +0 -3
  1124. package/dist/hooks/useSharedTranslation/useSharedTranslation.js.map +1 -1
  1125. package/dist/hooks/useUser/index.js +0 -3
  1126. package/dist/hooks/useUser/index.js.map +1 -1
  1127. package/dist/hooks/useUser/useUser.js +0 -3
  1128. package/dist/hooks/useUser/useUser.js.map +1 -1
  1129. package/dist/hooks/useValuesCacheUpdate/index.js +0 -3
  1130. package/dist/hooks/useValuesCacheUpdate/index.js.map +1 -1
  1131. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +0 -3
  1132. package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js.map +1 -1
  1133. package/dist/index.js +0 -3
  1134. package/dist/index.js.map +1 -1
  1135. package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js +0 -3
  1136. package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js.map +1 -1
  1137. package/dist/testing/MockedLangContextProvider/index.js +0 -3
  1138. package/dist/testing/MockedLangContextProvider/index.js.map +1 -1
  1139. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +0 -3
  1140. package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js.map +1 -1
  1141. package/dist/testing/MockedUserContextProvider/index.js +0 -3
  1142. package/dist/testing/MockedUserContextProvider/index.js.map +1 -1
  1143. package/dist/testing/index.js +0 -3
  1144. package/dist/testing/index.js.map +1 -1
  1145. package/dist/types/attributes.js.map +1 -1
  1146. package/dist/types/index.js +0 -3
  1147. package/dist/types/index.js.map +1 -1
  1148. package/dist/types/misc.js.map +1 -1
  1149. package/dist/types/records.js.map +1 -1
  1150. package/dist/types/scalars.js.map +1 -1
  1151. package/dist/types/search.js.map +1 -1
  1152. package/dist/types/trees.js.map +1 -1
  1153. package/dist/types/values.js.map +1 -1
  1154. package/dist/types/views.js.map +1 -1
  1155. package/package.json +4 -9
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Filters/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AACxD,cAAc,UAAU,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nexport {useFilters} from './useFilters';\nexport {useFiltersContext} from './useFiltersContext';\nexport {useTransformFilters} from './useTransformFilters';\nexport {FiltersProvider} from './FiltersProvider';\nexport {prepareFiltersForRequest} from './prepareFiltersForRequest';\nexport {useFiltersReducer} from './context/useFiltersReducer';\nexport {CommonFilterItem} from './filter-items/CommonFilterItem';\nexport {FiltersContext} from './context/filtersContext';\nexport * from './_types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Filters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AACxD,cAAc,UAAU,CAAC","sourcesContent":["export {useFilters} from './useFilters';\nexport {useFiltersContext} from './useFiltersContext';\nexport {useTransformFilters} from './useTransformFilters';\nexport {FiltersProvider} from './FiltersProvider';\nexport {prepareFiltersForRequest} from './prepareFiltersForRequest';\nexport {useFiltersReducer} from './context/useFiltersReducer';\nexport {CommonFilterItem} from './filter-items/CommonFilterItem';\nexport {FiltersContext} from './context/filtersContext';\nexport * from './_types';\n"]}
@@ -1,6 +1,3 @@
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
1
  import dayjs from 'dayjs';
5
2
  import { AttributeFormat, RecordFilterCondition, RecordFilterOperator } from '../../_gqlTypes';
6
3
  import { interleaveElement } from '../../_utils/interleaveElement';
@@ -1 +1 @@
1
- {"version":3,"file":"prepareFiltersForRequest.js","sourceRoot":"","sources":["../../../src/components/Filters/prepareFiltersForRequest.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAE,qBAAqB,EAA0B,oBAAoB,EAAC,MAAM,eAAe,CAAC;AACnH,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAC;AACnD,OAAO,EAMH,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EAGnB,2BAA2B,EAC3B,yBAAyB,GAE5B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAEvD,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAExC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC;AAE5G,MAAM,sBAAsB,GAAG,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAoB,EAAuB,EAAE;IACjG,QAAQ,SAAS,EAAE,CAAC;Q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BAAkB,CAAC,cAAc,EAAE,MAAkB,CAAC,CAAC;IACjE,CAAC,CAAC,CACT,CAAC;IAEF,OAAO;QACH,GAAG,gBAAgB;QACnB,GAAG,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,EAAC,QAAQ,EAAE,oBAAoB,CAAC,GAAG,EAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5F,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAC9D,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport dayjs from 'dayjs';\nimport {AttributeFormat, RecordFilterCondition, type RecordFilterInput, RecordFilterOperator} from '_ui/_gqlTypes';\nimport {interleaveElement} from '_ui/_utils/interleaveElement';\nimport {AttributeConditionFilter} from '_ui/types';\nimport {\n type UIFilter,\n type IUIFilterLink,\n type IUIFilterStandard,\n type IUIFilterThrough,\n type IUIFilterTree,\n isUIFilterStandard,\n isUIFilterThrough,\n isUIFilterTree,\n isUIFilterValueList,\n type IUIFilterValueList,\n type FiltersOperator,\n isUIFilterLinkWithValueList,\n isUIFilterWithSmartFilter,\n type IUIFilterSmartFiler,\n} from './_types';\nimport {nullValueConditions} from './conditionsHelper';\n\nexport const dateValuesSeparator = '\\n';\n\nconst _getDateAtNoon = (date: number): string => dayjs.unix(Number(date)).add(12, 'hour').unix().toString();\n\nconst _getDateRequestFilters = ({field, condition, value}: IUIFilterStandard): RecordFilterInput[] => {\n switch (condition) {\n case RecordFilterCondition.BETWEEN:\n const [from, to] = value!.split(dateValuesSeparator);\n return [\n {\n field,\n condition,\n value: JSON.stringify({\n from,\n to,\n }),\n },\n ];\n case RecordFilterCondition.NOT_EQUAL:\n return [\n {\n field,\n condition: RecordFilterCondition.NOT_EQUAL,\n value: _getDateAtNoon(Number(value)),\n },\n ];\n case RecordFilterCondition.EQUAL:\n return [\n {\n field,\n condition,\n value: _getDateAtNoon(Number(value)),\n },\n ];\n default:\n return [\n {\n field,\n condition,\n value,\n },\n ];\n }\n};\n\nconst _getBooleanRequestFilters = (filter: IUIFilterStandard): RecordFilterInput[] => {\n if (filter.value === 'false') {\n return [\n {\n field: filter.field,\n condition: AttributeConditionFilter.NOT_EQUAL,\n value: 'true',\n },\n ];\n }\n\n return [{field: filter.field, condition: filter.condition, value: filter.value}];\n};\n\nconst _addValuesListForFilters = (valuesList: string[]): RecordFilterInput[] => [\n {operator: RecordFilterOperator.OPEN_BRACKET},\n ...(interleaveElement(\n {operator: RecordFilterOperator.OR},\n valuesList.map(value => [\n {\n field: 'id',\n condition: AttributeConditionFilter.EQUAL,\n value,\n },\n ]),\n ) as RecordFilterInput[]),\n {operator: RecordFilterOperator.CLOSE_BRACKET},\n];\n\nconst _generateConditionsFromMultipleValues = (\n filter: IUIFilterTree | IUIFilterValueList | IUIFilterSmartFiler,\n): RecordFilterInput[] => {\n const value = filter.value;\n const nodes = isUIFilterTree(filter) ? filter.nodes : undefined;\n\n if (!value || value.length === 0) {\n return [];\n }\n const filtersWithOperators: RecordFilterInput[] = [];\n value.forEach((recordId, idx) => {\n if (idx === 0 && value.length > 1) {\n filtersWithOperators.push({operator: RecordFilterOperator.OPEN_BRACKET});\n }\n if (nodes?.length > 0) {\n filtersWithOperators.push({\n value: recordId,\n condition: filter.condition,\n field: `${filter.attribute.id}.${nodes[0].libraryId}.id`,\n });\n } else {\n filtersWithOperators.push({\n value: recordId,\n condition: filter.condition,\n field: Array.isArray(filter.field) ? filter.field[idx] : filter.field,\n });\n }\n if (idx < value.length - 1) {\n filtersWithOperators.push({\n operator:\n filter.condition === RecordFilterCondition.NOT_EQUAL\n ? RecordFilterOperator.AND\n : RecordFilterOperator.OR,\n });\n }\n if (value.length > 1 && idx >= value.length - 1) {\n filtersWithOperators.push({operator: RecordFilterOperator.CLOSE_BRACKET});\n }\n });\n return filtersWithOperators;\n};\n\nconst _addEmptyCondition = (baseConditions: RecordFilterInput[], filter: UIFilter): RecordFilterInput[] => {\n const hasValue =\n filter.value !== null &&\n filter.value !== undefined &&\n (!Array.isArray(filter.value) || filter.value.length > 0);\n\n // patch because field contains multiple informations & can be empty\n const field = (Array.isArray(filter.field) ? filter.field[0] : filter.field) || filter.attribute.id;\n const emptyCondition = {\n field,\n condition: RecordFilterCondition.IS_EMPTY,\n value: null,\n };\n\n if (!hasValue) {\n return [emptyCondition];\n } else {\n return [\n {operator: RecordFilterOperator.OPEN_BRACKET},\n ...baseConditions,\n {operator: RecordFilterOperator.OR},\n emptyCondition,\n {operator: RecordFilterOperator.CLOSE_BRACKET},\n ];\n }\n};\n\nexport const prepareFiltersForRequest = (\n filters: UIFilter[],\n filtersOperator?: FiltersOperator,\n valuesList?: string[],\n): RecordFilterInput[] => {\n const interleaveFilter = interleaveElement(\n {operator: filtersOperator === 'OR' ? RecordFilterOperator.OR : RecordFilterOperator.AND},\n filters\n .filter(filter => {\n if (filter.withEmptyValues) {\n return true;\n }\n if (isUIFilterTree(filter)) {\n // Skip if: (Toggle ON + no user selection) OR (No user selection + no initial value)\n const noUserSelectionNoInitialValue =\n filter.userNodes == null && (!filter.value || filter.value.length === 0);\n const toggleOnNoUserSelection = filter.includeHiddenOptions && filter.userNodes == null;\n return !(noUserSelectionNoInitialValue || toggleOnNoUserSelection);\n }\n if (isUIFilterWithSmartFilter(filter)) {\n return (\n (filter.value !== null && filter.value.length > 0) ||\n (filter.condition && nullValueConditions.includes(filter.condition))\n );\n }\n\n if (isUIFilterThrough(filter)) {\n return (\n filter.subField &&\n filter.subCondition &&\n (filter.value !== null || nullValueConditions.includes(filter.subCondition))\n );\n }\n\n if (isUIFilterValueList(filter)) {\n return (\n (!!filter.condition && filter.value?.length) ||\n (filter.condition && nullValueConditions.includes(filter.condition))\n );\n }\n\n return filter.value !== null || (filter.condition && nullValueConditions.includes(filter.condition));\n })\n .map(filter => {\n if (isUIFilterTree(filter)) {\n return filter;\n }\n const condition =\n filter.condition === AttributeConditionFilter.THROUGH ? filter.subCondition : filter.condition;\n let field =\n filter.condition === AttributeConditionFilter.THROUGH\n ? `${filter.field}.${filter.subField}`\n : filter.field;\n\n // When a link attribute has a values list, we must filter on the linked record id\n if (isUIFilterLinkWithValueList(filter) && typeof field === 'string' && !field.endsWith('.id')) {\n field = `${field}.id`;\n }\n\n return {...filter, condition, field};\n })\n .map(filter => {\n //@ts-ignore typscript does not recognize filter as a UIFilter\n if (isUIFilterValueList(filter) || isUIFilterTree(filter) || isUIFilterWithSmartFilter(filter)) {\n const field = (Array.isArray(filter.field) ? filter.field[0] : filter.field) || filter.attribute.id;\n if (filter.condition && nullValueConditions.includes(filter.condition)) {\n const baseConditions: RecordFilterInput[] = [\n {\n field,\n condition: filter.condition,\n value: null,\n },\n ];\n return !filter.withEmptyValues\n ? baseConditions\n : _addEmptyCondition(\n baseConditions,\n filter as IUIFilterTree | IUIFilterValueList | IUIFilterSmartFiler,\n );\n }\n if (isUIFilterTree(filter)) {\n // No user selection (null or undefined): add IS_EMPTY to filters\n // TODO : include IS_EMPTY to permissions\n if (filter.userNodes == null) {\n if (filter.withEmptyValues) {\n return [{field, condition: RecordFilterCondition.IS_EMPTY, value: null}];\n }\n const baseConditions = _generateConditionsFromMultipleValues(filter as IUIFilterTree);\n return _addEmptyCondition(baseConditions, filter as IUIFilterTree);\n }\n }\n const baseConditions = _generateConditionsFromMultipleValues(\n filter as IUIFilterTree | IUIFilterValueList | IUIFilterSmartFiler,\n );\n return !filter.withEmptyValues\n ? baseConditions\n : _addEmptyCondition(\n baseConditions,\n filter as IUIFilterTree | IUIFilterValueList | IUIFilterSmartFiler,\n );\n }\n\n if (isUIFilterStandard(filter as UIFilter)) {\n switch (filter.attribute.format) {\n case AttributeFormat.date:\n return _getDateRequestFilters(filter as IUIFilterStandard);\n case AttributeFormat.boolean:\n return _getBooleanRequestFilters(filter as IUIFilterStandard);\n default:\n break;\n }\n }\n const filterWithStringValue = filter as IUIFilterStandard | IUIFilterLink | IUIFilterThrough;\n const baseConditions: RecordFilterInput[] = [\n {\n field: filterWithStringValue.field as string,\n condition: filterWithStringValue.condition as RecordFilterCondition,\n value: filterWithStringValue.value,\n },\n ];\n return !filter.withEmptyValues\n ? baseConditions\n : _addEmptyCondition(baseConditions, filter as UIFilter);\n }),\n );\n\n return [\n ...interleaveFilter,\n ...(interleaveFilter.length > 0 && valuesList ? [{operator: RecordFilterOperator.AND}] : []),\n ...(valuesList ? _addValuesListForFilters(valuesList) : []),\n ];\n};\n"]}
1
+ {"version":3,"file":"prepareFiltersForRequest.js","sourceRoot":"","sources":["../../../src/components/Filters/prepareFiltersForRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAE,qBAAqB,EAA0B,oBAAoB,EAAC,MAAM,eAAe,CAAC;AACnH,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAC;AACnD,OAAO,EAMH,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EAGnB,2BAA2B,EAC3B,yBAAyB,GAE5B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAEvD,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAExC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC;AAE5G,MAAM,sBAAsB,GAAG,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK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AC,eAAe;YAC1B,CAAC,CAAC,cAAc;YAChB,CAAC,CAAC,kBAAkB,CAAC,cAAc,EAAE,MAAkB,CAAC,CAAC;IACjE,CAAC,CAAC,CACT,CAAC;IAEF,OAAO;QACH,GAAG,gBAAgB;QACnB,GAAG,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,EAAC,QAAQ,EAAE,oBAAoB,CAAC,GAAG,EAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5F,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAC9D,CAAC;AACN,CAAC,CAAC","sourcesContent":["import dayjs from 'dayjs';\nimport {AttributeFormat, RecordFilterCondition, type RecordFilterInput, RecordFilterOperator} from '_ui/_gqlTypes';\nimport {interleaveElement} from '_ui/_utils/interleaveElement';\nimport {AttributeConditionFilter} from '_ui/types';\nimport {\n type UIFilter,\n type IUIFilterLink,\n type IUIFilterStandard,\n type IUIFilterThrough,\n type IUIFilterTree,\n isUIFilterStandard,\n isUIFilterThrough,\n isUIFilterTree,\n isUIFilterValueList,\n type IUIFilterValueList,\n type FiltersOperator,\n isUIFilterLinkWithValueList,\n isUIFilterWithSmartFilter,\n type IUIFilterSmartFiler,\n} from './_types';\nimport {nullValueConditions} from './conditionsHelper';\n\nexport const dateValuesSeparator = '\\n';\n\nconst _getDateAtNoon = (date: number): string => dayjs.unix(Number(date)).add(12, 'hour').unix().toString();\n\nconst _getDateRequestFilters = ({field, condition, value}: IUIFilterStandard): RecordFilterInput[] => {\n switch (condition) {\n case RecordFilterCondition.BETWEEN:\n const [from, to] = value!.split(dateValuesSeparator);\n return [\n {\n field,\n condition,\n value: JSON.stringify({\n from,\n to,\n }),\n },\n ];\n case RecordFilterCondition.NOT_EQUAL:\n return [\n {\n field,\n condition: RecordFilterCondition.NOT_EQUAL,\n value: _getDateAtNoon(Number(value)),\n },\n ];\n case RecordFilterCondition.EQUAL:\n return [\n {\n field,\n condition,\n value: _getDateAtNoon(Number(value)),\n },\n ];\n default:\n return [\n {\n field,\n condition,\n value,\n },\n ];\n }\n};\n\nconst _getBooleanRequestFilters = (filter: IUIFilterStandard): RecordFilterInput[] => {\n if (filter.value === 'false') {\n return [\n {\n field: filter.field,\n condition: AttributeConditionFilter.NOT_EQUAL,\n value: 'true',\n },\n ];\n }\n\n return [{field: filter.field, condition: filter.condition, value: filter.value}];\n};\n\nconst _addValuesListForFilters = (valuesList: string[]): RecordFilterInput[] => [\n {operator: RecordFilterOperator.OPEN_BRACKET},\n ...(interleaveElement(\n {operator: RecordFilterOperator.OR},\n valuesList.map(value => [\n {\n field: 'id',\n condition: AttributeConditionFilter.EQUAL,\n value,\n },\n ]),\n ) as RecordFilterInput[]),\n {operator: RecordFilterOperator.CLOSE_BRACKET},\n];\n\nconst _generateConditionsFromMultipleValues = (\n filter: IUIFilterTree | IUIFilterValueList | IUIFilterSmartFiler,\n): RecordFilterInput[] => {\n const value = filter.value;\n const nodes = isUIFilterTree(filter) ? filter.nodes : undefined;\n\n if (!value || value.length === 0) {\n return [];\n }\n const filtersWithOperators: RecordFilterInput[] = [];\n value.forEach((recordId, idx) => {\n if (idx === 0 && value.length > 1) {\n filtersWithOperators.push({operator: RecordFilterOperator.OPEN_BRACKET});\n }\n if (nodes?.length > 0) {\n filtersWithOperators.push({\n value: recordId,\n condition: filter.condition,\n field: `${filter.attribute.id}.${nodes[0].libraryId}.id`,\n });\n } else {\n filtersWithOperators.push({\n value: recordId,\n condition: filter.condition,\n field: Array.isArray(filter.field) ? filter.field[idx] : filter.field,\n });\n }\n if (idx < value.length - 1) {\n filtersWithOperators.push({\n operator:\n filter.condition === RecordFilterCondition.NOT_EQUAL\n ? RecordFilterOperator.AND\n : RecordFilterOperator.OR,\n });\n }\n if (value.length > 1 && idx >= value.length - 1) {\n filtersWithOperators.push({operator: RecordFilterOperator.CLOSE_BRACKET});\n }\n });\n return filtersWithOperators;\n};\n\nconst _addEmptyCondition = (baseConditions: RecordFilterInput[], filter: UIFilter): RecordFilterInput[] => {\n const hasValue =\n filter.value !== null &&\n filter.value !== undefined &&\n (!Array.isArray(filter.value) || filter.value.length > 0);\n\n // patch because field contains multiple informations & can be empty\n const field = (Array.isArray(filter.field) ? filter.field[0] : filter.field) || filter.attribute.id;\n const emptyCondition = {\n field,\n condition: RecordFilterCondition.IS_EMPTY,\n value: null,\n };\n\n if (!hasValue) {\n return [emptyCondition];\n } else {\n return [\n {operator: RecordFilterOperator.OPEN_BRACKET},\n ...baseConditions,\n {operator: RecordFilterOperator.OR},\n emptyCondition,\n {operator: RecordFilterOperator.CLOSE_BRACKET},\n ];\n }\n};\n\nexport const prepareFiltersForRequest = (\n filters: UIFilter[],\n filtersOperator?: FiltersOperator,\n valuesList?: string[],\n): RecordFilterInput[] => {\n const interleaveFilter = interleaveElement(\n {operator: filtersOperator === 'OR' ? RecordFilterOperator.OR : RecordFilterOperator.AND},\n filters\n .filter(filter => {\n if (filter.withEmptyValues) {\n return true;\n }\n if (isUIFilterTree(filter)) {\n // Skip if: (Toggle ON + no user selection) OR (No user selection + no initial value)\n const noUserSelectionNoInitialValue =\n filter.userNodes == null && (!filter.value || filter.value.length === 0);\n const toggleOnNoUserSelection = filter.includeHiddenOptions && filter.userNodes == null;\n return !(noUserSelectionNoInitialValue || toggleOnNoUserSelection);\n }\n if (isUIFilterWithSmartFilter(filter)) {\n return (\n (filter.value !== null && filter.value.length > 0) ||\n (filter.condition && nullValueConditions.includes(filter.condition))\n );\n }\n\n if (isUIFilterThrough(filter)) {\n return (\n filter.subField &&\n filter.subCondition &&\n (filter.value !== null || nullValueConditions.includes(filter.subCondition))\n );\n }\n\n if (isUIFilterValueList(filter)) {\n return (\n (!!filter.condition && filter.value?.length) ||\n (filter.condition && nullValueConditions.includes(filter.condition))\n );\n }\n\n return filter.value !== null || (filter.condition && nullValueConditions.includes(filter.condition));\n })\n .map(filter => {\n if (isUIFilterTree(filter)) {\n return filter;\n }\n const condition =\n filter.condition === AttributeConditionFilter.THROUGH ? filter.subCondition : filter.condition;\n let field =\n filter.condition === AttributeConditionFilter.THROUGH\n ? `${filter.field}.${filter.subField}`\n : filter.field;\n\n // When a link attribute has a values list, we must filter on the linked record id\n if (isUIFilterLinkWithValueList(filter) && typeof field === 'string' && !field.endsWith('.id')) {\n field = `${field}.id`;\n }\n\n return {...filter, condition, field};\n })\n .map(filter => {\n //@ts-ignore typscript does not recognize filter as a UIFilter\n if (isUIFilterValueList(filter) || isUIFilterTree(filter) || isUIFilterWithSmartFilter(filter)) {\n const field = (Array.isArray(filter.field) ? filter.field[0] : filter.field) || filter.attribute.id;\n if (filter.condition && nullValueConditions.includes(filter.condition)) {\n const baseConditions: RecordFilterInput[] = [\n {\n field,\n condition: filter.condition,\n value: null,\n },\n ];\n return !filter.withEmptyValues\n ? baseConditions\n : _addEmptyCondition(\n baseConditions,\n filter as IUIFilterTree | IUIFilterValueList | IUIFilterSmartFiler,\n );\n }\n if (isUIFilterTree(filter)) {\n // No user selection (null or undefined): add IS_EMPTY to filters\n // TODO : include IS_EMPTY to permissions\n if (filter.userNodes == null) {\n if (filter.withEmptyValues) {\n return [{field, condition: RecordFilterCondition.IS_EMPTY, value: null}];\n }\n const baseConditions = _generateConditionsFromMultipleValues(filter as IUIFilterTree);\n return _addEmptyCondition(baseConditions, filter as IUIFilterTree);\n }\n }\n const baseConditions = _generateConditionsFromMultipleValues(\n filter as IUIFilterTree | IUIFilterValueList | IUIFilterSmartFiler,\n );\n return !filter.withEmptyValues\n ? baseConditions\n : _addEmptyCondition(\n baseConditions,\n filter as IUIFilterTree | IUIFilterValueList | IUIFilterSmartFiler,\n );\n }\n\n if (isUIFilterStandard(filter as UIFilter)) {\n switch (filter.attribute.format) {\n case AttributeFormat.date:\n return _getDateRequestFilters(filter as IUIFilterStandard);\n case AttributeFormat.boolean:\n return _getBooleanRequestFilters(filter as IUIFilterStandard);\n default:\n break;\n }\n }\n const filterWithStringValue = filter as IUIFilterStandard | IUIFilterLink | IUIFilterThrough;\n const baseConditions: RecordFilterInput[] = [\n {\n field: filterWithStringValue.field as string,\n condition: filterWithStringValue.condition as RecordFilterCondition,\n value: filterWithStringValue.value,\n },\n ];\n return !filter.withEmptyValues\n ? baseConditions\n : _addEmptyCondition(baseConditions, filter as UIFilter);\n }),\n );\n\n return [\n ...interleaveFilter,\n ...(interleaveFilter.length > 0 && valuesList ? [{operator: RecordFilterOperator.AND}] : []),\n ...(valuesList ? _addValuesListForFilters(valuesList) : []),\n ];\n};\n"]}
@@ -1,6 +1,3 @@
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
1
  import { useMemo } from 'react';
5
2
  import { useFiltersContext } from './useFiltersContext';
6
3
  export const useFilters = (pinFilters = false) => {
@@ -1 +1 @@
1
- {"version":3,"file":"useFilters.js","sourceRoot":"","sources":["../../../src/components/Filters/useFilters.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,UAAU,GAAG,KAAK,EAAE,EAAE;IAC7C,MAAM,EAAC,WAAW,EAAC,GAAG,iBAAiB,EAAE,CAAC;IAE1C,MAAM,gBAAgB,GAAG,OAAO,CAC5B,GAAG,EAAE,CACD,WAAW,IAAI,WAAW,CAAC,OAAO;QAC9B,CAAC,CAAC,WAAW,CAAC,OAAO;aACd,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC;aACxC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACZ,GAAG,EAAE,MAAM,CAAC,EAAE;YACd,MAAM,EAAE;gBACJ,GAAG,MAAM;gBACT,SAAS,EAAE;oBACP,GAAG,WAAW,CAAC,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC;oBACxD,GAAG,MAAM,CAAC,SAAS;iBACtB;aACJ;YACD,QAAQ,EAAE,UAAU;SACvB,CAAC,CAAC;QACT,CAAC,CAAC,EAAE,EACZ,CAAC,WAAW,CAAC,CAChB,CAAC;IAEF,OAAO;QACH,YAAY,EAAE,gBAAgB;QAC9B,WAAW,EAAE,WAAW,CAAC,OAAO;KACnC,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {useMemo} from 'react';\nimport {useFiltersContext} from './useFiltersContext';\n\nexport const useFilters = (pinFilters = false) => {\n const {filtersData} = useFiltersContext();\n\n const filtersToDisplay = useMemo(\n () =>\n filtersData && filtersData.filters\n ? filtersData.filters\n .filter(filterItem => !filterItem.hidden)\n .map(filter => ({\n key: filter.id,\n filter: {\n ...filter,\n attribute: {\n ...filtersData.attributesDataById[filter?.attribute?.id],\n ...filter.attribute,\n },\n },\n isPinned: pinFilters,\n }))\n : [],\n [filtersData],\n );\n\n return {\n filtersProps: filtersToDisplay,\n filtersData: filtersData.filters,\n };\n};\n"]}
1
+ {"version":3,"file":"useFilters.js","sourceRoot":"","sources":["../../../src/components/Filters/useFilters.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,UAAU,GAAG,KAAK,EAAE,EAAE;IAC7C,MAAM,EAAC,WAAW,EAAC,GAAG,iBAAiB,EAAE,CAAC;IAE1C,MAAM,gBAAgB,GAAG,OAAO,CAC5B,GAAG,EAAE,CACD,WAAW,IAAI,WAAW,CAAC,OAAO;QAC9B,CAAC,CAAC,WAAW,CAAC,OAAO;aACd,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC;aACxC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACZ,GAAG,EAAE,MAAM,CAAC,EAAE;YACd,MAAM,EAAE;gBACJ,GAAG,MAAM;gBACT,SAAS,EAAE;oBACP,GAAG,WAAW,CAAC,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC;oBACxD,GAAG,MAAM,CAAC,SAAS;iBACtB;aACJ;YACD,QAAQ,EAAE,UAAU;SACvB,CAAC,CAAC;QACT,CAAC,CAAC,EAAE,EACZ,CAAC,WAAW,CAAC,CAChB,CAAC;IAEF,OAAO;QACH,YAAY,EAAE,gBAAgB;QAC9B,WAAW,EAAE,WAAW,CAAC,OAAO;KACnC,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {useMemo} from 'react';\nimport {useFiltersContext} from './useFiltersContext';\n\nexport const useFilters = (pinFilters = false) => {\n const {filtersData} = useFiltersContext();\n\n const filtersToDisplay = useMemo(\n () =>\n filtersData && filtersData.filters\n ? filtersData.filters\n .filter(filterItem => !filterItem.hidden)\n .map(filter => ({\n key: filter.id,\n filter: {\n ...filter,\n attribute: {\n ...filtersData.attributesDataById[filter?.attribute?.id],\n ...filter.attribute,\n },\n },\n isPinned: pinFilters,\n }))\n : [],\n [filtersData],\n );\n\n return {\n filtersProps: filtersToDisplay,\n filtersData: filtersData.filters,\n };\n};\n"]}
@@ -1,6 +1,3 @@
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
1
  import { useContext } from 'react';
5
2
  import { FiltersContext } from './context/filtersContext';
6
3
  export const useFiltersContext = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"useFiltersContext.js","sourceRoot":"","sources":["../../../src/components/Filters/useFiltersContext.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACjC,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAExD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAClC,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IAChF,CAAC;IACD,OAAO,OAAO,CAAC;AACnB,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 {useContext} from 'react';\nimport {FiltersContext} from './context/filtersContext';\n\nexport const useFiltersContext = () => {\n const context = useContext(FiltersContext);\n if (!context) {\n throw new Error('FiltersContext must be used inside a <FiltersProvider />');\n }\n return context;\n};\n"]}
1
+ {"version":3,"file":"useFiltersContext.js","sourceRoot":"","sources":["../../../src/components/Filters/useFiltersContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACjC,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAExD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAClC,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IAChF,CAAC;IACD,OAAO,OAAO,CAAC;AACnB,CAAC,CAAC","sourcesContent":["import {useContext} from 'react';\nimport {FiltersContext} from './context/filtersContext';\n\nexport const useFiltersContext = () => {\n const context = useContext(FiltersContext);\n if (!context) {\n throw new Error('FiltersContext must be used inside a <FiltersProvider />');\n }\n return context;\n};\n"]}
@@ -1,6 +1,3 @@
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
1
  import { AttributeFormat, AttributeType, RecordFilterCondition, } from '../../_gqlTypes';
5
2
  import { ThroughConditionFilter } from '../../types';
6
3
  import { isLinkAttribute, isStandardAttribute, isTreeAttribute } from '../../_utils/attributeType';
@@ -1 +1 @@
1
- {"version":3,"file":"useTransformFilters.js","sourceRoot":"","sources":["../../../src/components/Filters/useTransformFilters.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAGH,eAAe,EACf,aAAa,EAKb,qBAAqB,GAGxB,MAAM,eAAe,CAAC;AAgBvB,OAAO,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAC;AACjD,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAC/F,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,uBAAuB,EAAC,MAAM,sDAAsD,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,mBAAmB,GAAG,CAAC,MAA4C,EAA8B,EAAE,CACrG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;AAEnB,MAAM,0BAA0B,GAAG,CAAC,MAAmB,EAAqC,EAAE,CAC1F,MAAM,CAAC,SAAS,KAAK,sBAAsB,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;AAEtG,MAAM,qCAAqC,GAAG,CAC1C,MAAmB,EACnB,SAA6E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AAE,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE;gBAC9B,SAAS,EAAE;oBACP,GAAG,mBAAmB;oBACtB,UAAU,EAAE,aAAa,CAAC,WAAY;iBACzC;gBACD,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,qBAAqB,CAAC,KAAK;gBAC1D,eAAe,EAAE,MAAM,CAAC,eAAe,IAAI,KAAK;aACnD,CAAC;YACF,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACxB,CAAC;QAED,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,EAAE,CAAC,CAAC;IAEX,OAAO;QACH,cAAc;QACd,WAAW;KACd,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {\n type AttributeDetailsLinkAttributeFragment,\n type AttributeDetailsTreeAttributeFragment,\n AttributeFormat,\n AttributeType,\n type ExplorerAttributesQuery,\n type ExplorerLinkAttributeQuery,\n type GetViewsListQuery,\n type LinkAttributeDetailsFragment,\n RecordFilterCondition,\n type StandardAttributeDetailsFragment,\n type ViewDetailsFilterFragment,\n} from '_ui/_gqlTypes';\nimport {\n type UIFilter,\n type IUIFilterBaseAttribute,\n type IUIFilterLink,\n type IUIFilterLinkValueList,\n type IUIFilterStandard,\n type IUIFilterStandardValueList,\n type IUIFilterThrough,\n type IUIFilterTree,\n type ValidFieldFilter,\n type ValidFieldFilterLinkValuesList,\n type ValidFieldFilterStandardValuesList,\n type ValidFieldFilterThrough,\n type ValidFilter,\n} from './_types';\nimport {ThroughConditionFilter} from '_ui/types';\nimport {isLinkAttribute, isStandardAttribute, isTreeAttribute} from '_ui/_utils/attributeType';\nimport {localizedTranslation} from '@leav/utils';\nimport {useLang} from '_ui/hooks';\nimport {valueListTextConditions} from './filter-items/filter-type/useConditionOptionsByType';\nimport dayjs from 'dayjs';\nimport {type TFunction} from 'i18next';\nimport {type ITreeFilters} from './context/useGetTreeFilters';\n\nconst _isValidFieldFilter = (filter: ViewDetailsFilterFragment | UIFilter): filter is ValidFieldFilter =>\n !!filter.field;\n\nconst _isValidFieldFilterThrough = (filter: ValidFilter): filter is ValidFieldFilterThrough =>\n filter.condition === ThroughConditionFilter.THROUGH && !!filter.subCondition && !!filter.subField;\n\nconst _isValidFieldFilterStandardValuesList = (\n filter: ValidFilter,\n attribute: NonNullable<ExplorerAttributesQuery['attributes']>['list'][number],\n): filter is ValidFieldFilterStandardValuesList & {attribute: StandardAttributeDetailsFragment} =>\n valueListTextConditions.includes(filter.condition as RecordFilterCondition) &&\n [AttributeType.simple, AttributeType.advanced].includes(attribute.type) &&\n 'valuesList' in attribute &&\n !!attribute.valuesList?.enable;\n\nconst _isValidFieldFilterLinkValuesList = (\n filter: ValidFilter,\n attribute: NonNullable<ExplorerAttributesQuery['attributes']>['list'][number],\n): filter is ValidFieldFilterLinkValuesList & {attribute: LinkAttributeDetailsFragment} =>\n valueListTextConditions.includes(filter.condition as RecordFilterCondition) &&\n [AttributeType.simple_link, AttributeType.advanced_link].includes(attribute.type) &&\n 'valuesList' in attribute &&\n !!attribute.valuesList?.enable;\n\ntype AttributeDetailsLinkAttributeWithPermissionsFragment = AttributeDetailsLinkAttributeFragment & {\n permissions: {\n access_attribute: boolean;\n };\n};\ntype AttributeDetailsTreeAttributeWithPermissionsFragment = AttributeDetailsTreeAttributeFragment & {\n permissions: {\n access_attribute: boolean;\n };\n};\n\nexport const isLinkAttributeDetails = (\n linkAttributeData: NonNullable<ExplorerLinkAttributeQuery['attributes']>['list'][number],\n): linkAttributeData is LinkAttributeDetailsFragment & {\n id: string;\n multiple_values: boolean;\n permissions: {\n access_attribute: boolean;\n edit_value: boolean;\n };\n} => 'linked_library' in linkAttributeData;\n\nexport type ValidFiltersArgument = GetViewsListQuery['views']['list'][number]['filters'] | UIFilter[];\n\nexport type AttributesById = Record<string, NonNullable<ExplorerAttributesQuery['attributes']>['list'][number]>;\n\nexport const useTransformFilters = () => {\n const {lang} = useLang();\n\n const toValidFilters = (filters: ValidFiltersArgument): ValidFilter[] =>\n (filters ?? []).reduce<ValidFilter[]>((acc, filter) => {\n if (!_isValidFieldFilter(filter)) {\n return acc;\n }\n const _isThroughFilter = filter.field.includes('.');\n\n if (_isThroughFilter) {\n // Hack because view filters does not have the necessary data to be transformed directly to UI filter,\n // we need to split the field to get the subCondition and subField for through filter, may be fix after LEAVC-569\n const [field, ...subFields] = filter.field.split('.');\n const throughFilter: ValidFieldFilterThrough = {\n field,\n subField: subFields.join('.'),\n value: filter.value ?? null,\n hidden: filter.hidden ?? false,\n condition: ThroughConditionFilter.THROUGH,\n subCondition: filter.condition,\n };\n acc.push(throughFilter);\n } else {\n acc.push(filter);\n }\n\n return acc;\n }, []);\n\n const toUIFilters = ({\n filters,\n treeFilters,\n attributesDataById,\n t,\n }: {\n filters: ValidFilter[];\n treeFilters: ITreeFilters;\n attributesDataById: AttributesById;\n t: TFunction;\n }): UIFilter[] =>\n (filters ?? []).reduce<UIFilter[]>((acc, filter) => {\n if (!attributesDataById[filter.field]) {\n console.warn(`Attribute ${filter.field} from user view not found in database.`);\n return acc;\n }\n\n const filterAttributeBase: IUIFilterBaseAttribute = {\n id: attributesDataById[filter.field].id,\n label: localizedTranslation(attributesDataById[filter.field].label, lang),\n type: attributesDataById[filter.field].type,\n };\n\n // filter is standardFilter\n if (isStandardAttribute(filterAttributeBase.type)) {\n const attributeData = attributesDataById[filter.field];\n if (_isValidFieldFilterStandardValuesList(filter, attributeData)) {\n const newFilter: IUIFilterStandardValueList = {\n field: filter.field,\n // TODO : save filter values as string[] when filter and handle fields with libraries\n value: filter.value ? [filter.value] : [],\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: (filter.condition as RecordFilterCondition) ?? null,\n attribute: {\n ...filterAttributeBase,\n format: attributeData.format!,\n valuesList: (attributeData as StandardAttributeDetailsFragment).valuesList!,\n },\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n acc.push(newFilter);\n } else {\n let formattedValue: string;\n if (attributeData.format === AttributeFormat.boolean && filter.value) {\n formattedValue = filter.value === 'true' ? t('explorer.true') : t('explorer.false');\n }\n\n if (attributeData.format === AttributeFormat.date && filter.value) {\n formattedValue = dayjs(filter.value).format('YYYY-MM-DD');\n }\n\n const newFilter: IUIFilterStandard = {\n field: filter.field,\n value: filter.value ?? null,\n formattedValue,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: (filter.condition as RecordFilterCondition) ?? null,\n attribute: {\n ...filterAttributeBase,\n format: attributeData.format!,\n smartFilter: (attributeData as StandardAttributeDetailsFragment).smart_filter ?? undefined,\n },\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n acc.push(newFilter);\n }\n }\n\n if (isLinkAttribute(filterAttributeBase.type)) {\n const attributeData = attributesDataById[\n filter.field\n ] as AttributeDetailsLinkAttributeWithPermissionsFragment;\n if (_isValidFieldFilterThrough(filter)) {\n const newFilter: IUIFilterThrough = {\n field: filter.field,\n value: filter.value ?? null,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: filter.condition,\n attribute: {\n ...filterAttributeBase,\n linkedLibrary: attributeData.linked_library!,\n smartFilter: attributeData.smart_filter ?? undefined,\n },\n subCondition: filter.subCondition ?? null,\n subField: filter.subField,\n };\n acc.push(newFilter);\n } else if (_isValidFieldFilterLinkValuesList(filter, attributeData)) {\n const newFilter: IUIFilterLinkValueList = {\n field: filter.field,\n // TODO : save filter values as string[] when filter and handle fields with libraries\n value: filter.value ? [filter.value] : [],\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: filter.condition,\n attribute: {\n ...filterAttributeBase,\n linkedLibrary: attributeData.linked_library!,\n valuesList: (attributeData as LinkAttributeDetailsFragment).valuesList!,\n smartFilter: attributeData.smart_filter ?? undefined,\n },\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n\n acc.push(newFilter);\n } else {\n const newFilter: IUIFilterLink = {\n field: filter.field,\n value: filter.value ?? null,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: filter.condition,\n attribute: {\n ...filterAttributeBase,\n linkedLibrary: attributeData.linked_library!,\n smartFilter: attributeData.smart_filter ?? undefined,\n },\n };\n\n acc.push(newFilter);\n }\n }\n\n if (isTreeAttribute(filterAttributeBase.type) && !_isValidFieldFilterThrough(filter)) {\n const attributeData = attributesDataById[\n filter.field\n ] as AttributeDetailsTreeAttributeWithPermissionsFragment;\n const newFilter: IUIFilterTree = {\n field: [filter.field],\n // TODO : save filter values as string[] when tree filter and handle fields with libraries\n value: filter.value\n ? [filter.value]\n : treeFilters[filter.field]\n ? treeFilters[filter.field].map(tree => tree.value)\n : null,\n formattedValue: filter.value\n ? [filter.value]\n : treeFilters[filter.field]\n ? treeFilters[filter.field].map(tree => tree.label)\n : undefined,\n nodes: filter.value\n ? undefined\n : treeFilters[filter.field]\n ? treeFilters[filter.field].map(tree => ({libraryId: tree.libraryId, nodeId: tree.nodeId}))\n : undefined,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n attribute: {\n ...filterAttributeBase,\n linkedTree: attributeData.linked_tree!,\n },\n condition: filter.condition ?? RecordFilterCondition.EQUAL,\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n acc.push(newFilter);\n }\n\n return acc;\n }, []);\n\n return {\n toValidFilters,\n toUIFilters,\n };\n};\n"]}
1
+ {"version":3,"file":"useTransformFilters.js","sourceRoot":"","sources":["../../../src/components/Filters/useTransformFilters.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,eAAe,EACf,aAAa,EAKb,qBAAqB,GAGxB,MAAM,eAAe,CAAC;AAgBvB,OAAO,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAC;AACjD,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAC/F,OAAO,EAAC,oBAAoB,EAAC,MAAM,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GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;wBACnD,CAAC,CAAC,SAAS;gBACjB,KAAK,EAAE,MAAM,CAAC,KAAK;oBACf,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC;wBACzB,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAC,CAAC,CAAC;wBAC3F,CAAC,CAAC,SAAS;gBACjB,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,KAAK;gBAC9B,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE;gBAC9B,SAAS,EAAE;oBACP,GAAG,mBAAmB;oBACtB,UAAU,EAAE,aAAa,CAAC,WAAY;iBACzC;gBACD,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,qBAAqB,CAAC,KAAK;gBAC1D,eAAe,EAAE,MAAM,CAAC,eAAe,IAAI,KAAK;aACnD,CAAC;YACF,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACxB,CAAC;QAED,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,EAAE,CAAC,CAAC;IAEX,OAAO;QACH,cAAc;QACd,WAAW;KACd,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {\n type AttributeDetailsLinkAttributeFragment,\n type AttributeDetailsTreeAttributeFragment,\n AttributeFormat,\n AttributeType,\n type ExplorerAttributesQuery,\n type ExplorerLinkAttributeQuery,\n type GetViewsListQuery,\n type LinkAttributeDetailsFragment,\n RecordFilterCondition,\n type StandardAttributeDetailsFragment,\n type ViewDetailsFilterFragment,\n} from '_ui/_gqlTypes';\nimport {\n type UIFilter,\n type IUIFilterBaseAttribute,\n type IUIFilterLink,\n type IUIFilterLinkValueList,\n type IUIFilterStandard,\n type IUIFilterStandardValueList,\n type IUIFilterThrough,\n type IUIFilterTree,\n type ValidFieldFilter,\n type ValidFieldFilterLinkValuesList,\n type ValidFieldFilterStandardValuesList,\n type ValidFieldFilterThrough,\n type ValidFilter,\n} from './_types';\nimport {ThroughConditionFilter} from '_ui/types';\nimport {isLinkAttribute, isStandardAttribute, isTreeAttribute} from '_ui/_utils/attributeType';\nimport {localizedTranslation} from '@leav/utils';\nimport {useLang} from '_ui/hooks';\nimport {valueListTextConditions} from './filter-items/filter-type/useConditionOptionsByType';\nimport dayjs from 'dayjs';\nimport {type TFunction} from 'i18next';\nimport {type ITreeFilters} from './context/useGetTreeFilters';\n\nconst _isValidFieldFilter = (filter: ViewDetailsFilterFragment | UIFilter): filter is ValidFieldFilter =>\n !!filter.field;\n\nconst _isValidFieldFilterThrough = (filter: ValidFilter): filter is ValidFieldFilterThrough =>\n filter.condition === ThroughConditionFilter.THROUGH && !!filter.subCondition && !!filter.subField;\n\nconst _isValidFieldFilterStandardValuesList = (\n filter: ValidFilter,\n attribute: NonNullable<ExplorerAttributesQuery['attributes']>['list'][number],\n): filter is ValidFieldFilterStandardValuesList & {attribute: StandardAttributeDetailsFragment} =>\n valueListTextConditions.includes(filter.condition as RecordFilterCondition) &&\n [AttributeType.simple, AttributeType.advanced].includes(attribute.type) &&\n 'valuesList' in attribute &&\n !!attribute.valuesList?.enable;\n\nconst _isValidFieldFilterLinkValuesList = (\n filter: ValidFilter,\n attribute: NonNullable<ExplorerAttributesQuery['attributes']>['list'][number],\n): filter is ValidFieldFilterLinkValuesList & {attribute: LinkAttributeDetailsFragment} =>\n valueListTextConditions.includes(filter.condition as RecordFilterCondition) &&\n [AttributeType.simple_link, AttributeType.advanced_link].includes(attribute.type) &&\n 'valuesList' in attribute &&\n !!attribute.valuesList?.enable;\n\ntype AttributeDetailsLinkAttributeWithPermissionsFragment = AttributeDetailsLinkAttributeFragment & {\n permissions: {\n access_attribute: boolean;\n };\n};\ntype AttributeDetailsTreeAttributeWithPermissionsFragment = AttributeDetailsTreeAttributeFragment & {\n permissions: {\n access_attribute: boolean;\n };\n};\n\nexport const isLinkAttributeDetails = (\n linkAttributeData: NonNullable<ExplorerLinkAttributeQuery['attributes']>['list'][number],\n): linkAttributeData is LinkAttributeDetailsFragment & {\n id: string;\n multiple_values: boolean;\n permissions: {\n access_attribute: boolean;\n edit_value: boolean;\n };\n} => 'linked_library' in linkAttributeData;\n\nexport type ValidFiltersArgument = GetViewsListQuery['views']['list'][number]['filters'] | UIFilter[];\n\nexport type AttributesById = Record<string, NonNullable<ExplorerAttributesQuery['attributes']>['list'][number]>;\n\nexport const useTransformFilters = () => {\n const {lang} = useLang();\n\n const toValidFilters = (filters: ValidFiltersArgument): ValidFilter[] =>\n (filters ?? []).reduce<ValidFilter[]>((acc, filter) => {\n if (!_isValidFieldFilter(filter)) {\n return acc;\n }\n const _isThroughFilter = filter.field.includes('.');\n\n if (_isThroughFilter) {\n // Hack because view filters does not have the necessary data to be transformed directly to UI filter,\n // we need to split the field to get the subCondition and subField for through filter, may be fix after LEAVC-569\n const [field, ...subFields] = filter.field.split('.');\n const throughFilter: ValidFieldFilterThrough = {\n field,\n subField: subFields.join('.'),\n value: filter.value ?? null,\n hidden: filter.hidden ?? false,\n condition: ThroughConditionFilter.THROUGH,\n subCondition: filter.condition,\n };\n acc.push(throughFilter);\n } else {\n acc.push(filter);\n }\n\n return acc;\n }, []);\n\n const toUIFilters = ({\n filters,\n treeFilters,\n attributesDataById,\n t,\n }: {\n filters: ValidFilter[];\n treeFilters: ITreeFilters;\n attributesDataById: AttributesById;\n t: TFunction;\n }): UIFilter[] =>\n (filters ?? []).reduce<UIFilter[]>((acc, filter) => {\n if (!attributesDataById[filter.field]) {\n console.warn(`Attribute ${filter.field} from user view not found in database.`);\n return acc;\n }\n\n const filterAttributeBase: IUIFilterBaseAttribute = {\n id: attributesDataById[filter.field].id,\n label: localizedTranslation(attributesDataById[filter.field].label, lang),\n type: attributesDataById[filter.field].type,\n };\n\n // filter is standardFilter\n if (isStandardAttribute(filterAttributeBase.type)) {\n const attributeData = attributesDataById[filter.field];\n if (_isValidFieldFilterStandardValuesList(filter, attributeData)) {\n const newFilter: IUIFilterStandardValueList = {\n field: filter.field,\n // TODO : save filter values as string[] when filter and handle fields with libraries\n value: filter.value ? [filter.value] : [],\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: (filter.condition as RecordFilterCondition) ?? null,\n attribute: {\n ...filterAttributeBase,\n format: attributeData.format!,\n valuesList: (attributeData as StandardAttributeDetailsFragment).valuesList!,\n },\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n acc.push(newFilter);\n } else {\n let formattedValue: string;\n if (attributeData.format === AttributeFormat.boolean && filter.value) {\n formattedValue = filter.value === 'true' ? t('explorer.true') : t('explorer.false');\n }\n\n if (attributeData.format === AttributeFormat.date && filter.value) {\n formattedValue = dayjs(filter.value).format('YYYY-MM-DD');\n }\n\n const newFilter: IUIFilterStandard = {\n field: filter.field,\n value: filter.value ?? null,\n formattedValue,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: (filter.condition as RecordFilterCondition) ?? null,\n attribute: {\n ...filterAttributeBase,\n format: attributeData.format!,\n smartFilter: (attributeData as StandardAttributeDetailsFragment).smart_filter ?? undefined,\n },\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n acc.push(newFilter);\n }\n }\n\n if (isLinkAttribute(filterAttributeBase.type)) {\n const attributeData = attributesDataById[\n filter.field\n ] as AttributeDetailsLinkAttributeWithPermissionsFragment;\n if (_isValidFieldFilterThrough(filter)) {\n const newFilter: IUIFilterThrough = {\n field: filter.field,\n value: filter.value ?? null,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: filter.condition,\n attribute: {\n ...filterAttributeBase,\n linkedLibrary: attributeData.linked_library!,\n smartFilter: attributeData.smart_filter ?? undefined,\n },\n subCondition: filter.subCondition ?? null,\n subField: filter.subField,\n };\n acc.push(newFilter);\n } else if (_isValidFieldFilterLinkValuesList(filter, attributeData)) {\n const newFilter: IUIFilterLinkValueList = {\n field: filter.field,\n // TODO : save filter values as string[] when filter and handle fields with libraries\n value: filter.value ? [filter.value] : [],\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: filter.condition,\n attribute: {\n ...filterAttributeBase,\n linkedLibrary: attributeData.linked_library!,\n valuesList: (attributeData as LinkAttributeDetailsFragment).valuesList!,\n smartFilter: attributeData.smart_filter ?? undefined,\n },\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n\n acc.push(newFilter);\n } else {\n const newFilter: IUIFilterLink = {\n field: filter.field,\n value: filter.value ?? null,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n condition: filter.condition,\n attribute: {\n ...filterAttributeBase,\n linkedLibrary: attributeData.linked_library!,\n smartFilter: attributeData.smart_filter ?? undefined,\n },\n };\n\n acc.push(newFilter);\n }\n }\n\n if (isTreeAttribute(filterAttributeBase.type) && !_isValidFieldFilterThrough(filter)) {\n const attributeData = attributesDataById[\n filter.field\n ] as AttributeDetailsTreeAttributeWithPermissionsFragment;\n const newFilter: IUIFilterTree = {\n field: [filter.field],\n // TODO : save filter values as string[] when tree filter and handle fields with libraries\n value: filter.value\n ? [filter.value]\n : treeFilters[filter.field]\n ? treeFilters[filter.field].map(tree => tree.value)\n : null,\n formattedValue: filter.value\n ? [filter.value]\n : treeFilters[filter.field]\n ? treeFilters[filter.field].map(tree => tree.label)\n : undefined,\n nodes: filter.value\n ? undefined\n : treeFilters[filter.field]\n ? treeFilters[filter.field].map(tree => ({libraryId: tree.libraryId, nodeId: tree.nodeId}))\n : undefined,\n hidden: filter.hidden ?? false,\n id: window.crypto.randomUUID(),\n attribute: {\n ...filterAttributeBase,\n linkedTree: attributeData.linked_tree!,\n },\n condition: filter.condition ?? RecordFilterCondition.EQUAL,\n withEmptyValues: filter.withEmptyValues ?? false,\n };\n acc.push(newFilter);\n }\n\n return acc;\n }, []);\n\n return {\n toValidFilters,\n toUIFilters,\n };\n};\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import { EllipsisOutlined } from '@ant-design/icons';
6
3
  import { Dropdown, Tooltip } from 'antd';
7
4
  import Button from 'antd/lib/button';
@@ -1 +1 @@
1
- {"version":3,"file":"FloatingMenu.js","sourceRoot":"","sources":["../../../src/components/FloatingMenu/FloatingMenu.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AACvC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,MAAwB,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAUpE,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAA6B;;;;;;;;;;;;;;;;MAgB7D,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa;CACzB,CAAC;AAEF,SAAS,YAAY,CAAC,EAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,GAAG,OAAO,EAAqB;IACnF,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,OAAO,CACH,MAAC,mBAAmB,mBACJ,eAAe,EAC3B,SAAS,EAAC,eAAe,EACzB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,CAAC,CAAC,EAAE;YACT,CAAC,CAAC,eAAe,EAAE,CAAC;YACpB,CAAC,CAAC,cAAc,EAAE,CAAC;QACvB,CAAC,aAEA,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,KAAC,OAAO,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,YACtB,MAAqC,CAAC,MAAM,IAAI,CAC9C,KAAC,MAAM,IACH,KAAK,EAAC,QAAQ,EACd,IAAI,EAAG,MAAsC,CAAC,IAAI,EAClD,IAAI,EAAG,MAAsC,CAAC,IAAI,EAClD,OAAO,EAAG,MAAsC,CAAC,OAAO,GAC1D,CACL,IAR8B,MAAM,CAAC,KAAK,IAAI,CAAC,CAS1C,CACb,CAAC,EACD,CAAC,CAAC,WAAW,EAAE,MAAM,IAAI,CACtB,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,CAAC,wCAAwC,CAAC,YACvD,KAAC,QAAQ,IACL,SAAS,EAAC,aAAa,EACvB,IAAI,EAAE;wBACF,SAAS,EAAE,uBAAuB;wBAClC,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;4BAClC,GAAG,EAAE,UAAU,CAAC,KAAK;4BACrB,OAAO,EAAE,UAAU,CAAC,OAAO;4BAC3B,KAAK,EAAE,CACH,8BACK,UAAU,CAAC,IAAI,OAAG,UAAU,CAAC,KAAK,IACpC,CACN;yBACJ,CAAC,CAAC;qBACN,YAED,KAAC,MAAM,IACH,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,KAAC,gBAAgB,KAAG,gBACd,CAAC,CAAC,4BAA4B,CAAC,EAC3C,KAAK,EAAE,CAAC,CAAC,4BAA4B,CAAC,EACtC,KAAK,EAAC,QAAQ,GAChB,GACK,IAvBkD,cAAc,CAwBrE,CACb,IACiB,CACzB,CAAC;AACN,CAAC;AAED,eAAe,YAAY,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 {EllipsisOutlined} from '@ant-design/icons';\nimport {Dropdown, Tooltip} from 'antd';\nimport Button from 'antd/lib/button';\nimport {type SizeType} from 'antd/lib/config-provider/SizeContext';\nimport styled, {type CSSObject} from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type FloatingMenuAction, type IFloatingMenuActionWithBtn, type IFloatingMenuActionWithIcon} from './_types';\n\nexport interface IFloatingMenuProps {\n actions: FloatingMenuAction[];\n moreActions?: IFloatingMenuActionWithIcon[];\n size?: SizeType;\n style?: React.CSSProperties;\n}\n\nconst FloatingMenuWrapper = styled.div<{overrideStyle?: CSSObject}>`\n position: absolute;\n z-index: 1000;\n right: 0;\n top: 50%;\n transform: translateY(-50%); // center vertically\n\n display: flex;\n justify-content: space-around;\n padding: 0.5rem;\n\n & > * {\n margin: 0 0.2rem;\n box-shadow: 0px 2px 6px #0000002f;\n }\n\n ${p => p.overrideStyle}\n`;\n\nfunction FloatingMenu({actions, moreActions, style, size = 'small'}: IFloatingMenuProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n return (\n <FloatingMenuWrapper\n data-testid=\"floating-menu\"\n className=\"floating-menu\"\n style={style}\n onClick={e => {\n e.stopPropagation();\n e.preventDefault();\n }}\n >\n {actions.map((action, i) => (\n <Tooltip title={action.title} key={action.title ?? i}>\n {(action as IFloatingMenuActionWithBtn).button ?? (\n <Button\n shape=\"circle\"\n size={(action as IFloatingMenuActionWithIcon).size}\n icon={(action as IFloatingMenuActionWithIcon).icon}\n onClick={(action as IFloatingMenuActionWithIcon).onClick}\n />\n )}\n </Tooltip>\n ))}\n {!!moreActions?.length && (\n <Tooltip title={t('items_list.table.actions-tooltips.more')} key=\"more_actions\">\n <Dropdown\n placement=\"bottomRight\"\n menu={{\n className: 'floating-menu-overlay',\n items: moreActions.map(moreAction => ({\n key: moreAction.title,\n onClick: moreAction.onClick,\n label: (\n <>\n {moreAction.icon} {moreAction.title}\n </>\n ),\n })),\n }}\n >\n <Button\n size={size}\n icon={<EllipsisOutlined />}\n aria-label={t('floating_menu.more_actions')}\n title={t('floating_menu.more_actions')}\n shape=\"circle\"\n />\n </Dropdown>\n </Tooltip>\n )}\n </FloatingMenuWrapper>\n );\n}\n\nexport default FloatingMenu;\n"]}
1
+ {"version":3,"file":"FloatingMenu.js","sourceRoot":"","sources":["../../../src/components/FloatingMenu/FloatingMenu.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AACvC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,MAAwB,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAUpE,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAA6B;;;;;;;;;;;;;;;;MAgB7D,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa;CACzB,CAAC;AAEF,SAAS,YAAY,CAAC,EAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,GAAG,OAAO,EAAqB;IACnF,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,OAAO,CACH,MAAC,mBAAmB,mBACJ,eAAe,EAC3B,SAAS,EAAC,eAAe,EACzB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,CAAC,CAAC,EAAE;YACT,CAAC,CAAC,eAAe,EAAE,CAAC;YACpB,CAAC,CAAC,cAAc,EAAE,CAAC;QACvB,CAAC,aAEA,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,KAAC,OAAO,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,YACtB,MAAqC,CAAC,MAAM,IAAI,CAC9C,KAAC,MAAM,IACH,KAAK,EAAC,QAAQ,EACd,IAAI,EAAG,MAAsC,CAAC,IAAI,EAClD,IAAI,EAAG,MAAsC,CAAC,IAAI,EAClD,OAAO,EAAG,MAAsC,CAAC,OAAO,GAC1D,CACL,IAR8B,MAAM,CAAC,KAAK,IAAI,CAAC,CAS1C,CACb,CAAC,EACD,CAAC,CAAC,WAAW,EAAE,MAAM,IAAI,CACtB,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,CAAC,wCAAwC,CAAC,YACvD,KAAC,QAAQ,IACL,SAAS,EAAC,aAAa,EACvB,IAAI,EAAE;wBACF,SAAS,EAAE,uBAAuB;wBAClC,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;4BAClC,GAAG,EAAE,UAAU,CAAC,KAAK;4BACrB,OAAO,EAAE,UAAU,CAAC,OAAO;4BAC3B,KAAK,EAAE,CACH,8BACK,UAAU,CAAC,IAAI,OAAG,UAAU,CAAC,KAAK,IACpC,CACN;yBACJ,CAAC,CAAC;qBACN,YAED,KAAC,MAAM,IACH,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,KAAC,gBAAgB,KAAG,gBACd,CAAC,CAAC,4BAA4B,CAAC,EAC3C,KAAK,EAAE,CAAC,CAAC,4BAA4B,CAAC,EACtC,KAAK,EAAC,QAAQ,GAChB,GACK,IAvBkD,cAAc,CAwBrE,CACb,IACiB,CACzB,CAAC;AACN,CAAC;AAED,eAAe,YAAY,CAAC","sourcesContent":["import {EllipsisOutlined} from '@ant-design/icons';\nimport {Dropdown, Tooltip} from 'antd';\nimport Button from 'antd/lib/button';\nimport {type SizeType} from 'antd/lib/config-provider/SizeContext';\nimport styled, {type CSSObject} from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type FloatingMenuAction, type IFloatingMenuActionWithBtn, type IFloatingMenuActionWithIcon} from './_types';\n\nexport interface IFloatingMenuProps {\n actions: FloatingMenuAction[];\n moreActions?: IFloatingMenuActionWithIcon[];\n size?: SizeType;\n style?: React.CSSProperties;\n}\n\nconst FloatingMenuWrapper = styled.div<{overrideStyle?: CSSObject}>`\n position: absolute;\n z-index: 1000;\n right: 0;\n top: 50%;\n transform: translateY(-50%); // center vertically\n\n display: flex;\n justify-content: space-around;\n padding: 0.5rem;\n\n & > * {\n margin: 0 0.2rem;\n box-shadow: 0px 2px 6px #0000002f;\n }\n\n ${p => p.overrideStyle}\n`;\n\nfunction FloatingMenu({actions, moreActions, style, size = 'small'}: IFloatingMenuProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n return (\n <FloatingMenuWrapper\n data-testid=\"floating-menu\"\n className=\"floating-menu\"\n style={style}\n onClick={e => {\n e.stopPropagation();\n e.preventDefault();\n }}\n >\n {actions.map((action, i) => (\n <Tooltip title={action.title} key={action.title ?? i}>\n {(action as IFloatingMenuActionWithBtn).button ?? (\n <Button\n shape=\"circle\"\n size={(action as IFloatingMenuActionWithIcon).size}\n icon={(action as IFloatingMenuActionWithIcon).icon}\n onClick={(action as IFloatingMenuActionWithIcon).onClick}\n />\n )}\n </Tooltip>\n ))}\n {!!moreActions?.length && (\n <Tooltip title={t('items_list.table.actions-tooltips.more')} key=\"more_actions\">\n <Dropdown\n placement=\"bottomRight\"\n menu={{\n className: 'floating-menu-overlay',\n items: moreActions.map(moreAction => ({\n key: moreAction.title,\n onClick: moreAction.onClick,\n label: (\n <>\n {moreAction.icon} {moreAction.title}\n </>\n ),\n })),\n }}\n >\n <Button\n size={size}\n icon={<EllipsisOutlined />}\n aria-label={t('floating_menu.more_actions')}\n title={t('floating_menu.more_actions')}\n shape=\"circle\"\n />\n </Dropdown>\n </Tooltip>\n )}\n </FloatingMenuWrapper>\n );\n}\n\nexport default FloatingMenu;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/FloatingMenu/_types.ts"],"names":[],"mappings":"","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 ButtonSize} from 'antd/lib/button';\n\nexport interface IFloatingMenuActionWithBtn extends IFloatingMenuActionCommon {\n button?: React.ReactNode;\n}\n\nexport interface IFloatingMenuActionWithIcon extends IFloatingMenuActionCommon {\n icon?: React.ReactNode;\n onClick?: () => void;\n size?: ButtonSize;\n}\n\nexport interface IFloatingMenuActionCommon {\n title?: string;\n}\n\nexport type FloatingMenuAction = IFloatingMenuActionWithIcon | IFloatingMenuActionWithBtn;\n"]}
1
+ {"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../src/components/FloatingMenu/_types.ts"],"names":[],"mappings":"","sourcesContent":["import {type ButtonSize} from 'antd/lib/button';\n\nexport interface IFloatingMenuActionWithBtn extends IFloatingMenuActionCommon {\n button?: React.ReactNode;\n}\n\nexport interface IFloatingMenuActionWithIcon extends IFloatingMenuActionCommon {\n icon?: React.ReactNode;\n onClick?: () => void;\n size?: ButtonSize;\n}\n\nexport interface IFloatingMenuActionCommon {\n title?: string;\n}\n\nexport type FloatingMenuAction = IFloatingMenuActionWithIcon | IFloatingMenuActionWithBtn;\n"]}
@@ -1,6 +1,3 @@
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
1
  export { default as FloatingMenu } from './FloatingMenu';
5
2
  export * from './_types';
6
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/FloatingMenu/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,cAAc,UAAU,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nexport {default as FloatingMenu} from './FloatingMenu';\nexport * from './_types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/FloatingMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,cAAc,UAAU,CAAC","sourcesContent":["export {default as FloatingMenu} from './FloatingMenu';\nexport * from './_types';\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import { Skeleton } from 'antd';
6
3
  import styled from 'styled-components';
7
4
  const CustomSkeletonImage = styled(Skeleton.Image) `
@@ -1 +1 @@
1
- {"version":3,"file":"ImageLoading.js","sourceRoot":"","sources":["../../../src/components/ImageLoading/ImageLoading.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,MAAM,CAAC;AAC9B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,mBAAmB,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;;;;;;;;;;;;;CAajD,CAAC;AAMF,SAAS,YAAY,CAAC,EAAC,KAAK,EAAqB;IAC7C,kHAAkH;IAClH,+EAA+E;IAC/E,OAAO,KAAC,mBAAmB,IAAC,KAAK,EAAE,EAAC,GAAG,KAAK,EAAC,EAAE,SAAS,EAAC,qBAAqB,GAAG,CAAC;AACtF,CAAC;AAED,eAAe,YAAY,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 {Skeleton} from 'antd';\nimport styled from 'styled-components';\n\nconst CustomSkeletonImage = styled(Skeleton.Image)`\n &&& {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n\n .ant-skeleton-image-svg {\n width: 30%;\n height: 30%;\n }\n }\n`;\n\ninterface IImageLoadingProps {\n style?: React.CSSProperties;\n}\n\nfunction ImageLoading({style}: IImageLoadingProps): JSX.Element {\n // Setting the className manually is a workaround for a probable bug in antd: the active flag is not allowed by TS\n // and ignored at runtime. Check this when upgrading antd (written at v4.20.4).\n return <CustomSkeletonImage style={{...style}} className=\"ant-skeleton-active\" />;\n}\n\nexport default ImageLoading;\n"]}
1
+ {"version":3,"file":"ImageLoading.js","sourceRoot":"","sources":["../../../src/components/ImageLoading/ImageLoading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,MAAM,CAAC;AAC9B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,mBAAmB,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;;;;;;;;;;;;;CAajD,CAAC;AAMF,SAAS,YAAY,CAAC,EAAC,KAAK,EAAqB;IAC7C,kHAAkH;IAClH,+EAA+E;IAC/E,OAAO,KAAC,mBAAmB,IAAC,KAAK,EAAE,EAAC,GAAG,KAAK,EAAC,EAAE,SAAS,EAAC,qBAAqB,GAAG,CAAC;AACtF,CAAC;AAED,eAAe,YAAY,CAAC","sourcesContent":["import {Skeleton} from 'antd';\nimport styled from 'styled-components';\n\nconst CustomSkeletonImage = styled(Skeleton.Image)`\n &&& {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n\n .ant-skeleton-image-svg {\n width: 30%;\n height: 30%;\n }\n }\n`;\n\ninterface IImageLoadingProps {\n style?: React.CSSProperties;\n}\n\nfunction ImageLoading({style}: IImageLoadingProps): JSX.Element {\n // Setting the className manually is a workaround for a probable bug in antd: the active flag is not allowed by TS\n // and ignored at runtime. Check this when upgrading antd (written at v4.20.4).\n return <CustomSkeletonImage style={{...style}} className=\"ant-skeleton-active\" />;\n}\n\nexport default ImageLoading;\n"]}
@@ -1,5 +1,2 @@
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
1
  export { default as ImageLoading } from './ImageLoading';
5
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ImageLoading/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nexport {default as ImageLoading} from './ImageLoading';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ImageLoading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC","sourcesContent":["export {default as ImageLoading} from './ImageLoading';\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import { PictureOutlined } from '@ant-design/icons';
6
3
  import styled from 'styled-components';
7
4
  import { themeVars } from '../../antdTheme';
@@ -1 +1 @@
1
- {"version":3,"file":"ImageMissing.js","sourceRoot":"","sources":["../../../src/components/ImageMissing/ImageMissing.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAE1C,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;CAQzB,CAAC;AAMF,SAAS,YAAY,CAAC,EAAC,KAAK,EAAqB;IAC7C,OAAO,CACH,KAAC,OAAO,cACJ,KAAC,eAAe,IACZ,KAAK,EAAE;gBACH,OAAO,EAAE,MAAM;gBACf,cAAc,EAAE,QAAQ;gBACxB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,MAAM,SAAS,CAAC,CAAC,CAAC,OAAO;gBAChE,KAAK,EAAE,SAAS,CAAC,kBAAkB;gBACnC,GAAG,KAAK;aACX,GACH,GACI,CACb,CAAC;AACN,CAAC;AAED,eAAe,YAAY,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 {PictureOutlined} from '@ant-design/icons';\nimport styled from 'styled-components';\nimport {themeVars} from '../../antdTheme';\n\nconst Wrapper = styled.div`\n &&& {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n`;\n\ninterface IImageMissingProps {\n style?: React.CSSProperties;\n}\n\nfunction ImageMissing({style}: IImageMissingProps): JSX.Element {\n return (\n <Wrapper>\n <PictureOutlined\n style={{\n display: 'flex',\n justifyContent: 'center',\n fontSize: style.height ? `calc(${style.height} * 0.6)` : '120px',\n color: themeVars.secondaryTextColor,\n ...style,\n }}\n />\n </Wrapper>\n );\n}\n\nexport default ImageMissing;\n"]}
1
+ {"version":3,"file":"ImageMissing.js","sourceRoot":"","sources":["../../../src/components/ImageMissing/ImageMissing.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAE1C,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;CAQzB,CAAC;AAMF,SAAS,YAAY,CAAC,EAAC,KAAK,EAAqB;IAC7C,OAAO,CACH,KAAC,OAAO,cACJ,KAAC,eAAe,IACZ,KAAK,EAAE;gBACH,OAAO,EAAE,MAAM;gBACf,cAAc,EAAE,QAAQ;gBACxB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,MAAM,SAAS,CAAC,CAAC,CAAC,OAAO;gBAChE,KAAK,EAAE,SAAS,CAAC,kBAAkB;gBACnC,GAAG,KAAK;aACX,GACH,GACI,CACb,CAAC;AACN,CAAC;AAED,eAAe,YAAY,CAAC","sourcesContent":["import {PictureOutlined} from '@ant-design/icons';\nimport styled from 'styled-components';\nimport {themeVars} from '../../antdTheme';\n\nconst Wrapper = styled.div`\n &&& {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n`;\n\ninterface IImageMissingProps {\n style?: React.CSSProperties;\n}\n\nfunction ImageMissing({style}: IImageMissingProps): JSX.Element {\n return (\n <Wrapper>\n <PictureOutlined\n style={{\n display: 'flex',\n justifyContent: 'center',\n fontSize: style.height ? `calc(${style.height} * 0.6)` : '120px',\n color: themeVars.secondaryTextColor,\n ...style,\n }}\n />\n </Wrapper>\n );\n}\n\nexport default ImageMissing;\n"]}
@@ -1,5 +1,2 @@
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
1
  export { default as ImageMissing } from './ImageMissing';
5
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ImageMissing/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nexport {default as ImageMissing} from './ImageMissing';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ImageMissing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC","sourcesContent":["export {default as ImageMissing} from './ImageMissing';\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import { DownOutlined, FieldTimeOutlined, RightOutlined } from '@ant-design/icons';
6
3
  import { Button, Dropdown, message, Modal, Space } from 'antd';
7
4
  import { KitSteps } from 'aristid-ds';
@@ -1 +1 @@
1
- {"version":3,"file":"ImportModal.js","sourceRoot":"","sources":["../../../src/components/ImportModal/ImportModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEjF,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AAC7D,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAGpC,OAAO,EAAC,IAAI,EAAkB,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC3E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MA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AE,WAAW,EAAC,EAC9E,iBAAiB,EAAE,EAAC,QAAQ,EAAE,WAAW,KAAK,WAAW,CAAC,IAAI,EAAC,EAC/D,cAAc,EAAE,IAAI,EACpB,MAAM,EAAE,WAAW,aAEnB,KAAC,QAAQ,IAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,EAAC,YAAY,EAAE,KAAK,EAAC,EAAE,KAAK,EAAE,UAAU,GAAI,EACnF,KAAC,OAAO,cACJ,KAAC,QAAQ,IAAC,QAAQ,EAAE,KAAC,OAAO,KAAG,YAAG,eAAe,EAAE,GAAY,GACzD,IACN,GACoB,IACjC,CACN,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {DownOutlined, FieldTimeOutlined, RightOutlined} from '@ant-design/icons';\nimport {type ServerError} from '@apollo/client';\nimport {Button, Dropdown, message, Modal, Space} from 'antd';\nimport {KitSteps} from 'aristid-ds';\nimport {type IKitStep} from 'aristid-ds/dist/Kit/Navigation/Steps/types';\nimport type dayjs from 'dayjs';\nimport {lazy, type ReactNode, Suspense, useReducer, useState} from 'react';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type LibraryLightFragment, useGetAttributesByLibLazyQuery, useImportExcelMutation} from '_ui/_gqlTypes';\nimport {Loading} from '../Loading';\nimport ImportScheduleModal from './ImportModalConfigStep/ImportScheduleModal';\nimport importReducer from './importReducer';\nimport {ImportReducerActionTypes, initialState} from './importReducer/importReducer';\nimport ImportReducerContext from './importReducer/ImportReducerContext';\nimport {ImportSteps} from './_types';\n\nexport interface IImportModalProps {\n open: boolean;\n onClose: () => void;\n library?: string;\n availableLibraries?: LibraryLightFragment[];\n resultExtraButtons?: JSX.Element[];\n}\nconst Content = styled.div`\n margin-top: 2em;\n height: calc(100% - 6rem);\n overflow-y: auto;\n`;\n\n// Lazy load steps as it's using some heavy lib for XLSX handling. We don't want it to load on first load\nconst ImportModalSelectFileStep = lazy(() => import('./ImportModalSelectFileStep'));\nconst ImportModalConfigStep = lazy(() => import('./ImportModalConfigStep'));\nconst ImportModalProcessingStep = lazy(() => import('./ImportModalProcessingStep'));\nconst ImportModalDoneStep = lazy(() => import('./ImportModalDoneStep'));\n\nfunction ImportModal({onClose, library, open, availableLibraries, resultExtraButtons}: IImportModalProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n const [state, importDispatch] = useReducer(importReducer, {...initialState, defaultLibrary: library});\n const {sheets, file, currentStep, okBtn} = state;\n\n const [showImportScheduleModal, setShowImportScheduleModal] = useState<boolean>(false);\n const [scheduleDate, setScheduleDate] = useState<dayjs.Dayjs | null>(null);\n\n // Retrieve attributes list\n const [runGetAttributes] = useGetAttributesByLibLazyQuery({\n fetchPolicy: 'cache-and-network',\n onError: error => message.error(error.message),\n });\n\n const [runImport, {error: importError}] = useImportExcelMutation({\n fetchPolicy: 'no-cache',\n onCompleted: () => {\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.DONE});\n },\n onError: error => {\n // Extract human friendly error message\n let errorMessage = error?.message;\n const serverErrors = ((error?.networkError as ServerError)?.result as Record<string, any>)?.errors ?? [];\n if (serverErrors.length) {\n errorMessage = serverErrors.map(serverError => serverError.message).join('\\n');\n }\n\n importDispatch({type: ImportReducerActionTypes.SET_IMPORT_ERROR, importError: errorMessage});\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.DONE});\n },\n });\n\n const _runImport = async () => {\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.PROCESSING});\n\n try {\n await runImport({\n variables: {\n file,\n sheets: sheets.map(sheet => ({\n type: sheet.type,\n mode: sheet.mode,\n library: sheet.library,\n mapping: sheet.mapping,\n keyIndex: Number(sheet.keyColumnIndex),\n linkAttribute: sheet.linkAttribute,\n keyToIndex: Number(sheet.keyToColumnIndex),\n treeLinkLibrary: sheet.treeLinkLibrary,\n })),\n ...(!!scheduleDate && {startAt: scheduleDate.unix()}),\n },\n });\n } catch (err) {\n importDispatch({type: ImportReducerActionTypes.SET_IMPORT_ERROR, importError: (err as Error).message});\n } finally {\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.DONE});\n }\n };\n\n const _onOk = async () => {\n switch (currentStep) {\n case ImportSteps.SELECT_FILE:\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.CONFIG});\n break;\n case ImportSteps.CONFIG:\n await _runImport();\n break;\n default:\n onClose();\n return;\n }\n };\n\n const validateButtonText: {[key in ImportSteps]: string} = {\n [ImportSteps.SELECT_FILE]: 'import.file_configuration',\n [ImportSteps.CONFIG]: 'import.start',\n [ImportSteps.PROCESSING]: 'global.close',\n [ImportSteps.DONE]: 'global.close',\n };\n\n const validateButtonIcon: {[key in ImportSteps]: ReactNode} = {\n [ImportSteps.SELECT_FILE]: <RightOutlined />,\n [ImportSteps.CONFIG]: null,\n [ImportSteps.PROCESSING]: null,\n [ImportSteps.DONE]: null,\n };\n\n const validateButtonLabel = (\n <Space>\n {t(validateButtonText[currentStep])}\n {validateButtonIcon[currentStep]}\n </Space>\n );\n\n const _handleGetAttributes = async (attributesLib: string) => {\n const {error, data} = await runGetAttributes({\n variables: {library: attributesLib},\n });\n\n if (error) {\n message.error(error.message);\n }\n\n return (data?.attributes?.list ?? []).filter(attribute => !attribute.readonly || attribute.id === 'id');\n };\n\n const _getStepContent = (): JSX.Element => {\n switch (currentStep) {\n case ImportSteps.SELECT_FILE:\n return <ImportModalSelectFileStep onGetAttributes={_handleGetAttributes} />;\n case ImportSteps.CONFIG:\n return <ImportModalConfigStep libraries={availableLibraries} onGetAttributes={_handleGetAttributes} />;\n case ImportSteps.PROCESSING:\n return <ImportModalProcessingStep />;\n case ImportSteps.DONE:\n return <ImportModalDoneStep resultExtraButtons={resultExtraButtons} />;\n }\n };\n\n // Generate a recap of all settings errors, by sheet. This will be set as button title, thus we generate a raw string\n const buttonTitle =\n currentStep === ImportSteps.CONFIG\n ? Object.keys(state.settingsError)\n .reduce((errorMessage, sheetKey) => {\n if (state.settingsError[sheetKey]) {\n let sheetErrorMessage = `${sheetKey}:\\n`;\n sheetErrorMessage +=\n '\\t' +\n state.settingsError[sheetKey]\n .map(error => t(`import.settings_errors.${error}`))\n .join('\\n\\t');\n errorMessage.push(sheetErrorMessage);\n }\n\n return errorMessage;\n }, [])\n .join('\\n')\n : '';\n\n const _onScheduleImportBtnClick = () => {\n setShowImportScheduleModal(true);\n };\n\n const _onCancelScheduleImport = () => {\n setShowImportScheduleModal(false);\n setScheduleDate(null);\n };\n\n const _onChangeScheduleImport = (date: dayjs.Dayjs) => {\n setScheduleDate(date);\n };\n\n const _onValidateScheduleImport = () => {\n setShowImportScheduleModal(false);\n _onOk();\n };\n\n const modalFooter = (\n <Space direction=\"horizontal\">\n {currentStep === ImportSteps.CONFIG ? (\n <Dropdown.Button\n disabled={!okBtn}\n className=\"submit-btn\"\n title={buttonTitle}\n type=\"primary\"\n onClick={_onOk}\n icon={<DownOutlined />}\n menu={{\n items: [\n {\n label: t('import.import_schedule'),\n key: '1',\n icon: <FieldTimeOutlined />,\n },\n ],\n onClick: _onScheduleImportBtnClick,\n }}\n >\n {validateButtonLabel}\n </Dropdown.Button>\n ) : (\n <Button disabled={!okBtn} className=\"submit-btn\" title={buttonTitle} type=\"primary\" onClick={_onOk}>\n {validateButtonLabel}\n </Button>\n )}\n <Button disabled={currentStep === ImportSteps.DONE} onClick={onClose}>\n {t('global.cancel')}\n </Button>\n </Space>\n );\n\n const stepsItems: IKitStep[] = [\n {\n title: t('import.file_selection'),\n },\n {\n title: t('import.file_configuration'),\n },\n {\n title: t('import.in_progress'),\n },\n {\n title: t('import.import_done'),\n status: importError ? 'error' : null,\n },\n ];\n\n return (\n <>\n {showImportScheduleModal && (\n <ImportScheduleModal\n scheduleDate={scheduleDate}\n isModalOpen={showImportScheduleModal}\n onChangeScheduleDate={_onChangeScheduleImport}\n onCancelImportScheduleModal={_onCancelScheduleImport}\n onValidateScheduleImport={_onValidateScheduleImport}\n />\n )}\n <ImportReducerContext.Provider value={{state, dispatch: importDispatch}}>\n <Modal\n title={t('import.title')}\n okText={validateButtonLabel}\n cancelText={t('global.cancel')}\n onOk={_onOk}\n onCancel={onClose}\n open={open}\n closable\n width=\"90vw\"\n centered\n confirmLoading={currentStep === ImportSteps.PROCESSING}\n styles={{body: {height: 'calc(100vh - 10rem)'}}}\n okButtonProps={{disabled: !okBtn, className: 'submit-btn', title: buttonTitle}}\n cancelButtonProps={{disabled: currentStep === ImportSteps.DONE}}\n destroyOnClose={true}\n footer={modalFooter}\n >\n <KitSteps current={currentStep} style={{marginBottom: '2em'}} items={stepsItems} />\n <Content>\n <Suspense fallback={<Loading />}>{_getStepContent()}</Suspense>\n </Content>\n </Modal>\n </ImportReducerContext.Provider>\n </>\n );\n}\n\nexport default ImportModal;\n"]}
1
+ {"version":3,"file":"ImportModal.js","sourceRoot":"","sources":["../../../src/components/ImportModal/ImportModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEjF,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AAC7D,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAGpC,OAAO,EAAC,IAAI,EAAkB,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC3E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAA4B,8BAA8B,EAAE,sBAAsB,EAAC,MAAM,eAAe,CAAC;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I,EAAC,EAC/D,cAAc,EAAE,IAAI,EACpB,MAAM,EAAE,WAAW,aAEnB,KAAC,QAAQ,IAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,EAAC,YAAY,EAAE,KAAK,EAAC,EAAE,KAAK,EAAE,UAAU,GAAI,EACnF,KAAC,OAAO,cACJ,KAAC,QAAQ,IAAC,QAAQ,EAAE,KAAC,OAAO,KAAG,YAAG,eAAe,EAAE,GAAY,GACzD,IACN,GACoB,IACjC,CACN,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC","sourcesContent":["import {DownOutlined, FieldTimeOutlined, RightOutlined} from '@ant-design/icons';\nimport {type ServerError} from '@apollo/client';\nimport {Button, Dropdown, message, Modal, Space} from 'antd';\nimport {KitSteps} from 'aristid-ds';\nimport {type IKitStep} from 'aristid-ds/dist/Kit/Navigation/Steps/types';\nimport type dayjs from 'dayjs';\nimport {lazy, type ReactNode, Suspense, useReducer, useState} from 'react';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type LibraryLightFragment, useGetAttributesByLibLazyQuery, useImportExcelMutation} from '_ui/_gqlTypes';\nimport {Loading} from '../Loading';\nimport ImportScheduleModal from './ImportModalConfigStep/ImportScheduleModal';\nimport importReducer from './importReducer';\nimport {ImportReducerActionTypes, initialState} from './importReducer/importReducer';\nimport ImportReducerContext from './importReducer/ImportReducerContext';\nimport {ImportSteps} from './_types';\n\nexport interface IImportModalProps {\n open: boolean;\n onClose: () => void;\n library?: string;\n availableLibraries?: LibraryLightFragment[];\n resultExtraButtons?: JSX.Element[];\n}\nconst Content = styled.div`\n margin-top: 2em;\n height: calc(100% - 6rem);\n overflow-y: auto;\n`;\n\n// Lazy load steps as it's using some heavy lib for XLSX handling. We don't want it to load on first load\nconst ImportModalSelectFileStep = lazy(() => import('./ImportModalSelectFileStep'));\nconst ImportModalConfigStep = lazy(() => import('./ImportModalConfigStep'));\nconst ImportModalProcessingStep = lazy(() => import('./ImportModalProcessingStep'));\nconst ImportModalDoneStep = lazy(() => import('./ImportModalDoneStep'));\n\nfunction ImportModal({onClose, library, open, availableLibraries, resultExtraButtons}: IImportModalProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n const [state, importDispatch] = useReducer(importReducer, {...initialState, defaultLibrary: library});\n const {sheets, file, currentStep, okBtn} = state;\n\n const [showImportScheduleModal, setShowImportScheduleModal] = useState<boolean>(false);\n const [scheduleDate, setScheduleDate] = useState<dayjs.Dayjs | null>(null);\n\n // Retrieve attributes list\n const [runGetAttributes] = useGetAttributesByLibLazyQuery({\n fetchPolicy: 'cache-and-network',\n onError: error => message.error(error.message),\n });\n\n const [runImport, {error: importError}] = useImportExcelMutation({\n fetchPolicy: 'no-cache',\n onCompleted: () => {\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.DONE});\n },\n onError: error => {\n // Extract human friendly error message\n let errorMessage = error?.message;\n const serverErrors = ((error?.networkError as ServerError)?.result as Record<string, any>)?.errors ?? [];\n if (serverErrors.length) {\n errorMessage = serverErrors.map(serverError => serverError.message).join('\\n');\n }\n\n importDispatch({type: ImportReducerActionTypes.SET_IMPORT_ERROR, importError: errorMessage});\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.DONE});\n },\n });\n\n const _runImport = async () => {\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.PROCESSING});\n\n try {\n await runImport({\n variables: {\n file,\n sheets: sheets.map(sheet => ({\n type: sheet.type,\n mode: sheet.mode,\n library: sheet.library,\n mapping: sheet.mapping,\n keyIndex: Number(sheet.keyColumnIndex),\n linkAttribute: sheet.linkAttribute,\n keyToIndex: Number(sheet.keyToColumnIndex),\n treeLinkLibrary: sheet.treeLinkLibrary,\n })),\n ...(!!scheduleDate && {startAt: scheduleDate.unix()}),\n },\n });\n } catch (err) {\n importDispatch({type: ImportReducerActionTypes.SET_IMPORT_ERROR, importError: (err as Error).message});\n } finally {\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.DONE});\n }\n };\n\n const _onOk = async () => {\n switch (currentStep) {\n case ImportSteps.SELECT_FILE:\n importDispatch({type: ImportReducerActionTypes.SET_CURRENT_STEP, currentStep: ImportSteps.CONFIG});\n break;\n case ImportSteps.CONFIG:\n await _runImport();\n break;\n default:\n onClose();\n return;\n }\n };\n\n const validateButtonText: {[key in ImportSteps]: string} = {\n [ImportSteps.SELECT_FILE]: 'import.file_configuration',\n [ImportSteps.CONFIG]: 'import.start',\n [ImportSteps.PROCESSING]: 'global.close',\n [ImportSteps.DONE]: 'global.close',\n };\n\n const validateButtonIcon: {[key in ImportSteps]: ReactNode} = {\n [ImportSteps.SELECT_FILE]: <RightOutlined />,\n [ImportSteps.CONFIG]: null,\n [ImportSteps.PROCESSING]: null,\n [ImportSteps.DONE]: null,\n };\n\n const validateButtonLabel = (\n <Space>\n {t(validateButtonText[currentStep])}\n {validateButtonIcon[currentStep]}\n </Space>\n );\n\n const _handleGetAttributes = async (attributesLib: string) => {\n const {error, data} = await runGetAttributes({\n variables: {library: attributesLib},\n });\n\n if (error) {\n message.error(error.message);\n }\n\n return (data?.attributes?.list ?? []).filter(attribute => !attribute.readonly || attribute.id === 'id');\n };\n\n const _getStepContent = (): JSX.Element => {\n switch (currentStep) {\n case ImportSteps.SELECT_FILE:\n return <ImportModalSelectFileStep onGetAttributes={_handleGetAttributes} />;\n case ImportSteps.CONFIG:\n return <ImportModalConfigStep libraries={availableLibraries} onGetAttributes={_handleGetAttributes} />;\n case ImportSteps.PROCESSING:\n return <ImportModalProcessingStep />;\n case ImportSteps.DONE:\n return <ImportModalDoneStep resultExtraButtons={resultExtraButtons} />;\n }\n };\n\n // Generate a recap of all settings errors, by sheet. This will be set as button title, thus we generate a raw string\n const buttonTitle =\n currentStep === ImportSteps.CONFIG\n ? Object.keys(state.settingsError)\n .reduce((errorMessage, sheetKey) => {\n if (state.settingsError[sheetKey]) {\n let sheetErrorMessage = `${sheetKey}:\\n`;\n sheetErrorMessage +=\n '\\t' +\n state.settingsError[sheetKey]\n .map(error => t(`import.settings_errors.${error}`))\n .join('\\n\\t');\n errorMessage.push(sheetErrorMessage);\n }\n\n return errorMessage;\n }, [])\n .join('\\n')\n : '';\n\n const _onScheduleImportBtnClick = () => {\n setShowImportScheduleModal(true);\n };\n\n const _onCancelScheduleImport = () => {\n setShowImportScheduleModal(false);\n setScheduleDate(null);\n };\n\n const _onChangeScheduleImport = (date: dayjs.Dayjs) => {\n setScheduleDate(date);\n };\n\n const _onValidateScheduleImport = () => {\n setShowImportScheduleModal(false);\n _onOk();\n };\n\n const modalFooter = (\n <Space direction=\"horizontal\">\n {currentStep === ImportSteps.CONFIG ? (\n <Dropdown.Button\n disabled={!okBtn}\n className=\"submit-btn\"\n title={buttonTitle}\n type=\"primary\"\n onClick={_onOk}\n icon={<DownOutlined />}\n menu={{\n items: [\n {\n label: t('import.import_schedule'),\n key: '1',\n icon: <FieldTimeOutlined />,\n },\n ],\n onClick: _onScheduleImportBtnClick,\n }}\n >\n {validateButtonLabel}\n </Dropdown.Button>\n ) : (\n <Button disabled={!okBtn} className=\"submit-btn\" title={buttonTitle} type=\"primary\" onClick={_onOk}>\n {validateButtonLabel}\n </Button>\n )}\n <Button disabled={currentStep === ImportSteps.DONE} onClick={onClose}>\n {t('global.cancel')}\n </Button>\n </Space>\n );\n\n const stepsItems: IKitStep[] = [\n {\n title: t('import.file_selection'),\n },\n {\n title: t('import.file_configuration'),\n },\n {\n title: t('import.in_progress'),\n },\n {\n title: t('import.import_done'),\n status: importError ? 'error' : null,\n },\n ];\n\n return (\n <>\n {showImportScheduleModal && (\n <ImportScheduleModal\n scheduleDate={scheduleDate}\n isModalOpen={showImportScheduleModal}\n onChangeScheduleDate={_onChangeScheduleImport}\n onCancelImportScheduleModal={_onCancelScheduleImport}\n onValidateScheduleImport={_onValidateScheduleImport}\n />\n )}\n <ImportReducerContext.Provider value={{state, dispatch: importDispatch}}>\n <Modal\n title={t('import.title')}\n okText={validateButtonLabel}\n cancelText={t('global.cancel')}\n onOk={_onOk}\n onCancel={onClose}\n open={open}\n closable\n width=\"90vw\"\n centered\n confirmLoading={currentStep === ImportSteps.PROCESSING}\n styles={{body: {height: 'calc(100vh - 10rem)'}}}\n okButtonProps={{disabled: !okBtn, className: 'submit-btn', title: buttonTitle}}\n cancelButtonProps={{disabled: currentStep === ImportSteps.DONE}}\n destroyOnClose={true}\n footer={modalFooter}\n >\n <KitSteps current={currentStep} style={{marginBottom: '2em'}} items={stepsItems} />\n <Content>\n <Suspense fallback={<Loading />}>{_getStepContent()}</Suspense>\n </Content>\n </Modal>\n </ImportReducerContext.Provider>\n </>\n );\n}\n\nexport default ImportModal;\n"]}
@@ -1,7 +1,4 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
2
  import { KitSwitch } from 'aristid-ds';
6
3
  import styled from 'styled-components';
7
4
  import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
@@ -1 +1 @@
1
- {"version":3,"file":"ImportKeysSelector.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AASrD,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAsB;;;;;CAK/C,CAAC;AAEF,SAAS,kBAAkB,CAAC,EAAC,WAAW,EAAE,KAAK,EAAE,QAAQ,EAA2B;IAChF,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,IAAI,CAAC;IAEpD,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAAE,EAAE;QACxC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC3B,CAAC,CAAC;IAEF,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAE,EAAE;QAC1C,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,MAAM,gBAAgB,GAAG,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,MAAM,CAAC;IAC1E,MAAM,cAAc,GAAG,YAAY,CAAC;IAEpC,IAAI,CAAC,gBAAgB,IAAI,CAAC,cAAc,EAAE,CAAC;QACvC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,MAAC,OAAO,iBAAY,YAAY,aAC3B,gBAAgB,IAAI,CACjB,8BACI,4BAAQ,CAAC,CAAC,mBAAmB,CAAC,UAAW,EACzC,KAAC,SAAS,IAAC,OAAO,EAAE,KAAK,CAAC,cAAc,KAAK,WAAW,EAAE,QAAQ,EAAE,gBAAgB,GAAI,IACzF,CACN,EACA,cAAc,IAAI,CACf,8BACI,4BAAQ,CAAC,CAAC,iBAAiB,CAAC,UAAW,EACvC,KAAC,SAAS,IAAC,OAAO,EAAE,KAAK,CAAC,gBAAgB,KAAK,WAAW,EAAE,QAAQ,EAAE,kBAAkB,GAAI,IAC7F,CACN,IACK,CACb,CAAC;AACN,CAAC;AAED,eAAe,kBAAkB,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 {KitSwitch} from 'aristid-ds';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {ImportMode, ImportType} from '_ui/_gqlTypes';\nimport {type ISheet} from '../../_types';\n\ninterface IImportKeysSelectorProps {\n sheet: ISheet;\n columnIndex: number;\n onChange: (keyType: 'key' | 'keyTo', value: boolean) => void;\n}\n\nconst Wrapper = styled.div<{$hasKeyTo: boolean}>`\n display: grid;\n grid-template-columns: 7rem 3rem;\n grid-column-gap: 0.5em;\n grid-row-gap: 1em;\n`;\n\nfunction ImportKeysSelector({columnIndex, sheet, onChange}: IImportKeysSelectorProps): JSX.Element {\n const {t} = useSharedTranslation();\n const isLinkImport = sheet.type === ImportType.LINK;\n\n const _handleKeyChange = (value: boolean) => {\n onChange('key', value);\n };\n\n const _handleKeyToChange = (value: boolean) => {\n onChange('keyTo', value);\n };\n\n const displayImportKey = isLinkImport || sheet.mode !== ImportMode.insert;\n const displayLinkKey = isLinkImport;\n\n if (!displayImportKey && !displayLinkKey) {\n return null;\n }\n\n return (\n <Wrapper $hasKeyTo={isLinkImport}>\n {displayImportKey && (\n <>\n <label>{t('import.import_key')}: </label>\n <KitSwitch checked={sheet.keyColumnIndex === columnIndex} onChange={_handleKeyChange} />\n </>\n )}\n {displayLinkKey && (\n <>\n <label>{t('import.link_key')}: </label>\n <KitSwitch checked={sheet.keyToColumnIndex === columnIndex} onChange={_handleKeyToChange} />\n </>\n )}\n </Wrapper>\n );\n}\n\nexport default ImportKeysSelector;\n"]}
1
+ {"version":3,"file":"ImportKeysSelector.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,UAAU,EAAE,UAAU,EA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aristid-ds';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {ImportMode, ImportType} from '_ui/_gqlTypes';\nimport {type ISheet} from '../../_types';\n\ninterface IImportKeysSelectorProps {\n sheet: ISheet;\n columnIndex: number;\n onChange: (keyType: 'key' | 'keyTo', value: boolean) => void;\n}\n\nconst Wrapper = styled.div<{$hasKeyTo: boolean}>`\n display: grid;\n grid-template-columns: 7rem 3rem;\n grid-column-gap: 0.5em;\n grid-row-gap: 1em;\n`;\n\nfunction ImportKeysSelector({columnIndex, sheet, onChange}: IImportKeysSelectorProps): JSX.Element {\n const {t} = useSharedTranslation();\n const isLinkImport = sheet.type === ImportType.LINK;\n\n const _handleKeyChange = (value: boolean) => {\n onChange('key', value);\n };\n\n const _handleKeyToChange = (value: boolean) => {\n onChange('keyTo', value);\n };\n\n const displayImportKey = isLinkImport || sheet.mode !== ImportMode.insert;\n const displayLinkKey = isLinkImport;\n\n if (!displayImportKey && !displayLinkKey) {\n return null;\n }\n\n return (\n <Wrapper $hasKeyTo={isLinkImport}>\n {displayImportKey && (\n <>\n <label>{t('import.import_key')}: </label>\n <KitSwitch checked={sheet.keyColumnIndex === columnIndex} onChange={_handleKeyChange} />\n </>\n )}\n {displayLinkKey && (\n <>\n <label>{t('import.link_key')}: </label>\n <KitSwitch checked={sheet.keyToColumnIndex === columnIndex} onChange={_handleKeyToChange} />\n </>\n )}\n </Wrapper>\n );\n}\n\nexport default ImportKeysSelector;\n"]}
@@ -1,6 +1,3 @@
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
1
  import ImportKeysSelector from './ImportKeysSelector';
5
2
  export default ImportKeysSelector;
6
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD,eAAe,kBAAkB,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 ImportKeysSelector from './ImportKeysSelector';\n\nexport default ImportKeysSelector;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD,eAAe,kBAAkB,CAAC","sourcesContent":["import ImportKeysSelector from './ImportKeysSelector';\n\nexport default ImportKeysSelector;\n"]}
@@ -1,7 +1,4 @@
1
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
2
  import { Space } from 'antd';
6
3
  import styled from 'styled-components';
7
4
  import { themeVars } from '../../../../antdTheme';
@@ -1 +1 @@
1
- {"version":3,"file":"ImportMappingRowTitle.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAC3B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAc,kBAAkB,EAAC,MAAM,cAAc,CAAC;AAM7D,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;aAGtB,SAAS,CAAC,UAAU;CAChC,CAAC;AAEF,SAAS,qBAAqB,CAAC,EAAC,KAAK,EAA8B;IAC/D,MAAM,EAAC,KAAK,EAAC,GAAG,uBAAuB,EAAE,CAAC;IAC1C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,aAAa,GAAG,KAAK,EAAE,aAAa,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAC/D,MAAM,aAAa,GAAG,CAAC,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,CAAC,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAEtG,OAAO,CACH,MAAC,KAAK,IAAC,SAAS,EAAC,UAAU,aACtB,CAAC,CAAC,gBAAgB,CAAC,EACpB,KAAC,aAAa,IAAC,SAAS,EAAC,UAAU,EAAC,IAAI,EAAC,OAAO,YAC3C,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,0BAA0B,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GACxF,IACZ,CACX,CAAC;AACN,CAAC;AAED,eAAe,qBAAqB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {Space} from 'antd';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useImportReducerContext} from '../../importReducer/ImportReducerContext';\nimport {type ISheet, SheetSettingsError} from '../../_types';\n\ninterface IImportMappingRowTitleProps {\n sheet: ISheet;\n}\n\nconst ErrorsWrapper = styled(Space)`\n font-weight: bold;\n margin: 0.5em 0;\n color: ${themeVars.errorColor};\n`;\n\nfunction ImportMappingRowTitle({sheet}: IImportMappingRowTitleProps): JSX.Element {\n const {state} = useImportReducerContext();\n const {t} = useSharedTranslation();\n const settingsError = state?.settingsError?.[sheet.name] ?? [];\n const checkedErrors = [SheetSettingsError.MAPPING, SheetSettingsError.KEY, SheetSettingsError.KEY_TO];\n\n return (\n <Space direction=\"vertical\">\n {t('import.mapping')}\n <ErrorsWrapper direction=\"vertical\" size=\"small\">\n {checkedErrors.map(err => (settingsError.includes(err) ? t(`import.settings_errors.${err}`) : null))}\n </ErrorsWrapper>\n </Space>\n );\n}\n\nexport default ImportMappingRowTitle;\n"]}
1
+ {"version":3,"file":"ImportMappingRowTitle.js","sourceRoot":"","sources":["../../../../../src/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAC3B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAc,kBAAkB,EAAC,MAAM,cAAc,CAAC;AAM7D,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;aAGtB,SAAS,CAAC,UAAU;CAChC,CAAC;AAEF,SAAS,qBAAqB,CAAC,EAAC,KAAK,EAA8B;IAC/D,MAAM,EAAC,KAAK,EAAC,GAAG,uBAAuB,EAAE,CAAC;IAC1C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,aAAa,GAAG,KAAK,EAAE,aAAa,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAC/D,MAAM,aAAa,GAAG,CAAC,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,CAAC,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAEtG,OAAO,CACH,MAAC,KAAK,IAAC,SAAS,EAAC,UAAU,aACtB,CAAC,CAAC,gBAAgB,CAAC,EACpB,KAAC,aAAa,IAAC,SAAS,EAAC,UAAU,EAAC,IAAI,EAAC,OAAO,YAC3C,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,0BAA0B,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GACxF,IACZ,CACX,CAAC;AACN,CAAC;AAED,eAAe,qBAAqB,CAAC","sourcesContent":["import {Space} from 'antd';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useImportReducerContext} from '../../importReducer/ImportReducerContext';\nimport {type ISheet, SheetSettingsError} from '../../_types';\n\ninterface IImportMappingRowTitleProps {\n sheet: ISheet;\n}\n\nconst ErrorsWrapper = styled(Space)`\n font-weight: bold;\n margin: 0.5em 0;\n color: ${themeVars.errorColor};\n`;\n\nfunction ImportMappingRowTitle({sheet}: IImportMappingRowTitleProps): JSX.Element {\n const {state} = useImportReducerContext();\n const {t} = useSharedTranslation();\n const settingsError = state?.settingsError?.[sheet.name] ?? [];\n const checkedErrors = [SheetSettingsError.MAPPING, SheetSettingsError.KEY, SheetSettingsError.KEY_TO];\n\n return (\n <Space direction=\"vertical\">\n {t('import.mapping')}\n <ErrorsWrapper direction=\"vertical\" size=\"small\">\n {checkedErrors.map(err => (settingsError.includes(err) ? t(`import.settings_errors.${err}`) : null))}\n </ErrorsWrapper>\n </Space>\n );\n}\n\nexport default ImportMappingRowTitle;\n"]}