@leav/ui 0.3.6-8bbbdf7 → 0.3.6-8c2b8a1
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.d.ts +1 -0
- package/dist/__mocks__/common/attribute.js +9 -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 +3 -1
- 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 +410 -72
- package/dist/_gqlTypes/index.js +238 -48
- package/dist/_gqlTypes/index.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 +5 -3
- package/dist/_queries/records/getRecordColumnsValues.js +4 -1
- package/dist/_queries/records/getRecordColumnsValues.js.map +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 +2 -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/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/CreateDirectory/CreateDirectory.js +1 -1
- package/dist/components/CreateDirectory/CreateDirectory.js.map +1 -1
- package/dist/components/Explorer/DataView.d.ts +6 -1
- package/dist/components/Explorer/DataView.js +69 -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 -37
- 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.d.ts +1 -1
- package/dist/components/Explorer/TableCell.js +50 -8
- package/dist/components/Explorer/TableCell.js.map +1 -1
- package/dist/components/Explorer/TableTagGroup.d.ts +1 -0
- package/dist/components/Explorer/TableTagGroup.js +8 -0
- package/dist/components/Explorer/TableTagGroup.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 +81 -0
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -0
- package/dist/components/Explorer/_queries/useExplorerData.d.ts +15 -6
- package/dist/components/Explorer/_queries/useExplorerData.js +70 -11
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +53 -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/ColumnItem.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js +11 -3
- package/dist/components/Explorer/manage-view-settings/_shared/ColumnItem.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.d.ts +6 -0
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js +12 -0
- package/dist/components/Explorer/manage-view-settings/_shared/CommonFilterItem.js.map +1 -0
- 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/configure-display/attributes/SelectVisibleAttributes.js +11 -13
- 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 +35 -41
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.d.ts +1 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.js +3 -3
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterListItem.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 +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +71 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.d.ts +10 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js +75 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +19 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +28 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +11 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +100 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -0
- 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/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 +45 -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 +41 -17
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +70 -24
- 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 +7 -6
- 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 +126 -0
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -0
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +2 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +1 -1
- package/dist/components/LibraryItemsList/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 +17 -4
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +3 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.d.ts +5 -2
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +6 -3
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +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/Container/Container.d.ts +3 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/Container/Container.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js +2 -7
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MonoValueSelect/MonoValueSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js +2 -9
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/MultiValueSelect/MultiValueSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.d.ts +6 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +16 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +95 -58
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +3 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +54 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +25 -6
- 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 +14 -8
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +14 -20
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +38 -29
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +14 -15
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +5 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +8 -17
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.d.ts → DSListSelect.d.ts} +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/{MonoValueSelect.js → DSListSelect.js} +29 -7
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +3 -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 +7 -6
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/useGetPresentationValues.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/TreeField/ValuesAdd/ValuesAdd.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/EditRecordSidebar.d.ts +4 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +36 -3
- 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/components/SelectTreeNode/SelectTreeNode.d.ts +4 -7
- package/dist/components/SelectTreeNode/SelectTreeNode.js +17 -135
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +16 -0
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +131 -0
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -0
- package/dist/components/SelectTreeNode/index.d.ts +1 -1
- package/dist/components/SelectTreeNode/index.js +1 -1
- package/dist/components/SelectTreeNode/index.js.map +1 -1
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.d.ts +4 -7
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js +10 -10
- package/dist/components/SelectTreeNodeModal/SelectTreeNodeModal.js.map +1 -1
- package/dist/components/SelectTreeNodeModal/index.d.ts +1 -2
- package/dist/components/SelectTreeNodeModal/index.js +1 -2
- package/dist/components/SelectTreeNodeModal/index.js.map +1 -1
- package/dist/components/UploadFiles/UploadFiles.js +1 -1
- package/dist/components/UploadFiles/UploadFiles.js.map +1 -1
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js +2 -2
- package/dist/components/ValuesVersionConfigurator/VersionTree/VersionTree.js.map +1 -1
- package/dist/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 +48 -11
- package/dist/locales/fr/shared.json +50 -13
- package/dist/types/views.d.ts +4 -4
- package/package.json +4 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.d.ts +0 -8
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js +0 -100
- 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 -51
- 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/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.js.map +0 -1
- package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.d.ts +0 -6
- package/dist/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.js.map +0 -1
|
@@ -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"}
|
|
@@ -164,7 +164,8 @@
|
|
|
164
164
|
"advanced_settings": "Advanced settings",
|
|
165
165
|
"delete": "Delete tree",
|
|
166
166
|
"delete_confirm": "Do you really want to delete this tree?",
|
|
167
|
-
"delete_confirm_warning": "Warning: this action is irreversible"
|
|
167
|
+
"delete_confirm_warning": "Warning: this action is irreversible",
|
|
168
|
+
"unknown_tree": "Unknown tree {{treeId}}"
|
|
168
169
|
},
|
|
169
170
|
"lang": {
|
|
170
171
|
"fr": "French",
|
|
@@ -404,6 +405,7 @@
|
|
|
404
405
|
"add_value_link": "Add link",
|
|
405
406
|
"delete_value": "Delete value",
|
|
406
407
|
"delete_value_confirm": "Do you really want to delete this value?",
|
|
408
|
+
"delete_link_confirm": "Do you really want to delete this link?",
|
|
407
409
|
"whoAmI": "Information",
|
|
408
410
|
"no_value": "No value",
|
|
409
411
|
"value_details": "Value details",
|
|
@@ -455,8 +457,9 @@
|
|
|
455
457
|
"cancel_confirm_modal_title": "Confirm cancellation?",
|
|
456
458
|
"cancel_confirm_modal_content": "You are about to cancel the creation.",
|
|
457
459
|
"cancel_confirm_modal_question": "Are you sure?",
|
|
458
|
-
"
|
|
459
|
-
"
|
|
460
|
+
"inherited_value": "Inherited value",
|
|
461
|
+
"calculated_value": "Calculated value",
|
|
462
|
+
"overrided_value": "Overrided value",
|
|
460
463
|
"date_range_from_to": "from {{- from}} to {{- to}}",
|
|
461
464
|
"link_search_result_count": "Results ({{count}}/{{total}})",
|
|
462
465
|
"suggestions_count": "Suggestions ({{count}})",
|
|
@@ -486,7 +489,16 @@
|
|
|
486
489
|
"created_at": "Created on",
|
|
487
490
|
"created_at_value": "{{date}} by {{user}}",
|
|
488
491
|
"modified_at": "Modified on",
|
|
489
|
-
"modified_at_value": "{{date}} by {{user}}"
|
|
492
|
+
"modified_at_value": "{{date}} by {{user}}",
|
|
493
|
+
"new_record": "New record",
|
|
494
|
+
"id_entity": "Entity identifier",
|
|
495
|
+
"creation": "Creation",
|
|
496
|
+
"last_modification": "Last modification",
|
|
497
|
+
"date_by_user": "{{date}} by {{user}}",
|
|
498
|
+
"open_preview_modal": "Open preview modal",
|
|
499
|
+
"informations": "Informations",
|
|
500
|
+
"chat": "Chat",
|
|
501
|
+
"history": "History"
|
|
490
502
|
},
|
|
491
503
|
"view": {
|
|
492
504
|
"views": "Views",
|
|
@@ -615,7 +627,8 @@
|
|
|
615
627
|
"create-one": "Create",
|
|
616
628
|
"actions": "Actions",
|
|
617
629
|
"more-actions": "Show more",
|
|
618
|
-
"deactivate-item": "Deactivate
|
|
630
|
+
"deactivate-item": "Deactivate",
|
|
631
|
+
"delete-item": "Delete",
|
|
619
632
|
"edit-item": "Edit item",
|
|
620
633
|
"settings": "Settings",
|
|
621
634
|
"back": "Back",
|
|
@@ -634,16 +647,40 @@
|
|
|
634
647
|
"active": "Active sorts",
|
|
635
648
|
"inactive": "Inactive sorts"
|
|
636
649
|
},
|
|
637
|
-
"
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
650
|
+
"toolbar": "Toolbar",
|
|
651
|
+
"reset-filter": "Reset filter",
|
|
652
|
+
"reset-view": "Reset view",
|
|
653
|
+
"empty-data": "No items found.",
|
|
641
654
|
"available-attributes": "Other available attributes",
|
|
642
655
|
"coming-soon": "Coming soon",
|
|
643
656
|
"show": "Show",
|
|
644
657
|
"hide": "Hide",
|
|
645
|
-
"
|
|
658
|
+
"columns": "Columns",
|
|
659
|
+
"visible-columns": "Visible columns",
|
|
660
|
+
"invisible-columns": "Invisible columns",
|
|
661
|
+
"pagination-total-number_one": "{{from, number}} - {{to, number}} of {{count, number}} item",
|
|
662
|
+
"pagination-total-number_other": "{{from, number}} - {{to, number}} of {{count, number}} items",
|
|
646
663
|
"active-items-number": "{{count, number}} active",
|
|
647
|
-
"active-items-number_zero": "None"
|
|
664
|
+
"active-items-number_zero": "None",
|
|
665
|
+
"invalid-value": "Invalid value",
|
|
666
|
+
"type-a-value": "Type a value",
|
|
667
|
+
"save-view": "Save",
|
|
668
|
+
"reinit-view": "Reset",
|
|
669
|
+
"select-condition": "Select condition",
|
|
670
|
+
"true": "True",
|
|
671
|
+
"false": "False",
|
|
672
|
+
"massAction": {
|
|
673
|
+
"itemsTotal_one": "{{count, number}} item",
|
|
674
|
+
"itemsTotal_other": "{{count, number}} items",
|
|
675
|
+
"selectedItems_one": "{{count, number}} selected",
|
|
676
|
+
"selectedItems_other": "{{count, number}} selected",
|
|
677
|
+
"deactivate": "Deactivate",
|
|
678
|
+
"toggle_selection": {
|
|
679
|
+
"select_page_one": "Select visible item ({{count, number}})",
|
|
680
|
+
"select_page_other": "Select visible items ({{count, number}})",
|
|
681
|
+
"select_all": "Select all items ({{count, number}})",
|
|
682
|
+
"deselect_all": "Deselect all items"
|
|
683
|
+
}
|
|
684
|
+
}
|
|
648
685
|
}
|
|
649
686
|
}
|
|
@@ -164,7 +164,8 @@
|
|
|
164
164
|
"advanced_settings": "Paramètres avancés",
|
|
165
165
|
"delete": "Supprimer l'arbre",
|
|
166
166
|
"delete_confirm": "Êtes-vous sûr de vouloir supprimer cet arbre ?",
|
|
167
|
-
"delete_confirm_warning": "Attention, cette action est irréversible"
|
|
167
|
+
"delete_confirm_warning": "Attention, cette action est irréversible",
|
|
168
|
+
"unknown_tree": "Arbre {{treeId}} inconnu"
|
|
168
169
|
},
|
|
169
170
|
"lang": {
|
|
170
171
|
"fr": "Français",
|
|
@@ -404,6 +405,7 @@
|
|
|
404
405
|
"add_value_link": "Ajouter une liaison",
|
|
405
406
|
"delete_value": "Supprimer cette valeur",
|
|
406
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?",
|
|
407
409
|
"whoAmI": "Informations",
|
|
408
410
|
"no_value": "Pas de valeur",
|
|
409
411
|
"value_details": "Infos valeur",
|
|
@@ -455,8 +457,9 @@
|
|
|
455
457
|
"cancel_confirm_modal_title": "Confirmer l'abandon?",
|
|
456
458
|
"cancel_confirm_modal_content": "Vous êtes sur le point d'abandonner la création.",
|
|
457
459
|
"cancel_confirm_modal_question": "Êtes-vous sûr(e) ?",
|
|
458
|
-
"
|
|
459
|
-
"
|
|
460
|
+
"inherited_value": "Valeur héritée",
|
|
461
|
+
"calculated_value": "Valeur calculée",
|
|
462
|
+
"overrided_value": "Valeur surchargée",
|
|
460
463
|
"date_range_from_to": "du {{- from}} au {{- to}}",
|
|
461
464
|
"link_search_result_count": "Résultats ({{count}}/{{total}})",
|
|
462
465
|
"suggestions_count": "Suggestions ({{count}})",
|
|
@@ -486,7 +489,16 @@
|
|
|
486
489
|
"created_at": "Créé le",
|
|
487
490
|
"created_at_value": "{{date}} par {{user}}",
|
|
488
491
|
"modified_at": "Modifié le",
|
|
489
|
-
"modified_at_value": "{{date}} par {{user}}"
|
|
492
|
+
"modified_at_value": "{{date}} par {{user}}",
|
|
493
|
+
"new_record": "Nouvel élément",
|
|
494
|
+
"id_entity": "Identifiant entité",
|
|
495
|
+
"creation": "Création",
|
|
496
|
+
"last_modification": "Dernière modification",
|
|
497
|
+
"date_by_user": "Le {{date}} par {{user}}",
|
|
498
|
+
"open_preview_modal": "Ouvrir la modale d'aperçu",
|
|
499
|
+
"informations": "Informations",
|
|
500
|
+
"chat": "Chat",
|
|
501
|
+
"history": "Historique"
|
|
490
502
|
},
|
|
491
503
|
"view": {
|
|
492
504
|
"views": "Vues",
|
|
@@ -550,8 +562,8 @@
|
|
|
550
562
|
"records_deactivation": {
|
|
551
563
|
"title": "Désactiver les éléments",
|
|
552
564
|
"title_one": "Désactiver",
|
|
553
|
-
"confirm": "Êtes-vous sûr de vouloir désactiver les éléments sélectionnés?",
|
|
554
|
-
"confirm_one": "Êtes-vous sûr de vouloir désactiver cet élément?"
|
|
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 ?"
|
|
555
567
|
},
|
|
556
568
|
"table-columns-selection": {
|
|
557
569
|
"header": "Colonnes disponibles",
|
|
@@ -615,7 +627,8 @@
|
|
|
615
627
|
"create-one": "Créer",
|
|
616
628
|
"actions": "Actions",
|
|
617
629
|
"more-actions": "Voir plus",
|
|
618
|
-
"deactivate-item": "Désactiver
|
|
630
|
+
"deactivate-item": "Désactiver",
|
|
631
|
+
"delete-item": "Supprimer",
|
|
619
632
|
"edit-item": "Éditer l’élément",
|
|
620
633
|
"settings": "Paramètres",
|
|
621
634
|
"back": "Retour",
|
|
@@ -632,18 +645,42 @@
|
|
|
632
645
|
"active": "Tris actifs",
|
|
633
646
|
"inactive": "Tris inactifs"
|
|
634
647
|
},
|
|
635
|
-
"
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
648
|
+
"toolbar": "Barre d’outils",
|
|
649
|
+
"reset-filter": "Réinitialiser le filtre",
|
|
650
|
+
"reset-view": "Réinitialiser la vue",
|
|
651
|
+
"empty-data": "Aucun élément trouvé.",
|
|
639
652
|
"sort-ascending": "Ascendant",
|
|
640
653
|
"sort-descending": "Descendant",
|
|
641
654
|
"available-attributes": "Autres propriétés disponibles",
|
|
642
655
|
"coming-soon": "À venir",
|
|
643
656
|
"show": "Afficher",
|
|
644
657
|
"hide": "Masquer",
|
|
645
|
-
"pagination-total-
|
|
658
|
+
"pagination-total-number_one": "{{from, number}} - {{to, number}} de {{count, number}} élément",
|
|
659
|
+
"pagination-total-number_other": "{{from, number}} - {{to, number}} de {{count, number}} éléments",
|
|
660
|
+
"columns": "Colonnes",
|
|
661
|
+
"visible-columns": "Colonnes visibles",
|
|
662
|
+
"invisible-columns": "Colonnes invisibles",
|
|
646
663
|
"active-items-number": "{{count, number}} actifs",
|
|
647
|
-
"active-items-number_zero": "Aucun"
|
|
664
|
+
"active-items-number_zero": "Aucun",
|
|
665
|
+
"invalid-value": "Valeur invalide",
|
|
666
|
+
"type-a-value": "Saisissez une valeur",
|
|
667
|
+
"save-view": "Enregistrer",
|
|
668
|
+
"reinit-view": "Réinitialiser",
|
|
669
|
+
"select-condition": "Sélectionner une condition",
|
|
670
|
+
"true": "Vrai",
|
|
671
|
+
"false": "Faux",
|
|
672
|
+
"massAction": {
|
|
673
|
+
"itemsTotal_one": "{{count, number}} élément",
|
|
674
|
+
"itemsTotal_other": "{{count, number}} éléments",
|
|
675
|
+
"selectedItems_one": "{{count, number}} sélectionné",
|
|
676
|
+
"selectedItems_other": "{{count, number}} sélectionnés",
|
|
677
|
+
"deactivate": "Supprimer",
|
|
678
|
+
"toggle_selection": {
|
|
679
|
+
"select_page_one": "Sélectionner l’éléments visible ({{count, number}})",
|
|
680
|
+
"select_page_other": "Sélectionner les éléments visibles ({{count, number}})",
|
|
681
|
+
"select_all": "Tout sélectionner ({{count, number}})",
|
|
682
|
+
"deselect_all": "Tout désélectionner"
|
|
683
|
+
}
|
|
684
|
+
}
|
|
648
685
|
}
|
|
649
686
|
}
|
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-8c2b8a1",
|
|
4
4
|
"description": "Shared React components and hooks",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "yarn build",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@total-typescript/ts-reset": "0.6.1",
|
|
35
35
|
"@types/dompurify": "3.0.3",
|
|
36
36
|
"@types/jest": "29.0.2",
|
|
37
|
+
"@types/lodash.isequal": "^4",
|
|
37
38
|
"@types/object-path": "0.11.1",
|
|
38
39
|
"@types/react-beautiful-dnd": "13.1.2",
|
|
39
40
|
"@types/react-table": "7.7.12",
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"@ant-design/icons": ">=5.2",
|
|
52
53
|
"@apollo/client": ">=3.8.1",
|
|
53
54
|
"antd": "5.15.3",
|
|
54
|
-
"aristid-ds": "
|
|
55
|
+
"aristid-ds": "12.0.0-8a56c10",
|
|
55
56
|
"dayjs": "^1.11.10",
|
|
56
57
|
"i18next": "22.5",
|
|
57
58
|
"react": "18.2.0",
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
"dompurify": "3.1.3",
|
|
72
73
|
"html-react-parser": "4.2.2",
|
|
73
74
|
"i18next-resources-to-backend": "1.1.4",
|
|
75
|
+
"lodash.isequal": "4.5.0",
|
|
74
76
|
"moment": "2.30.1",
|
|
75
77
|
"object-path": "0.11.8",
|
|
76
78
|
"react-beautiful-dnd": "13.1.1",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { IExplorerFilter } from '../../store-view-settings/viewSettingsReducer';
|
|
3
|
-
export declare const SimpleFilterDropdown: FunctionComponent<{
|
|
4
|
-
filter: IExplorerFilter;
|
|
5
|
-
attribute: {
|
|
6
|
-
multiple_values: boolean;
|
|
7
|
-
};
|
|
8
|
-
}>;
|
|
@@ -1,100 +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, KitInput, KitSelect, KitSpace } from 'aristid-ds';
|
|
7
|
-
import { FaCheck, FaClock, FaTrash } from 'react-icons/fa';
|
|
8
|
-
import { useViewSettingsContext } from '../../store-view-settings/useViewSettingsContext';
|
|
9
|
-
import { ViewSettingsActionTypes } from '../../store-view-settings/viewSettingsReducer';
|
|
10
|
-
import styled from 'styled-components';
|
|
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 = ['Value 1', 'Value 2', 'Value 3', 'Value 4', 'Value 5'];
|
|
43
|
-
const ValueListItemValueLi = styled.li `
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
min-height: 32px;
|
|
47
|
-
height: 32px;
|
|
48
|
-
border-radius: calc(var(--general-border-radius-s) * 1px);
|
|
49
|
-
cursor: pointer;
|
|
50
|
-
|
|
51
|
-
&.selected {
|
|
52
|
-
color: var(--components-Icon-colors-icon-on, var(--general-utilities-main-default));
|
|
53
|
-
background-color: var(--components-Icon-colors-background-on, var(--general-utilities-main-light));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.label {
|
|
57
|
-
flex: 1;
|
|
58
|
-
padding: 0 calc(var(--general-spacing-xs) * 1px);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.check {
|
|
62
|
-
flex: 0;
|
|
63
|
-
padding: 0 calc(var(--general-spacing-xs) * 1px);
|
|
64
|
-
}
|
|
65
|
-
`;
|
|
66
|
-
export const SimpleFilterDropdown = ({ filter, attribute }) => {
|
|
67
|
-
const { t } = useSharedTranslation();
|
|
68
|
-
const { dispatch } = useViewSettingsContext();
|
|
69
|
-
const updateFilter = data => {
|
|
70
|
-
dispatch({
|
|
71
|
-
type: ViewSettingsActionTypes.CHANGE_FILTER_CONFIG,
|
|
72
|
-
payload: {
|
|
73
|
-
id: filter.id,
|
|
74
|
-
field: filter.field,
|
|
75
|
-
condition: data.condition,
|
|
76
|
-
values: data.values
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
const onconditionChanged = condition => {
|
|
81
|
-
updateFilter({ ...filter, condition });
|
|
82
|
-
};
|
|
83
|
-
const onValueClick = value => {
|
|
84
|
-
let newValues = [...filter.values];
|
|
85
|
-
if (filter.values.includes(value)) {
|
|
86
|
-
newValues = filter.values.filter(v => v !== value);
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
if (attribute.multiple_values) {
|
|
90
|
-
newValues = [...filter.values, value];
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
newValues = [value];
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
updateFilter({ ...filter, values: newValues });
|
|
97
|
-
};
|
|
98
|
-
return (_jsxs(KitSpace, { size: "xxs", direction: "vertical", children: [_jsx(KitSelect, { options: conditions, onChange: onconditionChanged, value: filter.condition }), _jsx(KitInput, { placeholder: String(t('search')) }), _jsx("ul", { children: attributeValuesList.map(value => (_jsxs(ValueListItemValueLi, { onClick: () => onValueClick(value), className: filter.values.includes(value) ? 'selected' : '', children: [_jsx("span", { className: "label", children: value }), filter.values.includes(value) && (_jsx("span", { className: "check", children: _jsx(FaCheck, {}) }))] }, value))) }), _jsx(KitDivider, { noMargin: true }), _jsx(KitButton, { type: "link", icon: _jsx(FaClock, {}), children: "R\u00E9initialiser le filtre" }), _jsx(KitButton, { type: "link", icon: _jsx(FaTrash, {}), children: "Supprimer" })] }));
|
|
99
|
-
};
|
|
100
|
-
//# sourceMappingURL=SimpleFilterDropDown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleFilterDropDown.js","sourceRoot":"","sources":["../../../../../../src/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM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AK,CAAC,EAAE,CAAC,CAC9B,MAAC,oBAAoB,IAEjB,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,EAClC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,aAE1D,eAAM,SAAS,EAAC,OAAO,YAAE,KAAK,GAAQ,EACrC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAC9B,eAAM,SAAS,EAAC,OAAO,YACnB,KAAC,OAAO,KAAG,GACR,CACV,KATI,KAAK,CAUS,CAC1B,CAAC,GACD,EACL,KAAC,UAAU,IAAC,QAAQ,SAAG,EACvB,KAAC,SAAS,IAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAE,KAAC,OAAO,KAAG,6CAE5B,EACZ,KAAC,SAAS,IAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAE,KAAC,OAAO,KAAG,0BAE5B,IACL,CACd,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ActionHook, IItemAction } from './_types';
|
|
2
|
-
/**
|
|
3
|
-
* Hook used to get the action for `<DataView />` component.
|
|
4
|
-
*
|
|
5
|
-
* When the mutation for deactivation is done, the Apollo cache will be clean (`Record` and `RecordIdentity`)
|
|
6
|
-
* from deactivated record.
|
|
7
|
-
*
|
|
8
|
-
* @param isEnabled - whether the action is present
|
|
9
|
-
*/
|
|
10
|
-
export declare const useDeactivateAction: ({ isEnabled }: ActionHook) => {
|
|
11
|
-
deactivateAction: IItemAction;
|
|
12
|
-
};
|
|
@@ -1,51 +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 { FaTrash } from 'react-icons/fa';
|
|
6
|
-
import { KitModal } from 'aristid-ds';
|
|
7
|
-
import { useDeactivateRecordsMutation } from '../../_gqlTypes';
|
|
8
|
-
import { useSharedTranslation } from '../../hooks/useSharedTranslation';
|
|
9
|
-
/**
|
|
10
|
-
* Hook used to get the action for `<DataView />` component.
|
|
11
|
-
*
|
|
12
|
-
* When the mutation for deactivation is done, the Apollo cache will be clean (`Record` and `RecordIdentity`)
|
|
13
|
-
* from deactivated record.
|
|
14
|
-
*
|
|
15
|
-
* @param isEnabled - whether the action is present
|
|
16
|
-
*/
|
|
17
|
-
export const useDeactivateAction = ({ isEnabled }) => {
|
|
18
|
-
const { t } = useSharedTranslation();
|
|
19
|
-
const [deactivateRecordsMutation] = useDeactivateRecordsMutation({
|
|
20
|
-
update(cache, deactivatedRecords) {
|
|
21
|
-
deactivatedRecords.data?.deactivateRecords.forEach(record => {
|
|
22
|
-
cache.evict({
|
|
23
|
-
id: cache.identify(record)
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
cache.gc();
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
const _deactivateAction = {
|
|
30
|
-
label: t('explorer.deactivate-item'),
|
|
31
|
-
icon: _jsx(FaTrash, {}),
|
|
32
|
-
isDanger: true,
|
|
33
|
-
callback: ({ itemId, libraryId }) => KitModal.confirm({
|
|
34
|
-
type: 'confirm',
|
|
35
|
-
dangerConfirm: true,
|
|
36
|
-
content: t('records_deactivation.confirm_one') ?? undefined,
|
|
37
|
-
okText: t('global.submit') ?? undefined,
|
|
38
|
-
cancelText: t('global.cancel') ?? undefined,
|
|
39
|
-
onOk: () => deactivateRecordsMutation({
|
|
40
|
-
variables: {
|
|
41
|
-
libraryId,
|
|
42
|
-
recordsIds: [itemId]
|
|
43
|
-
}
|
|
44
|
-
})
|
|
45
|
-
})
|
|
46
|
-
};
|
|
47
|
-
return {
|
|
48
|
-
deactivateAction: isEnabled ? _deactivateAction : null
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=useDeactivateAction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDeactivateAction.js","sourceRoot":"","sources":["../../../src/components/Explorer/useDeactivateAction.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,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAGpE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAAC,SAAS,EAAa,EAAE,EAAE;IAC3D,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,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;KACJ,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAgB;QACnC,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC;QACpC,IAAI,EAAE,KAAC,OAAO,KAAG;QACjB,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,CAAC,EAAC,MAAM,EAAE,SAAS,EAAC,EAAE,EAAE,CAC9B,QAAQ,CAAC,OAAO,CAAC;YACb,IAAI,EAAE,SAAS;YACf,aAAa,EAAE,IAAI;YACnB,OAAO,EAAE,CAAC,CAAC,kCAAkC,CAAC,IAAI,SAAS;YAC3D,MAAM,EAAE,CAAC,CAAC,eAAe,CAAC,IAAI,SAAS;YACvC,UAAU,EAAE,CAAC,CAAC,eAAe,CAAC,IAAI,SAAS;YAC3C,IAAI,EAAE,GAAG,EAAE,CACP,yBAAyB,CAAC;gBACtB,SAAS,EAAE;oBACP,SAAS;oBACT,UAAU,EAAE,CAAC,MAAM,CAAC;iBACvB;aACJ,CAAC;SACT,CAAC;KACT,CAAC;IAEF,OAAO;QACH,gBAAgB,EAAE,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI;KACzD,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditRecordSkeleton.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordContent/EditRecordSkeleton.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,MAAM,CAAC;AAOvC,SAAS,kBAAkB,CAAC,EAAC,IAAI,EAA2B;IACxD,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;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RecordProperty } from '../../../../../_queries/records/getRecordPropertiesQuery';
|
|
2
|
-
import { RecordFormAttributeFragment } from '../../../../../_gqlTypes';
|
|
3
|
-
export declare const useValueDetailsButton: ({ attribute, value }: {
|
|
4
|
-
attribute: RecordFormAttributeFragment;
|
|
5
|
-
value: RecordProperty | null;
|
|
6
|
-
}) => {
|
|
7
|
-
onValueDetailsButtonClick: () => void;
|
|
8
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
|
-
import { isTypeStandard } from '@leav/utils';
|
|
5
|
-
import { EditRecordReducerActionsTypes } from '../../../../../components/RecordEdition/editRecordReducer/editRecordReducer';
|
|
6
|
-
import { useEditRecordReducer } from '../../../../../components/RecordEdition/editRecordReducer/useEditRecordReducer';
|
|
7
|
-
const isIRecordPropertyStandard = (value, type) => isTypeStandard(type);
|
|
8
|
-
export const useValueDetailsButton = ({ attribute, value }) => {
|
|
9
|
-
const { dispatch } = useEditRecordReducer();
|
|
10
|
-
const onValueDetailsButtonClick = () => {
|
|
11
|
-
const editingValue = isIRecordPropertyStandard(value, attribute.type) ? value?.payload : null;
|
|
12
|
-
dispatch({
|
|
13
|
-
type: EditRecordReducerActionsTypes.SET_ACTIVE_VALUE,
|
|
14
|
-
value: {
|
|
15
|
-
value,
|
|
16
|
-
editingValue,
|
|
17
|
-
attribute
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
return { onValueDetailsButtonClick };
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=useValueDetailsButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useValueDetailsButton.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAC,6BAA6B,EAAC,MAAM,kEAAkE,CAAC;AAE/G,OAAO,EAAC,oBAAoB,EAAC,MAAM,qEAAqE,CAAC;AAEzG,MAAM,yBAAyB,GAAG,CAAC,KAAqB,EAAE,IAAmB,EAAoC,EAAE,CAC/G,cAAc,CAAC,IAAI,CAAC,CAAC;AAEzB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EAClC,SAAS,EACT,KAAK,EAIR,EAAE,EAAE;IACD,MAAM,EAAC,QAAQ,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAE1C,MAAM,yBAAyB,GAAG,GAAG,EAAE;QACnC,MAAM,YAAY,GAAG,yBAAyB,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;QAC9F,QAAQ,CAAC;YACL,IAAI,EAAE,6BAA6B,CAAC,gBAAgB;YACpD,KAAK,EAAE;gBACH,KAAK;gBACL,YAAY;gBACZ,SAAS;aACZ;SACJ,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO,EAAC,yBAAyB,EAAC,CAAC;AACvC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MonoValueSelect.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/MonoValueSelect.tsx"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A6C,CAAC,EAC7D,cAAc,EAAE,IAAI,CAAC,EAAE,CAAC,CACpB,8BACK,cAAc,KAAK,EAAE,IAAI,kBAAkB,GAAG,CAAC,IAAI,CAChD,eAAK,KAAK,EAAE,EAAC,aAAa,EAAE,uCAAuC,EAAC,aAChE,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,YAC/B,CAAC,CAAC,+BAA+B,CAAC,GAClB,EACrB,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,MAAM,EAAC,QAAQ,YAC/C,CAAC,CAAC,kCAAkC,CAAC,GACrB,IACnB,CACT,EACA,IAAI,IACN,CACN,EACD,eAAe,EACX,cAAK,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAC,YAC7B,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,MAAM,EAAC,QAAQ,YAC/C,CAAC,CAAC,iCAAiC,CAAC,GACpB,GACnB,GAEZ,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FetchResult } from '@apollo/client';
|
|
2
|
-
import { AddViewMutation, AddViewMutationVariables } from '../../_gqlTypes';
|
|
3
|
-
export interface IUseAddViewMutationHook {
|
|
4
|
-
addView: (variables: AddViewMutationVariables) => Promise<FetchResult<AddViewMutation>>;
|
|
5
|
-
}
|
|
6
|
-
export default function useExecuteAddViewMutation(): IUseAddViewMutationHook;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExecuteAddViewMutation.js","sourceRoot":"","sources":["../../../src/hooks/useExecuteAddViewMutation/useExecuteAddViewMutation.ts"],"names":[],"mappings":"AAIA,OAAO,EAKH,kBAAkB,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,iBAAiB,EAAC,MAAM,sCAAsC,CAAC;AAMvE,MAAM,CAAC,OAAO,UAAU,yBAAyB;IAC7C,MAAM,CAAC,cAAc,CAAC,GAAG,kBAAkB,EAAE,CAAC;IAE9C,OAAO;QACH,OAAO,CAAC,SAAS;YACb,OAAO,cAAc,CAAC;gBAClB,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"}
|