@leav/ui 0.3.6-0a46784 → 0.3.6-0bbb804
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__mocks__/common/attribute.js +0 -1
- package/dist/__mocks__/common/attribute.js.map +1 -1
- package/dist/__mocks__/common/form.d.ts +1 -0
- package/dist/__mocks__/common/form.js +15 -0
- package/dist/__mocks__/common/form.js.map +1 -1
- package/dist/__mocks__/common/value.js +0 -1
- package/dist/__mocks__/common/value.js.map +1 -1
- package/dist/_gqlTypes/index.d.ts +206 -8
- package/dist/_gqlTypes/index.js +147 -11
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/attributes/attributeDetailsFragment.js +0 -1
- package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
- package/dist/_queries/attributes/getAttributesByLib.js +7 -5
- package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
- package/dist/_queries/records/createRecordMutation.js +2 -3
- package/dist/_queries/records/createRecordMutation.js.map +1 -1
- package/dist/_queries/records/recordFormAttributeFragment.js +1 -0
- package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
- package/dist/_utils/attributeType.d.ts +3 -0
- package/dist/_utils/attributeType.js +7 -0
- package/dist/_utils/attributeType.js.map +1 -0
- package/dist/_utils/index.js +1 -1
- package/dist/_utils/index.js.map +1 -1
- package/dist/components/CreateDirectory/CreateDirectory.js +0 -2
- package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
- package/dist/components/EditApplication/EditApplicationInfo/EditApplicationInfoForm/EditApplicationInfoForm.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js +0 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfo.js.map +1 -1
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js +2 -5
- package/dist/components/EditAttributeModal/EditAttribute/EditAttributeInfo/EditAttributeInfoForm/EditAttributeInfoForm.js.map +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.d.ts +1 -1
- package/dist/components/EditTreeModal/EditTree/EditTreeInfo/EditTreeInfoForm/EditTreeInfoForm.js.map +1 -1
- package/dist/components/Explorer/DataView.d.ts +10 -2
- package/dist/components/Explorer/DataView.js +46 -12
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +37 -3
- package/dist/components/Explorer/Explorer.js +105 -29
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.d.ts +6 -0
- package/dist/components/Explorer/ExplorerToolbar.js +53 -0
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -0
- package/dist/components/Explorer/TableCell.js +4 -4
- package/dist/components/Explorer/TableCell.js.map +1 -1
- package/dist/components/Explorer/_constants.d.ts +1 -0
- package/dist/components/Explorer/_constants.js +1 -0
- package/dist/components/Explorer/_constants.js.map +1 -1
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.d.ts +4 -0
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js +99 -0
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -0
- package/dist/components/Explorer/_queries/useExplorerData.d.ts +5 -4
- package/dist/components/Explorer/_queries/useExplorerData.js +17 -93
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +64 -18
- package/dist/components/Explorer/_types.js +7 -1
- package/dist/components/Explorer/_types.js.map +1 -1
- package/dist/components/Explorer/{useEditAction.d.ts → actions-item/useEditItemAction.d.ts} +6 -4
- package/dist/components/Explorer/{useEditAction.js → actions-item/useEditItemAction.js} +9 -8
- package/dist/components/Explorer/actions-item/useEditItemAction.js.map +1 -0
- package/dist/components/Explorer/actions-item/useRemoveItemAction.d.ts +24 -0
- package/dist/components/Explorer/{useRemoveAction.js → actions-item/useRemoveItemAction.js} +38 -15
- package/dist/components/Explorer/actions-item/useRemoveItemAction.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.d.ts +28 -0
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js +72 -0
- package/dist/components/Explorer/actions-mass/useDeactivateMassAction.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.d.ts +19 -0
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js +85 -0
- package/dist/components/Explorer/actions-mass/useDeleteLinkValues.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useMassActions.d.ts +27 -0
- package/dist/components/Explorer/actions-mass/useMassActions.js +111 -0
- package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -0
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +30 -0
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +114 -0
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -0
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.d.ts +20 -0
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js +39 -0
- package/dist/components/Explorer/actions-primary/useLinkPrimaryAction.js.map +1 -0
- package/dist/components/Explorer/actions-primary/usePrimaryActions.d.ts +17 -0
- package/dist/components/Explorer/actions-primary/usePrimaryActions.js +27 -0
- package/dist/components/Explorer/actions-primary/usePrimaryActions.js.map +1 -0
- package/dist/components/Explorer/link-item/LinkModal.d.ts +9 -0
- package/dist/components/Explorer/link-item/LinkModal.js +82 -0
- package/dist/components/Explorer/link-item/LinkModal.js.map +1 -0
- package/dist/components/Explorer/link-item/useLinkMassAction.d.ts +31 -0
- package/dist/components/Explorer/link-item/useLinkMassAction.js +59 -0
- package/dist/components/Explorer/link-item/useLinkMassAction.js.map +1 -0
- package/dist/components/Explorer/list-saved-views/SavedViews.d.ts +2 -0
- package/dist/components/Explorer/list-saved-views/SavedViews.js +74 -0
- package/dist/components/Explorer/list-saved-views/SavedViews.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +3 -2
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +8 -1
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.d.ts +3 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js +9 -3
- package/dist/components/Explorer/manage-view-settings/_shared/useAttributeDetailsData.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.d.ts +17 -0
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js +93 -0
- package/dist/components/Explorer/manage-view-settings/_shared/useTransformFilters.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +1 -2
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +6 -1
- 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/BooleanAttributeDropdown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +4 -4
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +7 -38
- 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.d.ts +8 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +41 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js +79 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/LinkAttributeDropdown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.d.ts +13 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js +2 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/_types.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +6 -5
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +12 -4
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.d.ts +3 -3
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js +2 -2
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContext.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.d.ts +1 -0
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js +2 -2
- package/dist/components/Explorer/manage-view-settings/open-view-settings/EditSettingsContextProvider.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js +3 -3
- package/dist/components/Explorer/manage-view-settings/open-view-settings/SidePanel.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.d.ts +9 -2
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +34 -7
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +9 -43
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.d.ts +8 -0
- package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js +44 -0
- package/dist/components/Explorer/manage-view-settings/save-view/SaveViewModal.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.d.ts +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js +22 -0
- package/dist/components/Explorer/manage-view-settings/save-view/ViewActionsButtons.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +24 -0
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js +52 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useCreateNewView.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js +20 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useResetView.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useShareView.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js +64 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useShareView.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js +62 -0
- package/dist/components/Explorer/manage-view-settings/save-view/useUpdateView.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +7 -9
- package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +11 -0
- 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 +36 -9
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +103 -21
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
- package/dist/components/Explorer/useColumnWidth.d.ts +2 -0
- package/dist/components/Explorer/useColumnWidth.js +3 -2
- package/dist/components/Explorer/useColumnWidth.js.map +1 -1
- package/dist/components/Explorer/useLoadView.d.ts +3 -0
- package/dist/components/Explorer/useLoadView.js +81 -0
- package/dist/components/Explorer/useLoadView.js.map +1 -0
- package/dist/components/Explorer/useSearchInput.d.ts +10 -4
- package/dist/components/Explorer/useSearchInput.js +10 -1
- package/dist/components/Explorer/useSearchInput.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +40 -37
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js +1 -2
- package/dist/components/ImportModal/ImportModalSelectFileStep/ImportModalSelectFileStep.js.map +1 -1
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +2 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuView/MenuView.js +1 -1
- package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +76 -62
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +7 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.d.ts +5 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js +28 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useCreateRecordMutation.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js +3 -8
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +1 -7
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +62 -34
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +11 -7
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +4 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +12 -7
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +2 -13
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +7 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +2 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +1 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +2 -14
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js +3 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/calculatedInheritedFlags.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js +4 -7
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/TreeField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.d.ts +7 -0
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js +9 -0
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/AttributeSummary.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/AttributeDetails → AttributeSummary}/index.js +2 -2
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js +25 -0
- package/dist/components/RecordEdition/EditRecordSidebar/AttributeSummary/useAttributeInformations.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.d.ts +3 -0
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js +53 -0
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/Breadcrumb.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails/ValueInfo → Breacrumb}/index.js +2 -2
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +15 -6
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +7 -9
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.d.ts +8 -0
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js +81 -0
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/ValuesSummary.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSidebar/{ValueDetails → ValuesSummary}/index.js +2 -2
- package/dist/components/RecordEdition/EditRecordSidebar/ValuesSummary/index.js.map +1 -0
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.d.ts +12 -10
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +15 -13
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +3 -4
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js +2 -1
- package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -1
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.d.ts +1 -1
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +2 -2
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
- package/dist/locales/en/shared.json +52 -11
- package/dist/locales/fr/shared.json +56 -15
- package/package.json +5 -5
- package/dist/components/Explorer/display-view-filters/ExplorerToolBar.d.ts +0 -4
- package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js +0 -47
- package/dist/components/Explorer/display-view-filters/ExplorerToolBar.js.map +0 -1
- package/dist/components/Explorer/useCreateAction.d.ts +0 -21
- package/dist/components/Explorer/useCreateAction.js +0 -73
- package/dist/components/Explorer/useCreateAction.js.map +0 -1
- package/dist/components/Explorer/useEditAction.js.map +0 -1
- package/dist/components/Explorer/usePrimaryActions.d.ts +0 -12
- package/dist/components/Explorer/usePrimaryActions.js +0 -28
- package/dist/components/Explorer/usePrimaryActions.js.map +0 -1
- package/dist/components/Explorer/useRemoveAction.d.ts +0 -12
- package/dist/components/Explorer/useRemoveAction.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.d.ts +0 -6
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js +0 -56
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.d.ts +0 -8
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js +0 -41
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/TreeValuePath.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/TreeValuePath/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.d.ts +0 -10
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +0 -51
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js +0 -76
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/ValueInfo.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueInfo/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.d.ts +0 -11
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js +0 -43
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/ValueMetadata.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueMetadata/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/index.js.map +0 -1
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"submit": "Submit",
|
|
4
4
|
"cancel": "Cancel",
|
|
5
5
|
"close": "Close",
|
|
6
|
+
"save": "Save",
|
|
6
7
|
"id": "Identifier",
|
|
7
8
|
"search": "Search",
|
|
8
9
|
"info": "Information",
|
|
@@ -30,7 +31,8 @@
|
|
|
30
31
|
"create": "Create",
|
|
31
32
|
"ok": "Ok",
|
|
32
33
|
"max_length": "Max length",
|
|
33
|
-
"confirm": "Confirm"
|
|
34
|
+
"confirm": "Confirm",
|
|
35
|
+
"loading": "Loading"
|
|
34
36
|
},
|
|
35
37
|
"errors": {
|
|
36
38
|
"default_language_required": "The default language is required",
|
|
@@ -251,7 +253,7 @@
|
|
|
251
253
|
"not-classified-in": "Not classified in",
|
|
252
254
|
"equal": "Is Equal",
|
|
253
255
|
"not-equal": "Isn't Equal",
|
|
254
|
-
"through": "
|
|
256
|
+
"through": "Whose attribute",
|
|
255
257
|
"begin-with": "Begin With",
|
|
256
258
|
"end-with": "End With",
|
|
257
259
|
"is-empty": "Is Empty",
|
|
@@ -406,6 +408,7 @@
|
|
|
406
408
|
"delete_value": "Delete value",
|
|
407
409
|
"delete_value_confirm": "Do you really want to delete this value?",
|
|
408
410
|
"delete_link_confirm": "Do you really want to delete this link?",
|
|
411
|
+
"delete_links_confirm": "Do you really want to delete these links?",
|
|
409
412
|
"whoAmI": "Information",
|
|
410
413
|
"no_value": "No value",
|
|
411
414
|
"value_details": "Value details",
|
|
@@ -498,7 +501,20 @@
|
|
|
498
501
|
"open_preview_modal": "Open preview modal",
|
|
499
502
|
"informations": "Informations",
|
|
500
503
|
"chat": "Chat",
|
|
501
|
-
"history": "History"
|
|
504
|
+
"history": "History",
|
|
505
|
+
"entity_overview": "{{entity}} overview",
|
|
506
|
+
"attribute": "Attribute",
|
|
507
|
+
"attribute_format": "Attribute format",
|
|
508
|
+
"descriptive": "Descriptive",
|
|
509
|
+
"values_version": "Values version",
|
|
510
|
+
"no_value": "No value",
|
|
511
|
+
"calculated_value": "Calculated value",
|
|
512
|
+
"global": "Global",
|
|
513
|
+
"error": {
|
|
514
|
+
"title": "Data loading error",
|
|
515
|
+
"description": "A technical error has occurred, please reload the page. If the error persists, please contact Aristid Support.",
|
|
516
|
+
"refresh": "Refresh"
|
|
517
|
+
}
|
|
502
518
|
},
|
|
503
519
|
"view": {
|
|
504
520
|
"views": "Views",
|
|
@@ -624,12 +640,13 @@
|
|
|
624
640
|
"unselect-all": "Unselect All"
|
|
625
641
|
},
|
|
626
642
|
"explorer": {
|
|
643
|
+
"name": "Name",
|
|
627
644
|
"create-one": "Create",
|
|
628
645
|
"actions": "Actions",
|
|
629
646
|
"more-actions": "Show more",
|
|
630
647
|
"deactivate-item": "Deactivate",
|
|
631
648
|
"delete-item": "Delete",
|
|
632
|
-
"edit-item": "Edit
|
|
649
|
+
"edit-item": "Edit",
|
|
633
650
|
"settings": "Settings",
|
|
634
651
|
"back": "Back",
|
|
635
652
|
"router-menu": "View Configuration",
|
|
@@ -647,10 +664,7 @@
|
|
|
647
664
|
"active": "Active sorts",
|
|
648
665
|
"inactive": "Inactive sorts"
|
|
649
666
|
},
|
|
650
|
-
"toolbar":
|
|
651
|
-
"active": "Active filters",
|
|
652
|
-
"inactive": "Inactive filters"
|
|
653
|
-
},
|
|
667
|
+
"toolbar": "Toolbar",
|
|
654
668
|
"reset-filter": "Reset filter",
|
|
655
669
|
"reset-view": "Reset view",
|
|
656
670
|
"empty-data": "No items found.",
|
|
@@ -661,15 +675,42 @@
|
|
|
661
675
|
"columns": "Columns",
|
|
662
676
|
"visible-columns": "Visible columns",
|
|
663
677
|
"invisible-columns": "Invisible columns",
|
|
664
|
-
"pagination-total-
|
|
678
|
+
"pagination-total-number_one": "{{from, number}} - {{to, number}} of {{count, number}} item",
|
|
679
|
+
"pagination-total-number_other": "{{from, number}} - {{to, number}} of {{count, number}} items",
|
|
665
680
|
"active-items-number": "{{count, number}} active",
|
|
666
681
|
"active-items-number_zero": "None",
|
|
667
682
|
"invalid-value": "Invalid value",
|
|
668
683
|
"type-a-value": "Type a value",
|
|
669
|
-
"save-view": "Save",
|
|
684
|
+
"save-view-as": "Save as...",
|
|
685
|
+
"share-view": "Share",
|
|
686
|
+
"unshare-view": "Unshare",
|
|
670
687
|
"reinit-view": "Reset",
|
|
688
|
+
"view-name": "View name",
|
|
689
|
+
"default-view": "Default view",
|
|
690
|
+
"manage-views": "Manage views",
|
|
691
|
+
"modified": "Modified",
|
|
692
|
+
"my-views": "My views",
|
|
693
|
+
"shared-views": "Shared views",
|
|
694
|
+
"no-shared-views": "No shared views",
|
|
671
695
|
"select-condition": "Select condition",
|
|
672
696
|
"true": "True",
|
|
673
|
-
"false": "False"
|
|
697
|
+
"false": "False",
|
|
698
|
+
"filter-condition": "Condition",
|
|
699
|
+
"filter-link-attribute": "Link attribute",
|
|
700
|
+
"massAction": {
|
|
701
|
+
"itemsTotal_one": "{{count, number}} item",
|
|
702
|
+
"itemsTotal_other": "{{count, number}} items",
|
|
703
|
+
"selectedItems_one": "{{count, number}} selected",
|
|
704
|
+
"selectedItems_other": "{{count, number}} selected",
|
|
705
|
+
"deactivate": "Deactivate",
|
|
706
|
+
"add-link": "Add",
|
|
707
|
+
"toggle_selection": {
|
|
708
|
+
"select_page_one": "Select visible item ({{count, number}})",
|
|
709
|
+
"select_page_other": "Select visible items ({{count, number}})",
|
|
710
|
+
"select_all": "Select all items ({{count, number}})",
|
|
711
|
+
"deselect_all": "Deselect all items"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"add-existing-item": "Add existing item"
|
|
674
715
|
}
|
|
675
716
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"submit": "Valider",
|
|
4
4
|
"cancel": "Annuler",
|
|
5
5
|
"close": "Fermer",
|
|
6
|
+
"save": "Enregistrer",
|
|
6
7
|
"id": "Identifiant",
|
|
7
8
|
"search": "Rechercher",
|
|
8
9
|
"info": "Informations",
|
|
@@ -30,7 +31,8 @@
|
|
|
30
31
|
"create": "Créer",
|
|
31
32
|
"ok": "Ok",
|
|
32
33
|
"max_length": "Longueur maximale",
|
|
33
|
-
"confirm": "Confirmer"
|
|
34
|
+
"confirm": "Confirmer",
|
|
35
|
+
"loading": "Chargement"
|
|
34
36
|
},
|
|
35
37
|
"errors": {
|
|
36
38
|
"default_language_required": "La langue par défaut est requise",
|
|
@@ -249,7 +251,7 @@
|
|
|
249
251
|
"not-contains": "Ne contient pas",
|
|
250
252
|
"equal": "Est égal",
|
|
251
253
|
"not-equal": "N'est pas égal",
|
|
252
|
-
"through": "
|
|
254
|
+
"through": "Dont l’attribut",
|
|
253
255
|
"begin-with": "Commence par",
|
|
254
256
|
"end-with": "Fini Par",
|
|
255
257
|
"is-empty": "Est Vide",
|
|
@@ -404,8 +406,9 @@
|
|
|
404
406
|
"add_value": "Ajouter une valeur",
|
|
405
407
|
"add_value_link": "Ajouter une liaison",
|
|
406
408
|
"delete_value": "Supprimer cette valeur",
|
|
407
|
-
"delete_value_confirm": "Êtes-vous sûr de vouloir supprimer cette valeur?",
|
|
408
|
-
"delete_link_confirm": "Êtes-vous sûr de vouloir supprimer cette liaison?",
|
|
409
|
+
"delete_value_confirm": "Êtes-vous sûr de vouloir supprimer cette valeur ?",
|
|
410
|
+
"delete_link_confirm": "Êtes-vous sûr de vouloir supprimer cette liaison ?",
|
|
411
|
+
"delete_links_confirm": "Êtes-vous sûr de vouloir supprimer ces liaisons ?",
|
|
409
412
|
"whoAmI": "Informations",
|
|
410
413
|
"no_value": "Pas de valeur",
|
|
411
414
|
"value_details": "Infos valeur",
|
|
@@ -498,7 +501,20 @@
|
|
|
498
501
|
"open_preview_modal": "Ouvrir la modale d'aperçu",
|
|
499
502
|
"informations": "Informations",
|
|
500
503
|
"chat": "Chat",
|
|
501
|
-
"history": "Historique"
|
|
504
|
+
"history": "Historique",
|
|
505
|
+
"entity_overview": "Fiche {{entity}}",
|
|
506
|
+
"attribute": "Attribut",
|
|
507
|
+
"attribute_format": "Format de l'attribut",
|
|
508
|
+
"descriptive": "Descriptif",
|
|
509
|
+
"values_version": "Version de valeurs",
|
|
510
|
+
"no_value": "Aucune valeur",
|
|
511
|
+
"calculated_value": "Valeur calculée",
|
|
512
|
+
"global": "Globale",
|
|
513
|
+
"error": {
|
|
514
|
+
"title": "Erreur de chargement des données",
|
|
515
|
+
"description": "Une erreur technique est survenue, veuillez recharger la page s'il vous plaît. Si l'erreur persiste, veuillez contacter le support Aristid.",
|
|
516
|
+
"refresh": "Rafraîchir"
|
|
517
|
+
}
|
|
502
518
|
},
|
|
503
519
|
"view": {
|
|
504
520
|
"views": "Vues",
|
|
@@ -562,8 +578,8 @@
|
|
|
562
578
|
"records_deactivation": {
|
|
563
579
|
"title": "Désactiver les éléments",
|
|
564
580
|
"title_one": "Désactiver",
|
|
565
|
-
"confirm": "Êtes-vous sûr de vouloir désactiver les éléments sélectionnés?",
|
|
566
|
-
"confirm_one": "Êtes-vous sûr de vouloir désactiver cet élément?"
|
|
581
|
+
"confirm": "Êtes-vous sûr de vouloir désactiver les éléments sélectionnés ?",
|
|
582
|
+
"confirm_one": "Êtes-vous sûr de vouloir désactiver cet élément ?"
|
|
567
583
|
},
|
|
568
584
|
"table-columns-selection": {
|
|
569
585
|
"header": "Colonnes disponibles",
|
|
@@ -624,12 +640,13 @@
|
|
|
624
640
|
"unselect-all": "Tout désélectionner"
|
|
625
641
|
},
|
|
626
642
|
"explorer": {
|
|
643
|
+
"name": "Nom",
|
|
627
644
|
"create-one": "Créer",
|
|
628
645
|
"actions": "Actions",
|
|
629
646
|
"more-actions": "Voir plus",
|
|
630
647
|
"deactivate-item": "Désactiver",
|
|
631
648
|
"delete-item": "Supprimer",
|
|
632
|
-
"edit-item": "Éditer
|
|
649
|
+
"edit-item": "Éditer",
|
|
633
650
|
"settings": "Paramètres",
|
|
634
651
|
"back": "Retour",
|
|
635
652
|
"router-menu": "Configuration de la vue",
|
|
@@ -645,10 +662,7 @@
|
|
|
645
662
|
"active": "Tris actifs",
|
|
646
663
|
"inactive": "Tris inactifs"
|
|
647
664
|
},
|
|
648
|
-
"toolbar":
|
|
649
|
-
"active": "Filtres actifs",
|
|
650
|
-
"inactive": "Filtres inactifs"
|
|
651
|
-
},
|
|
665
|
+
"toolbar": "Barre d’outils",
|
|
652
666
|
"reset-filter": "Réinitialiser le filtre",
|
|
653
667
|
"reset-view": "Réinitialiser la vue",
|
|
654
668
|
"empty-data": "Aucun élément trouvé.",
|
|
@@ -658,7 +672,8 @@
|
|
|
658
672
|
"coming-soon": "À venir",
|
|
659
673
|
"show": "Afficher",
|
|
660
674
|
"hide": "Masquer",
|
|
661
|
-
"pagination-total-
|
|
675
|
+
"pagination-total-number_one": "{{from, number}} - {{to, number}} de {{count, number}} élément",
|
|
676
|
+
"pagination-total-number_other": "{{from, number}} - {{to, number}} de {{count, number}} éléments",
|
|
662
677
|
"columns": "Colonnes",
|
|
663
678
|
"visible-columns": "Colonnes visibles",
|
|
664
679
|
"invisible-columns": "Colonnes invisibles",
|
|
@@ -666,10 +681,36 @@
|
|
|
666
681
|
"active-items-number_zero": "Aucun",
|
|
667
682
|
"invalid-value": "Valeur invalide",
|
|
668
683
|
"type-a-value": "Saisissez une valeur",
|
|
669
|
-
"save-view": "Enregistrer",
|
|
684
|
+
"save-view-as": "Enregistrer sous...",
|
|
685
|
+
"share-view": "Partager",
|
|
686
|
+
"unshare-view": "Retirer le partage",
|
|
670
687
|
"reinit-view": "Réinitialiser",
|
|
688
|
+
"view-name": "Nom de la vue",
|
|
689
|
+
"default-view": "Vue par défaut",
|
|
690
|
+
"manage-views": "Gérer les vues",
|
|
691
|
+
"modified": "Modifiée",
|
|
692
|
+
"my-views": "Mes vues",
|
|
693
|
+
"shared-views": "Vues partagées",
|
|
694
|
+
"no-shared-views": "Aucune vue partagée",
|
|
671
695
|
"select-condition": "Sélectionner une condition",
|
|
672
696
|
"true": "Vrai",
|
|
673
|
-
"false": "Faux"
|
|
697
|
+
"false": "Faux",
|
|
698
|
+
"filter-condition": "Condition",
|
|
699
|
+
"filter-link-attribute": "Attribut de liaison",
|
|
700
|
+
"massAction": {
|
|
701
|
+
"itemsTotal_one": "{{count, number}} élément",
|
|
702
|
+
"itemsTotal_other": "{{count, number}} éléments",
|
|
703
|
+
"selectedItems_one": "{{count, number}} sélectionné",
|
|
704
|
+
"selectedItems_other": "{{count, number}} sélectionnés",
|
|
705
|
+
"deactivate": "Supprimer",
|
|
706
|
+
"add-link": "Ajouter",
|
|
707
|
+
"toggle_selection": {
|
|
708
|
+
"select_page_one": "Sélectionner l’éléments visible ({{count, number}})",
|
|
709
|
+
"select_page_other": "Sélectionner les éléments visibles ({{count, number}})",
|
|
710
|
+
"select_all": "Tout sélectionner ({{count, number}})",
|
|
711
|
+
"deselect_all": "Tout désélectionner"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"add-existing-item": "Ajouter un élément existant"
|
|
674
715
|
}
|
|
675
716
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leav/ui",
|
|
3
|
-
"version": "0.3.6-
|
|
3
|
+
"version": "0.3.6-0bbb804",
|
|
4
4
|
"description": "Shared React components and hooks",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "yarn build",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@ant-design/icons": ">=5.2",
|
|
53
53
|
"@apollo/client": ">=3.8.1",
|
|
54
|
-
"antd": "5.
|
|
55
|
-
"aristid-ds": "
|
|
56
|
-
"dayjs": "^1.11.
|
|
54
|
+
"antd": "5.22.2",
|
|
55
|
+
"aristid-ds": "13.0.0-a482bfb",
|
|
56
|
+
"dayjs": "^1.11.13",
|
|
57
57
|
"i18next": "22.5",
|
|
58
58
|
"react": "18.2.0",
|
|
59
59
|
"react-dom": "18.2.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@dnd-kit/sortable": "8.0.0",
|
|
70
70
|
"@leav/utils": "0.0.3",
|
|
71
71
|
"@uidotdev/usehooks": "2.4.1",
|
|
72
|
-
"dompurify": "3.
|
|
72
|
+
"dompurify": "3.2.4",
|
|
73
73
|
"html-react-parser": "4.2.2",
|
|
74
74
|
"i18next-resources-to-backend": "1.1.4",
|
|
75
75
|
"lodash.isequal": "4.5.0",
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { useViewSettingsContext } from '../manage-view-settings/store-view-settings/useViewSettingsContext';
|
|
7
|
-
import { KitButton, KitDivider, KitFilter, KitSpace } from 'aristid-ds';
|
|
8
|
-
import { FaTrash } from 'react-icons/fa';
|
|
9
|
-
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
10
|
-
import { CommonFilterItem } from '../manage-view-settings/_shared/CommonFilterItem';
|
|
11
|
-
import { SortOrder } from '../../../_gqlTypes';
|
|
12
|
-
import { useOpenViewSettings } from '../manage-view-settings';
|
|
13
|
-
import { useAttributeDetailsData } from '../manage-view-settings/_shared/useAttributeDetailsData';
|
|
14
|
-
const FilterStyled = styled(KitFilter) `
|
|
15
|
-
flex: 0 0 auto;
|
|
16
|
-
`;
|
|
17
|
-
const ExplorerToolBarListStyled = styled.ul `
|
|
18
|
-
padding: calc(var(--general-spacing-xs) * 1px) calc(var(--general-spacing-xxs) * 1px)
|
|
19
|
-
calc(var(--general-spacing-m) * 1px) calc(var(--general-spacing-xxs) * 1px);
|
|
20
|
-
margin: 0;
|
|
21
|
-
list-style: none;
|
|
22
|
-
display: flex;
|
|
23
|
-
overflow: auto;
|
|
24
|
-
flex-wrap: nowrap;
|
|
25
|
-
align-items: center;
|
|
26
|
-
gap: 0;
|
|
27
|
-
white-space: nowrap;
|
|
28
|
-
`;
|
|
29
|
-
const DividerStyled = styled(KitDivider) `
|
|
30
|
-
height: 2em;
|
|
31
|
-
`;
|
|
32
|
-
export const ExplorerToolBar = ({ libraryId }) => {
|
|
33
|
-
const { t } = useSharedTranslation();
|
|
34
|
-
const { view: { filters, sort } } = useViewSettingsContext();
|
|
35
|
-
const { openSettingsPanel } = useOpenViewSettings(libraryId);
|
|
36
|
-
const { attributeDetailsById } = useAttributeDetailsData(libraryId);
|
|
37
|
-
if (filters.length === 0 && sort.length === 0) {
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
const sortValues = sort.length === 0
|
|
41
|
-
? undefined
|
|
42
|
-
: sort.map(({ field, order }) => (attributeDetailsById?.[field]?.label ?? field) +
|
|
43
|
-
' ' +
|
|
44
|
-
(order === SortOrder.asc ? t('explorer.sort-ascending') : t('explorer.sort-descending')));
|
|
45
|
-
return (_jsxs(ExplorerToolBarListStyled, { "aria-label": t('explorer.toolbar.active'), children: [_jsx(KitSpace, { size: "s", children: filters.map(filter => (_jsx("li", { children: _jsx(CommonFilterItem, { filter: filter }, filter.id) }, filter.id))) }), filters.length > 0 && sort.length > 0 && _jsx(DividerStyled, { type: "vertical" }), sort.length > 0 && (_jsx("li", { children: _jsx(FilterStyled, { label: t('explorer.sort-items'), values: sortValues, onClick: () => openSettingsPanel('sort-items') }) })), _jsx(DividerStyled, { type: "vertical" }), _jsx("li", { children: _jsx(FilterStyled, { as: KitButton, type: "secondary", size: "s", danger: true, icon: _jsx(FaTrash, {}), disabled: true, children: t('explorer.reset-view') }) })] }));
|
|
46
|
-
};
|
|
47
|
-
//# sourceMappingURL=ExplorerToolBar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorerToolBar.js","sourceRoot":"","sources":["../../../../src/components/Explorer/display-view-filters/ExplorerToolBar.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,sBAAsB,EAAC,MAAM,oEAAoE,CAAC;AAC1G,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEtE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,gBAAgB,EAAC,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAC,uBAAuB,EAAC,MAAM,yDAAyD,CAAC;AAEhG,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAA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BACI,KAAC,gBAAgB,IAAiB,MAAM,EAAE,MAAM,IAAzB,MAAM,CAAC,EAAE,CAAoB,IAD/C,MAAM,CAAC,EAAE,CAEb,CACR,CAAC,GACK,EACV,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,KAAC,aAAa,IAAC,IAAI,EAAC,UAAU,GAAG,EAC1E,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAChB,uBACI,KAAC,YAAY,IACT,KAAK,EAAE,CAAC,CAAC,qBAAqB,CAAC,EAC/B,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,YAAY,CAAC,GAChD,GACD,CACR,EACD,KAAC,aAAa,IAAC,IAAI,EAAC,UAAU,GAAG,EACjC,uBACI,KAAC,YAAY,IAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAC,WAAW,EAAC,IAAI,EAAC,GAAG,EAAC,MAAM,QAAC,IAAI,EAAE,KAAC,OAAO,KAAG,EAAE,QAAQ,kBACpF,CAAC,CAAC,qBAAqB,CAAC,GACd,GACd,IACmB,CAC/B,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ActionHook, Entrypoint, IPrimaryAction } from './_types';
|
|
2
|
-
/**
|
|
3
|
-
* Hook used to get the action for `<DataView />` component.
|
|
4
|
-
*
|
|
5
|
-
* When the creation is done, we refresh all data even if the new record will not be visible due to some filters.
|
|
6
|
-
*
|
|
7
|
-
* It returns also two parts : one for the call action button - one for displayed the modal required by the action.
|
|
8
|
-
*
|
|
9
|
-
* @param isEnabled - whether the action is present
|
|
10
|
-
* @param library - the library's id to add new item
|
|
11
|
-
* @param refetch - method to call to refresh the list. New item will be visible if it matches filters and sorts
|
|
12
|
-
*/
|
|
13
|
-
export declare const useCreateAction: ({ isEnabled, library, entrypoint, itemsCount, refetch }: ActionHook<{
|
|
14
|
-
library: string;
|
|
15
|
-
entrypoint: Entrypoint;
|
|
16
|
-
itemsCount: number;
|
|
17
|
-
refetch: () => void;
|
|
18
|
-
}>) => {
|
|
19
|
-
createAction: IPrimaryAction;
|
|
20
|
-
createModal: JSX.Element;
|
|
21
|
-
};
|
|
@@ -1,73 +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 { FaPlus } from 'react-icons/fa';
|
|
7
|
-
import { EditRecordModal } from '../../components';
|
|
8
|
-
import { useSharedTranslation } from '../../hooks/useSharedTranslation';
|
|
9
|
-
import useSaveValueBatchMutation from '../../components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation';
|
|
10
|
-
import { useExplorerLinkAttributeQuery } from '../../_gqlTypes';
|
|
11
|
-
/**
|
|
12
|
-
* Hook used to get the action for `<DataView />` component.
|
|
13
|
-
*
|
|
14
|
-
* When the creation is done, we refresh all data even if the new record will not be visible due to some filters.
|
|
15
|
-
*
|
|
16
|
-
* It returns also two parts : one for the call action button - one for displayed the modal required by the action.
|
|
17
|
-
*
|
|
18
|
-
* @param isEnabled - whether the action is present
|
|
19
|
-
* @param library - the library's id to add new item
|
|
20
|
-
* @param refetch - method to call to refresh the list. New item will be visible if it matches filters and sorts
|
|
21
|
-
*/
|
|
22
|
-
export const useCreateAction = ({ isEnabled, library, entrypoint, itemsCount, refetch }) => {
|
|
23
|
-
const { t } = useSharedTranslation();
|
|
24
|
-
const [isRecordCreationVisible, setRecordCreationVisible] = useState(false);
|
|
25
|
-
const [multipleValues, setIsMultivalues] = useState(false);
|
|
26
|
-
const { saveValues } = useSaveValueBatchMutation();
|
|
27
|
-
useExplorerLinkAttributeQuery({
|
|
28
|
-
skip: entrypoint.type !== 'link',
|
|
29
|
-
variables: {
|
|
30
|
-
id: entrypoint.linkAttributeId
|
|
31
|
-
},
|
|
32
|
-
onCompleted: data => {
|
|
33
|
-
const attributeData = data?.attributes?.list?.[0];
|
|
34
|
-
if (!attributeData) {
|
|
35
|
-
throw new Error('Unknown link attribute');
|
|
36
|
-
}
|
|
37
|
-
setIsMultivalues(attributeData.multiple_values);
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
const canCreateRecord = entrypoint.type === 'library' ? true : multipleValues || itemsCount === 0;
|
|
41
|
-
const createAction = {
|
|
42
|
-
callback: () => {
|
|
43
|
-
setRecordCreationVisible(true);
|
|
44
|
-
},
|
|
45
|
-
icon: _jsx(FaPlus, {}),
|
|
46
|
-
disabled: !canCreateRecord,
|
|
47
|
-
label: t('explorer.create-one')
|
|
48
|
-
};
|
|
49
|
-
return {
|
|
50
|
-
createAction: isEnabled ? createAction : null,
|
|
51
|
-
createModal: isRecordCreationVisible ? (_jsx(EditRecordModal, { open: true, record: null, library: library, onClose: () => {
|
|
52
|
-
setRecordCreationVisible(false);
|
|
53
|
-
}, onCreate: newRecord => {
|
|
54
|
-
refetch();
|
|
55
|
-
setRecordCreationVisible(false);
|
|
56
|
-
if (entrypoint.type === 'link') {
|
|
57
|
-
saveValues({
|
|
58
|
-
id: entrypoint.parentRecordId,
|
|
59
|
-
library: {
|
|
60
|
-
id: entrypoint.parentLibraryId
|
|
61
|
-
}
|
|
62
|
-
}, [
|
|
63
|
-
{
|
|
64
|
-
attribute: entrypoint.linkAttributeId,
|
|
65
|
-
idValue: null,
|
|
66
|
-
value: newRecord.id
|
|
67
|
-
}
|
|
68
|
-
]);
|
|
69
|
-
}
|
|
70
|
-
}, submitButtons: ['create'] })) : null
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
//# sourceMappingURL=useCreateAction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateAction.js","sourceRoot":"","sources":["../../../src/components/Expl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;wBACX,KAAK,EAAE,IAAI,CAAC,MAAM;qBACrB;iBACJ;aACJ;SACJ,CAAC,CAAC;QACH,cAAc,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,OAAO,CACtB,GAAG,EAAE,CAAC,CAAC;QACH,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI;QAC1C,SAAS,EACL,SAAS,IAAI,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,CAChC,KAAC,eAAe,IACZ,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,EACF,CAAC,SAAS,EAAE,WAAW,CAAC,CAC3B,CAAC;IAEF,OAAO,UAAU,CAAC;AACtB,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IPrimaryAction } from './_types';
|
|
2
|
-
/**
|
|
3
|
-
* Hook used to get the primary actions for `<DataView />` component.
|
|
4
|
-
*
|
|
5
|
-
* Based on default actions and custom actions, it returns a primary with first action as "main" action and the others
|
|
6
|
-
* in the dropdown accessible via a split button.
|
|
7
|
-
*
|
|
8
|
-
* @param {Object[]} actions - list of actions to be display as one button: the primary action button
|
|
9
|
-
*/
|
|
10
|
-
export declare const usePrimaryActionsButton: (actions: IPrimaryAction[]) => {
|
|
11
|
-
primaryButton: JSX.Element;
|
|
12
|
-
};
|
|
@@ -1,28 +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 { FaEllipsisV } from 'react-icons/fa';
|
|
6
|
-
import { KitButton, KitDropDown, KitSpace } from 'aristid-ds';
|
|
7
|
-
/**
|
|
8
|
-
* Hook used to get the primary actions for `<DataView />` component.
|
|
9
|
-
*
|
|
10
|
-
* Based on default actions and custom actions, it returns a primary with first action as "main" action and the others
|
|
11
|
-
* in the dropdown accessible via a split button.
|
|
12
|
-
*
|
|
13
|
-
* @param {Object[]} actions - list of actions to be display as one button: the primary action button
|
|
14
|
-
*/
|
|
15
|
-
export const usePrimaryActionsButton = (actions) => {
|
|
16
|
-
const [firstAction, ...dropdownActions] = actions;
|
|
17
|
-
return {
|
|
18
|
-
primaryButton: actions.length === 0 ? null : (_jsxs(_Fragment, { children: [_jsx(KitButton, { type: "primary", icon: firstAction.icon, disabled: firstAction.disabled, onClick: firstAction.callback, children: firstAction.label }), dropdownActions.length > 0 && (_jsx(KitDropDown, { trigger: ['click'], menu: {
|
|
19
|
-
items: dropdownActions.map((action, index) => ({
|
|
20
|
-
key: index,
|
|
21
|
-
label: (_jsxs(KitSpace, { size: 8, children: [action.icon, " ", action.label] })),
|
|
22
|
-
disabled: action.disabled,
|
|
23
|
-
onClick: action.callback
|
|
24
|
-
}))
|
|
25
|
-
}, children: _jsx(KitButton, { "data-testid": "actions-dropdown", type: "secondary", icon: _jsx(FaEllipsisV, {}) }) }))] }))
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=usePrimaryActions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePrimaryActions.js","sourceRoot":"","sources":["../../../src/components/Explorer/usePrimaryActions.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAE5D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,OAAyB,EAAE,EAAE;IACjE,MAAM,CAAC,WAAW,EAAE,GAAG,eAAe,CAAC,GAAG,OAAO,CAAC;IAElD,OAAO;QACH,aAAa,EACT,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAC1B,8BACI,KAAC,SAAS,IACN,IAAI,EAAC,SAAS,EACd,IAAI,EAAE,WAAW,CAAC,IAAI,EACtB,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,OAAO,EAAE,WAAW,CAAC,QAAQ,YAE5B,WAAW,CAAC,KAAK,GACV,EACX,eAAe,CAAC,MAAM,GAAG,CAAC,IAAI,CAC3B,KAAC,WAAW,IACR,OAAO,EAAE,CAAC,OAAO,CAAC,EAClB,IAAI,EAAE;wBACF,KAAK,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;4BAC3C,GAAG,EAAE,KAAK;4BACV,KAAK,EAAE,CACH,MAAC,QAAQ,IAAC,IAAI,EAAE,CAAC,aACZ,MAAM,CAAC,IAAI,OAAG,MAAM,CAAC,KAAK,IACpB,CACd;4BACD,QAAQ,EAAE,MAAM,CAAC,QAAQ;4BACzB,OAAO,EAAE,MAAM,CAAC,QAAQ;yBAC3B,CAAC,CAAC;qBACN,YAED,KAAC,SAAS,mBAAa,kBAAkB,EAAC,IAAI,EAAC,WAAW,EAAC,IAAI,EAAE,KAAC,WAAW,KAAG,GAAI,GAC1E,CACjB,IACF,CACN;KACR,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ActionHook, Entrypoint, IItemAction } from './_types';
|
|
2
|
-
/**
|
|
3
|
-
* Hook used to get the action for `<DataView />` component.
|
|
4
|
-
*
|
|
5
|
-
* When the mutation for removing is done, the Apollo cache will be clean (`Record` and `RecordIdentity`)
|
|
6
|
-
* from removed record.
|
|
7
|
-
*
|
|
8
|
-
* @param isEnabled - whether the action is present
|
|
9
|
-
*/
|
|
10
|
-
export declare const useRemoveAction: ({ isEnabled }: ActionHook, entrypoint: Entrypoint) => {
|
|
11
|
-
removeAction: IItemAction | null;
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRemoveAction.js","sourceRoot":"","sources":["../../../src/components/Explorer/useRemoveAction.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,4BAA4B,EAAE,sBAAsB,EAAC,MAAM,eAAe,CAAC;AACnF,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,oBAAoB,EAAC,MAAM,WAAW,CAAC;AAE/C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC3B,EAAC,SAAS,EAAa,EACvB,UAAsB,EACY,EAAE;IACpC,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;IAEjD,MAAM,CAAC,yBAAyB,CAAC,GAAG,4BAA4B,CAAC;QAC7D,MAAM,CAAC,KAAK,EAAE,kBAAkB;YAC5B,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBACxD,KAAK,CAAC,KAAK,CAAC;oBACR,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;iBAC7B,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;YACH,KAAK,CAAC,EAAE,EAAE,CAAC;QACf,CAAC;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CACvB;6BACJ,CAAC,CAAC;4BACH,MAAM;wBACV,KAAK,MAAM;4BACP,wBAAwB,CAAC;gCACrB,SAAS,EAAE;oCACP,OAAO,EAAE,UAAU,CAAC,eAAe;oCACnC,SAAS,EAAE,UAAU,CAAC,eAAe;oCACrC,QAAQ,EAAE,UAAU,CAAC,cAAc;oCACnC,KAAK,EAAE;wCACH,OAAO,EAAE,MAAM;wCACf,QAAQ;qCACX;iCACJ;6BACJ,CAAC,CAAC;4BACH,MAAM;wBACV;4BACI,OAAO;oBACf,CAAC;gBACL,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC,EACF,CAAC,CAAC,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,UAAU,CAAC,IAAI,CAAC,CAC5E,CAAC;IAEF,OAAO;QACH,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI;KACjD,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { RecordFormAttributeFragment } from '../../../../../_gqlTypes';
|
|
2
|
-
interface IAttributeDetailsProps {
|
|
3
|
-
attribute: RecordFormAttributeFragment;
|
|
4
|
-
}
|
|
5
|
-
declare function AttributeDetails({ attribute }: IAttributeDetailsProps): JSX.Element;
|
|
6
|
-
export default AttributeDetails;
|
|
@@ -1,56 +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 { isTypeStandard } from '@leav/utils';
|
|
6
|
-
import { Collapse, theme } from 'antd';
|
|
7
|
-
import styled from 'styled-components';
|
|
8
|
-
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
9
|
-
import { themeVars } from '../../../../../antdTheme';
|
|
10
|
-
import PropertiesList from '../../PropertiesList';
|
|
11
|
-
const AttributeDetailsCollapse = styled(Collapse) `
|
|
12
|
-
&&& {
|
|
13
|
-
margin: 1rem;
|
|
14
|
-
background: none;
|
|
15
|
-
|
|
16
|
-
.ant-collapse-header {
|
|
17
|
-
justify-content: flex-end;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.ant-collapse-content {
|
|
21
|
-
background: ${themeVars.defaultBg};
|
|
22
|
-
border: 1px solid ${themeVars.borderColor};
|
|
23
|
-
border-radius: ${p => p.$themeToken.borderRadius}px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
27
|
-
function AttributeDetails({ attribute }) {
|
|
28
|
-
const { t } = useSharedTranslation();
|
|
29
|
-
const { token } = theme.useToken();
|
|
30
|
-
const attributeDetailsContent = [
|
|
31
|
-
{
|
|
32
|
-
title: t('record_edition.attribute.id'),
|
|
33
|
-
value: attribute.id
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
title: t('record_edition.attribute.type'),
|
|
37
|
-
value: t(`record_edition.attribute.type_${attribute.type}`)
|
|
38
|
-
}
|
|
39
|
-
];
|
|
40
|
-
if (isTypeStandard(attribute.type)) {
|
|
41
|
-
attributeDetailsContent.push({
|
|
42
|
-
title: t('record_edition.attribute.format'),
|
|
43
|
-
value: attribute.format ? t(`record_edition.attribute.format_${attribute.format}`) : null
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
const collapseItems = [
|
|
47
|
-
{
|
|
48
|
-
key: 'attribute',
|
|
49
|
-
label: t('record_edition.attribute_details_section'),
|
|
50
|
-
children: _jsx(PropertiesList, { items: attributeDetailsContent })
|
|
51
|
-
}
|
|
52
|
-
];
|
|
53
|
-
return (_jsx(AttributeDetailsCollapse, { items: collapseItems, destroyInactivePanel: true, bordered: false, ghost: true, "$themeToken": token }));
|
|
54
|
-
}
|
|
55
|
-
export default AttributeDetails;
|
|
56
|
-
//# sourceMappingURL=AttributeDetails.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AttributeDetails.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/AttributeDetails.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AAErC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAC;AAEnD,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAElD,MAAM,wBAAwB,GAAG,MAAM,CAAC,QAAQ,CAAC,CAA4B;;;;;;;;;;0BAUnD,SAAS,CAAC,SAAS;gCACb,SAAS,CAAC,WAAW;6BACxB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,YAAY;;;CAG3D,CAAC;AAMF,SAAS,gBAAgB,CAAC,EAAC,SAAS,EAAyB;IACzD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,KAAK,EAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IAEjC,MAAM,uBAAuB,GAAG;QAC5B;YACI,KAAK,EAAE,CAAC,CAAC,6BAA6B,CAAC;YACvC,KAAK,EAAE,SAAS,CAAC,EAAE;SACtB;QACD;YACI,KAAK,EAAE,CAAC,CAAC,+BAA+B,CAAC;YACzC,KAAK,EAAE,CAAC,CAAC,iCAAiC,SAAS,CAAC,IAAI,EAAE,CAAC;SAC9D;KACJ,CAAC;IAEF,IAAI,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QACjC,uBAAuB,CAAC,IAAI,CAAC;YACzB,KAAK,EAAE,CAAC,CAAC,iCAAiC,CAAC;YAC3C,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,mCAAmC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI;SAC5F,CAAC,CAAC;IACP,CAAC;IAED,MAAM,aAAa,GAAG;QAClB;YACI,GAAG,EAAE,WAAW;YAChB,KAAK,EAAE,CAAC,CAAC,0CAA0C,CAAC;YACpD,QAAQ,EAAE,KAAC,cAAc,IAAC,KAAK,EAAE,uBAAuB,GAAI;SAC/D;KACJ,CAAC;IAEF,OAAO,CACH,KAAC,wBAAwB,IACrB,KAAK,EAAE,aAAa,EACpB,oBAAoB,QACpB,QAAQ,EAAE,KAAK,EACf,KAAK,uBACQ,KAAK,GACpB,CACL,CAAC;AACN,CAAC;AAED,eAAe,gBAAgB,CAAC"}
|
package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/ValueDetails/AttributeDetails/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RecordFormAttributeTreeAttributeFragment } from '../../../../../_gqlTypes';
|
|
2
|
-
import { IRecordPropertyTree } from '../../../../../_queries/records/getRecordPropertiesQuery';
|
|
3
|
-
interface ITreeValuePathProps {
|
|
4
|
-
attribute: RecordFormAttributeTreeAttributeFragment;
|
|
5
|
-
value: IRecordPropertyTree;
|
|
6
|
-
}
|
|
7
|
-
declare function TreeValuePath({ value, attribute }: ITreeValuePathProps): JSX.Element;
|
|
8
|
-
export default TreeValuePath;
|