@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
@@ -6,7 +6,7 @@ import { AttributeFormat, AttributeType, } from '../../../../_gqlTypes';
6
6
  import { closestCenter, DndContext, KeyboardSensor, PointerSensor, useSensor, useSensors, } from '@dnd-kit/core';
7
7
  import { SortableContext, sortableKeyboardCoordinates, verticalListSortingStrategy } from '@dnd-kit/sortable';
8
8
  import { useAttributeDetailsData } from '../_shared/useAttributeDetailsData';
9
- import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsReducer';
9
+ import { FiltersActionTypes } from '../../../../components/Filters/context/filtersReducer';
10
10
  import { FilterListItem } from './FilterListItem';
11
11
  import { CommonFilterItem } from '../../../../components/Filters/filter-items/CommonFilterItem';
12
12
  import { useFiltersContext } from '../../../../components/Filters/useFiltersContext';
@@ -40,7 +40,7 @@ export const FilterItems = ({ libraryId }) => {
40
40
  }));
41
41
  const addFilter = (attributeId) => () => {
42
42
  dispatch({
43
- type: ViewSettingsActionTypes.ADD_FILTER,
43
+ type: FiltersActionTypes.ADD_FILTER,
44
44
  payload: {
45
45
  field: attributeId,
46
46
  attribute: {
@@ -64,7 +64,7 @@ export const FilterItems = ({ libraryId }) => {
64
64
  };
65
65
  const removeFilter = (filterId) => () => {
66
66
  dispatch({
67
- type: ViewSettingsActionTypes.REMOVE_FILTER,
67
+ type: FiltersActionTypes.REMOVE_FILTER,
68
68
  payload: {
69
69
  id: filterId,
70
70
  },
@@ -76,7 +76,7 @@ export const FilterItems = ({ libraryId }) => {
76
76
  if (!dropTarget || indexFrom === indexTo || indexTo === -1) {
77
77
  return;
78
78
  }
79
- dispatch({ type: ViewSettingsActionTypes.MOVE_FILTER, payload: { indexFrom, indexTo } });
79
+ dispatch({ type: FiltersActionTypes.MOVE_FILTER, payload: { indexFrom, indexTo } });
80
80
  };
81
81
  const activeFilters = filters.filter(({ attribute }) => searchFilteredColumnsIds.includes(attribute.id));
82
82
  const inactiveFilters = searchFilteredColumnsIds.filter(attributeId => filters.every(filterItem => filterItem.attribute.id !== attributeId) &&
@@ -1 +1 @@
1
- {"version":3,"file":"FilterItems.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/filter-items/FilterItems.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC9D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACH,eAAe,EAIf,aAAa,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,aAAa,EACb,UAAU,EAEV,cAAc,EACd,aAAa,EACb,SAAS,EACT,UAAU,GACb,MAAM,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Y,CAAC,YAAY,CAAC,EAAE,CAAC;6BACzC,YAED,KAAC,gBAAgB,IACb,MAAM,EACF;oCACI,GAAG,YAAY;oCACf,SAAS,EAAE;wCACP,GAAG,YAAY,CAAC,SAAS;wCACzB,GAAG,oBAAoB,CAAC,YAAY,EAAE,SAAS,EAAE,EAAE,CAAC;qCACvD;iCACQ,GAEnB,IAnBG,YAAY,CAAC,SAAS,CAAC,EAAE,CAoBjB,CACpB,CAAC,GACY,GACT,GACJ,CAChB,EACD,KAAC,aAAa,CAAC,KAAK,IAAC,KAAK,EAAC,IAAI,YAAE,CAAC,CAAC,+BAA+B,CAAC,GAAuB,EAC1F,KAAC,QAAQ,IACL,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EACvC,QAAQ,EAAE,eAAe,EACzB,UAAU,QACV,MAAM,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,QAAQ,GAAI,GAC7C,EACF,KAAC,UAAU,kBAAa,CAAC,CAAC,+BAA+B,CAAC,YACrD,eAAe,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAChC,KAAC,cAAc,IAEX,WAAW,EAAE,WAAW,EACxB,qBAAqB,EAAE;wBACnB,IAAI,EAAE,KAAC,cAAc,IAAC,IAAI,EAAE,UAAU,GAAI;wBAC1C,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;wBACjC,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC;qBAClC,YAED,KAAC,SAAS,IAAC,KAAK,EAAE,oBAAoB,CAAC,WAAW,CAAC,CAAC,KAAK,GAAI,IARxD,WAAW,CASH,CACpB,CAAC,GACO,IACK,CACzB,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type FunctionComponent} from 'react';\nimport {KitFilter, KitInput, KitTypography} from 'aristid-ds';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {\n AttributeFormat,\n type AttributesByLibAttributeFragment,\n type AttributesByLibAttributeLinkAttributeFragment,\n type AttributesByLibAttributeTreeAttributeFragment,\n AttributeType,\n} from '_ui/_gqlTypes';\nimport {\n closestCenter,\n DndContext,\n type DragEndEvent,\n KeyboardSensor,\n PointerSensor,\n useSensor,\n useSensors,\n} from '@dnd-kit/core';\nimport {SortableContext, sortableKeyboardCoordinates, verticalListSortingStrategy} from '@dnd-kit/sortable';\nimport {useAttributeDetailsData} from '../_shared/useAttributeDetailsData';\nimport {ViewSettingsActionTypes} from '../store-view-settings/viewSettingsReducer';\nimport {FilterListItem} from './FilterListItem';\nimport {CommonFilterItem} from '_ui/components/Filters/filter-items/CommonFilterItem';\nimport {useFiltersContext} from '_ui/components/Filters/useFiltersContext';\nimport {type IUIFilterBaseAttribute, type UIFilter} from '_ui/components/Filters/_types';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faEye, faEyeSlash, faSearch} from '@fortawesome/free-solid-svg-icons';\n\nconst StyledListContainer = styled.div`\n display: flex;\n flex-direction: column;\n gap: calc(var(--general-spacing-l) * 1px);\n`;\n\nconst StyledList = styled.ul`\n padding: calc(var(--general-spacing-s) * 1px) 0;\n margin: 0;\n list-style: none;\n color: var(--general-utilities-text-primary);\n`;\n\nconst StyledEyeSlash = styled(FontAwesomeIcon)`\n color: var(--general-utilities-neutral-dark);\n`;\n\nconst StyledFaEye = styled(FontAwesomeIcon)`\n color: var(--general-utilities-neutral-deepDark);\n`;\n\nconst _isLibraryLinkAttribute = (\n attribute: AttributesByLibAttributeFragment,\n): attribute is AttributesByLibAttributeLinkAttributeFragment =>\n [AttributeType.simple_link, AttributeType.advanced_link].includes(attribute.type) && 'linked_library' in attribute;\n\nconst _isLibraryTreeAttribute = (\n attribute: AttributesByLibAttributeFragment,\n): attribute is AttributesByLibAttributeTreeAttributeFragment =>\n attribute.type === AttributeType.tree && 'linked_tree' in attribute;\n\nexport const FilterItems: FunctionComponent<{libraryId: string}> = ({libraryId}) => {\n const {t} = useSharedTranslation();\n const {\n filtersData: {filters},\n dispatch,\n } = useFiltersContext();\n\n const {onSearchChanged, searchFilteredColumnsIds, attributeDetailsById} = useAttributeDetailsData(libraryId);\n\n const sensors = useSensors(\n useSensor(PointerSensor),\n useSensor(KeyboardSensor, {\n coordinateGetter: sortableKeyboardCoordinates,\n }),\n );\n\n const addFilter = (attributeId: string) => () => {\n dispatch({\n type: ViewSettingsActionTypes.ADD_FILTER,\n payload: {\n field: attributeId,\n attribute: {\n id: attributeId,\n label: attributeDetailsById[attributeId].label,\n format: attributeDetailsById[attributeId].format ?? AttributeFormat.text,\n type: attributeDetailsById[attributeId].type,\n valuesList: (attributeDetailsById[attributeId] as IUIFilterBaseAttribute).valuesList,\n linkedLibrary: _isLibraryLinkAttribute(attributeDetailsById[attributeId])\n ? (attributeDetailsById[attributeId].linked_library ?? undefined)\n : undefined, // TODO : https://aristid.atlassian.net/browse/XSTREAM-1155\n linkedTree: _isLibraryTreeAttribute(attributeDetailsById[attributeId])\n ? (attributeDetailsById[attributeId].linked_tree ?? undefined)\n : undefined,\n smartFilter:\n 'smart_filter' in attributeDetailsById[attributeId]\n ? attributeDetailsById[attributeId].smart_filter\n : undefined,\n },\n },\n });\n };\n\n const removeFilter = (filterId: string) => () => {\n dispatch({\n type: ViewSettingsActionTypes.REMOVE_FILTER,\n payload: {\n id: filterId,\n },\n });\n };\n\n const _handleDragEnd = ({active: draggedElement, over: dropTarget}: DragEndEvent) => {\n const indexFrom = activeFilters.findIndex(({field}) =>\n Array.isArray(field) ? field.includes(String(draggedElement.id)) : field === String(draggedElement.id),\n );\n const indexTo = activeFilters.findIndex(({field}) =>\n Array.isArray(field) ? field.includes(String(dropTarget?.id)) : field === String(dropTarget?.id),\n );\n if (!dropTarget || indexFrom === indexTo || indexTo === -1) {\n return;\n }\n\n dispatch({type: ViewSettingsActionTypes.MOVE_FILTER, payload: {indexFrom, indexTo}});\n };\n\n const activeFilters = filters.filter(({attribute}) => searchFilteredColumnsIds.includes(attribute.id));\n const inactiveFilters = searchFilteredColumnsIds.filter(\n attributeId =>\n filters.every(filterItem => filterItem.attribute.id !== attributeId) &&\n !('compute' in attributeDetailsById[attributeId] && attributeDetailsById[attributeId]?.compute),\n );\n\n if (!Object.keys(attributeDetailsById).length) {\n return <></>;\n }\n\n return (\n <StyledListContainer>\n {activeFilters.length > 0 && (\n <StyledList aria-label={t('explorer.filter-list.active')}>\n <DndContext sensors={sensors} collisionDetection={closestCenter} onDragEnd={_handleDragEnd}>\n <SortableContext\n items={activeFilters.map(({attribute}) => attribute.id)}\n strategy={verticalListSortingStrategy}\n >\n {activeFilters.map(activeFilter => (\n <FilterListItem\n key={activeFilter.attribute.id}\n attributeId={activeFilter.attribute.id}\n isDraggable\n visibilityButtonProps={{\n icon: <StyledFaEye icon={faEye} />,\n title: String(t('explorer.hide')),\n onClick: removeFilter(activeFilter.id),\n }}\n >\n <CommonFilterItem\n filter={\n {\n ...activeFilter,\n attribute: {\n ...activeFilter.attribute,\n ...attributeDetailsById[activeFilter?.attribute?.id],\n },\n } as UIFilter\n }\n />\n </FilterListItem>\n ))}\n </SortableContext>\n </DndContext>\n </StyledList>\n )}\n <KitTypography.Title level=\"h4\">{t('explorer.available-attributes')}</KitTypography.Title>\n <KitInput\n placeholder={String(t('global.search'))}\n onChange={onSearchChanged}\n allowClear\n prefix={<FontAwesomeIcon icon={faSearch} />}\n />\n <StyledList aria-label={t('explorer.filter-list.inactive')}>\n {inactiveFilters.map(attributeId => (\n <FilterListItem\n key={attributeId}\n attributeId={attributeId}\n visibilityButtonProps={{\n icon: <StyledEyeSlash icon={faEyeSlash} />,\n title: String(t('explorer.show')),\n onClick: addFilter(attributeId),\n }}\n >\n <KitFilter label={attributeDetailsById[attributeId].label} />\n </FilterListItem>\n ))}\n </StyledList>\n </StyledListContainer>\n );\n};\n"]}
1
+ {"version":3,"file":"FilterItems.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/filter-items/FilterItems.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC9D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACH,eAAe,EAIf,aAAa,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,aAAa,EACb,UAAU,EAEV,cAAc,EACd,aAAa,EACb,SAAS,EACT,UAAU,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,eAAe,EAAE,2BAA2B,EAAE,2BAA2B,EAAC,MAAM,mBAAmB,CAAC;AAC5G,OAAO,EAAC,uBAAuB,EAAC,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAC,kBAAkB,EAAC,MAAM,+CAA+C,CAAC;AACjF,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sDAAsD,CAAC;AACtF,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;AAE3E,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,mCAAmC,CAAC;AAE9E,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIrC,CAAC;AAEF,MAAM,UAAU,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;CAK3B,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,eAAe,CAAC,CAAA;;CAE7C,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,eAAe,CAAC,CAAA;;CAE1C,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAC5B,SAA2C,EACe,EAAE,CAC5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C1C,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;wBACjC,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC;qBAClC,YAED,KAAC,SAAS,IAAC,KAAK,EAAE,oBAAoB,CAAC,WAAW,CAAC,CAAC,KAAK,GAAI,IARxD,WAAW,CASH,CACpB,CAAC,GACO,IACK,CACzB,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {type FunctionComponent} from 'react';\nimport {KitFilter, KitInput, KitTypography} from 'aristid-ds';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {\n AttributeFormat,\n type AttributesByLibAttributeFragment,\n type AttributesByLibAttributeLinkAttributeFragment,\n type AttributesByLibAttributeTreeAttributeFragment,\n AttributeType,\n} from '_ui/_gqlTypes';\nimport {\n closestCenter,\n DndContext,\n type DragEndEvent,\n KeyboardSensor,\n PointerSensor,\n useSensor,\n useSensors,\n} from '@dnd-kit/core';\nimport {SortableContext, sortableKeyboardCoordinates, verticalListSortingStrategy} from '@dnd-kit/sortable';\nimport {useAttributeDetailsData} from '../_shared/useAttributeDetailsData';\nimport {FiltersActionTypes} from '_ui/components/Filters/context/filtersReducer';\nimport {FilterListItem} from './FilterListItem';\nimport {CommonFilterItem} from '_ui/components/Filters/filter-items/CommonFilterItem';\nimport {useFiltersContext} from '_ui/components/Filters/useFiltersContext';\nimport {type IUIFilterBaseAttribute, type UIFilter} from '_ui/components/Filters/_types';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faEye, faEyeSlash, faSearch} from '@fortawesome/free-solid-svg-icons';\n\nconst StyledListContainer = styled.div`\n display: flex;\n flex-direction: column;\n gap: calc(var(--general-spacing-l) * 1px);\n`;\n\nconst StyledList = styled.ul`\n padding: calc(var(--general-spacing-s) * 1px) 0;\n margin: 0;\n list-style: none;\n color: var(--general-utilities-text-primary);\n`;\n\nconst StyledEyeSlash = styled(FontAwesomeIcon)`\n color: var(--general-utilities-neutral-dark);\n`;\n\nconst StyledFaEye = styled(FontAwesomeIcon)`\n color: var(--general-utilities-neutral-deepDark);\n`;\n\nconst _isLibraryLinkAttribute = (\n attribute: AttributesByLibAttributeFragment,\n): attribute is AttributesByLibAttributeLinkAttributeFragment =>\n [AttributeType.simple_link, AttributeType.advanced_link].includes(attribute.type) && 'linked_library' in attribute;\n\nconst _isLibraryTreeAttribute = (\n attribute: AttributesByLibAttributeFragment,\n): attribute is AttributesByLibAttributeTreeAttributeFragment =>\n attribute.type === AttributeType.tree && 'linked_tree' in attribute;\n\nexport const FilterItems: FunctionComponent<{libraryId: string}> = ({libraryId}) => {\n const {t} = useSharedTranslation();\n const {\n filtersData: {filters},\n dispatch,\n } = useFiltersContext();\n\n const {onSearchChanged, searchFilteredColumnsIds, attributeDetailsById} = useAttributeDetailsData(libraryId);\n\n const sensors = useSensors(\n useSensor(PointerSensor),\n useSensor(KeyboardSensor, {\n coordinateGetter: sortableKeyboardCoordinates,\n }),\n );\n\n const addFilter = (attributeId: string) => () => {\n dispatch({\n type: FiltersActionTypes.ADD_FILTER,\n payload: {\n field: attributeId,\n attribute: {\n id: attributeId,\n label: attributeDetailsById[attributeId].label,\n format: attributeDetailsById[attributeId].format ?? AttributeFormat.text,\n type: attributeDetailsById[attributeId].type,\n valuesList: (attributeDetailsById[attributeId] as IUIFilterBaseAttribute).valuesList,\n linkedLibrary: _isLibraryLinkAttribute(attributeDetailsById[attributeId])\n ? (attributeDetailsById[attributeId].linked_library ?? undefined)\n : undefined, // TODO : https://aristid.atlassian.net/browse/XSTREAM-1155\n linkedTree: _isLibraryTreeAttribute(attributeDetailsById[attributeId])\n ? (attributeDetailsById[attributeId].linked_tree ?? undefined)\n : undefined,\n smartFilter:\n 'smart_filter' in attributeDetailsById[attributeId]\n ? attributeDetailsById[attributeId].smart_filter\n : undefined,\n },\n },\n });\n };\n\n const removeFilter = (filterId: string) => () => {\n dispatch({\n type: FiltersActionTypes.REMOVE_FILTER,\n payload: {\n id: filterId,\n },\n });\n };\n\n const _handleDragEnd = ({active: draggedElement, over: dropTarget}: DragEndEvent) => {\n const indexFrom = activeFilters.findIndex(({field}) =>\n Array.isArray(field) ? field.includes(String(draggedElement.id)) : field === String(draggedElement.id),\n );\n const indexTo = activeFilters.findIndex(({field}) =>\n Array.isArray(field) ? field.includes(String(dropTarget?.id)) : field === String(dropTarget?.id),\n );\n if (!dropTarget || indexFrom === indexTo || indexTo === -1) {\n return;\n }\n\n dispatch({type: FiltersActionTypes.MOVE_FILTER, payload: {indexFrom, indexTo}});\n };\n\n const activeFilters = filters.filter(({attribute}) => searchFilteredColumnsIds.includes(attribute.id));\n const inactiveFilters = searchFilteredColumnsIds.filter(\n attributeId =>\n filters.every(filterItem => filterItem.attribute.id !== attributeId) &&\n !('compute' in attributeDetailsById[attributeId] && attributeDetailsById[attributeId]?.compute),\n );\n\n if (!Object.keys(attributeDetailsById).length) {\n return <></>;\n }\n\n return (\n <StyledListContainer>\n {activeFilters.length > 0 && (\n <StyledList aria-label={t('explorer.filter-list.active')}>\n <DndContext sensors={sensors} collisionDetection={closestCenter} onDragEnd={_handleDragEnd}>\n <SortableContext\n items={activeFilters.map(({attribute}) => attribute.id)}\n strategy={verticalListSortingStrategy}\n >\n {activeFilters.map(activeFilter => (\n <FilterListItem\n key={activeFilter.attribute.id}\n attributeId={activeFilter.attribute.id}\n isDraggable\n visibilityButtonProps={{\n icon: <StyledFaEye icon={faEye} />,\n title: String(t('explorer.hide')),\n onClick: removeFilter(activeFilter.id),\n }}\n >\n <CommonFilterItem\n filter={\n {\n ...activeFilter,\n attribute: {\n ...activeFilter.attribute,\n ...attributeDetailsById[activeFilter?.attribute?.id],\n },\n } as UIFilter\n }\n />\n </FilterListItem>\n ))}\n </SortableContext>\n </DndContext>\n </StyledList>\n )}\n <KitTypography.Title level=\"h4\">{t('explorer.available-attributes')}</KitTypography.Title>\n <KitInput\n placeholder={String(t('global.search'))}\n onChange={onSearchChanged}\n allowClear\n prefix={<FontAwesomeIcon icon={faSearch} />}\n />\n <StyledList aria-label={t('explorer.filter-list.inactive')}>\n {inactiveFilters.map(attributeId => (\n <FilterListItem\n key={attributeId}\n attributeId={attributeId}\n visibilityButtonProps={{\n icon: <StyledEyeSlash icon={faEyeSlash} />,\n title: String(t('explorer.show')),\n onClick: addFilter(attributeId),\n }}\n >\n <KitFilter label={attributeDetailsById[attributeId].label} />\n </FilterListItem>\n ))}\n </StyledList>\n </StyledListContainer>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FilterListItem.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/filter-items/FilterListItem.tsx"],"names":[],"mappings":";AAIA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,GAAG,EAAC,MAAM,oBAAoB,CAAC;AACvC,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,WAAW,EAAC,MAAM,mCAAmC,CAAC;AAE9D,MAAM,oBAAoB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;;;CAYrC,CAAC;AAEF,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAwB;;;cAG9C,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC;CAC/D,CAAC;AAQF,MAAM,CAAC,MAAM,cAAc,GAAkD,CAAC,EAC1E,WAAW,EACX,WAAW,EACX,qBAAqB,EACrB,QAAQ,GACX,EAAE,EAAE;IACD,MAAM,EAAC,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAC,GAAG,WAAW,CAAC,EAAC,EAAE,EAAE,WAAW,EAAC,CAAC,CAAC;IAC9G,MAAM,KAAK,GAAG;QACV,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC5C,UAAU;KACb,CAAC;IAEF,OAAO,CACH,MAAC,oBAAoB,IAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,aAC/C,0BACK,WAAW,IAAI,CACZ,KAAC,gBAAgB,OAAK,UAAU,KAAM,SAAS,iBAAe,UAAU,YACpE,KAAC,eAAe,IAAC,IAAI,EAAE,WAAW,GAAI,GACvB,CACtB,EACA,QAAQ,IACP,EACL,qBAAqB,IAAI,KAAC,SAAS,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,UAAU,KAAK,qBAAqB,GAAI,IACxE,CAC1B,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type ComponentProps, type FunctionComponent} from 'react';\nimport styled from 'styled-components';\nimport {KitButton} from 'aristid-ds';\nimport {useSortable} from '@dnd-kit/sortable';\nimport {CSS} from '@dnd-kit/utilities';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faGripLines} from '@fortawesome/free-solid-svg-icons';\n\nconst StyledFilterListItem = styled.li`\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 32px;\n\n div {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: calc(var(--general-spacing-xs) * 1px);\n }\n`;\n\nconst StyledDragHandle = styled.span<{$isDragging: boolean}>`\n display: flex;\n align-items: center;\n cursor: ${props => (props.$isDragging ? 'grabbing' : 'grab')};\n`;\n\ninterface IActiveFilterListItemProps {\n attributeId: string;\n isDraggable?: true;\n visibilityButtonProps?: Pick<ComponentProps<typeof KitButton>, 'onClick' | 'icon' | 'title'>;\n}\n\nexport const FilterListItem: FunctionComponent<IActiveFilterListItemProps> = ({\n attributeId,\n isDraggable,\n visibilityButtonProps,\n children,\n}) => {\n const {attributes, listeners, setNodeRef, transform, transition, isDragging} = useSortable({id: attributeId});\n const style = {\n transform: CSS.Transform.toString(transform),\n transition,\n };\n\n return (\n <StyledFilterListItem ref={setNodeRef} style={style}>\n <div>\n {isDraggable && (\n <StyledDragHandle {...attributes} {...listeners} $isDragging={isDragging}>\n <FontAwesomeIcon icon={faGripLines} />\n </StyledDragHandle>\n )}\n {children}\n </div>\n {visibilityButtonProps && <KitButton size=\"m\" type=\"tertiary\" {...visibilityButtonProps} />}\n </StyledFilterListItem>\n );\n};\n"]}
1
+ {"version":3,"file":"FilterListItem.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/filter-items/FilterListItem.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,GAAG,EAAC,MAAM,oBAAoB,CAAC;AACvC,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,WAAW,EAAC,MAAM,mCAAmC,CAAC;AAE9D,MAAM,oBAAoB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;;;CAYrC,CAAC;AAEF,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAwB;;;cAG9C,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC;CAC/D,CAAC;AAQF,MAAM,CAAC,MAAM,cAAc,GAAkD,CAAC,EAC1E,WAAW,EACX,WAAW,EACX,qBAAqB,EACrB,QAAQ,GACX,EAAE,EAAE;IACD,MAAM,EAAC,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAC,GAAG,WAAW,CAAC,EAAC,EAAE,EAAE,WAAW,EAAC,CAAC,CAAC;IAC9G,MAAM,KAAK,GAAG;QACV,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC5C,UAAU;KACb,CAAC;IAEF,OAAO,CACH,MAAC,oBAAoB,IAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,aAC/C,0BACK,WAAW,IAAI,CACZ,KAAC,gBAAgB,OAAK,UAAU,KAAM,SAAS,iBAAe,UAAU,YACpE,KAAC,eAAe,IAAC,IAAI,EAAE,WAAW,GAAI,GACvB,CACtB,EACA,QAAQ,IACP,EACL,qBAAqB,IAAI,KAAC,SAAS,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,UAAU,KAAK,qBAAqB,GAAI,IACxE,CAC1B,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {type ComponentProps, type FunctionComponent} from 'react';\nimport styled from 'styled-components';\nimport {KitButton} from 'aristid-ds';\nimport {useSortable} from '@dnd-kit/sortable';\nimport {CSS} from '@dnd-kit/utilities';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faGripLines} from '@fortawesome/free-solid-svg-icons';\n\nconst StyledFilterListItem = styled.li`\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 32px;\n\n div {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: calc(var(--general-spacing-xs) * 1px);\n }\n`;\n\nconst StyledDragHandle = styled.span<{$isDragging: boolean}>`\n display: flex;\n align-items: center;\n cursor: ${props => (props.$isDragging ? 'grabbing' : 'grab')};\n`;\n\ninterface IActiveFilterListItemProps {\n attributeId: string;\n isDraggable?: true;\n visibilityButtonProps?: Pick<ComponentProps<typeof KitButton>, 'onClick' | 'icon' | 'title'>;\n}\n\nexport const FilterListItem: FunctionComponent<IActiveFilterListItemProps> = ({\n attributeId,\n isDraggable,\n visibilityButtonProps,\n children,\n}) => {\n const {attributes, listeners, setNodeRef, transform, transition, isDragging} = useSortable({id: attributeId});\n const style = {\n transform: CSS.Transform.toString(transform),\n transition,\n };\n\n return (\n <StyledFilterListItem ref={setNodeRef} style={style}>\n <div>\n {isDraggable && (\n <StyledDragHandle {...attributes} {...listeners} $isDragging={isDragging}>\n <FontAwesomeIcon icon={faGripLines} />\n </StyledDragHandle>\n )}\n {children}\n </div>\n {visibilityButtonProps && <KitButton size=\"m\" type=\"tertiary\" {...visibilityButtonProps} />}\n </StyledFilterListItem>\n );\n};\n"]}
@@ -1,3 +1,4 @@
1
+ export { useViewSettingsContext } from './store-view-settings/useViewSettingsContext';
1
2
  export { viewSettingsReducer, ViewSettingsActionTypes } from './store-view-settings/viewSettingsReducer';
2
3
  export type { IViewSettingsState, IViewSettingsAction } from './store-view-settings/viewSettingsReducer';
3
4
  export { ViewSettingsContext } from './store-view-settings/ViewSettingsContext';
@@ -1,6 +1,4 @@
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.txtexport {useViewSettingsContext} from './store-view-settings/useViewSettingsContext';
1
+ export { useViewSettingsContext } from './store-view-settings/useViewSettingsContext';
4
2
  export { viewSettingsReducer, ViewSettingsActionTypes } from './store-view-settings/viewSettingsReducer';
5
3
  export { ViewSettingsContext } from './store-view-settings/ViewSettingsContext';
6
4
  export { viewSettingsInitialState, defaultPageSizeOptions } from './store-view-settings/viewSettingsInitialState';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Explorer/manage-view-settings/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,0JAA0J;AAC1J,OAAO,EAAC,mBAAmB,EAAE,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;AAEvG,OAAO,EAAC,mBAAmB,EAAC,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAC,wBAAwB,EAAE,sBAAsB,EAAC,MAAM,gDAAgD,CAAC;AAEhH,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAC,2BAA2B,EAAC,MAAM,kDAAkD,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.txtexport {useViewSettingsContext} from './store-view-settings/useViewSettingsContext';\nexport {viewSettingsReducer, ViewSettingsActionTypes} from './store-view-settings/viewSettingsReducer';\nexport type {IViewSettingsState, IViewSettingsAction} from './store-view-settings/viewSettingsReducer';\nexport {ViewSettingsContext} from './store-view-settings/ViewSettingsContext';\nexport {viewSettingsInitialState, defaultPageSizeOptions} from './store-view-settings/viewSettingsInitialState';\n\nexport {useOpenViewSettings} from './open-view-settings/useOpenViewSettings';\nexport {SidePanel} from './open-view-settings/SidePanel';\nexport {useEditSettings} from './open-view-settings/useEditSettings';\nexport {EditSettingsContextProvider} from './open-view-settings/EditSettingsContextProvider';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Explorer/manage-view-settings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAC,mBAAmB,EAAE,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;AAEvG,OAAO,EAAC,mBAAmB,EAAC,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAC,wBAAwB,EAAE,sBAAsB,EAAC,MAAM,gDAAgD,CAAC;AAEhH,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAC,2BAA2B,EAAC,MAAM,kDAAkD,CAAC","sourcesContent":["export {useViewSettingsContext} from './store-view-settings/useViewSettingsContext';\nexport {viewSettingsReducer, ViewSettingsActionTypes} from './store-view-settings/viewSettingsReducer';\nexport type {IViewSettingsState, IViewSettingsAction} from './store-view-settings/viewSettingsReducer';\nexport {ViewSettingsContext} from './store-view-settings/ViewSettingsContext';\nexport {viewSettingsInitialState, defaultPageSizeOptions} from './store-view-settings/viewSettingsInitialState';\n\nexport {useOpenViewSettings} from './open-view-settings/useOpenViewSettings';\nexport {SidePanel} from './open-view-settings/SidePanel';\nexport {useEditSettings} from './open-view-settings/useEditSettings';\nexport {EditSettingsContextProvider} from './open-view-settings/EditSettingsContextProvider';\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 { createContext } from 'react';
5
2
  export const EditSettingsContext = createContext({
6
3
  setActiveSettings: () => {
@@ -1 +1 @@
1
- {"version":3,"file":"EditSettingsContext.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAiB,MAAM,OAAO,CAAC;AAsBpD,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAuB;IACnE,iBAAiB,EAAE,GAAG,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACD,cAAc,EAAE,IAAI;IACpB,YAAY,EAAE,IAAI;IAClB,kBAAkB,EAAE,GAAG,EAAE;QACrB,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IAChF,CAAC;CACJ,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 {createContext, type ReactNode} from 'react';\n\ninterface IActiveSettings {\n content: ReactNode;\n title: string;\n onClickLeftButton?: () => void;\n}\n\nexport type SettingsPanelPages =\n | 'router-menu'\n | 'configure-display'\n | 'sort-items'\n | 'filter-items'\n | 'viewList.my-views';\n\nexport interface IEditSettingsContext {\n setActiveSettings: (params: IActiveSettings) => void;\n activeSettings: null | IActiveSettings;\n panelElement: (() => Element | DocumentFragment) | null;\n closeSettingsPanel: () => void;\n}\n\nexport const EditSettingsContext = createContext<IEditSettingsContext>({\n setActiveSettings: () => {\n throw new Error('Not implemented');\n },\n activeSettings: null,\n panelElement: null,\n closeSettingsPanel: () => {\n throw new Error('Element must be wrapped into EditSettingsContextProvider');\n },\n});\n"]}
1
+ {"version":3,"file":"EditSettingsContext.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAiB,MAAM,OAAO,CAAC;AAsBpD,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAuB;IACnE,iBAAiB,EAAE,GAAG,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACD,cAAc,EAAE,IAAI;IACpB,YAAY,EAAE,IAAI;IAClB,kBAAkB,EAAE,GAAG,EAAE;QACrB,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IAChF,CAAC;CACJ,CAAC,CAAC","sourcesContent":["import {createContext, type ReactNode} from 'react';\n\ninterface IActiveSettings {\n content: ReactNode;\n title: string;\n onClickLeftButton?: () => void;\n}\n\nexport type SettingsPanelPages =\n | 'router-menu'\n | 'configure-display'\n | 'sort-items'\n | 'filter-items'\n | 'viewList.my-views';\n\nexport interface IEditSettingsContext {\n setActiveSettings: (params: IActiveSettings) => void;\n activeSettings: null | IActiveSettings;\n panelElement: (() => Element | DocumentFragment) | null;\n closeSettingsPanel: () => void;\n}\n\nexport const EditSettingsContext = createContext<IEditSettingsContext>({\n setActiveSettings: () => {\n throw new Error('Not implemented');\n },\n activeSettings: null,\n panelElement: null,\n closeSettingsPanel: () => {\n throw new Error('Element must be wrapped into EditSettingsContextProvider');\n },\n});\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 { useState } from 'react';
6
3
  import { EditSettingsContext } from './EditSettingsContext';
7
4
  export const EditSettingsContextProvider = ({ children, panelElement, }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"EditSettingsContextProvider.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAyB,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvD,OAAO,EAAC,mBAAmB,EAA4B,MAAM,uBAAuB,CAAC;AAOrF,MAAM,CAAC,MAAM,2BAA2B,GAAyD,CAAC,EAC9F,QAAQ,EACR,YAAY,GACf,EAAE,EAAE;IACD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAyC,IAAI,CAAC,CAAC;IACnG,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAEzD,OAAO,CACH,KAAC,mBAAmB,CAAC,QAAQ,IACzB,KAAK,EAAE;YACH,cAAc;YACd,iBAAiB;YACjB,YAAY,EAAE,YAAY,IAAI,IAAI;YAClC,kBAAkB;SACrB,YAEA,QAAQ,GACkB,CAClC,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type FunctionComponent, useState} from 'react';\nimport {EditSettingsContext, type IEditSettingsContext} from './EditSettingsContext';\n\ninterface IEditSettingsContextProviderProps {\n panelElement?: IEditSettingsContext['panelElement'];\n children: React.ReactNode;\n}\n\nexport const EditSettingsContextProvider: FunctionComponent<IEditSettingsContextProviderProps> = ({\n children,\n panelElement,\n}) => {\n const [activeSettings, setActiveSettings] = useState<IEditSettingsContext['activeSettings']>(null);\n const closeSettingsPanel = () => setActiveSettings(null);\n\n return (\n <EditSettingsContext.Provider\n value={{\n activeSettings,\n setActiveSettings,\n panelElement: panelElement ?? null,\n closeSettingsPanel,\n }}\n >\n {children}\n </EditSettingsContext.Provider>\n );\n};\n"]}
1
+ {"version":3,"file":"EditSettingsContextProvider.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAyB,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvD,OAAO,EAAC,mBAAmB,EAA4B,MAAM,uBAAuB,CAAC;AAOrF,MAAM,CAAC,MAAM,2BAA2B,GAAyD,CAAC,EAC9F,QAAQ,EACR,YAAY,GACf,EAAE,EAAE;IACD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAyC,IAAI,CAAC,CAAC;IACnG,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAEzD,OAAO,CACH,KAAC,mBAAmB,CAAC,QAAQ,IACzB,KAAK,EAAE;YACH,cAAc;YACd,iBAAiB;YACjB,YAAY,EAAE,YAAY,IAAI,IAAI;YAClC,kBAAkB;SACrB,YAEA,QAAQ,GACkB,CAClC,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {type FunctionComponent, useState} from 'react';\nimport {EditSettingsContext, type IEditSettingsContext} from './EditSettingsContext';\n\ninterface IEditSettingsContextProviderProps {\n panelElement?: IEditSettingsContext['panelElement'];\n children: React.ReactNode;\n}\n\nexport const EditSettingsContextProvider: FunctionComponent<IEditSettingsContextProviderProps> = ({\n children,\n panelElement,\n}) => {\n const [activeSettings, setActiveSettings] = useState<IEditSettingsContext['activeSettings']>(null);\n const closeSettingsPanel = () => setActiveSettings(null);\n\n return (\n <EditSettingsContext.Provider\n value={{\n activeSettings,\n setActiveSettings,\n panelElement: panelElement ?? null,\n closeSettingsPanel,\n }}\n >\n {children}\n </EditSettingsContext.Provider>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"SidePanel.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/SidePanel.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAC;AACxC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,MAAM,CAAC,MAAM,SAAS,GAAsB,GAAG,EAAE;IAC7C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,EAAC,cAAc,EAAE,kBAAkB,EAAC,GAAG,eAAe,EAAE,CAAC;IAE/D,IAAI,CAAC,cAAc,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,gEAAgE;IAEhE,MAAM,kBAAkB,GAA4C;QAChE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,0CAA0C;KAC/E,CAAC;IAEF,OAAO,CACH,KAAC,YAAY,IACT,WAAW,QACX,QAAQ,QACR,QAAQ,QACR,UAAU,QACV,WAAW,EAAE,EAAC,KAAK,EAAE,cAAc,CAAC,KAAK,EAAC,EAC1C,eAAe,EACX,cAAc,CAAC,iBAAiB;YAC5B,CAAC,CAAC,EAAC,OAAO,EAAE,cAAc,CAAC,iBAAiB,EAAE,GAAG,kBAAkB,EAAC;YACpE,CAAC,CAAC,SAAS,EAEnB,OAAO,EAAE,kBAAkB,YAE1B,cAAc,CAAC,OAAO,GACZ,CAClB,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type ButtonHTMLAttributes, type FunctionComponent} from 'react';\nimport {KitSidePanel} from 'aristid-ds';\nimport {useEditSettings} from './useEditSettings';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\nexport const SidePanel: FunctionComponent = () => {\n const {t} = useSharedTranslation();\n\n const {activeSettings, closeSettingsPanel} = useEditSettings();\n\n if (!activeSettings) {\n return null;\n }\n\n // TODO: handle transition opening/closing on floating prop true\n\n const makeA11yBackButton: ButtonHTMLAttributes<HTMLButtonElement> = {\n title: String(t('explorer.back')) /* TODO: avoid transform null to 'null' */,\n };\n\n return (\n <KitSidePanel\n initialOpen\n floating\n closable\n closeOnEsc\n idCardProps={{title: activeSettings.title}}\n leftActionProps={\n activeSettings.onClickLeftButton\n ? {onClick: activeSettings.onClickLeftButton, ...makeA11yBackButton}\n : undefined\n }\n onClose={closeSettingsPanel}\n >\n {activeSettings.content}\n </KitSidePanel>\n );\n};\n"]}
1
+ {"version":3,"file":"SidePanel.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/SidePanel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAC;AACxC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,MAAM,CAAC,MAAM,SAAS,GAAsB,GAAG,EAAE;IAC7C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,EAAC,cAAc,EAAE,kBAAkB,EAAC,GAAG,eAAe,EAAE,CAAC;IAE/D,IAAI,CAAC,cAAc,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,gEAAgE;IAEhE,MAAM,kBAAkB,GAA4C;QAChE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,0CAA0C;KAC/E,CAAC;IAEF,OAAO,CACH,KAAC,YAAY,IACT,WAAW,QACX,QAAQ,QACR,QAAQ,QACR,UAAU,QACV,WAAW,EAAE,EAAC,KAAK,EAAE,cAAc,CAAC,KAAK,EAAC,EAC1C,eAAe,EACX,cAAc,CAAC,iBAAiB;YAC5B,CAAC,CAAC,EAAC,OAAO,EAAE,cAAc,CAAC,iBAAiB,EAAE,GAAG,kBAAkB,EAAC;YACpE,CAAC,CAAC,SAAS,EAEnB,OAAO,EAAE,kBAAkB,YAE1B,cAAc,CAAC,OAAO,GACZ,CAClB,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {type ButtonHTMLAttributes, type FunctionComponent} from 'react';\nimport {KitSidePanel} from 'aristid-ds';\nimport {useEditSettings} from './useEditSettings';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\nexport const SidePanel: FunctionComponent = () => {\n const {t} = useSharedTranslation();\n\n const {activeSettings, closeSettingsPanel} = useEditSettings();\n\n if (!activeSettings) {\n return null;\n }\n\n // TODO: handle transition opening/closing on floating prop true\n\n const makeA11yBackButton: ButtonHTMLAttributes<HTMLButtonElement> = {\n title: String(t('explorer.back')) /* TODO: avoid transform null to 'null' */,\n };\n\n return (\n <KitSidePanel\n initialOpen\n floating\n closable\n closeOnEsc\n idCardProps={{title: activeSettings.title}}\n leftActionProps={\n activeSettings.onClickLeftButton\n ? {onClick: activeSettings.onClickLeftButton, ...makeA11yBackButton}\n : undefined\n }\n onClose={closeSettingsPanel}\n >\n {activeSettings.content}\n </KitSidePanel>\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 { EditSettingsContext } from './EditSettingsContext';
6
3
  export const useEditSettings = () => useContext(EditSettingsContext);
@@ -1 +1 @@
1
- {"version":3,"file":"useEditSettings.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACjC,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,mBAAmB,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 {EditSettingsContext} from './EditSettingsContext';\n\nexport const useEditSettings = () => useContext(EditSettingsContext);\n"]}
1
+ {"version":3,"file":"useEditSettings.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/useEditSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACjC,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC","sourcesContent":["import {useContext} from 'react';\nimport {EditSettingsContext} from './EditSettingsContext';\n\nexport const useEditSettings = () => useContext(EditSettingsContext);\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 { KitButton, KitIdCard, KitTag } from 'aristid-ds';
6
3
  import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
7
4
  import { SettingsPanel } from '../router-menu/SettingsPanel';
@@ -1 +1 @@
1
- {"version":3,"file":"useOpenViewSettings.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,YAAY,CAAC;AACxD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAoB,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAE7D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,kBAAkB,EAAC,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,mCAAmC,CAAC;AAErE,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;CAE1C,CAAC;AAQF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAAC,IAAI,EAAE,SAAS,GAAG,IAAI,EAA0C,EAAE,EAAE;IACrG,MAAM,EAAC,cAAc,EAAE,iBAAiB,EAAE,kB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AE,kBAAkB,CAAC,CAAC,CAAC;IAEtD,OAAO;QACH,iBAAiB,EAAE,kBAAkB;QACrC,kBAAkB,EAAE,MAAM;QAC1B,cAAc;QACd,QAAQ,EAAE,QAAQ,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,CAAC,QAAQ;KAC7E,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 {KitButton, KitIdCard, KitTag} from 'aristid-ds';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {SettingsPanel} from '../router-menu/SettingsPanel';\nimport {useEditSettings} from './useEditSettings';\nimport {type SettingsPanelPages} from './EditSettingsContext';\nimport {localizedTranslation} from '@leav/utils';\nimport {useLang} from '_ui/hooks';\nimport {type ReactElement, useEffect, useState} from 'react';\nimport {type IViewSettingsState} from '../store-view-settings/viewSettingsReducer';\nimport styled from 'styled-components';\nimport {type FeatureHook} from '../../_types';\nimport {MASS_SELECTION_ALL} from '../../_constants';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faBars, faSlidersH} from '@fortawesome/free-solid-svg-icons';\n\nconst ModifiedStyledKitTag = styled(KitTag)`\n margin: 0;\n`;\n\ninterface IChangePanelPage {\n pageName: SettingsPanelPages;\n title: string;\n onClickLeftButton?: () => void;\n}\n\nexport const useOpenViewSettings = ({view, isEnabled = true}: FeatureHook<{view: IViewSettingsState}>) => {\n const {activeSettings, setActiveSettings, closeSettingsPanel} = useEditSettings();\n const [button, setButton] = useState<ReactElement | null>(null);\n const [viewListButton, setViewListButton] = useState<ReactElement | null>(null);\n\n const {t} = useSharedTranslation();\n const {lang} = useLang();\n\n useEffect(() => {\n if (!isEnabled) {\n closeSettingsPanel();\n }\n return () => {\n closeSettingsPanel();\n };\n }, [isEnabled]);\n\n const rootPanel = {pageName: 'router-menu', title: t('explorer.settings')} as const;\n\n const _changePanelPage = ({pageName, title, onClickLeftButton}: IChangePanelPage) => {\n setActiveSettings({\n ...activeSettings!,\n content: <SettingsPanel library={view.libraryId} page={pageName} />,\n title,\n onClickLeftButton,\n });\n };\n\n const _openSettingsPanel = (pageName: SettingsPanelPages = 'router-menu') => {\n const chanelPageParams: IChangePanelPage = {\n pageName,\n title: t(`explorer.${pageName}`),\n };\n if (pageName !== rootPanel.pageName) {\n chanelPageParams.onClickLeftButton = () => {\n _changePanelPage(rootPanel);\n };\n }\n\n _changePanelPage(chanelPageParams);\n };\n\n const viewName = localizedTranslation(view?.viewLabels ?? {}, lang);\n const isMassSelectionAll = view.massSelection === MASS_SELECTION_ALL;\n\n useEffect(() => {\n setButton(\n <KitButton\n type=\"secondary\"\n size=\"m\"\n icon={<FontAwesomeIcon icon={faSlidersH} />}\n onClick={() => _openSettingsPanel()}\n disabled={isMassSelectionAll}\n title={String(t('explorer.settings')) /* TODO: avoid transform null to 'null' */}\n />,\n );\n setViewListButton(\n <KitButton\n type=\"secondary\"\n size=\"m\"\n icon={<FontAwesomeIcon icon={faBars} />}\n onClick={() => _openSettingsPanel('viewList.my-views')}\n disabled={isMassSelectionAll}\n title={String(t('explorer.viewList.manage-views')) /* TODO: avoid transform null to 'null' */}\n >\n {viewName === '' ? t('explorer.viewList.manage-views') : viewName}\n {view.viewModified && (\n <ModifiedStyledKitTag type=\"error\">\n <KitIdCard description={String(t('explorer.modified'))} />\n </ModifiedStyledKitTag>\n )}\n </KitButton>,\n );\n }, [view.viewModified, viewName, isMassSelectionAll]);\n\n return {\n openSettingsPanel: _openSettingsPanel,\n viewSettingsButton: button,\n viewListButton,\n viewName: viewName === '' ? t('explorer.viewList.default-view') : viewName,\n };\n};\n"]}
1
+ {"version":3,"file":"useOpenViewSettings.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.tsx"],"names":[],"mappings":";AA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EAAE,GAAG,EAAE,CAAC,kBAAkB,EAAE,EACnC,QAAQ,EAAE,kBAAkB,EAC5B,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,0CAA0C,GAClF,CACL,CAAC;QACF,iBAAiB,CACb,MAAC,SAAS,IACN,IAAI,EAAC,WAAW,EAChB,IAAI,EAAC,GAAG,EACR,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,MAAM,GAAI,EACvC,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,EACtD,QAAQ,EAAE,kBAAkB,EAC5B,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,0CAA0C,aAE5F,QAAQ,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAChE,IAAI,CAAC,YAAY,IAAI,CAClB,KAAC,oBAAoB,IAAC,IAAI,EAAC,OAAO,YAC9B,KAAC,SAAS,IAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,GAAI,GACvC,CAC1B,IACO,CACf,CAAC;IACN,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAEtD,OAAO;QACH,iBAAiB,EAAE,kBAAkB;QACrC,kBAAkB,EAAE,MAAM;QAC1B,cAAc;QACd,QAAQ,EAAE,QAAQ,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,CAAC,QAAQ;KAC7E,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {KitButton, KitIdCard, KitTag} from 'aristid-ds';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {SettingsPanel} from '../router-menu/SettingsPanel';\nimport {useEditSettings} from './useEditSettings';\nimport {type SettingsPanelPages} from './EditSettingsContext';\nimport {localizedTranslation} from '@leav/utils';\nimport {useLang} from '_ui/hooks';\nimport {type ReactElement, useEffect, useState} from 'react';\nimport {type IViewSettingsState} from '../store-view-settings/viewSettingsReducer';\nimport styled from 'styled-components';\nimport {type FeatureHook} from '../../_types';\nimport {MASS_SELECTION_ALL} from '../../_constants';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faBars, faSlidersH} from '@fortawesome/free-solid-svg-icons';\n\nconst ModifiedStyledKitTag = styled(KitTag)`\n margin: 0;\n`;\n\ninterface IChangePanelPage {\n pageName: SettingsPanelPages;\n title: string;\n onClickLeftButton?: () => void;\n}\n\nexport const useOpenViewSettings = ({view, isEnabled = true}: FeatureHook<{view: IViewSettingsState}>) => {\n const {activeSettings, setActiveSettings, closeSettingsPanel} = useEditSettings();\n const [button, setButton] = useState<ReactElement | null>(null);\n const [viewListButton, setViewListButton] = useState<ReactElement | null>(null);\n\n const {t} = useSharedTranslation();\n const {lang} = useLang();\n\n useEffect(() => {\n if (!isEnabled) {\n closeSettingsPanel();\n }\n return () => {\n closeSettingsPanel();\n };\n }, [isEnabled]);\n\n const rootPanel = {pageName: 'router-menu', title: t('explorer.settings')} as const;\n\n const _changePanelPage = ({pageName, title, onClickLeftButton}: IChangePanelPage) => {\n setActiveSettings({\n ...activeSettings!,\n content: <SettingsPanel library={view.libraryId} page={pageName} />,\n title,\n onClickLeftButton,\n });\n };\n\n const _openSettingsPanel = (pageName: SettingsPanelPages = 'router-menu') => {\n const chanelPageParams: IChangePanelPage = {\n pageName,\n title: t(`explorer.${pageName}`),\n };\n if (pageName !== rootPanel.pageName) {\n chanelPageParams.onClickLeftButton = () => {\n _changePanelPage(rootPanel);\n };\n }\n\n _changePanelPage(chanelPageParams);\n };\n\n const viewName = localizedTranslation(view?.viewLabels ?? {}, lang);\n const isMassSelectionAll = view.massSelection === MASS_SELECTION_ALL;\n\n useEffect(() => {\n setButton(\n <KitButton\n type=\"secondary\"\n size=\"m\"\n icon={<FontAwesomeIcon icon={faSlidersH} />}\n onClick={() => _openSettingsPanel()}\n disabled={isMassSelectionAll}\n title={String(t('explorer.settings')) /* TODO: avoid transform null to 'null' */}\n />,\n );\n setViewListButton(\n <KitButton\n type=\"secondary\"\n size=\"m\"\n icon={<FontAwesomeIcon icon={faBars} />}\n onClick={() => _openSettingsPanel('viewList.my-views')}\n disabled={isMassSelectionAll}\n title={String(t('explorer.viewList.manage-views')) /* TODO: avoid transform null to 'null' */}\n >\n {viewName === '' ? t('explorer.viewList.manage-views') : viewName}\n {view.viewModified && (\n <ModifiedStyledKitTag type=\"error\">\n <KitIdCard description={String(t('explorer.modified'))} />\n </ModifiedStyledKitTag>\n )}\n </KitButton>,\n );\n }, [view.viewModified, viewName, isMassSelectionAll]);\n\n return {\n openSettingsPanel: _openSettingsPanel,\n viewSettingsButton: button,\n viewListButton,\n viewName: viewName === '' ? t('explorer.viewList.default-view') : viewName,\n };\n};\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 { KitTypography } from 'aristid-ds';
6
3
  import styled from 'styled-components';
7
4
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
@@ -1 +1 @@
1
- {"version":3,"file":"SettingItem.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/router-menu/SettingItem.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAEzC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAC;AAEjE,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;;CAE7C,CAAC;AAEF,MAAM,uBAAuB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAwB3B,WAAW;;;;;;;;;;;;;;;;;;CAkBxB,CAAC;AASF,MAAM,CAAC,MAAM,WAAW,GAAyC,CAAC,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,EAAE,EAAE,OAAO,EAAC,EAAE,EAAE,CAAC,CACrG,KAAC,uBAAuB,cACpB,kBAAQ,OAAO,EAAE,OAAO,aACnB,IAAI,EACL,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,QAAQ,QAAC,SAAS,EAAC,OAAO,YAC1D,KAAK,GACW,EACrB,KAAC,WAAW,IAAC,IAAI,EAAC,WAAW,EAAC,QAAQ,QAAC,SAAS,EAAC,OAAO,YACnD,KAAK,GACI,EACd,KAAC,eAAe,IAAC,IAAI,EAAE,cAAc,GAAI,IACpC,GACa,CAC7B,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 {KitTypography} from 'aristid-ds';\nimport {type FunctionComponent, type ReactNode} from 'react';\nimport styled from 'styled-components';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faChevronRight} from '@fortawesome/free-solid-svg-icons';\n\nconst StyledValue = styled(KitTypography.Text)`\n color: var(--general-utilities-disabled);\n`;\n\nconst StyledConfigurationItem = styled.li`\n list-style: none;\n\n &:first-child {\n margin-top: calc(var(--general-spacing-xs) * 1px);\n }\n\n > button {\n color: var(--general-utilities-text-primary);\n border: none;\n background: transparent;\n display: flex;\n width: 100%;\n height: 40px;\n align-items: center;\n padding: 0 calc(var(--general-spacing-xs) * 1px);\n gap: calc(var(--general-spacing-xs) * 1px);\n border-radius: calc(var(--general-spacing-xs) * 1px);\n text-align: left;\n cursor: pointer;\n\n &:hover {\n background: var(--general-utilities-main-light);\n\n ${StyledValue} {\n color: var(--general-utilities-text-primary);\n }\n }\n\n .title {\n flex: 1 1 auto;\n }\n\n .value {\n flex: 0 1 auto;\n text-align: right;\n }\n\n > svg {\n flex: 0 0 calc(var(--general-spacing-s) * 1px);\n }\n }\n`;\n\ninterface ISettingItemProps {\n icon: ReactNode;\n title: string;\n onClick: () => void;\n value?: string;\n}\n\nexport const SettingItem: FunctionComponent<ISettingItemProps> = ({icon, title, value = '', onClick}) => (\n <StyledConfigurationItem>\n <button onClick={onClick}>\n {icon}\n <KitTypography.Text size=\"fontSize5\" ellipsis className=\"title\">\n {title}\n </KitTypography.Text>\n <StyledValue size=\"fontSize5\" ellipsis className=\"value\">\n {value}\n </StyledValue>\n <FontAwesomeIcon icon={faChevronRight} />\n </button>\n </StyledConfigurationItem>\n);\n"]}
1
+ {"version":3,"file":"SettingItem.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/router-menu/SettingItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAEzC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAC;AAEjE,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;;CAE7C,CAAC;AAEF,MAAM,uBAAuB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAwB3B,WAAW;;;;;;;;;;;;;;;;;;CAkBxB,CAAC;AASF,MAAM,CAAC,MAAM,WAAW,GAAyC,CAAC,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,EAAE,EAAE,OAAO,EAAC,EAAE,EAAE,CAAC,CACrG,KAAC,uBAAuB,cACpB,kBAAQ,OAAO,EAAE,OAAO,aACnB,IAAI,EACL,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,QAAQ,QAAC,SAAS,EAAC,OAAO,YAC1D,KAAK,GACW,EACrB,KAAC,WAAW,IAAC,IAAI,EAAC,WAAW,EAAC,QAAQ,QAAC,SAAS,EAAC,OAAO,YACnD,KAAK,GACI,EACd,KAAC,eAAe,IAAC,IAAI,EAAE,cAAc,GAAI,IACpC,GACa,CAC7B,CAAC","sourcesContent":["import {KitTypography} from 'aristid-ds';\nimport {type FunctionComponent, type ReactNode} from 'react';\nimport styled from 'styled-components';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faChevronRight} from '@fortawesome/free-solid-svg-icons';\n\nconst StyledValue = styled(KitTypography.Text)`\n color: var(--general-utilities-disabled);\n`;\n\nconst StyledConfigurationItem = styled.li`\n list-style: none;\n\n &:first-child {\n margin-top: calc(var(--general-spacing-xs) * 1px);\n }\n\n > button {\n color: var(--general-utilities-text-primary);\n border: none;\n background: transparent;\n display: flex;\n width: 100%;\n height: 40px;\n align-items: center;\n padding: 0 calc(var(--general-spacing-xs) * 1px);\n gap: calc(var(--general-spacing-xs) * 1px);\n border-radius: calc(var(--general-spacing-xs) * 1px);\n text-align: left;\n cursor: pointer;\n\n &:hover {\n background: var(--general-utilities-main-light);\n\n ${StyledValue} {\n color: var(--general-utilities-text-primary);\n }\n }\n\n .title {\n flex: 1 1 auto;\n }\n\n .value {\n flex: 0 1 auto;\n text-align: right;\n }\n\n > svg {\n flex: 0 0 calc(var(--general-spacing-s) * 1px);\n }\n }\n`;\n\ninterface ISettingItemProps {\n icon: ReactNode;\n title: string;\n onClick: () => void;\n value?: string;\n}\n\nexport const SettingItem: FunctionComponent<ISettingItemProps> = ({icon, title, value = '', onClick}) => (\n <StyledConfigurationItem>\n <button onClick={onClick}>\n {icon}\n <KitTypography.Text size=\"fontSize5\" ellipsis className=\"title\">\n {title}\n </KitTypography.Text>\n <StyledValue size=\"fontSize5\" ellipsis className=\"value\">\n {value}\n </StyledValue>\n <FontAwesomeIcon icon={faChevronRight} />\n </button>\n </StyledConfigurationItem>\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 styled from 'styled-components';
6
3
  import { KitInput, KitTypography } from 'aristid-ds';
7
4
  import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsPanel.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/router-menu/SettingsPanel.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACnD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,gBAAgB,EAAC,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AAErF,OAAO,EAAC,mBAAmB,EAAC,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAC,UAAU,EAAC,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAC,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC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AAE,KAAC,eAAe,IAAC,IAAI,EAAE,QAAQ,GAAI,EACzC,KAAK,EAAE,CAAC,CAAC,kBAAkB,CAAC,EAC5B,KAAK,EAAE,MAAM,CACT,CAAC,CAAC,8BAA8B,EAAE,EAAC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,MAAM,EAAC,CAAC,CACzE,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,cAAc,CAAC,GAClD,EACF,KAAC,WAAW,IACR,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,eAAe,GAAI,EAChD,KAAK,EAAE,CAAC,CAAC,qBAAqB,CAAC,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,YAAY,CAAC,GAChD,IACH,CACN,IACqB,IACxB,EACN,KAAC,kBAAkB,KAAG,IACvB,CACN,EACA,IAAI,KAAK,mBAAmB,IAAI,KAAC,gBAAgB,IAAC,SAAS,EAAE,OAAO,GAAI,EACxE,IAAI,KAAK,YAAY,IAAI,KAAC,SAAS,IAAC,SAAS,EAAE,OAAO,GAAI,EAC1D,IAAI,KAAK,cAAc,IAAI,KAAC,WAAW,IAAC,SAAS,EAAE,OAAO,GAAI,EAC9D,IAAI,KAAK,mBAAmB,IAAI,KAAC,UAAU,KAAG,IACzB,CAC7B,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 styled from 'styled-components';\nimport {type FunctionComponent} from 'react';\nimport {KitInput, KitTypography} from 'aristid-ds';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {ConfigureDisplay} from '../configure-display/ConfigureDisplay';\nimport {SortItems} from '../sort-items/SortItems';\nimport {SettingItem} from './SettingItem';\nimport {FilterItems} from '../filter-items/FilterItems';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {type SettingsPanelPages} from '../open-view-settings/EditSettingsContext';\nimport {useOpenViewSettings} from '../open-view-settings/useOpenViewSettings';\nimport {SavedViews} from '../../list-saved-views/SavedViews';\nimport {ViewActionsButtons} from '../save-view/ViewActionsButtons';\nimport {useFiltersContext} from '_ui/components/Filters';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faFilter, faList, faSortAlphaDown} from '@fortawesome/free-solid-svg-icons';\n\nconst ContentWrapperStyledDiv = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n`;\n\nconst ViewNameStyledKitInput = styled(KitInput)`\n margin-bottom: calc(var(--general-spacing-s) * 1px);\n`;\n\nconst ConfigurationStyledMenu = styled.menu`\n padding: 0;\n`;\n\ninterface ISettingsPanelProps {\n library: string;\n page?: SettingsPanelPages;\n}\n\nexport const SettingsPanel: FunctionComponent<ISettingsPanelProps> = ({library, page = 'router-menu'}) => {\n const {t} = useSharedTranslation();\n\n const {view} = useViewSettingsContext();\n const {filtersData} = useFiltersContext();\n const {openSettingsPanel, viewName} = useOpenViewSettings({view, isEnabled: true});\n\n // TODO: look for MemoryRouter\n return (\n <ContentWrapperStyledDiv>\n {page === 'router-menu' && (\n <>\n <nav>\n <ViewNameStyledKitInput disabled value={viewName} />\n <KitTypography.Title level=\"h4\">{t('explorer.router-menu')}</KitTypography.Title>\n <ConfigurationStyledMenu>\n <SettingItem\n icon={<FontAwesomeIcon icon={faList} />}\n title={t('explorer.configure-display')}\n onClick={() => openSettingsPanel('configure-display')}\n />\n {view.entrypoint.type === 'library' && (\n <>\n <SettingItem\n icon={<FontAwesomeIcon icon={faFilter} />}\n title={t('explorer.filters')}\n value={String(\n t('explorer.active-items-number', {count: filtersData.filters.length}),\n )}\n onClick={() => openSettingsPanel('filter-items')}\n />\n <SettingItem\n icon={<FontAwesomeIcon icon={faSortAlphaDown} />}\n title={t('explorer.sort-items')}\n onClick={() => openSettingsPanel('sort-items')}\n />\n </>\n )}\n </ConfigurationStyledMenu>\n </nav>\n <ViewActionsButtons />\n </>\n )}\n {page === 'configure-display' && <ConfigureDisplay libraryId={library} />}\n {page === 'sort-items' && <SortItems libraryId={library} />}\n {page === 'filter-items' && <FilterItems libraryId={library} />}\n {page === 'viewList.my-views' && <SavedViews />}\n </ContentWrapperStyledDiv>\n );\n};\n"]}
1
+ {"version":3,"file":"SettingsPanel.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/router-menu/SettingsPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACnD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,gBAAgB,EAAC,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AAErF,OAAO,EAAC,mBAAmB,EAAC,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAC,UAAU,EAAC,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAC,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAEpF,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAKzC,CAAC;AAEF,MAAM,sBAAsB,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;;CAE9C,CAAC;AAEF,MAAM,uBAAuB,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AC,iBAAiB,CAAC,cAAc,CAAC,GAClD,EACF,KAAC,WAAW,IACR,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,eAAe,GAAI,EAChD,KAAK,EAAE,CAAC,CAAC,qBAAqB,CAAC,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,YAAY,CAAC,GAChD,IACH,CACN,IACqB,IACxB,EACN,KAAC,kBAAkB,KAAG,IACvB,CACN,EACA,IAAI,KAAK,mBAAmB,IAAI,KAAC,gBAAgB,IAAC,SAAS,EAAE,OAAO,GAAI,EACxE,IAAI,KAAK,YAAY,IAAI,KAAC,SAAS,IAAC,SAAS,EAAE,OAAO,GAAI,EAC1D,IAAI,KAAK,cAAc,IAAI,KAAC,WAAW,IAAC,SAAS,EAAE,OAAO,GAAI,EAC9D,IAAI,KAAK,mBAAmB,IAAI,KAAC,UAAU,KAAG,IACzB,CAC7B,CAAC;AACN,CAAC,CAAC","sourcesContent":["import styled from 'styled-components';\nimport {type FunctionComponent} from 'react';\nimport {KitInput, KitTypography} from 'aristid-ds';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {ConfigureDisplay} from '../configure-display/ConfigureDisplay';\nimport {SortItems} from '../sort-items/SortItems';\nimport {SettingItem} from './SettingItem';\nimport {FilterItems} from '../filter-items/FilterItems';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {type SettingsPanelPages} from '../open-view-settings/EditSettingsContext';\nimport {useOpenViewSettings} from '../open-view-settings/useOpenViewSettings';\nimport {SavedViews} from '../../list-saved-views/SavedViews';\nimport {ViewActionsButtons} from '../save-view/ViewActionsButtons';\nimport {useFiltersContext} from '_ui/components/Filters';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faFilter, faList, faSortAlphaDown} from '@fortawesome/free-solid-svg-icons';\n\nconst ContentWrapperStyledDiv = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n`;\n\nconst ViewNameStyledKitInput = styled(KitInput)`\n margin-bottom: calc(var(--general-spacing-s) * 1px);\n`;\n\nconst ConfigurationStyledMenu = styled.menu`\n padding: 0;\n`;\n\ninterface ISettingsPanelProps {\n library: string;\n page?: SettingsPanelPages;\n}\n\nexport const SettingsPanel: FunctionComponent<ISettingsPanelProps> = ({library, page = 'router-menu'}) => {\n const {t} = useSharedTranslation();\n\n const {view} = useViewSettingsContext();\n const {filtersData} = useFiltersContext();\n const {openSettingsPanel, viewName} = useOpenViewSettings({view, isEnabled: true});\n\n // TODO: look for MemoryRouter\n return (\n <ContentWrapperStyledDiv>\n {page === 'router-menu' && (\n <>\n <nav>\n <ViewNameStyledKitInput disabled value={viewName} />\n <KitTypography.Title level=\"h4\">{t('explorer.router-menu')}</KitTypography.Title>\n <ConfigurationStyledMenu>\n <SettingItem\n icon={<FontAwesomeIcon icon={faList} />}\n title={t('explorer.configure-display')}\n onClick={() => openSettingsPanel('configure-display')}\n />\n {view.entrypoint.type === 'library' && (\n <>\n <SettingItem\n icon={<FontAwesomeIcon icon={faFilter} />}\n title={t('explorer.filters')}\n value={String(\n t('explorer.active-items-number', {count: filtersData.filters.length}),\n )}\n onClick={() => openSettingsPanel('filter-items')}\n />\n <SettingItem\n icon={<FontAwesomeIcon icon={faSortAlphaDown} />}\n title={t('explorer.sort-items')}\n onClick={() => openSettingsPanel('sort-items')}\n />\n </>\n )}\n </ConfigurationStyledMenu>\n </nav>\n <ViewActionsButtons />\n </>\n )}\n {page === 'configure-display' && <ConfigureDisplay libraryId={library} />}\n {page === 'sort-items' && <SortItems libraryId={library} />}\n {page === 'filter-items' && <FilterItems libraryId={library} />}\n {page === 'viewList.my-views' && <SavedViews />}\n </ContentWrapperStyledDiv>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"LabelViewFormModal.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,Q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C,QAAQ,EACxB,KAAK,EAAE;wBACH;4BACI,QAAQ,EAAE,IAAI,KAAK,WAAW;4BAC9B,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC;yBACvD;qBACJ,YAED,KAAC,QAAQ,IACL,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,IAAI,KAAK,WAAW,EAC9B,WAAW,EAAE,0BAA0B,GACzC,IAdG,IAAI,CAeE,CAClB,CAAC,GACY,GACZ,GACH,CACd,CAAC;AACN,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type FunctionComponent} from 'react';\nimport {KitModal, KitButton, AntForm, KitInputWrapper, KitInput} from 'aristid-ds';\nimport {useLang} from '_ui/hooks';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faTimes, faSave} from '@fortawesome/free-solid-svg-icons';\n\ninterface ISaveViewProps {\n viewData?: Record<string, string> | null;\n isOpen: boolean;\n onSubmit: (label: Record<string, string>, id?: string | undefined) => void;\n onClose: () => void;\n}\n\nconst sortWithDefaultAtFirst = defaultLang => (a, b) => (b === defaultLang ? 1 : 0) - (a === defaultLang ? 1 : 0);\n\nexport const LabelViewFormModal: FunctionComponent<ISaveViewProps> = ({viewData, isOpen, onSubmit, onClose}) => {\n const {t} = useSharedTranslation();\n const {defaultLang, availableLangs} = useLang();\n const {view} = useViewSettingsContext();\n\n const [form] = AntForm.useForm();\n const initialValues = viewData ? viewData : view.viewId ? view.viewLabels : {};\n\n const _toggleModal = () => {\n onClose();\n };\n\n const _handleSaveView = () => {\n form.submit();\n };\n\n const _onSubmit = values => {\n onSubmit(values);\n onClose();\n };\n\n const _preventCloseSettingsPanel = e => e.stopPropagation();\n\n return (\n <KitModal\n // TODO: remove appElement and put in the test : \"KitModal.setAppElement(document.body) once exposed\"\n appElement={document.getElementById('root')}\n title={t('explorer.viewList.save-view-as')}\n showCloseIcon={false}\n close={_toggleModal}\n isOpen={isOpen}\n footer={\n <>\n <KitButton type=\"secondary\" onClick={_toggleModal} icon={<FontAwesomeIcon icon={faTimes} />}>\n {t('global.close')}\n </KitButton>\n <KitButton type=\"primary\" onClick={_handleSaveView} icon={<FontAwesomeIcon icon={faSave} />}>\n {t('global.save')}\n </KitButton>\n </>\n }\n >\n <AntForm name=\"label\" form={form} initialValues={initialValues} onFinish={_onSubmit}>\n <KitInputWrapper label={String(t('explorer.viewList.view-name'))}>\n {[...availableLangs].sort(sortWithDefaultAtFirst(defaultLang)).map(lang => (\n <AntForm.Item\n key={lang}\n name={lang}\n validateTrigger=\"onBlur\"\n rules={[\n {\n required: lang === defaultLang,\n message: String(t('errors.standard_field_required')),\n },\n ]}\n >\n <KitInput\n label={lang}\n required={lang === defaultLang}\n onMouseDown={_preventCloseSettingsPanel}\n />\n </AntForm.Item>\n ))}\n </KitInputWrapper>\n </AntForm>\n </KitModal>\n );\n};\n"]}
1
+ {"version":3,"file":"LabelViewFormModal.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AACnF,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,OAAO,EAAE,MAAM,EAAC,MAAM,mCAAmC,CAAC;AASlE,MAAM,sBAAsB,GAAG,WAAW,C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AntForm, KitInputWrapper, KitInput} from 'aristid-ds';\nimport {useLang} from '_ui/hooks';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faTimes, faSave} from '@fortawesome/free-solid-svg-icons';\n\ninterface ISaveViewProps {\n viewData?: Record<string, string> | null;\n isOpen: boolean;\n onSubmit: (label: Record<string, string>, id?: string | undefined) => void;\n onClose: () => void;\n}\n\nconst sortWithDefaultAtFirst = defaultLang => (a, b) => (b === defaultLang ? 1 : 0) - (a === defaultLang ? 1 : 0);\n\nexport const LabelViewFormModal: FunctionComponent<ISaveViewProps> = ({viewData, isOpen, onSubmit, onClose}) => {\n const {t} = useSharedTranslation();\n const {defaultLang, availableLangs} = useLang();\n const {view} = useViewSettingsContext();\n\n const [form] = AntForm.useForm();\n const initialValues = viewData ? viewData : view.viewId ? view.viewLabels : {};\n\n const _toggleModal = () => {\n onClose();\n };\n\n const _handleSaveView = () => {\n form.submit();\n };\n\n const _onSubmit = values => {\n onSubmit(values);\n onClose();\n };\n\n const _preventCloseSettingsPanel = e => e.stopPropagation();\n\n return (\n <KitModal\n // TODO: remove appElement and put in the test : \"KitModal.setAppElement(document.body) once exposed\"\n appElement={document.getElementById('root')}\n title={t('explorer.viewList.save-view-as')}\n showCloseIcon={false}\n close={_toggleModal}\n isOpen={isOpen}\n footer={\n <>\n <KitButton type=\"secondary\" onClick={_toggleModal} icon={<FontAwesomeIcon icon={faTimes} />}>\n {t('global.close')}\n </KitButton>\n <KitButton type=\"primary\" onClick={_handleSaveView} icon={<FontAwesomeIcon icon={faSave} />}>\n {t('global.save')}\n </KitButton>\n </>\n }\n >\n <AntForm name=\"label\" form={form} initialValues={initialValues} onFinish={_onSubmit}>\n <KitInputWrapper label={String(t('explorer.viewList.view-name'))}>\n {[...availableLangs].sort(sortWithDefaultAtFirst(defaultLang)).map(lang => (\n <AntForm.Item\n key={lang}\n name={lang}\n validateTrigger=\"onBlur\"\n rules={[\n {\n required: lang === defaultLang,\n message: String(t('errors.standard_field_required')),\n },\n ]}\n >\n <KitInput\n label={lang}\n required={lang === defaultLang}\n onMouseDown={_preventCloseSettingsPanel}\n />\n </AntForm.Item>\n ))}\n </KitInputWrapper>\n </AntForm>\n </KitModal>\n );\n};\n"]}
@@ -1,7 +1,4 @@
1
1
  import { 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 { useCreateNewView } from './useCreateNewView';
6
3
  import styled from 'styled-components';
7
4
  import { useUpdateView } from './useUpdateView';
@@ -1 +1 @@
1
- {"version":3,"file":"ViewActionsButtons.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAA;;;;CAIjC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,MAAM,EAAC,gBAAgB,EAAC,GAAG,aAAa,EAAE,CAAC;IAC3C,MAAM,EAAC,mBAAmB,EAAC,GAAG,gBAAgB,EAAE,CAAC;IACjD,MAAM,EAAC,eAAe,EAAC,GAAG,YAAY,EAAE,CAAC;IACzC,MAAM,EAAC,eAAe,EAAC,GAAG,YAAY,EAAE,CAAC;IAEzC,OAAO,CACH,MAAC,YAAY,eACR,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,eAAe,IACL,CAClB,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 {useCreateNewView} from './useCreateNewView';\nimport styled from 'styled-components';\nimport {useUpdateView} from './useUpdateView';\nimport {useResetView} from './useResetView';\nimport {useShareView} from './useShareView';\n\nconst StyledFooter = styled.footer`\n display: flex;\n flex-direction: column;\n padding-bottom: calc(var(--general-spacing-xs) * 1px);\n`;\n\nexport const ViewActionsButtons = () => {\n const {updateViewButton} = useUpdateView();\n const {createNewViewButton} = useCreateNewView();\n const {shareViewButton} = useShareView();\n const {resetViewButton} = useResetView();\n\n return (\n <StyledFooter>\n {updateViewButton}\n {createNewViewButton}\n {shareViewButton}\n {resetViewButton}\n </StyledFooter>\n );\n};\n"]}
1
+ {"version":3,"file":"ViewActionsButtons.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAA;;;;CAIjC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,MAAM,EAAC,gBAAgB,EAAC,GAAG,aAAa,EAAE,CAAC;IAC3C,MAAM,EAAC,mBAAmB,EAAC,GAAG,gBAAgB,EAAE,CAAC;IACjD,MAAM,EAAC,eAAe,EAAC,GAAG,YAAY,EAAE,CAAC;IACzC,MAAM,EAAC,eAAe,EAAC,GAAG,YAAY,EAAE,CAAC;IAEzC,OAAO,CACH,MAAC,YAAY,eACR,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,eAAe,IACL,CAClB,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {useCreateNewView} from './useCreateNewView';\nimport styled from 'styled-components';\nimport {useUpdateView} from './useUpdateView';\nimport {useResetView} from './useResetView';\nimport {useShareView} from './useShareView';\n\nconst StyledFooter = styled.footer`\n display: flex;\n flex-direction: column;\n padding-bottom: calc(var(--general-spacing-xs) * 1px);\n`;\n\nexport const ViewActionsButtons = () => {\n const {updateViewButton} = useUpdateView();\n const {createNewViewButton} = useCreateNewView();\n const {shareViewButton} = useShareView();\n const {resetViewButton} = useResetView();\n\n return (\n <StyledFooter>\n {updateViewButton}\n {createNewViewButton}\n {shareViewButton}\n {resetViewButton}\n </StyledFooter>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"prepareViewForRequest.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,+BAA+B,EAAC,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EACH,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EAEnB,yBAAyB,GAE5B,MAAM,+BAA+B,CAAC;AAEvC,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACjC,IAAwB,EACxB,OAAmB,EACnB,KAA6B,EACpB,EAAE,CAAC,CAAC;IACb,OAAO,EAAE,IAAI,CAAC,SAAS;IACvB,MAAM,EAAE,KAAK;IACb,OAAO,EAAE;QACL,IAAI,EAAE,+BAA+B,CAAC,IAAI,CAAC,QAAQ,CAAC;KACvD;IACD,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAqB,EAAE;QAC/C,IAAI,cAAc,CAAC,MAAM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SAAS,EAAE,MAAM,CAAC,YAAY;aACjC,CAAC;QACN,CAAC;QAED,OAAO;YACH,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,eAAe,EAAE,MAAM,CAAC,eAAe;SAC1C,CAAC;IACN,CAAC,CAAC;IACF,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,KAAK,EAAE,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC,CAAC;IACzD,UAAU,EAAE,IAAI,CAAC,aAAa;IAC9B,KAAK;CACR,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type RecordFilterInput, type ViewInput} from '_ui/_gqlTypes';\nimport {mapViewTypeFromExplorerToLegacy} from '../../_constants';\nimport {type IViewSettingsState} from '../store-view-settings/viewSettingsReducer';\nimport {\n isUIFilterTree,\n isUIFilterThrough,\n isUIFilterValueList,\n type UIFilter,\n isUIFilterWithSmartFilter,\n type IUIFilterThrough,\n} from '_ui/components/Filters/_types';\n\nexport const prepareViewForRequest = (\n view: IViewSettingsState,\n filters: UIFilter[],\n label: Record<string, string>,\n): ViewInput => ({\n library: view.libraryId,\n shared: false,\n display: {\n type: mapViewTypeFromExplorerToLegacy[view.viewType],\n },\n filters: filters.map((filter): RecordFilterInput => {\n if (isUIFilterTree(filter)) {\n return {\n // TODO save filter.field, but need to handle Through an other way in useTransformFilters.toValidFilters to keep that field as saved\n field: filter.attribute.id,\n // TODO : save filter values as string[] when tree filter and handle fields with libraries\n value: filter.value?.[0],\n condition: filter.condition,\n withEmptyValues: filter.withEmptyValues,\n };\n }\n\n if (isUIFilterValueList(filter)) {\n return {\n // TODO save filter.field, but need to handle Through an other way in useTransformFilters.toValidFilters to keep that field as saved\n field: filter.attribute.id,\n // TODO : save filter values as string[] when filter and handle fields with libraries\n value: filter.value?.[0],\n condition: filter.condition,\n withEmptyValues: filter.withEmptyValues,\n };\n }\n\n if (isUIFilterWithSmartFilter(filter)) {\n const isThoughFilter = isUIFilterThrough(filter);\n return {\n field: isThoughFilter\n ? `${(filter as IUIFilterThrough).field}.${(filter as IUIFilterThrough).subField}`\n : filter.field, // We use the field here because we want to keep the full path to the attribute (ex: link_attribute.id)\n value: null, // Force no value to avoid broken load view, may be fix after LEAVC-569\n condition: isThoughFilter ? (filter as IUIFilterThrough).subCondition : filter.condition,\n withEmptyValues: filter.withEmptyValues,\n };\n }\n\n if (isUIFilterThrough(filter)) {\n return {\n field: `${filter.field}.${filter.subField}`,\n value: filter.value,\n condition: filter.subCondition,\n };\n }\n\n return {\n field: filter.field,\n value: filter.value,\n condition: filter.condition,\n withEmptyValues: filter.withEmptyValues,\n };\n }),\n sort: view.sort.map(({field, order}) => ({field, order})),\n attributes: view.attributesIds,\n label,\n});\n"]}
1
+ {"version":3,"file":"prepareViewForRequest.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,+BAA+B,EAAC,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EACH,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EAEnB,yBAAyB,GAE5B,MAAM,+BAA+B,CAAC;AAEvC,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACjC,IAAwB,EACxB,OAAmB,EACnB,KAA6B,EACpB,EAAE,CAAC,CAAC;IACb,OAAO,EAAE,IAAI,CAAC,SAAS;IACvB,MAAM,EAAE,KAAK;IACb,OAAO,EAAE;QACL,IAAI,EAAE,+BAA+B,CAAC,IAAI,CAAC,QAAQ,CAAC;KACvD;IACD,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAqB,EAAE;QA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E,MAAM,CAAC,KAAK;gBACnB,SAAS,EAAE,MAAM,CAAC,YAAY;aACjC,CAAC;QACN,CAAC;QAED,OAAO;YACH,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,eAAe,EAAE,MAAM,CAAC,eAAe;SAC1C,CAAC;IACN,CAAC,CAAC;IACF,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,KAAK,EAAE,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC,CAAC;IACzD,UAAU,EAAE,IAAI,CAAC,aAAa;IAC9B,KAAK;CACR,CAAC,CAAC","sourcesContent":["import {type RecordFilterInput, type ViewInput} from '_ui/_gqlTypes';\nimport {mapViewTypeFromExplorerToLegacy} from '../../_constants';\nimport {type IViewSettingsState} from '../store-view-settings/viewSettingsReducer';\nimport {\n isUIFilterTree,\n isUIFilterThrough,\n isUIFilterValueList,\n type UIFilter,\n isUIFilterWithSmartFilter,\n type IUIFilterThrough,\n} from '_ui/components/Filters/_types';\n\nexport const prepareViewForRequest = (\n view: IViewSettingsState,\n filters: UIFilter[],\n label: Record<string, string>,\n): ViewInput => ({\n library: view.libraryId,\n shared: false,\n display: {\n type: mapViewTypeFromExplorerToLegacy[view.viewType],\n },\n filters: filters.map((filter): RecordFilterInput => {\n if (isUIFilterTree(filter)) {\n return {\n // TODO save filter.field, but need to handle Through an other way in useTransformFilters.toValidFilters to keep that field as saved\n field: filter.attribute.id,\n // TODO : save filter values as string[] when tree filter and handle fields with libraries\n value: filter.value?.[0],\n condition: filter.condition,\n withEmptyValues: filter.withEmptyValues,\n };\n }\n\n if (isUIFilterValueList(filter)) {\n return {\n // TODO save filter.field, but need to handle Through an other way in useTransformFilters.toValidFilters to keep that field as saved\n field: filter.attribute.id,\n // TODO : save filter values as string[] when filter and handle fields with libraries\n value: filter.value?.[0],\n condition: filter.condition,\n withEmptyValues: filter.withEmptyValues,\n };\n }\n\n if (isUIFilterWithSmartFilter(filter)) {\n const isThoughFilter = isUIFilterThrough(filter);\n return {\n field: isThoughFilter\n ? `${(filter as IUIFilterThrough).field}.${(filter as IUIFilterThrough).subField}`\n : filter.field, // We use the field here because we want to keep the full path to the attribute (ex: link_attribute.id)\n value: null, // Force no value to avoid broken load view, may be fix after LEAVC-569\n condition: isThoughFilter ? (filter as IUIFilterThrough).subCondition : filter.condition,\n withEmptyValues: filter.withEmptyValues,\n };\n }\n\n if (isUIFilterThrough(filter)) {\n return {\n field: `${filter.field}.${filter.subField}`,\n value: filter.value,\n condition: filter.subCondition,\n };\n }\n\n return {\n field: filter.field,\n value: filter.value,\n condition: filter.condition,\n withEmptyValues: filter.withEmptyValues,\n };\n }),\n sort: view.sort.map(({field, order}) => ({field, order})),\n attributes: view.attributesIds,\n label,\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 { useState } from 'react';
6
3
  import { LabelViewFormModal } from './LabelViewFormModal';
7
4
  import { KitButton } from 'aristid-ds';
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateNewView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useCreateNewView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAC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C,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,QAAQ,GAAI,EAAE,OAAO,EAAE,YAAY,YACpF,CAAC,CAAC,gCAAgC,CAAC,GAC5B,IACb,CACN;KACJ,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 {useState} from 'react';\nimport {LabelViewFormModal} from './LabelViewFormModal';\nimport {KitButton} from 'aristid-ds';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {ViewSettingsActionTypes} from '../store-view-settings/viewSettingsReducer';\nimport useExecuteSaveViewMutation from '_ui/hooks/useExecuteSaveViewMutation';\nimport {prepareViewForRequest} from './prepareViewForRequest';\nimport {mapViewTypeFromExplorerToLegacy} from '../../_constants';\nimport {type IViewDisplay} from '_ui/types';\nimport {useTransformFilters} from '_ui/components/Filters/useTransformFilters';\nimport {useFiltersContext} from '_ui/components/Filters/useFiltersContext';\nimport {FiltersActionTypes} from '_ui/components/Filters/context/filtersReducer';\nimport {type UIFilter} from '_ui/components/Filters/_types';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faSdCard} from '@fortawesome/free-solid-svg-icons';\n\nexport const useCreateNewView = () => {\n const {t} = useSharedTranslation();\n const {toValidFilters} = useTransformFilters();\n const {view, dispatch} = useViewSettingsContext();\n const {filtersData, dispatch: filtersDispatch} = useFiltersContext();\n const {saveView} = useExecuteSaveViewMutation();\n const [isModalOpen, setIsModalOpen] = useState(false);\n\n const _toggleModal = () => {\n setIsModalOpen(!isModalOpen);\n };\n\n const _createView = async (label: Record<string, string>) => {\n const mappedView = prepareViewForRequest(view, filtersData.filters, label);\n\n const {data} = await saveView({\n view: mappedView,\n });\n\n if (data) {\n const validFilters = toValidFilters(data.saveView.filters);\n dispatch({\n type: ViewSettingsActionTypes.UPDATE_VIEWS,\n payload: {\n id: data.saveView.id,\n ownerId: data.saveView.created_by.id,\n label: data.saveView.label,\n shared: data.saveView.shared,\n filters: validFilters,\n sort: data.saveView.sort ?? [],\n display: (data.saveView.display as IViewDisplay) ?? {\n type: mapViewTypeFromExplorerToLegacy[view.viewType],\n },\n attributes: data.saveView?.attributes?.map(({id}) => id) ?? [],\n },\n });\n filtersDispatch({\n type: FiltersActionTypes.UPDATE_VIEWS,\n payload: {\n ...filtersData,\n viewId: data.saveView.id,\n filters: validFilters as UIFilter[],\n },\n });\n }\n };\n\n return {\n createNewViewButton: (\n <>\n <LabelViewFormModal isOpen={isModalOpen} onSubmit={_createView} onClose={_toggleModal} />\n <KitButton type=\"action\" icon={<FontAwesomeIcon icon={faSdCard} />} onClick={_toggleModal}>\n {t('explorer.viewList.save-view-as')}\n </KitButton>\n </>\n ),\n };\n};\n"]}
1
+ {"version":3,"file":"useCreateNewView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useCreateNewView.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,0BAA0B,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,+BAA+B,EAAC,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,4CAA4C,CAAC;AAC/E,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AAC,EAAE;oBACpB,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;oBACpC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK;oBAC1B,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM;oBAC5B,OAAO,EAAE,YAAY;oBACrB,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE;oBAC9B,OAAO,EAAG,IAAI,CAAC,QAAQ,CAAC,OAAwB,IAAI;wBAChD,IAAI,EAAE,+BAA+B,CAAC,IAAI,CAAC,QAAQ,CAAC;qBACvD;oBACD,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,EAAC,EAAE,EAAC,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE;iBACjE;aACJ,CAAC,CAAC;YACH,eAAe,CAAC;gBACZ,IAAI,EAAE,kBAAkB,CAAC,YAAY;gBACrC,OAAO,EAAE;oBACL,GAAG,WAAW;oBACd,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE;oBACxB,OAAO,EAAE,YAA0B;iBACtC;aACJ,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,OAAO;QACH,mBAAmB,EAAE,CACjB,8BACI,KAAC,kBAAkB,IAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,GAAI,EACzF,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,QAAQ,GAAI,EAAE,OAAO,EAAE,YAAY,YACpF,CAAC,CAAC,gCAAgC,CAAC,GAC5B,IACb,CACN;KACJ,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {useState} from 'react';\nimport {LabelViewFormModal} from './LabelViewFormModal';\nimport {KitButton} from 'aristid-ds';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {ViewSettingsActionTypes} from '../store-view-settings/viewSettingsReducer';\nimport useExecuteSaveViewMutation from '_ui/hooks/useExecuteSaveViewMutation';\nimport {prepareViewForRequest} from './prepareViewForRequest';\nimport {mapViewTypeFromExplorerToLegacy} from '../../_constants';\nimport {type IViewDisplay} from '_ui/types';\nimport {useTransformFilters} from '_ui/components/Filters/useTransformFilters';\nimport {useFiltersContext} from '_ui/components/Filters/useFiltersContext';\nimport {FiltersActionTypes} from '_ui/components/Filters/context/filtersReducer';\nimport {type UIFilter} from '_ui/components/Filters/_types';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faSdCard} from '@fortawesome/free-solid-svg-icons';\n\nexport const useCreateNewView = () => {\n const {t} = useSharedTranslation();\n const {toValidFilters} = useTransformFilters();\n const {view, dispatch} = useViewSettingsContext();\n const {filtersData, dispatch: filtersDispatch} = useFiltersContext();\n const {saveView} = useExecuteSaveViewMutation();\n const [isModalOpen, setIsModalOpen] = useState(false);\n\n const _toggleModal = () => {\n setIsModalOpen(!isModalOpen);\n };\n\n const _createView = async (label: Record<string, string>) => {\n const mappedView = prepareViewForRequest(view, filtersData.filters, label);\n\n const {data} = await saveView({\n view: mappedView,\n });\n\n if (data) {\n const validFilters = toValidFilters(data.saveView.filters);\n dispatch({\n type: ViewSettingsActionTypes.UPDATE_VIEWS,\n payload: {\n id: data.saveView.id,\n ownerId: data.saveView.created_by.id,\n label: data.saveView.label,\n shared: data.saveView.shared,\n filters: validFilters,\n sort: data.saveView.sort ?? [],\n display: (data.saveView.display as IViewDisplay) ?? {\n type: mapViewTypeFromExplorerToLegacy[view.viewType],\n },\n attributes: data.saveView?.attributes?.map(({id}) => id) ?? [],\n },\n });\n filtersDispatch({\n type: FiltersActionTypes.UPDATE_VIEWS,\n payload: {\n ...filtersData,\n viewId: data.saveView.id,\n filters: validFilters as UIFilter[],\n },\n });\n }\n };\n\n return {\n createNewViewButton: (\n <>\n <LabelViewFormModal isOpen={isModalOpen} onSubmit={_createView} onClose={_toggleModal} />\n <KitButton type=\"action\" icon={<FontAwesomeIcon icon={faSdCard} />} onClick={_toggleModal}>\n {t('explorer.viewList.save-view-as')}\n </KitButton>\n </>\n ),\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 { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
6
3
  import { KitButton, KitModal, KitTypography } from 'aristid-ds';
7
4
  import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
@@ -1 +1 @@
1
- {"version":3,"file":"useDeleteView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useDeleteView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAsB,QAAQ,EAAC,MAAM,OAAO,CAAC;AACpD,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,4BAA4B,MAAM,qEAAqE,CAAC;AAC/G,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,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CAAC,KAAK,EAAC,CAAC,CAAC;QAClE,CAAC,YAED,KAAC,eAAe,IAAC,IAAI,EAAE,OAAO,GAAI,GACvB,CAClB,CAAC;IAEF,OAAO;QACH,UAAU;QACV,WAAW,EAAE,gBAAgB,CAAC,EAAE,IAAI,gBAAgB,CAAC,KAAK,IAAI,CAC1D,KAAC,QAAQ,IACL,UAAU,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,EAC3C,KAAK,EAAE,CAAC,CAAC,uCAAuC,CAAC,EACjD,MAAM,EAAE,CAAC,CAAC,gBAAgB,CAAC,EAAE,IAAI,CAAC,CAAC,gBAAgB,CAAC,KAAK,EACzD,MAAM,EACF,8BACI,KAAC,SAAS,IACN,IAAI,EAAC,WAAW,EAChB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC,EAC3D,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,OAAO,GAAI,YAEvC,CAAC,CAAC,cAAc,CAAC,GACV,EACZ,KAAC,SAAS,IACN,IAAI,EAAC,SAAS,EACd,MAAM,QACN,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,OAAO,GAAI,YAEvC,CAAC,CAAC,eAAe,CAAC,GACX,IACb,YAGP,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,MAAM,EAAC,QAAQ,YAC/C,oBAAoB,CAAC,gBAAgB,CAAC,KAAK,EAAE,cAAc,CAAC,GAC5C,GACd,CACd;KACJ,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 {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {KitButton, KitModal, KitTypography} from 'aristid-ds';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {type ComponentProps, useState} from 'react';\nimport {ViewSettingsActionTypes} from '../store-view-settings/viewSettingsReducer';\nimport useExecuteDeleteViewMutation from '_ui/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation';\nimport {localizedTranslation} from '@leav/utils';\nimport {useLang} from '_ui/hooks';\nimport {type IUserView, type IDataViewOnAction} from '../../_types';\nimport styled from 'styled-components';\nimport {type Button} from 'antd';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faTimes, faTrash} from '@fortawesome/free-solid-svg-icons';\n\nconst StyledButton = styled.button`\n all: unset;\n`;\n\nexport const useDeleteView = () => {\n const {t} = useSharedTranslation();\n const {availableLangs} = useLang();\n const {deleteView} = useExecuteDeleteViewMutation();\n const {dispatch} = useViewSettingsContext();\n const [dataViewOnAction, setDataViewOnAction] = useState<IDataViewOnAction>({id: null, label: null});\n\n const _onDeleteConfirm: ComponentProps<typeof Button>['onClick'] = async () => {\n if (!dataViewOnAction.id) {\n return;\n }\n const {data} = await deleteView(dataViewOnAction.id);\n\n if (data) {\n dispatch({\n type: ViewSettingsActionTypes.DELETE_VIEW,\n payload: {\n id: dataViewOnAction.id,\n },\n });\n }\n setDataViewOnAction({id: null, label: null});\n };\n\n const iconDelete = (viewItem: IUserView) => (\n <StyledButton\n className=\"delete\"\n title={t('explorer.viewList.delete-view')}\n onClick={() => {\n setDataViewOnAction({id: viewItem.id, label: viewItem.label});\n }}\n >\n <FontAwesomeIcon icon={faTrash} />\n </StyledButton>\n );\n\n return {\n iconDelete,\n deleteModal: dataViewOnAction.id && dataViewOnAction.label && (\n <KitModal\n appElement={document.getElementById('root')}\n title={t('explorer.viewList.confirm-delete-view')}\n isOpen={!!dataViewOnAction.id && !!dataViewOnAction.label}\n footer={\n <>\n <KitButton\n type=\"secondary\"\n onClick={() => setDataViewOnAction({id: null, label: null})}\n icon={<FontAwesomeIcon icon={faTimes} />}\n >\n {t('global.close')}\n </KitButton>\n <KitButton\n type=\"primary\"\n danger\n onClick={_onDeleteConfirm}\n icon={<FontAwesomeIcon icon={faTrash} />}\n >\n {t('global.delete')}\n </KitButton>\n </>\n }\n >\n <KitTypography.Text size=\"fontSize3\" weight=\"medium\">\n {localizedTranslation(dataViewOnAction.label, availableLangs)}\n </KitTypography.Text>\n </KitModal>\n ),\n };\n};\n"]}
1
+ {"version":3,"file":"useDeleteView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useDeleteView.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAsB,QAAQ,EAAC,MAAM,OAAO,CAAC;AACpD,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AACnF,OAAO,4BAA4B,MAAM,qEAAqE,CAAC;AAC/G,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,mCAAmC,CAAC;AAEnE,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAA;;CAEjC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAC9B,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,cAAc,EAAC,GAAG,OAAO,EAAE,CAAC;IACnC,MAAM,EAAC,UAAU,EAAC,GAAG,4BAA4B,EAAE,CAAC;IACpD,MAAM,EAAC,QAAQ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,EACjD,MAAM,EAAE,CAAC,CAAC,gBAAgB,CAAC,EAAE,IAAI,CAAC,CAAC,gBAAgB,CAAC,KAAK,EACzD,MAAM,EACF,8BACI,KAAC,SAAS,IACN,IAAI,EAAC,WAAW,EAChB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC,EAC3D,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,OAAO,GAAI,YAEvC,CAAC,CAAC,cAAc,CAAC,GACV,EACZ,KAAC,SAAS,IACN,IAAI,EAAC,SAAS,EACd,MAAM,QACN,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,OAAO,GAAI,YAEvC,CAAC,CAAC,eAAe,CAAC,GACX,IACb,YAGP,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,MAAM,EAAC,QAAQ,YAC/C,oBAAoB,CAAC,gBAAgB,CAAC,KAAK,EAAE,cAAc,CAAC,GAC5C,GACd,CACd;KACJ,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {KitButton, KitModal, KitTypography} from 'aristid-ds';\nimport {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {type ComponentProps, useState} from 'react';\nimport {ViewSettingsActionTypes} from '../store-view-settings/viewSettingsReducer';\nimport useExecuteDeleteViewMutation from '_ui/hooks/useExecuteDeleteViewMutation/useExecuteDeleteViewMutation';\nimport {localizedTranslation} from '@leav/utils';\nimport {useLang} from '_ui/hooks';\nimport {type IUserView, type IDataViewOnAction} from '../../_types';\nimport styled from 'styled-components';\nimport {type Button} from 'antd';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faTimes, faTrash} from '@fortawesome/free-solid-svg-icons';\n\nconst StyledButton = styled.button`\n all: unset;\n`;\n\nexport const useDeleteView = () => {\n const {t} = useSharedTranslation();\n const {availableLangs} = useLang();\n const {deleteView} = useExecuteDeleteViewMutation();\n const {dispatch} = useViewSettingsContext();\n const [dataViewOnAction, setDataViewOnAction] = useState<IDataViewOnAction>({id: null, label: null});\n\n const _onDeleteConfirm: ComponentProps<typeof Button>['onClick'] = async () => {\n if (!dataViewOnAction.id) {\n return;\n }\n const {data} = await deleteView(dataViewOnAction.id);\n\n if (data) {\n dispatch({\n type: ViewSettingsActionTypes.DELETE_VIEW,\n payload: {\n id: dataViewOnAction.id,\n },\n });\n }\n setDataViewOnAction({id: null, label: null});\n };\n\n const iconDelete = (viewItem: IUserView) => (\n <StyledButton\n className=\"delete\"\n title={t('explorer.viewList.delete-view')}\n onClick={() => {\n setDataViewOnAction({id: viewItem.id, label: viewItem.label});\n }}\n >\n <FontAwesomeIcon icon={faTrash} />\n </StyledButton>\n );\n\n return {\n iconDelete,\n deleteModal: dataViewOnAction.id && dataViewOnAction.label && (\n <KitModal\n appElement={document.getElementById('root')}\n title={t('explorer.viewList.confirm-delete-view')}\n isOpen={!!dataViewOnAction.id && !!dataViewOnAction.label}\n footer={\n <>\n <KitButton\n type=\"secondary\"\n onClick={() => setDataViewOnAction({id: null, label: null})}\n icon={<FontAwesomeIcon icon={faTimes} />}\n >\n {t('global.close')}\n </KitButton>\n <KitButton\n type=\"primary\"\n danger\n onClick={_onDeleteConfirm}\n icon={<FontAwesomeIcon icon={faTrash} />}\n >\n {t('global.delete')}\n </KitButton>\n </>\n }\n >\n <KitTypography.Text size=\"fontSize3\" weight=\"medium\">\n {localizedTranslation(dataViewOnAction.label, availableLangs)}\n </KitTypography.Text>\n </KitModal>\n ),\n };\n};\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 { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';
6
3
  import { useState } from 'react';
7
4
  import { ViewSettingsActionTypes } from '../store-view-settings/viewSettingsReducer';
@@ -1 +1 @@
1
- {"version":3,"file":"useEditLabelView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useEditLabelView.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,sBAAsB,EAAC,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;AAEnF,OAAO,4BAA4B,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,MAAM,EAAC,MAAM,mCAAmC,CAAC;AAEzD,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAA;;CAEjC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACjC,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,UAAU,EAAC,GAAG,4BAA4B,EAAE,CAAC;IACpD,MAAM,EAAC,QAAQ,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAC5C,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAoB,EAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC,CAAC;IAErG,MAAM,YAAY,GAAG,KAAK,EAAE,KAA6B,EAAE,EAAE;QACzD,IAAI,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC;YACvB,OAAO;QACX,CAAC;QACD,MAAM,UAAU,GAAG;YACf,EAAE,EAAE,gBAAgB,CAAC,EAAE;YACvB,KAAK;SACR,CAAC;QAEF,MAAM,EAAC,IAAI,EAAC,GAAG,MAAM,UAAU,CAAC;YAC5B,IAAI,EAAE,UAAU;SACnB,CAAC,CAAC;QAEH,IAAI,IAAI,EAAE,CAAC;YACP,QAAQ,CAAC;gBACL,IAAI,EAAE,uBAAuB,CAAC,WAAW;gBACzC,OAAO,EAAE;oBACL,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE;oBACtB,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK;iBAC/B;aACJ,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,CAAC,QAAmB,EAAE,EAAE,CAAC,CAC3C,KAAC,YAAY,IACT,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,CAAC,CAAC,6BAA6B,CAAC,EACvC,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAC,CAAC,YAE5E,KAAC,eAAe,IAAC,IAAI,EAAE,MAAM,GAAI,GACtB,CAClB,CAAC;IAEF,OAAO;QACH,aAAa;QACb,aAAa,EAAE,gBAAgB,CAAC,EAAE,IAAI,gBAAgB,CAAC,KAAK,IAAI,CAC5D,KAAC,kBAAkB,IACf,QAAQ,EAAE,gBAAgB,CAAC,KAAK,EAChC,MAAM,QACN,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC,GAC7D,CACL;KACJ,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 {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {useState} from 'react';\nimport {ViewSettingsActionTypes} from '../store-view-settings/viewSettingsReducer';\nimport {type IDataViewOnAction, type IUserView} from '../../_types';\nimport useExecuteUpdateViewMutation from '../../_queries/useExecuteUpdateViewMutation';\nimport {LabelViewFormModal} from './LabelViewFormModal';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faEdit} from '@fortawesome/free-solid-svg-icons';\n\nconst StyledButton = styled.button`\n all: unset;\n`;\n\nexport const useEditLabelView = () => {\n const {t} = useSharedTranslation();\n const {updateView} = useExecuteUpdateViewMutation();\n const {dispatch} = useViewSettingsContext();\n const [dataViewOnAction, setDataViewOnAction] = useState<IDataViewOnAction>({id: null, label: null});\n\n const _onEditLabel = async (label: Record<string, string>) => {\n if (!dataViewOnAction.id) {\n return;\n }\n const mappedView = {\n id: dataViewOnAction.id,\n label,\n };\n\n const {data} = await updateView({\n view: mappedView,\n });\n\n if (data) {\n dispatch({\n type: ViewSettingsActionTypes.RENAME_VIEW,\n payload: {\n id: data.updateView.id,\n label: data.updateView.label,\n },\n });\n }\n };\n\n const iconEditLabel = (viewItem: IUserView) => (\n <StyledButton\n className=\"edit\"\n title={t('explorer.viewList.edit-view')}\n onClick={() => setDataViewOnAction({id: viewItem.id, label: viewItem.label})}\n >\n <FontAwesomeIcon icon={faEdit} />\n </StyledButton>\n );\n\n return {\n iconEditLabel,\n editViewModal: dataViewOnAction.id && dataViewOnAction.label && (\n <LabelViewFormModal\n viewData={dataViewOnAction.label}\n isOpen\n onSubmit={_onEditLabel}\n onClose={() => setDataViewOnAction({id: null, label: null})}\n />\n ),\n };\n};\n"]}
1
+ {"version":3,"file":"useEditLabelView.js","sourceRoot":"","sources":["../../../../../src/components/Explorer/manage-view-settings/save-view/useEditLabelView.tsx"],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AC;gBACL,IAAI,EAAE,uBAAuB,CAAC,WAAW;gBACzC,OAAO,EAAE;oBACL,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE;oBACtB,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK;iBAC/B;aACJ,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,CAAC,QAAmB,EAAE,EAAE,CAAC,CAC3C,KAAC,YAAY,IACT,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,CAAC,CAAC,6BAA6B,CAAC,EACvC,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAC,CAAC,YAE5E,KAAC,eAAe,IAAC,IAAI,EAAE,MAAM,GAAI,GACtB,CAClB,CAAC;IAEF,OAAO;QACH,aAAa;QACb,aAAa,EAAE,gBAAgB,CAAC,EAAE,IAAI,gBAAgB,CAAC,KAAK,IAAI,CAC5D,KAAC,kBAAkB,IACf,QAAQ,EAAE,gBAAgB,CAAC,KAAK,EAChC,MAAM,QACN,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC,GAC7D,CACL;KACJ,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {useViewSettingsContext} from '../store-view-settings/useViewSettingsContext';\nimport {useState} from 'react';\nimport {ViewSettingsActionTypes} from '../store-view-settings/viewSettingsReducer';\nimport {type IDataViewOnAction, type IUserView} from '../../_types';\nimport useExecuteUpdateViewMutation from '../../_queries/useExecuteUpdateViewMutation';\nimport {LabelViewFormModal} from './LabelViewFormModal';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport {faEdit} from '@fortawesome/free-solid-svg-icons';\n\nconst StyledButton = styled.button`\n all: unset;\n`;\n\nexport const useEditLabelView = () => {\n const {t} = useSharedTranslation();\n const {updateView} = useExecuteUpdateViewMutation();\n const {dispatch} = useViewSettingsContext();\n const [dataViewOnAction, setDataViewOnAction] = useState<IDataViewOnAction>({id: null, label: null});\n\n const _onEditLabel = async (label: Record<string, string>) => {\n if (!dataViewOnAction.id) {\n return;\n }\n const mappedView = {\n id: dataViewOnAction.id,\n label,\n };\n\n const {data} = await updateView({\n view: mappedView,\n });\n\n if (data) {\n dispatch({\n type: ViewSettingsActionTypes.RENAME_VIEW,\n payload: {\n id: data.updateView.id,\n label: data.updateView.label,\n },\n });\n }\n };\n\n const iconEditLabel = (viewItem: IUserView) => (\n <StyledButton\n className=\"edit\"\n title={t('explorer.viewList.edit-view')}\n onClick={() => setDataViewOnAction({id: viewItem.id, label: viewItem.label})}\n >\n <FontAwesomeIcon icon={faEdit} />\n </StyledButton>\n );\n\n return {\n iconEditLabel,\n editViewModal: dataViewOnAction.id && dataViewOnAction.label && (\n <LabelViewFormModal\n viewData={dataViewOnAction.label}\n isOpen\n onSubmit={_onEditLabel}\n onClose={() => setDataViewOnAction({id: null, label: null})}\n />\n ),\n };\n};\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 { KitButton } from 'aristid-ds';
6
3
  import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
7
4
  import { useViewSettingsContext } from '../store-view-settings/useViewSettingsContext';