@leav/ui 1.9.0 → 1.10.0-088d807d

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 (636) hide show
  1. package/dist/_gqlTypes/index.d.ts +305 -121
  2. package/dist/_gqlTypes/index.js +243 -102
  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.d.ts +0 -1
  9. package/dist/_utils/index.js +3 -7
  10. package/dist/_utils/index.js.map +1 -1
  11. package/dist/_utils/typeguards.d.ts +5 -0
  12. package/dist/_utils/typeguards.js +6 -0
  13. package/dist/_utils/typeguards.js.map +1 -1
  14. package/dist/components/Explorer/Explorer.d.ts +2 -1
  15. package/dist/components/Explorer/Explorer.js +31 -13
  16. package/dist/components/Explorer/Explorer.js.map +1 -1
  17. package/dist/components/Explorer/ExplorerToolbar.js +2 -1
  18. package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
  19. package/dist/components/Explorer/_queries/useExplorerCountData.d.ts +16 -0
  20. package/dist/components/Explorer/_queries/useExplorerCountData.js +25 -0
  21. package/dist/components/Explorer/_queries/useExplorerCountData.js.map +1 -0
  22. package/dist/components/Explorer/_queries/useExplorerData.js +18 -20
  23. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  24. package/dist/components/Explorer/actions-mass/ResultsCount.d.ts +10 -0
  25. package/dist/components/Explorer/actions-mass/ResultsCount.js +8 -0
  26. package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -0
  27. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js +1 -1
  28. package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
  29. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +9 -2
  30. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +18 -4
  31. package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +1 -1
  32. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.d.ts +10 -0
  33. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js +69 -0
  34. package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js.map +1 -0
  35. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.d.ts +18 -0
  36. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js +57 -0
  37. package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js.map +1 -0
  38. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.d.ts +19 -0
  39. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js +94 -0
  40. package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js.map +1 -0
  41. package/dist/components/Explorer/actions-mass/useMassActions.d.ts +5 -3
  42. package/dist/components/Explorer/actions-mass/useMassActions.js +19 -13
  43. package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
  44. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +3 -1
  45. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +5 -1
  46. package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
  47. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +6 -1
  48. package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -1
  49. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +3 -0
  50. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +5 -5
  51. package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
  52. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +1 -1
  53. package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
  54. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +2 -2
  55. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  56. package/dist/components/Explorer/useViewSettingsReducer.js +11 -8
  57. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  58. package/dist/components/Filters/_queries/treeFiltersDataQuery.d.ts +6 -0
  59. package/dist/components/Filters/_queries/treeFiltersDataQuery.js +54 -0
  60. package/dist/components/Filters/_queries/treeFiltersDataQuery.js.map +1 -0
  61. package/dist/components/Filters/context/useGetTreeFilters.js +24 -40
  62. package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
  63. package/dist/components/Filters/filter-items/CommonFilterItem.js +8 -6
  64. package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
  65. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js +6 -1
  66. package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
  67. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js +11 -19
  68. package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -1
  69. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js +27 -18
  70. package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
  71. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +1 -2
  72. package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -1
  73. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.d.ts +6 -0
  74. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js +54 -0
  75. package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js.map +1 -0
  76. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +22 -41
  77. package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
  78. package/dist/components/Notifications/InitNotificationsSubscription.d.ts +4 -2
  79. package/dist/components/Notifications/InitNotificationsSubscription.js.map +1 -1
  80. package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +2 -0
  81. package/dist/components/RecordEdition/EditRecord/EditRecord.js +3 -27
  82. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  83. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +2 -2
  84. package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -1
  85. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +5 -19
  86. package/dist/components/RecordEdition/EditRecordContent/_types.js +0 -5
  87. package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
  88. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -3
  89. package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
  90. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.d.ts +0 -3
  91. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js.map +1 -1
  92. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +28 -17
  93. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  94. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +1 -0
  95. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +30 -18
  96. package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
  97. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.d.ts +2 -0
  98. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +11 -0
  99. package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +1 -0
  100. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.d.ts +2 -0
  101. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +35 -0
  102. package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +1 -0
  103. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +1 -2
  104. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +7 -9
  105. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  106. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +2 -33
  107. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -1
  108. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +11 -0
  109. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -1
  110. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +1 -0
  111. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +4 -20
  112. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  113. package/dist/components/RecordEdition/_types.d.ts +1 -1
  114. package/dist/components/RecordEdition/_types.js.map +1 -1
  115. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +7 -6
  116. package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
  117. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +1 -1
  118. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +6 -2
  119. package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
  120. package/dist/components/RecordHistory/RecordHistory.d.ts +1 -0
  121. package/dist/components/RecordHistory/RecordHistory.js +3 -3
  122. package/dist/components/RecordHistory/RecordHistory.js.map +1 -1
  123. package/dist/components/RecordHistory/RecordHistoryGoUpButton.d.ts +1 -0
  124. package/dist/components/RecordHistory/RecordHistoryGoUpButton.js +3 -3
  125. package/dist/components/RecordHistory/RecordHistoryGoUpButton.js.map +1 -1
  126. package/dist/components/RecordHistory/RecordHistoryLogEntry.js +7 -5
  127. package/dist/components/RecordHistory/RecordHistoryLogEntry.js.map +1 -1
  128. package/dist/components/RecordHistory/_queries/recordHistoryQuery.js +38 -14
  129. package/dist/components/RecordHistory/_queries/recordHistoryQuery.js.map +1 -1
  130. package/dist/components/RecordHistory/_types.d.ts +2 -2
  131. package/dist/components/RecordHistory/_types.js.map +1 -1
  132. package/dist/components/SearchModal/SearchModal.js +28 -18
  133. package/dist/components/SearchModal/SearchModal.js.map +1 -1
  134. package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +0 -2
  135. package/dist/components/SelectTreeNode/SelectTreeNode.js +2 -2
  136. package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
  137. package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +0 -2
  138. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +60 -114
  139. package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
  140. package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +0 -1
  141. package/dist/components/SelectTreeNode/TreeNodeTitle.js +3 -7
  142. package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
  143. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.d.ts +6 -0
  144. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js +56 -0
  145. package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js.map +1 -0
  146. package/dist/components/SelectTreeNode/_types.d.ts +0 -1
  147. package/dist/components/SelectTreeNode/_types.js.map +1 -1
  148. package/dist/components/index.d.ts +0 -3
  149. package/dist/components/index.js +0 -3
  150. package/dist/components/index.js.map +1 -1
  151. package/dist/hooks/useGetRecordForm/useGetRecordForm.js +24 -22
  152. package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
  153. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +9 -6
  154. package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
  155. package/dist/hooks/useIFrameMessenger/schema.d.ts +14 -2
  156. package/dist/hooks/useIFrameMessenger/schema.js +7 -1
  157. package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
  158. package/dist/hooks/useIFrameMessenger/types.d.ts +5 -0
  159. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  160. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.d.ts +1 -1
  161. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +14 -6
  162. package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
  163. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.d.ts +2 -1
  164. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +32 -4
  165. package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
  166. package/dist/locales/en/shared.json +17 -35
  167. package/dist/locales/fr/shared.json +17 -35
  168. package/package.json +11 -20
  169. package/dist/__mocks__/common/mockSearchContextProvider.d.ts +0 -6
  170. package/dist/__mocks__/common/mockSearchContextProvider.js +0 -10
  171. package/dist/__mocks__/common/mockSearchContextProvider.js.map +0 -1
  172. package/dist/components/AttributesSelectionList/Attribute/Attribute.d.ts +0 -3
  173. package/dist/components/AttributesSelectionList/Attribute/Attribute.js +0 -50
  174. package/dist/components/AttributesSelectionList/Attribute/Attribute.js.map +0 -1
  175. package/dist/components/AttributesSelectionList/Attribute/index.d.ts +0 -2
  176. package/dist/components/AttributesSelectionList/Attribute/index.js +0 -6
  177. package/dist/components/AttributesSelectionList/Attribute/index.js.map +0 -1
  178. package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +0 -10
  179. package/dist/components/AttributesSelectionList/AttributesSelectionList.js +0 -72
  180. package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +0 -1
  181. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +0 -7
  182. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +0 -39
  183. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js.map +0 -1
  184. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.d.ts +0 -2
  185. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js +0 -6
  186. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js.map +0 -1
  187. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.d.ts +0 -2
  188. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +0 -63
  189. package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js.map +0 -1
  190. package/dist/components/AttributesSelectionList/SelectedAttributesList/index.d.ts +0 -2
  191. package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js +0 -6
  192. package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js.map +0 -1
  193. package/dist/components/AttributesSelectionList/_types.d.ts +0 -8
  194. package/dist/components/AttributesSelectionList/_types.js +0 -2
  195. package/dist/components/AttributesSelectionList/_types.js.map +0 -1
  196. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +0 -3
  197. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +0 -9
  198. package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js.map +0 -1
  199. package/dist/components/AttributesSelectionList/index.d.ts +0 -2
  200. package/dist/components/AttributesSelectionList/index.js +0 -6
  201. package/dist/components/AttributesSelectionList/index.js.map +0 -1
  202. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.d.ts +0 -11
  203. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +0 -10
  204. package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js.map +0 -1
  205. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.d.ts +0 -33
  206. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +0 -77
  207. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js.map +0 -1
  208. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.d.ts +0 -10
  209. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +0 -8
  210. package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js.map +0 -1
  211. package/dist/components/AttributesSelectionList/sharedComponents.d.ts +0 -809
  212. package/dist/components/AttributesSelectionList/sharedComponents.js +0 -16
  213. package/dist/components/AttributesSelectionList/sharedComponents.js.map +0 -1
  214. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +0 -10
  215. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +0 -39
  216. package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +0 -1
  217. package/dist/components/DeactivateRecordsModal/index.d.ts +0 -1
  218. package/dist/components/DeactivateRecordsModal/index.js +0 -5
  219. package/dist/components/DeactivateRecordsModal/index.js.map +0 -1
  220. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.d.ts +0 -13
  221. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +0 -50
  222. package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +0 -1
  223. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.d.ts +0 -2
  224. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js +0 -6
  225. package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js.map +0 -1
  226. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.d.ts +0 -2
  227. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +0 -80
  228. package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +0 -1
  229. package/dist/components/LibraryItemsList/DisplayOptions/index.d.ts +0 -2
  230. package/dist/components/LibraryItemsList/DisplayOptions/index.js +0 -6
  231. package/dist/components/LibraryItemsList/DisplayOptions/index.js.map +0 -1
  232. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.d.ts +0 -2
  233. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js +0 -22
  234. package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js.map +0 -1
  235. package/dist/components/LibraryItemsList/DisplayTypeSelector/index.d.ts +0 -2
  236. package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js +0 -6
  237. package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js.map +0 -1
  238. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +0 -13
  239. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +0 -229
  240. package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +0 -1
  241. package/dist/components/LibraryItemsList/FiltersDropdown/index.d.ts +0 -2
  242. package/dist/components/LibraryItemsList/FiltersDropdown/index.js +0 -6
  243. package/dist/components/LibraryItemsList/FiltersDropdown/index.js.map +0 -1
  244. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.d.ts +0 -11
  245. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +0 -328
  246. package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +0 -1
  247. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +0 -7
  248. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +0 -90
  249. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +0 -1
  250. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.d.ts +0 -2
  251. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js +0 -6
  252. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js.map +0 -1
  253. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.d.ts +0 -3
  254. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js +0 -13
  255. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js.map +0 -1
  256. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.d.ts +0 -2
  257. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js +0 -6
  258. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js.map +0 -1
  259. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.d.ts +0 -3
  260. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js +0 -26
  261. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js.map +0 -1
  262. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.d.ts +0 -2
  263. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js +0 -6
  264. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js.map +0 -1
  265. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.d.ts +0 -3
  266. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js +0 -22
  267. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js.map +0 -1
  268. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.d.ts +0 -2
  269. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js +0 -6
  270. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js.map +0 -1
  271. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.d.ts +0 -3
  272. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js +0 -35
  273. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js.map +0 -1
  274. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.d.ts +0 -2
  275. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js +0 -6
  276. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js.map +0 -1
  277. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.d.ts +0 -3
  278. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js +0 -34
  279. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js.map +0 -1
  280. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.d.ts +0 -2
  281. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js +0 -6
  282. package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js.map +0 -1
  283. package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.d.ts +0 -2
  284. package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js +0 -16
  285. package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js.map +0 -1
  286. package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.d.ts +0 -2
  287. package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js +0 -6
  288. package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js.map +0 -1
  289. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.d.ts +0 -8
  290. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js +0 -11
  291. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js.map +0 -1
  292. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.d.ts +0 -2
  293. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js +0 -6
  294. package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js.map +0 -1
  295. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +0 -6
  296. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +0 -38
  297. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js.map +0 -1
  298. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.d.ts +0 -2
  299. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js +0 -6
  300. package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js.map +0 -1
  301. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.d.ts +0 -14
  302. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +0 -147
  303. package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +0 -1
  304. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.d.ts +0 -2
  305. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +0 -121
  306. package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js.map +0 -1
  307. package/dist/components/LibraryItemsList/FiltersPanel/index.d.ts +0 -2
  308. package/dist/components/LibraryItemsList/FiltersPanel/index.js +0 -6
  309. package/dist/components/LibraryItemsList/FiltersPanel/index.js.map +0 -1
  310. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.d.ts +0 -3
  311. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +0 -17
  312. package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js.map +0 -1
  313. package/dist/components/LibraryItemsList/IconViewType/IconViewType.d.ts +0 -8
  314. package/dist/components/LibraryItemsList/IconViewType/IconViewType.js +0 -18
  315. package/dist/components/LibraryItemsList/IconViewType/IconViewType.js.map +0 -1
  316. package/dist/components/LibraryItemsList/IconViewType/index.d.ts +0 -2
  317. package/dist/components/LibraryItemsList/IconViewType/index.js +0 -6
  318. package/dist/components/LibraryItemsList/IconViewType/index.js.map +0 -1
  319. package/dist/components/LibraryItemsList/LibraryItemsList.d.ts +0 -14
  320. package/dist/components/LibraryItemsList/LibraryItemsList.js +0 -18
  321. package/dist/components/LibraryItemsList/LibraryItemsList.js.map +0 -1
  322. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.d.ts +0 -16
  323. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +0 -202
  324. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +0 -1
  325. package/dist/components/LibraryItemsList/LibraryItemsListContent/index.d.ts +0 -2
  326. package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js +0 -6
  327. package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js.map +0 -1
  328. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.d.ts +0 -6
  329. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +0 -32
  330. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js.map +0 -1
  331. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.d.ts +0 -2
  332. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js +0 -6
  333. package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js.map +0 -1
  334. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.d.ts +0 -2
  335. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js +0 -21
  336. package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js.map +0 -1
  337. package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.d.ts +0 -2
  338. package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js +0 -6
  339. package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js.map +0 -1
  340. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.d.ts +0 -8
  341. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +0 -56
  342. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js.map +0 -1
  343. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.d.ts +0 -2
  344. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js +0 -6
  345. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js.map +0 -1
  346. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.d.ts +0 -7
  347. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +0 -54
  348. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js.map +0 -1
  349. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.d.ts +0 -2
  350. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js +0 -6
  351. package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js.map +0 -1
  352. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.d.ts +0 -8
  353. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +0 -66
  354. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js.map +0 -1
  355. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.d.ts +0 -2
  356. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js +0 -6
  357. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js.map +0 -1
  358. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.d.ts +0 -8
  359. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +0 -59
  360. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js.map +0 -1
  361. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +0 -9
  362. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +0 -56
  363. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js.map +0 -1
  364. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.d.ts +0 -2
  365. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js +0 -6
  366. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js.map +0 -1
  367. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.d.ts +0 -5
  368. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js +0 -34
  369. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js.map +0 -1
  370. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.d.ts +0 -2
  371. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js +0 -6
  372. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js.map +0 -1
  373. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.d.ts +0 -5
  374. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js +0 -23
  375. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js.map +0 -1
  376. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.d.ts +0 -3
  377. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +0 -80
  378. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +0 -1
  379. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.d.ts +0 -2
  380. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js +0 -6
  381. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js.map +0 -1
  382. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.d.ts +0 -2
  383. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js +0 -6
  384. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js.map +0 -1
  385. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.d.ts +0 -12
  386. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +0 -11
  387. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +0 -1
  388. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.d.ts +0 -12
  389. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js +0 -2
  390. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js.map +0 -1
  391. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.d.ts +0 -2
  392. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js +0 -40
  393. package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js.map +0 -1
  394. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.d.ts +0 -6
  395. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +0 -81
  396. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js.map +0 -1
  397. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.d.ts +0 -2
  398. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js +0 -6
  399. package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js.map +0 -1
  400. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.d.ts +0 -9
  401. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +0 -142
  402. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +0 -1
  403. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.d.ts +0 -2
  404. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js +0 -6
  405. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js.map +0 -1
  406. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.d.ts +0 -2
  407. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +0 -232
  408. package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js.map +0 -1
  409. package/dist/components/LibraryItemsList/LibraryItemsListTable/index.d.ts +0 -2
  410. package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js +0 -6
  411. package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js.map +0 -1
  412. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.d.ts +0 -9
  413. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +0 -27
  414. package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js.map +0 -1
  415. package/dist/components/LibraryItemsList/MenuItemList/index.d.ts +0 -2
  416. package/dist/components/LibraryItemsList/MenuItemList/index.js +0 -6
  417. package/dist/components/LibraryItemsList/MenuItemList/index.js.map +0 -1
  418. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.d.ts +0 -2
  419. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +0 -62
  420. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +0 -1
  421. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.d.ts +0 -2
  422. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js +0 -6
  423. package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js.map +0 -1
  424. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.d.ts +0 -5
  425. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +0 -139
  426. package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js.map +0 -1
  427. package/dist/components/LibraryItemsList/MenuItemListSelected/index.d.ts +0 -2
  428. package/dist/components/LibraryItemsList/MenuItemListSelected/index.js +0 -6
  429. package/dist/components/LibraryItemsList/MenuItemListSelected/index.js.map +0 -1
  430. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.d.ts +0 -2
  431. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +0 -58
  432. package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js.map +0 -1
  433. package/dist/components/LibraryItemsList/MenuSelection/index.d.ts +0 -2
  434. package/dist/components/LibraryItemsList/MenuSelection/index.js +0 -6
  435. package/dist/components/LibraryItemsList/MenuSelection/index.js.map +0 -1
  436. package/dist/components/LibraryItemsList/MenuView/MenuView.d.ts +0 -6
  437. package/dist/components/LibraryItemsList/MenuView/MenuView.js +0 -162
  438. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +0 -1
  439. package/dist/components/LibraryItemsList/MenuView/index.d.ts +0 -2
  440. package/dist/components/LibraryItemsList/MenuView/index.js +0 -6
  441. package/dist/components/LibraryItemsList/MenuView/index.js.map +0 -1
  442. package/dist/components/LibraryItemsList/SearchItems/SearchItems.d.ts +0 -2
  443. package/dist/components/LibraryItemsList/SearchItems/SearchItems.js +0 -21
  444. package/dist/components/LibraryItemsList/SearchItems/SearchItems.js.map +0 -1
  445. package/dist/components/LibraryItemsList/SearchItems/index.d.ts +0 -2
  446. package/dist/components/LibraryItemsList/SearchItems/index.js +0 -6
  447. package/dist/components/LibraryItemsList/SearchItems/index.js.map +0 -1
  448. package/dist/components/LibraryItemsList/Sidebar/Sidebar.d.ts +0 -2
  449. package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +0 -58
  450. package/dist/components/LibraryItemsList/Sidebar/Sidebar.js.map +0 -1
  451. package/dist/components/LibraryItemsList/Sidebar/index.d.ts +0 -2
  452. package/dist/components/LibraryItemsList/Sidebar/index.js +0 -6
  453. package/dist/components/LibraryItemsList/Sidebar/index.js.map +0 -1
  454. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.d.ts +0 -6
  455. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +0 -199
  456. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js.map +0 -1
  457. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.d.ts +0 -2
  458. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js +0 -6
  459. package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js.map +0 -1
  460. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.d.ts +0 -2
  461. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +0 -50
  462. package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js.map +0 -1
  463. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.d.ts +0 -3
  464. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +0 -11
  465. package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js.map +0 -1
  466. package/dist/components/LibraryItemsList/TileDisplay/index.d.ts +0 -2
  467. package/dist/components/LibraryItemsList/TileDisplay/index.js +0 -6
  468. package/dist/components/LibraryItemsList/TileDisplay/index.js.map +0 -1
  469. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.d.ts +0 -2
  470. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +0 -66
  471. package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js.map +0 -1
  472. package/dist/components/LibraryItemsList/VersionsPanel/index.d.ts +0 -2
  473. package/dist/components/LibraryItemsList/VersionsPanel/index.js +0 -6
  474. package/dist/components/LibraryItemsList/VersionsPanel/index.js.map +0 -1
  475. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.d.ts +0 -9
  476. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +0 -85
  477. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +0 -1
  478. package/dist/components/LibraryItemsList/ViewPanel/EditView/index.d.ts +0 -2
  479. package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js +0 -6
  480. package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js.map +0 -1
  481. package/dist/components/LibraryItemsList/ViewPanel/View/View.d.ts +0 -7
  482. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +0 -152
  483. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +0 -1
  484. package/dist/components/LibraryItemsList/ViewPanel/View/index.d.ts +0 -2
  485. package/dist/components/LibraryItemsList/ViewPanel/View/index.js +0 -6
  486. package/dist/components/LibraryItemsList/ViewPanel/View/index.js.map +0 -1
  487. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.d.ts +0 -2
  488. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +0 -209
  489. package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js.map +0 -1
  490. package/dist/components/LibraryItemsList/ViewPanel/index.d.ts +0 -2
  491. package/dist/components/LibraryItemsList/ViewPanel/index.js +0 -6
  492. package/dist/components/LibraryItemsList/ViewPanel/index.js.map +0 -1
  493. package/dist/components/LibraryItemsList/constants.d.ts +0 -12
  494. package/dist/components/LibraryItemsList/constants.js +0 -19
  495. package/dist/components/LibraryItemsList/constants.js.map +0 -1
  496. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.d.ts +0 -3
  497. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js +0 -21
  498. package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js.map +0 -1
  499. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +0 -3
  500. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +0 -18
  501. package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js.map +0 -1
  502. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.d.ts +0 -4
  503. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +0 -64
  504. package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js.map +0 -1
  505. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.d.ts +0 -5
  506. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +0 -40
  507. package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js.map +0 -1
  508. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.d.ts +0 -6
  509. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +0 -10
  510. package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +0 -1
  511. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.d.ts +0 -2
  512. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js +0 -13
  513. package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js.map +0 -1
  514. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.d.ts +0 -2
  515. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js +0 -18
  516. package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js.map +0 -1
  517. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.d.ts +0 -8
  518. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +0 -99
  519. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +0 -1
  520. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +0 -82
  521. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js +0 -2
  522. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js.map +0 -1
  523. package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.d.ts +0 -2
  524. package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js +0 -6
  525. package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js.map +0 -1
  526. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.d.ts +0 -7
  527. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js +0 -7
  528. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js.map +0 -1
  529. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +0 -121
  530. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +0 -228
  531. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +0 -1
  532. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +0 -5
  533. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js +0 -8
  534. package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js.map +0 -1
  535. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.d.ts +0 -7
  536. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +0 -40
  537. package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +0 -1
  538. package/dist/components/LibraryItemsList/index.d.ts +0 -1
  539. package/dist/components/LibraryItemsList/index.js +0 -5
  540. package/dist/components/LibraryItemsList/index.js.map +0 -1
  541. package/dist/components/LibraryItemsList/manageItems.d.ts +0 -11
  542. package/dist/components/LibraryItemsList/manageItems.js +0 -98
  543. package/dist/components/LibraryItemsList/manageItems.js.map +0 -1
  544. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +0 -7
  545. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +0 -38
  546. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +0 -1
  547. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.d.ts +0 -2
  548. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js +0 -6
  549. package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js.map +0 -1
  550. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.d.ts +0 -12
  551. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +0 -29
  552. package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js.map +0 -1
  553. package/dist/components/LibraryItemsList/shared/sharedUtils.d.ts +0 -4
  554. package/dist/components/LibraryItemsList/shared/sharedUtils.js +0 -9
  555. package/dist/components/LibraryItemsList/shared/sharedUtils.js.map +0 -1
  556. package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.d.ts +0 -3
  557. package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.js +0 -2
  558. package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.js.map +0 -1
  559. package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.d.ts +0 -1
  560. package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.js +0 -5
  561. package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.js.map +0 -1
  562. package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.d.ts +0 -1
  563. package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.js +0 -5
  564. package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.js.map +0 -1
  565. package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.d.ts +0 -7
  566. package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js +0 -20
  567. package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js.map +0 -1
  568. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.d.ts +0 -11
  569. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +0 -35
  570. package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +0 -1
  571. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.d.ts +0 -2
  572. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.js +0 -6
  573. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.js.map +0 -1
  574. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.d.ts +0 -52
  575. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +0 -144
  576. package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +0 -1
  577. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.d.ts +0 -9
  578. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +0 -19
  579. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js.map +0 -1
  580. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.d.ts +0 -2
  581. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.js +0 -6
  582. package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.js.map +0 -1
  583. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.d.ts +0 -5
  584. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js +0 -21
  585. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js.map +0 -1
  586. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.d.ts +0 -2
  587. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.js +0 -6
  588. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.js.map +0 -1
  589. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.d.ts +0 -6
  590. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js +0 -14
  591. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js.map +0 -1
  592. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.d.ts +0 -2
  593. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.js +0 -6
  594. package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.js.map +0 -1
  595. package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.d.ts +0 -9
  596. package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js +0 -28
  597. package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js.map +0 -1
  598. package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.d.ts +0 -2
  599. package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.js +0 -6
  600. package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.js.map +0 -1
  601. package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.d.ts +0 -6
  602. package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.js +0 -25
  603. package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.js.map +0 -1
  604. package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.d.ts +0 -2
  605. package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.js +0 -6
  606. package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.js.map +0 -1
  607. package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.d.ts +0 -7
  608. package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.js +0 -33
  609. package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.js.map +0 -1
  610. package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.d.ts +0 -2
  611. package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.js +0 -6
  612. package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.js.map +0 -1
  613. package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.d.ts +0 -2
  614. package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js +0 -13
  615. package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js.map +0 -1
  616. package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.d.ts +0 -2
  617. package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.js +0 -6
  618. package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.js.map +0 -1
  619. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.d.ts +0 -10
  620. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +0 -24
  621. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +0 -1
  622. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.d.ts +0 -2
  623. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.js +0 -6
  624. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.js.map +0 -1
  625. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +0 -13
  626. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +0 -41
  627. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js.map +0 -1
  628. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.d.ts +0 -2
  629. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.js +0 -6
  630. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.js.map +0 -1
  631. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.d.ts +0 -8
  632. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js +0 -34
  633. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js.map +0 -1
  634. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.d.ts +0 -2
  635. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.js +0 -6
  636. package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.js.map +0 -1
@@ -1,144 +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 getActiveFieldValues from '../../../../../components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues';
5
- import isCurrentVersion from '../../../../../components/RecordEdition/EditRecordContent/helpers/isCurrentVersion';
6
- import { VersionFieldScope, } from '../../../../../components/RecordEdition/EditRecordContent/_types';
7
- export var LinkFieldReducerActionsType;
8
- (function (LinkFieldReducerActionsType) {
9
- LinkFieldReducerActionsType["ADD_VALUES"] = "ADD_VALUES";
10
- LinkFieldReducerActionsType["DELETE_VALUE"] = "DELETE_VALUE";
11
- LinkFieldReducerActionsType["DELETE_ALL_VALUES"] = "DELETE_ALL_VALUES";
12
- LinkFieldReducerActionsType["SET_ERROR_MESSAGE"] = "SET_ERROR_MESSAGE";
13
- LinkFieldReducerActionsType["CLEAR_ERROR_MESSAGE"] = "CLEAR_ERROR_MESSAGE";
14
- LinkFieldReducerActionsType["SET_IS_VALUES_ADD_VISIBLE"] = "SET_IS_VALUES_ADD_VISIBLE";
15
- LinkFieldReducerActionsType["CHANGE_ACTIVE_SCOPE"] = "CHANGE_ACTIVE_SCOPE";
16
- LinkFieldReducerActionsType["REFRESH_VALUES"] = "REFRESH_VALUES";
17
- })(LinkFieldReducerActionsType || (LinkFieldReducerActionsType = {}));
18
- export const virginState = {
19
- record: null,
20
- formElement: null,
21
- attribute: null,
22
- isReadOnly: false,
23
- activeScope: VersionFieldScope.CURRENT,
24
- values: {
25
- [VersionFieldScope.CURRENT]: {
26
- version: null,
27
- values: [],
28
- },
29
- [VersionFieldScope.INHERITED]: null,
30
- },
31
- errorMessage: '',
32
- isValuesAddVisible: false,
33
- };
34
- /**
35
- * For given list of values, determine if there is inherited values, inherited/current version and default active scope
36
- */
37
- const _computeScopeAndValues = (params) => {
38
- const { attribute, values, formVersion } = params;
39
- const currentVersion = attribute?.versions_conf?.versionable && attribute?.versions_conf?.profile
40
- ? attribute.versions_conf.profile.trees.reduce((relevantVersion, tree) => {
41
- if (formVersion?.[tree.id]) {
42
- relevantVersion[tree.id] = formVersion[tree.id];
43
- }
44
- return relevantVersion;
45
- }, {})
46
- : null;
47
- const hasInheritedValues = attribute?.versions_conf?.versionable
48
- ? !isCurrentVersion(currentVersion, values?.[0]?.version ?? currentVersion)
49
- : false; // We assume that all values have the same version
50
- const inheritedVersion = hasInheritedValues ? values?.[0]?.version : null;
51
- return {
52
- activeScope: hasInheritedValues ? VersionFieldScope.INHERITED : VersionFieldScope.CURRENT,
53
- values: {
54
- [VersionFieldScope.CURRENT]: {
55
- version: currentVersion ?? null,
56
- values: hasInheritedValues ? [] : values,
57
- },
58
- [VersionFieldScope.INHERITED]: hasInheritedValues ? { version: inheritedVersion ?? null, values } : null,
59
- },
60
- };
61
- };
62
- export const computeInitialState = (params) => {
63
- const { element, record, isRecordReadOnly, formVersion } = params;
64
- const attribute = element.attribute;
65
- const fieldValues = element.values ?? [];
66
- const initialState = {
67
- ...virginState,
68
- attribute,
69
- record,
70
- formElement: element,
71
- isReadOnly: attribute?.readonly || isRecordReadOnly || !attribute?.permissions?.edit_value,
72
- ..._computeScopeAndValues({ attribute, values: fieldValues, formVersion }),
73
- };
74
- return initialState;
75
- };
76
- const linkFieldReducer = (state, action) => {
77
- switch (action.type) {
78
- case LinkFieldReducerActionsType.ADD_VALUES: {
79
- const newValues = [...state.values[state.activeScope].values, ...action.values];
80
- return {
81
- ...state,
82
- values: {
83
- ...state.values,
84
- [state.activeScope]: {
85
- ...state.values[state.activeScope],
86
- values: newValues,
87
- },
88
- },
89
- };
90
- }
91
- case LinkFieldReducerActionsType.DELETE_VALUE: {
92
- const activeValues = getActiveFieldValues(state);
93
- const newValues = activeValues.filter(value => value.id_value !== action.idValue);
94
- return {
95
- ...state,
96
- values: {
97
- ...state.values,
98
- [state.activeScope]: {
99
- ...state.values[state.activeScope],
100
- values: newValues,
101
- },
102
- },
103
- };
104
- }
105
- case LinkFieldReducerActionsType.DELETE_ALL_VALUES: {
106
- return {
107
- ...state,
108
- values: {
109
- ...state.values,
110
- [state.activeScope]: {
111
- ...state.values[state.activeScope],
112
- values: [],
113
- },
114
- },
115
- };
116
- }
117
- case LinkFieldReducerActionsType.SET_ERROR_MESSAGE: {
118
- return { ...state, errorMessage: action.errorMessage };
119
- }
120
- case LinkFieldReducerActionsType.CLEAR_ERROR_MESSAGE: {
121
- return { ...state, errorMessage: '' };
122
- }
123
- case LinkFieldReducerActionsType.SET_IS_VALUES_ADD_VISIBLE: {
124
- return { ...state, isValuesAddVisible: action.isValuesAddVisible };
125
- }
126
- case LinkFieldReducerActionsType.CHANGE_ACTIVE_SCOPE: {
127
- return { ...state, activeScope: action.scope };
128
- }
129
- case LinkFieldReducerActionsType.REFRESH_VALUES: {
130
- return {
131
- ...state,
132
- ..._computeScopeAndValues({
133
- attribute: state.formElement.attribute,
134
- values: action.values,
135
- formVersion: state.values[VersionFieldScope.CURRENT].version,
136
- }),
137
- };
138
- }
139
- default:
140
- return state;
141
- }
142
- };
143
- export default linkFieldReducer;
144
- //# sourceMappingURL=linkFieldReducer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linkFieldReducer.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,oBAAoB,MAAM,6EAA6E,CAAC;AAC/G,OAAO,gBAAgB,MAAM,yEAAyE,CAAC;AACvG,OAAO,EACH,iBAAiB,GAGpB,MAAM,uDAAuD,CAAC;AAgB/D,MAAM,CAAN,IAAY,2BASX;AATD,WAAY,2BAA2B;IACnC,wDAAyB,CAAA;IACzB,4DAA6B,CAAA;IAC7B,sEAAuC,CAAA;IACvC,sEAAuC,CAAA;IACvC,0EAA2C,CAAA;IAC3C,sFAAuD,CAAA;IACvD,0EAA2C,CAAA;IAC3C,gEAAiC,CAAA;AACrC,CAAC,EATW,2BAA2B,KAA3B,2BAA2B,QAStC;AAwBD,MAAM,CAAC,MAAM,WAAW,GAAuC;IAC3D,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,IAAI;IACjB,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,KAAK;IACjB,WAAW,EAAE,iBAAiB,CAAC,OAAO;IACtC,MAAM,EAAE;QACJ,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE;YACzB,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,EAAE;SACb;QACD,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,IAAI;KACtC;IACD,YAAY,EAAE,EAAE;IAChB,kBAAkB,EAAE,KAAK;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,sBAAsB,GAAG,CAAuC,MAIrE,EAA+D,EAAE;IAC9D,MAAM,EAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAC,GAAG,MAAM,CAAC;IAEhD,MAAM,cAAc,GAChB,SAAS,EAAE,aAAa,EAAE,WAAW,IAAI,SAAS,EAAE,aAAa,EAAE,OAAO;QACtE,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,eAAe,EAAE,IAAI,EAAE,EAAE;YACnE,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;gBACzB,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACpD,CAAC;YAED,OAAO,eAAe,CAAC;QAC3B,CAAC,EAAE,EAAE,CAAC;QACR,CAAC,CAAC,IAAI,CAAC;IAEf,MAAM,kBAAkB,GAAG,SAAS,EAAE,aAAa,EAAE,WAAW;QAC5D,CAAC,CAAC,CAAC,gBAAgB,CAAC,cAAc,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,IAAI,cAAc,CAAC;QAC3E,CAAC,CAAC,KAAK,CAAC,CAAC,kDAAkD;IAC/D,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;IAE1E,OAAO;QACH,WAAW,EAAE,kBAAkB,CAAC,CAAC,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,OAAO;QACzF,MAAM,EAAE;YACJ,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE;gBACzB,OAAO,EAAE,cAAc,IAAI,IAAI;gBAC/B,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM;aAC3C;YACD,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAAC,OAAO,EAAE,gBAAgB,IAAI,IAAI,EAAE,MAAM,EAAC,CAAC,CAAC,CAAC,IAAI;SACzG;KACJ,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAuC,MAKzE,EAA+B,EAAE;IAC9B,MAAM,EAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAC,GAAG,MAAM,CAAC;IAEhE,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAEpC,MAAM,WAAW,GAAI,OAAO,CAAC,MAAuB,IAAI,EAAE,CAAC;IAE3D,MAAM,YAAY,GAAgC;QAC9C,GAAG,WAAW;QACd,SAAS;QACT,MAAM;QACN,WAAW,EAAE,OAAO;QACpB,UAAU,EAAE,SAAS,EAAE,QAAQ,IAAI,gBAAgB,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU;QAC1F,GAAG,sBAAsB,CAAa,EAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAC,CAAC;KACvF,CAAC;IAEF,OAAO,YAAY,CAAC;AACxB,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CACrB,KAAkC,EAClC,MAA2C,EAChB,EAAE;IAC7B,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,2BAA2B,CAAC,UAAU,CAAC,CAAC,CAAC;YAC1C,MAAM,SAAS,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;YAChF,OAAO;gBACH,GAAG,KAAK;gBACR,MAAM,EAAE;oBACJ,GAAG,KAAK,CAAC,MAAM;oBACf,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE;wBACjB,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC;wBAClC,MAAM,EAAE,SAAS;qBACpB;iBACJ;aACJ,CAAC;QACN,CAAC;QACD,KAAK,2BAA2B,CAAC,YAAY,CAAC,CAAC,CAAC;YAC5C,MAAM,YAAY,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;YACjD,MAAM,SAAS,GAAG,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAC,OAAO,CAAC,CAAC;YAElF,OAAO;gBACH,GAAG,KAAK;gBACR,MAAM,EAAE;oBACJ,GAAG,KAAK,CAAC,MAAM;oBACf,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE;wBACjB,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC;wBAClC,MAAM,EAAE,SAAS;qBACpB;iBACJ;aACJ,CAAC;QACN,CAAC;QACD,KAAK,2BAA2B,CAAC,iBAAiB,CAAC,CAAC,CAAC;YACjD,OAAO;gBACH,GAAG,KAAK;gBACR,MAAM,EAAE;oBACJ,GAAG,KAAK,CAAC,MAAM;oBACf,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE;wBACjB,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC;wBAClC,MAAM,EAAE,EAAE;qBACb;iBACJ;aACJ,CAAC;QACN,CAAC;QACD,KAAK,2BAA2B,CAAC,iBAAiB,CAAC,CAAC,CAAC;YACjD,OAAO,EAAC,GAAG,KAAK,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAC,CAAC;QACzD,CAAC;QACD,KAAK,2BAA2B,CAAC,mBAAmB,CAAC,CAAC,CAAC;YACnD,OAAO,EAAC,GAAG,KAAK,EAAE,YAAY,EAAE,EAAE,EAAC,CAAC;QACxC,CAAC;QACD,KAAK,2BAA2B,CAAC,yBAAyB,CAAC,CAAC,CAAC;YACzD,OAAO,EAAC,GAAG,KAAK,EAAE,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,EAAC,CAAC;QACrE,CAAC;QACD,KAAK,2BAA2B,CAAC,mBAAmB,CAAC,CAAC,CAAC;YACnD,OAAO,EAAC,GAAG,KAAK,EAAE,WAAW,EAAE,MAAM,CAAC,KAAK,EAAC,CAAC;QACjD,CAAC;QACD,KAAK,2BAA2B,CAAC,cAAc,CAAC,CAAC,CAAC;YAC9C,OAAO;gBACH,GAAG,KAAK;gBACR,GAAG,sBAAsB,CAAC;oBACtB,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,SAAS;oBACtC,MAAM,EAAE,MAAM,CAAC,MAAM;oBACrB,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,OAAO;iBAC/D,CAAC;aACL,CAAC;QACN,CAAC;QACD;YACI,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport getActiveFieldValues from '_ui/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues';\nimport isCurrentVersion from '_ui/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion';\nimport {\n VersionFieldScope,\n type FormElement,\n type ICommonFieldsReducerState,\n} from '_ui/components/RecordEdition/EditRecordContent/_types';\nimport {\n type RecordFormElementsValueLinkValue,\n type RecordFormElementsValueTreeValue,\n} from '_ui/hooks/useGetRecordForm/useGetRecordForm';\nimport {type IRecordIdentityWhoAmI} from '_ui/types/records';\nimport {type IValueVersion} from '_ui/types/values';\nimport {type RecordFormAttributeFragment} from '_ui/_gqlTypes';\n\ntype AllowedValuesType = RecordFormElementsValueLinkValue | RecordFormElementsValueTreeValue;\n\nexport interface ILinkFieldState<ValuesType> extends ICommonFieldsReducerState<ValuesType[]> {\n errorMessage: string | string[];\n isValuesAddVisible: boolean;\n}\n\nexport enum LinkFieldReducerActionsType {\n ADD_VALUES = 'ADD_VALUES',\n DELETE_VALUE = 'DELETE_VALUE',\n DELETE_ALL_VALUES = 'DELETE_ALL_VALUES',\n SET_ERROR_MESSAGE = 'SET_ERROR_MESSAGE',\n CLEAR_ERROR_MESSAGE = 'CLEAR_ERROR_MESSAGE',\n SET_IS_VALUES_ADD_VISIBLE = 'SET_IS_VALUES_ADD_VISIBLE',\n CHANGE_ACTIVE_SCOPE = 'CHANGE_ACTIVE_SCOPE',\n REFRESH_VALUES = 'REFRESH_VALUES',\n}\n\nexport type LinkFieldReducerActions<ValuesType extends AllowedValuesType> =\n | {\n type: LinkFieldReducerActionsType.ADD_VALUES;\n values: ValuesType[];\n }\n | {\n type: LinkFieldReducerActionsType.DELETE_VALUE;\n idValue: string;\n }\n | {\n type: LinkFieldReducerActionsType.DELETE_ALL_VALUES;\n }\n | {type: LinkFieldReducerActionsType.SET_ERROR_MESSAGE; errorMessage: string | string[]}\n | {type: LinkFieldReducerActionsType.CLEAR_ERROR_MESSAGE}\n | {type: LinkFieldReducerActionsType.SET_IS_VALUES_ADD_VISIBLE; isValuesAddVisible: boolean}\n | {type: LinkFieldReducerActionsType.CHANGE_ACTIVE_SCOPE; scope: VersionFieldScope}\n | {\n type: LinkFieldReducerActionsType.REFRESH_VALUES;\n values: ValuesType[];\n formVersion: IValueVersion;\n };\n\nexport const virginState: ILinkFieldState<AllowedValuesType> = {\n record: null,\n formElement: null,\n attribute: null,\n isReadOnly: false,\n activeScope: VersionFieldScope.CURRENT,\n values: {\n [VersionFieldScope.CURRENT]: {\n version: null,\n values: [],\n },\n [VersionFieldScope.INHERITED]: null,\n },\n errorMessage: '',\n isValuesAddVisible: false,\n};\n\n/**\n * For given list of values, determine if there is inherited values, inherited/current version and default active scope\n */\nconst _computeScopeAndValues = <ValuesType extends AllowedValuesType>(params: {\n attribute: RecordFormAttributeFragment;\n values: ValuesType[];\n formVersion: IValueVersion;\n}): Pick<ILinkFieldState<ValuesType>, 'values' | 'activeScope'> => {\n const {attribute, values, formVersion} = params;\n\n const currentVersion: IValueVersion =\n attribute?.versions_conf?.versionable && attribute?.versions_conf?.profile\n ? attribute.versions_conf.profile.trees.reduce((relevantVersion, tree) => {\n if (formVersion?.[tree.id]) {\n relevantVersion[tree.id] = formVersion[tree.id];\n }\n\n return relevantVersion;\n }, {})\n : null;\n\n const hasInheritedValues = attribute?.versions_conf?.versionable\n ? !isCurrentVersion(currentVersion, values?.[0]?.version ?? currentVersion)\n : false; // We assume that all values have the same version\n const inheritedVersion = hasInheritedValues ? values?.[0]?.version : null;\n\n return {\n activeScope: hasInheritedValues ? VersionFieldScope.INHERITED : VersionFieldScope.CURRENT,\n values: {\n [VersionFieldScope.CURRENT]: {\n version: currentVersion ?? null,\n values: hasInheritedValues ? [] : values,\n },\n [VersionFieldScope.INHERITED]: hasInheritedValues ? {version: inheritedVersion ?? null, values} : null,\n },\n };\n};\n\nexport const computeInitialState = <ValuesType extends AllowedValuesType>(params: {\n element: FormElement<unknown>;\n record: IRecordIdentityWhoAmI;\n isRecordReadOnly: boolean;\n formVersion: IValueVersion;\n}): ILinkFieldState<ValuesType> => {\n const {element, record, isRecordReadOnly, formVersion} = params;\n\n const attribute = element.attribute;\n\n const fieldValues = (element.values as ValuesType[]) ?? [];\n\n const initialState: ILinkFieldState<ValuesType> = {\n ...virginState,\n attribute,\n record,\n formElement: element,\n isReadOnly: attribute?.readonly || isRecordReadOnly || !attribute?.permissions?.edit_value,\n ..._computeScopeAndValues<ValuesType>({attribute, values: fieldValues, formVersion}),\n };\n\n return initialState;\n};\n\nconst linkFieldReducer = <ValuesType extends AllowedValuesType>(\n state: ILinkFieldState<ValuesType>,\n action: LinkFieldReducerActions<ValuesType>,\n): ILinkFieldState<ValuesType> => {\n switch (action.type) {\n case LinkFieldReducerActionsType.ADD_VALUES: {\n const newValues = [...state.values[state.activeScope].values, ...action.values];\n return {\n ...state,\n values: {\n ...state.values,\n [state.activeScope]: {\n ...state.values[state.activeScope],\n values: newValues,\n },\n },\n };\n }\n case LinkFieldReducerActionsType.DELETE_VALUE: {\n const activeValues = getActiveFieldValues(state);\n const newValues = activeValues.filter(value => value.id_value !== action.idValue);\n\n return {\n ...state,\n values: {\n ...state.values,\n [state.activeScope]: {\n ...state.values[state.activeScope],\n values: newValues,\n },\n },\n };\n }\n case LinkFieldReducerActionsType.DELETE_ALL_VALUES: {\n return {\n ...state,\n values: {\n ...state.values,\n [state.activeScope]: {\n ...state.values[state.activeScope],\n values: [],\n },\n },\n };\n }\n case LinkFieldReducerActionsType.SET_ERROR_MESSAGE: {\n return {...state, errorMessage: action.errorMessage};\n }\n case LinkFieldReducerActionsType.CLEAR_ERROR_MESSAGE: {\n return {...state, errorMessage: ''};\n }\n case LinkFieldReducerActionsType.SET_IS_VALUES_ADD_VISIBLE: {\n return {...state, isValuesAddVisible: action.isValuesAddVisible};\n }\n case LinkFieldReducerActionsType.CHANGE_ACTIVE_SCOPE: {\n return {...state, activeScope: action.scope};\n }\n case LinkFieldReducerActionsType.REFRESH_VALUES: {\n return {\n ...state,\n ..._computeScopeAndValues({\n attribute: state.formElement.attribute,\n values: action.values,\n formVersion: state.values[VersionFieldScope.CURRENT].version,\n }),\n };\n }\n default:\n return state;\n }\n};\n\nexport default linkFieldReducer;\n"]}
@@ -1,9 +0,0 @@
1
- import { type ButtonProps } from 'antd';
2
- import { VersionFieldScope } from '../../_types';
3
- interface IAddValueBtnProps extends ButtonProps {
4
- bordered?: boolean;
5
- linkField?: boolean;
6
- activeScope: VersionFieldScope;
7
- }
8
- declare function AddValueBtn({ bordered, linkField, activeScope, ...props }: IAddValueBtnProps): JSX.Element;
9
- export default AddValueBtn;
@@ -1,19 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { PlusOutlined } from '@ant-design/icons';
6
- import { themeVars } from '../../../../../antdTheme';
7
- import { BasicButton } from '../../../../../components';
8
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
9
- import { VersionFieldScope } from '../../_types';
10
- function AddValueBtn({ bordered = false, linkField = false, activeScope, ...props }) {
11
- const { t } = useSharedTranslation();
12
- return (_jsxs(BasicButton, { bordered: bordered, ...props, style: {
13
- color: activeScope === VersionFieldScope.INHERITED
14
- ? themeVars.inheritedValuesVersionColor
15
- : themeVars.defaultTextColor,
16
- }, children: [_jsx(PlusOutlined, {}), linkField ? t('record_edition.add_value_link') : t('record_edition.add_value')] }));
17
- }
18
- export default AddValueBtn;
19
- //# sourceMappingURL=AddValueBtn.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AddValueBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAQ/C,SAAS,WAAW,CAAC,EAAC,QAAQ,GAAG,KAAK,EAAE,SAAS,GAAG,KAAK,EAAE,WAAW,EAAE,GAAG,KAAK,EAAoB;IAChG,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,OAAO,CACH,MAAC,WAAW,IACR,QAAQ,EAAE,QAAQ,KACd,KAAK,EACT,KAAK,EAAE;YACH,KAAK,EACD,WAAW,KAAK,iBAAiB,CAAC,SAAS;gBACvC,CAAC,CAAC,SAAS,CAAC,2BAA2B;gBACvC,CAAC,CAAC,SAAS,CAAC,gBAAgB;SACvC,aAED,KAAC,YAAY,KAAG,EACf,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,0BAA0B,CAAC,IACrE,CACjB,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {PlusOutlined} from '@ant-design/icons';\nimport {type ButtonProps} from 'antd';\nimport {themeVars} from '_ui/antdTheme';\nimport {BasicButton} from '_ui/components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {VersionFieldScope} from '../../_types';\n\ninterface IAddValueBtnProps extends ButtonProps {\n bordered?: boolean;\n linkField?: boolean;\n activeScope: VersionFieldScope;\n}\n\nfunction AddValueBtn({bordered = false, linkField = false, activeScope, ...props}: IAddValueBtnProps): JSX.Element {\n const {t} = useSharedTranslation();\n return (\n <BasicButton\n bordered={bordered}\n {...props}\n style={{\n color:\n activeScope === VersionFieldScope.INHERITED\n ? themeVars.inheritedValuesVersionColor\n : themeVars.defaultTextColor,\n }}\n >\n <PlusOutlined />\n {linkField ? t('record_edition.add_value_link') : t('record_edition.add_value')}\n </BasicButton>\n );\n}\n\nexport default AddValueBtn;\n"]}
@@ -1,2 +0,0 @@
1
- import AddValueBtn from './AddValueBtn';
2
- export default AddValueBtn;
@@ -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 AddValueBtn from './AddValueBtn';
5
- export default AddValueBtn;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,eAAe,WAAW,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport AddValueBtn from './AddValueBtn';\n\nexport default AddValueBtn;\n"]}
@@ -1,5 +0,0 @@
1
- interface IDeleteAllValuesBtnProps {
2
- onDelete: () => Promise<void>;
3
- }
4
- declare function DeleteAllValuesBtn({ onDelete }: IDeleteAllValuesBtnProps): JSX.Element;
5
- export default DeleteAllValuesBtn;
@@ -1,21 +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 { DeleteOutlined } from '@ant-design/icons';
6
- import { Popconfirm, Tooltip } from 'antd';
7
- import { useState } from 'react';
8
- import { BasicButton } from '../../../../../components';
9
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
10
- function DeleteAllValuesBtn({ onDelete }) {
11
- const { t } = useSharedTranslation();
12
- const [isLoading, setIsLoading] = useState(false);
13
- const _handleDelete = async () => {
14
- setIsLoading(true);
15
- await onDelete();
16
- setIsLoading(false);
17
- };
18
- return (_jsx(Popconfirm, { placement: "leftTop", title: t('record_edition.delete_all_values_confirm'), onConfirm: _handleDelete, okText: t('global.submit'), okButtonProps: { 'aria-label': 'delete-confirm-button' }, cancelText: t('global.cancel'), children: _jsx(_Fragment, { children: _jsx(Tooltip, { title: t('record_edition.delete_all_values'), children: _jsx(BasicButton, { "aria-label": "delete-all-values", icon: _jsx(DeleteOutlined, {}), shape: "circle", loading: isLoading }) }) }) }));
19
- }
20
- export default DeleteAllValuesBtn;
21
- //# sourceMappingURL=DeleteAllValuesBtn.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeleteAllValuesBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,UAAU,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAMpE,SAAS,kBAAkB,CAAC,EAAC,QAAQ,EAA2B;IAC5D,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElD,MAAM,aAAa,GAAG,KAAK,IAAI,EAAE;QAC7B,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,MAAM,QAAQ,EAAE,CAAC;QACjB,YAAY,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,UAAU,IACP,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,CAAC,CAAC,0CAA0C,CAAC,EACpD,SAAS,EAAE,aAAa,EACxB,MAAM,EAAE,CAAC,CAAC,eAAe,CAAC,EAC1B,aAAa,EAAE,EAAC,YAAY,EAAE,uBAAuB,EAAC,EACtD,UAAU,EAAE,CAAC,CAAC,eAAe,CAAC,YAG9B,4BACI,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,CAAC,kCAAkC,CAAC,YACjD,KAAC,WAAW,kBACG,mBAAmB,EAC9B,IAAI,EAAE,KAAC,cAAc,KAAG,EACxB,KAAK,EAAC,QAAQ,EACd,OAAO,EAAE,SAAS,GACpB,GACI,GACX,GACM,CAChB,CAAC;AACN,CAAC;AAED,eAAe,kBAAkB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {DeleteOutlined} from '@ant-design/icons';\nimport {Popconfirm, Tooltip} from 'antd';\nimport {useState} from 'react';\nimport {BasicButton} from '_ui/components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\ninterface IDeleteAllValuesBtnProps {\n onDelete: () => Promise<void>;\n}\n\nfunction DeleteAllValuesBtn({onDelete}: IDeleteAllValuesBtnProps): JSX.Element {\n const {t} = useSharedTranslation();\n const [isLoading, setIsLoading] = useState(false);\n\n const _handleDelete = async () => {\n setIsLoading(true);\n await onDelete();\n setIsLoading(false);\n };\n\n return (\n <Popconfirm\n placement=\"leftTop\"\n title={t('record_edition.delete_all_values_confirm')}\n onConfirm={_handleDelete}\n okText={t('global.submit')}\n okButtonProps={{'aria-label': 'delete-confirm-button'}}\n cancelText={t('global.cancel')}\n >\n {/* Do not remove the <></>. Workaround for issue https://github.com/ant-design/ant-design/issues/41206 */}\n <>\n <Tooltip title={t('record_edition.delete_all_values')}>\n <BasicButton\n aria-label=\"delete-all-values\"\n icon={<DeleteOutlined />}\n shape=\"circle\"\n loading={isLoading}\n />\n </Tooltip>\n </>\n </Popconfirm>\n );\n}\n\nexport default DeleteAllValuesBtn;\n"]}
@@ -1,2 +0,0 @@
1
- import DeleteAllValuesBtn from './DeleteAllValuesBtn';
2
- export default DeleteAllValuesBtn;
@@ -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 DeleteAllValuesBtn from './DeleteAllValuesBtn';
5
- export default DeleteAllValuesBtn;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD,eAAe,kBAAkB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport DeleteAllValuesBtn from './DeleteAllValuesBtn';\n\nexport default DeleteAllValuesBtn;\n"]}
@@ -1,6 +0,0 @@
1
- import { type ButtonProps } from 'antd';
2
- interface IDeleteValueBtnProps extends ButtonProps {
3
- onDelete: () => void;
4
- }
5
- declare function DeleteValueBtn({ onDelete, ...buttonProps }: IDeleteValueBtnProps): JSX.Element;
6
- export default DeleteValueBtn;
@@ -1,14 +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 { DeleteOutlined } from '@ant-design/icons';
6
- import { Button, Popconfirm } from 'antd';
7
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
8
- function DeleteValueBtn({ onDelete, ...buttonProps }) {
9
- const { t } = useSharedTranslation();
10
- const _handleDelete = () => onDelete();
11
- return (_jsx(Popconfirm, { placement: "leftTop", title: t('record_edition.delete_value_confirm'), onConfirm: _handleDelete, okText: t('global.submit'), okButtonProps: { 'aria-label': 'delete-confirm-button' }, cancelText: t('global.cancel'), children: _jsx(Button, { shape: "circle", ...buttonProps, icon: _jsx(DeleteOutlined, {}), style: { background: '#FFF' }, danger: true, "aria-label": "delete-value", onClick: e => e.stopPropagation(), className: "delete-value-button" }) }));
12
- }
13
- export default DeleteValueBtn;
14
- //# sourceMappingURL=DeleteValueBtn.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeleteValueBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAoB,UAAU,EAAC,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAMpE,SAAS,cAAc,CAAC,EAAC,QAAQ,EAAE,GAAG,WAAW,EAAuB;IACpE,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC;IAEvC,OAAO,CACH,KAAC,UAAU,IACP,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,CAAC,CAAC,qCAAqC,CAAC,EAC/C,SAAS,EAAE,aAAa,EACxB,MAAM,EAAE,CAAC,CAAC,eAAe,CAAC,EAC1B,aAAa,EAAE,EAAC,YAAY,EAAE,uBAAuB,EAAC,EACtD,UAAU,EAAE,CAAC,CAAC,eAAe,CAAC,YAE9B,KAAC,MAAM,IACH,KAAK,EAAC,QAAQ,KACV,WAAW,EACf,IAAI,EAAE,KAAC,cAAc,KAAG,EACxB,KAAK,EAAE,EAAC,UAAU,EAAE,MAAM,EAAC,EAC3B,MAAM,sBACK,cAAc,EACzB,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,EACjC,SAAS,EAAC,qBAAqB,GACjC,GACO,CAChB,CAAC;AACN,CAAC;AAED,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 {DeleteOutlined} from '@ant-design/icons';\nimport {Button, type ButtonProps, Popconfirm} from 'antd';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\ninterface IDeleteValueBtnProps extends ButtonProps {\n onDelete: () => void;\n}\n\nfunction DeleteValueBtn({onDelete, ...buttonProps}: IDeleteValueBtnProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n const _handleDelete = () => onDelete();\n\n return (\n <Popconfirm\n placement=\"leftTop\"\n title={t('record_edition.delete_value_confirm')}\n onConfirm={_handleDelete}\n okText={t('global.submit')}\n okButtonProps={{'aria-label': 'delete-confirm-button'}}\n cancelText={t('global.cancel')}\n >\n <Button\n shape=\"circle\"\n {...buttonProps}\n icon={<DeleteOutlined />}\n style={{background: '#FFF'}}\n danger\n aria-label=\"delete-value\"\n onClick={e => e.stopPropagation()}\n className=\"delete-value-button\"\n />\n </Popconfirm>\n );\n}\n\nexport default DeleteValueBtn;\n"]}
@@ -1,2 +0,0 @@
1
- import DeleteValueBtn from './DeleteValueBtn';
2
- export default DeleteValueBtn;
@@ -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 DeleteValueBtn from './DeleteValueBtn';
5
- export default DeleteValueBtn;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/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 DeleteValueBtn from './DeleteValueBtn';\n\nexport default DeleteValueBtn;\n"]}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { type CSSObject } from 'styled-components';
3
- interface IFieldFooterProps {
4
- children?: React.ReactNode;
5
- bordered?: boolean;
6
- style?: CSSObject;
7
- }
8
- declare function FieldFooter({ children, bordered, style }: IFieldFooterProps): JSX.Element;
9
- export default FieldFooter;
@@ -1,28 +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 { theme } from 'antd';
6
- import styled from 'styled-components';
7
- import { themeVars } from '../../../../../antdTheme';
8
- const FooterWrapper = styled.div `
9
- display: flex;
10
- justify-content: space-between;
11
- align-items: center;
12
- flex-direction: row-reverse;
13
- padding: 0.25rem;
14
- background: ${themeVars.lightBg};
15
- border-radius: ${p => p.$themeToken.borderRadius}px;
16
- border-top-left-radius: 0;
17
- border-top-right-radius: 0;
18
-
19
- ${props => (props.$bordered ? `border: 1px solid ${themeVars.borderColor};` : '')}
20
-
21
- ${props => props.style}
22
- `;
23
- function FieldFooter({ children, bordered, style }) {
24
- const { token } = theme.useToken();
25
- return (_jsx(FooterWrapper, { style: style, "$bordered": bordered, "$themeToken": token, children: children }));
26
- }
27
- export default FieldFooter;
28
- //# sourceMappingURL=FieldFooter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FieldFooter.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAG3B,OAAO,MAAwB,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAQxC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAmE;;;;;;kBAMjF,SAAS,CAAC,OAAO;qBACd,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,YAAY;;;;MAI9C,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,qBAAqB,SAAS,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;;MAE/E,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK;CACzB,CAAC;AAEF,SAAS,WAAW,CAAC,EAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAoB;IAC/D,MAAM,EAAC,KAAK,EAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IAEjC,OAAO,CACH,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,eAAa,QAAQ,iBAAe,KAAK,YAC/D,QAAQ,GACG,CACnB,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {theme} from 'antd';\nimport {type GlobalToken} from 'antd/lib/theme/interface';\nimport React from 'react';\nimport styled, {type CSSObject} from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\n\ninterface IFieldFooterProps {\n children?: React.ReactNode;\n bordered?: boolean;\n style?: CSSObject;\n}\n\nconst FooterWrapper = styled.div<{style: CSSObject; $bordered?: boolean; $themeToken: GlobalToken}>`\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-direction: row-reverse;\n padding: 0.25rem;\n background: ${themeVars.lightBg};\n border-radius: ${p => p.$themeToken.borderRadius}px;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n\n ${props => (props.$bordered ? `border: 1px solid ${themeVars.borderColor};` : '')}\n\n ${props => props.style}\n`;\n\nfunction FieldFooter({children, bordered, style}: IFieldFooterProps): JSX.Element {\n const {token} = theme.useToken();\n\n return (\n <FooterWrapper style={style} $bordered={bordered} $themeToken={token}>\n {children}\n </FooterWrapper>\n );\n}\n\nexport default FieldFooter;\n"]}
@@ -1,2 +0,0 @@
1
- import FieldFooter from './FieldFooter';
2
- export default FieldFooter;
@@ -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 FieldFooter from './FieldFooter';
5
- export default FieldFooter;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,eAAe,WAAW,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport FieldFooter from './FieldFooter';\n\nexport default FieldFooter;\n"]}
@@ -1,6 +0,0 @@
1
- import { type IValueVersion } from '../../../../../types/values';
2
- interface IInheritedFieldLabelProps {
3
- version: IValueVersion;
4
- }
5
- declare function InheritedFieldLabel({ version }: IInheritedFieldLabelProps): JSX.Element;
6
- export default InheritedFieldLabel;
@@ -1,25 +0,0 @@
1
- import { jsxs as _jsxs } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- // Copyright LEAV Solutions 2017
6
- // This file is released under LGPL V3
7
- // License text available at https://www.gnu.org/licenses:lgpl-3.0.txt
8
- import styled from 'styled-components';
9
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
10
- import { getValueVersionLabel } from '../../../../../_utils';
11
- const Wrapper = styled.span `
12
- font-style: italic;
13
- font-size: 0.9em;
14
-
15
- ::before {
16
- content: ' - ';
17
- }
18
- `;
19
- function InheritedFieldLabel({ version }) {
20
- const { t } = useSharedTranslation();
21
- const versionLabel = getValueVersionLabel(version);
22
- return (_jsxs(Wrapper, { children: [t('values_version.inherited_from'), ": ", versionLabel] }));
23
- }
24
- export default InheritedFieldLabel;
25
- //# sourceMappingURL=InheritedFieldLabel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InheritedFieldLabel.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,oBAAoB,EAAC,MAAM,uBAAuB,CAAC;AAE3D,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAA;;;;;;;CAO1B,CAAC;AAMF,SAAS,mBAAmB,CAAC,EAAC,OAAO,EAA4B;IAC7D,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,YAAY,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAEnD,OAAO,CACH,MAAC,OAAO,eACH,CAAC,CAAC,+BAA+B,CAAC,QAAI,YAAY,IAC7C,CACb,CAAC;AACN,CAAC;AAED,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\n// Copyright LEAV Solutions 2017\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 {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type IValueVersion} from '_ui/types/values';\nimport {getValueVersionLabel} from '../../../../../_utils';\n\nconst Wrapper = styled.span`\n font-style: italic;\n font-size: 0.9em;\n\n ::before {\n content: ' - ';\n }\n`;\n\ninterface IInheritedFieldLabelProps {\n version: IValueVersion;\n}\n\nfunction InheritedFieldLabel({version}: IInheritedFieldLabelProps): JSX.Element {\n const {t} = useSharedTranslation();\n const versionLabel = getValueVersionLabel(version);\n\n return (\n <Wrapper>\n {t('values_version.inherited_from')}: {versionLabel}\n </Wrapper>\n );\n}\n\nexport default InheritedFieldLabel;\n"]}
@@ -1,2 +0,0 @@
1
- import InheritedFieldLabel from './InheritedFieldLabel';
2
- export default InheritedFieldLabel;
@@ -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 InheritedFieldLabel from './InheritedFieldLabel';
5
- export default InheritedFieldLabel;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAExD,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport InheritedFieldLabel from './InheritedFieldLabel';\n\nexport default InheritedFieldLabel;\n"]}
@@ -1,7 +0,0 @@
1
- interface INoValueProps {
2
- canAddValue: boolean;
3
- onAddValue: () => void;
4
- linkField?: boolean;
5
- }
6
- declare function NoValue({ canAddValue, onAddValue, linkField }: INoValueProps): JSX.Element;
7
- export default NoValue;
@@ -1,33 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { FileAddOutlined, FileOutlined } from '@ant-design/icons';
6
- import { Button } from 'antd';
7
- import styled from 'styled-components';
8
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
9
- const NoValueWrapper = styled.div `
10
- font-size: 1.1em;
11
-
12
- span {
13
- margin-left: 0.5em;
14
- }
15
- `;
16
- const AddButton = styled(Button) `
17
- && {
18
- border: none;
19
- width: 100%;
20
- color: rgba(0, 0, 0, 0.25);
21
- box-shadow: none;
22
- }
23
-
24
- &&:hover {
25
- border: none;
26
- }
27
- `;
28
- function NoValue({ canAddValue, onAddValue, linkField = false }) {
29
- const { t } = useSharedTranslation();
30
- return (_jsx(NoValueWrapper, { onClick: onAddValue, children: canAddValue ? (_jsxs(AddButton, { onClick: onAddValue, size: "small", children: [_jsx(FileAddOutlined, {}), _jsx("span", { children: linkField ? t('record_edition.add_value_link') : t('record_edition.add_value') })] })) : (_jsxs(_Fragment, { children: [_jsx(FileOutlined, {}), _jsx("span", { children: t('record_edition.no_value') })] })) }));
31
- }
32
- export default NoValue;
33
- //# sourceMappingURL=NoValue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NoValue.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAC,MAAM,EAAC,MAAM,MAAM,CAAC;AAC5B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAQpE,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAMhC,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;;;;;;;;;;CAW/B,CAAC;AAEF,SAAS,OAAO,CAAC,EAAC,WAAW,EAAE,UAAU,EAAE,SAAS,GAAG,KAAK,EAAgB;IACxE,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,OAAO,CACH,KAAC,cAAc,IAAC,OAAO,EAAE,UAAU,YAC9B,WAAW,CAAC,CAAC,CAAC,CACX,MAAC,SAAS,IAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAC,OAAO,aACxC,KAAC,eAAe,KAAG,EACnB,yBAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,0BAA0B,CAAC,GAAQ,IACrF,CACf,CAAC,CAAC,CAAC,CACA,8BACI,KAAC,YAAY,KAAG,EAChB,yBAAO,CAAC,CAAC,yBAAyB,CAAC,GAAQ,IAC5C,CACN,GACY,CACpB,CAAC;AACN,CAAC;AAED,eAAe,OAAO,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 {FileAddOutlined, FileOutlined} from '@ant-design/icons';\nimport {Button} from 'antd';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\ninterface INoValueProps {\n canAddValue: boolean;\n onAddValue: () => void;\n linkField?: boolean;\n}\n\nconst NoValueWrapper = styled.div`\n font-size: 1.1em;\n\n span {\n margin-left: 0.5em;\n }\n`;\n\nconst AddButton = styled(Button)`\n && {\n border: none;\n width: 100%;\n color: rgba(0, 0, 0, 0.25);\n box-shadow: none;\n }\n\n &&:hover {\n border: none;\n }\n`;\n\nfunction NoValue({canAddValue, onAddValue, linkField = false}: INoValueProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n return (\n <NoValueWrapper onClick={onAddValue}>\n {canAddValue ? (\n <AddButton onClick={onAddValue} size=\"small\">\n <FileAddOutlined />\n <span>{linkField ? t('record_edition.add_value_link') : t('record_edition.add_value')}</span>\n </AddButton>\n ) : (\n <>\n <FileOutlined />\n <span>{t('record_edition.no_value')}</span>\n </>\n )}\n </NoValueWrapper>\n );\n}\n\nexport default NoValue;\n"]}
@@ -1,2 +0,0 @@
1
- import NoValue from './NoValue';
2
- export default NoValue;
@@ -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 NoValue from './NoValue';
5
- export default NoValue;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/NoValue/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,eAAe,OAAO,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 NoValue from './NoValue';\n\nexport default NoValue;\n"]}
@@ -1,2 +0,0 @@
1
- declare function UpdatedFieldIcon(): JSX.Element;
2
- export default UpdatedFieldIcon;
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
- // This file is released under LGPL V3
4
- // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { ExclamationCircleOutlined } from '@ant-design/icons';
6
- import { Tooltip } from 'antd';
7
- import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
8
- function UpdatedFieldIcon() {
9
- const { t } = useSharedTranslation();
10
- return (_jsx(Tooltip, { title: t('record_edition.field_external_update'), children: _jsx(ExclamationCircleOutlined, { style: { marginLeft: '5px', fontSize: '0.9em' } }) }));
11
- }
12
- export default UpdatedFieldIcon;
13
- //# sourceMappingURL=UpdatedFieldIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UpdatedFieldIcon.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,yBAAyB,EAAC,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAC,OAAO,EAAC,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,SAAS,gBAAgB;IACrB,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,OAAO,CACH,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,CAAC,sCAAsC,CAAC,YACrD,KAAC,yBAAyB,IAAC,KAAK,EAAE,EAAC,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAC,GAAI,GACtE,CACb,CAAC;AACN,CAAC;AAED,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {ExclamationCircleOutlined} from '@ant-design/icons';\nimport {Tooltip} from 'antd';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\nfunction UpdatedFieldIcon(): JSX.Element {\n const {t} = useSharedTranslation();\n\n return (\n <Tooltip title={t('record_edition.field_external_update')}>\n <ExclamationCircleOutlined style={{marginLeft: '5px', fontSize: '0.9em'}} />\n </Tooltip>\n );\n}\n\nexport default UpdatedFieldIcon;\n"]}
@@ -1,2 +0,0 @@
1
- import UpdatedFieldIcon from './UpdatedFieldIcon';
2
- export default UpdatedFieldIcon;
@@ -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 UpdatedFieldIcon from './UpdatedFieldIcon';
5
- export default UpdatedFieldIcon;
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport UpdatedFieldIcon from './UpdatedFieldIcon';\n\nexport default UpdatedFieldIcon;\n"]}
@@ -1,10 +0,0 @@
1
- import { type ButtonProps } from 'antd';
2
- import { type RecordFormAttributeFragment } from '../../../../../_gqlTypes';
3
- import { type RecordProperty } from '../../../../../_queries/records/getRecordPropertiesQuery';
4
- interface IValueDetailsBtnProps extends Omit<ButtonProps, 'value'> {
5
- attribute: RecordFormAttributeFragment;
6
- value: RecordProperty;
7
- basic?: boolean;
8
- }
9
- declare function ValueDetailsBtn({ value, attribute, basic, ...buttonProps }: IValueDetailsBtnProps): JSX.Element;
10
- export default ValueDetailsBtn;