@leav/ui 0.3.5-e362870 → 0.3.6-0a4efa6
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/form.js +2 -0
- package/dist/__mocks__/common/form.js.map +1 -1
- 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__/mockQuery/mockGetViewListQuery.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 +668 -595
- package/dist/_gqlTypes/index.js +51 -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 +24 -14
- package/dist/_queries/records/getRecordPropertiesQuery.js +10 -4
- package/dist/_queries/records/getRecordPropertiesQuery.js.map +1 -1
- package/dist/_queries/records/getRecordsFromLibraryQuery.d.ts +1 -1
- package/dist/_queries/records/getRecordsFromLibraryQuery.js +1 -0
- package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
- package/dist/_queries/values/valueDetailsFragment.js +8 -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 +1 -1
- 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/_utils/typeguards.d.ts +2 -0
- package/dist/_utils/typeguards.js +2 -0
- package/dist/_utils/typeguards.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/Explorer/DataView.d.ts +9 -0
- package/dist/components/Explorer/DataView.js +53 -0
- package/dist/components/Explorer/DataView.js.map +1 -0
- package/dist/components/Explorer/Explorer.d.ts +9 -0
- package/dist/components/Explorer/Explorer.js +14 -0
- package/dist/components/Explorer/Explorer.js.map +1 -0
- package/dist/components/Explorer/index.d.ts +1 -0
- package/dist/{hooks/useRefreshToken → components/Explorer}/index.js +1 -1
- package/dist/components/Explorer/index.js.map +1 -0
- package/dist/components/Explorer/tsconfig.json +6 -0
- package/dist/components/Explorer/types.d.ts +13 -0
- package/dist/components/Explorer/types.js +2 -0
- package/dist/components/Explorer/types.js.map +1 -0
- package/dist/components/Explorer/useDeactivateAction.d.ts +9 -0
- package/dist/components/Explorer/useDeactivateAction.js +41 -0
- package/dist/components/Explorer/useDeactivateAction.js.map +1 -0
- package/dist/components/Explorer/useEditAction.d.ts +9 -0
- package/dist/components/Explorer/useEditAction.js +41 -0
- package/dist/components/Explorer/useEditAction.js.map +1 -0
- package/dist/components/Explorer/useExplorerData.d.ts +5 -0
- package/dist/components/Explorer/useExplorerData.js +21 -0
- package/dist/components/Explorer/useExplorerData.js.map +1 -0
- 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/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/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 +19 -16
- package/dist/components/RecordEdition/EditRecordContent/_types.js +5 -5
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +38 -23
- 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 +4 -4
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +8 -8
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.d.ts +30 -11
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js +70 -17
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.d.ts +7 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js +9 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/standardFieldReducerContext.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js +7 -0
- package/dist/components/RecordEdition/EditRecordContent/reducers/standardFieldReducer/useStandardFieldReducer.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.d.ts +2 -3
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js.map +1 -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 +4 -5
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +8 -8
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.d.ts +2 -3
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js.map +1 -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 +21 -10
- 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 +58 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.d.ts +15 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +76 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.d.ts +15 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +72 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.d.ts +15 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +91 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +37 -19
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +42 -21
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +49 -15
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.d.ts +15 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +82 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -0
- 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 +3 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +32 -30
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.d.ts +13 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js +82 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueDisplayHandler.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.d.ts +7 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js +45 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/ColorPickerBlock.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.d.ts +9 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js +137 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/StandardFieldValueRead/StandardFieldValueRead.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js +5 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValueDisplayHandler/index.js.map +1 -0
- 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 +4 -4
- 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.d.ts +6 -6
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js +2 -2
- 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/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/contexts/EditRecordModalContext/EditRecordModalContext.d.ts +5 -0
- package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js +7 -0
- package/dist/contexts/EditRecordModalContext/EditRecordModalContext.js.map +1 -0
- package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.d.ts +2 -0
- package/dist/{components/LibraryItemsList/LibraryItemsListTable/EditRecordModalContext.js → contexts/EditRecordModalContext/EditRecordModalProvider.js} +6 -9
- package/dist/contexts/EditRecordModalContext/EditRecordModalProvider.js.map +1 -0
- package/dist/contexts/EditRecordModalContext/index.d.ts +2 -0
- package/dist/contexts/EditRecordModalContext/index.js +6 -0
- package/dist/contexts/EditRecordModalContext/index.js.map +1 -0
- package/dist/contexts/EditRecordModalContext/tsconfig.json +6 -0
- package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.d.ts +1 -0
- package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js +7 -0
- package/dist/contexts/EditRecordModalContext/useEditRecordModalContext.js.map +1 -0
- 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 +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.d.ts +1 -1
- package/dist/hooks/useLang/useLang.js +2 -2
- 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/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/hooks/useLoginChecker/index.d.ts +1 -0
- package/dist/hooks/useLoginChecker/index.js +5 -0
- 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 +7 -2
- 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/locales/en/shared.json +7 -0
- package/dist/locales/fr/shared.json +7 -0
- 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 +6 -5
- 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/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalContext.d.ts +0 -7
- package/dist/components/LibraryItemsList/LibraryItemsListTable/EditRecordModalContext.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
|
@@ -3,7 +3,7 @@ import { jsx as _jsx } 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 { KitInput } from 'aristid-ds';
|
|
6
|
-
import { useState } from 'react';
|
|
6
|
+
import { useEffect, useRef, useState } from 'react';
|
|
7
7
|
import { Form } from 'antd';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
9
|
import { useSharedTranslation } from '../../../../../../hooks/useSharedTranslation';
|
|
@@ -12,34 +12,43 @@ 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, handleBlur, 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
|
});
|
|
29
23
|
const [hasChanged, setHasChanged] = useState(false);
|
|
30
24
|
const { lang: availableLang } = useLang();
|
|
31
|
-
const
|
|
25
|
+
const inputRef = useRef(null);
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
if (fieldValue.isEditing && inputRef.current) {
|
|
28
|
+
inputRef.current.focus();
|
|
29
|
+
}
|
|
30
|
+
}, [fieldValue.isEditing]);
|
|
31
|
+
const _resetToInheritedOrCalculatedValue = () => {
|
|
32
32
|
setHasChanged(false);
|
|
33
|
-
|
|
33
|
+
if (state.isInheritedValue) {
|
|
34
|
+
onChange(state.inheritedValue.raw_value);
|
|
35
|
+
}
|
|
36
|
+
else if (state.isCalculatedValue) {
|
|
37
|
+
onChange(state.calculatedValue.raw_value);
|
|
38
|
+
}
|
|
34
39
|
handleSubmit('', state.attribute.id);
|
|
35
40
|
};
|
|
36
41
|
const _handleOnBlur = (event) => {
|
|
42
|
+
if (!hasChanged) {
|
|
43
|
+
handleBlur();
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
37
46
|
const valueToSubmit = event.target.value;
|
|
38
|
-
if (valueToSubmit === '' && state.isInheritedValue) {
|
|
39
|
-
|
|
47
|
+
if (valueToSubmit === '' && (state.isInheritedValue || state.isCalculatedValue)) {
|
|
48
|
+
_resetToInheritedOrCalculatedValue();
|
|
40
49
|
return;
|
|
41
50
|
}
|
|
42
|
-
if (hasChanged || !state.isInheritedValue) {
|
|
51
|
+
if (hasChanged || (!state.isInheritedValue && !state.isCalculatedValue)) {
|
|
43
52
|
handleSubmit(valueToSubmit, state.attribute.id);
|
|
44
53
|
}
|
|
45
54
|
onChange(event);
|
|
@@ -47,17 +56,29 @@ export const DSInputWrapper = ({ value, onChange, state, attribute, fieldValue,
|
|
|
47
56
|
const _handleOnChange = (event) => {
|
|
48
57
|
setHasChanged(true);
|
|
49
58
|
const inputValue = event.target.value;
|
|
50
|
-
if (state.isInheritedValue && inputValue === '' && event.type === 'click') {
|
|
51
|
-
|
|
59
|
+
if ((state.isInheritedValue || state.isCalculatedValue) && inputValue === '' && event.type === 'click') {
|
|
60
|
+
_resetToInheritedOrCalculatedValue();
|
|
52
61
|
return;
|
|
53
62
|
}
|
|
63
|
+
if (inputValue === '' && event.type === 'click') {
|
|
64
|
+
handleSubmit(inputValue, state.attribute.id);
|
|
65
|
+
}
|
|
54
66
|
onChange(event);
|
|
55
67
|
};
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
68
|
+
const _getHelper = () => {
|
|
69
|
+
if (state.isInheritedOverrideValue) {
|
|
70
|
+
return t('record_edition.inherited_input_helper', {
|
|
59
71
|
inheritedValue: state.inheritedValue.raw_value
|
|
60
|
-
})
|
|
61
|
-
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
else if (state.isCalculatedOverrideValue) {
|
|
75
|
+
return t('record_edition.calculated_input_helper', {
|
|
76
|
+
calculatedValue: state.calculatedValue.raw_value
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
return;
|
|
80
|
+
};
|
|
81
|
+
const label = localizedTranslation(state.formElement.settings.label, availableLang);
|
|
82
|
+
return (_jsx(KitInputStyled, { ref: inputRef, required: state.formElement.settings.required, label: label, onInfoClick: shouldShowValueDetailsButton ? onValueDetailsButtonClick : null, status: errors.length > 0 ? 'error' : undefined, helper: _getHelper(), value: value, disabled: state.isReadOnly, allowClear: !state.isInheritedNotOverrideValue && !state.isCalculatedNotOverrideValue, onBlur: _handleOnBlur, onChange: _handleOnChange, "$shouldHighlightColor": !hasChanged && (state.isInheritedNotOverrideValue || state.isCalculatedNotOverrideValue) }));
|
|
62
83
|
};
|
|
63
84
|
//# sourceMappingURL=DSInputWrapper.js.map
|
|
@@ -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,
|
|
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,EAA6C,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAK9F,OAAO,EAAC,IAAI,EAAqB,MAAM,MAAM,CAAC;AAE9C,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;AAWjD,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;CAClH,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA4C,CAAC,EACpE,KAAK,EACL,QAAQ,EACR,KAAK,EACL,SAAS,EACT,UAAU,EACV,YAAY,EACZ,UAAU,EACV,4BAA4B,GAAG,KAAK,EACvC,EAAE,EAAE;IACD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,MAAM,EAAC,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;IACvC,MAAM,EAAC,yBAAyB,EAAC,GAAG,qBAAqB,CAAC;QACtD,KAAK,EAAE,UAAU,EAAE,KAAK;QACxB,SAAS;KACZ,CAAC,CAAC;IACH,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CA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,EACb,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,QAAQ,EAC7C,KAAK,EAAE,KAAK,EACZ,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,EAAE,UAAU,EAAE,EACpB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,KAAK,CAAC,UAAU,EAC1B,UAAU,EAAE,CAAC,KAAK,CAAC,2BAA2B,IAAI,CAAC,KAAK,CAAC,4BAA4B,EACrF,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,eAAe,2BAErB,CAAC,UAAU,IAAI,CAAC,KAAK,CAAC,2BAA2B,IAAI,KAAK,CAAC,4BAA4B,CAAC,GAE9F,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -7,8 +7,9 @@ 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
|
+
handleBlur: () => void;
|
|
12
|
+
shouldShowValueDetailsButton?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export declare const DSRangePickerWrapper: FunctionComponent<IDSRangePickerWrapperProps>;
|
|
14
15
|
export {};
|
|
@@ -3,6 +3,7 @@ import { jsx as _jsx } 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 { KitDatePicker } from 'aristid-ds';
|
|
6
|
+
import { useEffect, useRef } from 'react';
|
|
6
7
|
import { Form } from 'antd';
|
|
7
8
|
import dayjs from 'dayjs';
|
|
8
9
|
import styled from 'styled-components';
|
|
@@ -12,27 +13,39 @@ import { useLang } from '../../../../../../hooks';
|
|
|
12
13
|
import { localizedTranslation } from '@leav/utils';
|
|
13
14
|
const KitDatePickerRangePickerStyled = styled(KitDatePicker.RangePicker) `
|
|
14
15
|
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
16
|
`;
|
|
21
|
-
export const DSRangePickerWrapper = ({ value, onChange, state, attribute, fieldValue, shouldShowValueDetailsButton = false
|
|
17
|
+
export const DSRangePickerWrapper = ({ value, onChange, state, attribute, fieldValue, handleSubmit, handleBlur, shouldShowValueDetailsButton = false }) => {
|
|
22
18
|
const { t } = useSharedTranslation();
|
|
23
19
|
const { lang: availableLangs } = useLang();
|
|
24
20
|
const { errors } = Form.Item.useStatus();
|
|
25
|
-
const { onValueDetailsButtonClick
|
|
21
|
+
const { onValueDetailsButtonClick } = useValueDetailsButton({
|
|
26
22
|
value: fieldValue?.value,
|
|
27
23
|
attribute
|
|
28
24
|
});
|
|
29
|
-
const
|
|
30
|
-
|
|
25
|
+
const inputRef = useRef();
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
if (fieldValue.isEditing && inputRef.current) {
|
|
28
|
+
inputRef.current.nativeElement.click(); // To automatically open the date picker
|
|
29
|
+
}
|
|
30
|
+
}, [fieldValue.isEditing]);
|
|
31
|
+
const _resetToInheritedOrCalculatedValue = () => {
|
|
32
|
+
if (state.isInheritedValue) {
|
|
31
33
|
onChange([
|
|
32
34
|
dayjs.unix(Number(state.inheritedValue.raw_value.from)),
|
|
33
35
|
dayjs.unix(Number(state.inheritedValue.raw_value.to))
|
|
34
36
|
], state.inheritedValue.raw_value);
|
|
35
|
-
|
|
37
|
+
}
|
|
38
|
+
else if (state.isCalculatedValue) {
|
|
39
|
+
onChange([
|
|
40
|
+
dayjs.unix(Number(state.calculatedValue.raw_value.from)),
|
|
41
|
+
dayjs.unix(Number(state.calculatedValue.raw_value.to))
|
|
42
|
+
], state.calculatedValue.raw_value);
|
|
43
|
+
}
|
|
44
|
+
handleSubmit('', state.attribute.id);
|
|
45
|
+
};
|
|
46
|
+
const _handleDateChange = (rangePickerDates, ...antOnChangeParams) => {
|
|
47
|
+
if ((state.isInheritedValue || state.isCalculatedValue) && rangePickerDates === null) {
|
|
48
|
+
_resetToInheritedOrCalculatedValue();
|
|
36
49
|
return;
|
|
37
50
|
}
|
|
38
51
|
onChange(rangePickerDates, ...antOnChangeParams);
|
|
@@ -48,14 +61,35 @@ export const DSRangePickerWrapper = ({ value, onChange, state, attribute, fieldV
|
|
|
48
61
|
}
|
|
49
62
|
handleSubmit(datesToSave, state.attribute.id);
|
|
50
63
|
};
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
64
|
+
const _handleOpenChange = (open) => {
|
|
65
|
+
if (!open) {
|
|
66
|
+
handleBlur();
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const _getHelper = () => {
|
|
70
|
+
if (state.isInheritedOverrideValue) {
|
|
71
|
+
return t('record_edition.inherited_input_helper', {
|
|
54
72
|
inheritedValue: t('record_edition.date_range_from_to', {
|
|
55
73
|
from: state.inheritedValue.value.from,
|
|
56
74
|
to: state.inheritedValue.value.to
|
|
57
75
|
})
|
|
58
|
-
})
|
|
59
|
-
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
else if (state.isCalculatedOverrideValue) {
|
|
79
|
+
return t('record_edition.calculated_input_helper', {
|
|
80
|
+
calculatedValue: t('record_edition.date_range_from_to', {
|
|
81
|
+
from: state.calculatedValue.value.from,
|
|
82
|
+
to: state.calculatedValue.value.to
|
|
83
|
+
})
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
return;
|
|
87
|
+
};
|
|
88
|
+
const label = localizedTranslation(state.formElement.settings.label, availableLangs);
|
|
89
|
+
return (_jsx(KitDatePickerRangePickerStyled
|
|
90
|
+
// @ts-expect-error - ref is not a valid prop for RangePicker but works at runtime
|
|
91
|
+
, {
|
|
92
|
+
// @ts-expect-error - ref is not a valid prop for RangePicker but works at runtime
|
|
93
|
+
ref: inputRef, value: value, onChange: _handleDateChange, label: label, required: state.formElement.settings.required, disabled: state.isReadOnly, allowClear: !state.isInheritedNotOverrideValue && !state.isCalculatedNotOverrideValue, status: errors.length > 0 ? 'error' : undefined, onInfoClick: shouldShowValueDetailsButton ? onValueDetailsButtonClick : null, onOpenChange: _handleOpenChange, helper: _getHelper(), "$shouldHighlightColor": state.isInheritedNotOverrideValue || state.isCalculatedNotOverrideValue }));
|
|
60
94
|
};
|
|
61
95
|
//# sourceMappingURL=DSRangePickerWrapper.js.map
|
|
@@ -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;
|
|
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;AACzC,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAK3D,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MA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AAC,WAAW,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IAErF,OAAO,CACH,KAAC,8BAA8B;IAC3B,kFAAkF;;QAAlF,kFAAkF;QAClF,GAAG,EAAE,QAAQ,EACb,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,IAAI,CAAC,KAAK,CAAC,4BAA4B,EACrF,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,YAAY,EAAE,iBAAiB,EAC/B,MAAM,EAAE,UAAU,EAAE,2BACG,KAAK,CAAC,2BAA2B,IAAI,KAAK,CAAC,4BAA4B,GAChG,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 IDSRichTextWrapperProps extends IProvidedByAntFormItem<InputProps> {
|
|
7
|
+
state: IStandardFieldReducerState;
|
|
8
|
+
attribute: RecordFormAttributeFragment;
|
|
9
|
+
fieldValue: IStandardFieldValue;
|
|
10
|
+
handleSubmit: (value: string, id?: string) => void;
|
|
11
|
+
handleBlur: () => void;
|
|
12
|
+
shouldShowValueDetailsButton?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const DSRichTextWrapper: FunctionComponent<IDSRichTextWrapperProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { useEffect, useRef, useState } from 'react';
|
|
6
|
+
import { Form } from 'antd';
|
|
7
|
+
import styled from 'styled-components';
|
|
8
|
+
import { useSharedTranslation } from '../../../../../../hooks/useSharedTranslation';
|
|
9
|
+
import { useValueDetailsButton } from '../../../../../../components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton';
|
|
10
|
+
import { useLang } from '../../../../../../hooks';
|
|
11
|
+
import { localizedTranslation } from '@leav/utils';
|
|
12
|
+
import { KitRichText } from 'aristid-ds';
|
|
13
|
+
const KitRichTextStyled = styled(KitRichText) `
|
|
14
|
+
color: ${({ $shouldHighlightColor }) => ($shouldHighlightColor ? 'var(--general-colors-primary-400)' : 'initial')};
|
|
15
|
+
`;
|
|
16
|
+
const isEmptyValue = value => !value || value === '<p></p>';
|
|
17
|
+
export const DSRichTextWrapper = ({ value, onChange, state, attribute, fieldValue, handleSubmit, handleBlur, shouldShowValueDetailsButton = false }) => {
|
|
18
|
+
const { t } = useSharedTranslation();
|
|
19
|
+
const { errors } = Form.Item.useStatus();
|
|
20
|
+
const { onValueDetailsButtonClick } = useValueDetailsButton({
|
|
21
|
+
value: fieldValue?.value,
|
|
22
|
+
attribute
|
|
23
|
+
});
|
|
24
|
+
const [hasChanged, setHasChanged] = useState(false);
|
|
25
|
+
const { lang: availableLang } = useLang();
|
|
26
|
+
const inputRef = useRef(null);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (fieldValue.isEditing && inputRef.current) {
|
|
29
|
+
inputRef.current.children[0].focus();
|
|
30
|
+
}
|
|
31
|
+
}, [fieldValue.isEditing]);
|
|
32
|
+
const _resetToInheritedOrCalculatedValue = () => {
|
|
33
|
+
setHasChanged(false);
|
|
34
|
+
if (state.isInheritedValue) {
|
|
35
|
+
onChange(state.inheritedValue.raw_value);
|
|
36
|
+
}
|
|
37
|
+
else if (state.isCalculatedValue) {
|
|
38
|
+
onChange(state.calculatedValue.raw_value);
|
|
39
|
+
}
|
|
40
|
+
handleSubmit('', state.attribute.id);
|
|
41
|
+
};
|
|
42
|
+
const _handleOnBlur = inputValue => {
|
|
43
|
+
if (!hasChanged) {
|
|
44
|
+
handleBlur();
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const valueToSubmit = isEmptyValue(inputValue) ? '' : inputValue;
|
|
48
|
+
if (valueToSubmit === '' && (state.isInheritedValue || state.isCalculatedValue)) {
|
|
49
|
+
_resetToInheritedOrCalculatedValue();
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (hasChanged || (!state.isInheritedValue && !state.isCalculatedValue)) {
|
|
53
|
+
handleSubmit(valueToSubmit, state.attribute.id);
|
|
54
|
+
}
|
|
55
|
+
onChange(valueToSubmit);
|
|
56
|
+
return;
|
|
57
|
+
};
|
|
58
|
+
const _handleOnChange = inputValue => {
|
|
59
|
+
setHasChanged(true);
|
|
60
|
+
if (state.isInheritedValue && isEmptyValue(inputValue)) {
|
|
61
|
+
_resetToInheritedOrCalculatedValue();
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
onChange(inputValue);
|
|
65
|
+
};
|
|
66
|
+
const _getHelper = () => {
|
|
67
|
+
if (state.isInheritedOverrideValue) {
|
|
68
|
+
return t('record_edition.inherited_input_helper', {
|
|
69
|
+
inheritedValue: state.inheritedValue.raw_value
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
else if (state.isCalculatedOverrideValue) {
|
|
73
|
+
return t('record_edition.calculated_input_helper', {
|
|
74
|
+
calculatedValue: state.calculatedValue.raw_value
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
return;
|
|
78
|
+
};
|
|
79
|
+
const label = localizedTranslation(state.formElement.settings.label, availableLang);
|
|
80
|
+
return (_jsx(KitRichTextStyled, { ref: inputRef, required: state.formElement.settings.required, label: label, onInfoClick: shouldShowValueDetailsButton ? onValueDetailsButtonClick : null, status: errors.length > 0 ? 'error' : undefined, helper: _getHelper(), value: value, disabled: state.isReadOnly, onChange: _handleOnChange, onBlur: _handleOnBlur, "$shouldHighlightColor": (!hasChanged && state.isInheritedNotOverrideValue) || state.isCalculatedNotOverrideValue }));
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=DSRichTextWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSRichTextWrapper.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAKrE,OAAO,EAAC,IAAI,EAAqB,MAAM,MAAM,CAAC;AAE9C,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;AACjD,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAC;AAWvC,MAAM,iBAAiB,GAAG,MAAM,CAAC,WAAW,CAAC,CAAkC;aAClE,CAAC,EAAC,qBAAqB,EAAC,EAAE,EAAE,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,mCAAmC,CAAC,C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,SAAS;aACjD,CAAC,CAAC;QACP,CAAC;aAAM,IAAI,KAAK,CAAC,yBAAyB,EAAE,CAAC;YACzC,OAAO,CAAC,CAAC,wCAAwC,EAAE;gBAC/C,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC,SAAS;aACnD,CAAC,CAAC;QACP,CAAC;QACD,OAAO;IACX,CAAC,CAAC;IAEF,MAAM,KAAK,GAAG,oBAAoB,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;IAEpF,OAAO,CACH,KAAC,iBAAiB,IACd,GAAG,EAAE,QAAQ,EACb,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,QAAQ,EAC7C,KAAK,EAAE,KAAK,EACZ,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,EAAE,UAAU,EAAE,EACpB,KAAK,EAAE,KAAe,EACtB,QAAQ,EAAE,KAAK,CAAC,UAAU,EAC1B,QAAQ,EAAE,eAAe,EACzB,MAAM,EAAE,aAAa,2BAEjB,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,2BAA2B,CAAC,IAAI,KAAK,CAAC,4BAA4B,GAE9F,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,14 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { AnyPrimitive } from '@leav/utils';
|
|
3
|
-
import {
|
|
2
|
+
import { VersionFieldScope } from '../../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
4
3
|
import { IdValue, IStandardFieldReducerState, IStandardFieldValue, StandardFieldDispatchFunc } from '../../../reducers/standardFieldReducer/standardFieldReducer';
|
|
5
4
|
interface IStandardFieldValueProps {
|
|
6
5
|
value: IStandardFieldValue;
|
|
7
6
|
state: IStandardFieldReducerState;
|
|
8
7
|
dispatch: StandardFieldDispatchFunc;
|
|
9
|
-
onSubmit: (idValue: IdValue, value: AnyPrimitive) => void
|
|
8
|
+
onSubmit: (idValue: IdValue, value: AnyPrimitive) => Promise<void>;
|
|
10
9
|
onDelete: (idValue: IdValue) => void;
|
|
11
|
-
onScopeChange: (scope:
|
|
10
|
+
onScopeChange: (scope: VersionFieldScope) => void;
|
|
12
11
|
}
|
|
13
12
|
declare function StandardFieldValue({ value: fieldValue, onSubmit, onDelete, onScopeChange, state, dispatch }: IStandardFieldValueProps): JSX.Element;
|
|
14
13
|
export default StandardFieldValue;
|