@leav/ui 0.3.6-ac90f23 → 0.3.6-b0bf87d
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 +364 -82
- package/dist/_gqlTypes/index.js +203 -59
- 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 +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/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 +81 -0
- package/dist/components/Explorer/_queries/prepareFiltersForRequest.js.map +1 -0
- package/dist/components/Explorer/_queries/useExplorerData.d.ts +14 -6
- package/dist/components/Explorer/_queries/useExplorerData.js +69 -20
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +41 -2
- 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 +1 -0
- 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 +11 -4
- 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 +60 -6
- 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/FilterValueList.js.map +1 -1
- 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/useConditionOptionsByType.d.ts +6 -9
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +25 -7
- 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/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 +34 -8
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +51 -29
- 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 +126 -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/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/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 +36 -9
- package/dist/locales/fr/shared.json +38 -11
- 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,73 +1,42 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
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 { localizedTranslation } from '@leav/utils';
|
|
6
|
-
import { Space, theme } from 'antd';
|
|
7
|
-
import styled from 'styled-components';
|
|
8
|
-
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
9
|
-
import { PreviewSize } from '../../../../constants';
|
|
10
|
-
import { useLang } from '../../../../hooks';
|
|
11
5
|
import { useGetRecordValuesQuery } from '../../../../hooks/useGetRecordValuesQuery/useGetRecordValuesQuery';
|
|
12
6
|
import { ErrorDisplay } from '../../../ErrorDisplay';
|
|
13
7
|
import { Loading } from '../../../Loading';
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
display: flex;
|
|
19
|
-
`;
|
|
20
|
-
function RecordSummary({ record }) {
|
|
21
|
-
const preview = record?.preview?.medium ? String(record?.preview?.medium) : null;
|
|
22
|
-
const previewFile = record?.preview?.file;
|
|
23
|
-
const { token } = theme.useToken();
|
|
8
|
+
import { KitTabs } from 'aristid-ds';
|
|
9
|
+
import { RecordInformations } from './RecordInformations/RecordInformations';
|
|
10
|
+
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
11
|
+
export const RecordSummary = ({ record }) => {
|
|
24
12
|
const { t } = useSharedTranslation();
|
|
25
|
-
const { lang } = useLang();
|
|
26
13
|
const { loading, error, data } = useGetRecordValuesQuery(record?.library?.id, ['created_at', 'created_by', 'modified_at', 'modified_by'], [record?.id]);
|
|
27
14
|
if (loading) {
|
|
15
|
+
//TODO: In XSTREAM-1134, we will have to handle the loading state
|
|
28
16
|
return _jsx(Loading, {});
|
|
29
17
|
}
|
|
30
18
|
if (error) {
|
|
19
|
+
//TODO: In XSTREAM-1134, we will have to handle the error state
|
|
31
20
|
return _jsx(ErrorDisplay, { message: error.message });
|
|
32
21
|
}
|
|
33
22
|
const recordData = data?.[record?.id];
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
value: t('record_summary.created_at_value', {
|
|
53
|
-
date: (recordData?.created_at?.[0]).value,
|
|
54
|
-
user: recordData?.created_by?.[0]?.linkValue?.whoAmI?.label,
|
|
55
|
-
interpolation: { escapeValue: false }
|
|
56
|
-
})
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
if (recordData.modified_at?.[0]) {
|
|
60
|
-
summaryContent.push({
|
|
61
|
-
title: t('record_summary.modified_at'),
|
|
62
|
-
value: t('record_summary.modified_at_value', {
|
|
63
|
-
date: (recordData?.modified_at?.[0]).value,
|
|
64
|
-
user: recordData?.modified_by?.[0]?.linkValue?.whoAmI?.label,
|
|
65
|
-
interpolation: { escapeValue: false }
|
|
66
|
-
})
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return (_jsxs(Wrapper, { direction: "vertical", children: [_jsx(RecordPreviewWithModal, { label: record?.label ?? record?.id, color: record?.color, image: preview ?? null, tile: true, size: PreviewSize.medium, style: { borderRadius: token.borderRadius }, previewFile: previewFile, imageStyle: { borderRadius: token.borderRadius } }), _jsx(PropertiesList, { items: summaryContent })] }));
|
|
71
|
-
}
|
|
23
|
+
return (_jsx(KitTabs, { items: [
|
|
24
|
+
{
|
|
25
|
+
key: 'informations',
|
|
26
|
+
label: t('record_summary.informations'),
|
|
27
|
+
tabContent: _jsx(RecordInformations, { record: record, recordData: recordData })
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
key: 'chat',
|
|
31
|
+
label: t('record_summary.chat'),
|
|
32
|
+
disabled: true
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
key: 'history',
|
|
36
|
+
label: t('record_summary.history'),
|
|
37
|
+
disabled: true
|
|
38
|
+
}
|
|
39
|
+
] }));
|
|
40
|
+
};
|
|
72
41
|
export default RecordSummary;
|
|
73
42
|
//# sourceMappingURL=RecordSummary.js.map
|
|
@@ -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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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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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"}
|
|
@@ -405,6 +405,7 @@
|
|
|
405
405
|
"add_value_link": "Add link",
|
|
406
406
|
"delete_value": "Delete value",
|
|
407
407
|
"delete_value_confirm": "Do you really want to delete this value?",
|
|
408
|
+
"delete_link_confirm": "Do you really want to delete this link?",
|
|
408
409
|
"whoAmI": "Information",
|
|
409
410
|
"no_value": "No value",
|
|
410
411
|
"value_details": "Value details",
|
|
@@ -488,7 +489,16 @@
|
|
|
488
489
|
"created_at": "Created on",
|
|
489
490
|
"created_at_value": "{{date}} by {{user}}",
|
|
490
491
|
"modified_at": "Modified on",
|
|
491
|
-
"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"
|
|
492
502
|
},
|
|
493
503
|
"view": {
|
|
494
504
|
"views": "Views",
|
|
@@ -617,7 +627,8 @@
|
|
|
617
627
|
"create-one": "Create",
|
|
618
628
|
"actions": "Actions",
|
|
619
629
|
"more-actions": "Show more",
|
|
620
|
-
"deactivate-item": "Deactivate
|
|
630
|
+
"deactivate-item": "Deactivate",
|
|
631
|
+
"delete-item": "Delete",
|
|
621
632
|
"edit-item": "Edit item",
|
|
622
633
|
"settings": "Settings",
|
|
623
634
|
"back": "Back",
|
|
@@ -636,12 +647,9 @@
|
|
|
636
647
|
"active": "Active sorts",
|
|
637
648
|
"inactive": "Inactive sorts"
|
|
638
649
|
},
|
|
639
|
-
"
|
|
640
|
-
"active": "Active filters",
|
|
641
|
-
"inactive": "Inactive filters"
|
|
642
|
-
},
|
|
650
|
+
"toolbar": "Toolbar",
|
|
643
651
|
"reset-filter": "Reset filter",
|
|
644
|
-
"
|
|
652
|
+
"reset-view": "Reset view",
|
|
645
653
|
"empty-data": "No items found.",
|
|
646
654
|
"available-attributes": "Other available attributes",
|
|
647
655
|
"coming-soon": "Coming soon",
|
|
@@ -650,10 +658,29 @@
|
|
|
650
658
|
"columns": "Columns",
|
|
651
659
|
"visible-columns": "Visible columns",
|
|
652
660
|
"invisible-columns": "Invisible columns",
|
|
653
|
-
"pagination-total-
|
|
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",
|
|
654
663
|
"active-items-number": "{{count, number}} active",
|
|
655
664
|
"active-items-number_zero": "None",
|
|
656
665
|
"invalid-value": "Invalid value",
|
|
657
|
-
"type-a-value": "Type a 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
|
+
}
|
|
658
685
|
}
|
|
659
686
|
}
|
|
@@ -405,6 +405,7 @@
|
|
|
405
405
|
"add_value_link": "Ajouter une liaison",
|
|
406
406
|
"delete_value": "Supprimer cette valeur",
|
|
407
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?",
|
|
408
409
|
"whoAmI": "Informations",
|
|
409
410
|
"no_value": "Pas de valeur",
|
|
410
411
|
"value_details": "Infos valeur",
|
|
@@ -488,7 +489,16 @@
|
|
|
488
489
|
"created_at": "Créé le",
|
|
489
490
|
"created_at_value": "{{date}} par {{user}}",
|
|
490
491
|
"modified_at": "Modifié le",
|
|
491
|
-
"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"
|
|
492
502
|
},
|
|
493
503
|
"view": {
|
|
494
504
|
"views": "Vues",
|
|
@@ -552,8 +562,8 @@
|
|
|
552
562
|
"records_deactivation": {
|
|
553
563
|
"title": "Désactiver les éléments",
|
|
554
564
|
"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?"
|
|
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 ?"
|
|
557
567
|
},
|
|
558
568
|
"table-columns-selection": {
|
|
559
569
|
"header": "Colonnes disponibles",
|
|
@@ -617,7 +627,8 @@
|
|
|
617
627
|
"create-one": "Créer",
|
|
618
628
|
"actions": "Actions",
|
|
619
629
|
"more-actions": "Voir plus",
|
|
620
|
-
"deactivate-item": "Désactiver
|
|
630
|
+
"deactivate-item": "Désactiver",
|
|
631
|
+
"delete-item": "Supprimer",
|
|
621
632
|
"edit-item": "Éditer l’élément",
|
|
622
633
|
"settings": "Paramètres",
|
|
623
634
|
"back": "Retour",
|
|
@@ -634,12 +645,9 @@
|
|
|
634
645
|
"active": "Tris actifs",
|
|
635
646
|
"inactive": "Tris inactifs"
|
|
636
647
|
},
|
|
637
|
-
"
|
|
638
|
-
"active": "Filtres actifs",
|
|
639
|
-
"inactive": "Filtres inactifs"
|
|
640
|
-
},
|
|
648
|
+
"toolbar": "Barre d’outils",
|
|
641
649
|
"reset-filter": "Réinitialiser le filtre",
|
|
642
|
-
"
|
|
650
|
+
"reset-view": "Réinitialiser la vue",
|
|
643
651
|
"empty-data": "Aucun élément trouvé.",
|
|
644
652
|
"sort-ascending": "Ascendant",
|
|
645
653
|
"sort-descending": "Descendant",
|
|
@@ -647,13 +655,32 @@
|
|
|
647
655
|
"coming-soon": "À venir",
|
|
648
656
|
"show": "Afficher",
|
|
649
657
|
"hide": "Masquer",
|
|
650
|
-
"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",
|
|
651
660
|
"columns": "Colonnes",
|
|
652
661
|
"visible-columns": "Colonnes visibles",
|
|
653
662
|
"invisible-columns": "Colonnes invisibles",
|
|
654
663
|
"active-items-number": "{{count, number}} actifs",
|
|
655
664
|
"active-items-number_zero": "Aucun",
|
|
656
665
|
"invalid-value": "Valeur invalide",
|
|
657
|
-
"type-a-value": "Saisissez une valeur"
|
|
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
|
+
}
|
|
658
685
|
}
|
|
659
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-b0bf87d",
|
|
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,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