@leav/ui 0.3.3-d667fb0 → 0.3.4-4a391a6
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.
- package/dist/__mocks__/common/attribute.js +38 -11
- package/dist/__mocks__/common/attribute.js.map +1 -1
- package/dist/__mocks__/common/filter.js +1 -1
- package/dist/__mocks__/common/filter.js.map +1 -1
- package/dist/__mocks__/common/form.js +147 -27
- package/dist/__mocks__/common/form.js.map +1 -1
- package/dist/__mocks__/common/import.js +2 -2
- package/dist/__mocks__/common/import.js.map +1 -1
- package/dist/__mocks__/common/library.js +5 -2
- package/dist/__mocks__/common/library.js.map +1 -1
- package/dist/__mocks__/common/mockSearchContextProvider.js +3 -3
- package/dist/__mocks__/common/mockSearchContextProvider.js.map +1 -1
- package/dist/__mocks__/common/tree.js +1 -1
- package/dist/__mocks__/common/tree.js.map +1 -1
- package/dist/__mocks__/common/treeElements.js +5 -2
- package/dist/__mocks__/common/treeElements.js.map +1 -1
- package/dist/__mocks__/common/value.js +8 -2
- package/dist/__mocks__/common/value.js.map +1 -1
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +8 -2
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
- package/dist/__mocks__/react-i18next.js +1 -1
- package/dist/__mocks__/react-i18next.js.map +1 -1
- package/dist/_gqlTypes/index.js +78 -78
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_utils/getFiltersFromRequest.js +25 -10
- package/dist/_utils/getFiltersFromRequest.js.map +1 -1
- package/dist/_utils/getRequestFromFilter.js +7 -8
- package/dist/_utils/getRequestFromFilter.js.map +1 -1
- package/dist/_utils/index.js +37 -27
- package/dist/_utils/index.js.map +1 -1
- package/dist/components/AttributePicker/AttributePicker.js +1 -1
- package/dist/components/AttributePicker/AttributePicker.js.map +1 -1
- package/dist/components/AttributePicker/AttributesList/AttributesList.js +21 -10
- package/dist/components/AttributePicker/AttributesList/AttributesList.js.map +1 -1
- package/dist/components/AttributesSelectionList/Attribute/Attribute.js +1 -1
- package/dist/components/AttributesSelectionList/Attribute/Attribute.js.map +1 -1
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js +7 -5
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js.map +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js.map +1 -1
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +4 -1
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js.map +1 -1
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +1 -1
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js.map +1 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +10 -4
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js.map +1 -1
- package/dist/components/BasicButton/BasicButton.js +2 -14
- package/dist/components/BasicButton/BasicButton.js.map +1 -1
- package/dist/components/CreateDirectory/CreateDirectory.js +5 -5
- package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +1 -1
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +1 -1
- package/dist/components/EditApplication/EditApplication.js +2 -3
- package/dist/components/EditApplication/EditApplication.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js +7 -7
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js +26 -18
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js +4 -17
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js +2 -3
- package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +13 -15
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +34 -32
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedLibraryForm/LinkedLibraryForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/LinkedTreeForm/LinkedTreeForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js +2 -3
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/ValuesVersionsForm/ValuesVersionsForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttributeModal.js +5 -5
- package/dist/components/EditAttributeModal/EditAttributeModal.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js +1 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js +16 -8
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js +3 -6
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js +2 -3
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js +12 -20
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js +29 -37
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js +21 -15
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js +8 -8
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js +10 -8
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibraryModal.js +7 -8
- package/dist/components/EditLibraryModal/EditLibraryModal.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTree.js +2 -3
- package/dist/components/EditTreeModal/EditTree/EditTree.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js +11 -23
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js +16 -21
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +13 -9
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js.map +1 -1
- package/dist/components/EditTreeModal/EditTreeModal.js +5 -5
- package/dist/components/EditTreeModal/EditTreeModal.js.map +1 -1
- package/dist/components/EntityCard/EntityCard.js +2 -4
- package/dist/components/EntityCard/EntityCard.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreview.js +2 -2
- package/dist/components/EntityPreview/EntityPreview.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js +10 -3
- package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.js +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js +3 -3
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js.map +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js.map +1 -1
- package/dist/components/ErrorDisplay/ErrorDisplay.js +2 -2
- package/dist/components/ErrorDisplay/ErrorDisplay.js.map +1 -1
- package/dist/components/ErrorMessage/ErrorMessage.js +1 -1
- package/dist/components/ErrorMessage/ErrorMessage.js.map +1 -1
- package/dist/components/ExportModal/ExportModal.js +5 -8
- package/dist/components/ExportModal/ExportModal.js.map +1 -1
- package/dist/components/FieldsGroup/FieldsGroup.js +1 -1
- package/dist/components/FieldsGroup/FieldsGroup.js.map +1 -1
- package/dist/components/FloatingMenu/FloatingMenu.js +3 -6
- package/dist/components/FloatingMenu/FloatingMenu.js.map +1 -1
- package/dist/components/ImageLoading/ImageLoading.js +1 -1
- package/dist/components/ImageLoading/ImageLoading.js.map +1 -1
- package/dist/components/ImageMissing/ImageMissing.js +7 -1
- package/dist/components/ImageMissing/ImageMissing.js.map +1 -1
- package/dist/components/ImportModal/ImportModal.js +13 -11
- package/dist/components/ImportModal/ImportModal.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js +2 -3
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +20 -18
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js +4 -4
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.js.map +1 -1
- package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js +1 -1
- package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.js.map +1 -1
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +7 -9
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
- package/dist/components/ImportModal/importReducer/importReducer.js +24 -8
- package/dist/components/ImportModal/importReducer/importReducer.js.map +1 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +1 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +2 -2
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +31 -33
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +39 -41
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +14 -11
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js +2 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js +2 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js +2 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js +2 -14
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +5 -2
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +2 -3
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +7 -4
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +30 -19
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +3 -3
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +17 -12
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +2 -3
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +7 -9
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +2 -3
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +4 -4
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js +3 -3
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +21 -18
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalContext.js +5 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalContext.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +2 -3
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +14 -12
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +1 -1
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +3 -3
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +3 -3
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +3 -3
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuView/MenuView.js +22 -16
- package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +1 -1
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js.map +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +3 -4
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js.map +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js.map +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +8 -2
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js +16 -9
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +9 -11
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +1 -2
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js +1 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +5 -7
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +86 -57
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +9 -3
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +1 -1
- package/dist/components/LibraryItemsList/manageItems.js +4 -4
- package/dist/components/LibraryItemsList/manageItems.js.map +1 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +2 -14
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +1 -1
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +2 -14
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js.map +1 -1
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js +15 -12
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
- package/dist/components/LibraryPicker/LibraryPicker.js +1 -1
- package/dist/components/LibraryPicker/LibraryPicker.js.map +1 -1
- package/dist/components/List/List.js +8 -17
- package/dist/components/List/List.js.map +1 -1
- package/dist/components/Loading/Loading.js +1 -1
- package/dist/components/Loading/Loading.js.map +1 -1
- package/dist/components/RecordCard/RecordCard.js +3 -5
- package/dist/components/RecordCard/RecordCard.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +26 -20
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js +3 -6
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.js +2 -14
- package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +9 -11
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +6 -7
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +5 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js +8 -6
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +58 -24
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +125 -36
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +3 -15
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js +2 -14
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +4 -16
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +2 -4
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +3 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +6 -18
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js +5 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +2 -14
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +24 -14
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +4 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.js +13 -11
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.js +4 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js +3 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js +11 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +26 -19
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +8 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +7 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +7 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js +2 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +20 -20
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +34 -24
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +4 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +3 -4
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +1 -2
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +3 -3
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +14 -15
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js +13 -4
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +2 -3
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js +8 -9
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js +6 -7
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +30 -21
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js +1 -1
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.js.map +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +2 -2
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js +2 -3
- package/dist/components/RecordPreviewWithModal/FileModal/FileModal.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js +1 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js +1 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js +6 -7
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js +8 -9
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js +7 -4
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js +1 -2
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js +7 -16
- package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js.map +1 -1
- package/dist/components/SearchModal/SearchModal.js +4 -5
- package/dist/components/SearchModal/SearchModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.js +6 -8
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +4 -4
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js.map +1 -1
- package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js +3 -3
- package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js.map +1 -1
- package/dist/components/TreePicker/TreePicker.js +1 -1
- package/dist/components/TreePicker/TreePicker.js.map +1 -1
- package/dist/components/TreePicker/TreesList/TreesList.js +13 -9
- package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js +5 -7
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js.map +1 -1
- package/dist/components/UploadFiles/UploadFiles.js +14 -17
- package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js +10 -11
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +1 -1
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
- package/dist/hooks/useAntdLocale/useAntdLocale.js +1 -2
- package/dist/hooks/useAntdLocale/useAntdLocale.js.map +1 -1
- package/dist/hooks/useAuth/useAuth.js +1 -4
- package/dist/hooks/useAuth/useAuth.js.map +1 -1
- package/dist/hooks/useCanEditRecord/useCanEditRecord.js +6 -6
- package/dist/hooks/useCanEditRecord/useCanEditRecord.js.map +1 -1
- package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js +5 -2
- package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +1 -1
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js +11 -8
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js.map +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +17 -10
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +12 -10
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
- package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js +4 -6
- package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js.map +1 -1
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js +5 -14
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js.map +1 -1
- package/dist/hooks/useRefreshToken/useRefreshToken.d.ts +0 -1
- package/dist/hooks/useRefreshToken/useRefreshToken.js +1 -11
- package/dist/hooks/useRefreshToken/useRefreshToken.js.map +1 -1
- package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js +5 -3
- package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js.map +1 -1
- package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js +1 -1
- package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.js.map +1 -1
- package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js +8 -2
- package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.js.map +1 -1
- package/dist/types/search.js +4 -1
- package/dist/types/search.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
2
|
// Copyright LEAV Solutions 2017
|
|
14
3
|
// This file is released under LGPL V3
|
|
@@ -18,14 +7,13 @@ import { themeVars } from '../../../../../antdTheme';
|
|
|
18
7
|
import { BasicButton } from '../../../../../components';
|
|
19
8
|
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
20
9
|
import { FieldScope } from '../../_types';
|
|
21
|
-
function AddValueBtn(
|
|
22
|
-
var { bordered = false, linkField = false, activeScope } = _a, props = __rest(_a, ["bordered", "linkField", "activeScope"]);
|
|
10
|
+
function AddValueBtn({ bordered = false, linkField = false, activeScope, ...props }) {
|
|
23
11
|
const { t } = useSharedTranslation();
|
|
24
|
-
return (_jsxs(BasicButton,
|
|
12
|
+
return (_jsxs(BasicButton, { bordered: bordered, ...props, style: {
|
|
25
13
|
color: activeScope === FieldScope.INHERITED
|
|
26
14
|
? themeVars.inheritedValuesVersionColor
|
|
27
15
|
: themeVars.defaultTextColor
|
|
28
|
-
}
|
|
16
|
+
}, children: [_jsx(PlusOutlined, {}), linkField ? t('record_edition.add_value_link') : t('record_edition.add_value')] }));
|
|
29
17
|
}
|
|
30
18
|
export default AddValueBtn;
|
|
31
19
|
//# sourceMappingURL=AddValueBtn.js.map
|
package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddValueBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddValueBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,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,UAAU,EAAC,MAAM,cAAc,CAAC;AAQxC,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,UAAU,CAAC,SAAS;gBAChC,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"}
|
|
@@ -15,7 +15,7 @@ function DeleteAllValuesBtn({ onDelete }) {
|
|
|
15
15
|
await onDelete();
|
|
16
16
|
setIsLoading(false);
|
|
17
17
|
};
|
|
18
|
-
return (_jsx(Popconfirm,
|
|
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
19
|
}
|
|
20
20
|
export default DeleteAllValuesBtn;
|
|
21
21
|
//# sourceMappingURL=DeleteAllValuesBtn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteAllValuesBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,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,
|
|
1
|
+
{"version":3,"file":"DeleteAllValuesBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,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"}
|
package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
2
|
// Copyright LEAV Solutions 2017
|
|
14
3
|
// This file is released under LGPL V3
|
|
@@ -16,11 +5,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
16
5
|
import { DeleteOutlined } from '@ant-design/icons';
|
|
17
6
|
import { Button, Popconfirm } from 'antd';
|
|
18
7
|
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
19
|
-
function DeleteValueBtn(
|
|
20
|
-
var { onDelete } = _a, buttonProps = __rest(_a, ["onDelete"]);
|
|
8
|
+
function DeleteValueBtn({ onDelete, ...buttonProps }) {
|
|
21
9
|
const { t } = useSharedTranslation();
|
|
22
10
|
const _handleDelete = () => onDelete();
|
|
23
|
-
return (_jsx(Popconfirm,
|
|
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" }) }));
|
|
24
12
|
}
|
|
25
13
|
export default DeleteValueBtn;
|
|
26
14
|
//# sourceMappingURL=DeleteValueBtn.js.map
|
package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteValueBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeleteValueBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAe,UAAU,EAAC,MAAM,MAAM,CAAC;AACrD,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"}
|
|
@@ -22,7 +22,7 @@ const FooterWrapper = styled.div `
|
|
|
22
22
|
`;
|
|
23
23
|
function FieldFooter({ children, bordered, style }) {
|
|
24
24
|
const { token } = theme.useToken();
|
|
25
|
-
return (_jsx(FooterWrapper,
|
|
25
|
+
return (_jsx(FooterWrapper, { style: style, "$bordered": bordered, "$themeToken": token, children: children }));
|
|
26
26
|
}
|
|
27
27
|
export default FieldFooter;
|
|
28
28
|
//# sourceMappingURL=FieldFooter.js.map
|
package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldFooter.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAG3B,OAAO,MAAmB,MAAM,mBAAmB,CAAC;AACpD,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,
|
|
1
|
+
{"version":3,"file":"FieldFooter.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAG3B,OAAO,MAAmB,MAAM,mBAAmB,CAAC;AACpD,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"}
|
|
@@ -27,7 +27,7 @@ const AddButton = styled(Button) `
|
|
|
27
27
|
`;
|
|
28
28
|
function NoValue({ canAddValue, onAddValue, linkField = false }) {
|
|
29
29
|
const { t } = useSharedTranslation();
|
|
30
|
-
return (_jsx(NoValueWrapper,
|
|
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
31
|
}
|
|
32
32
|
export default NoValue;
|
|
33
33
|
//# sourceMappingURL=NoValue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoValue.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,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,
|
|
1
|
+
{"version":3,"file":"NoValue.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,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"}
|
package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Tooltip } from 'antd';
|
|
|
7
7
|
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
8
8
|
function UpdatedFieldIcon() {
|
|
9
9
|
const { t } = useSharedTranslation();
|
|
10
|
-
return (_jsx(Tooltip,
|
|
10
|
+
return (_jsx(Tooltip, { title: t('record_edition.field_external_update'), children: _jsx(ExclamationCircleOutlined, { style: { marginLeft: '5px', fontSize: '0.9em' } }) }));
|
|
11
11
|
}
|
|
12
12
|
export default UpdatedFieldIcon;
|
|
13
13
|
//# sourceMappingURL=UpdatedFieldIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdatedFieldIcon.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,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,
|
|
1
|
+
{"version":3,"file":"UpdatedFieldIcon.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,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"}
|
package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
2
|
// Copyright LEAV Solutions 2017
|
|
14
3
|
// This file is released under LGPL V3
|
|
@@ -20,12 +9,11 @@ import { BasicButton } from '../../../../../components';
|
|
|
20
9
|
import { EditRecordReducerActionsTypes } from '../../../../../components/RecordEdition/editRecordReducer/editRecordReducer';
|
|
21
10
|
import { useEditRecordReducer } from '../../../../../components/RecordEdition/editRecordReducer/useEditRecordReducer';
|
|
22
11
|
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
23
|
-
function ValueDetailsBtn(
|
|
24
|
-
var { value, attribute, basic = false } = _a, buttonProps = __rest(_a, ["value", "attribute", "basic"]);
|
|
12
|
+
function ValueDetailsBtn({ value, attribute, basic = false, ...buttonProps }) {
|
|
25
13
|
const { dispatch } = useEditRecordReducer();
|
|
26
14
|
const { t } = useSharedTranslation();
|
|
27
15
|
const _handleClick = () => {
|
|
28
|
-
const editingValue = isTypeStandard(attribute.type) ? value
|
|
16
|
+
const editingValue = isTypeStandard(attribute.type) ? value?.value : null;
|
|
29
17
|
dispatch({
|
|
30
18
|
type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,
|
|
31
19
|
value: {
|
|
@@ -35,8 +23,8 @@ function ValueDetailsBtn(_a) {
|
|
|
35
23
|
}
|
|
36
24
|
});
|
|
37
25
|
};
|
|
38
|
-
const detailsButton = basic ? (_jsx(BasicButton,
|
|
39
|
-
return _jsx(Tooltip,
|
|
26
|
+
const detailsButton = basic ? (_jsx(BasicButton, { shape: "circle", ...buttonProps, icon: _jsx(InfoCircleOutlined, {}), onClick: _handleClick })) : (_jsx(Button, { shape: "circle", ...buttonProps, icon: _jsx(InfoOutlined, {}), onClick: _handleClick }));
|
|
27
|
+
return _jsx(Tooltip, { title: t('record_edition.value_details_tooltip'), children: detailsButton });
|
|
40
28
|
}
|
|
41
29
|
export default ValueDetailsBtn;
|
|
42
30
|
//# sourceMappingURL=ValueDetailsBtn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValueDetailsBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ValueDetailsBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,kBAAkB,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,MAAM,EAAe,OAAO,EAAC,MAAM,MAAM,CAAC;AAClD,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,6BAA6B,EAAC,MAAM,kEAAkE,CAAC;AAC/G,OAAO,EAAC,oBAAoB,EAAC,MAAM,qEAAqE,CAAC;AACzG,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAUpE,SAAS,eAAe,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,WAAW,EAAwB;IAC7F,MAAM,EAAC,QAAQ,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAC1C,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,MAAM,YAAY,GAAG,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAE,KAAiC,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;QACvG,QAAQ,CAAC;YACL,IAAI,EAAE,6BAA6B,CAAC,gBAAgB;YACpD,KAAK,EAAE;gBACH,KAAK;gBACL,YAAY;gBACZ,SAAS;aACZ;SACJ,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,CAC1B,KAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,KAAK,WAAW,EAAE,IAAI,EAAE,KAAC,kBAAkB,KAAG,EAAE,OAAO,EAAE,YAAY,GAAI,CACvG,CAAC,CAAC,CAAC,CACA,KAAC,MAAM,IAAC,KAAK,EAAC,QAAQ,KAAK,WAAW,EAAE,IAAI,EAAE,KAAC,YAAY,KAAG,EAAE,OAAO,EAAE,YAAY,GAAI,CAC5F,CAAC;IAEF,OAAO,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,CAAC,sCAAsC,CAAC,YAAG,aAAa,GAAW,CAAC;AAChG,CAAC;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { RecordProperty } from '../../../../../_queries/records/getRecordPropertiesQuery';
|
|
3
3
|
import { RecordFormAttributeFragment } from '../../../../../_gqlTypes';
|
|
4
|
-
|
|
4
|
+
export declare const useValueDetailsButton: ({ attribute, value }: {
|
|
5
5
|
attribute: RecordFormAttributeFragment;
|
|
6
6
|
value: RecordProperty | null;
|
|
7
|
-
}
|
|
8
|
-
export declare const useValueDetailsButton: ({ attribute, value }: IUseValueDetailsButtonProps) => {
|
|
7
|
+
}) => {
|
|
9
8
|
onValueDetailsButtonClick: () => void;
|
|
10
9
|
infoIconWithTooltip: JSX.Element;
|
|
11
10
|
};
|
|
12
|
-
export {};
|
|
@@ -8,11 +8,12 @@ import { useEditRecordReducer } from '../../../../../components/RecordEdition/ed
|
|
|
8
8
|
import { Tooltip } from 'antd';
|
|
9
9
|
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
10
10
|
import { InfoOutlined } from '@ant-design/icons';
|
|
11
|
+
const isIRecordPropertyStandard = (value, type) => isTypeStandard(type);
|
|
11
12
|
export const useValueDetailsButton = ({ attribute, value }) => {
|
|
12
13
|
const { t } = useSharedTranslation();
|
|
13
14
|
const { dispatch } = useEditRecordReducer();
|
|
14
15
|
const onValueDetailsButtonClick = () => {
|
|
15
|
-
const editingValue =
|
|
16
|
+
const editingValue = isIRecordPropertyStandard(value, attribute.type) ? value?.value : null;
|
|
16
17
|
dispatch({
|
|
17
18
|
type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,
|
|
18
19
|
value: {
|
|
@@ -22,7 +23,7 @@ export const useValueDetailsButton = ({ attribute, value }) => {
|
|
|
22
23
|
}
|
|
23
24
|
});
|
|
24
25
|
};
|
|
25
|
-
const infoIconWithTooltip = (_jsx(Tooltip,
|
|
26
|
+
const infoIconWithTooltip = (_jsx(Tooltip, { title: t('record_edition.value_details_tooltip'), children: _jsx(InfoOutlined, {}) }));
|
|
26
27
|
return { onValueDetailsButtonClick, infoIconWithTooltip };
|
|
27
28
|
};
|
|
28
29
|
//# sourceMappingURL=useValueDetailsButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useValueDetailsButton.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAC,6BAA6B,EAAC,MAAM,kEAAkE,CAAC;AAE/G,OAAO,EAAC,oBAAoB,EAAC,MAAM,qEAAqE,CAAC;AACzG,OAAO,EAAC,OAAO,EAAC,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"useValueDetailsButton.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAC,6BAA6B,EAAC,MAAM,kEAAkE,CAAC;AAE/G,OAAO,EAAC,oBAAoB,EAAC,MAAM,qEAAqE,CAAC;AACzG,OAAO,EAAC,OAAO,EAAC,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE/C,MAAM,yBAAyB,GAAG,CAAC,KAAqB,EAAE,IAAmB,EAAoC,EAAE,CAC/G,cAAc,CAAC,IAAI,CAAC,CAAC;AAEzB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EAClC,SAAS,EACT,KAAK,EAIR,EAAE,EAAE;IACD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,QAAQ,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAE1C,MAAM,yBAAyB,GAAG,GAAG,EAAE;QACnC,MAAM,YAAY,GAAG,yBAAyB,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;QAC5F,QAAQ,CAAC;YACL,IAAI,EAAE,6BAA6B,CAAC,gBAAgB;YACpD,KAAK,EAAE;gBACH,KAAK;gBACL,YAAY;gBACZ,SAAS;aACZ;SACJ,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,MAAM,mBAAmB,GAAG,CACxB,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,CAAC,sCAAsC,CAAC,YACrD,KAAC,YAAY,KAAG,GACV,CACb,CAAC;IAEF,OAAO,EAAC,yBAAyB,EAAE,mBAAmB,EAAC,CAAC;AAC5D,CAAC,CAAC"}
|
package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
2
|
// Copyright LEAV Solutions 2017
|
|
14
3
|
// This file is released under LGPL V3
|
|
@@ -20,8 +9,7 @@ import { BasicButton } from '../../../../../components';
|
|
|
20
9
|
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
21
10
|
import { getValueVersionLabel } from '../../../../../_utils';
|
|
22
11
|
import { FieldScope } from '../../_types';
|
|
23
|
-
function ValuesVersionBtn(
|
|
24
|
-
var { versions, activeScope, onScopeChange, basic } = _a, buttonProps = __rest(_a, ["versions", "activeScope", "onScopeChange", "basic"]);
|
|
12
|
+
function ValuesVersionBtn({ versions, activeScope, onScopeChange, basic, ...buttonProps }) {
|
|
25
13
|
const { t } = useSharedTranslation();
|
|
26
14
|
const hasInheritedVersion = !!versions[FieldScope.INHERITED];
|
|
27
15
|
const _handleVersionSelect = item => {
|
|
@@ -36,11 +24,11 @@ function ValuesVersionBtn(_a) {
|
|
|
36
24
|
paddingTop: '5px'
|
|
37
25
|
}
|
|
38
26
|
};
|
|
39
|
-
const icon = activeScope === FieldScope.CURRENT ? _jsx(VscLayersActive,
|
|
27
|
+
const icon = activeScope === FieldScope.CURRENT ? _jsx(VscLayersActive, { ...iconProps }) : _jsx(VscLayers, { ...iconProps });
|
|
40
28
|
const menuItems = [
|
|
41
29
|
{
|
|
42
30
|
key: FieldScope.CURRENT,
|
|
43
|
-
label: (_jsxs(Space,
|
|
31
|
+
label: (_jsxs(Space, { style: { paddingLeft: hasInheritedVersion ? '1rem' : 0 }, children: [icon, currentVersionLabel] })),
|
|
44
32
|
onClick: _handleVersionSelect
|
|
45
33
|
}
|
|
46
34
|
];
|
|
@@ -53,7 +41,7 @@ function ValuesVersionBtn(_a) {
|
|
|
53
41
|
color: themeVars.inheritedValuesVersionColor
|
|
54
42
|
}
|
|
55
43
|
};
|
|
56
|
-
const inheritedIcon = activeScope === FieldScope.INHERITED ? (_jsx(VscLayersActive,
|
|
44
|
+
const inheritedIcon = activeScope === FieldScope.INHERITED ? (_jsx(VscLayersActive, { ...inheritedIconProps })) : (_jsx(VscLayers, { ...inheritedIconProps }));
|
|
57
45
|
menuItems.unshift({
|
|
58
46
|
key: FieldScope.INHERITED,
|
|
59
47
|
label: (_jsxs(Space, { children: [inheritedIcon, inheritedVersionLabel] })),
|
|
@@ -61,8 +49,8 @@ function ValuesVersionBtn(_a) {
|
|
|
61
49
|
});
|
|
62
50
|
}
|
|
63
51
|
const buttonIcon = _jsx(VscLayers, { size: "1.35em", style: { paddingTop: '3px' } });
|
|
64
|
-
const button = basic ? (_jsx(BasicButton,
|
|
65
|
-
return (_jsx(Dropdown,
|
|
52
|
+
const button = basic ? (_jsx(BasicButton, { "aria-label": "values-version", shape: "circle", ...buttonProps, icon: buttonIcon, centered: true })) : (_jsx(Button, { "aria-label": "values-version", shape: "circle", ...buttonProps, icon: buttonIcon }));
|
|
53
|
+
return (_jsx(Dropdown, { trigger: ['click'], menu: { items: menuItems, activeKey: activeScope }, children: button }));
|
|
66
54
|
}
|
|
67
55
|
export default ValuesVersionBtn;
|
|
68
56
|
//# sourceMappingURL=ValuesVersionBtn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValuesVersionBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ValuesVersionBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,MAAM,EAAe,QAAQ,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AAG1D,OAAO,EAAC,SAAS,EAAE,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,oBAAoB,EAAC,MAAM,YAAY,CAAC;AAChD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AASxC,SAAS,gBAAgB,CAAC,EACtB,QAAQ,EACR,WAAW,EACX,aAAa,EACb,KAAK,EACL,GAAG,WAAW,EACO;IACrB,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,mBAAmB,GAAG,CAAC,CAAC,QAAQ,CAAC,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CAAC,SAAS,CAAC,CAAC,CAAC,CACnC,KAAC,eAAe,OAAK,kBAAkB,GAAI,CAC9C,CAAC,CAAC,CAAC,CACA,KAAC,SAAS,OAAK,kBAAkB,GAAI,CACxC,CAAC;QACN,SAAS,CAAC,OAAO,CAAC;YACd,GAAG,EAAE,UAAU,CAAC,SAAS;YACzB,KAAK,EAAE,CACH,MAAC,KAAK,eACD,aAAa,EACb,qBAAqB,IAClB,CACX;YACD,OAAO,EAAE,oBAAoB;SAChC,CAAC,CAAC;KACN;IAED,MAAM,UAAU,GAAG,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAC,UAAU,EAAE,KAAK,EAAC,GAAI,CAAC;IAC3E,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,CACnB,KAAC,WAAW,kBAAY,gBAAgB,EAAC,KAAK,EAAC,QAAQ,KAAK,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,SAAG,CACzG,CAAC,CAAC,CAAC,CACA,KAAC,MAAM,kBAAY,gBAAgB,EAAC,KAAK,EAAC,QAAQ,KAAK,WAAW,EAAE,IAAI,EAAE,UAAU,GAAI,CAC3F,CAAC;IAEF,OAAO,CACH,KAAC,QAAQ,IAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,EAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAC,YACzE,MAAM,GACA,CACd,CAAC;AACN,CAAC;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -5,10 +5,9 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
5
5
|
import { Col, Row } from 'antd';
|
|
6
6
|
import { useRecordEditionContext } from '../../hooks/useRecordEditionContext';
|
|
7
7
|
function Container({ element, onValueSubmit, onValueDelete, onDeleteMultipleValues }) {
|
|
8
|
-
var _a;
|
|
9
8
|
const { elements: formElements } = useRecordEditionContext();
|
|
10
|
-
const children =
|
|
11
|
-
return (_jsx(_Fragment, { children: children.map(el => (_jsx(Row,
|
|
9
|
+
const children = formElements[element.id] ?? [];
|
|
10
|
+
return (_jsx(_Fragment, { children: children.map(el => (_jsx(Row, { "data-testid": "container-child-element", children: _jsx(Col, { span: 24, children: el.uiElement && (_jsx(el.uiElement, { element: el, onValueSubmit: onValueSubmit, onValueDelete: onValueDelete, onDeleteMultipleValues: onDeleteMultipleValues })) }) }, el.id))) }));
|
|
12
11
|
}
|
|
13
12
|
export default Container;
|
|
14
13
|
//# sourceMappingURL=Container.js.map
|
package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/Container/Container.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,GAAG,EAAE,GAAG,EAAC,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAC,uBAAuB,EAAC,MAAM,qCAAqC,CAAC;AAG5E,SAAS,SAAS,CAAC,EACf,OAAO,EACP,aAAa,EACb,aAAa,EACb,sBAAsB,EACF
|
|
1
|
+
{"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/Container/Container.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,GAAG,EAAE,GAAG,EAAC,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAC,uBAAuB,EAAC,MAAM,qCAAqC,CAAC;AAG5E,SAAS,SAAS,CAAC,EACf,OAAO,EACP,aAAa,EACb,aAAa,EACb,sBAAsB,EACF;IACpB,MAAM,EAAC,QAAQ,EAAE,YAAY,EAAC,GAAG,uBAAuB,EAAE,CAAC;IAC3D,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;IAEhD,OAAO,CACH,4BACK,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAChB,KAAC,GAAG,mBAAa,yBAAyB,YACtC,KAAC,GAAG,IAAC,IAAI,EAAE,EAAE,YACR,EAAE,CAAC,SAAS,IAAI,CACb,KAAC,EAAE,CAAC,SAAS,IACT,OAAO,EAAE,EAAE,EACX,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa,EAC5B,sBAAsB,EAAE,sBAAsB,GAChD,CACL,GACC,IAVsC,EAAE,CAAC,EAAE,CAW/C,CACT,CAAC,GACH,CACN,CAAC;AACN,CAAC;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -3,10 +3,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
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
5
|
import { FrownFilled } from '@ant-design/icons';
|
|
6
|
+
import { localizedTranslation } from '@leav/utils';
|
|
6
7
|
import { theme } from 'antd';
|
|
7
8
|
import styled from 'styled-components';
|
|
8
9
|
import { themeVars } from '../../../../../antdTheme';
|
|
9
10
|
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
11
|
+
import { useLang } from '../../../../../hooks';
|
|
10
12
|
const Wrapper = styled.div `
|
|
11
13
|
position: relative;
|
|
12
14
|
border: 1px solid ${themeVars.errorColor};
|
|
@@ -57,7 +59,9 @@ const Message = styled.div `
|
|
|
57
59
|
function ErrorField({ element }) {
|
|
58
60
|
const { t } = useSharedTranslation();
|
|
59
61
|
const { token } = theme.useToken();
|
|
60
|
-
|
|
62
|
+
const { lang: availbaleLangs } = useLang();
|
|
63
|
+
const label = localizedTranslation(element.settings.label, availbaleLangs);
|
|
64
|
+
return (_jsxs(Wrapper, { "$themeToken": token, children: [_jsx("label", { children: label }), _jsxs(ErrorContent, { children: [_jsx(IconWrapper, { children: _jsx(FrownFilled, { color: "yellow", size: 48 }) }), _jsx(Title, { children: t('error.error_occurred') }), _jsx(Message, { children: element.valueError })] })] }));
|
|
61
65
|
}
|
|
62
66
|
export default ErrorField;
|
|
63
67
|
//# sourceMappingURL=ErrorField.js.map
|
package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorField.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ErrorField.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAwB,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACxE,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAC3B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAiB,SAAS,EAAC,MAAM,eAAe,CAAC;AACxD,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAA+B;;wBAEjC,SAAS,CAAC,UAAU;;qBAEvB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,YAAY;;;;;;;;iBAQnC,SAAS,CAAC,UAAU;;;;;;CAMpC,CAAC;AAEF,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAM9B,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;aAOjB,SAAS,CAAC,UAAU;CAChC,CAAC;AAEF,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAKvB,CAAC;AAEF,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;aAEb,SAAS,CAAC,kBAAkB;;;CAGxC,CAAC;AAEF,SAAS,UAAU,CAAC,EAAC,OAAO,EAA2C;IACnE,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,KAAK,EAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IACjC,MAAM,EAAC,IAAI,EAAE,cAAc,EAAC,GAAG,OAAO,EAAE,CAAC;IAEzC,MAAM,KAAK,GAAG,oBAAoB,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IAE3E,OAAO,CACH,MAAC,OAAO,mBAAc,KAAK,aACvB,0BAAQ,KAAK,GAAS,EACtB,MAAC,YAAY,eACT,KAAC,WAAW,cACR,KAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAE,EAAE,GAAI,GAC9B,EACd,KAAC,KAAK,cAAE,CAAC,CAAC,sBAAsB,CAAC,GAAS,EAC1C,KAAC,OAAO,cAAE,OAAO,CAAC,UAAU,GAAW,IAC5B,IACT,CACb,CAAC;AACN,CAAC;AAED,eAAe,UAAU,CAAC"}
|
package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Divider } from 'antd';
|
|
3
3
|
function FormDivider({ element }) {
|
|
4
|
-
|
|
5
|
-
const label = (_a = element.settings.title) !== null && _a !== void 0 ? _a : null;
|
|
4
|
+
const label = element.settings.title ?? null;
|
|
6
5
|
return _jsx(Divider, { children: label });
|
|
7
6
|
}
|
|
8
7
|
export default FormDivider;
|
package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormDivider.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,OAAO,EAAC,MAAM,MAAM,CAAC;AAI7B,SAAS,WAAW,CAAC,EAAC,OAAO,EAA0C
|
|
1
|
+
{"version":3,"file":"FormDivider.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,OAAO,EAAC,MAAM,MAAM,CAAC;AAI7B,SAAS,WAAW,CAAC,EAAC,OAAO,EAA0C;IACnE,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,IAAI,IAAI,CAAC;IAC7C,OAAO,KAAC,OAAO,cAAE,KAAK,GAAW,CAAC;AACtC,CAAC;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
2
|
// Copyright LEAV Solutions 2017
|
|
14
3
|
// This file is released under LGPL V3
|
|
@@ -29,8 +18,7 @@ const StyledTabs = styled(Tabs) `
|
|
|
29
18
|
overflow: visible;
|
|
30
19
|
}
|
|
31
20
|
`;
|
|
32
|
-
function FormTabs(
|
|
33
|
-
var { element } = _a, elementProps = __rest(_a, ["element"]);
|
|
21
|
+
function FormTabs({ element, ...elementProps }) {
|
|
34
22
|
const { lang } = useLang();
|
|
35
23
|
const tabPosition = element.settings.direction === TabsDirection.VERTICAL ? 'left' : 'top';
|
|
36
24
|
const tabItems = element.settings.tabs.map(tab => {
|
|
@@ -48,7 +36,7 @@ function FormTabs(_a) {
|
|
|
48
36
|
return {
|
|
49
37
|
label: localizedTranslation(tab.label, lang),
|
|
50
38
|
key: tab.id,
|
|
51
|
-
children: _jsx(tabContainer.uiElement,
|
|
39
|
+
children: _jsx(tabContainer.uiElement, { ...elementProps, element: tabContainer })
|
|
52
40
|
};
|
|
53
41
|
});
|
|
54
42
|
return _jsx(StyledTabs, { tabPosition: tabPosition, "data-testid": "form-tabs", items: tabItems });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormTabs.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormTabs.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,kBAAkB,EAAmB,oBAAoB,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AACpG,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;A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ED,eAAe,QAAQ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ICommonFieldsSettings } from '@leav/utils';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
3
|
import { RecordFormElementsValueLinkValue } from '../../../../../hooks/useGetRecordForm/useGetRecordForm';
|
|
4
4
|
import { ILinkFieldState } from '../../reducers/linkFieldReducer/linkFieldReducer';
|
|
5
5
|
import { IFormElementProps } from '../../_types';
|
|
6
6
|
export declare type LinkFieldReducerState = ILinkFieldState<RecordFormElementsValueLinkValue>;
|
|
7
|
-
declare
|
|
7
|
+
declare const LinkField: FunctionComponent<IFormElementProps<ICommonFieldsSettings>>;
|
|
8
8
|
export default LinkField;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Copyright LEAV Solutions 2017
|
|
3
|
+
// This file is released under LGPL V3
|
|
4
|
+
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
+
import { localizedTranslation } from '@leav/utils';
|
|
2
6
|
import { useContext, useEffect, useReducer } from 'react';
|
|
3
7
|
import CreationErrorContext from '../../../../../components/RecordEdition/EditRecord/creationErrorContext';
|
|
4
8
|
import { useEditRecordReducer } from '../../../../../components/RecordEdition/editRecordReducer/useEditRecordReducer';
|
|
@@ -12,8 +16,10 @@ import { APICallStatus } from '../../_types';
|
|
|
12
16
|
import { MonoValueSelect } from '../../../../../components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect';
|
|
13
17
|
import { AntForm } from 'aristid-ds';
|
|
14
18
|
import { MultiValueSelect } from './MultiValueSelect/MultiValueSelect';
|
|
15
|
-
|
|
19
|
+
import { useLang } from '../../../../../hooks';
|
|
20
|
+
const LinkField = ({ element, onValueSubmit, onValueDelete }) => {
|
|
16
21
|
const { t } = useSharedTranslation();
|
|
22
|
+
const { lang } = useLang();
|
|
17
23
|
const { readOnly: isRecordReadOnly, record } = useRecordEditionContext();
|
|
18
24
|
const { state: editRecordState } = useEditRecordReducer();
|
|
19
25
|
const creationErrors = useContext(CreationErrorContext);
|
|
@@ -44,7 +50,6 @@ function LinkField({ element, onValueSubmit, onValueDelete, onDeleteMultipleValu
|
|
|
44
50
|
}
|
|
45
51
|
};
|
|
46
52
|
const _handleUpdateValueSubmit = async (values) => {
|
|
47
|
-
var _a;
|
|
48
53
|
const valuesToSave = values.map(value => ({
|
|
49
54
|
attribute,
|
|
50
55
|
idValue: value.idValue,
|
|
@@ -58,20 +63,24 @@ function LinkField({ element, onValueSubmit, onValueDelete, onDeleteMultipleValu
|
|
|
58
63
|
});
|
|
59
64
|
}
|
|
60
65
|
else if (res.values) {
|
|
61
|
-
const formattedValues = res.values.map(v => {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
const formattedValues = res.values.map(v => ({
|
|
67
|
+
...v,
|
|
68
|
+
version: arrayValueVersionToObject(v.version),
|
|
69
|
+
metadata: v.metadata?.map(metadata => ({
|
|
70
|
+
...metadata,
|
|
71
|
+
value: {
|
|
72
|
+
...metadata.value,
|
|
73
|
+
version: arrayValueVersionToObject(metadata.value?.version ?? [])
|
|
74
|
+
}
|
|
75
|
+
}))
|
|
76
|
+
}));
|
|
68
77
|
dispatch({
|
|
69
78
|
type: LinkFieldReducerActionsType.ADD_VALUES,
|
|
70
79
|
values: formattedValues
|
|
71
80
|
});
|
|
72
81
|
}
|
|
73
|
-
if (
|
|
74
|
-
const selectedRecordsById = values.reduce((acc, cur) => (
|
|
82
|
+
if (res?.errors?.length) {
|
|
83
|
+
const selectedRecordsById = values.reduce((acc, cur) => ({ ...acc, [cur.value.id]: cur.value }), {});
|
|
75
84
|
const errorsMessage = res.errors.map(err => {
|
|
76
85
|
const linkedRecordLabel = selectedRecordsById[err.input].label || selectedRecordsById[err.input].id;
|
|
77
86
|
return `${linkedRecordLabel}: ${err.message}`;
|
|
@@ -82,12 +91,13 @@ function LinkField({ element, onValueSubmit, onValueDelete, onDeleteMultipleValu
|
|
|
82
91
|
});
|
|
83
92
|
}
|
|
84
93
|
};
|
|
85
|
-
|
|
94
|
+
const label = localizedTranslation(state.formElement.settings.label, lang);
|
|
95
|
+
return (_jsx(AntForm.Item, { name: attribute.id, rules: [
|
|
86
96
|
{
|
|
87
97
|
required: state.formElement.settings.required,
|
|
88
98
|
message: t('errors.standard_field_required')
|
|
89
99
|
}
|
|
90
|
-
]
|
|
91
|
-
}
|
|
100
|
+
], children: attribute.multiple_values === true ? (_jsx(MultiValueSelect, { activeValues: activeValues, attribute: attribute, label: label, required: state.formElement.settings.required, shouldShowValueDetailsButton: editRecordState.withInfoButton, onValueDeselect: _handleDeleteValue, onSelectChange: _handleUpdateValueSubmit })) : (_jsx(MonoValueSelect, { activeValue: activeValues[0], attribute: attribute, label: label, required: state.formElement.settings.required, shouldShowValueDetailsButton: editRecordState.withInfoButton, onSelectClear: _handleDeleteValue, onSelectChange: _handleUpdateValueSubmit })) }));
|
|
101
|
+
};
|
|
92
102
|
export default LinkField;
|
|
93
103
|
//# sourceMappingURL=LinkField.js.map
|
package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkField.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"LinkField.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAwB,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACxE,OAAO,EAA6B,UAAU,EAAE,SAAS,EAAE,UAAU,EAAC,MAAM,OAAO,CAAC;AACpF,OAAO,oB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