@leav/ui 0.4.0-fd9dcf3f → 1.0.0-4c37a197
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/_gqlTypes/index.d.ts +488 -211
- package/dist/_gqlTypes/index.js +259 -81
- 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/_utils/attributeType.d.ts +2 -1
- package/dist/_utils/attributeType.js +2 -1
- package/dist/_utils/attributeType.js.map +1 -1
- package/dist/components/Explorer/DataView.js +3 -3
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +1 -1
- package/dist/components/Explorer/Explorer.js +13 -4
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.js +11 -2
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/TableCell.js +25 -9
- 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 +99 -31
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.js +32 -27
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +74 -8
- package/dist/components/Explorer/_types.js +5 -0
- package/dist/components/Explorer/_types.js.map +1 -1
- 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 +3 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +9 -19
- 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 +44 -4
- package/dist/components/Explorer/link-item/LinkModal.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +4 -4
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.d.ts +9 -3
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +78 -13
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +21 -8
- 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 +9 -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/FilterValueListDropDown.d.ts +9 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js +131 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueListDropDown.js.map +1 -0
- 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 +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +43 -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 +29 -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 +2 -1
- 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 +57 -14
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.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/useSearchInput.js +2 -0
- package/dist/components/Explorer/useSearchInput.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +1 -12
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +33 -214
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +3 -3
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +15 -22
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +6 -16
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- 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/FormTabs/FormTabs.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.js +6 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/FormTabs/FormTabs.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.js +6 -33
- 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-in-edition/useLinkRecordsInEdition.d.ts → link-record/useLinkRecords.d.ts} +5 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js +76 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/link-record/useLinkRecords.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +26 -21
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.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 +10 -23
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/display-tree-node/{useDisplayTreeNode.d.ts → TreeNodeList.d.ts} +3 -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 +1 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/SelectTreeNodeModal.js +12 -16
- 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 +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/manage-tree-node-selection/useManageTreeNodeSelection.js +51 -63
- 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.js +45 -7
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +46 -8
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +2 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +7 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +2 -5
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/index.d.ts +1 -1
- package/dist/components/RecordEdition/index.js +1 -1
- package/dist/components/RecordEdition/index.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistory.d.ts +8 -0
- package/dist/components/RecordHistory/RecordHistory.js +41 -0
- package/dist/components/RecordHistory/RecordHistory.js.map +1 -0
- package/dist/components/RecordHistory/RecordHistoryLogEntry.d.ts +8 -0
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js +53 -0
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js.map +1 -0
- package/dist/components/RecordHistory/_types.d.ts +8 -0
- package/dist/components/RecordHistory/_types.js +2 -0
- package/dist/components/RecordHistory/_types.js.map +1 -0
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.d.ts +19 -0
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js +61 -0
- package/dist/components/RecordHistory/hooks/useFetchRecordHistory.js.map +1 -0
- package/dist/components/RecordHistory/index.d.ts +1 -0
- package/dist/components/{LinkSelect → RecordHistory}/index.js +1 -2
- package/dist/components/RecordHistory/index.js.map +1 -0
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.d.ts +2 -0
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js +6 -4
- package/dist/components/SelectRecordForLinkModal/SelectRecordForLinkModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +5 -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 +3 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +68 -55
- 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/ShowMore/ShowMore.d.ts +11 -0
- package/dist/components/ShowMore/ShowMore.js +18 -0
- package/dist/components/ShowMore/ShowMore.js.map +1 -0
- package/dist/components/ShowMore/index.d.ts +1 -0
- package/dist/components/{RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList → ShowMore}/index.js +1 -2
- package/dist/components/ShowMore/index.js.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.d.ts +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +2 -2
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/schema.d.ts +2 -0
- package/dist/hooks/useIFrameMessenger/schema.js +4 -1
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/types.d.ts +2 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +3 -3
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +5 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.d.ts +6 -3
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js +1 -3
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -1
- package/dist/locales/en/shared.json +16 -1
- package/dist/locales/fr/shared.json +15 -0
- package/package.json +17 -4
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +0 -10
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +0 -75
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +0 -1
- package/dist/components/LinkSelect/LinkSelect.d.ts +0 -15
- package/dist/components/LinkSelect/LinkSelect.js +0 -88
- package/dist/components/LinkSelect/LinkSelect.js.map +0 -1
- package/dist/components/LinkSelect/index.d.ts +0 -2
- package/dist/components/LinkSelect/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecord/creationErrorContext.d.ts +0 -6
- package/dist/components/RecordEdition/EditRecord/creationErrorContext.js +0 -7
- 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.js +0 -311
- 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/LinkField/shared/utils.d.ts +0 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/utils.js +0 -22
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/shared/utils.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leav/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-4c37a197",
|
|
4
4
|
"description": "Shared React components and hooks",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "yarn build",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"license": "LGPL3",
|
|
26
26
|
"repository": "https://github.com/leav-solutions/leav-engine",
|
|
27
27
|
"devDependencies": {
|
|
28
|
+
"@apollo/client": "3.8.1",
|
|
28
29
|
"@babel/preset-env": "7.20.2",
|
|
29
30
|
"@babel/preset-react": "7.18.6",
|
|
30
31
|
"@graphql-codegen/add": "5.0.0",
|
|
@@ -38,23 +39,35 @@
|
|
|
38
39
|
"@types/jest": "29.0.2",
|
|
39
40
|
"@types/lodash.isequal": "^4",
|
|
40
41
|
"@types/object-path": "0.11.1",
|
|
42
|
+
"@types/react": "18.2.14",
|
|
41
43
|
"@types/react-beautiful-dnd": "13.1.2",
|
|
44
|
+
"@types/react-dom": "18.2.6",
|
|
42
45
|
"@types/react-table": "7.7.12",
|
|
43
46
|
"@types/uuid": "^9",
|
|
47
|
+
"antd": "5.22.2",
|
|
48
|
+
"aristid-ds": "14.0.0-cdba7e7",
|
|
44
49
|
"babel-jest": "29.3.1",
|
|
45
50
|
"commander": "9.5.0",
|
|
51
|
+
"graphql": "16.6.0",
|
|
52
|
+
"i18next": "22.5.0",
|
|
46
53
|
"jest": "29.0.3",
|
|
47
54
|
"jest-environment-jsdom": "29.3.1",
|
|
48
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",
|
|
49
61
|
"ts-jest": "29.0.1",
|
|
50
62
|
"tsc-alias": "1.8.8",
|
|
51
|
-
"typescript": "5.5.3"
|
|
63
|
+
"typescript": "5.5.3",
|
|
64
|
+
"vite": "4.5.14"
|
|
52
65
|
},
|
|
53
66
|
"peerDependencies": {
|
|
54
67
|
"@ant-design/icons": ">=5.2",
|
|
55
68
|
"@apollo/client": ">=3.8.1",
|
|
56
69
|
"antd": "5.22.2",
|
|
57
|
-
"aristid-ds": "
|
|
70
|
+
"aristid-ds": "14.0.0-cdba7e7",
|
|
58
71
|
"dayjs": "^1.11.13",
|
|
59
72
|
"i18next": "22.5",
|
|
60
73
|
"react": "18.2.0",
|
|
@@ -69,7 +82,7 @@
|
|
|
69
82
|
"@ckeditor/ckeditor5-react": "6.1.0",
|
|
70
83
|
"@dnd-kit/core": "6.1.0",
|
|
71
84
|
"@dnd-kit/sortable": "8.0.0",
|
|
72
|
-
"@leav/utils": "
|
|
85
|
+
"@leav/utils": "workspace:libs/utils",
|
|
73
86
|
"@uidotdev/usehooks": "2.4.1",
|
|
74
87
|
"dompurify": "3.2.4",
|
|
75
88
|
"html-react-parser": "4.2.2",
|
package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
interface IFilterValueListProps {
|
|
3
|
-
values: string[];
|
|
4
|
-
selectedValues: string[];
|
|
5
|
-
multiple: boolean;
|
|
6
|
-
freeEntry: boolean;
|
|
7
|
-
onSelectionChanged: (value: string[]) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const FilterValueList: FunctionComponent<IFilterValueListProps>;
|
|
10
|
-
export {};
|
package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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 { useDebouncedValue } from '../../../../../hooks/useDebouncedValue';
|
|
6
|
-
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
7
|
-
import { KitInput, KitTypography } from 'aristid-ds';
|
|
8
|
-
import { useMemo, useState } from 'react';
|
|
9
|
-
import { FaCheck, FaSearch } from 'react-icons/fa';
|
|
10
|
-
import styled from 'styled-components';
|
|
11
|
-
const FilterValueListStyledUl = styled.ul `
|
|
12
|
-
padding: 0;
|
|
13
|
-
margin: 0;
|
|
14
|
-
list-style: none;
|
|
15
|
-
`;
|
|
16
|
-
const ValueListItemValueLi = styled.li `
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
min-height: 32px;
|
|
20
|
-
height: 32px;
|
|
21
|
-
border-radius: calc(var(--general-border-radius-s) * 1px);
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
|
|
24
|
-
&.selected,
|
|
25
|
-
&:hover {
|
|
26
|
-
color: var(--components-Icon-colors-icon-on, var(--general-utilities-main-default));
|
|
27
|
-
background-color: var(--components-Icon-colors-background-on, var(--general-utilities-main-light));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.label {
|
|
31
|
-
flex: 1;
|
|
32
|
-
padding: 0 calc(var(--general-spacing-xs) * 1px);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.check {
|
|
36
|
-
flex: 0;
|
|
37
|
-
padding: 0 calc(var(--general-spacing-xs) * 1px);
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
40
|
-
export const FilterValueList = ({ values, selectedValues, multiple, onSelectionChanged }) => {
|
|
41
|
-
const { t } = useSharedTranslation();
|
|
42
|
-
const [searchInput, setSearchInput] = useState('');
|
|
43
|
-
const debouncedSearchInput = useDebouncedValue(searchInput, 300);
|
|
44
|
-
const searchFilteredValues = useMemo(() => {
|
|
45
|
-
if (debouncedSearchInput === '' || debouncedSearchInput.length < 3) {
|
|
46
|
-
return values;
|
|
47
|
-
}
|
|
48
|
-
return values.filter(value => value.includes(debouncedSearchInput));
|
|
49
|
-
}, [debouncedSearchInput, values]);
|
|
50
|
-
const onSearchChanged = (event) => {
|
|
51
|
-
const shouldIgnoreInputChange = event.target.value.length < 3 && debouncedSearchInput.length < 3;
|
|
52
|
-
if (shouldIgnoreInputChange) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
setSearchInput(() => {
|
|
56
|
-
if (event.target.value.length > 2) {
|
|
57
|
-
return event.target.value;
|
|
58
|
-
}
|
|
59
|
-
return '';
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
const onClickItem = (value) => {
|
|
63
|
-
if (selectedValues.includes(value)) {
|
|
64
|
-
onSelectionChanged(selectedValues.filter(selectedValue => selectedValue !== value));
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
onSelectionChanged(multiple ? [...selectedValues, value] : [value]);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
return (_jsxs(_Fragment, { children: [_jsx(KitInput, { placeholder: String(t('global.search')), onChange: onSearchChanged, allowClear: true, prefix: _jsx(FaSearch, {}) }), _jsx(FilterValueListStyledUl, { children: searchFilteredValues.map(value => {
|
|
71
|
-
const isSelected = selectedValues.includes(value);
|
|
72
|
-
return (_jsxs(ValueListItemValueLi, { className: isSelected ? 'selected' : '', onClick: () => onClickItem(value), children: [_jsx(KitTypography.Text, { className: "label", ellipsis: true, size: "fontSize5", children: value }), isSelected && (_jsx(KitTypography.Text, { className: "check", size: "fontSize5", children: _jsx(FaCheck, {}) }))] }, value));
|
|
73
|
-
}) })] }));
|
|
74
|
-
};
|
|
75
|
-
//# sourceMappingURL=FilterValueList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FilterValueList.js","sourceRoot":"","sources":["../../../../../../src/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACnD,OAAO,EAAiC,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACxE,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACjD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAWvC,MAAM,uBAAuB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;CAIxC,CAAC;AAEF,MAAM,oBAAoB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;CAuBrC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAA6C,CAAC,EACtE,MAAM,EACN,cAAc,EACd,QAAQ,EACR,kBAAkB,EACrB,EAAE,EAAE;IACD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,CAAC,WA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AG,cAAc,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACxE,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACH,8BACI,KAAC,QAAQ,IACL,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EACvC,QAAQ,EAAE,eAAe,EACzB,UAAU,QACV,MAAM,EAAE,KAAC,QAAQ,KAAG,GACtB,EACF,KAAC,uBAAuB,cACnB,oBAAoB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;oBAC9B,MAAM,UAAU,GAAG,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;oBAClD,OAAO,CACH,MAAC,oBAAoB,IAEjB,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EACvC,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,aAEjC,KAAC,aAAa,CAAC,IAAI,IAAC,SAAS,EAAC,OAAO,EAAC,QAAQ,QAAC,IAAI,EAAC,WAAW,YAC1D,KAAK,GACW,EACpB,UAAU,IAAI,CACX,KAAC,aAAa,CAAC,IAAI,IAAC,SAAS,EAAC,OAAO,EAAC,IAAI,EAAC,WAAW,YAClD,KAAC,OAAO,KAAG,GACM,CACxB,KAXI,KAAK,CAYS,CAC1B,CAAC;gBACN,CAAC,CAAC,GACoB,IAC3B,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IKitOption } from 'aristid-ds/dist/Kit/DataEntry/Select/types';
|
|
2
|
-
interface ILinkSelectProps {
|
|
3
|
-
tagDisplay: boolean;
|
|
4
|
-
options: IKitOption[];
|
|
5
|
-
defaultValues: string[];
|
|
6
|
-
hideAdvancedSearch?: boolean;
|
|
7
|
-
onUpdateSelection?: (value: string[]) => void;
|
|
8
|
-
onClickCreateButton?: (value: string) => void;
|
|
9
|
-
onBlur?: (itemsToLink: Set<string>, itemsToDelete: Set<string>) => void;
|
|
10
|
-
onParentDeselect?: (itemId: string) => any;
|
|
11
|
-
onAdvanceSearch?: () => void;
|
|
12
|
-
onSearch?: (searchValue: string) => Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
declare function LinkSelect({ tagDisplay, options, defaultValues, hideAdvancedSearch, onUpdateSelection, onClickCreateButton, onBlur, onAdvanceSearch, onSearch }: ILinkSelectProps): JSX.Element;
|
|
15
|
-
export default LinkSelect;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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 { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
6
|
-
import { faMagnifyingGlass, faPlus } from '@fortawesome/free-solid-svg-icons';
|
|
7
|
-
import { KitButton, KitDivider, KitLoader, KitSelect, KitSpace } from 'aristid-ds';
|
|
8
|
-
import styled from 'styled-components';
|
|
9
|
-
import { useEffect, useRef, useState } from 'react';
|
|
10
|
-
import { useSharedTranslation } from '../../hooks/useSharedTranslation';
|
|
11
|
-
import { useDebouncedValue } from '../../hooks/useDebouncedValue';
|
|
12
|
-
import { FaChevronDown } from 'react-icons/fa';
|
|
13
|
-
const StyledDivider = styled(KitDivider) `
|
|
14
|
-
margin: calc(var(--general-spacing-xs) * 1px);
|
|
15
|
-
`;
|
|
16
|
-
const StyledContainer = styled.div `
|
|
17
|
-
display: flex;
|
|
18
|
-
justify-content: center;
|
|
19
|
-
`;
|
|
20
|
-
const StyledKitSelect = styled(KitSelect) `
|
|
21
|
-
&.select-without-tags {
|
|
22
|
-
.ant-select-selection-overflow-item:not(.ant-select-selection-overflow-item-suffix) {
|
|
23
|
-
display: none;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
27
|
-
function LinkSelect({ tagDisplay, options, defaultValues, hideAdvancedSearch = false, onUpdateSelection, onClickCreateButton, onBlur, onAdvanceSearch, onSearch }) {
|
|
28
|
-
const { t } = useSharedTranslation();
|
|
29
|
-
const itemsToLink = useRef(new Set());
|
|
30
|
-
const itemsToDelete = useRef(new Set());
|
|
31
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
32
|
-
const [currentSearch, setCurrentSearch] = useState('');
|
|
33
|
-
const debouncedSearch = useDebouncedValue(currentSearch, 500);
|
|
34
|
-
const [emptyResults, setEmptyResults] = useState(false);
|
|
35
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
36
|
-
useEffect(() => {
|
|
37
|
-
if (!tagDisplay) {
|
|
38
|
-
setIsOpen(true);
|
|
39
|
-
}
|
|
40
|
-
}, [tagDisplay]);
|
|
41
|
-
useEffect(() => {
|
|
42
|
-
// Call API search when debounced search value changes
|
|
43
|
-
onSearch?.(debouncedSearch).then(() => {
|
|
44
|
-
setIsLoading(false);
|
|
45
|
-
});
|
|
46
|
-
}, [debouncedSearch]);
|
|
47
|
-
useEffect(() => {
|
|
48
|
-
if (debouncedSearch === '') {
|
|
49
|
-
setEmptyResults(false);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
setEmptyResults(options.length === 0);
|
|
53
|
-
}
|
|
54
|
-
}, [options, debouncedSearch]);
|
|
55
|
-
const _handleChange = (selection) => {
|
|
56
|
-
onUpdateSelection?.(selection);
|
|
57
|
-
};
|
|
58
|
-
const _handleSearch = (value) => {
|
|
59
|
-
setIsLoading(true);
|
|
60
|
-
setCurrentSearch(value);
|
|
61
|
-
};
|
|
62
|
-
const _onClickCreateButton = () => {
|
|
63
|
-
onClickCreateButton?.(debouncedSearch);
|
|
64
|
-
};
|
|
65
|
-
const _onBlur = () => {
|
|
66
|
-
onBlur?.(itemsToLink.current, itemsToDelete.current);
|
|
67
|
-
setIsOpen(false);
|
|
68
|
-
};
|
|
69
|
-
const _onSelect = (itemId) => {
|
|
70
|
-
// remove itemToDelete if exists
|
|
71
|
-
itemsToDelete.current.delete(itemId);
|
|
72
|
-
itemsToLink.current.add(itemId);
|
|
73
|
-
};
|
|
74
|
-
const _onDeselect = (itemId) => {
|
|
75
|
-
if (itemsToLink.current.has(itemId)) {
|
|
76
|
-
// Remove item to link if exists
|
|
77
|
-
itemsToLink.current.delete(itemId);
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
itemsToDelete.current.add(itemId);
|
|
81
|
-
};
|
|
82
|
-
const dropdownButtons = menu => (_jsxs("div", { className: "dropdown-custom", children: [menu, (emptyResults || !hideAdvancedSearch) && (_jsxs(_Fragment, { children: [_jsx(StyledDivider, {}), _jsx(StyledContainer, { children: isLoading ? (_jsx(KitLoader, {})) : (_jsxs(KitSpace, { align: "center", direction: "vertical", size: "xs", children: [emptyResults && (_jsx(KitButton, { type: "secondary", icon: _jsx(FontAwesomeIcon, { icon: faPlus }), onClick: _onClickCreateButton,
|
|
83
|
-
// @ts-ignore: required to avoid the click propagation that will automatically close the dropdown modal - https://aristid.atlassian.net/browse/DS-339
|
|
84
|
-
onMouseDown: e => e.preventDefault(), children: `${t('record_edition.new_record')} "${debouncedSearch}"` })), !hideAdvancedSearch && (_jsx(KitButton, { type: "tertiary", icon: _jsx(FontAwesomeIcon, { icon: faMagnifyingGlass }), onClick: () => onAdvanceSearch(), children: t('record_edition.advanced_search') }))] })) })] }))] }));
|
|
85
|
-
return (_jsx(StyledKitSelect, { className: tagDisplay ? undefined : 'select-without-tags', placeholder: t('record_edition.select'), mode: "multiple", open: isOpen, defaultValue: defaultValues, options: options, optionFilterProp: "label", filterOption: false, showSearch: true, onChange: _handleChange, onSearch: _handleSearch, onBlur: _onBlur, onFocus: () => setIsOpen(true), onDeselect: _onDeselect, onSelect: _onSelect, dropdownRender: dropdownButtons, autoFocus: !tagDisplay, allowClear: tagDisplay, suffixIcon: tagDisplay ? _jsx(FaChevronDown, {}) : _jsx("div", {}) }));
|
|
86
|
-
}
|
|
87
|
-
export default LinkSelect;
|
|
88
|
-
//# sourceMappingURL=LinkSelect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkSelect.js","sourceRoot":"","sources":["../../../src/components/LinkSelect/LinkSelect.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAC,iBAAiB,EAAE,MAAM,EAAC,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AACjF,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAiB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAClE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAe7C,MAAM,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;;CAEvC,CAAC;AAEF,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGjC,CAAC;AAEF,MAAM,eAAe,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;;;;;;CAMxC,CAAC;AAEF,SAAS,UAAU,CAAC,EAChB,UAAU,EACV,OAAO,EACP,aAAa,EACb,kBAAkB,GAAG,KAAK,EAC1B,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACN,eAAe,EACf,QAAQ,EACO;IACf,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,GAAG,EAAU,CAAC,CA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,CAAC,CAAC,eAAO,GACtD,CACL,CAAC;AACN,CAAC;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/LinkSelect/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,eAAe,UAAU,CAAC"}
|
|
@@ -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,7 +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 { createContext } from 'react';
|
|
5
|
-
const CreationErrorContext = createContext({});
|
|
6
|
-
export default CreationErrorContext;
|
|
7
|
-
//# sourceMappingURL=creationErrorContext.js.map
|
|
@@ -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/use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,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"}
|