@leav/ui 0.3.6-ac90f23 → 0.3.6-af10514
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 +1 -0
- 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 +1 -0
- package/dist/__mocks__/common/value.js.map +1 -1
- package/dist/__mocks__/common/view.js +7 -5
- package/dist/__mocks__/common/view.js.map +1 -1
- package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js +1 -1
- package/dist/__mocks__/mockQuery/mockGetLibraryDetailExtendedQuery.js.map +1 -1
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.js +2 -1
- package/dist/__mocks__/mockQuery/mockGetViewListQuery.js.map +1 -1
- package/dist/_gqlTypes/index.d.ts +482 -82
- package/dist/_gqlTypes/index.js +273 -63
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/attributes/getAttributesByLib.js +7 -5
- package/dist/_queries/attributes/getAttributesByLib.js.map +1 -1
- package/dist/_queries/libraries/getLibraryDetailExtendQuery.d.ts +3 -4
- package/dist/_queries/libraries/getLibraryDetailExtendQuery.js +2 -3
- package/dist/_queries/libraries/getLibraryDetailExtendQuery.js.map +1 -1
- package/dist/_queries/records/getRecordColumnsValues.d.ts +1 -1
- package/dist/_queries/records/getRecordsFromLibraryQuery.js +1 -0
- package/dist/_queries/records/getRecordsFromLibraryQuery.js.map +1 -1
- package/dist/_queries/records/recordFormAttributeFragment.js +1 -0
- package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
- package/dist/_queries/views/saveViewMutation.js +1 -1
- package/dist/_queries/views/viewDetailsFragment.js +14 -11
- package/dist/_queries/views/viewDetailsFragment.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 +5 -2
- package/dist/_utils/index.js.map +1 -1
- package/dist/_utils/interleaveElement.d.ts +1 -0
- package/dist/_utils/interleaveElement.js +5 -0
- package/dist/_utils/interleaveElement.js.map +1 -0
- package/dist/antdTheme/index.d.ts +0 -3
- package/dist/antdTheme/index.js +3 -42
- package/dist/antdTheme/index.js.map +1 -1
- package/dist/components/Explorer/DataView.d.ts +6 -1
- package/dist/components/Explorer/DataView.js +67 -18
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +8 -6
- package/dist/components/Explorer/Explorer.js +69 -32
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
- package/dist/components/Explorer/ExplorerTitle.js +28 -11
- package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.d.ts +5 -0
- package/dist/components/Explorer/ExplorerToolbar.js +45 -0
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -0
- package/dist/components/Explorer/TableCell.js +15 -6
- package/dist/components/Explorer/TableCell.js.map +1 -1
- package/dist/components/Explorer/_constants.d.ts +5 -0
- package/dist/components/Explorer/_constants.js +18 -0
- package/dist/components/Explorer/_constants.js.map +1 -0
- 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 +15 -7
- package/dist/components/Explorer/_queries/useExplorerData.js +73 -20
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +70 -8
- package/dist/components/Explorer/_types.js +7 -1
- package/dist/components/Explorer/_types.js.map +1 -1
- package/dist/components/Explorer/conditionsHelper.d.ts +2 -0
- package/dist/components/Explorer/conditionsHelper.js +16 -0
- package/dist/components/Explorer/conditionsHelper.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 +1 -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/filter-items/FilterItems.js +17 -5
- 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 +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +22 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +66 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
- 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 +32 -14
- 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 +7 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropdownContent.js +40 -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/FilterValueList.js.map +1 -1
- 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 +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +7 -32
- 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 +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +7 -32
- 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 +10 -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 +11 -13
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +34 -8
- 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 +1 -0
- 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/SidePanel.js +1 -1
- 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 +2 -0
- package/dist/components/Explorer/manage-view-settings/open-view-settings/useOpenViewSettings.js +24 -6
- 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.d.ts +2 -1
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +52 -28
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/sort-items/SortItems.js +25 -21
- 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 +13 -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 +39 -13
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +75 -31
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
- package/dist/components/Explorer/useColumnWidth.d.ts +6 -0
- package/dist/components/Explorer/useColumnWidth.js +48 -0
- package/dist/components/Explorer/useColumnWidth.js.map +1 -0
- package/dist/components/Explorer/useCreateAction.d.ts +4 -2
- package/dist/components/Explorer/useCreateAction.js +35 -2
- package/dist/components/Explorer/useCreateAction.js.map +1 -1
- package/dist/components/Explorer/useDeactivateMassAction.d.ts +27 -0
- package/dist/components/Explorer/useDeactivateMassAction.js +71 -0
- package/dist/components/Explorer/useDeactivateMassAction.js.map +1 -0
- package/dist/components/Explorer/useEditAction.js +3 -3
- package/dist/components/Explorer/useEditAction.js.map +1 -1
- package/dist/components/Explorer/useMassActions.d.ts +27 -0
- package/dist/components/Explorer/useMassActions.js +109 -0
- package/dist/components/Explorer/useMassActions.js.map +1 -0
- package/dist/components/Explorer/usePrimaryActions.js +14 -7
- package/dist/components/Explorer/usePrimaryActions.js.map +1 -1
- package/dist/components/Explorer/useRemoveAction.d.ts +23 -0
- package/dist/components/Explorer/useRemoveAction.js +109 -0
- package/dist/components/Explorer/useRemoveAction.js.map +1 -0
- package/dist/components/Explorer/useSearchInput.d.ts +10 -4
- package/dist/components/Explorer/useSearchInput.js +9 -1
- package/dist/components/Explorer/useSearchInput.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.d.ts +8 -0
- package/dist/components/Explorer/useViewSettingsReducer.js +208 -0
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +7 -11
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +7 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +7 -5
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
- package/dist/components/LibraryItemsList/MenuView/MenuView.js +4 -9
- package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +2 -3
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +1 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js +3 -3
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +1 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +4 -9
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +7 -5
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +1 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +1 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +1 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +25 -33
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +61 -73
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +4 -4
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useExecuteSaveValueBatchMutation.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +2 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +81 -25
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +47 -4
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +9 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +16 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +6 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +7 -14
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +9 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +6 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +4 -15
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +5 -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 +1 -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 +0 -5
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +10 -4
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +2 -2
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.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/AttributeSummary/index.js +6 -0
- 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/Breacrumb/index.js +6 -0
- package/dist/components/RecordEdition/EditRecordSidebar/Breacrumb/index.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +4 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +39 -5
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +1 -13
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +1 -1
- package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.d.ts +1 -1
- package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.js +2 -2
- package/dist/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSkeleton/index.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordSkeleton/index.js +6 -0
- package/dist/components/RecordEdition/EditRecordSkeleton/index.js.map +1 -0
- package/dist/components/RecordEdition/index.d.ts +1 -0
- package/dist/components/RecordEdition/index.js +1 -0
- package/dist/components/RecordEdition/index.js.map +1 -1
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +3 -0
- package/dist/constants.js.map +1 -1
- package/dist/hooks/useExecuteSaveViewMutation/index.d.ts +1 -0
- package/dist/hooks/useExecuteSaveViewMutation/index.js +5 -0
- package/dist/hooks/useExecuteSaveViewMutation/index.js.map +1 -0
- package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.d.ts +6 -0
- package/dist/hooks/{useExecuteAddViewMutation/useExecuteAddViewMutation.js → useExecuteSaveViewMutation/useExecuteSaveViewMutation.js} +6 -6
- package/dist/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.js.map +1 -0
- package/dist/locales/en/shared.json +45 -11
- package/dist/locales/fr/shared.json +47 -13
- package/dist/types/views.d.ts +4 -4
- package/package.json +2 -2
- package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.d.ts +0 -2
- package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js +0 -37
- package/dist/components/Explorer/display-view-filters/ExplorerFilterBar.js.map +0 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.d.ts +0 -3
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js +0 -72
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js.map +0 -1
- package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
- package/dist/components/Explorer/useDeactivateAction.js +0 -52
- package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordSkeleton.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
- package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
- package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecordSummary.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"RecordSummary.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,uBAAuB,EAAC,MAAM,mEAAmE,CAAC;AAE1G,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAC,OAAO,EAAC,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAE3E,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAMpE,MAAM,CAAC,MAAM,aAAa,GAA2C,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE;IAC9E,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAC,GAAG,uBAAuB,CAClD,MAAM,EAAE,OAAO,EAAE,EAAE,EACnB,CAAC,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,CAAC,EAC1D,CAAC,MAAM,EAAE,EAAE,CAAC,CACf,CAAC;IAEF,IAAI,OAAO,EAAE,CAAC;QACV,iEAAiE;QACjE,OAAO,KAAC,OAAO,KAAG,CAAC;IACvB,CAAC;IAED,IAAI,KAAK,EAAE,CAAC;QACR,+DAA+D;QAC/D,OAAO,KAAC,YAAY,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,GAAI,CAAC;IACpD,CAAC;IAED,MAAM,UAAU,GAAG,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAEtC,OAAO,CACH,KAAC,OAAO,IACJ,KAAK,EAAE;YACH;gBACI,GAAG,EAAE,cAAc;gBACnB,KAAK,EAAE,CAAC,CAAC,6BAA6B,CAAC;gBACvC,UAAU,EAAE,KAAC,kBAAkB,IAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAI;aAC7E;YACD;gBACI,GAAG,EAAE,MAAM;gBACX,KAAK,EAAE,CAAC,CAAC,qBAAqB,CAAC;gBAC/B,QAAQ,EAAE,IAAI;aACjB;YACD;gBACI,GAAG,EAAE,SAAS;gBACd,KAAK,EAAE,CAAC,CAAC,wBAAwB,CAAC;gBAClC,QAAQ,EAAE,IAAI;aACjB;SACJ,GACH,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -2,15 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
3
|
// This file is released under LGPL V3
|
|
4
4
|
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { CloseOutlined } from '@ant-design/icons';
|
|
6
5
|
import { isTypeStandard, localizedTranslation } from '@leav/utils';
|
|
7
6
|
import { Collapse, Divider } from 'antd';
|
|
8
7
|
import styled from 'styled-components';
|
|
9
8
|
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
10
9
|
import useLang from '../../../../hooks/useLang';
|
|
11
10
|
import { AttributeType } from '../../../../_gqlTypes';
|
|
12
|
-
import { EditRecordReducerActionsTypes } from '../../editRecordReducer/editRecordReducer';
|
|
13
|
-
import { useEditRecordReducer } from '../../editRecordReducer/useEditRecordReducer';
|
|
14
11
|
import AttributeDetails from './AttributeDetails';
|
|
15
12
|
import TreeValuePath from './TreeValuePath';
|
|
16
13
|
import ValueInfo from './ValueInfo';
|
|
@@ -26,18 +23,9 @@ const AttributeDescription = styled.div `
|
|
|
26
23
|
color: rgba(0, 0, 0, 0.5);
|
|
27
24
|
padding: 0 1rem;
|
|
28
25
|
`;
|
|
29
|
-
const CloseButton = styled(CloseOutlined) `
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
position: absolute;
|
|
32
|
-
right: 1em;
|
|
33
|
-
top: 1em;
|
|
34
|
-
`;
|
|
35
|
-
const { Panel } = Collapse;
|
|
36
26
|
function ValueDetails({ attribute, value, onMetadataSubmit }) {
|
|
37
27
|
const { lang } = useLang();
|
|
38
28
|
const { t } = useSharedTranslation();
|
|
39
|
-
const { state, dispatch } = useEditRecordReducer();
|
|
40
|
-
const _handleClose = () => dispatch({ type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE, value: null });
|
|
41
29
|
const metadataFields = (attribute?.metadata_fields ?? []).filter(field => field.permissions.access_attribute);
|
|
42
30
|
const hasMetadata = metadataFields.length > 0 && value !== null;
|
|
43
31
|
const collapseItems = [];
|
|
@@ -57,7 +45,7 @@ function ValueDetails({ attribute, value, onMetadataSubmit }) {
|
|
|
57
45
|
children: (_jsx(TreeValuePath, { value: value, attribute: attribute }))
|
|
58
46
|
});
|
|
59
47
|
}
|
|
60
|
-
return (_jsxs(_Fragment, { children: [
|
|
48
|
+
return (_jsxs(_Fragment, { children: [_jsxs(AttributeTitle, { children: [t('record_edition.attribute.info_title'), ":", _jsx("span", { className: "attribute-label", children: localizedTranslation(attribute.label, lang) })] }), _jsx(AttributeDescription, { children: localizedTranslation(attribute.description, lang) }), _jsx(AttributeDetails, { attribute: attribute }), _jsx(Divider, { style: { margin: '.5em 0' } }), _jsx(ValueInfo, {}), _jsx(Collapse, { items: collapseItems, bordered: false, defaultActiveKey: ['value', 'metadata'], style: { background: 'none' }, destroyInactivePanel: true })] }));
|
|
61
49
|
}
|
|
62
50
|
export default ValueDetails;
|
|
63
51
|
//# sourceMappingURL=ValueDetails.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValueDetails.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"ValueDetails.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAE,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjE,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AACvC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,EACH,aAAa,EAGhB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAQ5C,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAMhC,CAAC;AAEF,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGtC,CAAC;AAEF,SAAS,YAAY,CAAC,EAAC,SAAS,EAAE,KAAK,EAAE,gBAAgB,EAAqB;IAC1E,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,EAAE,CAAC;IACzB,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,cAAc,GAAG,CAAC,SAAS,EAAE,eAAe,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAC9G,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,KAAK,IAAI,CAAC;IAEhE,MAAM,aAAa,GAAG,EAAE,CAAC;IAEzB,IAAI,WAAW,EAAE,CAAC;QACd,aAAa,CAAC,IAAI,CAAC;YACf,GAAG,EAAE,UAAU;YACf,KAAK,EAAE,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC;gBACjC,CAAC,CAAC,CAAC,CAAC,iCAAiC,CAAC;gBACtC,CAAC,CAAC,CAAC,CAAC,sCAAsC,CAAC;YAC/C,QAAQ,EAAE,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,GAAI;SACtG,CAAC,CAAC;IACP,CAAC;IAED,IAAI,SAAS,CAAC,IAAI,KAAK,aAAa,CAAC,IAAI,IAAI,KAAK,EAAE,CAAC;QACjD,aAAa,CAAC,IAAI,CAAC;YACf,GAAG,EAAE,MAAM;YACX,KAAK,EAAE,CAAC,CAAC,6BAA6B,CAAC;YACvC,QAAQ,EAAE,CACN,KAAC,aAAa,IACV,KAAK,EAAE,KAA4B,EACnC,SAAS,EAAE,SAAqD,GAClE,CACL;SACJ,CAAC,CAAC;IACP,CAAC;IAED,OAAO,CACH,8BACI,MAAC,cAAc,eACV,CAAC,CAAC,qCAAqC,CAAC,OACzC,eAAM,SAAS,EAAC,iBAAiB,YAAE,oBAAoB,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,GAAQ,IACzE,EACjB,KAAC,oBAAoB,cAAE,oBAAoB,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,GAAwB,EAChG,KAAC,gBAAgB,IAAC,SAAS,EAAE,SAAS,GAAI,EAC1C,KAAC,OAAO,IAAC,KAAK,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC,GAAI,EACtC,KAAC,SAAS,KAAG,EACb,KAAC,QAAQ,IACL,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,KAAK,EACf,gBAAgB,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EACvC,KAAK,EAAE,EAAC,UAAU,EAAE,MAAM,EAAC,EAC3B,oBAAoB,SACtB,IACH,CACN,CAAC;AACN,CAAC;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface IEditRecordSkeletonProps {
|
|
2
2
|
rows: number;
|
|
3
3
|
}
|
|
4
|
-
declare
|
|
4
|
+
declare const EditRecordSkeleton: ({ rows }: IEditRecordSkeletonProps) => JSX.Element;
|
|
5
5
|
export default EditRecordSkeleton;
|
package/dist/components/RecordEdition/{EditRecordContent → EditRecordSkeleton}/EditRecordSkeleton.js
RENAMED
|
@@ -3,11 +3,11 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
3
3
|
// This file is released under LGPL V3
|
|
4
4
|
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
5
|
import { Divider, Skeleton } from 'antd';
|
|
6
|
-
|
|
6
|
+
const EditRecordSkeleton = ({ rows }) => {
|
|
7
7
|
const rowsArray = Array(rows)
|
|
8
8
|
.fill('')
|
|
9
9
|
.map((_, i) => i);
|
|
10
10
|
return (_jsx(_Fragment, { children: rowsArray.map(el => (_jsxs("div", { "data-testid": "edit-record-skeleton", children: [_jsx(Skeleton.Input, { active: true, size: "large", style: { width: 100, margin: '0 .5rem' } }), _jsx(Skeleton.Input, { active: true, size: "large", style: { width: 450, margin: '0 .5rem' } }), _jsx(Divider, {})] }, el))) }));
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
export default EditRecordSkeleton;
|
|
13
13
|
//# sourceMappingURL=EditRecordSkeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditRecordSkeleton.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordSkeleton/EditRecordSkeleton.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,MAAM,CAAC;AAMvC,MAAM,kBAAkB,GAAG,CAAC,EAAC,IAAI,EAA2B,EAAe,EAAE;IACzE,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC;SACxB,IAAI,CAAC,EAAE,CAAC;SACR,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IAEtB,OAAO,CACH,4BACK,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CACjB,8BAA0B,sBAAsB,aAC5C,KAAC,QAAQ,CAAC,KAAK,IAAC,MAAM,QAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAC,GAAI,EAC9E,KAAC,QAAQ,CAAC,KAAK,IAAC,MAAM,QAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAC,GAAI,EAC9E,KAAC,OAAO,KAAG,KAHL,EAAE,CAIN,CACT,CAAC,GACH,CACN,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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 EditRecordSkeleton from './EditRecordSkeleton';
|
|
5
|
+
export default EditRecordSkeleton;
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordSkeleton/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as EditRecordContent } from './EditRecordContent';
|
|
2
|
+
export { default as EditRecordSkeleton } from './EditRecordSkeleton';
|
|
2
3
|
export { default as EditRecordBtn } from './EditRecordBtn';
|
|
3
4
|
export { EditRecord } from './EditRecord';
|
|
4
5
|
export { EditRecordModal } from './EditRecordModal';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// This file is released under LGPL V3
|
|
3
3
|
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
4
|
export { default as EditRecordContent } from './EditRecordContent';
|
|
5
|
+
export { default as EditRecordSkeleton } from './EditRecordSkeleton';
|
|
5
6
|
export { default as EditRecordBtn } from './EditRecordBtn';
|
|
6
7
|
export { EditRecord } from './EditRecord';
|
|
7
8
|
export { EditRecordModal } from './EditRecordModal';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RecordEdition/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RecordEdition/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC"}
|
package/dist/constants.d.ts
CHANGED
|
@@ -21,3 +21,6 @@ export declare const APPS_ENDPOINT = "app";
|
|
|
21
21
|
export declare const APP_ENDPOINT: string;
|
|
22
22
|
export declare const PREFIX_USER_VIEWS_ORDER_KEY = "user_views_order_";
|
|
23
23
|
export declare const PREFIX_SHARED_VIEWS_ORDER_KEY = "shared_views_order_";
|
|
24
|
+
export declare const TOOLTIP_DEFAULT_DELAY_IN_SECONDS = 0.5;
|
|
25
|
+
export declare const EDIT_RECORD_SIDEBAR_ID = "edit_record_sidebar";
|
|
26
|
+
export declare const STANDARDFIELD_ID_PREFIX = "standardfield-";
|
package/dist/constants.js
CHANGED
|
@@ -41,4 +41,7 @@ export const APPS_ENDPOINT = 'app';
|
|
|
41
41
|
export const APP_ENDPOINT = window.location.pathname.split('/').filter(e => e)[1]; // Get endpoint app current from url /APPS_ENDPOINT/:endpoint
|
|
42
42
|
export const PREFIX_USER_VIEWS_ORDER_KEY = 'user_views_order_';
|
|
43
43
|
export const PREFIX_SHARED_VIEWS_ORDER_KEY = 'shared_views_order_';
|
|
44
|
+
export const TOOLTIP_DEFAULT_DELAY_IN_SECONDS = 0.5;
|
|
45
|
+
export const EDIT_RECORD_SIDEBAR_ID = 'edit_record_sidebar';
|
|
46
|
+
export const STANDARDFIELD_ID_PREFIX = 'standardfield-';
|
|
44
47
|
//# sourceMappingURL=constants.js.map
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,gCAAgC;AAChC,sCAAsC;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,gCAAgC;AAChC,sCAAsC;AACtC,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,aAAa,CAAC;AAE3D,sEAAsE;AACtE,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,4BAAa,CAAA;IACb,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,0BAAW,CAAA;AACf,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAmE;IACnG,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7C,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;IAChD,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC/C,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;IACrD,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC;CAC7C,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAqE;IACvG,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;IAC9C,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3C,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;IACpD,CAAC,eAAe,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC;IAC/C,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;IAClD,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IAChD,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5C,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC9C,CAAC,eAAe,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;CACtD,CAAC;AAEF,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IACzB,oCAAe,CAAA;IACf,0DAAqC,CAAA;IACrC,4DAAuC,CAAA;AAC3C,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAE5C,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC;AACnC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,6DAA6D;AAEhJ,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;AAC/D,MAAM,CAAC,MAAM,6BAA6B,GAAG,qBAAqB,CAAC;AAEnE,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,CAAC;AAEpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AAE5D,MAAM,CAAC,MAAM,uBAAuB,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './useExecuteSaveViewMutation';
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
export { default } from './useExecuteSaveViewMutation';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/useExecuteSaveViewMutation/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FetchResult } from '@apollo/client';
|
|
2
|
+
import { SaveViewMutation, SaveViewMutationVariables } from '../../_gqlTypes';
|
|
3
|
+
export interface IUseSaveViewMutationHook {
|
|
4
|
+
saveView: (variables: SaveViewMutationVariables) => Promise<FetchResult<SaveViewMutation>>;
|
|
5
|
+
}
|
|
6
|
+
export default function useExecuteSaveViewMutation(): IUseSaveViewMutationHook;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useSaveViewMutation } from '../../_gqlTypes';
|
|
2
2
|
import { getViewsListQuery } from '../../_queries/views/getViewsListQuery';
|
|
3
|
-
export default function
|
|
4
|
-
const [
|
|
3
|
+
export default function useExecuteSaveViewMutation() {
|
|
4
|
+
const [executeSaveView] = useSaveViewMutation();
|
|
5
5
|
return {
|
|
6
|
-
|
|
7
|
-
return
|
|
6
|
+
saveView(variables) {
|
|
7
|
+
return executeSaveView({
|
|
8
8
|
variables,
|
|
9
9
|
update: (cache, mutationResult, options) => {
|
|
10
10
|
if (options.variables.view.id) {
|
|
@@ -33,4 +33,4 @@ export default function useExecuteAddViewMutation() {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
//# sourceMappingURL=
|
|
36
|
+
//# sourceMappingURL=useExecuteSaveViewMutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExecuteSaveViewMutation.js","sourceRoot":"","sources":["../../../src/hooks/useExecuteSaveViewMutation/useExecuteSaveViewMutation.ts"],"names":[],"mappings":"AAIA,OAAO,EAKH,mBAAmB,EACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,iBAAiB,EAAC,MAAM,sCAAsC,CAAC;AAMvE,MAAM,CAAC,OAAO,UAAU,0BAA0B;IAC9C,MAAM,CAAC,eAAe,CAAC,GAAG,mBAAmB,EAAE,CAAC;IAEhD,OAAO;QACH,QAAQ,CAAC,SAAS;YACd,OAAO,eAAe,CAAC;gBACnB,SAAS;gBACT,MAAM,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE;oBACvC,IAAI,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;wBAC5B,OAAO,CAAC,iBAAiB;oBAC7B,CAAC;oBAED,MAAM,aAAa,GAAG;wBAClB,KAAK,EAAE,iBAAiB;wBACxB,SAAS,EAAE;4BACP,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO;yBAC5C;qBACJ,CAAC;oBAEF,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAgD,aAAa,CAAC,CAAC;oBAEhG,IAAI,SAAS,EAAE,CAAC;wBACZ,KAAK,CAAC,UAAU,CAAgD;4BAC5D,GAAG,aAAa;4BAChB,IAAI,EAAE;gCACF,KAAK,EAAE;oCACH,IAAI,EAAE,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC;oCAC7D,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC;iCAC7C;6BACJ;yBACJ,CAAC,CAAC;oBACP,CAAC;gBACL,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"create": "Create",
|
|
31
31
|
"ok": "Ok",
|
|
32
32
|
"max_length": "Max length",
|
|
33
|
-
"confirm": "Confirm"
|
|
33
|
+
"confirm": "Confirm",
|
|
34
|
+
"loading": "Loading"
|
|
34
35
|
},
|
|
35
36
|
"errors": {
|
|
36
37
|
"default_language_required": "The default language is required",
|
|
@@ -251,7 +252,7 @@
|
|
|
251
252
|
"not-classified-in": "Not classified in",
|
|
252
253
|
"equal": "Is Equal",
|
|
253
254
|
"not-equal": "Isn't Equal",
|
|
254
|
-
"through": "
|
|
255
|
+
"through": "Whose attribute",
|
|
255
256
|
"begin-with": "Begin With",
|
|
256
257
|
"end-with": "End With",
|
|
257
258
|
"is-empty": "Is Empty",
|
|
@@ -405,6 +406,7 @@
|
|
|
405
406
|
"add_value_link": "Add link",
|
|
406
407
|
"delete_value": "Delete value",
|
|
407
408
|
"delete_value_confirm": "Do you really want to delete this value?",
|
|
409
|
+
"delete_link_confirm": "Do you really want to delete this link?",
|
|
408
410
|
"whoAmI": "Information",
|
|
409
411
|
"no_value": "No value",
|
|
410
412
|
"value_details": "Value details",
|
|
@@ -488,7 +490,20 @@
|
|
|
488
490
|
"created_at": "Created on",
|
|
489
491
|
"created_at_value": "{{date}} by {{user}}",
|
|
490
492
|
"modified_at": "Modified on",
|
|
491
|
-
"modified_at_value": "{{date}} by {{user}}"
|
|
493
|
+
"modified_at_value": "{{date}} by {{user}}",
|
|
494
|
+
"new_record": "New record",
|
|
495
|
+
"id_entity": "Entity identifier",
|
|
496
|
+
"creation": "Creation",
|
|
497
|
+
"last_modification": "Last modification",
|
|
498
|
+
"date_by_user": "{{date}} by {{user}}",
|
|
499
|
+
"open_preview_modal": "Open preview modal",
|
|
500
|
+
"informations": "Informations",
|
|
501
|
+
"chat": "Chat",
|
|
502
|
+
"history": "History",
|
|
503
|
+
"entity_overview": "{{entity}} overview",
|
|
504
|
+
"attribute": "Attribute",
|
|
505
|
+
"attribute_format": "Attribute format",
|
|
506
|
+
"descriptive": "Descriptive"
|
|
492
507
|
},
|
|
493
508
|
"view": {
|
|
494
509
|
"views": "Views",
|
|
@@ -617,7 +632,8 @@
|
|
|
617
632
|
"create-one": "Create",
|
|
618
633
|
"actions": "Actions",
|
|
619
634
|
"more-actions": "Show more",
|
|
620
|
-
"deactivate-item": "Deactivate
|
|
635
|
+
"deactivate-item": "Deactivate",
|
|
636
|
+
"delete-item": "Delete",
|
|
621
637
|
"edit-item": "Edit item",
|
|
622
638
|
"settings": "Settings",
|
|
623
639
|
"back": "Back",
|
|
@@ -636,12 +652,9 @@
|
|
|
636
652
|
"active": "Active sorts",
|
|
637
653
|
"inactive": "Inactive sorts"
|
|
638
654
|
},
|
|
639
|
-
"
|
|
640
|
-
"active": "Active filters",
|
|
641
|
-
"inactive": "Inactive filters"
|
|
642
|
-
},
|
|
655
|
+
"toolbar": "Toolbar",
|
|
643
656
|
"reset-filter": "Reset filter",
|
|
644
|
-
"
|
|
657
|
+
"reset-view": "Reset view",
|
|
645
658
|
"empty-data": "No items found.",
|
|
646
659
|
"available-attributes": "Other available attributes",
|
|
647
660
|
"coming-soon": "Coming soon",
|
|
@@ -650,10 +663,31 @@
|
|
|
650
663
|
"columns": "Columns",
|
|
651
664
|
"visible-columns": "Visible columns",
|
|
652
665
|
"invisible-columns": "Invisible columns",
|
|
653
|
-
"pagination-total-
|
|
666
|
+
"pagination-total-number_one": "{{from, number}} - {{to, number}} of {{count, number}} item",
|
|
667
|
+
"pagination-total-number_other": "{{from, number}} - {{to, number}} of {{count, number}} items",
|
|
654
668
|
"active-items-number": "{{count, number}} active",
|
|
655
669
|
"active-items-number_zero": "None",
|
|
656
670
|
"invalid-value": "Invalid value",
|
|
657
|
-
"type-a-value": "Type a value"
|
|
671
|
+
"type-a-value": "Type a value",
|
|
672
|
+
"save-view": "Save",
|
|
673
|
+
"reinit-view": "Reset",
|
|
674
|
+
"select-condition": "Select condition",
|
|
675
|
+
"true": "True",
|
|
676
|
+
"false": "False",
|
|
677
|
+
"filter-condition": "Condition",
|
|
678
|
+
"filter-link-attribute": "Link attribute",
|
|
679
|
+
"massAction": {
|
|
680
|
+
"itemsTotal_one": "{{count, number}} item",
|
|
681
|
+
"itemsTotal_other": "{{count, number}} items",
|
|
682
|
+
"selectedItems_one": "{{count, number}} selected",
|
|
683
|
+
"selectedItems_other": "{{count, number}} selected",
|
|
684
|
+
"deactivate": "Deactivate",
|
|
685
|
+
"toggle_selection": {
|
|
686
|
+
"select_page_one": "Select visible item ({{count, number}})",
|
|
687
|
+
"select_page_other": "Select visible items ({{count, number}})",
|
|
688
|
+
"select_all": "Select all items ({{count, number}})",
|
|
689
|
+
"deselect_all": "Deselect all items"
|
|
690
|
+
}
|
|
691
|
+
}
|
|
658
692
|
}
|
|
659
693
|
}
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"create": "Créer",
|
|
31
31
|
"ok": "Ok",
|
|
32
32
|
"max_length": "Longueur maximale",
|
|
33
|
-
"confirm": "Confirmer"
|
|
33
|
+
"confirm": "Confirmer",
|
|
34
|
+
"loading": "Chargement"
|
|
34
35
|
},
|
|
35
36
|
"errors": {
|
|
36
37
|
"default_language_required": "La langue par défaut est requise",
|
|
@@ -249,7 +250,7 @@
|
|
|
249
250
|
"not-contains": "Ne contient pas",
|
|
250
251
|
"equal": "Est égal",
|
|
251
252
|
"not-equal": "N'est pas égal",
|
|
252
|
-
"through": "
|
|
253
|
+
"through": "Dont l’attribut",
|
|
253
254
|
"begin-with": "Commence par",
|
|
254
255
|
"end-with": "Fini Par",
|
|
255
256
|
"is-empty": "Est Vide",
|
|
@@ -405,6 +406,7 @@
|
|
|
405
406
|
"add_value_link": "Ajouter une liaison",
|
|
406
407
|
"delete_value": "Supprimer cette valeur",
|
|
407
408
|
"delete_value_confirm": "Êtes-vous sûr de vouloir supprimer cette valeur?",
|
|
409
|
+
"delete_link_confirm": "Êtes-vous sûr de vouloir supprimer cette liaison?",
|
|
408
410
|
"whoAmI": "Informations",
|
|
409
411
|
"no_value": "Pas de valeur",
|
|
410
412
|
"value_details": "Infos valeur",
|
|
@@ -488,7 +490,20 @@
|
|
|
488
490
|
"created_at": "Créé le",
|
|
489
491
|
"created_at_value": "{{date}} par {{user}}",
|
|
490
492
|
"modified_at": "Modifié le",
|
|
491
|
-
"modified_at_value": "{{date}} par {{user}}"
|
|
493
|
+
"modified_at_value": "{{date}} par {{user}}",
|
|
494
|
+
"new_record": "Nouvel élément",
|
|
495
|
+
"id_entity": "Identifiant entité",
|
|
496
|
+
"creation": "Création",
|
|
497
|
+
"last_modification": "Dernière modification",
|
|
498
|
+
"date_by_user": "Le {{date}} par {{user}}",
|
|
499
|
+
"open_preview_modal": "Ouvrir la modale d'aperçu",
|
|
500
|
+
"informations": "Informations",
|
|
501
|
+
"chat": "Chat",
|
|
502
|
+
"history": "Historique",
|
|
503
|
+
"entity_overview": "Fiche {{entity}}",
|
|
504
|
+
"attribute": "Attribut",
|
|
505
|
+
"attribute_format": "Format de l'attribut",
|
|
506
|
+
"descriptive": "Descriptif"
|
|
492
507
|
},
|
|
493
508
|
"view": {
|
|
494
509
|
"views": "Vues",
|
|
@@ -552,8 +567,8 @@
|
|
|
552
567
|
"records_deactivation": {
|
|
553
568
|
"title": "Désactiver les éléments",
|
|
554
569
|
"title_one": "Désactiver",
|
|
555
|
-
"confirm": "Êtes-vous sûr de vouloir désactiver les éléments sélectionnés?",
|
|
556
|
-
"confirm_one": "Êtes-vous sûr de vouloir désactiver cet élément?"
|
|
570
|
+
"confirm": "Êtes-vous sûr de vouloir désactiver les éléments sélectionnés ?",
|
|
571
|
+
"confirm_one": "Êtes-vous sûr de vouloir désactiver cet élément ?"
|
|
557
572
|
},
|
|
558
573
|
"table-columns-selection": {
|
|
559
574
|
"header": "Colonnes disponibles",
|
|
@@ -617,7 +632,8 @@
|
|
|
617
632
|
"create-one": "Créer",
|
|
618
633
|
"actions": "Actions",
|
|
619
634
|
"more-actions": "Voir plus",
|
|
620
|
-
"deactivate-item": "Désactiver
|
|
635
|
+
"deactivate-item": "Désactiver",
|
|
636
|
+
"delete-item": "Supprimer",
|
|
621
637
|
"edit-item": "Éditer l’élément",
|
|
622
638
|
"settings": "Paramètres",
|
|
623
639
|
"back": "Retour",
|
|
@@ -634,12 +650,9 @@
|
|
|
634
650
|
"active": "Tris actifs",
|
|
635
651
|
"inactive": "Tris inactifs"
|
|
636
652
|
},
|
|
637
|
-
"
|
|
638
|
-
"active": "Filtres actifs",
|
|
639
|
-
"inactive": "Filtres inactifs"
|
|
640
|
-
},
|
|
653
|
+
"toolbar": "Barre d’outils",
|
|
641
654
|
"reset-filter": "Réinitialiser le filtre",
|
|
642
|
-
"
|
|
655
|
+
"reset-view": "Réinitialiser la vue",
|
|
643
656
|
"empty-data": "Aucun élément trouvé.",
|
|
644
657
|
"sort-ascending": "Ascendant",
|
|
645
658
|
"sort-descending": "Descendant",
|
|
@@ -647,13 +660,34 @@
|
|
|
647
660
|
"coming-soon": "À venir",
|
|
648
661
|
"show": "Afficher",
|
|
649
662
|
"hide": "Masquer",
|
|
650
|
-
"pagination-total-
|
|
663
|
+
"pagination-total-number_one": "{{from, number}} - {{to, number}} de {{count, number}} élément",
|
|
664
|
+
"pagination-total-number_other": "{{from, number}} - {{to, number}} de {{count, number}} éléments",
|
|
651
665
|
"columns": "Colonnes",
|
|
652
666
|
"visible-columns": "Colonnes visibles",
|
|
653
667
|
"invisible-columns": "Colonnes invisibles",
|
|
654
668
|
"active-items-number": "{{count, number}} actifs",
|
|
655
669
|
"active-items-number_zero": "Aucun",
|
|
656
670
|
"invalid-value": "Valeur invalide",
|
|
657
|
-
"type-a-value": "Saisissez une valeur"
|
|
671
|
+
"type-a-value": "Saisissez une valeur",
|
|
672
|
+
"save-view": "Enregistrer",
|
|
673
|
+
"reinit-view": "Réinitialiser",
|
|
674
|
+
"select-condition": "Sélectionner une condition",
|
|
675
|
+
"true": "Vrai",
|
|
676
|
+
"false": "Faux",
|
|
677
|
+
"filter-condition": "Condition",
|
|
678
|
+
"filter-link-attribute": "Attribut de liaison",
|
|
679
|
+
"massAction": {
|
|
680
|
+
"itemsTotal_one": "{{count, number}} élément",
|
|
681
|
+
"itemsTotal_other": "{{count, number}} éléments",
|
|
682
|
+
"selectedItems_one": "{{count, number}} sélectionné",
|
|
683
|
+
"selectedItems_other": "{{count, number}} sélectionnés",
|
|
684
|
+
"deactivate": "Supprimer",
|
|
685
|
+
"toggle_selection": {
|
|
686
|
+
"select_page_one": "Sélectionner l’éléments visible ({{count, number}})",
|
|
687
|
+
"select_page_other": "Sélectionner les éléments visibles ({{count, number}})",
|
|
688
|
+
"select_all": "Tout sélectionner ({{count, number}})",
|
|
689
|
+
"deselect_all": "Tout désélectionner"
|
|
690
|
+
}
|
|
691
|
+
}
|
|
658
692
|
}
|
|
659
693
|
}
|
package/dist/types/views.d.ts
CHANGED
|
@@ -13,12 +13,12 @@ export interface IView {
|
|
|
13
13
|
color?: string;
|
|
14
14
|
filters?: IFilter[];
|
|
15
15
|
valuesVersions?: IValueVersion;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
sort?: IGetViewListSort[];
|
|
17
|
+
attributes?: string[];
|
|
18
18
|
}
|
|
19
19
|
export interface IViewDisplay {
|
|
20
20
|
type: ViewTypes;
|
|
21
|
-
size
|
|
21
|
+
size?: ViewSizes;
|
|
22
22
|
}
|
|
23
23
|
export interface IGetViewListSort {
|
|
24
24
|
field: string;
|
|
@@ -29,6 +29,6 @@ export interface IGetViewListSettings {
|
|
|
29
29
|
value?: any;
|
|
30
30
|
}
|
|
31
31
|
export interface IGetViewListDisplay {
|
|
32
|
-
size
|
|
32
|
+
size?: ViewSizes;
|
|
33
33
|
type: ViewTypes;
|
|
34
34
|
}
|
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-af10514",
|
|
4
4
|
"description": "Shared React components and hooks",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "yarn build",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@ant-design/icons": ">=5.2",
|
|
53
53
|
"@apollo/client": ">=3.8.1",
|
|
54
54
|
"antd": "5.15.3",
|
|
55
|
-
"aristid-ds": "
|
|
55
|
+
"aristid-ds": "12.0.0-8a56c10",
|
|
56
56
|
"dayjs": "^1.11.10",
|
|
57
57
|
"i18next": "22.5",
|
|
58
58
|
"react": "18.2.0",
|
|
@@ -1,37 +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
|
-
const FilterStyled = styled(KitFilter) `
|
|
12
|
-
flex: 0 0 auto;
|
|
13
|
-
`;
|
|
14
|
-
const ExplorerFilterBarListStyled = styled.ul `
|
|
15
|
-
padding: calc(var(--general-spacing-xs) * 1px) calc(var(--general-spacing-xxs) * 1px)
|
|
16
|
-
calc(var(--general-spacing-m) * 1px) calc(var(--general-spacing-xxs) * 1px);
|
|
17
|
-
margin: 0;
|
|
18
|
-
list-style: none;
|
|
19
|
-
display: flex;
|
|
20
|
-
overflow: auto;
|
|
21
|
-
flex-wrap: nowrap;
|
|
22
|
-
align-items: center;
|
|
23
|
-
gap: 0;
|
|
24
|
-
white-space: nowrap;
|
|
25
|
-
`;
|
|
26
|
-
const DividerStyled = styled(KitDivider) `
|
|
27
|
-
height: 2em;
|
|
28
|
-
`;
|
|
29
|
-
export const ExplorerFilterBar = () => {
|
|
30
|
-
const { t } = useSharedTranslation();
|
|
31
|
-
const { view: { filters } } = useViewSettingsContext();
|
|
32
|
-
if (filters.length === 0) {
|
|
33
|
-
return null;
|
|
34
|
-
}
|
|
35
|
-
return (_jsxs(ExplorerFilterBarListStyled, { "aria-label": t('explorer.filter-list.active'), children: [_jsx(KitSpace, { size: "s", children: filters.map(filter => (_jsx("li", { children: _jsx(CommonFilterItem, { filter: filter }, filter.id) }, filter.id))) }), _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.delete-filters') }) })] }));
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=ExplorerFilterBar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorerFilterBar.js","sourceRoot":"","sources":["../../../../src/components/Explorer/display-view-filters/ExplorerFilterBar.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;AAElF,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;;CAErC,CAAC;AAEF,MAAM,2BAA2B,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;;CAW5C,CAAC;AAEF,MAAM,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;;CAEvC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAsB,GAAG,EAAE;IACrD,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,EACF,IAAI,EAAE,EAAC,OAAO,EAAC,EAClB,GAAG,sBAAsB,EAAE,CAAC;IAE7B,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,MAAC,2BAA2B,kBAAa,CAAC,CAAC,6BAA6B,CAAC,aACrE,KAAC,QAAQ,IAAC,IAAI,EAAC,GAAG,YACb,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CACnB,uBACI,KAAC,gBAAgB,IAAiB,MAAM,EAAE,MAAM,IAAzB,MAAM,CAAC,EAAE,CAAoB,IAD/C,MAAM,CAAC,EAAE,CAEb,CACR,CAAC,GACK,EACX,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,yBAAyB,CAAC,GAClB,GACd,IACqB,CACjC,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,72 +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 { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
6
|
-
import { KitButton, KitDivider, KitSelect, KitSpace } from 'aristid-ds';
|
|
7
|
-
import { FaClock, FaTrash } from 'react-icons/fa';
|
|
8
|
-
import { useViewSettingsContext } from '../../store-view-settings/useViewSettingsContext';
|
|
9
|
-
import { ViewSettingsActionTypes } from '../../store-view-settings/viewSettingsReducer';
|
|
10
|
-
import { FilterValueList } from './FilterValueList';
|
|
11
|
-
// TODO : This is an exemple file showing ho to customize dropdown Panel content. Don't mind the content of the file, missing types,... it's just an example.
|
|
12
|
-
const conditions = [
|
|
13
|
-
{
|
|
14
|
-
label: 'Egal à',
|
|
15
|
-
value: 'eq'
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
label: 'Différent de',
|
|
19
|
-
value: 'neq'
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
label: 'Commence par',
|
|
23
|
-
value: 'start'
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: 'Contient',
|
|
27
|
-
value: 'contains'
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
label: 'Ne contient pas',
|
|
31
|
-
value: 'not_contains'
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
label: 'Est dans la liste',
|
|
35
|
-
value: 'in'
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
label: "N'est pas dans la liste",
|
|
39
|
-
value: 'not_in'
|
|
40
|
-
}
|
|
41
|
-
];
|
|
42
|
-
const attributeValuesList = ['toto', 'tata', 'Value 3', 'Value 4', 'Value 5'];
|
|
43
|
-
export const SimpleFilterDropdown = ({ filter }) => {
|
|
44
|
-
const { t } = useSharedTranslation();
|
|
45
|
-
const { dispatch } = useViewSettingsContext();
|
|
46
|
-
const _updateFilter = (filterData) => {
|
|
47
|
-
dispatch({
|
|
48
|
-
type: ViewSettingsActionTypes.CHANGE_FILTER_CONFIG,
|
|
49
|
-
payload: filterData
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
const _onConditionChanged = condition => {
|
|
53
|
-
_updateFilter({ ...filter, condition });
|
|
54
|
-
};
|
|
55
|
-
const _onValueClick = value => {
|
|
56
|
-
_updateFilter({ ...filter, value: value.join('-') });
|
|
57
|
-
};
|
|
58
|
-
const _onResetFilter = () => dispatch({
|
|
59
|
-
type: ViewSettingsActionTypes.RESET_FILTER,
|
|
60
|
-
payload: {
|
|
61
|
-
id: filter.id
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
const _onDeleteFilter = () => dispatch({
|
|
65
|
-
type: ViewSettingsActionTypes.REMOVE_FILTER,
|
|
66
|
-
payload: {
|
|
67
|
-
id: filter.id
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
return (_jsxs(KitSpace, { size: "xxs", direction: "vertical", children: [_jsx(KitSelect, { options: conditions, onChange: _onConditionChanged, value: filter.condition }), _jsx(FilterValueList, { values: attributeValuesList, multiple: false, freeEntry: false, selectedValues: filter.value === null ? [] : [filter.value], onSelectionChanged: _onValueClick }), _jsx(KitDivider, { noMargin: true }), _jsx(KitButton, { type: "redirect", icon: _jsx(FaClock, {}), onClick: _onResetFilter, children: t('explorer.reset-filter') }), _jsx(KitButton, { type: "redirect", icon: _jsx(FaTrash, {}), onClick: _onDeleteFilter, children: t('global.delete') })] }));
|
|
71
|
-
};
|
|
72
|
-
//# sourceMappingURL=SimpleFilterDropDown.js.map
|