@leav/ui 0.4.0-80a4e22 → 0.4.0-8a31349
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/form.js +5 -1
- package/dist/__mocks__/common/form.js.map +1 -1
- package/dist/__mocks__/common/value.d.ts +1 -2
- package/dist/__mocks__/common/value.js +0 -11
- package/dist/__mocks__/common/value.js.map +1 -1
- package/dist/_gqlTypes/index.d.ts +200 -0
- package/dist/_gqlTypes/index.js +93 -0
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/records/getRecordFormQuery.js +4 -0
- package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
- package/dist/components/CreateDirectory/CreateDirectory.js +4 -4
- package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js +3 -2
- package/dist/components/EditLibraryModal/EditLibrary/EditLibraryAttributes/AttributesList/DeleteButton/DeleteButton.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js +8 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/TreeLibrariesForm/TreeLibrariesForm.js.map +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.d.ts +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js +4 -3
- package/dist/components/ErrorBoundary/ErrorBoundaryContent/ErrorBoundaryContent.js.map +1 -1
- package/dist/components/Explorer/DataView.js +24 -7
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +3 -1
- package/dist/components/Explorer/Explorer.js +21 -8
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/IdCard.js +1 -1
- package/dist/components/Explorer/IdCard.js.map +1 -1
- package/dist/components/Explorer/TableCell.js +3 -3
- package/dist/components/Explorer/TableCell.js.map +1 -1
- package/dist/components/Explorer/TableTagGroup.d.ts +0 -1
- package/dist/components/Explorer/TableTagGroup.js +3 -16
- package/dist/components/Explorer/TableTagGroup.js.map +1 -1
- package/dist/components/Explorer/_constants.d.ts +3 -0
- package/dist/components/Explorer/_constants.js +3 -0
- package/dist/components/Explorer/_constants.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.d.ts +1 -0
- package/dist/components/Explorer/_queries/useExplorerData.js +16 -10
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +7 -1
- package/dist/components/Explorer/_types.js.map +1 -1
- package/dist/components/Explorer/actions-item/useEditItemAction.d.ts +2 -1
- package/dist/components/Explorer/actions-item/useEditItemAction.js +6 -4
- package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -1
- package/dist/components/Explorer/actions-item/useRemoveItemAction.d.ts +3 -1
- package/dist/components/Explorer/actions-item/useRemoveItemAction.js +12 -2
- package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +1 -1
- package/dist/components/Explorer/actions-item/useReplaceItemAction.d.ts +21 -0
- package/dist/components/Explorer/actions-item/useReplaceItemAction.js +42 -0
- package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +2 -1
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +12 -3
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +5 -5
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +2 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +10 -3
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +5 -2
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +20 -4
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
- package/dist/components/Explorer/link-item/LinkModal.d.ts +2 -0
- package/dist/components/Explorer/link-item/LinkModal.js +14 -4
- package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
- package/dist/components/Explorer/link-item/{useLinkMassAction.d.ts → useAddLinkMassAction.d.ts} +1 -1
- package/dist/components/Explorer/link-item/{useLinkMassAction.js → useAddLinkMassAction.js} +2 -2
- package/dist/components/Explorer/link-item/useAddLinkMassAction.js.map +1 -0
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.d.ts +23 -0
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js +35 -0
- package/dist/components/Explorer/link-item/useReplaceLinkMassAction.js.map +1 -0
- package/dist/components/Explorer/list-saved-views/SavedViews.js +32 -42
- package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +11 -9
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.d.ts +4 -0
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +2 -2
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +1 -1
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/LabelViewFormModal.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.d.ts +5 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js +47 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useDeleteView.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.d.ts +5 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js +48 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useEditLabelView.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.d.ts +1 -0
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +3 -2
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +8 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +30 -0
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
- package/dist/components/Explorer/useColumnWidth.js +2 -1
- package/dist/components/Explorer/useColumnWidth.js.map +1 -1
- package/dist/components/Explorer/useLoadView.js +4 -2
- package/dist/components/Explorer/useLoadView.js.map +1 -1
- package/dist/components/Explorer/usePagination.d.ts +2 -1
- package/dist/components/Explorer/usePagination.js.map +1 -1
- package/dist/components/Explorer/useSearchInput.d.ts +3 -1
- package/dist/components/Explorer/useSearchInput.js +2 -1
- package/dist/components/Explorer/useSearchInput.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.d.ts +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +37 -17
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js +1 -1
- package/dist/components/ImportModal/ImportModalConfigStep/ImportModalConfigStep.js.map +1 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +1 -0
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.d.ts +4 -0
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +4 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +1 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +3 -3
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +2 -4
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +37 -39
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js +43 -0
- package/dist/components/RecordEdition/EditRecordButtons/EditRecordButtons.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +25 -0
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordButtons/index.d.ts +2 -0
- package/dist/components/RecordEdition/{EditRecordContent/uiElements/TreeField/TreeFieldValue → EditRecordButtons}/index.js +2 -2
- package/dist/components/RecordEdition/EditRecordButtons/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +3 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +12 -3
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +5 -0
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/formConstants.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordContent/formConstants.js +1 -0
- package/dist/components/RecordEdition/EditRecordContent/formConstants.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.d.ts +1 -1
- 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/Frame/Frame.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +39 -11
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.d.ts +7 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +100 -92
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useEditRecord.d.ts +5 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useEditRecord.js +39 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useEditRecord.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useUnselectRecord.d.ts +8 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useUnselectRecord.js +23 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useUnselectRecord.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-mass/useUnselectAllRecords.d.ts +9 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-mass/useUnselectAllRecords.js +23 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-mass/useUnselectAllRecords.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useCreateRecord.d.ts +8 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useCreateRecord.js +26 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useCreateRecord.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useRecordSelector.d.ts +12 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useRecordSelector.js +24 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useRecordSelector.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecords.d.ts +19 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecords.js +103 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecords.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.d.ts +22 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.js +104 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecords.d.ts +22 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecords.js +85 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecords.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.d.ts +26 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.js +105 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.d.ts +265 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.js +13 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/ExplorerWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/LinkActionsButtons.d.ts +9 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/LinkActionsButtons.js +15 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/LinkActionsButtons.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/utils.d.ts +4 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/utils.js +22 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/utils.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +34 -47
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +2 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +2 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +2 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +2 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.d.ts +4 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +67 -215
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.d.ts +265 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js +13 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeFieldWrapper.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.d.ts +10 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +51 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/useDisplayTreeNode.d.ts +11 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/useDisplayTreeNode.js +8 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/useDisplayTreeNode.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.d.ts +15 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +44 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +23 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +145 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/ComputeIndicator.d.ts +4 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/ComputeIndicator.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.d.ts +8 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/DeleteAllValuesButton.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/DeleteAllValuesButton.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/calculatedInheritedFlags.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +17 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +76 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +51 -51
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +9 -7
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +2 -2
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +18 -12
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +3 -0
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js +2 -2
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesVersions/ValuesVersions.js.map +1 -1
- package/dist/components/RecordEdition/constants.d.ts +2 -0
- package/dist/components/RecordEdition/constants.js +6 -0
- package/dist/components/RecordEdition/constants.js.map +1 -0
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +29 -3
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +65 -5
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +3 -3
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.d.ts +2 -0
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +8 -6
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +3 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.js +4 -4
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +3 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +14 -6
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.d.ts +2 -0
- package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js +17 -0
- package/dist/components/SelectTreeNode/SelectTreeNodeContentSkeleton.js.map +1 -0
- package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +9 -0
- package/dist/components/SelectTreeNode/TreeNodeTitle.js +8 -0
- package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -0
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +1 -1
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.d.ts +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundary.js.map +1 -1
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.d.ts +2 -2
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js +6 -3
- package/dist/components/SimpleErrorBoundary/SimpleErrorBoundaryContent/SimpleErrorBoundaryContent.js.map +1 -1
- package/dist/components/UploadFiles/UploadFiles.js +4 -4
- package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
- package/dist/constants.d.ts +3 -1
- package/dist/constants.js +3 -1
- package/dist/constants.js.map +1 -1
- package/dist/hooks/useAppLang/useAppLang.js.map +1 -1
- package/dist/locales/en/shared.json +27 -12
- package/dist/locales/fr/shared.json +27 -12
- package/dist/types/trees.d.ts +1 -0
- package/package.json +4 -4
- package/dist/components/Explorer/link-item/useLinkMassAction.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.d.ts +0 -14
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js +0 -29
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -20
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +0 -53
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.d.ts +0 -19
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.js +0 -111
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -20
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +0 -71
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.d.ts +0 -14
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.js +0 -58
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/useGetOptionsQuery.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.d.ts +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.js +0 -11
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/RecordIdentityCell.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/RecordIdentityCell/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.d.ts +0 -13
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js +0 -50
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/QuickSearch.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/QuickSearch/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.d.ts +0 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js +0 -215
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/ValuesAdd.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/ValuesAdd/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.d.ts +0 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/DeleteAllValuesButton.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/TreeFieldValue.d.ts +0 -10
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js +0 -50
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/TreeFieldValue.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeFieldValue/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.d.ts +0 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +0 -106
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/index.js.map +0 -1
- /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/ComputeIndicator.js +0 -0
- /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/calculatedInheritedFlags.d.ts +0 -0
- /package/dist/components/RecordEdition/EditRecordContent/uiElements/{StandardField → shared}/calculatedInheritedFlags.js +0 -0
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
"or": "or",
|
|
13
13
|
"details": "Details",
|
|
14
14
|
"select": "Select",
|
|
15
|
+
"replace": "Replace",
|
|
16
|
+
"add": "Add",
|
|
15
17
|
"edit": "Edit",
|
|
16
18
|
"delete": "Delete",
|
|
17
19
|
"duplicate": "Duplicate",
|
|
@@ -74,6 +76,7 @@
|
|
|
74
76
|
"behavior_standard": "Standard",
|
|
75
77
|
"behavior_files": "Files",
|
|
76
78
|
"behavior_directories": "Directories",
|
|
79
|
+
"behavior_join": "Join",
|
|
77
80
|
"record_identity": "ID card of records",
|
|
78
81
|
"preview": "Preview",
|
|
79
82
|
"color": "Color",
|
|
@@ -482,7 +485,10 @@
|
|
|
482
485
|
"start_date": "Start date",
|
|
483
486
|
"end_date": "End date",
|
|
484
487
|
"select_an_option": "Select an option"
|
|
485
|
-
}
|
|
488
|
+
},
|
|
489
|
+
"replace-by-existing-item": "Replace by an existing item",
|
|
490
|
+
"open_sidebar": "Open sidebar",
|
|
491
|
+
"close_sidebar": "Close sidebar"
|
|
486
492
|
},
|
|
487
493
|
"record_summary": {
|
|
488
494
|
"preview_title": "Click here to visualize preview.",
|
|
@@ -646,7 +652,8 @@
|
|
|
646
652
|
"more-actions": "Show more",
|
|
647
653
|
"deactivate-item": "Deactivate",
|
|
648
654
|
"delete-item": "Delete",
|
|
649
|
-
"
|
|
655
|
+
"replace-item": "Replace",
|
|
656
|
+
"edit-item": "Show",
|
|
650
657
|
"settings": "Settings",
|
|
651
658
|
"back": "Back",
|
|
652
659
|
"router-menu": "View Configuration",
|
|
@@ -681,29 +688,37 @@
|
|
|
681
688
|
"active-items-number_zero": "None",
|
|
682
689
|
"invalid-value": "Invalid value",
|
|
683
690
|
"type-a-value": "Type a value",
|
|
684
|
-
"save-view-as": "Save as...",
|
|
685
|
-
"share-view": "Share",
|
|
686
|
-
"unshare-view": "Unshare",
|
|
687
|
-
"reinit-view": "Reset",
|
|
688
|
-
"view-name": "View name",
|
|
689
|
-
"default-view": "Default view",
|
|
690
|
-
"manage-views": "Manage views",
|
|
691
691
|
"modified": "Modified",
|
|
692
|
-
"my-views": "My views",
|
|
693
|
-
"shared-views": "Shared views",
|
|
694
|
-
"no-shared-views": "No shared views",
|
|
695
692
|
"select-condition": "Select condition",
|
|
696
693
|
"true": "True",
|
|
697
694
|
"false": "False",
|
|
698
695
|
"filter-condition": "Condition",
|
|
699
696
|
"filter-link-attribute": "Link attribute",
|
|
697
|
+
"viewList": {
|
|
698
|
+
"view-name": "View name",
|
|
699
|
+
"default-view": "Default view",
|
|
700
|
+
"manage-views": "Manage views",
|
|
701
|
+
"my-views": "My views",
|
|
702
|
+
"shared-views": "Shared views",
|
|
703
|
+
"no-shared-views": "No shared views",
|
|
704
|
+
"delete-view": "Delete view",
|
|
705
|
+
"edit-view": "Edit view",
|
|
706
|
+
"confirm-delete-view": "Delete this view?",
|
|
707
|
+
"save-view-as": "Save as...",
|
|
708
|
+
"share-view": "Share",
|
|
709
|
+
"unshare-view": "Unshare",
|
|
710
|
+
"reinit-view": "Reset"
|
|
711
|
+
},
|
|
700
712
|
"massAction": {
|
|
701
713
|
"itemsTotal_one": "{{count, number}} item",
|
|
702
714
|
"itemsTotal_other": "{{count, number}} items",
|
|
703
715
|
"selectedItems_one": "{{count, number}} selected",
|
|
704
716
|
"selectedItems_other": "{{count, number}} selected",
|
|
705
717
|
"deactivate": "Deactivate",
|
|
718
|
+
"deactivate_message": "{{count, number}}/{{total, number}} element for which you have permissions have been deleted. Others remain unchanged.",
|
|
719
|
+
"deactivate_message_zero": "No element deleted, you don't have sufficient permissions.",
|
|
706
720
|
"add-link": "Add",
|
|
721
|
+
"replace-link": "Replace",
|
|
707
722
|
"toggle_selection": {
|
|
708
723
|
"select_page_one": "Select visible item ({{count, number}})",
|
|
709
724
|
"select_page_other": "Select visible items ({{count, number}})",
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
"or": "ou",
|
|
13
13
|
"details": "Détails",
|
|
14
14
|
"select": "Sélectionner",
|
|
15
|
+
"replace": "Remplacer",
|
|
16
|
+
"add": "Ajouter",
|
|
15
17
|
"edit": "Modifier",
|
|
16
18
|
"delete": "Supprimer",
|
|
17
19
|
"duplicate": "Dupliquer",
|
|
@@ -74,6 +76,7 @@
|
|
|
74
76
|
"behavior_standard": "Standard",
|
|
75
77
|
"behavior_files": "Fichiers",
|
|
76
78
|
"behavior_directories": "Dossiers",
|
|
79
|
+
"behavior_join": "Jointure",
|
|
77
80
|
"record_identity": "Carte d'identité des éléments",
|
|
78
81
|
"preview": "Aperçu",
|
|
79
82
|
"color": "Couleur",
|
|
@@ -482,7 +485,10 @@
|
|
|
482
485
|
"start_date": "Date de début",
|
|
483
486
|
"end_date": "Date de fin",
|
|
484
487
|
"select_an_option": "Sélectionner une option"
|
|
485
|
-
}
|
|
488
|
+
},
|
|
489
|
+
"replace-by-existing-item": "Remplacer par un élément existant",
|
|
490
|
+
"open_sidebar": "Ouvrir le panneau latéral",
|
|
491
|
+
"close_sidebar": "Fermer le panneau latéral"
|
|
486
492
|
},
|
|
487
493
|
"record_summary": {
|
|
488
494
|
"preview_title": "Cliquez ici pour voir l’aperçu.",
|
|
@@ -646,7 +652,8 @@
|
|
|
646
652
|
"more-actions": "Voir plus",
|
|
647
653
|
"deactivate-item": "Désactiver",
|
|
648
654
|
"delete-item": "Supprimer",
|
|
649
|
-
"
|
|
655
|
+
"replace-item": "Remplacer",
|
|
656
|
+
"edit-item": "Afficher",
|
|
650
657
|
"settings": "Paramètres",
|
|
651
658
|
"back": "Retour",
|
|
652
659
|
"router-menu": "Configuration de la vue",
|
|
@@ -681,29 +688,37 @@
|
|
|
681
688
|
"active-items-number_zero": "Aucun",
|
|
682
689
|
"invalid-value": "Valeur invalide",
|
|
683
690
|
"type-a-value": "Saisissez une valeur",
|
|
684
|
-
"save-view-as": "Enregistrer sous...",
|
|
685
|
-
"share-view": "Partager",
|
|
686
|
-
"unshare-view": "Retirer le partage",
|
|
687
|
-
"reinit-view": "Réinitialiser",
|
|
688
|
-
"view-name": "Nom de la vue",
|
|
689
|
-
"default-view": "Vue par défaut",
|
|
690
|
-
"manage-views": "Gérer les vues",
|
|
691
691
|
"modified": "Modifiée",
|
|
692
|
-
"my-views": "Mes vues",
|
|
693
|
-
"shared-views": "Vues partagées",
|
|
694
|
-
"no-shared-views": "Aucune vue partagée",
|
|
695
692
|
"select-condition": "Sélectionner une condition",
|
|
696
693
|
"true": "Vrai",
|
|
697
694
|
"false": "Faux",
|
|
698
695
|
"filter-condition": "Condition",
|
|
699
696
|
"filter-link-attribute": "Attribut de liaison",
|
|
697
|
+
"viewList": {
|
|
698
|
+
"view-name": "Nom de la vue",
|
|
699
|
+
"default-view": "Vue par défaut",
|
|
700
|
+
"manage-views": "Gérer les vues",
|
|
701
|
+
"my-views": "Mes vues",
|
|
702
|
+
"shared-views": "Vues partagées",
|
|
703
|
+
"no-shared-views": "Aucune vue partagée",
|
|
704
|
+
"delete-view": "Supprimer la vue",
|
|
705
|
+
"confirm-delete-view": "Supprimer cette vue ?",
|
|
706
|
+
"edit-view": "Éditer la vue",
|
|
707
|
+
"save-view-as": "Enregistrer sous...",
|
|
708
|
+
"share-view": "Partager",
|
|
709
|
+
"unshare-view": "Retirer le partage",
|
|
710
|
+
"reinit-view": "Réinitialiser"
|
|
711
|
+
},
|
|
700
712
|
"massAction": {
|
|
701
713
|
"itemsTotal_one": "{{count, number}} élément",
|
|
702
714
|
"itemsTotal_other": "{{count, number}} éléments",
|
|
703
715
|
"selectedItems_one": "{{count, number}} sélectionné",
|
|
704
716
|
"selectedItems_other": "{{count, number}} sélectionnés",
|
|
705
717
|
"deactivate": "Supprimer",
|
|
718
|
+
"deactivate_message": "{{count, number}}/{{total, number}} éléments pour lesquels vous disposez des permissions nécessaires ont été supprimés. Les autres éléments restent inchangés.",
|
|
719
|
+
"deactivate_message_zero": "Aucun élément n’a été supprimé, vous ne disposez pas des permissions nécessaires.",
|
|
706
720
|
"add-link": "Ajouter",
|
|
721
|
+
"replace-link": "Remplacer",
|
|
707
722
|
"toggle_selection": {
|
|
708
723
|
"select_page_one": "Sélectionner l’éléments visible ({{count, number}})",
|
|
709
724
|
"select_page_other": "Sélectionner les éléments visibles ({{count, number}})",
|
package/dist/types/trees.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leav/ui",
|
|
3
|
-
"version": "0.4.0-
|
|
3
|
+
"version": "0.4.0-8a31349",
|
|
4
4
|
"description": "Shared React components and hooks",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "yarn build",
|
|
@@ -52,13 +52,14 @@
|
|
|
52
52
|
"@ant-design/icons": ">=5.2",
|
|
53
53
|
"@apollo/client": ">=3.8.1",
|
|
54
54
|
"antd": "5.22.2",
|
|
55
|
-
"aristid-ds": "13.0.0-
|
|
55
|
+
"aristid-ds": "13.0.0-d4d9bc3",
|
|
56
56
|
"dayjs": "^1.11.13",
|
|
57
57
|
"i18next": "22.5",
|
|
58
58
|
"react": "18.2.0",
|
|
59
59
|
"react-dom": "18.2.0",
|
|
60
60
|
"react-i18next": "12",
|
|
61
61
|
"react-icons": ">=4",
|
|
62
|
+
"react-router-dom": "6.22.0",
|
|
62
63
|
"styled-components": ">=5.3"
|
|
63
64
|
},
|
|
64
65
|
"dependencies": {
|
|
@@ -66,7 +67,7 @@
|
|
|
66
67
|
"@ckeditor/ckeditor5-react": "6.1.0",
|
|
67
68
|
"@dnd-kit/core": "6.1.0",
|
|
68
69
|
"@dnd-kit/sortable": "8.0.0",
|
|
69
|
-
"@leav/utils": "
|
|
70
|
+
"@leav/utils": "0.0.4",
|
|
70
71
|
"@uidotdev/usehooks": "2.4.1",
|
|
71
72
|
"dompurify": "3.2.4",
|
|
72
73
|
"html-react-parser": "4.2.2",
|
|
@@ -77,7 +78,6 @@
|
|
|
77
78
|
"react-beautiful-dnd": "13.1.1",
|
|
78
79
|
"react-icons": "4.7.1",
|
|
79
80
|
"react-markdown": "5.0.3",
|
|
80
|
-
"react-router-dom": "6.22.0",
|
|
81
81
|
"react-table": "7.8.0",
|
|
82
82
|
"react-table-sticky": "1.1.3",
|
|
83
83
|
"uuid": "9.0.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLinkMassAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/link-item/useLinkMassAction.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,yBAAyB,MAAM,uFAAuF,CAAC;AAM9H;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAC9B,KAAK,EAAE,EAAC,IAAI,EAAC,EACb,eAAe,EACf,MAAM,EACN,UAAU,EAQb,EAAE,EAAE;IACD,MAAM,EAAC,UAAU,EAAC,GAAG,yBAAyB,EAAE,CAAC;IAEjD,OAAO;QACH,WAAW,EAAE,KAAK,EAAE,IAA+B,EAAE,EAAE;YACnD,MAAM,UAAU,GAAG,IAAI,CAAC,UAA6B,CAAC;YACtD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,EAAE,EAAC,EAAE,EAAE,CAAC,CAAC;gBAC5C,SAAS,EAAE,eAAe;gBAC1B,OAAO,EAAE,IAAI;gBACb,KAAK,EAAE,EAAE;aACZ,CAAC,CAAC,CAAC;YAEJ,MAAM,gBAAgB,GAAG,MAAM,UAAU,CACrC;gBACI,EAAE,EAAE,UAAU,CAAC,cAAc;gBAC7B,OAAO,EAAE;oBACL,EAAE,EAAE,UAAU,CAAC,eAAe;iBACjC;aACJ,EACD,MAAM,CACT,CAAC;YACF,MAAM,EAAE,CAAC,gBAAgB,CAAC,CAAC;YAC3B,UAAU,EAAE,CAAC;QACjB,CAAC;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { IRecordIdentityWhoAmI } from '../../../../../../types/records';
|
|
3
|
-
import { RecordFormAttributeFragment } from '../../../../../../_gqlTypes';
|
|
4
|
-
import { RecordProperty } from '../../../../../../_queries/records/getRecordPropertiesQuery';
|
|
5
|
-
interface IFloatingMenuHandlerProps {
|
|
6
|
-
record: IRecordIdentityWhoAmI;
|
|
7
|
-
onDelete: (record: IRecordIdentityWhoAmI) => void;
|
|
8
|
-
value: RecordProperty;
|
|
9
|
-
attribute: RecordFormAttributeFragment;
|
|
10
|
-
isReadOnly: boolean;
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
}
|
|
13
|
-
declare function FloatingMenuHandler({ record, onDelete, value, attribute, isReadOnly, children }: IFloatingMenuHandlerProps): JSX.Element;
|
|
14
|
-
export default FloatingMenuHandler;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { FloatingMenu } from '../../../../../../components';
|
|
3
|
-
import DeleteValueBtn from '../../../../../../components/RecordEdition/EditRecordContent/shared/DeleteValueBtn';
|
|
4
|
-
import ValueDetailsBtn from '../../../../../../components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn';
|
|
5
|
-
import EditRecordBtn from '../../../../../../components/RecordEdition/EditRecordBtn';
|
|
6
|
-
import { useSharedTranslation } from '../../../../../../hooks/useSharedTranslation';
|
|
7
|
-
function FloatingMenuHandler({ record, onDelete, value, attribute, isReadOnly, children }) {
|
|
8
|
-
const { t } = useSharedTranslation();
|
|
9
|
-
const _handleDelete = () => onDelete(record);
|
|
10
|
-
const menuActions = [
|
|
11
|
-
{
|
|
12
|
-
title: t('global.edit'),
|
|
13
|
-
button: _jsx(EditRecordBtn, { record: record, shape: "circle" })
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
title: t('record_edition.value_details'),
|
|
17
|
-
button: _jsx(ValueDetailsBtn, { value: value, attribute: attribute })
|
|
18
|
-
}
|
|
19
|
-
];
|
|
20
|
-
if (!isReadOnly) {
|
|
21
|
-
menuActions.push({
|
|
22
|
-
title: t('global.delete'),
|
|
23
|
-
button: _jsx(DeleteValueBtn, { onDelete: _handleDelete })
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
return (_jsxs("div", { children: [children, _jsx(FloatingMenu, { actions: menuActions })] }));
|
|
27
|
-
}
|
|
28
|
-
export default FloatingMenuHandler;
|
|
29
|
-
//# sourceMappingURL=FloatingMenuHandler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingMenuHandler.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/FloatingMenuHandler.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,YAAY,EAAqB,MAAM,gBAAgB,CAAC;AAChE,OAAO,cAAc,MAAM,sEAAsE,CAAC;AAClG,OAAO,eAAe,MAAM,uEAAuE,CAAC;AACpG,OAAO,aAAa,MAAM,4CAA4C,CAAC;AACvE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAcpE,SAAS,mBAAmB,CAAC,EACzB,MAAM,EACN,QAAQ,EACR,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACgB;IACxB,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAE7C,MAAM,WAAW,GAAyB;QACtC;YACI,KAAK,EAAE,CAAC,CAAC,aAAa,CAAC;YACvB,MAAM,EAAE,KAAC,aAAa,IAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAC,QAAQ,GAAG;SAC3D;QACD;YACI,KAAK,EAAE,CAAC,CAAC,8BAA8B,CAAC;YACxC,MAAM,EAAE,KAAC,eAAe,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAI;SAClE;KACJ,CAAC;IAEF,IAAI,CAAC,UAAU,EAAE,CAAC;QACd,WAAW,CAAC,IAAI,CAAC;YACb,KAAK,EAAE,CAAC,CAAC,eAAe,CAAC;YACzB,MAAM,EAAE,KAAC,cAAc,IAAC,QAAQ,EAAE,aAAa,GAAI;SACtD,CAAC,CAAC;IACP,CAAC;IAED,OAAO,CACH,0BACK,QAAQ,EACT,KAAC,YAAY,IAAC,OAAO,EAAE,WAAW,GAAI,IACpC,CACT,CAAC;AACN,CAAC;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
|
-
import FloatingMenuHandler from './FloatingMenuHandler';
|
|
5
|
-
export default FloatingMenuHandler;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/FloatingMenuHandler/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { RecordFormElementsValueLinkValue } from '../../../../../../hooks/useGetRecordForm';
|
|
3
|
-
import { RecordFormAttributeLinkAttributeFragment } from '../../../../../../_gqlTypes';
|
|
4
|
-
import { SelectProps } from 'antd';
|
|
5
|
-
import { IRecordIdentity } from '../../../../../../types';
|
|
6
|
-
import { IRecordPropertyLink } from '../../../../../../_queries/records/getRecordPropertiesQuery';
|
|
7
|
-
import { IProvidedByAntFormItem } from '../../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
8
|
-
interface IMonoValueSelectProps extends IProvidedByAntFormItem<SelectProps<string[]>, SelectProps<string>> {
|
|
9
|
-
activeValue: RecordFormElementsValueLinkValue | undefined;
|
|
10
|
-
attribute: RecordFormAttributeLinkAttributeFragment;
|
|
11
|
-
label: string;
|
|
12
|
-
onSelectClear: (value: IRecordPropertyLink) => void;
|
|
13
|
-
onSelectChange: (values: Array<{
|
|
14
|
-
value: IRecordIdentity;
|
|
15
|
-
idValue: string;
|
|
16
|
-
}>) => void;
|
|
17
|
-
required?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare const MonoValueSelect: FunctionComponent<IMonoValueSelectProps>;
|
|
20
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { useEffect, useState } from 'react';
|
|
6
|
-
import { AntForm, KitSelect, KitTypography } from 'aristid-ds';
|
|
7
|
-
import useSharedTranslation from '../../../../../../hooks/useSharedTranslation/useSharedTranslation';
|
|
8
|
-
import { useGetOptionsQuery } from './useGetOptionsQuery';
|
|
9
|
-
import { useDebouncedValue } from '../../../../../../hooks/useDebouncedValue/useDebouncedValue';
|
|
10
|
-
import styled from 'styled-components';
|
|
11
|
-
const ResultsCount = styled(KitTypography.Text) `
|
|
12
|
-
margin-bottom: calc(var(--general-spacing-s) * 1px);
|
|
13
|
-
`;
|
|
14
|
-
export const MonoValueSelect = ({ value, onChange, activeValue, attribute, label, onSelectChange, onSelectClear, required = false }) => {
|
|
15
|
-
if (!onChange) {
|
|
16
|
-
throw Error('MonoValueSelect should be used inside a antd Form.Item');
|
|
17
|
-
}
|
|
18
|
-
const { t } = useSharedTranslation();
|
|
19
|
-
const { errors } = AntForm.Item.useStatus();
|
|
20
|
-
const form = AntForm.useFormInstance();
|
|
21
|
-
const [searchInput, setSearchInput] = useState('');
|
|
22
|
-
const debouncedSearchInput = useDebouncedValue(searchInput, 300);
|
|
23
|
-
const { loading, selectOptions, updateLeavField, runFullTextSearch, searchResultCount, suggestionsCount, optionsType } = useGetOptionsQuery({
|
|
24
|
-
activeValue,
|
|
25
|
-
linkedLibraryId: attribute.linked_library.id,
|
|
26
|
-
onSelectChange
|
|
27
|
-
});
|
|
28
|
-
const handleSelect = async (optionValue, ...antOnChangeParams) => {
|
|
29
|
-
onChange(optionValue, antOnChangeParams);
|
|
30
|
-
await form.validateFields([attribute.id]);
|
|
31
|
-
updateLeavField(optionValue);
|
|
32
|
-
};
|
|
33
|
-
const handleClear = async () => {
|
|
34
|
-
form.setFieldValue(attribute.id, undefined);
|
|
35
|
-
onSelectClear(activeValue);
|
|
36
|
-
};
|
|
37
|
-
const handleSearch = async (val) => setSearchInput(val);
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
runFullTextSearch(debouncedSearchInput);
|
|
40
|
-
}, [debouncedSearchInput]);
|
|
41
|
-
return (_jsx(KitSelect, { htmlFor: attribute.id, loading: loading, value: value, required: required, label: label, options: selectOptions, status: errors.length > 0 && 'error', showSearch: true, optionFilterProp: "label", placeholder: t('record_edition.placeholder.record_select'), onSelect: handleSelect, onChange: onChange, onClear: required ? undefined : handleClear, allowClear: !required, onSearch: handleSearch, filterOption: false, dropdownRender: menu => {
|
|
42
|
-
if (loading) {
|
|
43
|
-
return menu;
|
|
44
|
-
}
|
|
45
|
-
return (_jsxs(_Fragment, { children: [_jsx(ResultsCount, { weight: "bold", children: optionsType === 'search'
|
|
46
|
-
? t('record_edition.link_search_result_count', {
|
|
47
|
-
count: searchResultCount > suggestionsCount ? suggestionsCount : searchResultCount,
|
|
48
|
-
total: searchResultCount
|
|
49
|
-
})
|
|
50
|
-
: t('record_edition.suggestions_count', { count: suggestionsCount }) }), menu] }));
|
|
51
|
-
} }));
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=MonoValueSelect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MonoValueSelect.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.tsx"],"names":[],"mappings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EAAE,IAAI,CAAC,EAAE;YACnB,IAAI,OAAO,EAAE,CAAC;gBACV,OAAO,IAAI,CAAC;YAChB,CAAC;YAED,OAAO,CACH,8BACI,KAAC,YAAY,IAAC,MAAM,EAAC,MAAM,YACtB,WAAW,KAAK,QAAQ;4BACrB,CAAC,CAAC,CAAC,CAAC,yCAAyC,EAAE;gCACzC,KAAK,EACD,iBAAiB,GAAG,gBAAgB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,iBAAiB;gCAC/E,KAAK,EAAE,iBAAiB;6BAC3B,CAAC;4BACJ,CAAC,CAAC,CAAC,CAAC,kCAAkC,EAAE,EAAC,KAAK,EAAE,gBAAgB,EAAC,CAAC,GAC3D,EACd,IAAI,IACN,CACN,CAAC;QACN,CAAC,GACH,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { RecordFormElementsValueLinkValue } from '../../../../../../hooks/useGetRecordForm';
|
|
2
|
-
import { IRecordIdentity } from '../../../../../../types';
|
|
3
|
-
export declare const useGetOptionsQuery: ({ activeValue, linkedLibraryId, onSelectChange }: {
|
|
4
|
-
activeValue: RecordFormElementsValueLinkValue | undefined;
|
|
5
|
-
linkedLibraryId: string;
|
|
6
|
-
onSelectChange: (values: Array<{
|
|
7
|
-
value: IRecordIdentity;
|
|
8
|
-
idValue: string;
|
|
9
|
-
}>) => void;
|
|
10
|
-
}) => {
|
|
11
|
-
loading: boolean;
|
|
12
|
-
selectOptions: import("aristid-ds/dist/Kit/DataEntry/Select/types").IKitOption[];
|
|
13
|
-
updateLeavField: (value: string) => void;
|
|
14
|
-
runFullTextSearch: (searchText: string) => Promise<void>;
|
|
15
|
-
totalCount: number;
|
|
16
|
-
searchResultCount: number;
|
|
17
|
-
suggestionsCount: number;
|
|
18
|
-
optionsType: "search" | "suggestions";
|
|
19
|
-
};
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { useQuery } from '@apollo/client';
|
|
6
|
-
import { SortOrder } from '../../../../../../_gqlTypes';
|
|
7
|
-
import { getRecordsFromLibraryQuery } from '../../../../../../_queries/records/getRecordsFromLibraryQuery';
|
|
8
|
-
import sortBy from 'lodash/sortBy';
|
|
9
|
-
import { AntSkeleton } from 'aristid-ds';
|
|
10
|
-
import { useState, useMemo } from 'react';
|
|
11
|
-
const RECORDS_LIMIT = 20; // TODO: should be configurable
|
|
12
|
-
const MINIMAL_SEARCH_LENGTH = 2;
|
|
13
|
-
export const useGetOptionsQuery = ({ activeValue, linkedLibraryId, onSelectChange }) => {
|
|
14
|
-
const initialSearchVariables = {
|
|
15
|
-
library: linkedLibraryId,
|
|
16
|
-
limit: RECORDS_LIMIT,
|
|
17
|
-
sort: {
|
|
18
|
-
field: 'created_at',
|
|
19
|
-
order: SortOrder.desc
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
const [isSearchLoading, setIsSearchLoading] = useState(false);
|
|
23
|
-
const [initialQueryTotalCount, setInitialQueryTotalCount] = useState(0);
|
|
24
|
-
const [optionsType, setOptionsType] = useState('suggestions');
|
|
25
|
-
const { loading: isQueryLoading, data, refetch } = useQuery(getRecordsFromLibraryQuery([], true), {
|
|
26
|
-
fetchPolicy: 'network-only',
|
|
27
|
-
variables: initialSearchVariables,
|
|
28
|
-
onCompleted: queryData => {
|
|
29
|
-
// This is called only after the first fetch, so we can store the total count without searching.
|
|
30
|
-
setInitialQueryTotalCount(queryData?.records?.totalCount ?? 0);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
// const recordList = useMemo(() => data?.records?.list.toSorted() ?? [], [data]); // TODO: when toSorted method available (ie. TS >= 5.2.0)
|
|
34
|
-
const recordList = useMemo(() => sortBy(data?.records?.list, 'whoAmI.label'), [data]);
|
|
35
|
-
const selectOptions = useMemo(() => isSearchLoading // Might become unnecessary when DS handles loading better
|
|
36
|
-
? Array.from({ length: 10 }).map((_, index) => ({
|
|
37
|
-
value: `skeleton-${index}`,
|
|
38
|
-
idCard: {
|
|
39
|
-
//@ts-expect-error KitIdCard doesn't allow a ReactNode as title, but it's fine at runtime
|
|
40
|
-
title: _jsx(AntSkeleton.Input, { active: true }),
|
|
41
|
-
avatarProps: {
|
|
42
|
-
src: _jsx(AntSkeleton.Avatar, { active: true })
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}))
|
|
46
|
-
: recordList.map(recordItem => {
|
|
47
|
-
const recordLabel = recordItem.whoAmI.label ?? recordItem.whoAmI.id;
|
|
48
|
-
return {
|
|
49
|
-
value: recordItem.whoAmI.id,
|
|
50
|
-
label: recordLabel,
|
|
51
|
-
idCard: {
|
|
52
|
-
title: recordLabel,
|
|
53
|
-
avatarProps: {
|
|
54
|
-
size: 'small',
|
|
55
|
-
shape: 'square',
|
|
56
|
-
imageFit: 'contain',
|
|
57
|
-
src: recordItem.whoAmI.preview?.small,
|
|
58
|
-
label: recordLabel
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
}), [recordList, isSearchLoading]);
|
|
63
|
-
const augmentedSelectOptionsWithActive = [...selectOptions];
|
|
64
|
-
if (activeValue && recordList.findIndex(record => record.id === activeValue.linkValue.id) === -1) {
|
|
65
|
-
augmentedSelectOptionsWithActive.push({
|
|
66
|
-
value: activeValue.linkValue.whoAmI.id,
|
|
67
|
-
label: activeValue.linkValue.whoAmI.label,
|
|
68
|
-
idCard: {
|
|
69
|
-
title: activeValue.linkValue.whoAmI.label,
|
|
70
|
-
avatarProps: {
|
|
71
|
-
size: 'small',
|
|
72
|
-
shape: 'square',
|
|
73
|
-
imageFit: 'contain',
|
|
74
|
-
src: activeValue.linkValue.whoAmI.preview?.small,
|
|
75
|
-
label: activeValue.linkValue.whoAmI.label
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
const updateLeavField = (value) => {
|
|
81
|
-
const selectedLinkValue = recordList.find(record => record.id === value);
|
|
82
|
-
return onSelectChange([{ value: selectedLinkValue ?? activeValue.linkValue, idValue: null }]);
|
|
83
|
-
};
|
|
84
|
-
const runFullTextSearch = async (searchText) => {
|
|
85
|
-
const isSearchTextEmpty = searchText === '';
|
|
86
|
-
if (!isSearchTextEmpty && searchText.length < MINIMAL_SEARCH_LENGTH) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
setIsSearchLoading(true);
|
|
90
|
-
await refetch(isSearchTextEmpty
|
|
91
|
-
? { ...initialSearchVariables, fullText: undefined }
|
|
92
|
-
: {
|
|
93
|
-
...initialSearchVariables,
|
|
94
|
-
sort: undefined,
|
|
95
|
-
fullText: searchText
|
|
96
|
-
});
|
|
97
|
-
setOptionsType(isSearchTextEmpty ? 'suggestions' : 'search');
|
|
98
|
-
setIsSearchLoading(false);
|
|
99
|
-
};
|
|
100
|
-
return {
|
|
101
|
-
loading: isQueryLoading || isSearchLoading,
|
|
102
|
-
selectOptions: augmentedSelectOptionsWithActive,
|
|
103
|
-
updateLeavField,
|
|
104
|
-
runFullTextSearch,
|
|
105
|
-
totalCount: initialQueryTotalCount,
|
|
106
|
-
searchResultCount: data?.records?.totalCount ?? 0,
|
|
107
|
-
suggestionsCount: Math.min(RECORDS_LIMIT, initialQueryTotalCount),
|
|
108
|
-
optionsType
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
//# sourceMappingURL=useGetOptionsQuery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useGetOptionsQuery.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/useGetOptionsQuery.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AAC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ED,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACzB,MAAM,OAAO,CACT,iBAAiB;YACb,CAAC,CAAC,EAAC,GAAG,sBAAsB,EAAE,QAAQ,EAAE,SAAS,EAAC;YAClD,CAAC,CAAC;gBACI,GAAG,sBAAsB;gBACzB,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,UAAU;aACvB,CACV,CAAC;QACF,cAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC7D,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC,CAAC;IAEF,OAAO;QACH,OAAO,EAAE,cAAc,IAAI,eAAe;QAC1C,aAAa,EAAE,gCAAgC;QAC/C,eAAe;QACf,iBAAiB;QACjB,UAAU,EAAE,sBAAsB;QAClC,iBAAiB,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,IAAI,CAAC;QACjD,gBAAgB,EAAE,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,sBAAsB,CAAC;QACjE,WAAW;KACd,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { RecordFormElementsValueLinkValue } from '../../../../../../hooks/useGetRecordForm';
|
|
3
|
-
import { RecordFormAttributeLinkAttributeFragment } from '../../../../../../_gqlTypes';
|
|
4
|
-
import { SelectProps } from 'antd';
|
|
5
|
-
import { IRecordIdentity } from '../../../../../../types';
|
|
6
|
-
import { IRecordPropertyLink } from '../../../../../../_queries/records/getRecordPropertiesQuery';
|
|
7
|
-
import { IProvidedByAntFormItem } from '../../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
8
|
-
interface IMultiValueSelectProps extends IProvidedByAntFormItem<SelectProps<string[]>, SelectProps> {
|
|
9
|
-
activeValues: RecordFormElementsValueLinkValue[] | undefined;
|
|
10
|
-
attribute: RecordFormAttributeLinkAttributeFragment;
|
|
11
|
-
label: string;
|
|
12
|
-
onValueDeselect: (value: IRecordPropertyLink) => void;
|
|
13
|
-
onSelectChange: (values: Array<{
|
|
14
|
-
value: IRecordIdentity;
|
|
15
|
-
idValue: string;
|
|
16
|
-
}>) => void;
|
|
17
|
-
required?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare const MultiValueSelect: FunctionComponent<IMultiValueSelectProps>;
|
|
20
|
-
export {};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { useState } from 'react';
|
|
6
|
-
import { AntForm, KitSelect } from 'aristid-ds';
|
|
7
|
-
import useSharedTranslation from '../../../../../../hooks/useSharedTranslation/useSharedTranslation';
|
|
8
|
-
import { useGetOptionsQuery } from './useGetOptionsQuery';
|
|
9
|
-
export const MultiValueSelect = ({ value, onChange, activeValues, attribute, label, onValueDeselect, onSelectChange, required = false }) => {
|
|
10
|
-
if (!onChange) {
|
|
11
|
-
throw Error('MultiValueSelect should be used inside a antd Form.Item');
|
|
12
|
-
}
|
|
13
|
-
const { t } = useSharedTranslation();
|
|
14
|
-
const form = AntForm.useFormInstance();
|
|
15
|
-
const [addedValues, setAddedValues] = useState([]);
|
|
16
|
-
const [clearedValues, setClearedValues] = useState([]);
|
|
17
|
-
const { loading, selectOptions, updateLeavField } = useGetOptionsQuery({
|
|
18
|
-
attribute,
|
|
19
|
-
onSelectChange
|
|
20
|
-
});
|
|
21
|
-
const _handleSelect = (optionValue, ...antOnChangeParams) => {
|
|
22
|
-
const newValues = Array.isArray(value) ? [...value, optionValue] : [optionValue];
|
|
23
|
-
onChange(newValues, antOnChangeParams);
|
|
24
|
-
if (antOnChangeParams.find(optionType => optionType.value === optionValue && !optionType.disabled)) {
|
|
25
|
-
_addValue(optionValue);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
const _addValue = (valueToAdd) => {
|
|
29
|
-
setAddedValues(values => Array.from(new Set([...values, valueToAdd])));
|
|
30
|
-
setClearedValues(values => values.filter(v => v !== valueToAdd));
|
|
31
|
-
};
|
|
32
|
-
const _deleteValue = (valueToDelete, clear) => {
|
|
33
|
-
setAddedValues(values => values.filter(v => v !== valueToDelete));
|
|
34
|
-
if (clear) {
|
|
35
|
-
setClearedValues(values => Array.from(new Set([...values, valueToDelete])));
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
const _clearValues = () => {
|
|
39
|
-
value.forEach(v => _deleteValue(v, true));
|
|
40
|
-
form.setFieldValue(attribute.id, undefined);
|
|
41
|
-
};
|
|
42
|
-
const _handleBlur = () => {
|
|
43
|
-
const activeValuesId = activeValues.map(av => av.linkValue.id);
|
|
44
|
-
const combinedValues = required && !addedValues.length ? clearedValues : addedValues;
|
|
45
|
-
const valuesToAdd = combinedValues.filter(v => !activeValuesId.includes(v));
|
|
46
|
-
const shouldRemoveNone = required &&
|
|
47
|
-
!addedValues.length &&
|
|
48
|
-
clearedValues.length === activeValues.length &&
|
|
49
|
-
clearedValues.every(e => activeValuesId.includes(e));
|
|
50
|
-
const valuesToRemove = shouldRemoveNone
|
|
51
|
-
? []
|
|
52
|
-
: activeValues.filter(av => clearedValues.includes(av.linkValue.id));
|
|
53
|
-
if (valuesToAdd.length || valuesToRemove.length) {
|
|
54
|
-
updateLeavField(valuesToAdd, valuesToRemove);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
const _handleDeselect = (valueToDeselect) => {
|
|
58
|
-
if (value.length === 1 && required) {
|
|
59
|
-
return _deleteValue(valueToDeselect, true);
|
|
60
|
-
}
|
|
61
|
-
_deleteValue(valueToDeselect, false);
|
|
62
|
-
const newValues = value.filter(val => val !== valueToDeselect);
|
|
63
|
-
form.setFieldValue(attribute.id, newValues);
|
|
64
|
-
const activeLinkValueToDeselect = activeValues.find(val => val.linkValue.id === valueToDeselect);
|
|
65
|
-
if (activeLinkValueToDeselect) {
|
|
66
|
-
onValueDeselect(activeLinkValueToDeselect);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
return (_jsx(KitSelect, { htmlFor: attribute.id, loading: loading, value: value, required: required, mode: "multiple", label: label, options: selectOptions, showSearch: true, optionFilterProp: "label", placeholder: t('record_edition.placeholder.record_select'), onSelect: _handleSelect, onClear: _clearValues, onBlur: _handleBlur, onDeselect: _handleDeselect, onChange: onChange }));
|
|
70
|
-
};
|
|
71
|
-
//# sourceMappingURL=MultiValueSelect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultiValueSelect.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,EAAC,OAAO,EAAE,SAAS,EAAC,MAAM,YAAY,CAAC;AAE9C,OAAO,oBAAoB,MAAM,qDAAqD,CAAC;AAIvF,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAcxD,MAAM,CAAC,MAAM,gBAAgB,GAA8C,CAAC,EACxE,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,KAAK,EACL,eAAe,EACf,cAAc,EACd,QAAQ,GAAG,KAAK,EACnB,EAAE,EAAE;IACD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,MAAM,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAC3E,CAAC;IAED,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,IAAI,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAEvC,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAA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