@leav/ui 0.4.0-9b47d86 → 0.4.0-9d2fc695
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/README.md +1 -0
- package/dist/__mocks__/common/form.js +5 -1
- package/dist/__mocks__/common/form.js.map +1 -1
- package/dist/_gqlTypes/index.d.ts +1434 -327
- package/dist/_gqlTypes/index.js +349 -42
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/attributes/attributeDetailsFragment.js +1 -0
- package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
- package/dist/_queries/records/activateRecordsMutation.d.ts +1 -0
- package/dist/_queries/records/activateRecordsMutation.js +15 -0
- package/dist/_queries/records/activateRecordsMutation.js.map +1 -0
- package/dist/_queries/records/getRecordFormQuery.js +13 -0
- package/dist/_queries/records/getRecordFormQuery.js.map +1 -1
- package/dist/_queries/trees/treeNodeChildrenQuery.js +12 -2
- package/dist/_queries/trees/treeNodeChildrenQuery.js.map +1 -1
- package/dist/_utils/attributeType.d.ts +2 -1
- package/dist/_utils/attributeType.js +2 -1
- package/dist/_utils/attributeType.js.map +1 -1
- package/dist/components/CreateDirectory/CreateDirectory.js +3 -3
- 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.d.ts +2 -1
- package/dist/components/Explorer/DataView.js +21 -12
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +9 -6
- package/dist/components/Explorer/Explorer.js +22 -11
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.d.ts +2 -1
- package/dist/components/Explorer/ExplorerToolbar.js +5 -4
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/TableCell.js +22 -11
- package/dist/components/Explorer/TableCell.js.map +1 -1
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +1 -1
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +82 -31
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.js +34 -26
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +27 -5
- package/dist/components/Explorer/_types.js +1 -0
- 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 +2 -1
- package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -1
- package/dist/components/Explorer/actions-item/{useRemoveItemAction.d.ts → useEditStatusItemAction.d.ts} +2 -2
- package/dist/components/Explorer/actions-item/{useRemoveItemAction.js → useEditStatusItemAction.js} +71 -24
- package/dist/components/Explorer/actions-item/useEditStatusItemAction.js.map +1 -0
- package/dist/components/Explorer/actions-item/useReplaceItemAction.d.ts +2 -1
- package/dist/components/Explorer/actions-item/useReplaceItemAction.js +2 -2
- package/dist/components/Explorer/actions-item/useReplaceItemAction.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +5 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +16 -21
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +6 -3
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +5 -19
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -1
- package/dist/components/Explorer/link-item/LinkModal.d.ts +3 -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/manage-view-settings/_shared/CommonFilterItem.js +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +26 -2
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +10 -7
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +5 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js +69 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TreeAttributeDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +6 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +2 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +31 -4
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +19 -8
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
- 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 +3 -2
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +38 -12
- 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.d.ts +1 -1
- package/dist/components/Explorer/useLoadView.js +32 -38
- 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 +3 -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 +31 -16
- 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 +3 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.js +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.utils.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 +3 -5
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +84 -249
- 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/{SelectTreeNodeModal → RecordEdition/EditRecordButtons}/index.js +2 -1
- package/dist/components/RecordEdition/EditRecordButtons/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +13 -11
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +2 -5
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.d.ts +5 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js +28 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateEmptyRecordMutation.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.d.ts +11 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +35 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +1 -0
- 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/FormDivider/FormDivider.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Frame/Frame.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +11 -35
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.js +9 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/ActionButton.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/{link-record-in-edition/useLinkRecords.d.ts → link-record/useExplorerLinkRecords.d.ts} +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/{link-record-in-edition/useLinkRecords.js → link-record/useExplorerLinkRecords.js} +3 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useExplorerLinkRecords.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.d.ts +24 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/{link-record-in-edition/useLinkRecordsInEdition.js → link-record/useLinkRecords.js} +19 -49
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/utils.js +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/utils.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +7 -10
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +3 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +19 -24
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeItem.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/{useDisplayTreeNode.d.ts → TreeNodeList.d.ts} +4 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js +5 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/TreeNodeList.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.d.ts +16 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +12 -13
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.d.ts +4 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +50 -62
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.d.ts +1 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js +6 -10
- package/dist/components/RecordEdition/EditRecordContent/uiElements/shared/useOutsideInteractionDetector.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +68 -52
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +3 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +27 -9
- 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 +13 -12
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.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 +27 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +43 -2
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/index.d.ts +3 -0
- package/dist/components/RecordEdition/index.js +3 -0
- package/dist/components/RecordEdition/index.js.map +1 -1
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.d.ts +4 -1
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +6 -4
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +7 -3
- package/dist/components/SelectTreeNode/SelectTreeNode.js +2 -3
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +5 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +60 -54
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/components/SelectTreeNode/_types.d.ts +18 -0
- package/dist/components/SelectTreeNode/_types.js +2 -0
- package/dist/components/SelectTreeNode/_types.js.map +1 -0
- package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.d.ts → SelectTreeNodeModalOld/SelectTreeNodeModalOld.d.ts} +1 -1
- package/dist/components/{SelectTreeNodeModal/SelectTreeNodeModal.js → SelectTreeNodeModalOld/SelectTreeNodeModalOld.js} +4 -2
- package/dist/components/SelectTreeNodeModalOld/SelectTreeNodeModalOld.js.map +1 -0
- package/dist/components/SelectTreeNodeModalOld/index.d.ts +1 -0
- package/dist/components/{RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList → SelectTreeNodeModalOld}/index.js +1 -2
- package/dist/components/SelectTreeNodeModalOld/index.js.map +1 -0
- 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 +3 -3
- package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.js +1 -2
- package/dist/components/index.js.map +1 -1
- package/dist/contexts/LangContext/LangContext.d.ts +1 -2
- package/dist/contexts/LangContext/LangContext.js +2 -2
- package/dist/contexts/LangContext/LangContext.js.map +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useAppLang/useAppLang.js.map +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/messageHandlers.d.ts +15 -0
- package/dist/hooks/useIFrameMessenger/messageHandlers.js +121 -0
- package/dist/hooks/useIFrameMessenger/messageHandlers.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/schema.d.ts +21 -0
- package/dist/hooks/useIFrameMessenger/schema.js +76 -0
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/types.d.ts +120 -0
- package/dist/hooks/useIFrameMessenger/types.js +2 -0
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +19 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +108 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.d.ts +7 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +13 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +13 -0
- package/dist/{components/RecordEdition/EditRecord/creationErrorContext.js → hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js} +2 -3
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.js.map +1 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +13 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js +13 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.js.map +1 -0
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +1 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
- package/dist/locales/en/shared.json +9 -1
- package/dist/locales/fr/shared.json +9 -1
- package/dist/types/attributes.d.ts +2 -1
- package/package.json +23 -8
- package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +0 -1
- package/dist/components/RecordEdition/EditRecord/creationErrorContext.d.ts +0 -6
- package/dist/components/RecordEdition/EditRecord/creationErrorContext.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.d.ts +0 -5
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js +0 -28
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.d.ts +0 -121
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js +0 -31
- package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useEditRecord.d.ts +0 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useEditRecord.js +0 -39
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useEditRecord.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useUnselectRecord.d.ts +0 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useUnselectRecord.js +0 -23
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useUnselectRecord.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-mass/useUnselectAllRecords.d.ts +0 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-mass/useUnselectAllRecords.js +0 -23
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-mass/useUnselectAllRecords.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useCreateRecord.d.ts +0 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useCreateRecord.js +0 -26
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useCreateRecord.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useRecordSelector.d.ts +0 -12
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useRecordSelector.js +0 -24
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useRecordSelector.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecords.d.ts +0 -19
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecords.js +0 -103
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecords.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.d.ts +0 -22
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.js +0 -104
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-creation/useLinkRecordsInCreation.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecords.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.d.ts +0 -26
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record-in-edition/useLinkRecordsInEdition.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/LinkActionsButtons.d.ts +0 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/LinkActionsButtons.js +0 -15
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/LinkActionsButtons.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.d.ts +0 -16
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js +0 -35
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/ValuesList.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/useDisplayTreeNode.js +0 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/useDisplayTreeNode.js.map +0 -1
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +0 -1
- package/dist/components/SelectTreeNodeModal/index.d.ts +0 -1
- package/dist/components/SelectTreeNodeModal/index.js.map +0 -1
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"behavior_standard": "Standard",
|
|
77
77
|
"behavior_files": "Files",
|
|
78
78
|
"behavior_directories": "Directories",
|
|
79
|
+
"behavior_join": "Join",
|
|
79
80
|
"record_identity": "ID card of records",
|
|
80
81
|
"preview": "Preview",
|
|
81
82
|
"color": "Color",
|
|
@@ -418,6 +419,7 @@
|
|
|
418
419
|
"by": "by",
|
|
419
420
|
"no_matching_value": "No matching value",
|
|
420
421
|
"copy_value": "Copy",
|
|
422
|
+
"select": "Select",
|
|
421
423
|
"new_value": "New value",
|
|
422
424
|
"advanced_search": "Advanced search",
|
|
423
425
|
"search_elements": "Search elements",
|
|
@@ -485,7 +487,9 @@
|
|
|
485
487
|
"end_date": "End date",
|
|
486
488
|
"select_an_option": "Select an option"
|
|
487
489
|
},
|
|
488
|
-
"replace-by-existing-item": "Replace by an existing item"
|
|
490
|
+
"replace-by-existing-item": "Replace by an existing item",
|
|
491
|
+
"open_sidebar": "Open sidebar",
|
|
492
|
+
"close_sidebar": "Close sidebar"
|
|
489
493
|
},
|
|
490
494
|
"record_summary": {
|
|
491
495
|
"preview_title": "Click here to visualize preview.",
|
|
@@ -578,6 +582,9 @@
|
|
|
578
582
|
"applyToAll": "Apply to all"
|
|
579
583
|
}
|
|
580
584
|
},
|
|
585
|
+
"records_activation": {
|
|
586
|
+
"confirm_one": "Do you really want to activate this record?"
|
|
587
|
+
},
|
|
581
588
|
"records_deactivation": {
|
|
582
589
|
"title": "Deactivate records",
|
|
583
590
|
"title_one": "Deactivate",
|
|
@@ -648,6 +655,7 @@
|
|
|
648
655
|
"actions": "Actions",
|
|
649
656
|
"more-actions": "Show more",
|
|
650
657
|
"deactivate-item": "Deactivate",
|
|
658
|
+
"activate-item": "Activate",
|
|
651
659
|
"delete-item": "Delete",
|
|
652
660
|
"replace-item": "Replace",
|
|
653
661
|
"edit-item": "Show",
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"behavior_standard": "Standard",
|
|
77
77
|
"behavior_files": "Fichiers",
|
|
78
78
|
"behavior_directories": "Dossiers",
|
|
79
|
+
"behavior_join": "Jointure",
|
|
79
80
|
"record_identity": "Carte d'identité des éléments",
|
|
80
81
|
"preview": "Aperçu",
|
|
81
82
|
"color": "Couleur",
|
|
@@ -418,6 +419,7 @@
|
|
|
418
419
|
"by": "par",
|
|
419
420
|
"no_matching_value": "Aucune valeur correspondante",
|
|
420
421
|
"copy_value": "Copier",
|
|
422
|
+
"select": "Sélectionner",
|
|
421
423
|
"new_value": "Nouvelle valeur",
|
|
422
424
|
"advanced_search": "Recherche avancée",
|
|
423
425
|
"search_elements": "Rechercher des éléments",
|
|
@@ -485,7 +487,9 @@
|
|
|
485
487
|
"end_date": "Date de fin",
|
|
486
488
|
"select_an_option": "Sélectionner une option"
|
|
487
489
|
},
|
|
488
|
-
"replace-by-existing-item": "Remplacer par un élément existant"
|
|
490
|
+
"replace-by-existing-item": "Remplacer par un élément existant",
|
|
491
|
+
"open_sidebar": "Ouvrir le panneau latéral",
|
|
492
|
+
"close_sidebar": "Fermer le panneau latéral"
|
|
489
493
|
},
|
|
490
494
|
"record_summary": {
|
|
491
495
|
"preview_title": "Cliquez ici pour voir l’aperçu.",
|
|
@@ -578,6 +582,9 @@
|
|
|
578
582
|
"applyToAll": "Appliquer à tous"
|
|
579
583
|
}
|
|
580
584
|
},
|
|
585
|
+
"records_activation": {
|
|
586
|
+
"confirm_one": "Êtes-vous sûr de vouloir activer cet élément ?"
|
|
587
|
+
},
|
|
581
588
|
"records_deactivation": {
|
|
582
589
|
"title": "Désactiver les éléments",
|
|
583
590
|
"title_one": "Désactiver",
|
|
@@ -648,6 +655,7 @@
|
|
|
648
655
|
"actions": "Actions",
|
|
649
656
|
"more-actions": "Voir plus",
|
|
650
657
|
"deactivate-item": "Désactiver",
|
|
658
|
+
"activate-item": "Activer",
|
|
651
659
|
"delete-item": "Supprimer",
|
|
652
660
|
"replace-item": "Remplacer",
|
|
653
661
|
"edit-item": "Afficher",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AttributeFormat, AttributeType } from '../_gqlTypes';
|
|
2
2
|
import { SystemTranslation } from './scalars';
|
|
3
|
-
import { IParentAttributeData, ITreeData } from './search';
|
|
3
|
+
import { IAttribute, IParentAttributeData, ITreeData } from './search';
|
|
4
4
|
export interface ISelectedAttribute {
|
|
5
5
|
id: string;
|
|
6
6
|
library: string;
|
|
@@ -19,3 +19,4 @@ export interface IEmbeddedFields {
|
|
|
19
19
|
label: SystemTranslation;
|
|
20
20
|
embedded_fields: IEmbeddedFields[];
|
|
21
21
|
}
|
|
22
|
+
export type FullTextAttribute = Pick<IAttribute, 'id' | 'label'>;
|
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-9d2fc695",
|
|
4
4
|
"description": "Shared React components and hooks",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "yarn build",
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
"test:ci": "jest --maxWorkers=2",
|
|
14
14
|
"test:commit": "jest --maxWorkers=50% --onlyChanged",
|
|
15
15
|
"create_comp": "scripts/createComponent.js",
|
|
16
|
-
"publish-ui": "npm publish --access public"
|
|
16
|
+
"publish-ui": "npm publish --access public",
|
|
17
|
+
"get-version": "jq -r '.version' package.json",
|
|
18
|
+
"set-version": "jq --arg v $1 '.version = $v' package.json > package.tmp.json && mv package.tmp.json package.json"
|
|
17
19
|
},
|
|
18
20
|
"main": "dist/index",
|
|
19
21
|
"files": [
|
|
@@ -23,6 +25,7 @@
|
|
|
23
25
|
"license": "LGPL3",
|
|
24
26
|
"repository": "https://github.com/leav-solutions/leav-engine",
|
|
25
27
|
"devDependencies": {
|
|
28
|
+
"@apollo/client": "3.8.1",
|
|
26
29
|
"@babel/preset-env": "7.20.2",
|
|
27
30
|
"@babel/preset-react": "7.18.6",
|
|
28
31
|
"@graphql-codegen/add": "5.0.0",
|
|
@@ -36,29 +39,42 @@
|
|
|
36
39
|
"@types/jest": "29.0.2",
|
|
37
40
|
"@types/lodash.isequal": "^4",
|
|
38
41
|
"@types/object-path": "0.11.1",
|
|
42
|
+
"@types/react": "18.2.14",
|
|
39
43
|
"@types/react-beautiful-dnd": "13.1.2",
|
|
44
|
+
"@types/react-dom": "18.2.6",
|
|
40
45
|
"@types/react-table": "7.7.12",
|
|
41
46
|
"@types/uuid": "^9",
|
|
47
|
+
"antd": "5.22.2",
|
|
48
|
+
"aristid-ds": "14.0.0-fa046aa",
|
|
42
49
|
"babel-jest": "29.3.1",
|
|
43
50
|
"commander": "9.5.0",
|
|
51
|
+
"graphql": "16.6.0",
|
|
52
|
+
"i18next": "22.5.0",
|
|
44
53
|
"jest": "29.0.3",
|
|
45
54
|
"jest-environment-jsdom": "29.3.1",
|
|
46
55
|
"jest-styled-components": "7.1.1",
|
|
56
|
+
"react": "18.2.0",
|
|
57
|
+
"react-dom": "18.2.0",
|
|
58
|
+
"react-i18next": "12",
|
|
59
|
+
"react-router-dom": "6.22.0",
|
|
60
|
+
"styled-components": "6.0.8",
|
|
47
61
|
"ts-jest": "29.0.1",
|
|
48
62
|
"tsc-alias": "1.8.8",
|
|
49
|
-
"typescript": "5.5.3"
|
|
63
|
+
"typescript": "5.5.3",
|
|
64
|
+
"vite": "4.5.14"
|
|
50
65
|
},
|
|
51
66
|
"peerDependencies": {
|
|
52
67
|
"@ant-design/icons": ">=5.2",
|
|
53
68
|
"@apollo/client": ">=3.8.1",
|
|
54
69
|
"antd": "5.22.2",
|
|
55
|
-
"aristid-ds": "
|
|
70
|
+
"aristid-ds": "14.0.0-7e64d60",
|
|
56
71
|
"dayjs": "^1.11.13",
|
|
57
72
|
"i18next": "22.5",
|
|
58
73
|
"react": "18.2.0",
|
|
59
74
|
"react-dom": "18.2.0",
|
|
60
75
|
"react-i18next": "12",
|
|
61
76
|
"react-icons": ">=4",
|
|
77
|
+
"react-router-dom": "6.22.0",
|
|
62
78
|
"styled-components": ">=5.3"
|
|
63
79
|
},
|
|
64
80
|
"dependencies": {
|
|
@@ -72,15 +88,14 @@
|
|
|
72
88
|
"html-react-parser": "4.2.2",
|
|
73
89
|
"i18next-resources-to-backend": "1.1.4",
|
|
74
90
|
"lodash.isequal": "4.5.0",
|
|
75
|
-
"moment": "2.30.1",
|
|
76
91
|
"object-path": "0.11.8",
|
|
77
92
|
"react-beautiful-dnd": "13.1.1",
|
|
78
93
|
"react-icons": "4.7.1",
|
|
79
94
|
"react-markdown": "5.0.3",
|
|
80
|
-
"react-router-dom": "6.22.0",
|
|
81
95
|
"react-table": "7.8.0",
|
|
82
96
|
"react-table-sticky": "1.1.3",
|
|
83
97
|
"uuid": "9.0.1",
|
|
84
|
-
"xlsx": "0.18.5"
|
|
98
|
+
"xlsx": "0.18.5",
|
|
99
|
+
"zod": "3.25.67"
|
|
85
100
|
}
|
|
86
|
-
}
|
|
101
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRemoveItemAction.js","sourceRoot":"","sources":["../../../../src/components/Explorer/actions-item/useRemoveItemAction.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CreateRecordMutation } from '../../../_gqlTypes';
|
|
2
|
-
export interface ICreationErrorByField {
|
|
3
|
-
[attributeId: string]: CreateRecordMutation['createRecord']['valuesErrors'];
|
|
4
|
-
}
|
|
5
|
-
declare const CreationErrorContext: import("react").Context<ICreationErrorByField>;
|
|
6
|
-
export default CreationErrorContext;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"creationErrorContext.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecord/creationErrorContext.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAMpC,MAAM,oBAAoB,GAAG,aAAa,CAAwB,EAAE,CAAC,CAAC;AAEtE,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,28 +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 { useCreateRecordMutation } from '../../../../_gqlTypes';
|
|
5
|
-
import { APICallStatus } from '../_types';
|
|
6
|
-
export default function useExecuteCreateRecordMutation() {
|
|
7
|
-
const [executeCreateRecord] = useCreateRecordMutation();
|
|
8
|
-
return {
|
|
9
|
-
createRecord: async (libraryId, values) => {
|
|
10
|
-
const creationResult = await executeCreateRecord({
|
|
11
|
-
variables: { library: libraryId, data: { values } }
|
|
12
|
-
});
|
|
13
|
-
if (creationResult.data.createRecord.valuesErrors?.length > 0) {
|
|
14
|
-
return {
|
|
15
|
-
status: APICallStatus.ERROR,
|
|
16
|
-
errors: creationResult.data.createRecord.valuesErrors
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
return {
|
|
21
|
-
status: APICallStatus.SUCCESS,
|
|
22
|
-
record: creationResult.data.createRecord.record.whoAmI
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=useCreateRecordMutation.js.map
|
package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateRecordMutation.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,uBAAuB,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,EAAC,aAAa,EAAmB,MAAM,WAAW,CAAC;AAM1D,MAAM,CAAC,OAAO,UAAU,8BAA8B;IAClD,MAAM,CAAC,mBAAmB,CAAC,GAAG,uBAAuB,EAAE,CAAC;IAExD,OAAO;QACH,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;YACtC,MAAM,cAAc,GAAG,MAAM,mBAAmB,CAAC;gBAC7C,SAAS,EAAE,EAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,EAAC,MAAM,EAAC,EAAC;aAClD,CAAC,CAAC;YACH,IAAI,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC5D,OAAO;oBACH,MAAM,EAAE,aAAa,CAAC,KAAK;oBAC3B,MAAM,EAAE,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY;iBACxD,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,OAAO;oBACH,MAAM,EAAE,aAAa,CAAC,OAAO;oBAC7B,MAAM,EAAE,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM;iBACzD,CAAC;YACN,CAAC;QACL,CAAC;KACJ,CAAC;AACN,CAAC"}
|
package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.d.ts
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { IValueToSubmit } from '../_types';
|
|
2
|
-
import { IValueVersion } from '../../../../types';
|
|
3
|
-
export declare const useRunActionsListAndFormatOnValue: () => {
|
|
4
|
-
runActionsListAndFormatOnValue: (library: string, valueToProcess: IValueToSubmit, version: IValueVersion) => Promise<{
|
|
5
|
-
id_value?: string | null;
|
|
6
|
-
isInherited?: boolean | null;
|
|
7
|
-
isCalculated?: boolean | null;
|
|
8
|
-
modified_at?: number | null;
|
|
9
|
-
created_at?: number | null;
|
|
10
|
-
payload?: any | null;
|
|
11
|
-
raw_payload?: any | null;
|
|
12
|
-
value?: any | null;
|
|
13
|
-
raw_value?: any | null;
|
|
14
|
-
modified_by?: {
|
|
15
|
-
id: string;
|
|
16
|
-
whoAmI: {
|
|
17
|
-
id: string;
|
|
18
|
-
label?: string | null;
|
|
19
|
-
subLabel?: string | null;
|
|
20
|
-
color?: string | null;
|
|
21
|
-
preview?: import("@leav/utils").IPreviewScalar | null;
|
|
22
|
-
library: {
|
|
23
|
-
id: string;
|
|
24
|
-
label?: any | null;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
} | null;
|
|
28
|
-
created_by?: {
|
|
29
|
-
id: string;
|
|
30
|
-
whoAmI: {
|
|
31
|
-
id: string;
|
|
32
|
-
label?: string | null;
|
|
33
|
-
subLabel?: string | null;
|
|
34
|
-
color?: string | null;
|
|
35
|
-
preview?: import("@leav/utils").IPreviewScalar | null;
|
|
36
|
-
library: {
|
|
37
|
-
id: string;
|
|
38
|
-
label?: any | null;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
} | null;
|
|
42
|
-
version?: Array<{
|
|
43
|
-
treeId: string;
|
|
44
|
-
treeNode?: {
|
|
45
|
-
id: string;
|
|
46
|
-
record: {
|
|
47
|
-
id: string;
|
|
48
|
-
whoAmI: {
|
|
49
|
-
id: string;
|
|
50
|
-
label?: string | null;
|
|
51
|
-
library: {
|
|
52
|
-
id: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
} | null;
|
|
57
|
-
} | null> | null;
|
|
58
|
-
attribute: {
|
|
59
|
-
id: string;
|
|
60
|
-
format?: import("../../../../_gqlTypes").AttributeFormat | null;
|
|
61
|
-
type: import("../../../../_gqlTypes").AttributeType;
|
|
62
|
-
system: boolean;
|
|
63
|
-
};
|
|
64
|
-
metadata?: Array<{
|
|
65
|
-
name: string;
|
|
66
|
-
value?: {
|
|
67
|
-
id_value?: string | null;
|
|
68
|
-
modified_at?: number | null;
|
|
69
|
-
created_at?: number | null;
|
|
70
|
-
payload?: any | null;
|
|
71
|
-
raw_payload?: any | null;
|
|
72
|
-
modified_by?: {
|
|
73
|
-
id: string;
|
|
74
|
-
whoAmI: {
|
|
75
|
-
id: string;
|
|
76
|
-
label?: string | null;
|
|
77
|
-
subLabel?: string | null;
|
|
78
|
-
color?: string | null;
|
|
79
|
-
preview?: import("@leav/utils").IPreviewScalar | null;
|
|
80
|
-
library: {
|
|
81
|
-
id: string;
|
|
82
|
-
label?: any | null;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
} | null;
|
|
86
|
-
created_by?: {
|
|
87
|
-
id: string;
|
|
88
|
-
whoAmI: {
|
|
89
|
-
id: string;
|
|
90
|
-
label?: string | null;
|
|
91
|
-
subLabel?: string | null;
|
|
92
|
-
color?: string | null;
|
|
93
|
-
preview?: import("@leav/utils").IPreviewScalar | null;
|
|
94
|
-
library: {
|
|
95
|
-
id: string;
|
|
96
|
-
label?: any | null;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
} | null;
|
|
100
|
-
version?: Array<{
|
|
101
|
-
treeId: string;
|
|
102
|
-
treeNode?: {
|
|
103
|
-
id: string;
|
|
104
|
-
record: {
|
|
105
|
-
id: string;
|
|
106
|
-
whoAmI: {
|
|
107
|
-
id: string;
|
|
108
|
-
label?: string | null;
|
|
109
|
-
library: {
|
|
110
|
-
id: string;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
} | null;
|
|
115
|
-
} | null> | null;
|
|
116
|
-
} | null;
|
|
117
|
-
} | null> | null;
|
|
118
|
-
}>;
|
|
119
|
-
loading: boolean;
|
|
120
|
-
error: import("@apollo/client").ApolloError;
|
|
121
|
-
};
|
package/dist/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.js
DELETED
|
@@ -1,31 +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 { useRunActionsListAndFormatOnValueLazyQuery } from '../../../../_gqlTypes';
|
|
5
|
-
import { objectToNameValueArray } from '@leav/utils';
|
|
6
|
-
export const useRunActionsListAndFormatOnValue = () => {
|
|
7
|
-
const [runActionsListAndFormatOnValueLazyQuery, { loading, error }] = useRunActionsListAndFormatOnValueLazyQuery();
|
|
8
|
-
const runActionsListAndFormatOnValue = async (library, valueToProcess, version) => {
|
|
9
|
-
const result = await runActionsListAndFormatOnValueLazyQuery({
|
|
10
|
-
variables: {
|
|
11
|
-
library,
|
|
12
|
-
value: {
|
|
13
|
-
attribute: valueToProcess.attribute,
|
|
14
|
-
payload: valueToProcess.value !== null ? String(valueToProcess.value) : null,
|
|
15
|
-
metadata: valueToProcess.metadata
|
|
16
|
-
? objectToNameValueArray(valueToProcess.metadata).map(({ name, value }) => ({
|
|
17
|
-
name,
|
|
18
|
-
value: String(value)
|
|
19
|
-
}))
|
|
20
|
-
: null
|
|
21
|
-
},
|
|
22
|
-
version: version
|
|
23
|
-
? objectToNameValueArray(version).map(v => ({ treeId: v.name, treeNodeId: v.value.id }))
|
|
24
|
-
: null
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
return result.data.runActionsListAndFormatOnValue?.[0] ?? null;
|
|
28
|
-
};
|
|
29
|
-
return { runActionsListAndFormatOnValue, loading, error };
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=useRunActionsListAndFormatOnValue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRunActionsListAndFormatOnValue.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordContent/hooks/useRunActionsListAndFormatOnValue.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,0CAA0C,EAAC,MAAM,eAAe,CAAC;AAEzE,OAAO,EAAC,sBAAsB,EAAC,MAAM,aAAa,CAAC;AAGnD,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,EAAE;IAClD,MAAM,CAAC,uCAAuC,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC,GAAG,0CAA0C,EAAE,CAAC;IAEjH,MAAM,8BAA8B,GAAG,KAAK,EACxC,OAAe,EACf,cAA8B,EAC9B,OAAsB,EACxB,EAAE;QACA,MAAM,MAAM,GAAG,MAAM,uCAAuC,CAAC;YACzD,SAAS,EAAE;gBACP,OAAO;gBACP,KAAK,EAAE;oBACH,SAAS,EAAE,cAAc,CAAC,SAAS;oBACnC,OAAO,EAAE,cAAc,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;oBAC5E,QAAQ,EAAE,cAAc,CAAC,QAAQ;wBAC7B,CAAC,CAAC,sBAAsB,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC;4BACpE,IAAI;4BACJ,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;yBACvB,CAAC,CAAC;wBACL,CAAC,CAAC,IAAI;iBACb;gBACD,OAAO,EAAE,OAAO;oBACZ,CAAC,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAC,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAC,CAAC,CAAC;oBACtF,CAAC,CAAC,IAAI;aACb;SACJ,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC,IAAI,CAAC,8BAA8B,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;IACnE,CAAC,CAAC;IAEF,OAAO,EAAC,8BAA8B,EAAE,OAAO,EAAE,KAAK,EAAC,CAAC;AAC5D,CAAC,CAAC"}
|
|
@@ -1,39 +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 { EditRecordModal } from '../../../../../../components/RecordEdition/EditRecordModal';
|
|
7
|
-
import { RecordFilterCondition, useExplorerLibraryDataLazyQuery } from '../../../../../../_gqlTypes';
|
|
8
|
-
import { EDIT_RECORD_MODAL_CLASSNAME } from '../../../../../../components/Explorer/_constants';
|
|
9
|
-
export const useEditRecord = () => {
|
|
10
|
-
const [editingItem, setEditingItem] = useState(null);
|
|
11
|
-
const [isModalVisible, setIsModalVisible] = useState(false);
|
|
12
|
-
const [refreshItem] = useExplorerLibraryDataLazyQuery({ fetchPolicy: 'network-only' });
|
|
13
|
-
const openModal = (item) => {
|
|
14
|
-
setEditingItem(item);
|
|
15
|
-
setIsModalVisible(true);
|
|
16
|
-
};
|
|
17
|
-
const _handleEditModalClose = (item) => {
|
|
18
|
-
refreshItem({
|
|
19
|
-
variables: {
|
|
20
|
-
libraryId: item.libraryId,
|
|
21
|
-
attributeIds: ['id'],
|
|
22
|
-
pagination: { limit: 1 },
|
|
23
|
-
filters: [
|
|
24
|
-
{
|
|
25
|
-
condition: RecordFilterCondition.EQUAL,
|
|
26
|
-
field: 'id',
|
|
27
|
-
value: item.itemId
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
setEditingItem(null);
|
|
33
|
-
};
|
|
34
|
-
return {
|
|
35
|
-
openModal,
|
|
36
|
-
EditRecordModal: isModalVisible && editingItem !== null ? (_jsx(EditRecordModal, { className: EDIT_RECORD_MODAL_CLASSNAME, open: true, record: editingItem.whoAmI, library: editingItem.libraryId, onClose: () => _handleEditModalClose(editingItem) })) : null
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=useEditRecord.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEditRecord.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useEditRecord.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,eAAe,EAAC,MAAM,8CAA8C,CAAC;AAE7E,OAAO,EAAC,qBAAqB,EAAE,+BAA+B,EAAC,MAAM,eAAe,CAAC;AACrF,OAAO,EAAC,2BAA2B,EAAC,MAAM,oCAAoC,CAAC;AAE/E,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAC9B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAmB,IAAI,CAAC,CAAC;IACvE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5D,MAAM,CAAC,WAAW,CAAC,GAAG,+BAA+B,CAAC,EAAC,WAAW,EAAE,cAAc,EAAC,CAAC,CAAC;IAErF,MAAM,SAAS,GAAG,CAAC,IAAe,EAAE,EAAE;QAClC,cAAc,CAAC,IAAI,CAAC,CAAC;QACrB,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,MAAM,qBAAqB,GAAG,CAAC,IAAe,EAAE,EAAE;QAC9C,WAAW,CAAC;YACR,SAAS,EAAE;gBACP,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,YAAY,EAAE,CAAC,IAAI,CAAC;gBACpB,UAAU,EAAE,EAAC,KAAK,EAAE,CAAC,EAAC;gBACtB,OAAO,EAAE;oBACL;wBACI,SAAS,EAAE,qBAAqB,CAAC,KAAK;wBACtC,KAAK,EAAE,IAAI;wBACX,KAAK,EAAE,IAAI,CAAC,MAAM;qBACrB;iBACJ;aACJ;SACJ,CAAC,CAAC;QACH,cAAc,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,OAAO;QACH,SAAS;QACT,eAAe,EACX,cAAc,IAAI,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,CACrC,KAAC,eAAe,IACZ,SAAS,EAAE,2BAA2B,EACtC,IAAI,QACJ,MAAM,EAAE,WAAW,CAAC,MAAM,EAC1B,OAAO,EAAE,WAAW,CAAC,SAAS,EAC9B,OAAO,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC,WAAW,CAAC,GACnD,CACL,CAAC,CAAC,CAAC,IAAI;KACf,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IItemData } from '../../../../../../components/Explorer/_types';
|
|
2
|
-
interface IUnselectRecordProps {
|
|
3
|
-
unlinkRecords: (recordIds: string[]) => void;
|
|
4
|
-
}
|
|
5
|
-
export declare const useUnselectRecord: ({ unlinkRecords }: IUnselectRecordProps) => {
|
|
6
|
-
callback: (item: IItemData) => void;
|
|
7
|
-
};
|
|
8
|
-
export {};
|
|
@@ -1,23 +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 { KitModal } from 'aristid-ds';
|
|
5
|
-
import { useSharedTranslation } from '../../../../../../hooks/useSharedTranslation';
|
|
6
|
-
export const useUnselectRecord = ({ unlinkRecords }) => {
|
|
7
|
-
const { t } = useSharedTranslation();
|
|
8
|
-
return {
|
|
9
|
-
callback: (item) => {
|
|
10
|
-
KitModal.confirm({
|
|
11
|
-
type: 'confirm',
|
|
12
|
-
dangerConfirm: true,
|
|
13
|
-
content: t('record_edition.delete_link_confirm'),
|
|
14
|
-
okText: t('global.submit') ?? undefined,
|
|
15
|
-
cancelText: t('global.cancel') ?? undefined,
|
|
16
|
-
onOk: async () => {
|
|
17
|
-
unlinkRecords([item.itemId]);
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=useUnselectRecord.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUnselectRecord.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-item/useUnselectRecord.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAOpE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAC,aAAa,EAAuB,EAAE,EAAE;IACvE,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,OAAO;QACH,QAAQ,EAAE,CAAC,IAAe,EAAE,EAAE;YAC1B,QAAQ,CAAC,OAAO,CAAC;gBACb,IAAI,EAAE,SAAS;gBACf,aAAa,EAAE,IAAI;gBACnB,OAAO,EAAE,CAAC,CAAC,oCAAoC,CAAC;gBAChD,MAAM,EAAE,CAAC,CAAC,eAAe,CAAC,IAAI,SAAS;gBACvC,UAAU,EAAE,CAAC,CAAC,eAAe,CAAC,IAAI,SAAS;gBAC3C,IAAI,EAAE,KAAK,IAAI,EAAE;oBACb,aAAa,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;gBACjC,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MassSelection } from '../../../../../../components/Explorer/_types';
|
|
2
|
-
import { RecordFilterInput } from '../../../../../../_gqlTypes';
|
|
3
|
-
interface IUnselectAllRecordsProps {
|
|
4
|
-
unlinkRecords: (recordIds: string[]) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const useUnselectAllRecords: ({ unlinkRecords }: IUnselectAllRecordsProps) => {
|
|
7
|
-
callback: (massSelectionFilter: RecordFilterInput[], _massSelection: MassSelection) => void;
|
|
8
|
-
};
|
|
9
|
-
export {};
|
|
@@ -1,23 +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 { KitModal } from 'aristid-ds';
|
|
5
|
-
import { useSharedTranslation } from '../../../../../../hooks/useSharedTranslation';
|
|
6
|
-
export const useUnselectAllRecords = ({ unlinkRecords }) => {
|
|
7
|
-
const { t } = useSharedTranslation();
|
|
8
|
-
return {
|
|
9
|
-
callback: (massSelectionFilter, _massSelection) => {
|
|
10
|
-
KitModal.confirm({
|
|
11
|
-
type: 'confirm',
|
|
12
|
-
dangerConfirm: true,
|
|
13
|
-
content: t('record_edition.delete_links_confirm'),
|
|
14
|
-
okText: t('global.submit') ?? undefined,
|
|
15
|
-
cancelText: t('global.cancel') ?? undefined,
|
|
16
|
-
onOk: async () => {
|
|
17
|
-
unlinkRecords(massSelectionFilter.map(filter => filter.value));
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=useUnselectAllRecords.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUnselectAllRecords.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-mass/useUnselectAllRecords.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAQpE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EAAC,aAAa,EAA2B,EAAE,EAAE;IAC/E,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,OAAO;QACH,QAAQ,EAAE,CAAC,mBAAwC,EAAE,cAA6B,EAAE,EAAE;YAClF,QAAQ,CAAC,OAAO,CAAC;gBACb,IAAI,EAAE,SAAS;gBACf,aAAa,EAAE,IAAI;gBACnB,OAAO,EAAE,CAAC,CAAC,qCAAqC,CAAC;gBACjD,MAAM,EAAE,CAAC,CAAC,eAAe,CAAC,IAAI,SAAS;gBACvC,UAAU,EAAE,CAAC,CAAC,eAAe,CAAC,IAAI,SAAS;gBAC3C,IAAI,EAAE,KAAK,IAAI,EAAE;oBACb,aAAa,CAAC,mBAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;gBACnE,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface IUseCreateRecordProps {
|
|
2
|
-
linkRecords: (recordIds: string[]) => void;
|
|
3
|
-
}
|
|
4
|
-
export declare const useCreateRecord: ({ linkRecords }: IUseCreateRecordProps) => {
|
|
5
|
-
openModal: (libraryIdParam: string) => void;
|
|
6
|
-
CreateRecordModal: JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export {};
|
|
@@ -1,26 +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 { EditRecordModal } from '../../../../../../components/RecordEdition/EditRecordModal';
|
|
7
|
-
import { CREATE_RECORD_MODAL_CLASSNAME } from '../../../../../../components/Explorer/_constants';
|
|
8
|
-
export const useCreateRecord = ({ linkRecords }) => {
|
|
9
|
-
const [libraryId, setLibraryId] = useState(null);
|
|
10
|
-
const [isModalVisible, setIsModalVisible] = useState(false);
|
|
11
|
-
const openModal = (libraryIdParam) => {
|
|
12
|
-
setLibraryId(libraryIdParam);
|
|
13
|
-
setIsModalVisible(true);
|
|
14
|
-
};
|
|
15
|
-
const closeModal = () => {
|
|
16
|
-
setIsModalVisible(false);
|
|
17
|
-
};
|
|
18
|
-
return {
|
|
19
|
-
openModal,
|
|
20
|
-
CreateRecordModal: isModalVisible && libraryId !== null ? (_jsx(EditRecordModal, { className: CREATE_RECORD_MODAL_CLASSNAME, open: true, record: null, library: libraryId, onClose: closeModal, onCreate: newRecord => {
|
|
21
|
-
linkRecords([newRecord.id]);
|
|
22
|
-
closeModal();
|
|
23
|
-
}, submitButtons: ['create'] })) : null
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=useCreateRecord.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateRecord.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useCreateRecord.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,eAAe,EAAC,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAC,6BAA6B,EAAC,MAAM,oCAAoC,CAAC;AAMjF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAC,WAAW,EAAwB,EAAE,EAAE;IACpE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAChE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5D,MAAM,SAAS,GAAG,CAAC,cAAsB,EAAE,EAAE;QACzC,YAAY,CAAC,cAAc,CAAC,CAAC;QAC7B,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,OAAO;QACH,SAAS;QACT,iBAAiB,EACb,cAAc,IAAI,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,CACnC,KAAC,eAAe,IACZ,SAAS,EAAE,6BAA6B,EACxC,IAAI,QACJ,MAAM,EAAE,IAAI,EACZ,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,SAAS,CAAC,EAAE;gBAClB,WAAW,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;gBAC5B,UAAU,EAAE,CAAC;YACjB,CAAC,EACD,aAAa,EAAE,CAAC,QAAQ,CAAC,GAC3B,CACL,CAAC,CAAC,CAAC,IAAI;KACf,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
type SelectionMode = 'simple' | 'multiple';
|
|
2
|
-
interface IUseRecordSelectorProps {
|
|
3
|
-
libraryId: string;
|
|
4
|
-
selectionMode: SelectionMode;
|
|
5
|
-
isReplacementMode: boolean;
|
|
6
|
-
linkRecords: (recordIds: string[]) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const useRecordSelector: ({ libraryId, selectionMode, isReplacementMode, linkRecords }: IUseRecordSelectorProps) => {
|
|
9
|
-
openModal: () => void;
|
|
10
|
-
RecordSelectorModal: JSX.Element;
|
|
11
|
-
};
|
|
12
|
-
export {};
|
|
@@ -1,24 +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 { SelectRecordForLinkModal } from '../../../../../../components/SelectRecordForLinkModal';
|
|
7
|
-
import { LINK_RECORDS_MODAL_CLASSNAME } from '../../../../../../components/Explorer/_constants';
|
|
8
|
-
export const useRecordSelector = ({ libraryId, selectionMode, isReplacementMode, linkRecords }) => {
|
|
9
|
-
const [isModalVisible, setIsModalVisible] = useState(false);
|
|
10
|
-
const openModal = () => {
|
|
11
|
-
setIsModalVisible(true);
|
|
12
|
-
};
|
|
13
|
-
const closeModal = () => {
|
|
14
|
-
setIsModalVisible(false);
|
|
15
|
-
};
|
|
16
|
-
return {
|
|
17
|
-
openModal,
|
|
18
|
-
RecordSelectorModal: isModalVisible ? (_jsx(SelectRecordForLinkModal, { className: LINK_RECORDS_MODAL_CLASSNAME, open: true, replacementMode: isReplacementMode, childLibraryId: libraryId, selectionMode: selectionMode, hideSelectAllAction: selectionMode !== 'multiple', onSelectionCompleted: data => {
|
|
19
|
-
linkRecords(data.records.list.map(record => record.id));
|
|
20
|
-
closeModal();
|
|
21
|
-
}, onClose: closeModal })) : null
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=useRecordSelector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRecordSelector.js","sourceRoot":"","sources":["../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/LinkField/action-primary/useRecordSelector.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,wBAAwB,EAAC,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAC,4BAA4B,EAAC,MAAM,oCAAoC,CAAC;AAWhF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAC9B,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,WAAW,EACW,EAAE,EAAE;IAC1B,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;QACnB,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,OAAO;QACH,SAAS;QACT,mBAAmB,EAAE,cAAc,CAAC,CAAC,CAAC,CAClC,KAAC,wBAAwB,IACrB,SAAS,EAAE,4BAA4B,EACvC,IAAI,QACJ,eAAe,EAAE,iBAAiB,EAClC,cAAc,EAAE,SAAS,EACzB,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,aAAa,KAAK,UAAU,EACjD,oBAAoB,EAAE,IAAI,CAAC,EAAE;gBACzB,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;gBACxD,UAAU,EAAE,CAAC;YACjB,CAAC,EACD,OAAO,EAAE,UAAU,GACrB,CACL,CAAC,CAAC,CAAC,IAAI;KACX,CAAC;AACN,CAAC,CAAC"}
|