@leav/ui 0.3.5-e362870 → 0.3.6-2becf21
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 +0 -1
- package/dist/__mocks__/common/attribute.js.map +1 -1
- package/dist/__mocks__/common/form.d.ts +4 -4
- package/dist/__mocks__/common/library.d.ts +31 -31
- package/dist/__mocks__/common/value.js +2 -2
- package/dist/__mocks__/common/value.js.map +1 -1
- package/dist/__mocks__/react-i18next.d.ts +9 -9
- package/dist/__mocks__/react-i18next.js.map +1 -1
- package/dist/_gqlTypes/index.d.ts +600 -595
- package/dist/_gqlTypes/index.js +6 -5
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/attributes/attributeDetailsFragment.js +0 -1
- package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
- package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +1 -1
- package/dist/_queries/records/getFileDataQuery.d.ts +1 -1
- package/dist/_queries/records/getRecordColumnsValues.d.ts +2 -2
- package/dist/_queries/records/getRecordPropertiesQuery.d.ts +4 -4
- package/dist/_queries/records/getRecordPropertiesQuery.js +4 -4
- package/dist/_queries/records/getRecordsFromLibraryQuery.d.ts +1 -1
- package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
- package/dist/_queries/values/valueDetailsFragment.js +7 -5
- package/dist/_queries/values/valueDetailsFragment.js.map +1 -1
- package/dist/_utils/__mocks__/isDevEnv.d.ts +1 -0
- package/dist/_utils/__mocks__/{isDevelopmentHelper.js → isDevEnv.js} +2 -2
- package/dist/_utils/__mocks__/isDevEnv.js.map +1 -0
- package/dist/_utils/getFiltersFromRequest.js.map +1 -1
- package/dist/_utils/getRequestFromFilter.js.map +1 -1
- package/dist/_utils/index.d.ts +1 -1
- package/dist/_utils/index.js +1 -1
- package/dist/_utils/index.js.map +1 -1
- package/dist/_utils/isDevEnv.d.ts +1 -0
- package/dist/_utils/{isDevelopmentHelper.js → isDevEnv.js} +2 -2
- package/dist/_utils/isDevEnv.js.map +1 -0
- package/dist/antdTheme/index.js +1 -1
- package/dist/antdTheme/index.js.map +1 -1
- package/dist/antdTheme/types.d.ts +1 -1
- package/dist/components/AttributePicker/AttributePicker.d.ts +0 -1
- package/dist/components/AttributePicker/AttributesList/AttributesList.d.ts +0 -1
- package/dist/components/AttributePicker/AttributesList/AttributesList.js.map +1 -1
- package/dist/components/AttributesSelectionList/Attribute/Attribute.d.ts +0 -1
- package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +0 -1
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +1 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.d.ts +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js.map +1 -1
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +1 -1
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.d.ts +0 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.d.ts +1 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js.map +1 -1
- package/dist/components/AttributesSelectionList/sharedComponents.d.ts +302 -305
- package/dist/components/BasicButton/BasicButton.d.ts +0 -1
- package/dist/components/CreateDirectory/CreateDirectory.d.ts +0 -1
- package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +0 -1
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +1 -1
- package/dist/components/Dimmer/Dimmer.d.ts +0 -1
- package/dist/components/EditApplication/EditApplication.d.ts +0 -1
- package/dist/components/EditApplication/EditApplication.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.d.ts +0 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfo.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.d.ts +0 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/ModuleSelector/ModuleSelector.d.ts +0 -1
- package/dist/components/EditApplication/_types.d.ts +0 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.d.ts +0 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttribute.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.d.ts +0 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.d.ts +0 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttributeModal.d.ts +0 -1
- package/dist/components/EditAttributeModal/EditAttributeModal.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.d.ts +0 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibrary.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributeCell/AttributeCell.d.ts +0 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.d.ts +1 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/AttributesList.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.d.ts +0 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.d.ts +0 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/EditLibraryAttributes.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryIndexation/EditLibraryIndexation.d.ts +0 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.d.ts +0 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfo.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.d.ts +0 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryInfo/EditLibraryInfoForm/EditLibraryInfoForm.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditLibraryPreviewsSettings.d.ts +0 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/EditPreviewsSettingsModal.d.ts +0 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.d.ts +0 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/EditPreviewsSettingsModal/SizesEditor/SizesEditor.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.d.ts +0 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryPreviewsSettings/PreviewsSettingsList/PreviewsSettingsList.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibraryModal.d.ts +0 -1
- package/dist/components/EditLibraryModal/EditLibraryModal.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTree.d.ts +0 -1
- package/dist/components/EditTreeModal/EditTree/EditTree.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.d.ts +0 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfo.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.d.ts +1 -2
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js.map +1 -1
- package/dist/components/EditTreeModal/EditTreeModal.d.ts +0 -1
- package/dist/components/EditTreeModal/EditTreeModal.js.map +1 -1
- package/dist/components/EntityCard/EntityCard.d.ts +0 -1
- package/dist/components/EntityCard/EntityCard.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreview.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.d.ts +0 -1
- package/dist/components/EntityPreview/EntityPreviewList/EntityPreviewList.js.map +1 -1
- package/dist/components/EntityPreview/EntityPreviewList/SimplisticEntityPreview/SimplisticEntityPreview.d.ts +0 -1
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.d.ts +0 -1
- package/dist/components/EntityPreview/EntityPreviewTile/EntityPreviewTile.js.map +1 -1
- package/dist/components/EntityPreview/_types.d.ts +0 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +0 -1
- package/dist/components/ExportModal/ExportModal.d.ts +0 -1
- package/dist/components/ExportModal/ExportModal.js.map +1 -1
- package/dist/components/FloatingMenu/FloatingMenu.d.ts +0 -1
- package/dist/components/FloatingMenu/_types.d.ts +1 -2
- package/dist/components/ImageLoading/ImageLoading.d.ts +0 -1
- package/dist/components/ImageMissing/ImageMissing.d.ts +0 -1
- package/dist/components/ImportModal/ImportModal.d.ts +0 -1
- package/dist/components/ImportModal/ImportModal.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.d.ts +0 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportKeysSelector/ImportKeysSelector.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportMappingRowTitle/ImportMappingRowTitle.d.ts +0 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.d.ts +0 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportScheduleModal/ImportScheduleModal.d.ts +0 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportSheetSettings/ImportSheetSettings.d.ts +0 -1
- package/dist/components/ImportModal/ImportModalDoneStep/ImportModalDoneStep.d.ts +0 -1
- package/dist/components/ImportModal/ImportModalProcessingStep/ImportModalProcessingStep.d.ts +0 -1
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.d.ts +0 -1
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +22 -6
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
- package/dist/components/ImportModal/importReducer/ImportReducerContext.d.ts +0 -1
- package/dist/components/ImportModal/importReducer/importReducer.d.ts +1 -1
- package/dist/components/ImportModal/importReducer/importReducer.js.map +1 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.d.ts +0 -1
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.d.ts +0 -1
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +0 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +4 -4
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +4 -14
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.d.ts +2 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.js +16 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.js.map +1 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.d.ts +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.d.ts +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.d.ts +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.d.ts +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.d.ts +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.d.ts +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js.map +1 -1
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsList.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.d.ts +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.d.ts +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.d.ts +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +3 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.d.ts +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.d.ts +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.d.ts +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.d.ts +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.d.ts +6 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.d.ts +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalContext.d.ts +1 -3
- package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalContext.js +2 -18
- package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalContext.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalProvider.d.ts +6 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalProvider.js +21 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalProvider.js.map +1 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.d.ts +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/useEditRecordModalContext.d.ts +1 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/useEditRecordModalContext.js +7 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/useEditRecordModalContext.js.map +1 -0
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.d.ts +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.d.ts +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.d.ts +0 -1
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuView/MenuView.d.ts +0 -1
- package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.d.ts +0 -1
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.d.ts +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.d.ts +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +2 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js.map +1 -1
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.d.ts +0 -1
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.d.ts +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.d.ts +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/View.d.ts +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.d.ts +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +2 -2
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +0 -1
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.d.ts +1 -1
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +1 -1
- package/dist/components/LibraryItemsList/manageItems.js.map +1 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +0 -1
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.d.ts +1 -5
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +1 -5
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js.map +1 -1
- package/dist/components/LibraryItemsList/shared/shared.utils.d.ts +4 -0
- package/dist/components/LibraryItemsList/shared/shared.utils.js +9 -0
- package/dist/components/LibraryItemsList/shared/shared.utils.js.map +1 -0
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.d.ts +0 -1
- package/dist/components/LibraryPicker/LibrariesList/LibrariesList.js.map +1 -1
- package/dist/components/LibraryPicker/LibraryPicker.d.ts +0 -1
- package/dist/components/List/List.d.ts +0 -1
- package/dist/components/List/List.js.map +1 -1
- package/dist/components/Loading/Loading.d.ts +0 -1
- package/dist/components/RecordCard/RecordCard.d.ts +0 -1
- package/dist/components/RecordCard/_types.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +6 -2
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecord/ValuesVersionSummary/ValuesVersionSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/creationErrorContext.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordBtn/EditRecordBtn.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +14 -11
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +32 -21
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useDeleteValueMutation.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/__mocks__/useSaveValueMutation.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteDeleteValueMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRecordEditionContext.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +8 -8
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +2 -8
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +4 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/ErrorField/ErrorField.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormDivider/FormDivider.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +3 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
- 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 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +3 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +5 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +12 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.d.ts +10 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +44 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +14 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +45 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +4 -10
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputPasswordWrapper.d.ts +14 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputPasswordWrapper.js +63 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputPasswordWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +3 -9
- 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 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +3 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.d.ts +0 -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/ColorInput.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/DateInput.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/NumberInput.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/RichTextEditorInput.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +19 -16
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/TreeFieldValue.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/index.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +1 -2
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +96 -99
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.d.ts +0 -1
- package/dist/components/RecordEdition/_types.d.ts +2 -2
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +2 -2
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/hooks/useCreateCancelConfirm/useCreateCancelConfirm.d.ts +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModal.d.ts +0 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.d.ts +0 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/AudioFile/AudioFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.d.ts +0 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/DocumentFile/DocumentFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.d.ts +0 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalContent.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/FileModalSidebar/FileModalSidebar.d.ts +0 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.d.ts +0 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/ImageFile/ImageFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.d.ts +0 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/NoDisplayFile/NoDisplayFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.d.ts +0 -1
- package/dist/components/RecordPreviewWithModal/FileModal/FileModalContent/VideoFile/VideoFile.js.map +1 -1
- package/dist/components/RecordPreviewWithModal/RecordPreviewWithModal.js.map +1 -1
- package/dist/components/SearchModal/SearchModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +0 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +0 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
- package/dist/components/SubmitStateNotifier/SubmitStateNotifier.d.ts +0 -1
- package/dist/components/SubmitStateNotifier/SubmitStateNotifier.js.map +1 -1
- package/dist/components/SubmitStateNotifier/_types.d.ts +1 -1
- package/dist/components/TreePicker/TreePicker.d.ts +0 -1
- package/dist/components/TreePicker/TreesList/TreesList.d.ts +0 -1
- package/dist/components/TreePicker/TreesList/TreesList.js.map +1 -1
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.d.ts +0 -1
- package/dist/components/TriggerPreviewsGenerationModal/TriggerPreviewsGenerationModal.js.map +1 -1
- package/dist/components/UploadFiles/UploadFiles.d.ts +0 -1
- package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.d.ts +0 -1
- package/dist/components/ValuesVersionConfigurator/ValuesVersionConfigurator.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.d.ts +0 -1
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.js +2 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useAppLang/useAppLang.js.map +1 -1
- package/dist/hooks/useAuth/useAuth.js.map +1 -1
- package/dist/hooks/useCanEditRecord/useCanEditRecord.js.map +1 -1
- package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +1 -1
- package/dist/hooks/useGetPreparedFileData/useGetPreparedFileData.js.map +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +6 -6
- package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.d.ts +1 -1
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.d.ts +1 -1
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
- package/dist/hooks/useLang/useLang.js.map +1 -1
- package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.d.ts +1 -1
- package/dist/hooks/useLibraryVersionTrees/useLibraryVersionTrees.js.map +1 -1
- package/dist/hooks/useLoginChecker/index.d.ts +1 -0
- package/dist/hooks/{useRefreshToken → useLoginChecker}/index.js +1 -1
- package/dist/hooks/{useRefreshToken → useLoginChecker}/index.js.map +1 -1
- package/dist/hooks/useLoginChecker/useLoginChecker.d.ts +3 -0
- package/dist/hooks/useLoginChecker/useLoginChecker.js +17 -0
- package/dist/hooks/useLoginChecker/useLoginChecker.js.map +1 -0
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
- package/dist/hooks/useRedirectToLogin/index.d.ts +1 -0
- package/dist/hooks/useRedirectToLogin/index.js +5 -0
- package/dist/hooks/useRedirectToLogin/index.js.map +1 -0
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.d.ts +3 -0
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +15 -0
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -0
- package/dist/hooks/useRefreshFieldValues/useRefreshFieldValues.js.map +1 -1
- package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.d.ts +1 -1
- package/dist/hooks/useSharedTranslation/useSharedTranslation.js.map +1 -1
- package/dist/hooks/useUser/useUser.js.map +1 -1
- package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.d.ts +1 -1
- package/dist/hooks/useValuesCacheUpdate/useValuesCacheUpdate.js.map +1 -1
- package/dist/testing/MockedLangContextProvider/MockedLangContextProvider.d.ts +0 -1
- package/dist/testing/MockedUserContextProvider/MockedUserContextProvider.d.ts +0 -1
- package/dist/types/misc.d.ts +2 -2
- package/dist/types/scalars.d.ts +1 -1
- package/dist/types/search.d.ts +4 -4
- package/package.json +4 -4
- package/dist/_utils/__mocks__/isDevelopmentHelper.d.ts +0 -1
- package/dist/_utils/__mocks__/isDevelopmentHelper.js.map +0 -1
- package/dist/_utils/isDevelopmentHelper.d.ts +0 -1
- package/dist/_utils/isDevelopmentHelper.js.map +0 -1
- package/dist/hooks/useRefreshToken/index.d.ts +0 -1
- package/dist/hooks/useRefreshToken/useRefreshToken.d.ts +0 -3
- package/dist/hooks/useRefreshToken/useRefreshToken.js +0 -27
- package/dist/hooks/useRefreshToken/useRefreshToken.js.map +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } 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 { KitInputWrapper, KitSwitch, KitTypography } from 'aristid-ds';
|
|
6
|
+
import { Form } from 'antd';
|
|
7
|
+
import styled from 'styled-components';
|
|
8
|
+
import { useSharedTranslation } from '../../../../../../hooks/useSharedTranslation';
|
|
9
|
+
import { useLang } from '../../../../../../hooks';
|
|
10
|
+
import { localizedTranslation } from '@leav/utils';
|
|
11
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
12
|
+
import { faCircleXmark } from '@fortawesome/free-solid-svg-icons';
|
|
13
|
+
const KitTypographyTextStyled = styled(KitTypography.Text) `
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
margin-left: calc(var(--general-spacing-xs) * 1px);
|
|
16
|
+
color: ${({ $shouldHighlightColor }) => ($shouldHighlightColor ? 'var(--general-colors-primary-400)' : 'initial')};
|
|
17
|
+
`;
|
|
18
|
+
const FontAwesomeIconStyled = styled(FontAwesomeIcon) `
|
|
19
|
+
vertical-align: middle;
|
|
20
|
+
margin-left: calc(var(--general-spacing-xs) * 1px);
|
|
21
|
+
color: var(--general-utilities-text-primary);
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
`;
|
|
24
|
+
const _getBooleanValueAsStringForTranslation = (value) => (value ? 'global.yes' : 'global.no');
|
|
25
|
+
export const DSBooleanWrapper = ({ value, onChange, state, handleSubmit }) => {
|
|
26
|
+
const { t } = useSharedTranslation();
|
|
27
|
+
const { errors } = Form.Item.useStatus();
|
|
28
|
+
const { lang: availableLang } = useLang();
|
|
29
|
+
const _resetOverrideValue = () => {
|
|
30
|
+
onChange(state.inheritedValue.raw_value, undefined);
|
|
31
|
+
handleSubmit('', state.attribute.id);
|
|
32
|
+
};
|
|
33
|
+
const _handleOnChange = (checked, event) => {
|
|
34
|
+
handleSubmit(String(checked), state.attribute.id);
|
|
35
|
+
onChange(checked, event);
|
|
36
|
+
};
|
|
37
|
+
const label = localizedTranslation(state.formElement.settings.label, availableLang);
|
|
38
|
+
return (_jsxs(KitInputWrapper, { label: label, helper: state.isInheritedOverrideValue
|
|
39
|
+
? t('record_edition.inherited_input_helper', {
|
|
40
|
+
inheritedValue: t(_getBooleanValueAsStringForTranslation(state.inheritedValue.raw_value))
|
|
41
|
+
})
|
|
42
|
+
: undefined, status: errors.length > 0 ? 'error' : undefined, disabled: state.isReadOnly, children: [_jsxs("label", { children: [_jsx(KitSwitch, { checked: value, disabled: state.isReadOnly, onChange: _handleOnChange }), _jsx(KitTypographyTextStyled, { size: "fontSize5", weight: "medium", "$shouldHighlightColor": state.isInheritedNotOverrideValue, children: t(_getBooleanValueAsStringForTranslation(value)) })] }), state.isInheritedOverrideValue && (_jsx("span", { role: "button", onClick: _resetOverrideValue, children: _jsx(FontAwesomeIconStyled, { "aria-label": "clear", icon: faCircleXmark }) }))] }));
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=DSBooleanWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSBooleanWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAE,SAAS,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAGrE,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAE1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,aAAa,EAAC,MAAM,mCAAmC,CAAC;AAOhE,MAAM,uBAAuB,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAkC;;;aAG/E,CAAC,EAAC,qBAAqB,EAAC,EAAE,EAAE,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,mCAAmC,CAAC,CAAC,CAAC,SAAS,CAAC;CAClH,CAAC;AAEF,MAAM,qBAAqB,GAAG,MAAM,CAAC,eAAe,CAAC,CAAA;;;;;CAKpD,CAAC;AAEF,MAAM,sCAAs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AAE,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAC/C,QAAQ,EAAE,KAAK,CAAC,UAAU,aAE1B,4BACI,KAAC,SAAS,IAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAE,eAAe,GAAI,EACpF,KAAC,uBAAuB,IACpB,IAAI,EAAC,WAAW,EAChB,MAAM,EAAC,QAAQ,2BACQ,KAAK,CAAC,2BAA2B,YAEvD,CAAC,CAAC,sCAAsC,CAAC,KAAK,CAAC,CAAC,GAC3B,IACtB,EACP,KAAK,CAAC,wBAAwB,IAAI,CAC/B,eAAM,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,mBAAmB,YAC5C,KAAC,qBAAqB,kBAAY,OAAO,EAAC,IAAI,EAAE,aAAa,GAAI,GAC9D,CACV,IACa,CACrB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { IStandardFieldReducerState, IStandardFieldValue } from '../../../reducers/standardFieldReducer/standardFieldReducer';
|
|
3
|
+
import { IProvidedByAntFormItem, StandardValueTypes } from '../../../_types';
|
|
4
|
+
import { DatePickerProps } from 'antd/lib/date-picker';
|
|
5
|
+
import { RecordFormAttributeFragment } from '../../../../../../_gqlTypes';
|
|
6
|
+
interface IDSDatePickerWrapperProps extends IProvidedByAntFormItem<DatePickerProps> {
|
|
7
|
+
state: IStandardFieldReducerState;
|
|
8
|
+
attribute: RecordFormAttributeFragment;
|
|
9
|
+
fieldValue: IStandardFieldValue;
|
|
10
|
+
handleSubmit: (value: StandardValueTypes, id?: string) => void;
|
|
11
|
+
shouldShowValueDetailsButton?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const DSDatePickerWrapper: FunctionComponent<IDSDatePickerWrapperProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { KitDatePicker } from 'aristid-ds';
|
|
3
|
+
import { Form } from 'antd';
|
|
4
|
+
import dayjs from 'dayjs';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import { useSharedTranslation } from '../../../../../../hooks/useSharedTranslation';
|
|
7
|
+
import { useValueDetailsButton } from '../../../../../../components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton';
|
|
8
|
+
import { useLang } from '../../../../../../hooks';
|
|
9
|
+
import { localizedTranslation } from '@leav/utils';
|
|
10
|
+
const KitDatePickerStyled = styled(KitDatePicker) `
|
|
11
|
+
color: ${({ $shouldHighlightColor }) => ($shouldHighlightColor ? 'var(--general-colors-primary-400)' : 'initial')};
|
|
12
|
+
`;
|
|
13
|
+
export const DSDatePickerWrapper = ({ value, onChange, state, attribute, fieldValue, handleSubmit, shouldShowValueDetailsButton = false }) => {
|
|
14
|
+
const { t } = useSharedTranslation();
|
|
15
|
+
const { lang: availableLangs } = useLang();
|
|
16
|
+
const { errors } = Form.Item.useStatus();
|
|
17
|
+
const { onValueDetailsButtonClick } = useValueDetailsButton({
|
|
18
|
+
value: fieldValue?.value,
|
|
19
|
+
attribute
|
|
20
|
+
});
|
|
21
|
+
const _handleDateChange = (datePickerDate, ...antOnChangeParams) => {
|
|
22
|
+
if (state.isInheritedValue && datePickerDate === null) {
|
|
23
|
+
onChange(dayjs.unix(Number(state.inheritedValue.raw_value)), state.inheritedValue.raw_value);
|
|
24
|
+
handleSubmit('', state.attribute.id);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
onChange(datePickerDate, ...antOnChangeParams);
|
|
28
|
+
// TODO : validate form with await form.validateFields(state.attribute.id)
|
|
29
|
+
if (state.formElement.settings.required && datePickerDate === null) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
let dateToSave = null;
|
|
33
|
+
if (datePickerDate !== null) {
|
|
34
|
+
dateToSave = String(datePickerDate.unix());
|
|
35
|
+
}
|
|
36
|
+
handleSubmit(dateToSave, state.attribute.id);
|
|
37
|
+
};
|
|
38
|
+
const label = localizedTranslation(state.formElement.settings.label, availableLangs);
|
|
39
|
+
return (_jsx(KitDatePickerStyled, { value: value, onChange: _handleDateChange, label: label, required: state.formElement.settings.required, disabled: state.isReadOnly, allowClear: !state.isInheritedNotOverrideValue, status: errors.length > 0 ? 'error' : undefined, onInfoClick: shouldShowValueDetailsButton ? onValueDetailsButtonClick : null, helper: state.isInheritedOverrideValue
|
|
40
|
+
? t('record_edition.inherited_input_helper', {
|
|
41
|
+
inheritedValue: state.inheritedValue.value
|
|
42
|
+
})
|
|
43
|
+
: undefined, "$shouldHighlightColor": state.isInheritedNotOverrideValue }));
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=DSDatePickerWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSDatePickerWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAMzC,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAGvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,qBAAqB,EAAC,MAAM,6FAA6F,CAAC;AAClI,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAUjD,MAAM,mBAAmB,GAAG,MAAM,CAAC,aAAa,CAAC,CAAkC;aACtE,CAAC,EAAC,qBAAqB,EAAC,EAAE,EAAE,CAAC,CAAC,qBAAqB,CAAC,CAAC,C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AE,CAAC,CAAC;QAC/C,CAAC;QAED,YAAY,CAAC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACjD,CAAC,CAAC;IAEF,MAAM,KAAK,GAAG,oBAAoB,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IAErF,OAAO,CACH,KAAC,mBAAmB,IAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,iBAAiB,EAC3B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,QAAQ,EAC7C,QAAQ,EAAE,KAAK,CAAC,UAAU,EAC1B,UAAU,EAAE,CAAC,KAAK,CAAC,2BAA2B,EAC9C,MAAM,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAC/C,WAAW,EAAE,4BAA4B,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,IAAI,EAC5E,MAAM,EACF,KAAK,CAAC,wBAAwB;YAC1B,CAAC,CAAC,CAAC,CAAC,uCAAuC,EAAE;gBACvC,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK;aAC7C,CAAC;YACJ,CAAC,CAAC,SAAS,2BAEI,KAAK,CAAC,2BAA2B,GAC1D,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -7,8 +7,8 @@ interface IDSInputWrapperProps extends IProvidedByAntFormItem<InputNumberProps>
|
|
|
7
7
|
state: IStandardFieldReducerState;
|
|
8
8
|
attribute: RecordFormAttributeFragment;
|
|
9
9
|
fieldValue: IStandardFieldValue;
|
|
10
|
-
shouldShowValueDetailsButton?: boolean;
|
|
11
10
|
handleSubmit: (value: string, id?: string) => void;
|
|
11
|
+
shouldShowValueDetailsButton?: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare const DSInputNumberWrapper: FunctionComponent<IDSInputWrapperProps>;
|
|
14
14
|
export {};
|
|
@@ -14,21 +14,15 @@ const KitInputNumberStyled = styled(KitInputNumber) `
|
|
|
14
14
|
.ant-input-number-input-wrap .ant-input-number-input {
|
|
15
15
|
color: ${({ $shouldHighlightColor }) => $shouldHighlightColor ? 'var(--general-colors-primary-400)' : 'initial'};
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
.kit-input-wrapper-helper {
|
|
19
|
-
white-space: nowrap;
|
|
20
|
-
text-overflow: ellipsis;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
}
|
|
23
17
|
`;
|
|
24
|
-
export const DSInputNumberWrapper = ({ value, onChange, state, attribute, fieldValue, shouldShowValueDetailsButton = false
|
|
18
|
+
export const DSInputNumberWrapper = ({ value, onChange, state, attribute, fieldValue, handleSubmit, shouldShowValueDetailsButton = false }) => {
|
|
25
19
|
if (!onChange) {
|
|
26
20
|
throw Error('DSInputNumberWrapper should be used inside a antd Form.Item');
|
|
27
21
|
}
|
|
28
22
|
const { t } = useSharedTranslation();
|
|
29
23
|
const { lang } = useLang();
|
|
30
24
|
const { errors } = Form.Item.useStatus();
|
|
31
|
-
const { onValueDetailsButtonClick
|
|
25
|
+
const { onValueDetailsButtonClick } = useValueDetailsButton({
|
|
32
26
|
value: fieldValue?.value,
|
|
33
27
|
attribute
|
|
34
28
|
});
|
|
@@ -54,10 +48,10 @@ export const DSInputNumberWrapper = ({ value, onChange, state, attribute, fieldV
|
|
|
54
48
|
onChange(inputValue);
|
|
55
49
|
};
|
|
56
50
|
const label = localizedTranslation(state.formElement.settings.label, lang);
|
|
57
|
-
return (_jsx(KitInputNumberStyled, {
|
|
51
|
+
return (_jsx(KitInputNumberStyled, { required: state.formElement.settings.required, label: label, onInfoClick: shouldShowValueDetailsButton ? onValueDetailsButtonClick : null, status: errors.length > 0 ? 'error' : undefined, helper: state.isInheritedOverrideValue
|
|
58
52
|
? t('record_edition.inherited_input_helper', {
|
|
59
53
|
inheritedValue: state.inheritedValue.raw_value
|
|
60
54
|
})
|
|
61
|
-
: undefined,
|
|
55
|
+
: undefined, value: value, onChange: _handleOnChange, disabled: state.isReadOnly, onBlur: _handleOnBlur, "$shouldHighlightColor": !hasChanged && state.isInheritedNotOverrideValue }));
|
|
62
56
|
};
|
|
63
57
|
//# sourceMappingURL=DSInputNumberWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSInputNumberWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAuD,QAAQ,EAAC,MAAM,OAAO,CAAC;AAKrF,OAAO,EAAC,IAAI,EAAmB,MAAM,MAAM,CAAC;AAE5C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,qBAAqB,EAAC,MAAM,6FAA6F,CAAC;AAElI,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAUlC,MAAM,oBAAoB,GAAG,MAAM,CAAC,cAAc,CAAC,CAAkC;;iBAEpE,CAAC,EAAC,qBAAqB,EAAC,EAAE,EAAE,CACjC,qBAAqB,CAAC,CAAC,CAAC,mCAAmC,CAAC,CAAC,CAAC,SAAS
|
|
1
|
+
{"version":3,"file":"DSInputNumberWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAC1C,OAAO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AC,cAAc,CAAC,SAAS;aACjD,CAAC;YACJ,CAAC,CAAC,SAAS,EAEnB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,KAAK,CAAC,UAAU,EAC1B,MAAM,EAAE,aAAa,2BACE,CAAC,UAAU,IAAI,KAAK,CAAC,2BAA2B,GACzE,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { IStandardFieldReducerState, IStandardFieldValue } from '../../../reducers/standardFieldReducer/standardFieldReducer';
|
|
3
|
+
import { InputProps } from 'antd';
|
|
4
|
+
import { IProvidedByAntFormItem } from '../../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
5
|
+
import { RecordFormAttributeFragment } from '../../../../../../_gqlTypes';
|
|
6
|
+
interface IDSInputWrapperProps extends IProvidedByAntFormItem<InputProps> {
|
|
7
|
+
state: IStandardFieldReducerState;
|
|
8
|
+
attribute: RecordFormAttributeFragment;
|
|
9
|
+
fieldValue: IStandardFieldValue;
|
|
10
|
+
handleSubmit: (value: string, id?: string) => void;
|
|
11
|
+
shouldShowValueDetailsButton?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const DSInputPasswordWrapper: FunctionComponent<IDSInputWrapperProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { KitInput } from 'aristid-ds';
|
|
6
|
+
import { useState } from 'react';
|
|
7
|
+
import { Form } from 'antd';
|
|
8
|
+
import styled from 'styled-components';
|
|
9
|
+
import { useSharedTranslation } from '../../../../../../hooks/useSharedTranslation';
|
|
10
|
+
import { useValueDetailsButton } from '../../../../../../components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton';
|
|
11
|
+
import { useLang } from '../../../../../../hooks';
|
|
12
|
+
import { localizedTranslation } from '@leav/utils';
|
|
13
|
+
const KitInputPasswordStyled = styled(KitInput.Password) `
|
|
14
|
+
color: ${({ $shouldHighlightColor }) => ($shouldHighlightColor ? 'var(--general-colors-primary-400)' : 'initial')};
|
|
15
|
+
|
|
16
|
+
.kit-input-wrapper-helper {
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
export const DSInputPasswordWrapper = ({ value, onChange, state, attribute, fieldValue, handleSubmit, shouldShowValueDetailsButton = false }) => {
|
|
23
|
+
const { t } = useSharedTranslation();
|
|
24
|
+
const { errors } = Form.Item.useStatus();
|
|
25
|
+
const { onValueDetailsButtonClick } = useValueDetailsButton({
|
|
26
|
+
value: fieldValue?.value,
|
|
27
|
+
attribute
|
|
28
|
+
});
|
|
29
|
+
const [hasChanged, setHasChanged] = useState(false);
|
|
30
|
+
const { lang: availableLang } = useLang();
|
|
31
|
+
const _resetToInheritedValue = () => {
|
|
32
|
+
setHasChanged(false);
|
|
33
|
+
onChange(state.inheritedValue.raw_value);
|
|
34
|
+
handleSubmit('', state.attribute.id);
|
|
35
|
+
};
|
|
36
|
+
const _handleOnBlur = (event) => {
|
|
37
|
+
const valueToSubmit = event.target.value;
|
|
38
|
+
if (valueToSubmit === '' && state.isInheritedValue) {
|
|
39
|
+
_resetToInheritedValue();
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (hasChanged || !state.isInheritedValue) {
|
|
43
|
+
handleSubmit(valueToSubmit, state.attribute.id);
|
|
44
|
+
}
|
|
45
|
+
onChange(event);
|
|
46
|
+
};
|
|
47
|
+
const _handleOnChange = (event) => {
|
|
48
|
+
setHasChanged(true);
|
|
49
|
+
const inputValue = event.target.value;
|
|
50
|
+
if (state.isInheritedValue && inputValue === '' && event.type === 'click') {
|
|
51
|
+
_resetToInheritedValue();
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
onChange(event);
|
|
55
|
+
};
|
|
56
|
+
const label = localizedTranslation(state.formElement.settings.label, availableLang);
|
|
57
|
+
return (_jsx(KitInputPasswordStyled, { "data-testid": "kit-input-password", label: label, required: state.formElement.settings.required, status: errors.length > 0 ? 'error' : undefined, onInfoClick: shouldShowValueDetailsButton ? onValueDetailsButtonClick : null, helper: state.isInheritedOverrideValue
|
|
58
|
+
? t('record_edition.inherited_input_helper', {
|
|
59
|
+
inheritedValue: state.inheritedValue.raw_value
|
|
60
|
+
})
|
|
61
|
+
: undefined, value: value, disabled: state.isReadOnly, allowClear: !state.isInheritedNotOverrideValue, onBlur: _handleOnBlur, onChange: _handleOnChange, "$shouldHighlightColor": !hasChanged && state.isInheritedNotOverrideValue }));
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=DSInputPasswordWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSInputPasswordWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputPasswordWrapper.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAwD,QAAQ,EAAC,MAAM,OAAO,CAAC;AAKtF,OAAO,EAAC,IAAI,EAAa,MAAM,MAAM,CAAC;AAEtC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,qBAAqB,EAAC,MAAM,6FAA6F,CAAC;AAElI,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAUjD,MAA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,EAC9C,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,eAAe,2BACF,CAAC,UAAU,IAAI,KAAK,CAAC,2BAA2B,GACzE,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -7,8 +7,8 @@ interface IDSInputWrapperProps extends IProvidedByAntFormItem<InputProps> {
|
|
|
7
7
|
state: IStandardFieldReducerState;
|
|
8
8
|
attribute: RecordFormAttributeFragment;
|
|
9
9
|
fieldValue: IStandardFieldValue;
|
|
10
|
-
shouldShowValueDetailsButton?: boolean;
|
|
11
10
|
handleSubmit: (value: string, id?: string) => void;
|
|
11
|
+
shouldShowValueDetailsButton?: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare const DSInputWrapper: FunctionComponent<IDSInputWrapperProps>;
|
|
14
14
|
export {};
|
|
@@ -12,17 +12,11 @@ import { useLang } from '../../../../../../hooks';
|
|
|
12
12
|
import { localizedTranslation } from '@leav/utils';
|
|
13
13
|
const KitInputStyled = styled(KitInput) `
|
|
14
14
|
color: ${({ $shouldHighlightColor }) => ($shouldHighlightColor ? 'var(--general-colors-primary-400)' : 'initial')};
|
|
15
|
-
|
|
16
|
-
.kit-input-wrapper-helper {
|
|
17
|
-
white-space: nowrap;
|
|
18
|
-
text-overflow: ellipsis;
|
|
19
|
-
overflow: hidden;
|
|
20
|
-
}
|
|
21
15
|
`;
|
|
22
|
-
export const DSInputWrapper = ({ value, onChange, state, attribute, fieldValue, shouldShowValueDetailsButton = false
|
|
16
|
+
export const DSInputWrapper = ({ value, onChange, state, attribute, fieldValue, handleSubmit, shouldShowValueDetailsButton = false }) => {
|
|
23
17
|
const { t } = useSharedTranslation();
|
|
24
18
|
const { errors } = Form.Item.useStatus();
|
|
25
|
-
const { onValueDetailsButtonClick
|
|
19
|
+
const { onValueDetailsButtonClick } = useValueDetailsButton({
|
|
26
20
|
value: fieldValue?.value,
|
|
27
21
|
attribute
|
|
28
22
|
});
|
|
@@ -54,7 +48,7 @@ export const DSInputWrapper = ({ value, onChange, state, attribute, fieldValue,
|
|
|
54
48
|
onChange(event);
|
|
55
49
|
};
|
|
56
50
|
const label = localizedTranslation(state.formElement.settings.label, availableLang);
|
|
57
|
-
return (_jsx(KitInputStyled, {
|
|
51
|
+
return (_jsx(KitInputStyled, { required: state.formElement.settings.required, label: label, onInfoClick: shouldShowValueDetailsButton ? onValueDetailsButtonClick : null, status: errors.length > 0 ? 'error' : undefined, helper: state.isInheritedOverrideValue
|
|
58
52
|
? t('record_edition.inherited_input_helper', {
|
|
59
53
|
inheritedValue: state.inheritedValue.raw_value
|
|
60
54
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSInputWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAwD,QAAQ,EAAC,MAAM,OAAO,CAAC;AAKtF,OAAO,EAAC,IAAI,EAAa,MAAM,MAAM,CAAC;AAEtC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,qBAAqB,EAAC,MAAM,6FAA6F,CAAC;AAElI,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAUjD,MAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAkC;aAC5D,CAAC,EAAC,qBAAqB,EAAC,EAAE,EAAE,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,mCAAmC,CAAC,CAAC,CAAC,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"DSInputWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/Stand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,WAAW,EAAE,4BAA4B,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,IAAI,EAC5E,MAAM,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAC/C,MAAM,EACF,KAAK,CAAC,wBAAwB;YAC1B,CAAC,CAAC,CAAC,CAAC,uCAAuC,EAAE;gBACvC,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS;aACjD,CAAC;YACJ,CAAC,CAAC,SAAS,EAEnB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,KAAK,CAAC,UAAU,EAC1B,UAAU,EAAE,CAAC,KAAK,CAAC,2BAA2B,EAC9C,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,eAAe,2BACF,CAAC,UAAU,IAAI,KAAK,CAAC,2BAA2B,GACzE,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -7,8 +7,8 @@ interface IDSRangePickerWrapperProps extends IProvidedByAntFormItem<RangePickerP
|
|
|
7
7
|
state: IStandardFieldReducerState;
|
|
8
8
|
attribute: RecordFormAttributeFragment;
|
|
9
9
|
fieldValue: IStandardFieldValue;
|
|
10
|
-
shouldShowValueDetailsButton?: boolean;
|
|
11
10
|
handleSubmit: (value: StandardValueTypes, id?: string) => void;
|
|
11
|
+
shouldShowValueDetailsButton?: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare const DSRangePickerWrapper: FunctionComponent<IDSRangePickerWrapperProps>;
|
|
14
14
|
export {};
|
|
@@ -12,17 +12,12 @@ import { useLang } from '../../../../../../hooks';
|
|
|
12
12
|
import { localizedTranslation } from '@leav/utils';
|
|
13
13
|
const KitDatePickerRangePickerStyled = styled(KitDatePicker.RangePicker) `
|
|
14
14
|
color: ${({ $shouldHighlightColor }) => ($shouldHighlightColor ? 'var(--general-colors-primary-400)' : 'initial')};
|
|
15
|
-
.kit-input-wrapper-helper {
|
|
16
|
-
white-space: nowrap;
|
|
17
|
-
text-overflow: ellipsis;
|
|
18
|
-
overflow: hidden;
|
|
19
|
-
}
|
|
20
15
|
`;
|
|
21
|
-
export const DSRangePickerWrapper = ({ value, onChange, state, attribute, fieldValue, shouldShowValueDetailsButton = false
|
|
16
|
+
export const DSRangePickerWrapper = ({ value, onChange, state, attribute, fieldValue, handleSubmit, shouldShowValueDetailsButton = false }) => {
|
|
22
17
|
const { t } = useSharedTranslation();
|
|
23
18
|
const { lang: availableLangs } = useLang();
|
|
24
19
|
const { errors } = Form.Item.useStatus();
|
|
25
|
-
const { onValueDetailsButtonClick
|
|
20
|
+
const { onValueDetailsButtonClick } = useValueDetailsButton({
|
|
26
21
|
value: fieldValue?.value,
|
|
27
22
|
attribute
|
|
28
23
|
});
|
|
@@ -49,7 +44,7 @@ export const DSRangePickerWrapper = ({ value, onChange, state, attribute, fieldV
|
|
|
49
44
|
handleSubmit(datesToSave, state.attribute.id);
|
|
50
45
|
};
|
|
51
46
|
const label = localizedTranslation(state.formElement.settings.label, availableLangs);
|
|
52
|
-
return (_jsx(KitDatePickerRangePickerStyled, { value: value, onChange: _handleDateChange, label: label, required: state.formElement.settings.required, disabled: state.isReadOnly, allowClear: !state.isInheritedNotOverrideValue, status: errors.length > 0 ? 'error' : undefined,
|
|
47
|
+
return (_jsx(KitDatePickerRangePickerStyled, { value: value, onChange: _handleDateChange, label: label, required: state.formElement.settings.required, disabled: state.isReadOnly, allowClear: !state.isInheritedNotOverrideValue, status: errors.length > 0 ? 'error' : undefined, onInfoClick: shouldShowValueDetailsButton ? onValueDetailsButtonClick : null, helper: state.isInheritedOverrideValue
|
|
53
48
|
? t('record_edition.inherited_input_helper', {
|
|
54
49
|
inheritedValue: t('record_edition.date_range_from_to', {
|
|
55
50
|
from: state.inheritedValue.value.from,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSRangePickerWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAMzC,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAGvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,qBAAqB,EAAC,MAAM,6FAA6F,CAAC;AAClI,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"DSRangePickerWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAMzC,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAGvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,qBAAqB,EAAC,MAAM,6FAA6F,CAAC;AAClI,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAUjD,MAAM,8BAA8B,GAAG,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,CAAkC;aAC7F,CAAC,EAAC,qBAAqB,EAAC,EAAE,EAAE,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,mCAAmC,CAAC,CAAC,CAAC,SAAS,CAAC;CAClH,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAo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2B,GAC1D,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IStandardInputProps } from '../../../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
3
2
|
declare function CheckboxInput({ state, fieldValue, onSubmit }: IStandardInputProps): JSX.Element;
|
|
4
3
|
export default CheckboxInput;
|
|
@@ -8,7 +8,7 @@ function CheckboxInput({ state, fieldValue, onSubmit }) {
|
|
|
8
8
|
onSubmit(String(e.target.checked));
|
|
9
9
|
};
|
|
10
10
|
const { value } = fieldValue;
|
|
11
|
-
return (_jsx(Checkbox, { className: "nested-input", disabled: state.isReadOnly, checked: !!value?.
|
|
11
|
+
return (_jsx(Checkbox, { className: "nested-input", disabled: state.isReadOnly, checked: !!value?.payload, indeterminate: typeof value?.payload !== 'boolean', onChange: _handleCheckboxChange }));
|
|
12
12
|
}
|
|
13
13
|
export default CheckboxInput;
|
|
14
14
|
//# sourceMappingURL=CheckboxInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxInput.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,MAAM,CAAC;AAI9B,SAAS,aAAa,CAAC,EAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAsB;IACrE,MAAM,qBAAqB,GAAG,CAAC,CAAsB,EAAE,EAAE;QACrD,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC;IAEF,MAAM,EAAC,KAAK,EAAC,GAAG,UAAU,CAAC;IAE3B,OAAO,CACH,KAAC,QAAQ,IACL,SAAS,EAAC,cAAc,EACxB,QAAQ,EAAE,KAAK,CAAC,UAAU,EAC1B,OAAO,EAAE,CAAC,CAAC,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"CheckboxInput.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/CheckboxInput.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,MAAM,CAAC;AAI9B,SAAS,aAAa,CAAC,EAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAsB;IACrE,MAAM,qBAAqB,GAAG,CAAC,CAAsB,EAAE,EAAE;QACrD,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC;IAEF,MAAM,EAAC,KAAK,EAAC,GAAG,UAAU,CAAC;IAE3B,OAAO,CACH,KAAC,QAAQ,IACL,SAAS,EAAC,cAAc,EACxB,QAAQ,EAAE,KAAK,CAAC,UAAU,EAC1B,OAAO,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,EACzB,aAAa,EAAE,OAAO,KAAK,EAAE,OAAO,KAAK,SAAS,EAClD,QAAQ,EAAE,qBAAqB,GACjC,CACL,CAAC;AACN,CAAC;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IStandardInputProps } from '../../../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
3
2
|
declare function ColorInput({ state, fieldValue, onChange, onFocus }: IStandardInputProps): JSX.Element;
|
|
4
3
|
export default ColorInput;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IStandardInputProps } from '../../../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
3
2
|
declare function DateInput({ state, fieldValue, onFocus, onSubmit, settings }: IStandardInputProps): JSX.Element;
|
|
4
3
|
export default DateInput;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IStandardInputProps } from '../../../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
3
2
|
declare function EncryptedInput({ state, fieldValue, onChange, onPressEnter, inputRef }: IStandardInputProps): JSX.Element;
|
|
4
3
|
export default EncryptedInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EncryptedInput.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAW,MAAM,MAAM,CAAC;AAIrC,SAAS,cAAc,CAAC,EAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAsB;IAC9F,MAAM,EAAC,YAAY,EAAC,GAAG,UAAU,CAAC;IAClC,MAAM,aAAa,GAAG,CAAC,CAAC,EAAE;QACtB,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,MAAM,eAAe,GAAG,CAAC,CAAC,EAAE;QACxB,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"EncryptedInput.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/EncryptedInput.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAW,MAAM,MAAM,CAAC;AAIrC,SAAS,cAAc,CAAC,EAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAsB;IAC9F,MAAM,EAAC,YAAY,EAAC,GAAG,UAAU,CAAC;IAClC,MAAM,aAAa,GAAG,CAAC,CAAC,EAAE;QACtB,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,MAAM,eAAe,GAAG,CAAC,CAAC,EAAE;QACxB,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE,CAAC;YACpB,YAAY,EAAE,CAAC;QACnB,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,KAAK,CAAC,QAAQ,IACX,SAAS,EAAC,cAAc,EACxB,GAAG,EAAE,QAAsC,EAC3C,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,EAC3B,QAAQ,EAAE,aAAa,EACvB,UAAU,EAAE,eAAe,EAC3B,QAAQ,EAAE,KAAK,CAAC,UAAU,EAC1B,SAAS,uBACG,iBAAiB,GAC/B,CACL,CAAC;AACN,CAAC;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IStandardInputProps } from '../../../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
3
2
|
declare function NumberInput({ state, fieldValue, onFocus, onPressEnter, onChange, inputRef }: IStandardInputProps): JSX.Element;
|
|
4
3
|
export default NumberInput;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IStandardInputProps } from '../../../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
3
2
|
declare function RichTextEditorInput({ state, fieldValue, onFocus, onChange }: IStandardInputProps): JSX.Element;
|
|
4
3
|
export default RichTextEditorInput;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IStandardInputProps } from '../../../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
3
2
|
declare function TextInput({ state, fieldValue, onFocus, onChange, onPressEnter, inputRef }: IStandardInputProps): JSX.Element;
|
|
4
3
|
export default TextInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAW,MAAM,MAAM,CAAC;AACrC,OAAO,EAAmB,SAAS,EAAC,MAAM,OAAO,CAAC;AAGlD,SAAS,SAAS,CAAC,EAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAsB;IAClG,MAAM,EAAC,SAAS,EAAE,YAAY,EAAC,GAAG,UAAU,CAAC;IAE7C,SAAS,CAAC,GAAG,EAAE;QACX,6EAA6E;QAC7E,IAAI,SAAS,EAAE;
|
|
1
|
+
{"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/Inputs/TextInput.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAW,MAAM,MAAM,CAAC;AACrC,OAAO,EAAmB,SAAS,EAAC,MAAM,OAAO,CAAC;AAGlD,SAAS,SAAS,CAAC,EAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAsB;IAClG,MAAM,EAAC,SAAS,EAAE,YAAY,EAAC,GAAG,UAAU,CAAC;IAE7C,SAAS,CAAC,GAAG,EAAE;QACX,6EAA6E;QAC7E,IAAI,SAAS,EAAE,CAAC;YACX,QAAuC,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QAC7D,CAAC;IACL,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE1B,MAAM,aAAa,GAAG,CAAC,CAAC,EAAE;QACtB,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,MAAM,eAAe,GAAG,CAAC,CAAC,EAAE;QACxB,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE,CAAC;YACpB,YAAY,EAAE,CAAC;QACnB,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,KAAK,IAEF,GAAG,EAAE,QAAsC,EAC3C,SAAS,EAAE,iBAAiB,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,EAC7D,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,EAC3B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,aAAa,EACvB,UAAU,EAAE,eAAe,EAC3B,QAAQ,EAAE,KAAK,CAAC,UAAU,EAC1B,UAAU,QACV,SAAS,UATL,SAAS,CAUf,CACL,CAAC;AACN,CAAC;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { AnyPrimitive } from '@leav/utils';
|
|
3
2
|
import { FieldScope } from '../../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
4
3
|
import { IdValue, IStandardFieldReducerState, IStandardFieldValue, StandardFieldDispatchFunc } from '../../../reducers/standardFieldReducer/standardFieldReducer';
|
|
@@ -3,6 +3,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
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 { CloseOutlined, ExclamationCircleOutlined } from '@ant-design/icons';
|
|
6
|
+
import { localizedTranslation } from '@leav/utils';
|
|
6
7
|
import { Button, Form, Input, Popover, Space, theme } from 'antd';
|
|
7
8
|
import moment from 'moment';
|
|
8
9
|
import React, { useEffect, useRef } from 'react';
|
|
@@ -25,12 +26,13 @@ import { useSharedTranslation } from '../../../../../../hooks/useSharedTranslati
|
|
|
25
26
|
import { AttributeFormat } from '../../../../../../_gqlTypes';
|
|
26
27
|
import { stringifyDateRangeValue } from '../../../../../../_utils';
|
|
27
28
|
import { newValueId, StandardFieldReducerActionsTypes, StandardFieldValueState } from '../../../reducers/standardFieldReducer/standardFieldReducer';
|
|
28
|
-
import CheckboxInput from './Inputs/CheckboxInput';
|
|
29
29
|
import ColorInput from './Inputs/ColorInput';
|
|
30
|
-
import DateInput from './Inputs/DateInput';
|
|
31
|
-
import EncryptedInput from './Inputs/EncryptedInput';
|
|
32
30
|
import TextInput from './Inputs/TextInput';
|
|
33
31
|
import ValuesList from './ValuesList';
|
|
32
|
+
import { useLang } from '../../../../../../hooks';
|
|
33
|
+
import { DSDatePickerWrapper } from './DSDatePickerWrapper';
|
|
34
|
+
import { DSBooleanWrapper } from './DSBooleanWrapper';
|
|
35
|
+
import { DSInputPasswordWrapper } from './DSInputPasswordWrapper';
|
|
34
36
|
import { DSInputNumberWrapper } from './DSInputNumberWrapper';
|
|
35
37
|
const ErrorMessage = styled.div `
|
|
36
38
|
color: ${themeVars.errorColor};
|
|
@@ -151,11 +153,11 @@ const ButtonsWrapper = styled.div `
|
|
|
151
153
|
const RichTextEditorInput = React.lazy(() => import('./Inputs/RichTextEditorInput'));
|
|
152
154
|
const inputComponentByFormat = {
|
|
153
155
|
[AttributeFormat.text]: null,
|
|
154
|
-
[AttributeFormat.date]:
|
|
156
|
+
[AttributeFormat.date]: null,
|
|
155
157
|
[AttributeFormat.date_range]: null,
|
|
156
|
-
[AttributeFormat.boolean]:
|
|
158
|
+
[AttributeFormat.boolean]: null,
|
|
157
159
|
[AttributeFormat.numeric]: null,
|
|
158
|
-
[AttributeFormat.encrypted]:
|
|
160
|
+
[AttributeFormat.encrypted]: null,
|
|
159
161
|
[AttributeFormat.extended]: TextInput,
|
|
160
162
|
[AttributeFormat.color]: ColorInput,
|
|
161
163
|
[AttributeFormat.rich_text]: RichTextEditorInput
|
|
@@ -163,6 +165,7 @@ const inputComponentByFormat = {
|
|
|
163
165
|
function StandardFieldValue({ value: fieldValue, onSubmit, onDelete, onScopeChange, state, dispatch }) {
|
|
164
166
|
const { t, i18n } = useSharedTranslation();
|
|
165
167
|
const { token } = theme.useToken();
|
|
168
|
+
const { lang: availableLangs } = useLang();
|
|
166
169
|
const actionsWrapperRef = useRef();
|
|
167
170
|
const inputRef = useRef();
|
|
168
171
|
const { state: editRecordState, dispatch: editRecordDispatch } = useEditRecordReducer();
|
|
@@ -269,7 +272,7 @@ function StandardFieldValue({ value: fieldValue, onSubmit, onDelete, onScopeChan
|
|
|
269
272
|
let displayedValue = String(fieldValue.displayValue);
|
|
270
273
|
let prefixValue;
|
|
271
274
|
if (attribute.format === AttributeFormat.color &&
|
|
272
|
-
(fieldValue.value === null || fieldValue.value.
|
|
275
|
+
(fieldValue.value === null || fieldValue.value.payload === null)) {
|
|
273
276
|
fieldValue.value = null;
|
|
274
277
|
}
|
|
275
278
|
const hasValue = fieldValue.value !== null;
|
|
@@ -366,7 +369,7 @@ function StandardFieldValue({ value: fieldValue, onSubmit, onDelete, onScopeChan
|
|
|
366
369
|
const isErrorVisible = fieldValue.isErrorDisplayed;
|
|
367
370
|
const wrapperClasses = `
|
|
368
371
|
${attribute.format ? `format-${attribute.format}` : ''}
|
|
369
|
-
${fieldValue?.value?.
|
|
372
|
+
${fieldValue?.value?.payload ? 'has-value' : ''}
|
|
370
373
|
${fieldValue.isEditing ? 'editing' : ''}
|
|
371
374
|
`;
|
|
372
375
|
const canDeleteValue = !state.isReadOnly && fieldValue.idValue !== newValueId && attribute.format !== AttributeFormat.boolean;
|
|
@@ -402,21 +405,21 @@ function StandardFieldValue({ value: fieldValue, onSubmit, onDelete, onScopeChan
|
|
|
402
405
|
bottom: hasMultipleValuesDisplay ? '0' : '1px',
|
|
403
406
|
borderRadius: hasMultipleValuesDisplay ? 'none' : token.borderRadius
|
|
404
407
|
};
|
|
405
|
-
const attributeFormatsWithDS = [
|
|
406
|
-
|
|
407
|
-
AttributeFormat.
|
|
408
|
-
AttributeFormat.
|
|
409
|
-
AttributeFormat.date,
|
|
408
|
+
const attributeFormatsWithDS = [
|
|
409
|
+
AttributeFormat.text,
|
|
410
|
+
AttributeFormat.date_range,
|
|
411
|
+
AttributeFormat.numeric,
|
|
410
412
|
AttributeFormat.encrypted,
|
|
411
|
-
AttributeFormat.
|
|
412
|
-
AttributeFormat.
|
|
413
|
+
AttributeFormat.date,
|
|
414
|
+
AttributeFormat.boolean
|
|
413
415
|
];
|
|
416
|
+
const attributeFormatsWithoutDS = [AttributeFormat.color, AttributeFormat.extended, AttributeFormat.rich_text];
|
|
414
417
|
return (_jsxs(_Fragment, { children: [attributeFormatsWithDS.includes(attribute.format) && (_jsxs(Form.Item, { name: attribute.id, rules: [
|
|
415
418
|
{
|
|
416
419
|
required: state.formElement.settings.required,
|
|
417
420
|
message: t('errors.standard_field_required')
|
|
418
421
|
}
|
|
419
|
-
], children: [attribute.format === AttributeFormat.text && (_jsx(DSInputWrapper, { state: state, handleSubmit: _handleSubmit, attribute: attribute, fieldValue: fieldValue, shouldShowValueDetailsButton: editRecordState.withInfoButton })), attribute.format === AttributeFormat.date_range && (_jsx(DSRangePickerWrapper, { state: state, handleSubmit: _handleSubmit, attribute: attribute, fieldValue: fieldValue, shouldShowValueDetailsButton: editRecordState.withInfoButton })), attribute.format === AttributeFormat.numeric && (_jsx(DSInputNumberWrapper, { state: state, handleSubmit: _handleSubmit, attribute: attribute, fieldValue: fieldValue, shouldShowValueDetailsButton: editRecordState.withInfoButton }))] })), attributeFormatsWithoutDS.includes(attribute.format) && (_jsxs(_Fragment, { children: [fieldValue.isEditing && _jsx(Dimmer, { onClick: _handleCancel }), _jsxs(FormWrapper, { "$isEditing": fieldValue.isEditing, className: fieldValue.index === 0 ? 'first-value' : '', children: [_jsx(Popover, { placement: "topLeft", open: isErrorVisible, content: errorContent, children: _jsxs(InputWrapper, { "$isEditing": fieldValue.isEditing, className: wrapperClasses, "data-testid": "input-wrapper", children: [_jsx(ValuesVersionIndicator, { activeScope: state.activeScope, style: valuesVersionIndicatorStyle }), !fieldValue.index && (_jsxs("label", { className: "attribute-label", onClick: _handleFocus, children: [state.formElement.settings.label, editRecordState.externalUpdate.updatedValues[attribute?.id] && (_jsx(UpdatedFieldIcon, {})), state.activeScope === FieldScope.INHERITED && (_jsx(InheritedFieldLabel, { version: state.values[FieldScope.INHERITED].version }))] })), _getInput(), !state.metadataEdit && _jsx(FloatingMenu, { actions: valueActions })] }) }), _jsxs(ActionsWrapper, { ref: actionsWrapperRef, children: [fieldValue.isEditing && attribute?.values_list?.enable && (_jsx(ValuesList, { attribute: attribute, valuesList: valuesList, onValueSelect: _handleSubmit, onValueCopy: _handleValueCopy })), fieldValue.isEditing && (_jsxs(ButtonsWrapper, { children: [_jsx(Button, { size: "small", onClick: _handleCancel, style: { background: '#FFF' }, children: t('global.cancel') }), (!isValuesListEnabled || isValuesListOpen) && (_jsx(Button, { type: "primary", size: "small", onClick: _handleClickSubmit, children: t('global.submit') }))] }))] })] })] }))] }));
|
|
422
|
+
], children: [attribute.format === AttributeFormat.text && (_jsx(DSInputWrapper, { state: state, handleSubmit: _handleSubmit, attribute: attribute, fieldValue: fieldValue, shouldShowValueDetailsButton: editRecordState.withInfoButton })), attribute.format === AttributeFormat.date && (_jsx(DSDatePickerWrapper, { state: state, handleSubmit: _handleSubmit, attribute: attribute, fieldValue: fieldValue, shouldShowValueDetailsButton: editRecordState.withInfoButton })), attribute.format === AttributeFormat.date_range && (_jsx(DSRangePickerWrapper, { state: state, handleSubmit: _handleSubmit, attribute: attribute, fieldValue: fieldValue, shouldShowValueDetailsButton: editRecordState.withInfoButton })), attribute.format === AttributeFormat.numeric && (_jsx(DSInputNumberWrapper, { state: state, handleSubmit: _handleSubmit, attribute: attribute, fieldValue: fieldValue, shouldShowValueDetailsButton: editRecordState.withInfoButton })), attribute.format === AttributeFormat.encrypted && (_jsx(DSInputPasswordWrapper, { state: state, handleSubmit: _handleSubmit, attribute: attribute, fieldValue: fieldValue, shouldShowValueDetailsButton: editRecordState.withInfoButton })), attribute.format === AttributeFormat.boolean && (_jsx(DSBooleanWrapper, { state: state, handleSubmit: _handleSubmit }))] })), attributeFormatsWithoutDS.includes(attribute.format) && (_jsxs(_Fragment, { children: [fieldValue.isEditing && _jsx(Dimmer, { onClick: _handleCancel }), _jsxs(FormWrapper, { "$isEditing": fieldValue.isEditing, className: fieldValue.index === 0 ? 'first-value' : '', children: [_jsx(Popover, { placement: "topLeft", open: isErrorVisible, content: errorContent, children: _jsxs(InputWrapper, { "$isEditing": fieldValue.isEditing, className: wrapperClasses, "data-testid": "input-wrapper", children: [_jsx(ValuesVersionIndicator, { activeScope: state.activeScope, style: valuesVersionIndicatorStyle }), !fieldValue.index && (_jsxs("label", { className: "attribute-label", onClick: _handleFocus, children: [localizedTranslation(state.formElement.settings.label, availableLangs), editRecordState.externalUpdate.updatedValues[attribute?.id] && (_jsx(UpdatedFieldIcon, {})), state.activeScope === FieldScope.INHERITED && (_jsx(InheritedFieldLabel, { version: state.values[FieldScope.INHERITED].version }))] })), _getInput(), !state.metadataEdit && _jsx(FloatingMenu, { actions: valueActions })] }) }), _jsxs(ActionsWrapper, { ref: actionsWrapperRef, children: [fieldValue.isEditing && attribute?.values_list?.enable && (_jsx(ValuesList, { attribute: attribute, valuesList: valuesList, onValueSelect: _handleSubmit, onValueCopy: _handleValueCopy })), fieldValue.isEditing && (_jsxs(ButtonsWrapper, { children: [_jsx(Button, { size: "small", onClick: _handleCancel, style: { background: '#FFF' }, children: t('global.cancel') }), (!isValuesListEnabled || isValuesListOpen) && (_jsx(Button, { type: "primary", size: "small", onClick: _handleClickSubmit, children: t('global.submit') }))] }))] })] })] }))] }));
|
|
420
423
|
}
|
|
421
424
|
export default StandardFieldValue;
|
|
422
425
|
//# sourceMappingURL=StandardFieldValue.js.map
|