@leav/ui 1.9.0 → 1.10.0-1b7fd090
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_gqlTypes/index.d.ts +291 -120
- package/dist/_gqlTypes/index.js +204 -87
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/records/createRecordMutation.js +2 -2
- package/dist/_queries/records/createRecordMutation.js.map +1 -1
- package/dist/_utils/getFiltersFromRequest.js +5 -6
- package/dist/_utils/getFiltersFromRequest.js.map +1 -1
- package/dist/_utils/index.d.ts +0 -1
- package/dist/_utils/index.js +3 -7
- package/dist/_utils/index.js.map +1 -1
- package/dist/_utils/typeguards.d.ts +5 -0
- package/dist/_utils/typeguards.js +6 -0
- package/dist/_utils/typeguards.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +2 -1
- package/dist/components/Explorer/Explorer.js +31 -13
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.js +2 -1
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerCountData.d.ts +16 -0
- package/dist/components/Explorer/_queries/useExplorerCountData.js +26 -0
- package/dist/components/Explorer/_queries/useExplorerCountData.js.map +1 -0
- package/dist/components/Explorer/_queries/useExplorerData.js +18 -20
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/actions-mass/ResultsCount.d.ts +10 -0
- package/dist/components/Explorer/actions-mass/ResultsCount.js +8 -0
- package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +9 -2
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +18 -4
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +1 -1
- package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.d.ts +10 -0
- package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js +69 -0
- package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js.map +1 -0
- package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.d.ts +18 -0
- package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js +57 -0
- package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.d.ts +19 -0
- package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js +94 -0
- package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useMassActions.d.ts +5 -3
- package/dist/components/Explorer/actions-mass/useMassActions.js +19 -13
- package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +3 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +5 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +6 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +5 -5
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +11 -8
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/Filters/_queries/treeFiltersDataQuery.d.ts +6 -0
- package/dist/components/Filters/_queries/treeFiltersDataQuery.js +54 -0
- package/dist/components/Filters/_queries/treeFiltersDataQuery.js.map +1 -0
- package/dist/components/Filters/context/useGetTreeFilters.js +24 -40
- package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +1 -2
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.d.ts +6 -0
- package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js +54 -0
- package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +22 -41
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +3 -27
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +2 -2
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +5 -19
- package/dist/components/RecordEdition/EditRecordContent/_types.js +0 -5
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -3
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.d.ts +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +28 -17
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +30 -18
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +11 -0
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +35 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +6 -8
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +2 -33
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +11 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +2 -19
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
- package/dist/components/RecordEdition/_types.d.ts +1 -1
- package/dist/components/RecordEdition/_types.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +7 -6
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +6 -2
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
- package/dist/components/SearchModal/SearchModal.js +28 -18
- package/dist/components/SearchModal/SearchModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +0 -2
- package/dist/components/SelectTreeNode/SelectTreeNode.js +2 -2
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +0 -2
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +60 -114
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +0 -1
- package/dist/components/SelectTreeNode/TreeNodeTitle.js +3 -7
- package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
- package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.d.ts +6 -0
- package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js +56 -0
- package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js.map +1 -0
- package/dist/components/SelectTreeNode/_types.d.ts +0 -1
- package/dist/components/SelectTreeNode/_types.js.map +1 -1
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.js +0 -3
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +24 -22
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +9 -6
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/schema.d.ts +14 -2
- package/dist/hooks/useIFrameMessenger/schema.js +7 -1
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/types.d.ts +5 -0
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.d.ts +1 -1
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +14 -6
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.d.ts +2 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +32 -4
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
- package/dist/locales/en/shared.json +17 -35
- package/dist/locales/fr/shared.json +17 -35
- package/package.json +11 -20
- package/dist/__mocks__/common/mockSearchContextProvider.d.ts +0 -6
- package/dist/__mocks__/common/mockSearchContextProvider.js +0 -10
- package/dist/__mocks__/common/mockSearchContextProvider.js.map +0 -1
- package/dist/components/AttributesSelectionList/Attribute/Attribute.d.ts +0 -3
- package/dist/components/AttributesSelectionList/Attribute/Attribute.js +0 -50
- package/dist/components/AttributesSelectionList/Attribute/Attribute.js.map +0 -1
- package/dist/components/AttributesSelectionList/Attribute/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/Attribute/index.js +0 -6
- package/dist/components/AttributesSelectionList/Attribute/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +0 -10
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js +0 -72
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +0 -7
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +0 -39
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js +0 -6
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.d.ts +0 -2
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +0 -63
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js +0 -6
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/_types.d.ts +0 -8
- package/dist/components/AttributesSelectionList/_types.js +0 -2
- package/dist/components/AttributesSelectionList/_types.js.map +0 -1
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +0 -3
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +0 -9
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js.map +0 -1
- package/dist/components/AttributesSelectionList/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/index.js +0 -6
- package/dist/components/AttributesSelectionList/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.d.ts +0 -11
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +0 -10
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js.map +0 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.d.ts +0 -33
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +0 -77
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js.map +0 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.d.ts +0 -10
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +0 -8
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js.map +0 -1
- package/dist/components/AttributesSelectionList/sharedComponents.d.ts +0 -809
- package/dist/components/AttributesSelectionList/sharedComponents.js +0 -16
- package/dist/components/AttributesSelectionList/sharedComponents.js.map +0 -1
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +0 -10
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +0 -39
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +0 -1
- package/dist/components/DeactivateRecordsModal/index.d.ts +0 -1
- package/dist/components/DeactivateRecordsModal/index.js +0 -5
- package/dist/components/DeactivateRecordsModal/index.js.map +0 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.d.ts +0 -13
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +0 -50
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +0 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js +0 -6
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +0 -80
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayOptions/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayOptions/index.js +0 -6
- package/dist/components/LibraryItemsList/DisplayOptions/index.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js +0 -22
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js +0 -6
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +0 -13
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +0 -229
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersDropdown/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersDropdown/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.d.ts +0 -11
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +0 -328
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +0 -7
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +0 -90
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js +0 -13
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js +0 -26
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js +0 -22
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js +0 -35
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js +0 -34
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js +0 -16
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.d.ts +0 -8
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js +0 -11
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +0 -38
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.d.ts +0 -14
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +0 -147
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +0 -121
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +0 -17
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js.map +0 -1
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.d.ts +0 -8
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.js +0 -18
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.js.map +0 -1
- package/dist/components/LibraryItemsList/IconViewType/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/IconViewType/index.js +0 -6
- package/dist/components/LibraryItemsList/IconViewType/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsList.d.ts +0 -14
- package/dist/components/LibraryItemsList/LibraryItemsList.js +0 -18
- package/dist/components/LibraryItemsList/LibraryItemsList.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.d.ts +0 -16
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +0 -202
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.d.ts +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +0 -32
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js +0 -21
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.d.ts +0 -8
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +0 -56
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.d.ts +0 -7
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +0 -54
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.d.ts +0 -8
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +0 -66
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.d.ts +0 -8
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +0 -59
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +0 -9
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +0 -56
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.d.ts +0 -5
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js +0 -34
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.d.ts +0 -5
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js +0 -23
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.d.ts +0 -3
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +0 -80
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.d.ts +0 -12
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +0 -11
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.d.ts +0 -12
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js +0 -40
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.d.ts +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +0 -81
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.d.ts +0 -9
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +0 -142
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +0 -232
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.d.ts +0 -9
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +0 -27
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemList/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemList/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuItemList/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +0 -62
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.d.ts +0 -5
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +0 -139
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +0 -58
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuSelection/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuSelection/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuSelection/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuView/MenuView.d.ts +0 -6
- package/dist/components/LibraryItemsList/MenuView/MenuView.js +0 -162
- package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuView/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuView/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuView/index.js.map +0 -1
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.d.ts +0 -2
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.js +0 -21
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.js.map +0 -1
- package/dist/components/LibraryItemsList/SearchItems/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/SearchItems/index.js +0 -6
- package/dist/components/LibraryItemsList/SearchItems/index.js.map +0 -1
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.d.ts +0 -2
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +0 -58
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js.map +0 -1
- package/dist/components/LibraryItemsList/Sidebar/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/Sidebar/index.js +0 -6
- package/dist/components/LibraryItemsList/Sidebar/index.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.d.ts +0 -6
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +0 -199
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js +0 -6
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.d.ts +0 -2
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +0 -50
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.d.ts +0 -3
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +0 -11
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/TileDisplay/index.js +0 -6
- package/dist/components/LibraryItemsList/TileDisplay/index.js.map +0 -1
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.d.ts +0 -2
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +0 -66
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js.map +0 -1
- package/dist/components/LibraryItemsList/VersionsPanel/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/VersionsPanel/index.js +0 -6
- package/dist/components/LibraryItemsList/VersionsPanel/index.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.d.ts +0 -9
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +0 -85
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js +0 -6
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/View.d.ts +0 -7
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js +0 -152
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/View/index.js +0 -6
- package/dist/components/LibraryItemsList/ViewPanel/View/index.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +0 -209
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/index.js +0 -6
- package/dist/components/LibraryItemsList/ViewPanel/index.js.map +0 -1
- package/dist/components/LibraryItemsList/constants.d.ts +0 -12
- package/dist/components/LibraryItemsList/constants.js +0 -19
- package/dist/components/LibraryItemsList/constants.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.d.ts +0 -3
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js +0 -21
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +0 -3
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +0 -18
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.d.ts +0 -4
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +0 -64
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.d.ts +0 -5
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +0 -40
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.d.ts +0 -6
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +0 -10
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.d.ts +0 -2
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js +0 -13
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.d.ts +0 -2
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js +0 -18
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.d.ts +0 -8
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +0 -99
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +0 -82
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js +0 -2
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js +0 -6
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.d.ts +0 -7
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js +0 -7
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +0 -121
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +0 -228
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +0 -5
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js +0 -8
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.d.ts +0 -7
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +0 -40
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +0 -1
- package/dist/components/LibraryItemsList/index.d.ts +0 -1
- package/dist/components/LibraryItemsList/index.js +0 -5
- package/dist/components/LibraryItemsList/index.js.map +0 -1
- package/dist/components/LibraryItemsList/manageItems.d.ts +0 -11
- package/dist/components/LibraryItemsList/manageItems.js +0 -98
- package/dist/components/LibraryItemsList/manageItems.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +0 -7
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +0 -38
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js +0 -6
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.d.ts +0 -12
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +0 -29
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/sharedUtils.d.ts +0 -4
- package/dist/components/LibraryItemsList/shared/sharedUtils.js +0 -9
- package/dist/components/LibraryItemsList/shared/sharedUtils.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.d.ts +0 -3
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.js +0 -2
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.js +0 -5
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.js +0 -5
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.d.ts +0 -7
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js +0 -20
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.d.ts +0 -11
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +0 -35
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.d.ts +0 -52
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +0 -144
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.d.ts +0 -9
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +0 -19
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.d.ts +0 -5
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js +0 -21
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.d.ts +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js +0 -14
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.d.ts +0 -9
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js +0 -28
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.d.ts +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.js +0 -25
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.d.ts +0 -7
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.js +0 -33
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js +0 -13
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.d.ts +0 -10
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +0 -24
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +0 -13
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +0 -41
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.d.ts +0 -8
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js +0 -34
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.js.map +0 -1
|
@@ -1,8 +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 { useContext } from 'react';
|
|
5
|
-
import { SearchContext } from './searchContext';
|
|
6
|
-
const useSearchReducer = () => useContext(SearchContext);
|
|
7
|
-
export default useSearchReducer;
|
|
8
|
-
//# sourceMappingURL=useSearchReducer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSearchReducer.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACjC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAEzD,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {useContext} from 'react';\nimport {SearchContext} from './searchContext';\n\nconst useSearchReducer = () => useContext(SearchContext);\n\nexport default useSearchReducer;\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type SaveUserDataMutationResult, type SaveUserDataMutationVariables } from '../../../_gqlTypes';
|
|
2
|
-
export interface IUseUpdateViewsOrderMutation {
|
|
3
|
-
updateViewsOrder: (variables: SaveUserDataMutationVariables) => Promise<SaveUserDataMutationResult>;
|
|
4
|
-
}
|
|
5
|
-
export default function useUpdateViewsOrderMutation(library: string): {
|
|
6
|
-
updateViewsOrder(variables: SaveUserDataMutationVariables): Promise<import("@apollo/client").FetchResult<import("../../../_gqlTypes").SaveUserDataMutation>>;
|
|
7
|
-
};
|
|
@@ -1,40 +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 { PREFIX_SHARED_VIEWS_ORDER_KEY, PREFIX_USER_VIEWS_ORDER_KEY } from '../../../constants';
|
|
5
|
-
import { useSaveUserDataMutation, } from '../../../_gqlTypes';
|
|
6
|
-
import { getUserDataQuery } from '../../../_queries/userData/getUserData';
|
|
7
|
-
export default function useUpdateViewsOrderMutation(library) {
|
|
8
|
-
const [executeUpdateViewsOrder] = useSaveUserDataMutation();
|
|
9
|
-
return {
|
|
10
|
-
updateViewsOrder(variables) {
|
|
11
|
-
return executeUpdateViewsOrder({
|
|
12
|
-
variables,
|
|
13
|
-
update: (cache, mutationResult, options) => {
|
|
14
|
-
const queryToUpdate = {
|
|
15
|
-
query: getUserDataQuery,
|
|
16
|
-
variables: {
|
|
17
|
-
keys: [PREFIX_USER_VIEWS_ORDER_KEY + library, PREFIX_SHARED_VIEWS_ORDER_KEY + library],
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
const cacheData = cache.readQuery(queryToUpdate);
|
|
21
|
-
if (cacheData) {
|
|
22
|
-
cache.writeQuery({
|
|
23
|
-
...queryToUpdate,
|
|
24
|
-
data: {
|
|
25
|
-
userData: {
|
|
26
|
-
global: cacheData.userData.global,
|
|
27
|
-
data: {
|
|
28
|
-
...cacheData.userData.data,
|
|
29
|
-
[options.variables.key]: mutationResult.data.saveUserData.data[options.variables.key],
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=useUpdateViewsOrderMutation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUpdateViewsOrderMutation.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,6BAA6B,EAAE,2BAA2B,EAAC,MAAM,eAAe,CAAC;AACzF,OAAO,EAKH,uBAAuB,GAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AAMnE,MAAM,CAAC,OAAO,UAAU,2BAA2B,CAAC,OAAe;IAC/D,MAAM,CAAC,uBAAuB,CAAC,GAAG,uBAAuB,EAAE,CAAC;IAE5D,OAAO;QACH,gBAAgB,CAAC,SAAwC;YACrD,OAAO,uBAAuB,CAAC;gBAC3B,SAAS;gBACT,MAAM,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE;oBACvC,MAAM,aAAa,GAAG;wBAClB,KAAK,EAAE,gBAAgB;wBACvB,SAAS,EAAE;4BACP,IAAI,EAAE,CAAC,2BAA2B,GAAG,OAAO,EAAE,6BAA6B,GAAG,OAAO,CAAC;yBACzF;qBACJ,CAAC;oBAEF,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAA8C,aAAa,CAAC,CAAC;oBAE9F,IAAI,SAAS,EAAE,CAAC;wBACZ,KAAK,CAAC,UAAU,CAA8C;4BAC1D,GAAG,aAAa;4BAChB,IAAI,EAAE;gCACF,QAAQ,EAAE;oCACN,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,MAAM;oCACjC,IAAI,EAAE;wCACF,GAAG,SAAS,CAAC,QAAQ,CAAC,IAAI;wCAC1B,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,EACnB,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC;qCACnE;iCACJ;6BACJ;yBACJ,CAAC,CAAC;oBACP,CAAC;gBACL,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;KACJ,CAAC;AACN,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {PREFIX_SHARED_VIEWS_ORDER_KEY, PREFIX_USER_VIEWS_ORDER_KEY} from '_ui/constants';\nimport {\n type GetUserDataQuery,\n type GetUserDataQueryVariables,\n type SaveUserDataMutationResult,\n type SaveUserDataMutationVariables,\n useSaveUserDataMutation,\n} from '_ui/_gqlTypes';\nimport {getUserDataQuery} from '_ui/_queries/userData/getUserData';\n\nexport interface IUseUpdateViewsOrderMutation {\n updateViewsOrder: (variables: SaveUserDataMutationVariables) => Promise<SaveUserDataMutationResult>;\n}\n\nexport default function useUpdateViewsOrderMutation(library: string) {\n const [executeUpdateViewsOrder] = useSaveUserDataMutation();\n\n return {\n updateViewsOrder(variables: SaveUserDataMutationVariables) {\n return executeUpdateViewsOrder({\n variables,\n update: (cache, mutationResult, options) => {\n const queryToUpdate = {\n query: getUserDataQuery,\n variables: {\n keys: [PREFIX_USER_VIEWS_ORDER_KEY + library, PREFIX_SHARED_VIEWS_ORDER_KEY + library],\n },\n };\n\n const cacheData = cache.readQuery<GetUserDataQuery, GetUserDataQueryVariables>(queryToUpdate);\n\n if (cacheData) {\n cache.writeQuery<GetUserDataQuery, GetUserDataQueryVariables>({\n ...queryToUpdate,\n data: {\n userData: {\n global: cacheData.userData.global,\n data: {\n ...cacheData.userData.data,\n [options.variables.key]:\n mutationResult.data.saveUserData.data[options.variables.key],\n },\n },\n },\n });\n }\n },\n });\n },\n };\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LibraryItemsList } from './LibraryItemsList';
|
|
@@ -1,5 +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
|
-
export { LibraryItemsList } from './LibraryItemsList';
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/LibraryItemsList/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nexport {LibraryItemsList} from './LibraryItemsList';\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type IField, type IItem } from '../../types/search';
|
|
2
|
-
import { type IGetRecordsFromLibraryQueryElement } from '../../_queries/records/getRecordsFromLibraryQuery';
|
|
3
|
-
interface IManageItemsProps {
|
|
4
|
-
items: IGetRecordsFromLibraryQueryElement[];
|
|
5
|
-
fields: IField[];
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Convert search result to a list of items usable by LibraryItemsList
|
|
9
|
-
*/
|
|
10
|
-
export declare const manageItems: ({ items, fields }: IManageItemsProps) => IItem[];
|
|
11
|
-
export {};
|
|
@@ -1,98 +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 isArray from 'lodash/isArray';
|
|
5
|
-
import objectPath from 'object-path';
|
|
6
|
-
import { AttributeFormat, AttributeType } from '../../_gqlTypes';
|
|
7
|
-
const _extractValueFromParent = (field, linkValue) => {
|
|
8
|
-
const linkedElement = field.parentAttributeData.type === AttributeType.tree ? linkValue.record : linkValue;
|
|
9
|
-
return linkedElement[field.id];
|
|
10
|
-
};
|
|
11
|
-
const manageFields = (fields, item) => fields.reduce((acc, field) => {
|
|
12
|
-
const key = field.key;
|
|
13
|
-
if (field.format === AttributeFormat.extended) {
|
|
14
|
-
const [attributeId, ...path] = key.split('.');
|
|
15
|
-
try {
|
|
16
|
-
// If we ask for the whole extended attribute, just return the json
|
|
17
|
-
if (!path.length) {
|
|
18
|
-
acc[key] = item[attributeId];
|
|
19
|
-
return acc;
|
|
20
|
-
}
|
|
21
|
-
// If we ask for a specific field, parse json and return value
|
|
22
|
-
const attributeExtendedContent = JSON.parse(item[attributeId]);
|
|
23
|
-
if (attributeExtendedContent) {
|
|
24
|
-
acc[key] = objectPath.get(attributeExtendedContent, path);
|
|
25
|
-
return acc;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
catch (e) {
|
|
29
|
-
console.error(e);
|
|
30
|
-
acc[key] = 'error';
|
|
31
|
-
return acc;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
switch (field.type) {
|
|
35
|
-
case AttributeType.simple_link:
|
|
36
|
-
case AttributeType.advanced_link:
|
|
37
|
-
if (field?.parentAttributeData && item[field.parentAttributeData.id]) {
|
|
38
|
-
let value = item[field.parentAttributeData.id][field.id];
|
|
39
|
-
if (isArray(item[field.parentAttributeData.id])) {
|
|
40
|
-
value = item[field.parentAttributeData.id].map(tree => tree.record[field.id]);
|
|
41
|
-
}
|
|
42
|
-
if (Array.isArray(value)) {
|
|
43
|
-
value = value.shift();
|
|
44
|
-
}
|
|
45
|
-
acc[key] = value;
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
acc[key] = item[field.id];
|
|
49
|
-
}
|
|
50
|
-
return acc;
|
|
51
|
-
case AttributeType.tree:
|
|
52
|
-
if (field?.parentAttributeData && item[field.parentAttributeData.id]) {
|
|
53
|
-
acc[key] = item[field.parentAttributeData.id][field.id];
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
acc[key] = item[field.id];
|
|
57
|
-
}
|
|
58
|
-
return acc;
|
|
59
|
-
case AttributeType.simple:
|
|
60
|
-
case AttributeType.advanced:
|
|
61
|
-
default:
|
|
62
|
-
// Simple field, not via link or tree attribute
|
|
63
|
-
if (!field?.parentAttributeData) {
|
|
64
|
-
acc[key] = item[field.id];
|
|
65
|
-
return acc;
|
|
66
|
-
}
|
|
67
|
-
// Attribute via link or tree, but no value
|
|
68
|
-
if (!item[field.parentAttributeData.id]) {
|
|
69
|
-
acc[key] = null;
|
|
70
|
-
return acc;
|
|
71
|
-
}
|
|
72
|
-
// Parent attribute has multiple values, value is an array
|
|
73
|
-
if (isArray(item[field.parentAttributeData.id])) {
|
|
74
|
-
acc[key] = item[field.parentAttributeData.id].map(linkValue => _extractValueFromParent(field, linkValue));
|
|
75
|
-
return acc;
|
|
76
|
-
}
|
|
77
|
-
// Parent attribute has not multiple values, value is not an array
|
|
78
|
-
const linkValue = item[field.parentAttributeData.id];
|
|
79
|
-
acc[key] = _extractValueFromParent(field, linkValue);
|
|
80
|
-
return acc;
|
|
81
|
-
}
|
|
82
|
-
}, {});
|
|
83
|
-
/**
|
|
84
|
-
* Convert search result to a list of items usable by LibraryItemsList
|
|
85
|
-
*/
|
|
86
|
-
export const manageItems = ({ items, fields }) => {
|
|
87
|
-
const resultItems = items.map((item, index) => {
|
|
88
|
-
const itemFields = manageFields(fields, item);
|
|
89
|
-
const resultItem = {
|
|
90
|
-
index: index + 1,
|
|
91
|
-
whoAmI: { ...item.whoAmI },
|
|
92
|
-
fields: itemFields,
|
|
93
|
-
};
|
|
94
|
-
return resultItem;
|
|
95
|
-
});
|
|
96
|
-
return resultItems;
|
|
97
|
-
};
|
|
98
|
-
//# sourceMappingURL=manageItems.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manageItems.js","sourceRoot":"","sources":["../../../src/components/LibraryItemsList/manageItems.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,eAAe,CAAC;AAG7D,MAAM,uBAAuB,GAAG,CAAC,KAAa,EAAE,SAAc,EAAE,EAAE;IAC9D,MAAM,aAAa,GAAG,KAAK,CAAC,mBAAmB,CAAC,IAAI,KAAK,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3G,OAAO,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,MAAgB,EAAE,IAAwC,EAAE,EAAE,CAChF,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;IACzB,MAAM,GAAG,GAAW,KAAK,CAAC,GAAG,CAAC;IAE9B,IAAI,KAAK,CAAC,MAAM,KAAK,eAAe,CAAC,QAAQ,EAAE,CAAC;QAC5C,MAAM,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAE9C,IAAI,CAAC;YACD,mEAAmE;YACnE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACf,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;gBAC7B,OAAO,GAAG,CAAC;YACf,CAAC;YAED,8DAA8D;YAC9D,MAAM,wBAAwB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAW,CAAC;YACzE,IAAI,wBAAwB,EAAE,CAAC;gBAC3B,GAAG,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,wBAAwB,EAAE,IAAI,CAAC,CAAC;gBAC1D,OAAO,GAAG,CAAC;YACf,CAAC;QACL,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAEjB,GAAG,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;YACnB,OAAO,GAAG,CAAC;QACf,CAAC;IACL,CAAC;IAED,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACjB,KAAK,aAAa,CAAC,WAAW,CAAC;QAC/B,KAAK,aAAa,CAAC,aAAa;YAC5B,IAAI,KAAK,EAAE,mBAAmB,IAAI,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,CAAC,EAAE,CAAC;gBACnE,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;gBAEzD,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;oBAC9C,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;gBAClF,CAAC;gBAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;oBACvB,KAAK,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC;gBAC1B,CAAC;gBAED,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YACrB,CAAC;iBAAM,CAAC;gBACJ,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC9B,CAAC;YACD,OAAO,GAAG,CAAC;QACf,KAAK,aAAa,CAAC,IAAI;YACnB,IAAI,KAAK,EAAE,mBAAmB,IAAI,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,CAAC,EAAE,CAAC;gBACnE,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC5D,CAAC;iBAAM,CAAC;gBACJ,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC9B,CAAC;YAED,OAAO,GAAG,CAAC;QACf,KAAK,aAAa,CAAC,MAAM,CAAC;QAC1B,KAAK,aAAa,CAAC,QAAQ,CAAC;QAC5B;YACI,+CAA+C;YAC/C,IAAI,CAAC,KAAK,EAAE,mBAAmB,EAAE,CAAC;gBAC9B,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;gBAC1B,OAAO,GAAG,CAAC;YACf,CAAC;YAED,2CAA2C;YAC3C,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,CAAC,EAAE,CAAC;gBACtC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;gBAChB,OAAO,GAAG,CAAC;YACf,CAAC;YAED,0DAA0D;YAC1D,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;gBAC9C,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAC1D,uBAAuB,CAAC,KAAK,EAAE,SAAS,CAAC,CAC5C,CAAC;gBACF,OAAO,GAAG,CAAC;YACf,CAAC;YAED,kEAAkE;YAClE,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;YACrD,GAAG,CAAC,GAAG,CAAC,GAAG,uBAAuB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;YAErD,OAAO,GAAG,CAAC;IACnB,CAAC;AACL,CAAC,EAAE,EAAE,CAAC,CAAC;AAOX;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAC,KAAK,EAAE,MAAM,EAAoB,EAAW,EAAE;IACvE,MAAM,WAAW,GAAY,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACnD,MAAM,UAAU,GAAG,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAE9C,MAAM,UAAU,GAAU;YACtB,KAAK,EAAE,KAAK,GAAG,CAAC;YAChB,MAAM,EAAE,EAAC,GAAG,IAAI,CAAC,MAAM,EAAC;YACxB,MAAM,EAAE,UAAU;SACrB,CAAC;QAEF,OAAO,UAAU,CAAC;IACtB,CAAC,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC;AACvB,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport isArray from 'lodash/isArray';\nimport objectPath from 'object-path';\nimport {type IField, type IItem} from '_ui/types/search';\nimport {AttributeFormat, AttributeType} from '_ui/_gqlTypes';\nimport {type IGetRecordsFromLibraryQueryElement} from '_ui/_queries/records/getRecordsFromLibraryQuery';\n\nconst _extractValueFromParent = (field: IField, linkValue: any) => {\n const linkedElement = field.parentAttributeData.type === AttributeType.tree ? linkValue.record : linkValue;\n return linkedElement[field.id];\n};\n\nconst manageFields = (fields: IField[], item: IGetRecordsFromLibraryQueryElement) =>\n fields.reduce((acc, field) => {\n const key: string = field.key;\n\n if (field.format === AttributeFormat.extended) {\n const [attributeId, ...path] = key.split('.');\n\n try {\n // If we ask for the whole extended attribute, just return the json\n if (!path.length) {\n acc[key] = item[attributeId];\n return acc;\n }\n\n // If we ask for a specific field, parse json and return value\n const attributeExtendedContent = JSON.parse(item[attributeId]) as object;\n if (attributeExtendedContent) {\n acc[key] = objectPath.get(attributeExtendedContent, path);\n return acc;\n }\n } catch (e) {\n console.error(e);\n\n acc[key] = 'error';\n return acc;\n }\n }\n\n switch (field.type) {\n case AttributeType.simple_link:\n case AttributeType.advanced_link:\n if (field?.parentAttributeData && item[field.parentAttributeData.id]) {\n let value = item[field.parentAttributeData.id][field.id];\n\n if (isArray(item[field.parentAttributeData.id])) {\n value = item[field.parentAttributeData.id].map(tree => tree.record[field.id]);\n }\n\n if (Array.isArray(value)) {\n value = value.shift();\n }\n\n acc[key] = value;\n } else {\n acc[key] = item[field.id];\n }\n return acc;\n case AttributeType.tree:\n if (field?.parentAttributeData && item[field.parentAttributeData.id]) {\n acc[key] = item[field.parentAttributeData.id][field.id];\n } else {\n acc[key] = item[field.id];\n }\n\n return acc;\n case AttributeType.simple:\n case AttributeType.advanced:\n default:\n // Simple field, not via link or tree attribute\n if (!field?.parentAttributeData) {\n acc[key] = item[field.id];\n return acc;\n }\n\n // Attribute via link or tree, but no value\n if (!item[field.parentAttributeData.id]) {\n acc[key] = null;\n return acc;\n }\n\n // Parent attribute has multiple values, value is an array\n if (isArray(item[field.parentAttributeData.id])) {\n acc[key] = item[field.parentAttributeData.id].map(linkValue =>\n _extractValueFromParent(field, linkValue),\n );\n return acc;\n }\n\n // Parent attribute has not multiple values, value is not an array\n const linkValue = item[field.parentAttributeData.id];\n acc[key] = _extractValueFromParent(field, linkValue);\n\n return acc;\n }\n }, {});\n\ninterface IManageItemsProps {\n items: IGetRecordsFromLibraryQueryElement[];\n fields: IField[];\n}\n\n/**\n * Convert search result to a list of items usable by LibraryItemsList\n */\nexport const manageItems = ({items, fields}: IManageItemsProps): IItem[] => {\n const resultItems: IItem[] = items.map((item, index) => {\n const itemFields = manageFields(fields, item);\n\n const resultItem: IItem = {\n index: index + 1,\n whoAmI: {...item.whoAmI},\n fields: itemFields,\n };\n\n return resultItem;\n });\n\n return resultItems;\n};\n"]}
|
package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type ButtonProps } from 'antd';
|
|
2
|
-
import { type IRecordIdentityWhoAmI } from '../../../../types/records';
|
|
3
|
-
interface IDeactivateRecordBtnProps extends ButtonProps {
|
|
4
|
-
record: IRecordIdentityWhoAmI;
|
|
5
|
-
}
|
|
6
|
-
declare function DeactivateRecordBtn({ record, ...buttonProps }: IDeactivateRecordBtnProps): JSX.Element;
|
|
7
|
-
export default DeactivateRecordBtn;
|
|
@@ -1,38 +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 { DeleteOutlined } from '@ant-design/icons';
|
|
6
|
-
import { App, Button } from 'antd';
|
|
7
|
-
import useSearchReducer from '../../../../components/LibraryItemsList/hooks/useSearchReducer';
|
|
8
|
-
import { SearchActionTypes } from '../../../../components/LibraryItemsList/hooks/useSearchReducer/searchReducer';
|
|
9
|
-
import { useSharedTranslation } from '../../../../hooks/useSharedTranslation';
|
|
10
|
-
import { useDeactivateRecordsMutation } from '../../../../_gqlTypes';
|
|
11
|
-
import { stopEvent } from '../../../../_utils';
|
|
12
|
-
function DeactivateRecordBtn({ record, ...buttonProps }) {
|
|
13
|
-
const { t } = useSharedTranslation();
|
|
14
|
-
const { dispatch: searchDispatch } = useSearchReducer();
|
|
15
|
-
const { modal } = App.useApp();
|
|
16
|
-
const [deactivateRecords] = useDeactivateRecordsMutation({
|
|
17
|
-
variables: {
|
|
18
|
-
libraryId: record.library.id,
|
|
19
|
-
recordsIds: [record.id],
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
const _handleClickConfirm = async () => {
|
|
23
|
-
await deactivateRecords();
|
|
24
|
-
searchDispatch({ type: SearchActionTypes.SET_LOADING, loading: true }); // Refresh the search
|
|
25
|
-
};
|
|
26
|
-
const _handleClick = async (e) => {
|
|
27
|
-
stopEvent(e);
|
|
28
|
-
modal.confirm({
|
|
29
|
-
content: t('records_deactivation.confirm_one'),
|
|
30
|
-
okText: t('global.submit'),
|
|
31
|
-
cancelText: t('global.cancel'),
|
|
32
|
-
onOk: _handleClickConfirm,
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
return (_jsx(Button, { name: "deactivate", icon: _jsx(DeleteOutlined, {}), shape: "circle", ...buttonProps, onClick: _handleClick }));
|
|
36
|
-
}
|
|
37
|
-
export default DeactivateRecordBtn;
|
|
38
|
-
//# sourceMappingURL=DeactivateRecordBtn.js.map
|
package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeactivateRecordBtn.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,GAAG,EAAE,MAAM,EAAmB,MAAM,MAAM,CAAC;AAEnD,OAAO,gBAAgB,MAAM,yDAAyD,CAAC;AACvF,OAAO,EAAC,iBAAiB,EAAC,MAAM,sEAAsE,CAAC;AACvG,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AAMrC,SAAS,mBAAmB,CAAC,EAAC,MAAM,EAAE,GAAG,WAAW,EAA4B;IAC5E,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,EAAC,QAAQ,EAAE,cAAc,EAAC,GAAG,gBAAgB,EAAE,CAAC;IACtD,MAAM,EAAC,KAAK,EAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC;IAE7B,MAAM,CAAC,iBAAiB,CAAC,GAAG,4BAA4B,CAAC;QACrD,SAAS,EAAE;YACP,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;YAC5B,UAAU,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;SAC1B;KACJ,CAAC,CAAC;IAEH,MAAM,mBAAmB,GAAG,KAAK,IAAI,EAAE;QACnC,MAAM,iBAAiB,EAAE,CAAC;QAE1B,cAAc,CAAC,EAAC,IAAI,EAAE,iBAAiB,CAAC,WAAW,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC,qBAAqB;IAC/F,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,KAAK,EAAE,CAAiB,EAAE,EAAE;QAC7C,SAAS,CAAC,CAAC,CAAC,CAAC;QAEb,KAAK,CAAC,OAAO,CAAC;YACV,OAAO,EAAE,CAAC,CAAC,kCAAkC,CAAC;YAC9C,MAAM,EAAE,CAAC,CAAC,eAAe,CAAC;YAC1B,UAAU,EAAE,CAAC,CAAC,eAAe,CAAC;YAC9B,IAAI,EAAE,mBAAmB;SAC5B,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,MAAM,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAE,KAAC,cAAc,KAAG,EAAE,KAAK,EAAC,QAAQ,KAAK,WAAW,EAAE,OAAO,EAAE,YAAY,GAAI,CAChH,CAAC;AACN,CAAC;AAED,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {DeleteOutlined} from '@ant-design/icons';\nimport {App, Button, type ButtonProps} from 'antd';\nimport {type SyntheticEvent} from 'react';\nimport useSearchReducer from '_ui/components/LibraryItemsList/hooks/useSearchReducer/';\nimport {SearchActionTypes} from '_ui/components/LibraryItemsList/hooks/useSearchReducer/searchReducer';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type IRecordIdentityWhoAmI} from '_ui/types/records';\nimport {useDeactivateRecordsMutation} from '_ui/_gqlTypes';\nimport {stopEvent} from '_ui/_utils';\n\ninterface IDeactivateRecordBtnProps extends ButtonProps {\n record: IRecordIdentityWhoAmI;\n}\n\nfunction DeactivateRecordBtn({record, ...buttonProps}: IDeactivateRecordBtnProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n const {dispatch: searchDispatch} = useSearchReducer();\n const {modal} = App.useApp();\n\n const [deactivateRecords] = useDeactivateRecordsMutation({\n variables: {\n libraryId: record.library.id,\n recordsIds: [record.id],\n },\n });\n\n const _handleClickConfirm = async () => {\n await deactivateRecords();\n\n searchDispatch({type: SearchActionTypes.SET_LOADING, loading: true}); // Refresh the search\n };\n\n const _handleClick = async (e: SyntheticEvent) => {\n stopEvent(e);\n\n modal.confirm({\n content: t('records_deactivation.confirm_one'),\n okText: t('global.submit'),\n cancelText: t('global.cancel'),\n onOk: _handleClickConfirm,\n });\n };\n\n return (\n <Button name=\"deactivate\" icon={<DeleteOutlined />} shape=\"circle\" {...buttonProps} onClick={_handleClick} />\n );\n}\n\nexport default DeactivateRecordBtn;\n"]}
|
|
@@ -1,6 +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 DeactivateRecordBtn from './DeactivateRecordBtn';
|
|
5
|
-
export default DeactivateRecordBtn;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/shared/DeactivateRecordBtn/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAExD,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport DeactivateRecordBtn from './DeactivateRecordBtn';\n\nexport default DeactivateRecordBtn;\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type ButtonProps } from 'antd';
|
|
2
|
-
import { type SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
3
|
-
import { type IRecordIdentityWhoAmI } from '../../../types/records';
|
|
4
|
-
import { SelectCellsBtnType } from '../../../components/LibraryItemsList/shared/sharedUtils';
|
|
5
|
-
interface ISelectCellsBtnProps extends ButtonProps {
|
|
6
|
-
record: IRecordIdentityWhoAmI;
|
|
7
|
-
size: SizeType;
|
|
8
|
-
text: string;
|
|
9
|
-
selectionType: SelectCellsBtnType;
|
|
10
|
-
}
|
|
11
|
-
declare function SelectCellsBtn({ selectionType, record, size, text, ...btnProps }: ISelectCellsBtnProps): JSX.Element;
|
|
12
|
-
export default SelectCellsBtn;
|
|
@@ -1,29 +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 { Button } from 'antd';
|
|
6
|
-
import useSearchReducer from '../hooks/useSearchReducer';
|
|
7
|
-
import { SearchActionTypes } from '../hooks/useSearchReducer/searchReducer';
|
|
8
|
-
import { SelectCellsBtnType } from '../../../components/LibraryItemsList/shared/sharedUtils';
|
|
9
|
-
function SelectCellsBtn({ selectionType, record, size, text, ...btnProps }) {
|
|
10
|
-
const { state, dispatch } = useSearchReducer();
|
|
11
|
-
const _handleClick = (e) => {
|
|
12
|
-
e.stopPropagation();
|
|
13
|
-
const selectionData = { id: record.id, library: record.library.id, label: record.label };
|
|
14
|
-
if (selectionType === SelectCellsBtnType.ONLY) {
|
|
15
|
-
dispatch({
|
|
16
|
-
type: SearchActionTypes.SET_SELECTION,
|
|
17
|
-
selected: [selectionData],
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
else if (selectionType === SelectCellsBtnType.ALL) {
|
|
21
|
-
dispatch({
|
|
22
|
-
type: SearchActionTypes.SELECT_ALL,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
return (_jsx(Button, { ...btnProps, "aria-label": "select-records", size: size, onClick: _handleClick, children: text }));
|
|
27
|
-
}
|
|
28
|
-
export default SelectCellsBtn;
|
|
29
|
-
//# sourceMappingURL=SelectCellsBtn.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectCellsBtn.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/shared/SelectCellsBtn.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,MAAM,EAAmB,MAAM,MAAM,CAAC;AAI9C,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAC,iBAAiB,EAAC,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAC,kBAAkB,EAAC,MAAM,oDAAoD,CAAC;AAStF,SAAS,cAAc,CAAC,EAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,QAAQ,EAAuB;IAC1F,MAAM,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAG,gBAAgB,EAAE,CAAC;IAE7C,MAAM,YAAY,GAAG,CAAC,CAAuB,EAAE,EAAE;QAC7C,CAAC,CAAC,eAAe,EAAE,CAAC;QAEpB,MAAM,aAAa,GAAG,EAAC,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAC,CAAC;QAEvF,IAAI,aAAa,KAAK,kBAAkB,CAAC,IAAI,EAAE,CAAC;YAC5C,QAAQ,CAAC;gBACL,IAAI,EAAE,iBAAiB,CAAC,aAAa;gBACrC,QAAQ,EAAE,CAAC,aAAa,CAAC;aAC5B,CAAC,CAAC;QACP,CAAC;aAAM,IAAI,aAAa,KAAK,kBAAkB,CAAC,GAAG,EAAE,CAAC;YAClD,QAAQ,CAAC;gBACL,IAAI,EAAE,iBAAiB,CAAC,UAAU;aACrC,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,MAAM,OAAK,QAAQ,gBAAa,gBAAgB,EAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,YAC9E,IAAI,GACA,CACZ,CAAC;AACN,CAAC;AAED,eAAe,cAAc,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {Button, type ButtonProps} from 'antd';\nimport {type SizeType} from 'antd/lib/config-provider/SizeContext';\nimport React from 'react';\nimport {type IRecordIdentityWhoAmI} from '_ui/types/records';\nimport useSearchReducer from '../hooks/useSearchReducer';\nimport {SearchActionTypes} from '../hooks/useSearchReducer/searchReducer';\nimport {SelectCellsBtnType} from '_ui/components/LibraryItemsList/shared/sharedUtils';\n\ninterface ISelectCellsBtnProps extends ButtonProps {\n record: IRecordIdentityWhoAmI;\n size: SizeType;\n text: string;\n selectionType: SelectCellsBtnType;\n}\n\nfunction SelectCellsBtn({selectionType, record, size, text, ...btnProps}: ISelectCellsBtnProps): JSX.Element {\n const {state, dispatch} = useSearchReducer();\n\n const _handleClick = (e: React.SyntheticEvent) => {\n e.stopPropagation();\n\n const selectionData = {id: record.id, library: record.library.id, label: record.label};\n\n if (selectionType === SelectCellsBtnType.ONLY) {\n dispatch({\n type: SearchActionTypes.SET_SELECTION,\n selected: [selectionData],\n });\n } else if (selectionType === SelectCellsBtnType.ALL) {\n dispatch({\n type: SearchActionTypes.SELECT_ALL,\n });\n }\n };\n\n return (\n <Button {...btnProps} aria-label=\"select-records\" size={size} onClick={_handleClick}>\n {text}\n </Button>\n );\n}\n\nexport default SelectCellsBtn;\n"]}
|
|
@@ -1,9 +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
|
-
export var SelectCellsBtnType;
|
|
5
|
-
(function (SelectCellsBtnType) {
|
|
6
|
-
SelectCellsBtnType["ONLY"] = "ONLY";
|
|
7
|
-
SelectCellsBtnType["ALL"] = "ALL";
|
|
8
|
-
})(SelectCellsBtnType || (SelectCellsBtnType = {}));
|
|
9
|
-
//# sourceMappingURL=sharedUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sharedUtils.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/shared/sharedUtils.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,mCAAa,CAAA;IACb,iCAAW,CAAA;AACf,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nexport enum SelectCellsBtnType {\n ONLY = 'ONLY',\n ALL = 'ALL',\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getActiveFieldValues.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.ts"],"names":[],"mappings":"AAKA,eAAe,CAAmB,KAA4C,EAAE,EAAE,CAC9E,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type ICommonFieldsReducerState} from '../../_types';\n\nexport default <ValuesType = any>(state: ICommonFieldsReducerState<ValuesType>) =>\n state.values[state.activeScope].values;\n"]}
|
package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './getActiveFieldValues';
|
package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.js
DELETED
|
@@ -1,5 +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
|
-
export { default } from './getActiveFieldValues';
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nexport {default} from './getActiveFieldValues';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './isCurrentVersion';
|
|
@@ -1,5 +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
|
-
export { default } from './isCurrentVersion';
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,oBAAoB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nexport {default} from './isCurrentVersion';\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type IValueVersion } from '../../../../../types/values';
|
|
2
|
-
/**
|
|
3
|
-
* Check if given version matches the reference version. As reference version might contains
|
|
4
|
-
* trees that are not in the given version, we only check the nodes of given version against reference version.
|
|
5
|
-
*/
|
|
6
|
-
declare const _default: (referenceVersion: IValueVersion, valueVersion: IValueVersion) => boolean;
|
|
7
|
-
export default _default;
|
package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check if given version matches the reference version. As reference version might contains
|
|
3
|
-
* trees that are not in the given version, we only check the nodes of given version against reference version.
|
|
4
|
-
*/
|
|
5
|
-
export default (referenceVersion, valueVersion) => {
|
|
6
|
-
if (referenceVersion === valueVersion) {
|
|
7
|
-
// Mostly for the case that both are null or undefined
|
|
8
|
-
return true;
|
|
9
|
-
}
|
|
10
|
-
if (!referenceVersion || !valueVersion) {
|
|
11
|
-
return false;
|
|
12
|
-
}
|
|
13
|
-
for (const versionTreeId of Object.keys(valueVersion)) {
|
|
14
|
-
if (referenceVersion?.[versionTreeId]?.id !== valueVersion[versionTreeId].id) {
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return true;
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=isCurrentVersion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isCurrentVersion.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAe,CAAC,gBAA+B,EAAE,YAA2B,EAAE,EAAE;IAC5E,IAAI,gBAAgB,KAAK,YAAY,EAAE,CAAC;QACpC,sDAAsD;QACtD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,CAAC,gBAAgB,IAAI,CAAC,YAAY,EAAE,CAAC;QACrC,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,KAAK,MAAM,aAAa,IAAI,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;QACpD,IAAI,gBAAgB,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE,KAAK,YAAY,CAAC,aAAa,CAAC,CAAC,EAAE,EAAE,CAAC;YAC3E,OAAO,KAAK,CAAC;QACjB,CAAC;IACL,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {type IValueVersion} from '_ui/types/values';\n\n/**\n * Check if given version matches the reference version. As reference version might contains\n * trees that are not in the given version, we only check the nodes of given version against reference version.\n */\nexport default (referenceVersion: IValueVersion, valueVersion: IValueVersion) => {\n if (referenceVersion === valueVersion) {\n // Mostly for the case that both are null or undefined\n return true;\n }\n\n if (!referenceVersion || !valueVersion) {\n return false;\n }\n\n for (const versionTreeId of Object.keys(valueVersion)) {\n if (referenceVersion?.[versionTreeId]?.id !== valueVersion[versionTreeId].id) {\n return false;\n }\n }\n\n return true;\n};\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type RecordFormElement } from '../../../../hooks/useGetRecordForm';
|
|
2
|
-
/**
|
|
3
|
-
* Hook to manage tab visibility and tab click events in the EditRecordContent component
|
|
4
|
-
* @returns Object containing the visible tab ID and a handler for tab click events
|
|
5
|
-
* @param elements
|
|
6
|
-
*/
|
|
7
|
-
export declare const useTabManagement: (elements: RecordFormElement[]) => {
|
|
8
|
-
tabIdVisible: string;
|
|
9
|
-
handleTabClick: (tabIdClicked: string) => void;
|
|
10
|
-
};
|
|
11
|
-
export default useTabManagement;
|
|
@@ -1,35 +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 { useState, useEffect } from 'react';
|
|
5
|
-
/**
|
|
6
|
-
* Hook to manage tab visibility and tab click events in the EditRecordContent component
|
|
7
|
-
* @returns Object containing the visible tab ID and a handler for tab click events
|
|
8
|
-
* @param elements
|
|
9
|
-
*/
|
|
10
|
-
export const useTabManagement = (elements) => {
|
|
11
|
-
// State to track the currently visible tab ID
|
|
12
|
-
const [tabIdVisible, setTabIdVisible] = useState(undefined);
|
|
13
|
-
// Initialize the visible tab ID when the record form is loaded
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
// When we load the record form, get the ID of the first tab
|
|
16
|
-
const firstTabId = elements?.find(e => e.uiElementType === 'tabs')?.settings?.find(s => s.key === 'tabs')
|
|
17
|
-
?.value[0]?.id;
|
|
18
|
-
if (firstTabId) {
|
|
19
|
-
setTabIdVisible(firstTabId);
|
|
20
|
-
}
|
|
21
|
-
}, [elements]);
|
|
22
|
-
/**
|
|
23
|
-
* Handler for tab click events
|
|
24
|
-
* @param tabIdClicked The ID of the tab that was clicked
|
|
25
|
-
*/
|
|
26
|
-
const handleTabClick = (tabIdClicked) => {
|
|
27
|
-
setTabIdVisible(tabIdClicked);
|
|
28
|
-
};
|
|
29
|
-
return {
|
|
30
|
-
tabIdVisible,
|
|
31
|
-
handleTabClick,
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export default useTabManagement;
|
|
35
|
-
//# sourceMappingURL=useTabManagement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTabManagement.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordContent/hooks/useTabManagement.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAG1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAA6B,EAAE,EAAE;IAC9D,8CAA8C;IAC9C,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAqB,SAAS,CAAC,CAAC;IAEhF,+DAA+D;IAC/D,SAAS,CAAC,GAAG,EAAE;QACX,4DAA4D;QAC5D,MAAM,UAAU,GAAG,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,KAAK,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,MAAM,CAAC;YACrG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAEnB,IAAI,UAAU,EAAE,CAAC;YACb,eAAe,CAAC,UAAU,CAAC,CAAC;QAChC,CAAC;IACL,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf;;;OAGG;IACH,MAAM,cAAc,GAAG,CAAC,YAAoB,EAAE,EAAE;QAC5C,eAAe,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC,CAAC;IAEF,OAAO;QACH,YAAY;QACZ,cAAc;KACjB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {useState, useEffect} from 'react';\nimport {IRecordForm, type RecordFormElement} from '_ui/hooks/useGetRecordForm';\n\n/**\n * Hook to manage tab visibility and tab click events in the EditRecordContent component\n * @returns Object containing the visible tab ID and a handler for tab click events\n * @param elements\n */\nexport const useTabManagement = (elements: RecordFormElement[]) => {\n // State to track the currently visible tab ID\n const [tabIdVisible, setTabIdVisible] = useState<string | undefined>(undefined);\n\n // Initialize the visible tab ID when the record form is loaded\n useEffect(() => {\n // When we load the record form, get the ID of the first tab\n const firstTabId = elements?.find(e => e.uiElementType === 'tabs')?.settings?.find(s => s.key === 'tabs')\n ?.value[0]?.id;\n\n if (firstTabId) {\n setTabIdVisible(firstTabId);\n }\n }, [elements]);\n\n /**\n * Handler for tab click events\n * @param tabIdClicked The ID of the tab that was clicked\n */\n const handleTabClick = (tabIdClicked: string) => {\n setTabIdVisible(tabIdClicked);\n };\n\n return {\n tabIdVisible,\n handleTabClick,\n };\n};\n\nexport default useTabManagement;\n"]}
|
|
@@ -1,6 +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 linkFieldReducer from './linkFieldReducer';
|
|
5
|
-
export default linkFieldReducer;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport linkFieldReducer from './linkFieldReducer';\n\nexport default linkFieldReducer;\n"]}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { VersionFieldScope, type FormElement, type ICommonFieldsReducerState } from '../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
2
|
-
import { type RecordFormElementsValueLinkValue, type RecordFormElementsValueTreeValue } from '../../../../../hooks/useGetRecordForm/useGetRecordForm';
|
|
3
|
-
import { type IRecordIdentityWhoAmI } from '../../../../../types/records';
|
|
4
|
-
import { type IValueVersion } from '../../../../../types/values';
|
|
5
|
-
type AllowedValuesType = RecordFormElementsValueLinkValue | RecordFormElementsValueTreeValue;
|
|
6
|
-
export interface ILinkFieldState<ValuesType> extends ICommonFieldsReducerState<ValuesType[]> {
|
|
7
|
-
errorMessage: string | string[];
|
|
8
|
-
isValuesAddVisible: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare enum LinkFieldReducerActionsType {
|
|
11
|
-
ADD_VALUES = "ADD_VALUES",
|
|
12
|
-
DELETE_VALUE = "DELETE_VALUE",
|
|
13
|
-
DELETE_ALL_VALUES = "DELETE_ALL_VALUES",
|
|
14
|
-
SET_ERROR_MESSAGE = "SET_ERROR_MESSAGE",
|
|
15
|
-
CLEAR_ERROR_MESSAGE = "CLEAR_ERROR_MESSAGE",
|
|
16
|
-
SET_IS_VALUES_ADD_VISIBLE = "SET_IS_VALUES_ADD_VISIBLE",
|
|
17
|
-
CHANGE_ACTIVE_SCOPE = "CHANGE_ACTIVE_SCOPE",
|
|
18
|
-
REFRESH_VALUES = "REFRESH_VALUES"
|
|
19
|
-
}
|
|
20
|
-
export type LinkFieldReducerActions<ValuesType extends AllowedValuesType> = {
|
|
21
|
-
type: LinkFieldReducerActionsType.ADD_VALUES;
|
|
22
|
-
values: ValuesType[];
|
|
23
|
-
} | {
|
|
24
|
-
type: LinkFieldReducerActionsType.DELETE_VALUE;
|
|
25
|
-
idValue: string;
|
|
26
|
-
} | {
|
|
27
|
-
type: LinkFieldReducerActionsType.DELETE_ALL_VALUES;
|
|
28
|
-
} | {
|
|
29
|
-
type: LinkFieldReducerActionsType.SET_ERROR_MESSAGE;
|
|
30
|
-
errorMessage: string | string[];
|
|
31
|
-
} | {
|
|
32
|
-
type: LinkFieldReducerActionsType.CLEAR_ERROR_MESSAGE;
|
|
33
|
-
} | {
|
|
34
|
-
type: LinkFieldReducerActionsType.SET_IS_VALUES_ADD_VISIBLE;
|
|
35
|
-
isValuesAddVisible: boolean;
|
|
36
|
-
} | {
|
|
37
|
-
type: LinkFieldReducerActionsType.CHANGE_ACTIVE_SCOPE;
|
|
38
|
-
scope: VersionFieldScope;
|
|
39
|
-
} | {
|
|
40
|
-
type: LinkFieldReducerActionsType.REFRESH_VALUES;
|
|
41
|
-
values: ValuesType[];
|
|
42
|
-
formVersion: IValueVersion;
|
|
43
|
-
};
|
|
44
|
-
export declare const virginState: ILinkFieldState<AllowedValuesType>;
|
|
45
|
-
export declare const computeInitialState: <ValuesType extends AllowedValuesType>(params: {
|
|
46
|
-
element: FormElement<unknown>;
|
|
47
|
-
record: IRecordIdentityWhoAmI;
|
|
48
|
-
isRecordReadOnly: boolean;
|
|
49
|
-
formVersion: IValueVersion;
|
|
50
|
-
}) => ILinkFieldState<ValuesType>;
|
|
51
|
-
declare const linkFieldReducer: <ValuesType extends AllowedValuesType>(state: ILinkFieldState<ValuesType>, action: LinkFieldReducerActions<ValuesType>) => ILinkFieldState<ValuesType>;
|
|
52
|
-
export default linkFieldReducer;
|