@leav/ui 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (514) hide show
  1. package/dist/_gqlTypes/index.d.ts +291 -120
  2. package/dist/_gqlTypes/index.js +204 -87
  3. package/dist/_gqlTypes/index.js.map +1 -1
  4. package/dist/_queries/records/createRecordMutation.js +2 -2
  5. package/dist/_queries/records/createRecordMutation.js.map +1 -1
  6. package/dist/_utils/getFiltersFromRequest.js +5 -6
  7. package/dist/_utils/getFiltersFromRequest.js.map +1 -1
  8. package/dist/_utils/index.js +3 -4
  9. package/dist/_utils/index.js.map +1 -1
  10. package/dist/_utils/typeguards.d.ts +5 -0
  11. package/dist/_utils/typeguards.js +6 -0
  12. package/dist/_utils/typeguards.js.map +1 -1
  13. package/dist/components/Explorer/Explorer.d.ts +2 -1
  14. package/dist/components/Explorer/Explorer.js +31 -13
  15. package/dist/components/Explorer/Explorer.js.map +1 -1
  16. package/dist/components/Explorer/ExplorerToolbar.js +2 -1
  17. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  18. package/dist/components/Explorer/_queries/useExplorerCountData.d.ts +16 -0
  19. package/dist/components/Explorer/_queries/useExplorerCountData.js +26 -0
  20. package/dist/components/Explorer/_queries/useExplorerCountData.js.map +1 -0
  21. package/dist/components/Explorer/_queries/useExplorerData.js +18 -20
  22. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  23. package/dist/components/Explorer/actions-mass/ResultsCount.d.ts +10 -0
  24. package/dist/components/Explorer/actions-mass/ResultsCount.js +8 -0
  25. package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -0
  26. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js +1 -1
  27. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
  28. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +9 -2
  29. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +18 -4
  30. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +1 -1
  31. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.d.ts +10 -0
  32. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js +69 -0
  33. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js.map +1 -0
  34. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.d.ts +18 -0
  35. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js +57 -0
  36. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js.map +1 -0
  37. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.d.ts +19 -0
  38. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js +94 -0
  39. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js.map +1 -0
  40. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +5 -3
  41. package/dist/components/Explorer/actions-mass/useMassActions.js +19 -13
  42. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  43. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +3 -1
  44. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +5 -1
  45. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  46. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +6 -1
  47. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -1
  48. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +3 -0
  49. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +5 -5
  50. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
  51. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +1 -1
  52. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
  53. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +2 -2
  54. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  55. package/dist/components/Explorer/useViewSettingsReducer.js +11 -8
  56. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  57. package/dist/components/Filters/_queries/treeFiltersDataQuery.d.ts +6 -0
  58. package/dist/components/Filters/_queries/treeFiltersDataQuery.js +54 -0
  59. package/dist/components/Filters/_queries/treeFiltersDataQuery.js.map +1 -0
  60. package/dist/components/Filters/context/useGetTreeFilters.js +24 -40
  61. package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
  62. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +1 -2
  63. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -1
  64. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.d.ts +6 -0
  65. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js +54 -0
  66. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js.map +1 -0
  67. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +22 -41
  68. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
  69. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
  70. package/dist/components/RecordEdition/EditRecord/EditRecord.js +3 -3
  71. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  72. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +4 -0
  73. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  74. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -3
  75. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  76. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +28 -17
  77. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  78. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +1 -0
  79. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +30 -18
  80. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  81. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.d.ts +2 -0
  82. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +11 -0
  83. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +1 -0
  84. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.d.ts +2 -0
  85. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +35 -0
  86. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +1 -0
  87. package/dist/components/RecordEdition/_types.d.ts +1 -1
  88. package/dist/components/RecordEdition/_types.js.map +1 -1
  89. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +7 -6
  90. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  91. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +1 -1
  92. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +6 -2
  93. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
  94. package/dist/components/SearchModal/SearchModal.js +28 -18
  95. package/dist/components/SearchModal/SearchModal.js.map +1 -1
  96. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +0 -2
  97. package/dist/components/SelectTreeNode/SelectTreeNode.js +2 -2
  98. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  99. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +0 -2
  100. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +60 -114
  101. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  102. package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +0 -1
  103. package/dist/components/SelectTreeNode/TreeNodeTitle.js +3 -7
  104. package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
  105. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.d.ts +6 -0
  106. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js +56 -0
  107. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js.map +1 -0
  108. package/dist/components/SelectTreeNode/_types.d.ts +0 -1
  109. package/dist/components/SelectTreeNode/_types.js.map +1 -1
  110. package/dist/components/index.d.ts +0 -3
  111. package/dist/components/index.js +0 -3
  112. package/dist/components/index.js.map +1 -1
  113. package/dist/hooks/useGetRecordForm/useGetRecordForm.js +24 -22
  114. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  115. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +9 -6
  116. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  117. package/dist/hooks/useIFrameMessenger/schema.d.ts +14 -2
  118. package/dist/hooks/useIFrameMessenger/schema.js +7 -1
  119. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  120. package/dist/hooks/useIFrameMessenger/types.d.ts +5 -0
  121. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  122. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.d.ts +1 -1
  123. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +14 -6
  124. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
  125. package/dist/locales/en/shared.json +14 -4
  126. package/dist/locales/fr/shared.json +14 -4
  127. package/package.json +11 -20
  128. package/dist/__mocks__/common/mockSearchContextProvider.d.ts +0 -6
  129. package/dist/__mocks__/common/mockSearchContextProvider.js +0 -10
  130. package/dist/__mocks__/common/mockSearchContextProvider.js.map +0 -1
  131. package/dist/components/AttributesSelectionList/Attribute/Attribute.d.ts +0 -3
  132. package/dist/components/AttributesSelectionList/Attribute/Attribute.js +0 -50
  133. package/dist/components/AttributesSelectionList/Attribute/Attribute.js.map +0 -1
  134. package/dist/components/AttributesSelectionList/Attribute/index.d.ts +0 -2
  135. package/dist/components/AttributesSelectionList/Attribute/index.js +0 -6
  136. package/dist/components/AttributesSelectionList/Attribute/index.js.map +0 -1
  137. package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +0 -10
  138. package/dist/components/AttributesSelectionList/AttributesSelectionList.js +0 -72
  139. package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +0 -1
  140. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +0 -7
  141. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +0 -39
  142. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js.map +0 -1
  143. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.d.ts +0 -2
  144. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js +0 -6
  145. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js.map +0 -1
  146. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.d.ts +0 -2
  147. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +0 -63
  148. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js.map +0 -1
  149. package/dist/components/AttributesSelectionList/SelectedAttributesList/index.d.ts +0 -2
  150. package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js +0 -6
  151. package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js.map +0 -1
  152. package/dist/components/AttributesSelectionList/_types.d.ts +0 -8
  153. package/dist/components/AttributesSelectionList/_types.js +0 -2
  154. package/dist/components/AttributesSelectionList/_types.js.map +0 -1
  155. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +0 -3
  156. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +0 -9
  157. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js.map +0 -1
  158. package/dist/components/AttributesSelectionList/index.d.ts +0 -2
  159. package/dist/components/AttributesSelectionList/index.js +0 -6
  160. package/dist/components/AttributesSelectionList/index.js.map +0 -1
  161. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.d.ts +0 -11
  162. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +0 -10
  163. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js.map +0 -1
  164. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.d.ts +0 -33
  165. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +0 -77
  166. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js.map +0 -1
  167. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.d.ts +0 -10
  168. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +0 -8
  169. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js.map +0 -1
  170. package/dist/components/AttributesSelectionList/sharedComponents.d.ts +0 -809
  171. package/dist/components/AttributesSelectionList/sharedComponents.js +0 -16
  172. package/dist/components/AttributesSelectionList/sharedComponents.js.map +0 -1
  173. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +0 -10
  174. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +0 -39
  175. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +0 -1
  176. package/dist/components/DeactivateRecordsModal/index.d.ts +0 -1
  177. package/dist/components/DeactivateRecordsModal/index.js +0 -5
  178. package/dist/components/DeactivateRecordsModal/index.js.map +0 -1
  179. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.d.ts +0 -13
  180. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +0 -50
  181. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +0 -1
  182. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.d.ts +0 -2
  183. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js +0 -6
  184. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js.map +0 -1
  185. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.d.ts +0 -2
  186. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +0 -80
  187. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +0 -1
  188. package/dist/components/LibraryItemsList/DisplayOptions/index.d.ts +0 -2
  189. package/dist/components/LibraryItemsList/DisplayOptions/index.js +0 -6
  190. package/dist/components/LibraryItemsList/DisplayOptions/index.js.map +0 -1
  191. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.d.ts +0 -2
  192. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js +0 -22
  193. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js.map +0 -1
  194. package/dist/components/LibraryItemsList/DisplayTypeSelector/index.d.ts +0 -2
  195. package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js +0 -6
  196. package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js.map +0 -1
  197. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +0 -13
  198. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +0 -229
  199. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +0 -1
  200. package/dist/components/LibraryItemsList/FiltersDropdown/index.d.ts +0 -2
  201. package/dist/components/LibraryItemsList/FiltersDropdown/index.js +0 -6
  202. package/dist/components/LibraryItemsList/FiltersDropdown/index.js.map +0 -1
  203. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.d.ts +0 -11
  204. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +0 -328
  205. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +0 -1
  206. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +0 -7
  207. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +0 -90
  208. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +0 -1
  209. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.d.ts +0 -2
  210. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js +0 -6
  211. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js.map +0 -1
  212. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.d.ts +0 -3
  213. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js +0 -13
  214. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js.map +0 -1
  215. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.d.ts +0 -2
  216. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js +0 -6
  217. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js.map +0 -1
  218. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.d.ts +0 -3
  219. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js +0 -26
  220. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js.map +0 -1
  221. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.d.ts +0 -2
  222. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js +0 -6
  223. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js.map +0 -1
  224. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.d.ts +0 -3
  225. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js +0 -22
  226. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js.map +0 -1
  227. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.d.ts +0 -2
  228. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js +0 -6
  229. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js.map +0 -1
  230. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.d.ts +0 -3
  231. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js +0 -35
  232. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js.map +0 -1
  233. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.d.ts +0 -2
  234. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js +0 -6
  235. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js.map +0 -1
  236. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.d.ts +0 -3
  237. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js +0 -34
  238. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js.map +0 -1
  239. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.d.ts +0 -2
  240. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js +0 -6
  241. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js.map +0 -1
  242. package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.d.ts +0 -2
  243. package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js +0 -16
  244. package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js.map +0 -1
  245. package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.d.ts +0 -2
  246. package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js +0 -6
  247. package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js.map +0 -1
  248. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.d.ts +0 -8
  249. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js +0 -11
  250. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js.map +0 -1
  251. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.d.ts +0 -2
  252. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js +0 -6
  253. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js.map +0 -1
  254. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +0 -6
  255. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +0 -38
  256. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js.map +0 -1
  257. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.d.ts +0 -2
  258. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js +0 -6
  259. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js.map +0 -1
  260. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.d.ts +0 -14
  261. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +0 -147
  262. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +0 -1
  263. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.d.ts +0 -2
  264. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +0 -121
  265. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js.map +0 -1
  266. package/dist/components/LibraryItemsList/FiltersPanel/index.d.ts +0 -2
  267. package/dist/components/LibraryItemsList/FiltersPanel/index.js +0 -6
  268. package/dist/components/LibraryItemsList/FiltersPanel/index.js.map +0 -1
  269. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.d.ts +0 -3
  270. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +0 -17
  271. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js.map +0 -1
  272. package/dist/components/LibraryItemsList/IconViewType/IconViewType.d.ts +0 -8
  273. package/dist/components/LibraryItemsList/IconViewType/IconViewType.js +0 -18
  274. package/dist/components/LibraryItemsList/IconViewType/IconViewType.js.map +0 -1
  275. package/dist/components/LibraryItemsList/IconViewType/index.d.ts +0 -2
  276. package/dist/components/LibraryItemsList/IconViewType/index.js +0 -6
  277. package/dist/components/LibraryItemsList/IconViewType/index.js.map +0 -1
  278. package/dist/components/LibraryItemsList/LibraryItemsList.d.ts +0 -14
  279. package/dist/components/LibraryItemsList/LibraryItemsList.js +0 -18
  280. package/dist/components/LibraryItemsList/LibraryItemsList.js.map +0 -1
  281. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.d.ts +0 -16
  282. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +0 -202
  283. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +0 -1
  284. package/dist/components/LibraryItemsList/LibraryItemsListContent/index.d.ts +0 -2
  285. package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js +0 -6
  286. package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js.map +0 -1
  287. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.d.ts +0 -6
  288. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +0 -32
  289. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js.map +0 -1
  290. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.d.ts +0 -2
  291. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js +0 -6
  292. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js.map +0 -1
  293. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.d.ts +0 -2
  294. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js +0 -21
  295. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js.map +0 -1
  296. package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.d.ts +0 -2
  297. package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js +0 -6
  298. package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js.map +0 -1
  299. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.d.ts +0 -8
  300. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +0 -56
  301. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js.map +0 -1
  302. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.d.ts +0 -2
  303. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js +0 -6
  304. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js.map +0 -1
  305. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.d.ts +0 -7
  306. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +0 -54
  307. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js.map +0 -1
  308. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.d.ts +0 -2
  309. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js +0 -6
  310. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js.map +0 -1
  311. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.d.ts +0 -8
  312. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +0 -66
  313. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js.map +0 -1
  314. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.d.ts +0 -2
  315. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js +0 -6
  316. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js.map +0 -1
  317. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.d.ts +0 -8
  318. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +0 -59
  319. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js.map +0 -1
  320. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +0 -9
  321. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +0 -56
  322. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js.map +0 -1
  323. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.d.ts +0 -2
  324. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js +0 -6
  325. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js.map +0 -1
  326. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.d.ts +0 -5
  327. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js +0 -34
  328. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js.map +0 -1
  329. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.d.ts +0 -2
  330. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js +0 -6
  331. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js.map +0 -1
  332. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.d.ts +0 -5
  333. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js +0 -23
  334. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js.map +0 -1
  335. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.d.ts +0 -3
  336. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +0 -80
  337. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +0 -1
  338. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.d.ts +0 -2
  339. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js +0 -6
  340. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js.map +0 -1
  341. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.d.ts +0 -2
  342. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js +0 -6
  343. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js.map +0 -1
  344. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.d.ts +0 -12
  345. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +0 -11
  346. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +0 -1
  347. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.d.ts +0 -12
  348. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js +0 -2
  349. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js.map +0 -1
  350. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.d.ts +0 -2
  351. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js +0 -40
  352. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js.map +0 -1
  353. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.d.ts +0 -6
  354. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +0 -81
  355. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js.map +0 -1
  356. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.d.ts +0 -2
  357. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js +0 -6
  358. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js.map +0 -1
  359. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.d.ts +0 -9
  360. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +0 -142
  361. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +0 -1
  362. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.d.ts +0 -2
  363. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js +0 -6
  364. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js.map +0 -1
  365. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.d.ts +0 -2
  366. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +0 -232
  367. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js.map +0 -1
  368. package/dist/components/LibraryItemsList/LibraryItemsListTable/index.d.ts +0 -2
  369. package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js +0 -6
  370. package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js.map +0 -1
  371. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.d.ts +0 -9
  372. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +0 -27
  373. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js.map +0 -1
  374. package/dist/components/LibraryItemsList/MenuItemList/index.d.ts +0 -2
  375. package/dist/components/LibraryItemsList/MenuItemList/index.js +0 -6
  376. package/dist/components/LibraryItemsList/MenuItemList/index.js.map +0 -1
  377. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.d.ts +0 -2
  378. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +0 -62
  379. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +0 -1
  380. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.d.ts +0 -2
  381. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js +0 -6
  382. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js.map +0 -1
  383. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.d.ts +0 -5
  384. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +0 -139
  385. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js.map +0 -1
  386. package/dist/components/LibraryItemsList/MenuItemListSelected/index.d.ts +0 -2
  387. package/dist/components/LibraryItemsList/MenuItemListSelected/index.js +0 -6
  388. package/dist/components/LibraryItemsList/MenuItemListSelected/index.js.map +0 -1
  389. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.d.ts +0 -2
  390. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +0 -58
  391. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js.map +0 -1
  392. package/dist/components/LibraryItemsList/MenuSelection/index.d.ts +0 -2
  393. package/dist/components/LibraryItemsList/MenuSelection/index.js +0 -6
  394. package/dist/components/LibraryItemsList/MenuSelection/index.js.map +0 -1
  395. package/dist/components/LibraryItemsList/MenuView/MenuView.d.ts +0 -6
  396. package/dist/components/LibraryItemsList/MenuView/MenuView.js +0 -162
  397. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +0 -1
  398. package/dist/components/LibraryItemsList/MenuView/index.d.ts +0 -2
  399. package/dist/components/LibraryItemsList/MenuView/index.js +0 -6
  400. package/dist/components/LibraryItemsList/MenuView/index.js.map +0 -1
  401. package/dist/components/LibraryItemsList/SearchItems/SearchItems.d.ts +0 -2
  402. package/dist/components/LibraryItemsList/SearchItems/SearchItems.js +0 -21
  403. package/dist/components/LibraryItemsList/SearchItems/SearchItems.js.map +0 -1
  404. package/dist/components/LibraryItemsList/SearchItems/index.d.ts +0 -2
  405. package/dist/components/LibraryItemsList/SearchItems/index.js +0 -6
  406. package/dist/components/LibraryItemsList/SearchItems/index.js.map +0 -1
  407. package/dist/components/LibraryItemsList/Sidebar/Sidebar.d.ts +0 -2
  408. package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +0 -58
  409. package/dist/components/LibraryItemsList/Sidebar/Sidebar.js.map +0 -1
  410. package/dist/components/LibraryItemsList/Sidebar/index.d.ts +0 -2
  411. package/dist/components/LibraryItemsList/Sidebar/index.js +0 -6
  412. package/dist/components/LibraryItemsList/Sidebar/index.js.map +0 -1
  413. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.d.ts +0 -6
  414. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +0 -199
  415. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js.map +0 -1
  416. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.d.ts +0 -2
  417. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js +0 -6
  418. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js.map +0 -1
  419. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.d.ts +0 -2
  420. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +0 -50
  421. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js.map +0 -1
  422. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.d.ts +0 -3
  423. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +0 -11
  424. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js.map +0 -1
  425. package/dist/components/LibraryItemsList/TileDisplay/index.d.ts +0 -2
  426. package/dist/components/LibraryItemsList/TileDisplay/index.js +0 -6
  427. package/dist/components/LibraryItemsList/TileDisplay/index.js.map +0 -1
  428. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.d.ts +0 -2
  429. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +0 -66
  430. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js.map +0 -1
  431. package/dist/components/LibraryItemsList/VersionsPanel/index.d.ts +0 -2
  432. package/dist/components/LibraryItemsList/VersionsPanel/index.js +0 -6
  433. package/dist/components/LibraryItemsList/VersionsPanel/index.js.map +0 -1
  434. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.d.ts +0 -9
  435. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +0 -85
  436. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +0 -1
  437. package/dist/components/LibraryItemsList/ViewPanel/EditView/index.d.ts +0 -2
  438. package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js +0 -6
  439. package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js.map +0 -1
  440. package/dist/components/LibraryItemsList/ViewPanel/View/View.d.ts +0 -7
  441. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +0 -152
  442. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +0 -1
  443. package/dist/components/LibraryItemsList/ViewPanel/View/index.d.ts +0 -2
  444. package/dist/components/LibraryItemsList/ViewPanel/View/index.js +0 -6
  445. package/dist/components/LibraryItemsList/ViewPanel/View/index.js.map +0 -1
  446. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.d.ts +0 -2
  447. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +0 -209
  448. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js.map +0 -1
  449. package/dist/components/LibraryItemsList/ViewPanel/index.d.ts +0 -2
  450. package/dist/components/LibraryItemsList/ViewPanel/index.js +0 -6
  451. package/dist/components/LibraryItemsList/ViewPanel/index.js.map +0 -1
  452. package/dist/components/LibraryItemsList/constants.d.ts +0 -12
  453. package/dist/components/LibraryItemsList/constants.js +0 -19
  454. package/dist/components/LibraryItemsList/constants.js.map +0 -1
  455. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.d.ts +0 -3
  456. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js +0 -21
  457. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js.map +0 -1
  458. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +0 -3
  459. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +0 -18
  460. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js.map +0 -1
  461. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.d.ts +0 -4
  462. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +0 -64
  463. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js.map +0 -1
  464. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.d.ts +0 -5
  465. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +0 -40
  466. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js.map +0 -1
  467. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.d.ts +0 -6
  468. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +0 -10
  469. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +0 -1
  470. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.d.ts +0 -2
  471. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js +0 -13
  472. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js.map +0 -1
  473. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.d.ts +0 -2
  474. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js +0 -18
  475. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js.map +0 -1
  476. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.d.ts +0 -8
  477. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +0 -99
  478. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +0 -1
  479. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +0 -82
  480. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js +0 -2
  481. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js.map +0 -1
  482. package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.d.ts +0 -2
  483. package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js +0 -6
  484. package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js.map +0 -1
  485. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.d.ts +0 -7
  486. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js +0 -7
  487. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js.map +0 -1
  488. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +0 -121
  489. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +0 -228
  490. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +0 -1
  491. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +0 -5
  492. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js +0 -8
  493. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js.map +0 -1
  494. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.d.ts +0 -7
  495. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +0 -40
  496. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +0 -1
  497. package/dist/components/LibraryItemsList/index.d.ts +0 -1
  498. package/dist/components/LibraryItemsList/index.js +0 -5
  499. package/dist/components/LibraryItemsList/index.js.map +0 -1
  500. package/dist/components/LibraryItemsList/manageItems.d.ts +0 -11
  501. package/dist/components/LibraryItemsList/manageItems.js +0 -98
  502. package/dist/components/LibraryItemsList/manageItems.js.map +0 -1
  503. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +0 -7
  504. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +0 -38
  505. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +0 -1
  506. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.d.ts +0 -2
  507. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js +0 -6
  508. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js.map +0 -1
  509. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.d.ts +0 -12
  510. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +0 -29
  511. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js.map +0 -1
  512. package/dist/components/LibraryItemsList/shared/sharedUtils.d.ts +0 -4
  513. package/dist/components/LibraryItemsList/shared/sharedUtils.js +0 -9
  514. package/dist/components/LibraryItemsList/shared/sharedUtils.js.map +0 -1
@@ -1,66 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { Modal, Tooltip } from 'antd';
6
- import styled from 'styled-components';
7
- import { themeVars } from '../../../../../antdTheme';
8
- import { RecordCard } from '../../../../../components';
9
- import List from '../../../../../components/List';
10
- import { PreviewSize } from '../../../../../constants';
11
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
12
- import { stopEvent } from '../../../../../_utils';
13
- import { TypeGuards } from '../typeGuards';
14
- const MoreValuesCount = styled.span `
15
- padding: 0 0.75em;
16
- height: 1.75em;
17
- line-height: 1.75em;
18
- margin: 0 1em;
19
- border-radius: 2em;
20
- background: ${themeVars.activeColor};
21
- color: ${themeVars.secondaryTextColor};
22
- font-weight: bold;
23
- font-size: 0.9em;
24
- cursor: pointer;
25
- `;
26
- const AllValuesCount = ({ values, attributeType }) => {
27
- const { t } = useSharedTranslation();
28
- const [modal, contextHolder] = Modal.useModal();
29
- const _handleShowMoreClick = (e) => {
30
- stopEvent(e);
31
- modal.info({
32
- icon: null,
33
- content: (_jsx(List, { dataSource: values.map(value => {
34
- let whoAmI = null;
35
- if (TypeGuards.isTreeCellValues(values)) {
36
- whoAmI = value?.treeValue?.record?.whoAmI;
37
- }
38
- if (TypeGuards.isLinkCellValues(values)) {
39
- whoAmI = value.linkValue?.whoAmI;
40
- }
41
- return whoAmI ? _jsx(RecordCard, { record: whoAmI, size: PreviewSize.SMALL }) : value;
42
- }), size: "small", maxHeight: "50vh" })),
43
- okText: t('global.close'),
44
- });
45
- };
46
- const otherValuesData = values
47
- .slice(0, 5)
48
- .map(value => {
49
- let whoAmI = null;
50
- if (TypeGuards.isTreeCellValue(value)) {
51
- whoAmI = value.treeValue?.record?.whoAmI;
52
- }
53
- if (TypeGuards.isLinkCellValue(value)) {
54
- whoAmI = value.linkValue?.whoAmI;
55
- }
56
- if (!whoAmI) {
57
- return null;
58
- }
59
- return whoAmI.label ?? whoAmI.id;
60
- })
61
- .filter(val => !!val); // To make sure we don't have null values. This crashes the List component
62
- const otherValuesList = (_jsx(List, { dataSource: otherValuesData, size: "small", maxHeight: "50vh", footer: values.length > 5 && _jsx("a", { onClick: _handleShowMoreClick, children: t('items_list.show_more_links') }) }));
63
- return (_jsxs(_Fragment, { children: [_jsx(Tooltip, { overlay: otherValuesList, color: "white", children: _jsx(MoreValuesCount, { onClick: _handleShowMoreClick, onDoubleClick: stopEvent, children: values.length }) }), contextHolder] }));
64
- };
65
- export default AllValuesCount;
66
- //# sourceMappingURL=AllValuesCount.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AllValuesCount.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.tsx"],"names":[],"mappings":"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","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 {Modal, Tooltip} from 'antd';\nimport React, {type FunctionComponent} from 'react';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\nimport {RecordCard} from '_ui/components';\nimport List from '_ui/components/List';\nimport {PreviewSize} from '_ui/constants';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type AttributeType} from '_ui/_gqlTypes';\nimport {stopEvent} from '_ui/_utils';\nimport {TypeGuards} from '../typeGuards';\nimport {type IRecordIdentityWhoAmI} from '_ui/types';\n\ninterface IAllValuesCountProps {\n values: any[];\n attributeType: AttributeType;\n}\n\nconst MoreValuesCount = styled.span`\n padding: 0 0.75em;\n height: 1.75em;\n line-height: 1.75em;\n margin: 0 1em;\n border-radius: 2em;\n background: ${themeVars.activeColor};\n color: ${themeVars.secondaryTextColor};\n font-weight: bold;\n font-size: 0.9em;\n cursor: pointer;\n`;\n\nconst AllValuesCount: FunctionComponent<IAllValuesCountProps> = ({values, attributeType}) => {\n const {t} = useSharedTranslation();\n const [modal, contextHolder] = Modal.useModal();\n\n const _handleShowMoreClick = (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => {\n stopEvent(e);\n modal.info({\n icon: null,\n content: (\n <List\n dataSource={values.map(value => {\n let whoAmI = null;\n\n if (TypeGuards.isTreeCellValues(values)) {\n whoAmI = value?.treeValue?.record?.whoAmI;\n }\n\n if (TypeGuards.isLinkCellValues(values)) {\n whoAmI = value.linkValue?.whoAmI;\n }\n\n return whoAmI ? <RecordCard record={whoAmI} size={PreviewSize.SMALL} /> : value;\n })}\n size=\"small\"\n maxHeight=\"50vh\"\n />\n ),\n okText: t('global.close'),\n });\n };\n\n const otherValuesData = values\n .slice(0, 5)\n .map(value => {\n let whoAmI: IRecordIdentityWhoAmI = null;\n\n if (TypeGuards.isTreeCellValue(value)) {\n whoAmI = value.treeValue?.record?.whoAmI;\n }\n\n if (TypeGuards.isLinkCellValue(value)) {\n whoAmI = value.linkValue?.whoAmI;\n }\n\n if (!whoAmI) {\n return null;\n }\n\n return whoAmI.label ?? whoAmI.id;\n })\n .filter(val => !!val); // To make sure we don't have null values. This crashes the List component\n\n const otherValuesList = (\n <List\n dataSource={otherValuesData}\n size=\"small\"\n maxHeight=\"50vh\"\n footer={values.length > 5 && <a onClick={_handleShowMoreClick}>{t('items_list.show_more_links')}</a>}\n />\n );\n\n return (\n <>\n <Tooltip overlay={otherValuesList} color=\"white\">\n <MoreValuesCount onClick={_handleShowMoreClick} onDoubleClick={stopEvent}>\n {values.length}\n </MoreValuesCount>\n </Tooltip>\n {contextHolder}\n </>\n );\n};\n\nexport default AllValuesCount;\n"]}
@@ -1,2 +0,0 @@
1
- import AllValuesCount from './AllValuesCount';
2
- export default AllValuesCount;
@@ -1,6 +0,0 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import AllValuesCount from './AllValuesCount';
5
- export default AllValuesCount;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,eAAe,cAAc,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport AllValuesCount from './AllValuesCount';\n\nexport default AllValuesCount;\n"]}
@@ -1,8 +0,0 @@
1
- import { type ITableCell } from '../../../../types/search';
2
- import { type FunctionComponent } from 'react';
3
- interface ICellProps {
4
- columnName: string;
5
- data: ITableCell;
6
- }
7
- declare const Cell: FunctionComponent<ICellProps>;
8
- export default Cell;
@@ -1,59 +0,0 @@
1
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import styled from 'styled-components';
6
- import { RecordCard } from '../../../../components';
7
- import useSearchReducer from '../../../../components/LibraryItemsList/hooks/useSearchReducer';
8
- import { PreviewSize } from '../../../../constants';
9
- import { useLang } from '../../../../hooks';
10
- import { AttributeType } from '../../../../_gqlTypes';
11
- import { infosCol } from '../../constants';
12
- import { displayTypeToPreviewSize } from '../../helpers/displayTypeToPreviewSize';
13
- import AllValuesCount from './AllValuesCount';
14
- import CellInfos from './CellInfos';
15
- import StandardCell from './StandardCell';
16
- import { getValuesToDisplayInCell } from './utils';
17
- import { TypeGuards } from './typeGuards';
18
- const RecordCardCellWrapper = styled.div `
19
- display: flex;
20
- align-items: center;
21
- justify-content: space-between;
22
- width: 100%;
23
- `;
24
- const Cell = ({ columnName, data }) => {
25
- const { value, type } = data;
26
- const { lang } = useLang();
27
- const { state: searchState } = useSearchReducer();
28
- const previewSize = displayTypeToPreviewSize(searchState.display.size);
29
- const arrayOfValues = Array.isArray(value) ? value : [value];
30
- if (arrayOfValues.length === 0) {
31
- return _jsx(_Fragment, {});
32
- }
33
- switch (type) {
34
- case AttributeType.simple:
35
- case AttributeType.advanced:
36
- return _jsx(StandardCell, { cellData: data, values: arrayOfValues });
37
- case AttributeType.simple_link:
38
- case AttributeType.advanced_link:
39
- case AttributeType.tree:
40
- const valuesToDisplay = getValuesToDisplayInCell(arrayOfValues);
41
- let whoAmI = null;
42
- if (TypeGuards.isTreeCellValues(valuesToDisplay)) {
43
- whoAmI = valuesToDisplay[0]?.treeValue?.record?.whoAmI;
44
- }
45
- if (TypeGuards.isLinkCellValues(valuesToDisplay)) {
46
- whoAmI = valuesToDisplay[0].linkValue?.whoAmI;
47
- }
48
- const numberOfHiddenValues = valuesToDisplay.length - 1;
49
- return whoAmI ? (_jsxs(RecordCardCellWrapper, { children: [_jsx(RecordCard, { record: whoAmI, size: PreviewSize.SMALL, lang: lang, withPreview: true, withLibrary: false, simplistic: true }, whoAmI.id), numberOfHiddenValues > 0 && _jsx(AllValuesCount, { values: valuesToDisplay, attributeType: type })] })) : null;
50
- default:
51
- // selection and infos column has no type
52
- if (columnName === infosCol) {
53
- return _jsx(CellInfos, { record: value, previewSize: previewSize, lang: lang });
54
- }
55
- return _jsx(_Fragment, {});
56
- }
57
- };
58
- export default Cell;
59
- //# sourceMappingURL=Cell.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Cell.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.tsx"],"names":[],"mappings":"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","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 {RecordCard} from '_ui/components';\nimport useSearchReducer from '_ui/components/LibraryItemsList/hooks/useSearchReducer';\nimport {PreviewSize} from '_ui/constants';\nimport {useLang} from '_ui/hooks';\nimport {type ITableCell} from '_ui/types/search';\nimport {AttributeType} from '_ui/_gqlTypes';\nimport {infosCol} from '../../constants';\nimport {displayTypeToPreviewSize} from '../../helpers/displayTypeToPreviewSize';\nimport AllValuesCount from './AllValuesCount';\nimport CellInfos from './CellInfos';\nimport StandardCell from './StandardCell';\nimport {getValuesToDisplayInCell} from './utils';\nimport {TypeGuards} from './typeGuards';\nimport {type FunctionComponent} from 'react';\nimport {type IRecordIdentityWhoAmI} from '_ui/types';\n\nconst RecordCardCellWrapper = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n`;\n\ninterface ICellProps {\n columnName: string;\n data: ITableCell;\n}\n\nconst Cell: FunctionComponent<ICellProps> = ({columnName, data}) => {\n const {value, type} = data;\n const {lang} = useLang();\n\n const {state: searchState} = useSearchReducer();\n const previewSize: PreviewSize = displayTypeToPreviewSize(searchState.display.size);\n\n const arrayOfValues = Array.isArray(value) ? value : [value];\n\n if (arrayOfValues.length === 0) {\n return <></>;\n }\n\n switch (type) {\n case AttributeType.simple:\n case AttributeType.advanced:\n return <StandardCell cellData={data} values={arrayOfValues} />;\n case AttributeType.simple_link:\n case AttributeType.advanced_link:\n case AttributeType.tree:\n const valuesToDisplay = getValuesToDisplayInCell(arrayOfValues);\n\n let whoAmI: IRecordIdentityWhoAmI = null;\n\n if (TypeGuards.isTreeCellValues(valuesToDisplay)) {\n whoAmI = valuesToDisplay[0]?.treeValue?.record?.whoAmI;\n }\n\n if (TypeGuards.isLinkCellValues(valuesToDisplay)) {\n whoAmI = valuesToDisplay[0].linkValue?.whoAmI;\n }\n\n const numberOfHiddenValues = valuesToDisplay.length - 1;\n\n return whoAmI ? (\n <RecordCardCellWrapper>\n <RecordCard\n record={whoAmI}\n size={PreviewSize.SMALL}\n lang={lang}\n key={whoAmI.id}\n withPreview={true}\n withLibrary={false}\n simplistic\n />\n {numberOfHiddenValues > 0 && <AllValuesCount values={valuesToDisplay} attributeType={type} />}\n </RecordCardCellWrapper>\n ) : null;\n default:\n // selection and infos column has no type\n if (columnName === infosCol) {\n return <CellInfos record={value} previewSize={previewSize} lang={lang} />;\n }\n\n return <></>;\n }\n};\n\nexport default Cell;\n"]}
@@ -1,9 +0,0 @@
1
- import { type PreviewSize } from '../../../../../constants';
2
- import { type IRecordIdentityWhoAmI } from '../../../../../types/records';
3
- interface ICellInfosProps {
4
- record: IRecordIdentityWhoAmI;
5
- previewSize: PreviewSize;
6
- lang?: string[];
7
- }
8
- declare function CellInfos({ record, previewSize, lang }: ICellInfosProps): JSX.Element;
9
- export default CellInfos;
@@ -1,56 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import styled from 'styled-components';
3
- import { FloatingMenu, RecordCard } from '../../../../../components';
4
- import useSearchReducer from '../../../../../components/LibraryItemsList/hooks/useSearchReducer';
5
- import DeactivateRecordBtn from '../../../../../components/LibraryItemsList/shared/DeactivateRecordBtn';
6
- import SelectCellsBtn from '../../../../../components/LibraryItemsList/shared/SelectCellsBtn';
7
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
8
- import { ArrowsAltOutlined } from '@ant-design/icons';
9
- import { AntButton } from 'aristid-ds';
10
- import { useEditRecordModalContext } from '../../../../../contexts/EditRecordModalContext';
11
- import { SelectCellsBtnType } from '../../../../../components/LibraryItemsList/shared/sharedUtils';
12
- const Info = styled.div `
13
- min-width: 150px;
14
- `;
15
- function CellInfos({ record, previewSize, lang }) {
16
- const { t } = useSharedTranslation();
17
- const { state: searchState } = useSearchReducer();
18
- const canDeleteRecord = searchState.library.permissions.delete_record;
19
- const { editRecord } = useEditRecordModalContext();
20
- const menuBtnSize = 'middle';
21
- const _onEditRecord = () => {
22
- editRecord({
23
- open: true,
24
- record,
25
- library: record.library.id,
26
- onClose: () => null,
27
- valuesVersion: searchState.valuesVersions,
28
- });
29
- };
30
- const menuActions = [
31
- {
32
- title: t('global.details'),
33
- button: (_jsx(AntButton, { "aria-label": "edit-record", shape: "circle", size: menuBtnSize, icon: _jsx(ArrowsAltOutlined, { size: 48 }), onClick: _onEditRecord })),
34
- },
35
- ];
36
- if (canDeleteRecord) {
37
- menuActions.push({
38
- title: t('records_deactivation.title_one'),
39
- button: _jsx(DeactivateRecordBtn, { record: record }),
40
- });
41
- }
42
- const selectActions = [
43
- {
44
- title: t('items-list-row.select-only'),
45
- button: (_jsx(SelectCellsBtn, { selectionType: SelectCellsBtnType.ONLY, text: t('items-list-row.select-only'), record: record, size: menuBtnSize })),
46
- },
47
- {
48
- title: t('items-list-row.select-all'),
49
- button: (_jsx(SelectCellsBtn, { selectionType: SelectCellsBtnType.ALL, text: t('items-list-row.select-all'), record: record, size: menuBtnSize })),
50
- },
51
- ];
52
- const isSelectActive = searchState.selection.selected.length || searchState.selection.allSelected;
53
- return (_jsxs(_Fragment, { children: [_jsx(Info, { children: _jsx(RecordCard, { record: record, size: previewSize, lang: lang }) }), _jsx(FloatingMenu, { actions: isSelectActive ? selectActions : menuActions, size: menuBtnSize })] }));
54
- }
55
- export default CellInfos;
56
- //# sourceMappingURL=CellInfos.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellInfos.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.tsx"],"names":[],"mappings":";AAIA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,YAAY,EAA2B,UAAU,EAAC,MAAM,gBAAgB,CAAC;AACjF,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AACtF,OAAO,mBAAmB,MAAM,4DAA4D,CAAC;AAC7F,OAAO,cAAc,MAAM,uDAAuD,CAAC;AAEnF,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,yBAAyB,EAAC,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAC,kBAAkB,EAAC,MAAM,oDAAoD,CAAC;AAEtF,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAA;;CAEtB,CAAC;AAQF,SAAS,SAAS,CAAC,EAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAkB;IAC3D,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,KAAK,EAAE,WAAW,EAAC,GAAG,gBAAgB,EAAE,CAAC;IAEhD,MAAM,eAAe,GAAG,WAAW,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC;IAEtE,MAAM,EAAC,UAAU,EAAC,GAAG,yBAAyB,EAAE,CAAC;IAEjD,MAAM,WAAW,GAAa,QAAQ,CAAC;IAEvC,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,UAAU,CAAC;YACP,IAAI,EAAE,IAAI;YACV,MAAM;YACN,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;YAC1B,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI;YACnB,aAAa,EAAE,WAAW,CAAC,cAAc;SAC5C,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,MAAM,WAAW,GAAyB;QACtC;YACI,KAAK,EAAE,CAAC,CAAC,gBAAgB,CAAC;YAC1B,MAAM,EAAE,CACJ,KAAC,SAAS,kBACK,aAAa,EACxB,KAAK,EAAC,QAAQ,EACd,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,KAAC,iBAAiB,IAAC,IAAI,EAAE,EAAE,GAAI,EACrC,OAAO,EAAE,aAAa,GACxB,CACL;SACJ;KACJ,CAAC;IAEF,IAAI,eAAe,EAAE,CAAC;QAClB,WAAW,CAAC,IAAI,CAAC;YACb,KAAK,EAAE,CAAC,CAAC,gCAAgC,CAAC;YAC1C,MAAM,EAAE,KAAC,mBAAmB,IAAC,MAAM,EAAE,MAAM,GAAI;SAClD,CAAC,CAAC;IACP,CAAC;IAED,MAAM,aAAa,GAAyB;QACxC;YACI,KAAK,EAAE,CAAC,CAAC,4BAA4B,CAAC;YACtC,MAAM,EAAE,CACJ,KAAC,cAAc,IACX,aAAa,EAAE,kBAAkB,CAAC,IAAI,EACtC,IAAI,EAAE,CAAC,CAAC,4BAA4B,CAAC,EACrC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,WAAW,GACnB,CACL;SACJ;QACD;YACI,KAAK,EAAE,CAAC,CAAC,2BAA2B,CAAC;YACrC,MAAM,EAAE,CACJ,KAAC,cAAc,IACX,aAAa,EAAE,kBAAkB,CAAC,GAAG,EACrC,IAAI,EAAE,CAAC,CAAC,2BAA2B,CAAC,EACpC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,WAAW,GACnB,CACL;SACJ;KACJ,CAAC;IAEF,MAAM,cAAc,GAAG,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,IAAI,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC;IAElG,OAAO,CACH,8BACI,KAAC,IAAI,cACD,KAAC,UAAU,IAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,GAAI,GAC1D,EACP,KAAC,YAAY,IAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,WAAW,GAAI,IAC3F,CACN,CAAC;AACN,CAAC;AAED,eAAe,SAAS,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type SizeType} from 'antd/lib/config-provider/SizeContext';\nimport styled from 'styled-components';\nimport {FloatingMenu, type FloatingMenuAction, RecordCard} from '_ui/components';\nimport useSearchReducer from '_ui/components/LibraryItemsList/hooks/useSearchReducer';\nimport DeactivateRecordBtn from '_ui/components/LibraryItemsList/shared/DeactivateRecordBtn';\nimport SelectCellsBtn from '_ui/components/LibraryItemsList/shared/SelectCellsBtn';\nimport {type PreviewSize} from '_ui/constants';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type IRecordIdentityWhoAmI} from '_ui/types/records';\nimport {ArrowsAltOutlined} from '@ant-design/icons';\nimport {AntButton} from 'aristid-ds';\nimport {useEditRecordModalContext} from '_ui/contexts/EditRecordModalContext';\nimport {SelectCellsBtnType} from '_ui/components/LibraryItemsList/shared/sharedUtils';\n\nconst Info = styled.div`\n min-width: 150px;\n`;\n\ninterface ICellInfosProps {\n record: IRecordIdentityWhoAmI;\n previewSize: PreviewSize;\n lang?: string[];\n}\n\nfunction CellInfos({record, previewSize, lang}: ICellInfosProps): JSX.Element {\n const {t} = useSharedTranslation();\n const {state: searchState} = useSearchReducer();\n\n const canDeleteRecord = searchState.library.permissions.delete_record;\n\n const {editRecord} = useEditRecordModalContext();\n\n const menuBtnSize: SizeType = 'middle';\n\n const _onEditRecord = () => {\n editRecord({\n open: true,\n record,\n library: record.library.id,\n onClose: () => null,\n valuesVersion: searchState.valuesVersions,\n });\n };\n\n const menuActions: FloatingMenuAction[] = [\n {\n title: t('global.details'),\n button: (\n <AntButton\n aria-label=\"edit-record\"\n shape=\"circle\"\n size={menuBtnSize}\n icon={<ArrowsAltOutlined size={48} />}\n onClick={_onEditRecord}\n />\n ),\n },\n ];\n\n if (canDeleteRecord) {\n menuActions.push({\n title: t('records_deactivation.title_one'),\n button: <DeactivateRecordBtn record={record} />,\n });\n }\n\n const selectActions: FloatingMenuAction[] = [\n {\n title: t('items-list-row.select-only'),\n button: (\n <SelectCellsBtn\n selectionType={SelectCellsBtnType.ONLY}\n text={t('items-list-row.select-only')}\n record={record}\n size={menuBtnSize}\n />\n ),\n },\n {\n title: t('items-list-row.select-all'),\n button: (\n <SelectCellsBtn\n selectionType={SelectCellsBtnType.ALL}\n text={t('items-list-row.select-all')}\n record={record}\n size={menuBtnSize}\n />\n ),\n },\n ];\n\n const isSelectActive = searchState.selection.selected.length || searchState.selection.allSelected;\n\n return (\n <>\n <Info>\n <RecordCard record={record} size={previewSize} lang={lang} />\n </Info>\n <FloatingMenu actions={isSelectActive ? selectActions : menuActions} size={menuBtnSize} />\n </>\n );\n}\n\nexport default CellInfos;\n"]}
@@ -1,2 +0,0 @@
1
- import CellInfos from './CellInfos';
2
- export default CellInfos;
@@ -1,6 +0,0 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import CellInfos from './CellInfos';
5
- export default CellInfos;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,eAAe,SAAS,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport CellInfos from './CellInfos';\n\nexport default CellInfos;\n"]}
@@ -1,5 +0,0 @@
1
- interface ICellSelectionProps {
2
- selected: boolean;
3
- }
4
- declare function CellSelection({ selected }: ICellSelectionProps): JSX.Element;
5
- export default CellSelection;
@@ -1,34 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { CheckCircleFilled, CheckCircleOutlined } from '@ant-design/icons';
6
- import styled from 'styled-components';
7
- import { themeVars } from '../../../../../antdTheme';
8
- const Wrapper = styled.div `
9
- display: grid;
10
- place-items: center;
11
- position: relative;
12
- height: 100%;
13
- width: 100%;
14
- `;
15
- const CustomCheckbox = styled.span `
16
- && {
17
- display: ${p => (!p.checked ? 'none' : 'block')};
18
- color: ${p => (p.checked ? themeVars.primaryColor : themeVars.defaultTextColor)};
19
- font-size: 1.5em;
20
-
21
- .ant-checkbox-checked::after {
22
- border: none;
23
- }
24
- }
25
-
26
- [role='row']:hover & {
27
- display: block;
28
- }
29
- `;
30
- function CellSelection({ selected }) {
31
- return (_jsx(Wrapper, { children: _jsx(CustomCheckbox, { checked: selected, role: "checkbox", children: selected ? _jsx(CheckCircleFilled, {}) : _jsx(CheckCircleOutlined, {}) }) }));
32
- }
33
- export default CellSelection;
34
- //# sourceMappingURL=CellSelection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellSelection.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,iBAAiB,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACzE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAExC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAMzB,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAoB;;mBAEnC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;iBACtC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC;;;;;;;;;;;CAWtF,CAAC;AAMF,SAAS,aAAa,CAAC,EAAC,QAAQ,EAAsB;IAClD,OAAO,CACH,KAAC,OAAO,cACJ,KAAC,cAAc,IAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAC,UAAU,YAC7C,QAAQ,CAAC,CAAC,CAAC,KAAC,iBAAiB,KAAG,CAAC,CAAC,CAAC,KAAC,mBAAmB,KAAG,GAC9C,GACX,CACb,CAAC;AACN,CAAC;AAED,eAAe,aAAa,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {CheckCircleFilled, CheckCircleOutlined} from '@ant-design/icons';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\n\nconst Wrapper = styled.div`\n display: grid;\n place-items: center;\n position: relative;\n height: 100%;\n width: 100%;\n`;\n\nconst CustomCheckbox = styled.span<{checked: boolean}>`\n && {\n display: ${p => (!p.checked ? 'none' : 'block')};\n color: ${p => (p.checked ? themeVars.primaryColor : themeVars.defaultTextColor)};\n font-size: 1.5em;\n\n .ant-checkbox-checked::after {\n border: none;\n }\n }\n\n [role='row']:hover & {\n display: block;\n }\n`;\n\ninterface ICellSelectionProps {\n selected: boolean;\n}\n\nfunction CellSelection({selected}: ICellSelectionProps): JSX.Element {\n return (\n <Wrapper>\n <CustomCheckbox checked={selected} role=\"checkbox\">\n {selected ? <CheckCircleFilled /> : <CheckCircleOutlined />}\n </CustomCheckbox>\n </Wrapper>\n );\n}\n\nexport default CellSelection;\n"]}
@@ -1,2 +0,0 @@
1
- import CellSelection from './CellSelection';
2
- export default CellSelection;
@@ -1,6 +0,0 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import CellSelection from './CellSelection';
5
- export default CellSelection;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,eAAe,aAAa,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport CellSelection from './CellSelection';\n\nexport default CellSelection;\n"]}
@@ -1,5 +0,0 @@
1
- export interface IRichTextDisplayProps {
2
- displayedValue: string;
3
- }
4
- declare function RichTextDisplay({ displayedValue }: IRichTextDisplayProps): JSX.Element;
5
- export default RichTextDisplay;
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import EllipsisOutlined from '@ant-design/icons/lib/icons/EllipsisOutlined';
6
- import { Tooltip } from 'antd';
7
- import parse from 'html-react-parser';
8
- import styled from 'styled-components';
9
- import DOMPurify from 'dompurify';
10
- const EllipsisOutlinedComponent = styled(EllipsisOutlined) `
11
- border-width: 1px;
12
- border-style: solid;
13
- border-color: #d9d9d9;
14
- background: white;
15
- border-radius: 10px;
16
- `;
17
- function RichTextDisplay({ displayedValue }) {
18
- const sanitizedDisplayedValue = DOMPurify.sanitize(displayedValue);
19
- const parseValue = parse(sanitizedDisplayedValue);
20
- return (_jsx(Tooltip, { overlay: parseValue, children: _jsx(EllipsisOutlinedComponent, {}) }));
21
- }
22
- export default RichTextDisplay;
23
- //# sourceMappingURL=RichTextDisplay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RichTextDisplay.js","sourceRoot":"","sources":["../../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,gBAAgB,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAC,OAAO,EAAC,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,MAAM,yBAAyB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAA;;;;;;CAMzD,CAAC;AAMF,SAAS,eAAe,CAAC,EAAC,cAAc,EAAwB;IAC5D,MAAM,uBAAuB,GAAG,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IACnE,MAAM,UAAU,GAAG,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAElD,OAAO,CACH,KAAC,OAAO,IAAC,OAAO,EAAE,UAAU,YACxB,KAAC,yBAAyB,KAAG,GACvB,CACb,CAAC;AACN,CAAC;AAED,eAAe,eAAe,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport EllipsisOutlined from '@ant-design/icons/lib/icons/EllipsisOutlined';\nimport {Tooltip} from 'antd';\nimport parse from 'html-react-parser';\nimport styled from 'styled-components';\nimport DOMPurify from 'dompurify';\n\nconst EllipsisOutlinedComponent = styled(EllipsisOutlined)`\n border-width: 1px;\n border-style: solid;\n border-color: #d9d9d9;\n background: white;\n border-radius: 10px;\n`;\n\nexport interface IRichTextDisplayProps {\n displayedValue: string;\n}\n\nfunction RichTextDisplay({displayedValue}: IRichTextDisplayProps): JSX.Element {\n const sanitizedDisplayedValue = DOMPurify.sanitize(displayedValue);\n const parseValue = parse(sanitizedDisplayedValue);\n\n return (\n <Tooltip overlay={parseValue}>\n <EllipsisOutlinedComponent />\n </Tooltip>\n );\n}\n\nexport default RichTextDisplay;\n"]}
@@ -1,3 +0,0 @@
1
- import { type ISimpleCellProps } from '../types';
2
- declare function StandardCell({ cellData, values }: ISimpleCellProps): JSX.Element;
3
- export default StandardCell;
@@ -1,80 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { CheckOutlined, CloseOutlined, FileTextOutlined } from '@ant-design/icons';
6
- import { getInvertColor } from '@leav/utils';
7
- import { Switch, Tag, Tooltip, Typography } from 'antd';
8
- import isEmpty from 'lodash/isEmpty';
9
- import React from 'react';
10
- import styled from 'styled-components';
11
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
12
- import { AttributeFormat } from '../../../../../_gqlTypes';
13
- import { stringifyDateRangeValue } from '../../../../../_utils';
14
- import { getValuesToDisplayInCell } from '../utils';
15
- import { AggregationColor } from 'antd/es/color-picker/color';
16
- const RichTextDisplay = React.lazy(() => import('./ElementsToDisplay/RichTextDisplay'));
17
- const alignmentByFormat = {
18
- [AttributeFormat.text]: 'left',
19
- [AttributeFormat.numeric]: 'right',
20
- [AttributeFormat.boolean]: 'center',
21
- [AttributeFormat.date]: 'left',
22
- [AttributeFormat.date_range]: 'left',
23
- [AttributeFormat.extended]: 'left',
24
- [AttributeFormat.encrypted]: 'left',
25
- [AttributeFormat.color]: 'left',
26
- [AttributeFormat.rich_text]: 'center',
27
- };
28
- const Wrapper = styled.div `
29
- padding: 5px;
30
- width: 100%;
31
- text-align: ${props => alignmentByFormat[props.$format]};
32
- `;
33
- function StandardCell({ cellData, values }) {
34
- const { t } = useSharedTranslation();
35
- const _getValueByFormat = (cellValue) => {
36
- switch (cellData.format) {
37
- case AttributeFormat.date_range:
38
- const rangeValue = cellValue;
39
- return stringifyDateRangeValue(rangeValue, t);
40
- default:
41
- return cellValue;
42
- }
43
- };
44
- const formattedValuesToDisplay = getValuesToDisplayInCell(values)
45
- .map(valueData => _getValueByFormat(valueData?.value))
46
- .join(', ');
47
- const _getTagStyle = (hexColor) => ({ color: getInvertColor(hexColor) });
48
- const _getElementToDisplay = () => {
49
- switch (cellData.format) {
50
- case AttributeFormat.boolean:
51
- return (_jsx(Switch, { disabled: true, checked: values[0]?.value, checkedChildren: _jsx(CheckOutlined, {}), unCheckedChildren: _jsx(CloseOutlined, {}) }));
52
- case AttributeFormat.color:
53
- if (!isEmpty(values)) {
54
- return (_jsx(_Fragment, { children: values.map((colorData, index) => {
55
- const color = new AggregationColor(colorData.raw_value);
56
- const hexColor = color.toHexString();
57
- return (_jsx(Tag, { bordered: true, color: hexColor, style: _getTagStyle(hexColor), children: colorData.value }, index));
58
- }) }));
59
- }
60
- else {
61
- return formattedValuesToDisplay;
62
- }
63
- case AttributeFormat.rich_text:
64
- if (isEmpty(formattedValuesToDisplay)) {
65
- return formattedValuesToDisplay;
66
- }
67
- else {
68
- return _jsx(RichTextDisplay, { displayedValue: formattedValuesToDisplay });
69
- }
70
- default:
71
- return formattedValuesToDisplay;
72
- }
73
- };
74
- return (_jsx(Wrapper, { "$format": cellData.format, children: cellData.format === AttributeFormat.extended ? (_jsx(Tooltip, { overlay: formattedValuesToDisplay, children: _jsx(FileTextOutlined, { size: 256, style: { fontSize: '2em' } }) })) : (_jsx(Typography.Paragraph, { ellipsis: {
75
- rows: 1,
76
- tooltip: formattedValuesToDisplay,
77
- }, style: { margin: 0 }, children: _getElementToDisplay() })) }));
78
- }
79
- export default StandardCell;
80
- //# sourceMappingURL=StandardCell.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StandardCell.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.tsx"],"names":[],"mappings":"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","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 {CheckOutlined, CloseOutlined, FileTextOutlined} from '@ant-design/icons';\nimport {getInvertColor, type IDateRangeValue} from '@leav/utils';\nimport {Switch, Tag, Tooltip, Typography} from 'antd';\nimport isEmpty from 'lodash/isEmpty';\nimport React from 'react';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {AttributeFormat} from '_ui/_gqlTypes';\nimport {stringifyDateRangeValue} from '_ui/_utils';\nimport {type ISimpleCellProps} from '../types';\nimport {getValuesToDisplayInCell} from '../utils';\nimport {AggregationColor} from 'antd/es/color-picker/color';\n\nconst RichTextDisplay = React.lazy(() => import('./ElementsToDisplay/RichTextDisplay'));\n\nconst alignmentByFormat: Record<AttributeFormat, 'left' | 'right' | 'center'> = {\n [AttributeFormat.text]: 'left',\n [AttributeFormat.numeric]: 'right',\n [AttributeFormat.boolean]: 'center',\n [AttributeFormat.date]: 'left',\n [AttributeFormat.date_range]: 'left',\n [AttributeFormat.extended]: 'left',\n [AttributeFormat.encrypted]: 'left',\n [AttributeFormat.color]: 'left',\n [AttributeFormat.rich_text]: 'center',\n};\n\nconst Wrapper = styled.div<{$format: AttributeFormat}>`\n padding: 5px;\n width: 100%;\n text-align: ${props => alignmentByFormat[props.$format]};\n`;\n\nfunction StandardCell({cellData, values}: ISimpleCellProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n const _getValueByFormat = (cellValue: any): string => {\n switch (cellData.format) {\n case AttributeFormat.date_range:\n const rangeValue = cellValue as IDateRangeValue;\n return stringifyDateRangeValue(rangeValue, t);\n default:\n return cellValue;\n }\n };\n\n const formattedValuesToDisplay = getValuesToDisplayInCell(values)\n .map(valueData => _getValueByFormat(valueData?.value))\n .join(', ');\n\n const _getTagStyle = (hexColor: string) => ({color: getInvertColor(hexColor)});\n\n const _getElementToDisplay = () => {\n switch (cellData.format) {\n case AttributeFormat.boolean:\n return (\n <Switch\n disabled\n checked={values[0]?.value}\n checkedChildren={<CheckOutlined />}\n unCheckedChildren={<CloseOutlined />}\n />\n );\n case AttributeFormat.color:\n if (!isEmpty(values)) {\n return (\n <>\n {values.map((colorData, index) => {\n const color = new AggregationColor(colorData.raw_value);\n const hexColor = color.toHexString();\n\n return (\n <Tag key={index} bordered={true} color={hexColor} style={_getTagStyle(hexColor)}>\n {colorData.value}\n </Tag>\n );\n })}\n </>\n );\n } else {\n return formattedValuesToDisplay;\n }\n case AttributeFormat.rich_text:\n if (isEmpty(formattedValuesToDisplay)) {\n return formattedValuesToDisplay;\n } else {\n return <RichTextDisplay displayedValue={formattedValuesToDisplay} />;\n }\n\n default:\n return formattedValuesToDisplay;\n }\n };\n\n return (\n <Wrapper $format={cellData.format}>\n {cellData.format === AttributeFormat.extended ? (\n <Tooltip overlay={formattedValuesToDisplay}>\n <FileTextOutlined size={256} style={{fontSize: '2em'}} />\n </Tooltip>\n ) : (\n <Typography.Paragraph\n ellipsis={{\n rows: 1,\n tooltip: formattedValuesToDisplay,\n }}\n style={{margin: 0}}\n >\n {_getElementToDisplay()}\n </Typography.Paragraph>\n )}\n </Wrapper>\n );\n}\n\nexport default StandardCell;\n"]}
@@ -1,2 +0,0 @@
1
- import StandardCell from './StandardCell';
2
- export default StandardCell;
@@ -1,6 +0,0 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import StandardCell from './StandardCell';
5
- export default StandardCell;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,eAAe,YAAY,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport StandardCell from './StandardCell';\n\nexport default StandardCell;\n"]}
@@ -1,2 +0,0 @@
1
- import Cell from './Cell';
2
- export default Cell;
@@ -1,6 +0,0 @@
1
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
2
- // This file is released under LGPL V3
3
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
4
- import Cell from './Cell';
5
- export default Cell;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,eAAe,IAAI,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 Cell from './Cell';\n\nexport default Cell;\n"]}
@@ -1,12 +0,0 @@
1
- import { type RecordFormElementsValueLinkValue, type RecordFormElementsValueStandardValue, type RecordFormElementsValueTreeValue } from '../../../../hooks/useGetRecordForm';
2
- import { type LinkCellValue, type LinkCellValues, type SimpleCellValue, type SimpleCellValues, type TreeCellValue, type TreeCellValues } from './types';
3
- export declare const TypeGuards: {
4
- isSimpleCellValues: (values: SimpleCellValues | LinkCellValues | TreeCellValues) => values is SimpleCellValues;
5
- isLinkCellValue: (value: SimpleCellValue | LinkCellValue | TreeCellValue) => value is LinkCellValue;
6
- isLinkCellValues: (values: SimpleCellValues | LinkCellValues | TreeCellValues) => values is LinkCellValues;
7
- isTreeCellValue: (value: SimpleCellValue | LinkCellValue | TreeCellValue) => value is TreeCellValue;
8
- isTreeCellValues: (values: SimpleCellValues | LinkCellValues | TreeCellValues) => values is TreeCellValues;
9
- isRecordFormElementsValueStandardValue: (value: RecordFormElementsValueStandardValue | RecordFormElementsValueLinkValue | RecordFormElementsValueTreeValue) => value is RecordFormElementsValueStandardValue;
10
- isRecordFormElementsValuesLinkValue: (value: RecordFormElementsValueStandardValue | RecordFormElementsValueLinkValue | RecordFormElementsValueTreeValue) => value is RecordFormElementsValueLinkValue;
11
- isRecordFormElementsValuesTreeValue: (value: RecordFormElementsValueStandardValue | RecordFormElementsValueLinkValue | RecordFormElementsValueTreeValue) => value is RecordFormElementsValueTreeValue;
12
- };
@@ -1,11 +0,0 @@
1
- export const TypeGuards = {
2
- isSimpleCellValues: (values) => values.length > 0 && 'value' in values[0],
3
- isLinkCellValue: (value) => 'linkValue' in value,
4
- isLinkCellValues: (values) => values.length > 0 && TypeGuards.isLinkCellValue(values[0]),
5
- isTreeCellValue: (value) => 'treeValue' in value,
6
- isTreeCellValues: (values) => values.length > 0 && TypeGuards.isTreeCellValue(values[0]),
7
- isRecordFormElementsValueStandardValue: (value) => value && 'value' in value,
8
- isRecordFormElementsValuesLinkValue: (value) => value && 'linkValue' in value,
9
- isRecordFormElementsValuesTreeValue: (value) => value && 'treeValue' in value,
10
- };
11
- //# sourceMappingURL=typeGuards.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typeGuards.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,kBAAkB,EAAE,CAAC,MAA0D,EAA8B,EAAE,CAC3G,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC;IAC7C,eAAe,EAAE,CAAC,KAAsD,EAA0B,EAAE,CAChG,WAAW,IAAI,KAAK;IACxB,gBAAgB,EAAE,CAAC,MAA0D,EAA4B,EAAE,CACvG,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC9D,eAAe,EAAE,CAAC,KAAsD,EAA0B,EAAE,CAChG,WAAW,IAAI,KAAK;IACxB,gBAAgB,EAAE,CAAC,MAA0D,EAA4B,EAAE,CACvG,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC9D,sCAAsC,EAAE,CACpC,KAGsC,EACO,EAAE,CAAC,KAAK,IAAI,OAAO,IAAI,KAAK;IAC7E,mCAAmC,EAAE,CACjC,KAGsC,EACG,EAAE,CAAC,KAAK,IAAI,WAAW,IAAI,KAAK;IAC7E,mCAAmC,EAAE,CACjC,KAGsC,EACG,EAAE,CAAC,KAAK,IAAI,WAAW,IAAI,KAAK;CAChF,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {\n type RecordFormElementsValueLinkValue,\n type RecordFormElementsValueStandardValue,\n type RecordFormElementsValueTreeValue,\n} from '_ui/hooks/useGetRecordForm';\nimport {\n type LinkCellValue,\n type LinkCellValues,\n type SimpleCellValue,\n type SimpleCellValues,\n type TreeCellValue,\n type TreeCellValues,\n} from './types';\n\nexport const TypeGuards = {\n isSimpleCellValues: (values: SimpleCellValues | LinkCellValues | TreeCellValues): values is SimpleCellValues =>\n values.length > 0 && 'value' in values[0],\n isLinkCellValue: (value: SimpleCellValue | LinkCellValue | TreeCellValue): value is LinkCellValue =>\n 'linkValue' in value,\n isLinkCellValues: (values: SimpleCellValues | LinkCellValues | TreeCellValues): values is LinkCellValues =>\n values.length > 0 && TypeGuards.isLinkCellValue(values[0]),\n isTreeCellValue: (value: SimpleCellValue | LinkCellValue | TreeCellValue): value is TreeCellValue =>\n 'treeValue' in value,\n isTreeCellValues: (values: SimpleCellValues | LinkCellValues | TreeCellValues): values is TreeCellValues =>\n values.length > 0 && TypeGuards.isTreeCellValue(values[0]),\n isRecordFormElementsValueStandardValue: (\n value:\n | RecordFormElementsValueStandardValue\n | RecordFormElementsValueLinkValue\n | RecordFormElementsValueTreeValue,\n ): value is RecordFormElementsValueStandardValue => value && 'value' in value,\n isRecordFormElementsValuesLinkValue: (\n value:\n | RecordFormElementsValueStandardValue\n | RecordFormElementsValueLinkValue\n | RecordFormElementsValueTreeValue,\n ): value is RecordFormElementsValueLinkValue => value && 'linkValue' in value,\n isRecordFormElementsValuesTreeValue: (\n value:\n | RecordFormElementsValueStandardValue\n | RecordFormElementsValueLinkValue\n | RecordFormElementsValueTreeValue,\n ): value is RecordFormElementsValueTreeValue => value && 'treeValue' in value,\n};\n"]}
@@ -1,12 +0,0 @@
1
- import { type ValueDetailsLinkValueFragment, type ValueDetailsTreeValueFragment, type ValueDetailsValueFragment } from '../../../../_gqlTypes';
2
- import { type ITableCell } from '../../../../types';
3
- export type SimpleCellValue = ValueDetailsValueFragment;
4
- export type SimpleCellValues = SimpleCellValue[];
5
- export type LinkCellValue = ValueDetailsLinkValueFragment;
6
- export type LinkCellValues = LinkCellValue[];
7
- export type TreeCellValue = ValueDetailsTreeValueFragment;
8
- export type TreeCellValues = TreeCellValue[];
9
- export interface ISimpleCellProps {
10
- cellData: ITableCell;
11
- values: SimpleCellValues;
12
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/types.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {\n type ValueDetailsLinkValueFragment,\n type ValueDetailsTreeValueFragment,\n type ValueDetailsValueFragment,\n} from '_ui/_gqlTypes';\nimport {type ITableCell} from '_ui/types';\n\nexport type SimpleCellValue = ValueDetailsValueFragment;\nexport type SimpleCellValues = SimpleCellValue[];\n\nexport type LinkCellValue = ValueDetailsLinkValueFragment;\nexport type LinkCellValues = LinkCellValue[];\n\nexport type TreeCellValue = ValueDetailsTreeValueFragment;\nexport type TreeCellValues = TreeCellValue[];\n\nexport interface ISimpleCellProps {\n cellData: ITableCell;\n values: SimpleCellValues;\n}\n"]}
@@ -1,2 +0,0 @@
1
- import { type LinkCellValues, type SimpleCellValues, type TreeCellValues } from './types';
2
- export declare const getValuesToDisplayInCell: (values: SimpleCellValues | LinkCellValues | TreeCellValues) => SimpleCellValues | LinkCellValues | TreeCellValues;