@leav/ui 0.3.6-b70e858 → 0.3.6-bcac760

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 (191) hide show
  1. package/dist/__mocks__/common/attribute.js +1 -0
  2. package/dist/__mocks__/common/attribute.js.map +1 -1
  3. package/dist/__mocks__/common/value.js +1 -0
  4. package/dist/__mocks__/common/value.js.map +1 -1
  5. package/dist/__mocks__/common/view.js +6 -4
  6. package/dist/__mocks__/common/view.js.map +1 -1
  7. package/dist/_gqlTypes/index.d.ts +302 -46
  8. package/dist/_gqlTypes/index.js +164 -45
  9. package/dist/_gqlTypes/index.js.map +1 -1
  10. package/dist/_queries/records/getRecordColumnsValues.d.ts +1 -1
  11. package/dist/_queries/records/recordFormAttributeFragment.js +1 -0
  12. package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
  13. package/dist/_queries/views/saveViewMutation.js +1 -1
  14. package/dist/_queries/views/viewDetailsFragment.js +12 -8
  15. package/dist/_queries/views/viewDetailsFragment.js.map +1 -1
  16. package/dist/_utils/index.js +4 -1
  17. package/dist/_utils/index.js.map +1 -1
  18. package/dist/antdTheme/index.d.ts +0 -3
  19. package/dist/antdTheme/index.js +3 -42
  20. package/dist/antdTheme/index.js.map +1 -1
  21. package/dist/components/Explorer/Explorer.d.ts +3 -3
  22. package/dist/components/Explorer/Explorer.js +25 -19
  23. package/dist/components/Explorer/Explorer.js.map +1 -1
  24. package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
  25. package/dist/components/Explorer/ExplorerTitle.js +28 -11
  26. package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
  27. package/dist/components/Explorer/_constants.d.ts +4 -0
  28. package/dist/components/Explorer/_constants.js +17 -0
  29. package/dist/components/Explorer/_constants.js.map +1 -0
  30. package/dist/components/Explorer/_queries/useExplorerData.d.ts +12 -6
  31. package/dist/components/Explorer/_queries/useExplorerData.js +95 -22
  32. package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
  33. package/dist/components/Explorer/_types.d.ts +26 -1
  34. package/dist/components/Explorer/{nullValuesConditions.d.ts → conditionsHelper.d.ts} +1 -0
  35. package/dist/components/Explorer/{nullValuesConditions.js → conditionsHelper.js} +3 -1
  36. package/dist/components/Explorer/conditionsHelper.js.map +1 -0
  37. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js +1 -1
  38. package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js.map +1 -1
  39. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +2 -1
  40. package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
  41. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +2 -2
  42. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +16 -31
  43. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
  44. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
  45. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
  46. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
  47. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +2 -2
  48. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +12 -36
  49. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -1
  50. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
  51. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
  52. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
  53. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
  54. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
  55. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
  56. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
  57. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
  58. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
  59. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +1 -1
  60. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +56 -8
  61. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
  62. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -1
  63. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +2 -2
  64. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +7 -32
  65. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
  66. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +2 -2
  67. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +7 -32
  68. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
  69. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +1 -0
  70. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +5 -15
  71. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
  72. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +45 -5
  73. package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
  74. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +20 -20
  75. package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
  76. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +12 -1
  77. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
  78. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +14 -7
  79. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +37 -32
  80. package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
  81. package/dist/components/Explorer/useCreateAction.d.ts +4 -2
  82. package/dist/components/Explorer/useCreateAction.js +35 -2
  83. package/dist/components/Explorer/useCreateAction.js.map +1 -1
  84. package/dist/components/Explorer/useEditAction.js +3 -3
  85. package/dist/components/Explorer/useEditAction.js.map +1 -1
  86. package/dist/components/Explorer/usePrimaryActions.js +14 -7
  87. package/dist/components/Explorer/usePrimaryActions.js.map +1 -1
  88. package/dist/components/Explorer/useRemoveAction.d.ts +12 -0
  89. package/dist/components/Explorer/useRemoveAction.js +90 -0
  90. package/dist/components/Explorer/useRemoveAction.js.map +1 -0
  91. package/dist/components/Explorer/useSearchInput.js +1 -1
  92. package/dist/components/Explorer/useSearchInput.js.map +1 -1
  93. package/dist/components/Explorer/useViewSettingsReducer.d.ts +4 -3
  94. package/dist/components/Explorer/useViewSettingsReducer.js +101 -35
  95. package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
  96. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +2 -2
  97. package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
  98. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
  99. package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
  100. package/dist/components/LibraryItemsList/MenuView/MenuView.js +2 -2
  101. package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
  102. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -2
  103. package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
  104. package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
  105. package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
  106. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +6 -4
  107. package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
  108. package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
  109. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
  110. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +2 -7
  111. package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
  112. package/dist/components/RecordEdition/EditRecord/EditRecord.js +5 -4
  113. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  114. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +3 -3
  115. package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
  116. package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +1 -1
  117. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
  118. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
  119. package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
  120. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
  121. package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
  122. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +1 -1
  123. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -1
  124. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +40 -2
  125. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
  126. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +2 -1
  127. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
  128. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +2 -1
  129. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
  130. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +6 -2
  131. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
  132. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +5 -2
  133. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
  134. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +5 -2
  135. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
  136. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +6 -2
  137. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
  138. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +6 -2
  139. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
  140. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +5 -2
  141. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
  142. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +2 -1
  143. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +3 -2
  144. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
  145. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +5 -2
  146. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
  147. package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +1 -0
  148. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
  149. package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
  150. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +1 -0
  151. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +32 -15
  152. package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
  153. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
  154. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
  155. package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
  156. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
  157. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
  158. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
  159. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
  160. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
  161. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
  162. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
  163. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
  164. package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
  165. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +1 -13
  166. package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +1 -1
  167. package/dist/constants.d.ts +3 -0
  168. package/dist/constants.js +3 -0
  169. package/dist/constants.js.map +1 -1
  170. package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
  171. package/dist/hooks/useExecuteSaveViewMutation/index.js +5 -0
  172. package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
  173. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
  174. package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
  175. package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
  176. package/dist/locales/en/shared.json +19 -3
  177. package/dist/locales/fr/shared.json +19 -3
  178. package/dist/types/views.d.ts +1 -1
  179. package/package.json +2 -2
  180. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.d.ts +0 -3
  181. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js +0 -72
  182. package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js.map +0 -1
  183. package/dist/components/Explorer/nullValuesConditions.js.map +0 -1
  184. package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
  185. package/dist/components/Explorer/useDeactivateAction.js +0 -52
  186. package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
  187. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
  188. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
  189. package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
  190. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
  191. package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
@@ -6,7 +6,6 @@ import { Modal } from 'antd';
6
6
  import { useRef, useState } from 'react';
7
7
  import { KitButton, KitSpace, KitTypography } from 'aristid-ds';
8
8
  import styled from 'styled-components';
9
- import { themeVars } from '../../../antdTheme';
10
9
  import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
11
10
  import { EditRecord } from '../EditRecord';
12
11
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
@@ -16,8 +15,14 @@ import { useForm } from 'antd/lib/form/Form';
16
15
  import { useCreateCancelConfirm } from '../hooks/useCreateCancelConfirm';
17
16
  const modalWidth = 1200;
18
17
  const StyledModal = styled(Modal) `
19
- && .ant-modal-content {
20
- padding: 0;
18
+ && {
19
+ .ant-modal-content {
20
+ padding: 0;
21
+ }
22
+
23
+ .ant-modal-footer {
24
+ margin-top: 0;
25
+ }
21
26
  }
22
27
  `;
23
28
  const Header = styled.div `
@@ -26,7 +31,7 @@ const Header = styled.div `
26
31
  align-self: center;
27
32
  font-size: 1rem;
28
33
  padding: 10px 50px 10px 10px;
29
- border-bottom: 1px solid ${themeVars.borderColor};
34
+ border-bottom: 1px solid var(--general-utilities-border);
30
35
  display: flex;
31
36
  justify-content: space-between;
32
37
  align-items: center;
@@ -35,6 +40,7 @@ const ModalFooter = styled.div `
35
40
  display: flex;
36
41
  justify-content: flex-end;
37
42
  padding: 0.5rem 1rem;
43
+ border-top: 1px solid var(--general-utilities-border);
38
44
  `;
39
45
  export const EditRecordModal = ({ open, record, library, onClose, onCreate, onCreateAndEdit, submitButtons = ['create'], valuesVersion, withInfoButton = true }) => {
40
46
  const { t } = useSharedTranslation();
@@ -1 +1 @@
1
- {"version":3,"file":"EditRecordModal.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordModal/EditRecordModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAoB,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC9D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAGpE,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAC,MAAM,mCAAmC,CAAC;AAEvF,OAAO,EAAC,mBAAmB,EAAC,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAC,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAC,sBAAsB,EAAC,MAAM,iCAAiC,CAAC;AAcvE,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;;CAIhC,CAAC;AAEF,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;+BAMM,SAAS,CAAC,WAAW;;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,KAAK,EAAC,IAAI,EAAC,KAAK,EAAE,EAAC,MAAM,EAAE,CAAC,EAAC,YAC7C,aAAa,EAAE,KAAK,IAAI,CAAC,CAAC,2BAA2B,CAAC,GACrC,EACtB,MAAC,QAAQ,IAAC,IAAI,EAAC,KAAK,aAChB,KAAC,SAAS,IACN,GAAG,EAAE,uBAAuB,EAC5B,IAAI,EAAC,UAAU,EACf,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,YAAY,GAAI,GAC/C,EACF,KAAC,SAAS,IAAC,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAC,UAAU,EAAC,IAAI,EAAE,KAAC,eAAe,IAAC,IAAI,EAAE,aAAa,GAAI,GAAI,IAC7F,IACN,EACT,KAAC,UAAU,IACP,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,aAAa,EACvB,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE;oBACT,OAAO,EAAE,gBAAgB;oBACzB,cAAc,EAAE,uBAAuB;iBAC1C,EACD,WAAW,QACX,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,EAAC,MAAM,EAAE,qBAAqB,EAAC,GACjD,IACQ,CACjB,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"EditRecordModal.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordModal/EditRecordModal.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAoB,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAC9D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAG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E,EAAC,MAAM,EAAE,qBAAqB,EAAC,GACjD,IACQ,CACjB,CAAC;AACN,CAAC,CAAC"}
@@ -2,6 +2,7 @@ import { FunctionComponent } from 'react';
2
2
  import { MetadataSubmitValueFunc } from '../EditRecordContent/_types';
3
3
  interface IEditRecordSidebarProps {
4
4
  onMetadataSubmit: MetadataSubmitValueFunc;
5
+ open: boolean;
5
6
  sidebarContainer?: HTMLElement;
6
7
  }
7
8
  export declare const EditRecordSidebar: FunctionComponent<IEditRecordSidebarProps>;
@@ -1,21 +1,19 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
+ // This file is released under LGPL V3
4
+ // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
+ import { useEffect, useRef } from 'react';
2
6
  import { useEditRecordReducer } from '../editRecordReducer/useEditRecordReducer';
3
7
  import RecordSummary from './RecordSummary';
4
8
  import ValueDetails from './ValueDetails';
5
9
  import ValuesVersions from './ValuesVersions';
6
- import { themeVars } from '../../../antdTheme';
7
- import styled from 'styled-components';
8
10
  import { createPortal } from 'react-dom';
9
- const SidebarWrapper = styled.div `
10
- overflow-x: hidden;
11
- overflow-y: scroll;
12
- position: relative;
13
- grid-area: sidebar;
14
- background: ${themeVars.secondaryBg};
15
- border-top-right-radius: 3px;
16
- z-index: 1;
17
- `;
11
+ import { EditRecordReducerActionsTypes } from '../editRecordReducer/editRecordReducer';
12
+ import { KitSidePanel } from 'aristid-ds';
13
+ import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
14
+ import { EDIT_RECORD_SIDEBAR_ID } from '../../../constants';
18
15
  const _getRecordSidebarContent = (state, onMetadataSubmit) => {
16
+ // TODO: ValueDetails and ValuesVersions should be removed or refactored later
19
17
  switch (state.sidebarContent) {
20
18
  case 'none':
21
19
  return null;
@@ -27,10 +25,29 @@ const _getRecordSidebarContent = (state, onMetadataSubmit) => {
27
25
  return _jsx(RecordSummary, { record: state.record });
28
26
  }
29
27
  };
30
- export const EditRecordSidebar = ({ onMetadataSubmit, sidebarContainer }) => {
31
- const { state } = useEditRecordReducer();
32
- const shouldUsePortal = sidebarContainer !== undefined;
33
- return shouldUsePortal ? (createPortal(_jsx(SidebarWrapper, { children: _getRecordSidebarContent(state, onMetadataSubmit) }), sidebarContainer)) : (_jsx(SidebarWrapper, { children: _getRecordSidebarContent(state, onMetadataSubmit) }));
28
+ export const EditRecordSidebar = ({ onMetadataSubmit, open, sidebarContainer }) => {
29
+ const { t } = useSharedTranslation();
30
+ const { state, dispatch } = useEditRecordReducer();
31
+ const sidePanelRef = useRef(null);
32
+ const sidePanelTitle = state.record?.label ?? state.record?.id ?? t('record_summary.new_record');
33
+ const editRecordSidebarContent = (_jsx(KitSidePanel, { ref: sidePanelRef, initialOpen: open, idCardProps: { title: sidePanelTitle }, id: EDIT_RECORD_SIDEBAR_ID, children: _getRecordSidebarContent(state, onMetadataSubmit) }));
34
+ useEffect(() => {
35
+ if (sidePanelRef.current) {
36
+ if (open) {
37
+ sidePanelRef.current.open();
38
+ dispatch({
39
+ type: EditRecordReducerActionsTypes.SET_SIDEBAR_CONTENT,
40
+ content: state.sidebarContent === 'none' ? 'summary' : state.sidebarContent
41
+ });
42
+ }
43
+ else {
44
+ sidePanelRef.current.close();
45
+ }
46
+ }
47
+ }, [open]);
48
+ return sidebarContainer === undefined
49
+ ? editRecordSidebarContent
50
+ : createPortal(editRecordSidebarContent, sidebarContainer);
34
51
  };
35
52
  export default EditRecordSidebar;
36
53
  //# sourceMappingURL=EditRecordSidebar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditRecordSidebar.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,oBAAoB,EAAC,MAAM,2CAA2C,CAAC;AAC/E,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,YAAY,MAAM,gBAAg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;AACN,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"EditRecordSidebar.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2CAA2C,CAAC;AAC/E,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AACvC,OAAO,EAAC,6BAA6B,EAA0B,MAAM,wCAAwC,CAAC;AAC9G,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAC;AAExC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,sBAAsB,EAAC,MAAM,eAAe,CAAC;AAQrD,MAAM,wBAAwB,GAAG,CAAC,KAA8B,EAAE,gBAAyC,EAAE,EAAE;IAC3G,8EAA8E;IAC9E,QAAQ,KAAK,CAAC,cAAc,EAAE,CAAC;QAC3B,KAAK,MAAM;YACP,OAAO,IAAI,CAAC;QAChB,KAAK,cAAc;YACf,OAAO,CACH,KAAC,YAAY,IACT,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,KAAK,EAC9B,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,SAAS,EACtC,gBAAgB,EAAE,gBAAgB,GACpC,CACL,CAAC;QACN,KAAK,gBAAgB;YACjB,OAAO,KAAC,cAAc,KAAG,CAAC;QAC9B;YACI,OAAO,KAAC,aAAa,IAAC,MAAM,EAAE,KAAK,CAAC,MAAM,GAAI,CAAC;IACvD,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM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CAAC;AACnE,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,13 +1,10 @@
1
- export interface IPropertiesListItemValue {
1
+ import { FunctionComponent } from 'react';
2
+ interface IPropertiesListItemValue {
2
3
  title: string;
3
4
  value: string;
4
5
  }
5
- export interface IPropertiesListItemDivider {
6
- divider: boolean;
7
- }
8
- export type PropertiesListItem = IPropertiesListItemValue | IPropertiesListItemDivider;
9
6
  interface IPropertiesListProps {
10
- items: PropertiesListItem[];
7
+ items: IPropertiesListItemValue[];
11
8
  }
12
- declare function PropertiesList({ items }: IPropertiesListProps): JSX.Element;
9
+ export declare const PropertiesList: FunctionComponent<IPropertiesListProps>;
13
10
  export default PropertiesList;
@@ -1,13 +1,11 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
3
3
  // This file is released under LGPL V3
4
4
  // License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
5
- import { Descriptions, Divider } from 'antd';
6
- function PropertiesList({ items }) {
7
- return (_jsx(Descriptions, { layout: "horizontal", column: 1, children: items.map((item, index) => {
8
- const { title, value } = item;
9
- return (_jsx(Descriptions.Item, { label: title, style: { paddingBottom: '5px' }, labelStyle: { fontWeight: 'bold', width: '50%' }, children: item.divider ? (_jsx(Divider, { "data-testid": "divider" }, index)) : (value) }, index));
10
- }) }));
11
- }
5
+ import { KitSpace, KitTypography } from 'aristid-ds';
6
+ export const PropertiesList = ({ items }) => (_jsx(KitSpace, { size: "s", direction: "vertical", children: items.map((item, index) => {
7
+ const { title, value } = item;
8
+ return (_jsxs(KitSpace, { size: "none", direction: "vertical", children: [_jsx(KitTypography.Text, { size: "fontSize7", children: title }), _jsx(KitTypography.Text, { size: "fontSize5", weight: "bold", children: value })] }, index));
9
+ }) }));
12
10
  export default PropertiesList;
13
11
  //# sourceMappingURL=PropertiesList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PropertiesList.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,YAAY,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AAiB3C,SAAS,cAAc,CAAC,EAAC,KAAK,EAAuB;IACjD,OAAO,CACH,KAAC,YAAY,IAAC,MAAM,EAAC,YAAY,EAAC,MAAM,EAAE,CAAC,YACtC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YACvB,MAAM,EAAC,KAAK,EAAE,KAAK,EAAC,GAAG,IAAgC,CAAC;YAExD,OAAO,CACH,KAAC,YAAY,CAAC,IAAI,IAEd,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,EAAC,aAAa,EAAE,KAAK,EAAC,EAC7B,UAAU,EAAE,EAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAC,YAE5C,IAAmC,CAAC,OAAO,CAAC,CAAC,CAAC,CAC5C,KAAC,OAAO,mBAAyB,SAAS,IAA5B,KAAK,CAA0B,CAChD,CAAC,CAAC,CAAC,CACA,KAAK,CACR,IATI,KAAK,CAUM,CACvB,CAAC;QACN,CAAC,CAAC,GACS,CAClB,CAAC;AACN,CAAC;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"PropertiesList.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAYnD,MAAM,CAAC,MAAM,cAAc,GAA4C,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAChF,KAAC,QAAQ,IAAC,IAAI,EAAC,GAAG,EAAC,SAAS,EAAC,UAAU,YAClC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACvB,MAAM,EAAC,KAAK,EAAE,KAAK,EAAC,GAAG,IAAI,CAAC;QAE5B,OAAO,CACH,MAAC,QAAQ,IAAa,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,UAAU,aAClD,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,YAAE,KAAK,GAAsB,EACjE,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,MAAM,EAAC,MAAM,YAC7C,KAAK,GACW,KAJV,KAAK,CAKT,CACd,CAAC;IACN,CAAC,CAAC,GACK,CACd,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IRecordIdentityWhoAmI } from '../../../../../types';
3
+ import { GetRecordColumnsValuesRecord } from '../../../../../_queries/records/getRecordColumnsValues';
4
+ interface IInformationsProps {
5
+ record: IRecordIdentityWhoAmI;
6
+ recordData: GetRecordColumnsValuesRecord;
7
+ }
8
+ export declare const RecordInformations: FunctionComponent<IInformationsProps>;
9
+ export {};
@@ -0,0 +1,42 @@
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 { useState } from 'react';
6
+ import styled from 'styled-components';
7
+ import { KitButton, KitTooltip } from 'aristid-ds';
8
+ import { FaExpand } from 'react-icons/fa';
9
+ import PropertiesList from '../../PropertiesList';
10
+ import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
11
+ import { useRecordInformations } from './useRecordInformations';
12
+ import FileModal from '../../../../../components/RecordPreviewWithModal/FileModal';
13
+ import { EntityPreview } from '../../../../../components/EntityPreview';
14
+ import { TOOLTIP_DEFAULT_DELAY_IN_SECONDS } from '../../../../../constants';
15
+ const InformationsWrapper = styled.div `
16
+ margin-top: calc(var(--general-spacing-s) * 1px);
17
+ `;
18
+ const PreviewWrapper = styled.div `
19
+ position: relative;
20
+ width: 100%;
21
+ height: 162px;
22
+ background-color: var(--general-colors-primary-50);
23
+ border-radius: calc(var(--general-border-radius-s) * 1px);
24
+ padding: calc(var(--general-spacing-xs) * 1px);
25
+ `;
26
+ const ExpandImageButton = styled(KitButton) `
27
+ position: absolute;
28
+ right: 0;
29
+ top: 0;
30
+ `;
31
+ const ContentWrapper = styled.div `
32
+ margin-top: calc(var(--general-spacing-s) * 1px);
33
+ `;
34
+ export const RecordInformations = ({ record, recordData }) => {
35
+ const { t } = useSharedTranslation();
36
+ const recordInformations = useRecordInformations(record, recordData);
37
+ const [isFilePreviewModalOpen, setFilePreviewModalOpen] = useState(false);
38
+ const previewFile = record?.preview?.file;
39
+ const preview = record?.preview?.medium ? String(record?.preview?.medium) : null;
40
+ return (_jsxs(InformationsWrapper, { children: [_jsxs(PreviewWrapper, { children: [_jsx(EntityPreview, { label: record?.label ?? record?.id, color: record?.color, image: preview, imageStyle: { border: 'none' }, placeholderStyle: { height: '100%', width: 'fit-content', margin: 'auto', borderRadius: '0' }, style: { height: '100%', background: 'initial' }, tile: true }), previewFile !== undefined && (_jsx(KitTooltip, { title: t('record_summary.open_preview_modal'), mouseEnterDelay: TOOLTIP_DEFAULT_DELAY_IN_SECONDS, children: _jsx(ExpandImageButton, { "aria-label": t('record_summary.open_preview_modal'), type: "tertiary", icon: _jsx(FaExpand, {}), onClick: () => setFilePreviewModalOpen(true) }) }))] }), isFilePreviewModalOpen && (_jsx(FileModal, { open: isFilePreviewModalOpen, fileId: previewFile?.id, libraryId: previewFile?.library, onClose: () => setFilePreviewModalOpen(false) })), _jsx(ContentWrapper, { children: _jsx(PropertiesList, { items: recordInformations }) })] }));
41
+ };
42
+ //# sourceMappingURL=RecordInformations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecordInformations.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAElD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,YAAY,CAAC;AACjD,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,SAAS,MAAM,iDAAiD,CAAC;AACxE,OAAO,EAAC,aAAa,EAAC,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAC,gCAAgC,EAAC,MAAM,eAAe,CAAC;AAO/D,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;CAErC,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;CAOhC,CAAC;AAEF,MAAM,iBAAiB,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;;;;CAI1C,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;CAEhC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAA0C,CAAC,EAAC,MAAM,EAAE,UAAU,EAAC,EAAE,EAAE;IAC9F,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACrE,MAAM,CAAC,sBAAsB,EAAE,uBAAuB,CAAC,GAAG,QAAQ,CAAC,KAAK,CA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AAc,IAAC,KAAK,EAAE,kBAAkB,GAAI,GAChC,IACC,CACzB,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { GetRecordColumnsValuesRecord } from '../../../../../_queries/records/getRecordColumnsValues';
2
+ import { IRecordIdentityWhoAmI } from '../../../../../types';
3
+ export declare const useRecordInformations: (record: IRecordIdentityWhoAmI, recordData: GetRecordColumnsValuesRecord) => {
4
+ title: string;
5
+ value: string;
6
+ }[];
@@ -0,0 +1,35 @@
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 { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
5
+ export const useRecordInformations = (record, recordData) => {
6
+ const { t } = useSharedTranslation();
7
+ const recordInformations = [
8
+ {
9
+ title: t('record_summary.id_entity'),
10
+ value: record?.id ?? '-'
11
+ }
12
+ ];
13
+ if (recordData?.created_at?.[0]) {
14
+ recordInformations.push({
15
+ title: t('record_summary.creation'),
16
+ value: t('record_summary.date_by_user', {
17
+ date: (recordData?.created_at?.[0]).payload,
18
+ user: recordData?.created_by?.[0]?.linkValue?.whoAmI?.label,
19
+ interpolation: { escapeValue: false }
20
+ })
21
+ });
22
+ }
23
+ if (recordData?.modified_at?.[0]) {
24
+ recordInformations.push({
25
+ title: t('record_summary.last_modification'),
26
+ value: t('record_summary.date_by_user', {
27
+ date: (recordData?.modified_at?.[0]).payload,
28
+ user: recordData?.modified_by?.[0]?.linkValue?.whoAmI?.label,
29
+ interpolation: { escapeValue: false }
30
+ })
31
+ });
32
+ }
33
+ return recordInformations;
34
+ };
35
+ //# sourceMappingURL=useRecordInformations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRecordInformations.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.ts"],"names":[],"mappings":"AAAA,oF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WAAW,EAAE,KAAK,EAAC;aACtC,CAAC;SACL,CAAC,CAAC;IACP,CAAC;IAED,OAAO,kBAAkB,CAAC;AAC9B,CAAC,CAAC"}
@@ -1,286 +1,7 @@
1
1
  import { IRecordIdentityWhoAmI } from '../../../../types/records';
2
+ import { FunctionComponent } from 'react';
2
3
  interface IRecordSummaryProps {
3
4
  record: IRecordIdentityWhoAmI;
4
5
  }
5
- export declare const Wrapper: import("styled-components").IStyledComponent<"web", {
6
- prefixCls?: string;
7
- className?: string;
8
- rootClassName?: string;
9
- style?: import("react").CSSProperties;
10
- size?: import("antd/es/space").SpaceSize | [import("antd/es/space").SpaceSize, import("antd/es/space").SpaceSize];
11
- direction?: "horizontal" | "vertical";
12
- align?: "start" | "end" | "center" | "baseline";
13
- split?: import("react").ReactNode;
14
- wrap?: boolean;
15
- classNames?: {
16
- item: string;
17
- };
18
- styles?: {
19
- item: import("react").CSSProperties;
20
- };
21
- defaultChecked?: boolean | undefined;
22
- defaultValue?: string | number | ReadonlyArray<string> | undefined;
23
- suppressContentEditableWarning?: boolean | undefined;
24
- suppressHydrationWarning?: boolean | undefined;
25
- accessKey?: string | undefined;
26
- autoFocus?: boolean | undefined;
27
- contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
28
- contextMenu?: string | undefined;
29
- dir?: string | undefined;
30
- draggable?: (boolean | "true" | "false") | undefined;
31
- hidden?: boolean | undefined;
32
- id?: string | undefined;
33
- lang?: string | undefined;
34
- nonce?: string | undefined;
35
- placeholder?: string | undefined;
36
- slot?: string | undefined;
37
- spellCheck?: (boolean | "true" | "false") | undefined;
38
- tabIndex?: number | undefined;
39
- title?: string | undefined;
40
- translate?: "yes" | "no" | undefined;
41
- radioGroup?: string | undefined;
42
- role?: import("react").AriaRole | undefined;
43
- about?: string | undefined;
44
- content?: string | undefined;
45
- datatype?: string | undefined;
46
- inlist?: any;
47
- prefix?: string | undefined;
48
- property?: string | undefined;
49
- rel?: string | undefined;
50
- resource?: string | undefined;
51
- rev?: string | undefined;
52
- typeof?: string | undefined;
53
- vocab?: string | undefined;
54
- autoCapitalize?: string | undefined;
55
- autoCorrect?: string | undefined;
56
- autoSave?: string | undefined;
57
- color?: string | undefined;
58
- itemProp?: string | undefined;
59
- itemScope?: boolean | undefined;
60
- itemType?: string | undefined;
61
- itemID?: string | undefined;
62
- itemRef?: string | undefined;
63
- results?: number | undefined;
64
- security?: string | undefined;
65
- unselectable?: "on" | "off" | undefined;
66
- inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
67
- is?: string | undefined;
68
- children?: import("react").ReactNode;
69
- 'aria-activedescendant'?: string | undefined;
70
- 'aria-atomic'?: boolean | "false" | "true" | undefined;
71
- 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
72
- 'aria-busy'?: boolean | "false" | "true" | undefined;
73
- 'aria-checked'?: boolean | "false" | "mixed" | "true" | undefined;
74
- 'aria-colcount'?: number | undefined;
75
- 'aria-colindex'?: number | undefined;
76
- 'aria-colspan'?: number | undefined;
77
- 'aria-controls'?: string | undefined;
78
- 'aria-current'?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
79
- 'aria-describedby'?: string | undefined;
80
- 'aria-details'?: string | undefined;
81
- 'aria-disabled'?: boolean | "false" | "true" | undefined;
82
- 'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
83
- 'aria-errormessage'?: string | undefined;
84
- 'aria-expanded'?: boolean | "false" | "true" | undefined;
85
- 'aria-flowto'?: string | undefined;
86
- 'aria-grabbed'?: boolean | "false" | "true" | undefined;
87
- 'aria-haspopup'?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
88
- 'aria-hidden'?: boolean | "false" | "true" | undefined;
89
- 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
90
- 'aria-keyshortcuts'?: string | undefined;
91
- 'aria-label'?: string | undefined;
92
- 'aria-labelledby'?: string | undefined;
93
- 'aria-level'?: number | undefined;
94
- 'aria-live'?: "off" | "assertive" | "polite" | undefined;
95
- 'aria-modal'?: boolean | "false" | "true" | undefined;
96
- 'aria-multiline'?: boolean | "false" | "true" | undefined;
97
- 'aria-multiselectable'?: boolean | "false" | "true" | undefined;
98
- 'aria-orientation'?: "horizontal" | "vertical" | undefined;
99
- 'aria-owns'?: string | undefined;
100
- 'aria-placeholder'?: string | undefined;
101
- 'aria-posinset'?: number | undefined;
102
- 'aria-pressed'?: boolean | "false" | "mixed" | "true" | undefined;
103
- 'aria-readonly'?: boolean | "false" | "true" | undefined;
104
- 'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
105
- 'aria-required'?: boolean | "false" | "true" | undefined;
106
- 'aria-roledescription'?: string | undefined;
107
- 'aria-rowcount'?: number | undefined;
108
- 'aria-rowindex'?: number | undefined;
109
- 'aria-rowspan'?: number | undefined;
110
- 'aria-selected'?: boolean | "false" | "true" | undefined;
111
- 'aria-setsize'?: number | undefined;
112
- 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
113
- 'aria-valuemax'?: number | undefined;
114
- 'aria-valuemin'?: number | undefined;
115
- 'aria-valuenow'?: number | undefined;
116
- 'aria-valuetext'?: string | undefined;
117
- dangerouslySetInnerHTML?: {
118
- __html: string | TrustedHTML;
119
- } | undefined;
120
- onCopy?: import("react").ClipboardEventHandler<HTMLDivElement>;
121
- onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement>;
122
- onCut?: import("react").ClipboardEventHandler<HTMLDivElement>;
123
- onCutCapture?: import("react").ClipboardEventHandler<HTMLDivElement>;
124
- onPaste?: import("react").ClipboardEventHandler<HTMLDivElement>;
125
- onPasteCapture?: import("react").ClipboardEventHandler<HTMLDivElement>;
126
- onCompositionEnd?: import("react").CompositionEventHandler<HTMLDivElement>;
127
- onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLDivElement>;
128
- onCompositionStart?: import("react").CompositionEventHandler<HTMLDivElement>;
129
- onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLDivElement>;
130
- onCompositionUpdate?: import("react").CompositionEventHandler<HTMLDivElement>;
131
- onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLDivElement>;
132
- onFocus?: import("react").FocusEventHandler<HTMLDivElement>;
133
- onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement>;
134
- onBlur?: import("react").FocusEventHandler<HTMLDivElement>;
135
- onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement>;
136
- onChange?: import("react").FormEventHandler<HTMLDivElement>;
137
- onChangeCapture?: import("react").FormEventHandler<HTMLDivElement>;
138
- onBeforeInput?: import("react").FormEventHandler<HTMLDivElement>;
139
- onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement>;
140
- onInput?: import("react").FormEventHandler<HTMLDivElement>;
141
- onInputCapture?: import("react").FormEventHandler<HTMLDivElement>;
142
- onReset?: import("react").FormEventHandler<HTMLDivElement>;
143
- onResetCapture?: import("react").FormEventHandler<HTMLDivElement>;
144
- onSubmit?: import("react").FormEventHandler<HTMLDivElement>;
145
- onSubmitCapture?: import("react").FormEventHandler<HTMLDivElement>;
146
- onInvalid?: import("react").FormEventHandler<HTMLDivElement>;
147
- onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement>;
148
- onLoad?: import("react").ReactEventHandler<HTMLDivElement>;
149
- onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement>;
150
- onError?: import("react").ReactEventHandler<HTMLDivElement>;
151
- onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement>;
152
- onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement>;
153
- onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement>;
154
- onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement>;
155
- onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement>;
156
- onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement>;
157
- onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLDivElement>;
158
- onAbort?: import("react").ReactEventHandler<HTMLDivElement>;
159
- onAbortCapture?: import("react").ReactEventHandler<HTMLDivElement>;
160
- onCanPlay?: import("react").ReactEventHandler<HTMLDivElement>;
161
- onCanPlayCapture?: import("react").ReactEventHandler<HTMLDivElement>;
162
- onCanPlayThrough?: import("react").ReactEventHandler<HTMLDivElement>;
163
- onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLDivElement>;
164
- onDurationChange?: import("react").ReactEventHandler<HTMLDivElement>;
165
- onDurationChangeCapture?: import("react").ReactEventHandler<HTMLDivElement>;
166
- onEmptied?: import("react").ReactEventHandler<HTMLDivElement>;
167
- onEmptiedCapture?: import("react").ReactEventHandler<HTMLDivElement>;
168
- onEncrypted?: import("react").ReactEventHandler<HTMLDivElement>;
169
- onEncryptedCapture?: import("react").ReactEventHandler<HTMLDivElement>;
170
- onEnded?: import("react").ReactEventHandler<HTMLDivElement>;
171
- onEndedCapture?: import("react").ReactEventHandler<HTMLDivElement>;
172
- onLoadedData?: import("react").ReactEventHandler<HTMLDivElement>;
173
- onLoadedDataCapture?: import("react").ReactEventHandler<HTMLDivElement>;
174
- onLoadedMetadata?: import("react").ReactEventHandler<HTMLDivElement>;
175
- onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLDivElement>;
176
- onLoadStart?: import("react").ReactEventHandler<HTMLDivElement>;
177
- onLoadStartCapture?: import("react").ReactEventHandler<HTMLDivElement>;
178
- onPause?: import("react").ReactEventHandler<HTMLDivElement>;
179
- onPauseCapture?: import("react").ReactEventHandler<HTMLDivElement>;
180
- onPlay?: import("react").ReactEventHandler<HTMLDivElement>;
181
- onPlayCapture?: import("react").ReactEventHandler<HTMLDivElement>;
182
- onPlaying?: import("react").ReactEventHandler<HTMLDivElement>;
183
- onPlayingCapture?: import("react").ReactEventHandler<HTMLDivElement>;
184
- onProgress?: import("react").ReactEventHandler<HTMLDivElement>;
185
- onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement>;
186
- onRateChange?: import("react").ReactEventHandler<HTMLDivElement>;
187
- onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement>;
188
- onSeeked?: import("react").ReactEventHandler<HTMLDivElement>;
189
- onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement>;
190
- onSeeking?: import("react").ReactEventHandler<HTMLDivElement>;
191
- onSeekingCapture?: import("react").ReactEventHandler<HTMLDivElement>;
192
- onStalled?: import("react").ReactEventHandler<HTMLDivElement>;
193
- onStalledCapture?: import("react").ReactEventHandler<HTMLDivElement>;
194
- onSuspend?: import("react").ReactEventHandler<HTMLDivElement>;
195
- onSuspendCapture?: import("react").ReactEventHandler<HTMLDivElement>;
196
- onTimeUpdate?: import("react").ReactEventHandler<HTMLDivElement>;
197
- onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLDivElement>;
198
- onVolumeChange?: import("react").ReactEventHandler<HTMLDivElement>;
199
- onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLDivElement>;
200
- onWaiting?: import("react").ReactEventHandler<HTMLDivElement>;
201
- onWaitingCapture?: import("react").ReactEventHandler<HTMLDivElement>;
202
- onAuxClick?: import("react").MouseEventHandler<HTMLDivElement>;
203
- onAuxClickCapture?: import("react").MouseEventHandler<HTMLDivElement>;
204
- onClick?: import("react").MouseEventHandler<HTMLDivElement>;
205
- onClickCapture?: import("react").MouseEventHandler<HTMLDivElement>;
206
- onContextMenu?: import("react").MouseEventHandler<HTMLDivElement>;
207
- onContextMenuCapture?: import("react").MouseEventHandler<HTMLDivElement>;
208
- onDoubleClick?: import("react").MouseEventHandler<HTMLDivElement>;
209
- onDoubleClickCapture?: import("react").MouseEventHandler<HTMLDivElement>;
210
- onDrag?: import("react").DragEventHandler<HTMLDivElement>;
211
- onDragCapture?: import("react").DragEventHandler<HTMLDivElement>;
212
- onDragEnd?: import("react").DragEventHandler<HTMLDivElement>;
213
- onDragEndCapture?: import("react").DragEventHandler<HTMLDivElement>;
214
- onDragEnter?: import("react").DragEventHandler<HTMLDivElement>;
215
- onDragEnterCapture?: import("react").DragEventHandler<HTMLDivElement>;
216
- onDragExit?: import("react").DragEventHandler<HTMLDivElement>;
217
- onDragExitCapture?: import("react").DragEventHandler<HTMLDivElement>;
218
- onDragLeave?: import("react").DragEventHandler<HTMLDivElement>;
219
- onDragLeaveCapture?: import("react").DragEventHandler<HTMLDivElement>;
220
- onDragOver?: import("react").DragEventHandler<HTMLDivElement>;
221
- onDragOverCapture?: import("react").DragEventHandler<HTMLDivElement>;
222
- onDragStart?: import("react").DragEventHandler<HTMLDivElement>;
223
- onDragStartCapture?: import("react").DragEventHandler<HTMLDivElement>;
224
- onDrop?: import("react").DragEventHandler<HTMLDivElement>;
225
- onDropCapture?: import("react").DragEventHandler<HTMLDivElement>;
226
- onMouseDown?: import("react").MouseEventHandler<HTMLDivElement>;
227
- onMouseDownCapture?: import("react").MouseEventHandler<HTMLDivElement>;
228
- onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement>;
229
- onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement>;
230
- onMouseMove?: import("react").MouseEventHandler<HTMLDivElement>;
231
- onMouseMoveCapture?: import("react").MouseEventHandler<HTMLDivElement>;
232
- onMouseOut?: import("react").MouseEventHandler<HTMLDivElement>;
233
- onMouseOutCapture?: import("react").MouseEventHandler<HTMLDivElement>;
234
- onMouseOver?: import("react").MouseEventHandler<HTMLDivElement>;
235
- onMouseOverCapture?: import("react").MouseEventHandler<HTMLDivElement>;
236
- onMouseUp?: import("react").MouseEventHandler<HTMLDivElement>;
237
- onMouseUpCapture?: import("react").MouseEventHandler<HTMLDivElement>;
238
- onSelect?: import("react").ReactEventHandler<HTMLDivElement>;
239
- onSelectCapture?: import("react").ReactEventHandler<HTMLDivElement>;
240
- onTouchCancel?: import("react").TouchEventHandler<HTMLDivElement>;
241
- onTouchCancelCapture?: import("react").TouchEventHandler<HTMLDivElement>;
242
- onTouchEnd?: import("react").TouchEventHandler<HTMLDivElement>;
243
- onTouchEndCapture?: import("react").TouchEventHandler<HTMLDivElement>;
244
- onTouchMove?: import("react").TouchEventHandler<HTMLDivElement>;
245
- onTouchMoveCapture?: import("react").TouchEventHandler<HTMLDivElement>;
246
- onTouchStart?: import("react").TouchEventHandler<HTMLDivElement>;
247
- onTouchStartCapture?: import("react").TouchEventHandler<HTMLDivElement>;
248
- onPointerDown?: import("react").PointerEventHandler<HTMLDivElement>;
249
- onPointerDownCapture?: import("react").PointerEventHandler<HTMLDivElement>;
250
- onPointerMove?: import("react").PointerEventHandler<HTMLDivElement>;
251
- onPointerMoveCapture?: import("react").PointerEventHandler<HTMLDivElement>;
252
- onPointerUp?: import("react").PointerEventHandler<HTMLDivElement>;
253
- onPointerUpCapture?: import("react").PointerEventHandler<HTMLDivElement>;
254
- onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement>;
255
- onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement>;
256
- onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement>;
257
- onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement>;
258
- onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement>;
259
- onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement>;
260
- onPointerOver?: import("react").PointerEventHandler<HTMLDivElement>;
261
- onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement>;
262
- onPointerOut?: import("react").PointerEventHandler<HTMLDivElement>;
263
- onPointerOutCapture?: import("react").PointerEventHandler<HTMLDivElement>;
264
- onGotPointerCapture?: import("react").PointerEventHandler<HTMLDivElement>;
265
- onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement>;
266
- onLostPointerCapture?: import("react").PointerEventHandler<HTMLDivElement>;
267
- onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement>;
268
- onScroll?: import("react").UIEventHandler<HTMLDivElement>;
269
- onScrollCapture?: import("react").UIEventHandler<HTMLDivElement>;
270
- onWheel?: import("react").WheelEventHandler<HTMLDivElement>;
271
- onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement>;
272
- onAnimationStart?: import("react").AnimationEventHandler<HTMLDivElement>;
273
- onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLDivElement>;
274
- onAnimationEnd?: import("react").AnimationEventHandler<HTMLDivElement>;
275
- onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement>;
276
- onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement>;
277
- onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement>;
278
- onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement>;
279
- onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement>;
280
- ref?: import("react").Ref<HTMLDivElement>;
281
- key?: import("react").Key | null | undefined;
282
- }> & import("react").ForwardRefExoticComponent<import("antd").SpaceProps & import("react").RefAttributes<HTMLDivElement>> & {
283
- Compact: import("react").FC<import("antd/es/space/Compact").SpaceCompactProps>;
284
- };
285
- declare function RecordSummary({ record }: IRecordSummaryProps): JSX.Element;
6
+ export declare const RecordSummary: FunctionComponent<IRecordSummaryProps>;
286
7
  export default RecordSummary;