@leav/ui 1.8.0 → 1.9.0-0dfef3bb
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 +452 -172
- package/dist/_gqlTypes/index.js +259 -87
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/attributes/attributeDetailsFragment.js +3 -0
- package/dist/_queries/attributes/attributeDetailsFragment.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.js +3 -4
- 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/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 +5 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +17 -8
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.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/_types.d.ts +12 -1
- package/dist/components/Filters/_types.js +2 -1
- package/dist/components/Filters/_types.js.map +1 -1
- package/dist/components/Filters/context/filtersReducer.js +3 -2
- package/dist/components/Filters/context/filtersReducer.js.map +1 -1
- 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/CommonFilterItem.js +2 -2
- package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js +1 -1
- package/dist/components/Filters/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js +5 -1
- package/dist/components/Filters/filter-items/filter-type/FilterDropdownContent.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js +3 -3
- package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/_types.d.ts +6 -1
- package/dist/components/Filters/filter-items/filter-type/_types.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.d.ts +2 -0
- package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.js +106 -0
- package/dist/components/Filters/filter-items/filter-type/smart-filter/SmartFilterAttributeDropdown.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.d.ts +25 -0
- package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.js +59 -0
- package/dist/components/Filters/filter-items/filter-type/smart-filter/useGetSmartFilterData.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.d.ts +5 -0
- package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.js +25 -0
- package/dist/components/Filters/filter-items/filter-type/smart-filter/useSmartFilerSearch.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +5 -4
- 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/Filters/filter-items/{EmptyValueCheckbox.d.ts → shared/EmptyValueCheckbox.d.ts} +2 -1
- package/dist/components/Filters/filter-items/shared/EmptyValueCheckbox.js +20 -0
- package/dist/components/Filters/filter-items/shared/EmptyValueCheckbox.js.map +1 -0
- package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.d.ts +5 -0
- package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.js +18 -0
- package/dist/components/Filters/filter-items/shared/FilterTreeNodeTitle.js.map +1 -0
- package/dist/components/Filters/filter-items/{SelectAllCheckbox.js → shared/SelectAllCheckbox.js} +1 -1
- package/dist/components/Filters/filter-items/shared/SelectAllCheckbox.js.map +1 -0
- package/dist/components/Filters/prepareFiltersForRequest.js +10 -5
- package/dist/components/Filters/prepareFiltersForRequest.js.map +1 -1
- package/dist/components/Filters/useFilters.d.ts +542 -0
- package/dist/components/Filters/useTransformFilters.js +3 -0
- package/dist/components/Filters/useTransformFilters.js.map +1 -1
- package/dist/components/Notifications/hooks/useNotificationSubscription.d.ts +9 -3
- package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +3 -3
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +4 -0
- 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/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/_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 -115
- 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/useGetLibraryDetailExtendedQuery/useGetLibraryDetailExtendedQuery.d.ts +1 -1
- package/dist/hooks/useGetRecordUpdatesSubscription/useGetRecordUpdatesSubscription.d.ts +9 -3
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/schema.d.ts +2 -2
- package/dist/hooks/useIFrameMessenger/schema.js +1 -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/locales/en/shared.json +11 -4
- package/dist/locales/fr/shared.json +11 -4
- package/package.json +12 -21
- 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/Filters/filter-items/EmptyValueCheckbox.js +0 -16
- package/dist/components/Filters/filter-items/EmptyValueCheckbox.js.map +0 -1
- package/dist/components/Filters/filter-items/SelectAllCheckbox.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/Filters/filter-items/{SelectAllCheckbox.d.ts → shared/SelectAllCheckbox.d.ts} +0 -0
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { useQuery } from '@apollo/client';
|
|
6
|
-
import { useEffect, useMemo, useReducer } from 'react';
|
|
7
|
-
import styled from 'styled-components';
|
|
8
|
-
import { Loading } from '../../../components';
|
|
9
|
-
import { SearchContext } from '../../../components/LibraryItemsList/hooks/useSearchReducer/searchContext';
|
|
10
|
-
import searchReducer, { initialSearchState, SearchActionTypes, } from '../../../components/LibraryItemsList/hooks/useSearchReducer/searchReducer';
|
|
11
|
-
import { useGetRecordUpdatesSubscription, useLang } from '../../../hooks';
|
|
12
|
-
import { SearchMode } from '../../../types/search';
|
|
13
|
-
import { useSaveUserDataMutation } from '../../../_gqlTypes';
|
|
14
|
-
import { getRecordsFromLibraryQuery, } from '../../../_queries/records/getRecordsFromLibraryQuery';
|
|
15
|
-
import { objectValueVersionToArray } from '../../../_utils';
|
|
16
|
-
import { getRequestFromFilters } from '../../../_utils/getRequestFromFilter';
|
|
17
|
-
import { getSelectedViewKey } from '../constants';
|
|
18
|
-
import DisplayTypeSelector from '../DisplayTypeSelector';
|
|
19
|
-
import extractAttributesFromLibrary from '../helpers/extractAttributesFromLibrary';
|
|
20
|
-
import getFieldFromKey from '../helpers/getFieldFromKey';
|
|
21
|
-
import LibraryItemsListEmpty from '../LibraryItemsListEmpty';
|
|
22
|
-
import { manageItems } from '../manageItems';
|
|
23
|
-
import MenuItemList from '../MenuItemList';
|
|
24
|
-
import MenuItemListSelected from '../MenuItemListSelected';
|
|
25
|
-
import Sidebar from '../Sidebar';
|
|
26
|
-
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
27
|
-
import { KitNotification } from 'aristid-ds';
|
|
28
|
-
import { SUCCESS_NOTIFICATION_DURATION } from '../../../constants';
|
|
29
|
-
const MenuWrapper = styled.div `
|
|
30
|
-
border-bottom: 1px solid rgb(235, 237, 240);
|
|
31
|
-
padding: 0 1rem;
|
|
32
|
-
height: 4rem;
|
|
33
|
-
|
|
34
|
-
display: flex;
|
|
35
|
-
align-content: center;
|
|
36
|
-
justify-content: space-around;
|
|
37
|
-
`;
|
|
38
|
-
const panelSize = '22.5rem';
|
|
39
|
-
const Wrapper = styled.div `
|
|
40
|
-
display: grid;
|
|
41
|
-
|
|
42
|
-
${({ $showSide }) => $showSide
|
|
43
|
-
? `
|
|
44
|
-
grid-template-columns: ${panelSize} calc(100% - ${panelSize});
|
|
45
|
-
grid-template-rows: 92% auto;
|
|
46
|
-
grid-template-areas:
|
|
47
|
-
'side data'
|
|
48
|
-
'side pagination';`
|
|
49
|
-
: `
|
|
50
|
-
grid-template-columns: auto;
|
|
51
|
-
grid-template-rows: 92% auto;
|
|
52
|
-
grid-template-areas:
|
|
53
|
-
'data'
|
|
54
|
-
'pagination';`}
|
|
55
|
-
|
|
56
|
-
height: calc(100vh - 7rem);
|
|
57
|
-
position: relative;
|
|
58
|
-
overflow: auto;
|
|
59
|
-
`;
|
|
60
|
-
const LibraryItemsListContent = ({ selectionMode, library, defaultView, showTransparency, onSelectChange, style, }) => {
|
|
61
|
-
const { lang } = useLang();
|
|
62
|
-
const { t } = useSharedTranslation();
|
|
63
|
-
const defaultAttributes = extractAttributesFromLibrary(library);
|
|
64
|
-
const _getFieldsFromView = (view) => (view.attributes ?? []).reduce((acc, fieldKey) => {
|
|
65
|
-
const field = getFieldFromKey(fieldKey, library, defaultAttributes, lang);
|
|
66
|
-
return field ? [...acc, field] : acc;
|
|
67
|
-
}, []);
|
|
68
|
-
const [searchState, searchDispatch] = useReducer(searchReducer, {
|
|
69
|
-
...initialSearchState,
|
|
70
|
-
library,
|
|
71
|
-
loading: true,
|
|
72
|
-
attributes: defaultAttributes,
|
|
73
|
-
trees: library.linkedTrees,
|
|
74
|
-
fields: _getFieldsFromView(defaultView),
|
|
75
|
-
filters: defaultView.filters,
|
|
76
|
-
sort: defaultView.sort,
|
|
77
|
-
display: defaultView.display,
|
|
78
|
-
view: {
|
|
79
|
-
current: defaultView,
|
|
80
|
-
reload: false,
|
|
81
|
-
sync: true,
|
|
82
|
-
},
|
|
83
|
-
lang,
|
|
84
|
-
valuesVersions: defaultView.valuesVersions,
|
|
85
|
-
showTransparency,
|
|
86
|
-
mode: selectionMode ? SearchMode.SELECT : SearchMode.SEARCH,
|
|
87
|
-
});
|
|
88
|
-
useGetRecordUpdatesSubscription({ libraries: [library.id] });
|
|
89
|
-
const [updateSelectedViewMutation] = useSaveUserDataMutation();
|
|
90
|
-
const selectedViewKey = getSelectedViewKey(library.id);
|
|
91
|
-
const _applyResults = (result) => {
|
|
92
|
-
const itemsFromQuery = result?.data?.records?.list ?? [];
|
|
93
|
-
const newRecords = manageItems({
|
|
94
|
-
items: itemsFromQuery,
|
|
95
|
-
fields: searchState.fields,
|
|
96
|
-
});
|
|
97
|
-
searchDispatch({
|
|
98
|
-
type: SearchActionTypes.UPDATE_RESULT,
|
|
99
|
-
records: newRecords,
|
|
100
|
-
errors: result?.errors,
|
|
101
|
-
totalCount: result?.data?.records?.totalCount ?? searchState.totalCount,
|
|
102
|
-
});
|
|
103
|
-
};
|
|
104
|
-
const _getVersionForRequest = () => searchState.valuesVersions
|
|
105
|
-
? objectValueVersionToArray(searchState.valuesVersions).filter(v => !!v.treeNodeId)
|
|
106
|
-
: [];
|
|
107
|
-
// We're using a useMemo here to prevent query being fired on every change of searchState.
|
|
108
|
-
// Subsequent search will be triggered on user request and are handled elsewhere.
|
|
109
|
-
// We were previously using the skip property of useQuery but it was causing issues with data update
|
|
110
|
-
const variables = useMemo(() => ({
|
|
111
|
-
library: library.id,
|
|
112
|
-
limit: searchState.pagination,
|
|
113
|
-
offset: searchState.offset,
|
|
114
|
-
filters: getRequestFromFilters(searchState.filters),
|
|
115
|
-
sort: searchState.sort?.[0] ?? null,
|
|
116
|
-
fullText: searchState.fullText,
|
|
117
|
-
version: _getVersionForRequest(),
|
|
118
|
-
}), []);
|
|
119
|
-
const getRecordsQueryResult = useQuery(getRecordsFromLibraryQuery(searchState.fields, !searchState.offset), {
|
|
120
|
-
fetchPolicy: 'network-only',
|
|
121
|
-
errorPolicy: 'all',
|
|
122
|
-
variables,
|
|
123
|
-
});
|
|
124
|
-
const { loading: getRecordsLoading, data: searchData, error: searchError, called: searchCalled, fetchMore: getRecordsFetchMore, } = getRecordsQueryResult;
|
|
125
|
-
const _fetchRecords = async () => {
|
|
126
|
-
const queryFilters = getRequestFromFilters(searchState.filters);
|
|
127
|
-
const currentVariables = {
|
|
128
|
-
library: library.id,
|
|
129
|
-
limit: searchState.pagination,
|
|
130
|
-
offset: searchState.offset,
|
|
131
|
-
filters: queryFilters,
|
|
132
|
-
sort: searchState.sort?.[0] ?? null,
|
|
133
|
-
fullText: searchState.fullText,
|
|
134
|
-
version: _getVersionForRequest(),
|
|
135
|
-
};
|
|
136
|
-
// Records have already been fetched, we use fetchMore to make sure
|
|
137
|
-
// we request the right fields by passing in a whole new query
|
|
138
|
-
const results = await getRecordsFetchMore({
|
|
139
|
-
query: getRecordsFromLibraryQuery(searchState.fields, !searchState.offset),
|
|
140
|
-
variables: currentVariables,
|
|
141
|
-
//@ts-expect-error errorPolicy is applied at runtime even though it's not in the types
|
|
142
|
-
errorPolicy: 'all',
|
|
143
|
-
});
|
|
144
|
-
// We have to call applyResults here because onCompleted is not called when fetchMore is used
|
|
145
|
-
_applyResults(results);
|
|
146
|
-
};
|
|
147
|
-
const isLoading = getRecordsLoading || searchState.view.reload || searchState.loading;
|
|
148
|
-
useEffect(() => {
|
|
149
|
-
if (searchData || searchError) {
|
|
150
|
-
_applyResults(getRecordsQueryResult);
|
|
151
|
-
}
|
|
152
|
-
}, [searchData, searchError]);
|
|
153
|
-
useEffect(() => {
|
|
154
|
-
if (searchState.loading && searchCalled) {
|
|
155
|
-
_fetchRecords();
|
|
156
|
-
}
|
|
157
|
-
}, [searchState.loading]);
|
|
158
|
-
/**
|
|
159
|
-
* Called when current view changes. In charge of refetching record and saving last used view
|
|
160
|
-
*/
|
|
161
|
-
useEffect(() => {
|
|
162
|
-
if (!searchState.view.reload) {
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
_fetchRecords();
|
|
166
|
-
updateSelectedViewMutation({
|
|
167
|
-
variables: {
|
|
168
|
-
key: selectedViewKey,
|
|
169
|
-
value: searchState.view.current.id,
|
|
170
|
-
global: false,
|
|
171
|
-
},
|
|
172
|
-
});
|
|
173
|
-
searchDispatch({ type: SearchActionTypes.SET_VIEW_RELOAD, reload: false });
|
|
174
|
-
}, [selectedViewKey, updateSelectedViewMutation, searchState.view, searchState.fields, searchDispatch, library]);
|
|
175
|
-
/**
|
|
176
|
-
* Calls onSelectChange when selection changes
|
|
177
|
-
*/
|
|
178
|
-
useEffect(() => {
|
|
179
|
-
if (!onSelectChange) {
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
onSelectChange(searchState.selection, searchState.selection.allSelected ? searchState.filters : null);
|
|
183
|
-
}, [searchState.selection]);
|
|
184
|
-
const _reload = () => {
|
|
185
|
-
searchDispatch({ type: SearchActionTypes.SET_LOADING, loading: true });
|
|
186
|
-
};
|
|
187
|
-
const _notifyNewCreation = () => {
|
|
188
|
-
_reload();
|
|
189
|
-
KitNotification.success({
|
|
190
|
-
message: t('items_list.created_in_success.message'),
|
|
191
|
-
description: '',
|
|
192
|
-
duration: SUCCESS_NOTIFICATION_DURATION,
|
|
193
|
-
closable: true,
|
|
194
|
-
});
|
|
195
|
-
};
|
|
196
|
-
// If some elements are selected and the selection type is search, show the selection Menu
|
|
197
|
-
const menuSelectedActive = !!searchState.selection.selected.length || searchState.selection.allSelected;
|
|
198
|
-
return (_jsxs(SearchContext.Provider, { value: { state: searchState, dispatch: searchDispatch }, children: [_jsxs(MenuWrapper, { children: [_jsx(MenuItemList, { refetch: _reload, notifyNewCreation: _notifyNewCreation, library: library }), _jsx(MenuItemListSelected, { active: menuSelectedActive })] }), _jsxs(Wrapper, { "$showSide": searchState.sideBar.visible, className: searchState.sideBar.visible ? 'wrapper-open' : 'wrapper-close', style: style, children: [_jsx(Sidebar, {}), isLoading && _jsx(Loading, {}), !isLoading &&
|
|
199
|
-
(!searchState.records.length ? (_jsx(LibraryItemsListEmpty, { notifyNewCreation: _notifyNewCreation })) : (_jsx(DisplayTypeSelector, {})))] })] }));
|
|
200
|
-
};
|
|
201
|
-
export default LibraryItemsListContent;
|
|
202
|
-
//# sourceMappingURL=LibraryItemsListContent.js.map
|
package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LibraryItemsListContent.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAyB,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAyB,SAAS,EAAE,OAAO,EAAE,UAAU,EAAC,MAAM,OAAO,CAAC;AAC7E,OAAO,MAAwB,MAAM,mBAAmB,CAAC;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,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,eAAe,EACzE,KAAK,EAAE,KAAK,aAEZ,KAAC,OAAO,KAAG,EACV,SAAS,IAAI,KAAC,OAAO,KAAG,EACxB,CAAC,SAAS;wBACP,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAC3B,KAAC,qBAAqB,IAAC,iBAAiB,EAAE,kBAAkB,GAAI,CACnE,CAAC,CAAC,CAAC,CACA,KAAC,mBAAmB,KAAG,CAC1B,CAAC,IACA,IACW,CAC5B,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,uBAAuB,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 ApolloQueryResult, useQuery} from '@apollo/client';\nimport {type FunctionComponent, useEffect, useMemo, useReducer} from 'react';\nimport styled, {type CSSObject} from 'styled-components';\nimport {Loading} from '_ui/components';\nimport {SearchContext} from '_ui/components/LibraryItemsList/hooks/useSearchReducer/searchContext';\nimport searchReducer, {\n initialSearchState,\n SearchActionTypes,\n} from '_ui/components/LibraryItemsList/hooks/useSearchReducer/searchReducer';\nimport {type ISearchRecord} from '_ui/components/LibraryItemsList/hooks/useSearchReducer/_types';\nimport {useGetRecordUpdatesSubscription, useLang} from '_ui/hooks';\nimport {type IField, type IFilter, type ISearchSelection, SearchMode} from '_ui/types/search';\nimport {type IView} from '_ui/types/views';\nimport {useSaveUserDataMutation} from '_ui/_gqlTypes';\nimport {type ILibraryDetailExtended} from '_ui/_queries/libraries/getLibraryDetailExtendQuery';\nimport {\n getRecordsFromLibraryQuery,\n type IGetRecordsFromLibraryQuery,\n type IGetRecordsFromLibraryQueryVariables,\n} from '_ui/_queries/records/getRecordsFromLibraryQuery';\nimport {objectValueVersionToArray} from '_ui/_utils';\nimport {getRequestFromFilters} from '_ui/_utils/getRequestFromFilter';\nimport {getSelectedViewKey} from '../constants';\nimport DisplayTypeSelector from '../DisplayTypeSelector';\nimport extractAttributesFromLibrary from '../helpers/extractAttributesFromLibrary';\nimport getFieldFromKey from '../helpers/getFieldFromKey';\nimport LibraryItemsListEmpty from '../LibraryItemsListEmpty';\nimport {manageItems} from '../manageItems';\nimport MenuItemList from '../MenuItemList';\nimport MenuItemListSelected from '../MenuItemListSelected';\nimport Sidebar from '../Sidebar';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {KitNotification} from 'aristid-ds';\nimport {SUCCESS_NOTIFICATION_DURATION} from '_ui/constants';\n\nconst MenuWrapper = styled.div`\n border-bottom: 1px solid rgb(235, 237, 240);\n padding: 0 1rem;\n height: 4rem;\n\n display: flex;\n align-content: center;\n justify-content: space-around;\n`;\n\ninterface IWrapperProps {\n $showSide: boolean;\n style?: CSSObject;\n}\n\nconst panelSize = '22.5rem';\nconst Wrapper = styled.div<IWrapperProps>`\n display: grid;\n\n ${({$showSide}) =>\n $showSide\n ? `\n grid-template-columns: ${panelSize} calc(100% - ${panelSize});\n grid-template-rows: 92% auto;\n grid-template-areas:\n 'side data'\n 'side pagination';`\n : `\n grid-template-columns: auto;\n grid-template-rows: 92% auto;\n grid-template-areas:\n 'data'\n 'pagination';`}\n\n height: calc(100vh - 7rem);\n position: relative;\n overflow: auto;\n`;\n\ninterface ILibraryItemsListContentProps {\n library: ILibraryDetailExtended;\n defaultView: IView;\n selectionMode?: boolean;\n style?: CSSObject;\n showTransparency?: boolean;\n mode?: SearchMode;\n onSelectChange?: (selection: ISearchSelection, filters?: IFilter[]) => void;\n}\n\nconst LibraryItemsListContent: FunctionComponent<ILibraryItemsListContentProps> = ({\n selectionMode,\n library,\n defaultView,\n showTransparency,\n onSelectChange,\n style,\n}) => {\n const {lang} = useLang();\n const {t} = useSharedTranslation();\n\n const defaultAttributes = extractAttributesFromLibrary(library);\n\n const _getFieldsFromView = (view: IView): IField[] =>\n (view.attributes ?? []).reduce((acc, fieldKey) => {\n const field = getFieldFromKey(fieldKey, library, defaultAttributes, lang);\n return field ? [...acc, field] : acc;\n }, []);\n\n const [searchState, searchDispatch] = useReducer(searchReducer, {\n ...initialSearchState,\n library,\n loading: true,\n attributes: defaultAttributes,\n trees: library.linkedTrees,\n fields: _getFieldsFromView(defaultView),\n filters: defaultView.filters,\n sort: defaultView.sort,\n display: defaultView.display,\n view: {\n current: defaultView,\n reload: false,\n sync: true,\n },\n lang,\n valuesVersions: defaultView.valuesVersions,\n showTransparency,\n mode: selectionMode ? SearchMode.SELECT : SearchMode.SEARCH,\n });\n\n useGetRecordUpdatesSubscription({libraries: [library.id]});\n\n const [updateSelectedViewMutation] = useSaveUserDataMutation();\n const selectedViewKey = getSelectedViewKey(library.id);\n\n const _applyResults = (result: ApolloQueryResult<IGetRecordsFromLibraryQuery>) => {\n const itemsFromQuery = result?.data?.records?.list ?? [];\n\n const newRecords: ISearchRecord[] = manageItems({\n items: itemsFromQuery,\n fields: searchState.fields,\n });\n\n searchDispatch({\n type: SearchActionTypes.UPDATE_RESULT,\n records: newRecords,\n errors: result?.errors,\n totalCount: result?.data?.records?.totalCount ?? searchState.totalCount,\n });\n };\n\n const _getVersionForRequest = () =>\n searchState.valuesVersions\n ? objectValueVersionToArray(searchState.valuesVersions).filter(v => !!v.treeNodeId)\n : [];\n\n // We're using a useMemo here to prevent query being fired on every change of searchState.\n // Subsequent search will be triggered on user request and are handled elsewhere.\n // We were previously using the skip property of useQuery but it was causing issues with data update\n const variables = useMemo(\n () => ({\n library: library.id,\n limit: searchState.pagination,\n offset: searchState.offset,\n filters: getRequestFromFilters(searchState.filters),\n sort: searchState.sort?.[0] ?? null,\n fullText: searchState.fullText,\n version: _getVersionForRequest(),\n }),\n [],\n );\n\n const getRecordsQueryResult = useQuery<IGetRecordsFromLibraryQuery, IGetRecordsFromLibraryQueryVariables>(\n getRecordsFromLibraryQuery(searchState.fields, !searchState.offset),\n {\n fetchPolicy: 'network-only',\n errorPolicy: 'all',\n variables,\n },\n );\n const {\n loading: getRecordsLoading,\n data: searchData,\n error: searchError,\n called: searchCalled,\n fetchMore: getRecordsFetchMore,\n } = getRecordsQueryResult;\n\n const _fetchRecords = async () => {\n const queryFilters = getRequestFromFilters(searchState.filters);\n\n const currentVariables = {\n library: library.id,\n limit: searchState.pagination,\n offset: searchState.offset,\n filters: queryFilters,\n sort: searchState.sort?.[0] ?? null,\n fullText: searchState.fullText,\n version: _getVersionForRequest(),\n };\n\n // Records have already been fetched, we use fetchMore to make sure\n // we request the right fields by passing in a whole new query\n const results = await getRecordsFetchMore({\n query: getRecordsFromLibraryQuery(searchState.fields, !searchState.offset),\n variables: currentVariables,\n //@ts-expect-error errorPolicy is applied at runtime even though it's not in the types\n errorPolicy: 'all',\n });\n\n // We have to call applyResults here because onCompleted is not called when fetchMore is used\n _applyResults(results);\n };\n\n const isLoading = getRecordsLoading || searchState.view.reload || searchState.loading;\n\n useEffect(() => {\n if (searchData || searchError) {\n _applyResults(getRecordsQueryResult);\n }\n }, [searchData, searchError]);\n\n useEffect(() => {\n if (searchState.loading && searchCalled) {\n _fetchRecords();\n }\n }, [searchState.loading]);\n\n /**\n * Called when current view changes. In charge of refetching record and saving last used view\n */\n useEffect(() => {\n if (!searchState.view.reload) {\n return;\n }\n\n _fetchRecords();\n\n updateSelectedViewMutation({\n variables: {\n key: selectedViewKey,\n value: searchState.view.current.id,\n global: false,\n },\n });\n searchDispatch({type: SearchActionTypes.SET_VIEW_RELOAD, reload: false});\n }, [selectedViewKey, updateSelectedViewMutation, searchState.view, searchState.fields, searchDispatch, library]);\n\n /**\n * Calls onSelectChange when selection changes\n */\n useEffect(() => {\n if (!onSelectChange) {\n return;\n }\n\n onSelectChange(searchState.selection, searchState.selection.allSelected ? searchState.filters : null);\n }, [searchState.selection]);\n\n const _reload = () => {\n searchDispatch({type: SearchActionTypes.SET_LOADING, loading: true});\n };\n\n const _notifyNewCreation = () => {\n _reload();\n KitNotification.success({\n message: t('items_list.created_in_success.message'),\n description: '',\n duration: SUCCESS_NOTIFICATION_DURATION,\n closable: true,\n });\n };\n\n // If some elements are selected and the selection type is search, show the selection Menu\n const menuSelectedActive = !!searchState.selection.selected.length || searchState.selection.allSelected;\n\n return (\n <SearchContext.Provider value={{state: searchState, dispatch: searchDispatch}}>\n <MenuWrapper>\n <MenuItemList refetch={_reload} notifyNewCreation={_notifyNewCreation} library={library} />\n <MenuItemListSelected active={menuSelectedActive} />\n </MenuWrapper>\n\n <Wrapper\n $showSide={searchState.sideBar.visible}\n className={searchState.sideBar.visible ? 'wrapper-open' : 'wrapper-close'}\n style={style}\n >\n <Sidebar />\n {isLoading && <Loading />}\n {!isLoading &&\n (!searchState.records.length ? (\n <LibraryItemsListEmpty notifyNewCreation={_notifyNewCreation} />\n ) : (\n <DisplayTypeSelector />\n ))}\n </Wrapper>\n </SearchContext.Provider>\n );\n};\n\nexport default LibraryItemsListContent;\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 LibraryItemsListContent from './LibraryItemsListContent';
|
|
5
|
-
export default LibraryItemsListContent;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/LibraryItemsListContent/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAEhE,eAAe,uBAAuB,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 LibraryItemsListContent from './LibraryItemsListContent';\n\nexport default LibraryItemsListContent;\n"]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { CloudUploadOutlined } from '@ant-design/icons';
|
|
6
|
-
import { Button, Col, Empty, Row } from 'antd';
|
|
7
|
-
import { useState } from 'react';
|
|
8
|
-
import { ImportModal } from '../../../components/ImportModal';
|
|
9
|
-
import useSearchReducer from '../../../components/LibraryItemsList/hooks/useSearchReducer';
|
|
10
|
-
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
11
|
-
import { CreateNewRecordButton } from '../CreateNewRecordButton/CreateNewRecordButton';
|
|
12
|
-
const LibraryItemsListEmpty = ({ notifyNewCreation }) => {
|
|
13
|
-
const { t } = useSharedTranslation();
|
|
14
|
-
const { state: searchState } = useSearchReducer();
|
|
15
|
-
const [isImportModalVisible, setIsImportModalVisible] = useState(false);
|
|
16
|
-
const _handleImportModalOpen = () => {
|
|
17
|
-
setIsImportModalVisible(true);
|
|
18
|
-
};
|
|
19
|
-
const _handleImportModalClose = () => {
|
|
20
|
-
setIsImportModalVisible(false);
|
|
21
|
-
};
|
|
22
|
-
// "Create and edit" on create modal is not available here as the modal will be destroyed as soon as the record is
|
|
23
|
-
// created and the list refreshed. Handling this situation might be complicated and not worth the effort for a
|
|
24
|
-
// pretty rare use case (creating a record from an empty library and wanting to edit it right away).
|
|
25
|
-
return (_jsxs(_Fragment, { children: [_jsx(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE, imageStyle: {
|
|
26
|
-
height: 60,
|
|
27
|
-
}, description: _jsxs("span", { children: [t('items_list.no_data'), "."] }), children: _jsxs(Row, { children: [_jsx(Col, { span: 11, children: _jsx(Row, { justify: "end", children: _jsx(Col, { children: _jsx(CreateNewRecordButton, { label: t('items_list.new_record'), notifyNewCreation: notifyNewCreation, libraryBehavior: searchState.library.behavior, libraryId: searchState.library.id, valuesVersions: searchState.valuesVersions, canCreateAndEdit: false }) }) }) }), _jsx(Col, { span: 2, children: _jsx("span", { children: t('global.or') }) }), _jsx(Col, { span: 11, children: _jsx(Row, { justify: "start", children: _jsx(Col, { children: _jsx(Button, { type: "primary", style: {
|
|
28
|
-
width: 'fit-content',
|
|
29
|
-
}, block: true, icon: _jsx(CloudUploadOutlined, {}), className: "primary-btn", onClick: _handleImportModalOpen, children: t('items_list.import_data') }) }) }) })] }) }), isImportModalVisible && (_jsx(ImportModal, { open: isImportModalVisible, library: searchState.library.id, onClose: _handleImportModalClose }))] }));
|
|
30
|
-
};
|
|
31
|
-
export default LibraryItemsListEmpty;
|
|
32
|
-
//# sourceMappingURL=LibraryItemsListEmpty.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LibraryItemsListEmpty.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAC,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAyB,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvD,OAAO,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AACvD,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AACtF,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,qBAAqB,EAAC,MAAM,gDAAgD,CAAC;AAMrF,MAAM,qBAAqB,GAAmD,CAAC,EAAC,iBAAiB,EAAC,EAAE,EAAE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,IAAI,EAAC,SAAS,EACd,KAAK,EAAE;4CACH,KAAK,EAAE,aAAa;yCACvB,EACD,KAAK,QACL,IAAI,EAAE,KAAC,mBAAmB,KAAG,EAC7B,SAAS,EAAC,aAAa,EACvB,OAAO,EAAE,sBAAsB,YAE9B,CAAC,CAAC,wBAAwB,CAAC,GACvB,GACP,GACJ,GACJ,IACJ,GACF,EACP,oBAAoB,IAAI,CACrB,KAAC,WAAW,IACR,IAAI,EAAE,oBAAoB,EAC1B,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,EAC/B,OAAO,EAAE,uBAAuB,GAClC,CACL,IACF,CACN,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,qBAAqB,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 {CloudUploadOutlined} from '@ant-design/icons';\nimport {Button, Col, Empty, Row} from 'antd';\nimport {type FunctionComponent, useState} from 'react';\nimport {ImportModal} from '_ui/components/ImportModal';\nimport useSearchReducer from '_ui/components/LibraryItemsList/hooks/useSearchReducer';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {CreateNewRecordButton} from '../CreateNewRecordButton/CreateNewRecordButton';\n\ninterface ILibraryItemsListEmptyProps {\n notifyNewCreation: () => void;\n}\n\nconst LibraryItemsListEmpty: FunctionComponent<ILibraryItemsListEmptyProps> = ({notifyNewCreation}) => {\n const {t} = useSharedTranslation();\n const {state: searchState} = useSearchReducer();\n\n const [isImportModalVisible, setIsImportModalVisible] = useState<boolean>(false);\n\n const _handleImportModalOpen = () => {\n setIsImportModalVisible(true);\n };\n\n const _handleImportModalClose = () => {\n setIsImportModalVisible(false);\n };\n\n // \"Create and edit\" on create modal is not available here as the modal will be destroyed as soon as the record is\n // created and the list refreshed. Handling this situation might be complicated and not worth the effort for a\n // pretty rare use case (creating a record from an empty library and wanting to edit it right away).\n return (\n <>\n <Empty\n image={Empty.PRESENTED_IMAGE_SIMPLE}\n imageStyle={{\n height: 60,\n }}\n description={<span>{t('items_list.no_data')}.</span>}\n >\n <Row>\n <Col span={11}>\n <Row justify=\"end\">\n <Col>\n <CreateNewRecordButton\n label={t('items_list.new_record')}\n notifyNewCreation={notifyNewCreation}\n libraryBehavior={searchState.library.behavior}\n libraryId={searchState.library.id}\n valuesVersions={searchState.valuesVersions}\n canCreateAndEdit={false}\n />\n </Col>\n </Row>\n </Col>\n <Col span={2}>\n <span>{t('global.or')}</span>\n </Col>\n <Col span={11}>\n <Row justify=\"start\">\n <Col>\n <Button\n type=\"primary\"\n style={{\n width: 'fit-content',\n }}\n block\n icon={<CloudUploadOutlined />}\n className=\"primary-btn\"\n onClick={_handleImportModalOpen}\n >\n {t('items_list.import_data')}\n </Button>\n </Col>\n </Row>\n </Col>\n </Row>\n </Empty>\n {isImportModalVisible && (\n <ImportModal\n open={isImportModalVisible}\n library={searchState.library.id}\n onClose={_handleImportModalClose}\n />\n )}\n </>\n );\n};\n\nexport default LibraryItemsListEmpty;\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 LibraryItemsListEmpty from './LibraryItemsListEmpty';
|
|
5
|
-
export default LibraryItemsListEmpty;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/LibraryItemsListEmpty/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAE5D,eAAe,qBAAqB,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 LibraryItemsListEmpty from './LibraryItemsListEmpty';\n\nexport default LibraryItemsListEmpty;\n"]}
|
package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js
DELETED
|
@@ -1,21 +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 { Pagination } from 'antd';
|
|
6
|
-
import useSearchReducer from '../../../components/LibraryItemsList/hooks/useSearchReducer';
|
|
7
|
-
import { SearchActionTypes } from '../../../components/LibraryItemsList/hooks/useSearchReducer/searchReducer';
|
|
8
|
-
function LibraryItemsListPagination() {
|
|
9
|
-
const { state: searchState, dispatch: searchDispatch } = useSearchReducer();
|
|
10
|
-
const setPagination = (current, size) => {
|
|
11
|
-
searchDispatch({ type: SearchActionTypes.SET_PAGINATION, page: size });
|
|
12
|
-
};
|
|
13
|
-
const setOffset = (page, pageSize) => {
|
|
14
|
-
searchDispatch({ type: SearchActionTypes.SET_OFFSET, offset: (page - 1) * (pageSize ?? 0) });
|
|
15
|
-
};
|
|
16
|
-
const currentPage = searchState.offset / searchState.pagination + 1;
|
|
17
|
-
const paginationOptions = [5, 10, 20, 50, 100];
|
|
18
|
-
return (_jsx(Pagination, { defaultCurrent: currentPage, current: currentPage, total: searchState.totalCount, defaultPageSize: searchState.pagination, onShowSizeChange: setPagination, showSizeChanger: true, pageSizeOptions: paginationOptions.map(option => option.toString()), onChange: setOffset }));
|
|
19
|
-
}
|
|
20
|
-
export default LibraryItemsListPagination;
|
|
21
|
-
//# sourceMappingURL=LibraryItemsListPagination.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LibraryItemsListPagination.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AACtF,OAAO,EAAC,iBAAiB,EAAC,MAAM,sEAAsE,CAAC;AAEvG,SAAS,0BAA0B;IAC/B,MAAM,EAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAC,GAAG,gBAAgB,EAAE,CAAC;IAE1E,MAAM,aAAa,GAAG,CAAC,OAAe,EAAE,IAAY,EAAE,EAAE;QACpD,cAAc,CAAC,EAAC,IAAI,EAAE,iBAAiB,CAAC,cAAc,EAAE,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC;IACzE,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,CAAC,IAAY,EAAE,QAAgB,EAAE,EAAE;QACjD,cAAc,CAAC,EAAC,IAAI,EAAE,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,QAAQ,IAAI,CAAC,CAAC,EAAC,CAAC,CAAC;IAC/F,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,WAAW,CAAC,MAAM,GAAG,WAAW,CAAC,UAAU,GAAG,CAAC,CAAC;IACpE,MAAM,iBAAiB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;IAE/C,OAAO,CACH,KAAC,UAAU,IACP,cAAc,EAAE,WAAW,EAC3B,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,WAAW,CAAC,UAAU,EAC7B,eAAe,EAAE,WAAW,CAAC,UAAU,EACvC,gBAAgB,EAAE,aAAa,EAC/B,eAAe,QACf,eAAe,EAAE,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EACnE,QAAQ,EAAE,SAAS,GACrB,CACL,CAAC;AACN,CAAC;AAED,eAAe,0BAA0B,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 {Pagination} from 'antd';\nimport useSearchReducer from '_ui/components/LibraryItemsList/hooks/useSearchReducer';\nimport {SearchActionTypes} from '_ui/components/LibraryItemsList/hooks/useSearchReducer/searchReducer';\n\nfunction LibraryItemsListPagination(): JSX.Element {\n const {state: searchState, dispatch: searchDispatch} = useSearchReducer();\n\n const setPagination = (current: number, size: number) => {\n searchDispatch({type: SearchActionTypes.SET_PAGINATION, page: size});\n };\n\n const setOffset = (page: number, pageSize: number) => {\n searchDispatch({type: SearchActionTypes.SET_OFFSET, offset: (page - 1) * (pageSize ?? 0)});\n };\n\n const currentPage = searchState.offset / searchState.pagination + 1;\n const paginationOptions = [5, 10, 20, 50, 100];\n\n return (\n <Pagination\n defaultCurrent={currentPage}\n current={currentPage}\n total={searchState.totalCount}\n defaultPageSize={searchState.pagination}\n onShowSizeChange={setPagination}\n showSizeChanger\n pageSizeOptions={paginationOptions.map(option => option.toString())}\n onChange={setOffset}\n />\n );\n}\n\nexport default LibraryItemsListPagination;\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 LibraryItemsListPagination from './LibraryItemsListPagination';
|
|
5
|
-
export default LibraryItemsListPagination;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/LibraryItemsList/LibraryItemsListPagination/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AAEtE,eAAe,0BAA0B,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 LibraryItemsListPagination from './LibraryItemsListPagination';\n\nexport default LibraryItemsListPagination;\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type Cell as ReactTableTypeCell } from 'react-table';
|
|
2
|
-
import { type ITableRow } from '../../../../types/search';
|
|
3
|
-
interface IBodyCellProps {
|
|
4
|
-
cell: ReactTableTypeCell<ITableRow>;
|
|
5
|
-
selected: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare function BodyCell({ cell, selected }: IBodyCellProps): JSX.Element;
|
|
8
|
-
export default BodyCell;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import { themeVars } from '../../../../antdTheme';
|
|
4
|
-
import { infosCol, INFOS_COLUMN_WIDTH, selectionColumn } from '../../constants';
|
|
5
|
-
import useSearchReducer from '../../hooks/useSearchReducer';
|
|
6
|
-
import Cell from '../Cell';
|
|
7
|
-
import CellSelection from '../Cell/CellSelection';
|
|
8
|
-
const CustomBodyCell = styled.div `
|
|
9
|
-
// Inherit background from row. If background is transparent, the sticky column won't behave properly
|
|
10
|
-
background-color: inherit;
|
|
11
|
-
padding: calc(var(--general-spacing-xxs) * 1px) 0;
|
|
12
|
-
|
|
13
|
-
&:not(:first-child) {
|
|
14
|
-
border-left: 1px solid ${props => (props.selected ? themeVars.activeColor : themeVars.borderLightColor)};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
max-width: ${p => (p.id === selectionColumn ? '35px' : 'auto')};
|
|
18
|
-
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
`;
|
|
22
|
-
const ErrorBodyCell = styled(CustomBodyCell) `
|
|
23
|
-
color: var(--general-colors-secondary-error-400);
|
|
24
|
-
background-color: var(--general-colors-secondary-error-200);
|
|
25
|
-
padding: calc(var(--general-spacing-xxs) * 1px);
|
|
26
|
-
`;
|
|
27
|
-
function BodyCell({ cell, selected }) {
|
|
28
|
-
const searchReducer = useSearchReducer();
|
|
29
|
-
const props = cell.getCellProps();
|
|
30
|
-
if (cell.column.id === infosCol) {
|
|
31
|
-
// define info column row style
|
|
32
|
-
props.style = {
|
|
33
|
-
...props.style,
|
|
34
|
-
flex: '1 0 auto',
|
|
35
|
-
maxWidth: INFOS_COLUMN_WIDTH,
|
|
36
|
-
minWidth: INFOS_COLUMN_WIDTH,
|
|
37
|
-
zIndex: 3,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
const cellError = searchReducer.state.errors.find(err => err.extensions.record?.id === cell.row.original.record.id && err.extensions.fields[cell.column.id]);
|
|
41
|
-
const data = {
|
|
42
|
-
id: cell?.value?.id,
|
|
43
|
-
key: cell?.value?.id,
|
|
44
|
-
library: cell?.value?.library,
|
|
45
|
-
label: cell?.value?.label,
|
|
46
|
-
value: cell?.value?.value,
|
|
47
|
-
type: cell?.value?.type,
|
|
48
|
-
format: cell?.value?.format,
|
|
49
|
-
};
|
|
50
|
-
if (cellError) {
|
|
51
|
-
return (_jsx(ErrorBodyCell, { selected: selected, ...props, children: cellError.extensions.fields[cell.column.id] ?? cellError.message }));
|
|
52
|
-
}
|
|
53
|
-
return (_jsx(CustomBodyCell, { ...props, id: cell.column.id, selected: selected, className: "body-cell", children: cell.column.id === selectionColumn ? (_jsx(CellSelection, { selected: selected })) : (_jsx(Cell, { columnName: cell.column.id, data: data })) }));
|
|
54
|
-
}
|
|
55
|
-
export default BodyCell;
|
|
56
|
-
//# sourceMappingURL=BodyCell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AAU,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,GAAI,CACnD,GACY,CACpB,CAAC;AACN,CAAC;AAED,eAAe,QAAQ,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 Cell as ReactTableTypeCell} from 'react-table';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\nimport {type ITableRow} from '_ui/types/search';\nimport {infosCol, INFOS_COLUMN_WIDTH, selectionColumn} from '../../constants';\nimport useSearchReducer from '../../hooks/useSearchReducer';\nimport Cell from '../Cell';\nimport CellSelection from '../Cell/CellSelection';\n\nconst CustomBodyCell = styled.div<{id?: string | number; selected: boolean}>`\n // Inherit background from row. If background is transparent, the sticky column won't behave properly\n background-color: inherit;\n padding: calc(var(--general-spacing-xxs) * 1px) 0;\n\n &:not(:first-child) {\n border-left: 1px solid ${props => (props.selected ? themeVars.activeColor : themeVars.borderLightColor)};\n }\n\n max-width: ${p => (p.id === selectionColumn ? '35px' : 'auto')};\n\n display: flex;\n align-items: center;\n`;\n\nconst ErrorBodyCell = styled(CustomBodyCell)`\n color: var(--general-colors-secondary-error-400);\n background-color: var(--general-colors-secondary-error-200);\n padding: calc(var(--general-spacing-xxs) * 1px);\n`;\n\ninterface IBodyCellProps {\n cell: ReactTableTypeCell<ITableRow>;\n selected: boolean;\n}\n\nfunction BodyCell({cell, selected}: IBodyCellProps): JSX.Element {\n const searchReducer = useSearchReducer();\n const props = cell.getCellProps();\n if (cell.column.id === infosCol) {\n // define info column row style\n props.style = {\n ...props.style,\n flex: '1 0 auto',\n maxWidth: INFOS_COLUMN_WIDTH,\n minWidth: INFOS_COLUMN_WIDTH,\n zIndex: 3,\n };\n }\n\n const cellError = searchReducer.state.errors.find(\n err => err.extensions.record?.id === cell.row.original.record.id && err.extensions.fields[cell.column.id],\n );\n\n const data = {\n id: cell?.value?.id,\n key: cell?.value?.id,\n library: cell?.value?.library,\n label: cell?.value?.label,\n value: cell?.value?.value,\n type: cell?.value?.type,\n format: cell?.value?.format,\n };\n\n if (cellError) {\n return (\n <ErrorBodyCell selected={selected} {...props}>\n {cellError.extensions.fields[cell.column.id] ?? cellError.message}\n </ErrorBodyCell>\n );\n }\n\n return (\n <CustomBodyCell {...props} id={cell.column.id} selected={selected} className=\"body-cell\">\n {cell.column.id === selectionColumn ? (\n <CellSelection selected={selected} />\n ) : (\n <Cell columnName={cell.column.id} data={data} />\n )}\n </CustomBodyCell>\n );\n}\n\nexport default BodyCell;\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 BodyCell from './BodyCell';
|
|
5
|
-
export default BodyCell;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,eAAe,QAAQ,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 BodyCell from './BodyCell';\n\nexport default BodyCell;\n"]}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import { themeVars } from '../../../../antdTheme';
|
|
4
|
-
import useSearchReducer from '../../../../components/LibraryItemsList/hooks/useSearchReducer';
|
|
5
|
-
import { SearchActionTypes } from '../../hooks/useSearchReducer/searchReducer';
|
|
6
|
-
import BodyCell from '../BodyCell';
|
|
7
|
-
import { useEditRecordModalContext } from '../../../../contexts/EditRecordModalContext';
|
|
8
|
-
const CustomBodyRow = styled.div `
|
|
9
|
-
position: relative;
|
|
10
|
-
border-bottom: 1px solid ${props => (props.$selected ? themeVars.activeColor : themeVars.borderLightColor)};
|
|
11
|
-
border-collapse: collapse;
|
|
12
|
-
|
|
13
|
-
// Must set background on row for the case where we just have the infos column (part of the row is empty)
|
|
14
|
-
background-color: ${p => (p.$selected ? themeVars.activeColor : themeVars.defaultBg)};
|
|
15
|
-
|
|
16
|
-
&:not(:hover) .floating-menu {
|
|
17
|
-
display: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:hover {
|
|
21
|
-
background-color: ${p => (p.$selected ? themeVars.activeColor : `${themeVars.activeColor}`)};
|
|
22
|
-
}
|
|
23
|
-
`;
|
|
24
|
-
function BodyRow({ row }) {
|
|
25
|
-
const props = row.getRowProps();
|
|
26
|
-
const { state: searchState, dispatch: searchDispatch } = useSearchReducer();
|
|
27
|
-
const { editRecord } = useEditRecordModalContext();
|
|
28
|
-
const record = row.cells[0]?.row?.original?.record;
|
|
29
|
-
if (!row.cells.length || typeof record === 'undefined') {
|
|
30
|
-
return _jsx(_Fragment, {});
|
|
31
|
-
}
|
|
32
|
-
const isRecordSelected = !!searchState.selection.selected.find(e => e.id === record.id && e.library === searchState.library.id);
|
|
33
|
-
const isAllSelected = searchState.selection.allSelected;
|
|
34
|
-
const isRowSelected = isAllSelected || isRecordSelected;
|
|
35
|
-
const _handleCellSelected = () => {
|
|
36
|
-
const selectionData = { id: record.id, library: record.library.id, label: record.label };
|
|
37
|
-
searchDispatch({
|
|
38
|
-
type: SearchActionTypes.TOGGLE_RECORD_SELECTION,
|
|
39
|
-
record: selectionData,
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
const _handleDoubleClick = () => {
|
|
43
|
-
editRecord({
|
|
44
|
-
open: true,
|
|
45
|
-
library: record.library.id,
|
|
46
|
-
record,
|
|
47
|
-
onClose: () => null,
|
|
48
|
-
valuesVersion: searchState.valuesVersions,
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
return (_jsx(CustomBodyRow, { ...props, onClick: _handleCellSelected, onDoubleClick: _handleDoubleClick, "$selected": isRowSelected, children: row.cells.map(cell => (_jsx(BodyCell, { selected: isRowSelected, cell: cell }, cell.column.id))) }));
|
|
52
|
-
}
|
|
53
|
-
export default BodyRow;
|
|
54
|
-
//# sourceMappingURL=BodyRow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BodyRow.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.tsx"],"names":[],"mappings":";AAKA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AAEtF,OAAO,EAAC,iBAAiB,EAAC,MAAM,4CAA4C,CAAC;AAC7E,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAC,yBAAyB,EAAC,MAAM,qCAAqC,CAAC;AAE9E,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAsB;;+BAEvB,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC;;;;wBAItF,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC;;;;;;;4BAO5D,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SA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AkB,GAAG,GAAG,EAAE;QAC5B,UAAU,CAAC;YACP,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;YAC1B,MAAM;YACN,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI;YACnB,aAAa,EAAE,WAAW,CAAC,cAAc;SAC5C,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,aAAa,OACN,KAAK,EACT,OAAO,EAAE,mBAAmB,EAC5B,aAAa,EAAE,kBAAkB,eACtB,aAAa,YAEvB,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CACnB,KAAC,QAAQ,IAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,IAAW,IAAO,IAAI,CAAC,MAAM,CAAC,EAAE,CAAI,CAChF,CAAC,GACU,CACnB,CAAC;AACN,CAAC;AAED,eAAe,OAAO,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 {type Row} from 'react-table';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\nimport useSearchReducer from '_ui/components/LibraryItemsList/hooks/useSearchReducer';\nimport {type IItem} from '_ui/types/search';\nimport {SearchActionTypes} from '../../hooks/useSearchReducer/searchReducer';\nimport BodyCell from '../BodyCell';\nimport {useEditRecordModalContext} from '_ui/contexts/EditRecordModalContext';\n\nconst CustomBodyRow = styled.div<{$selected: boolean}>`\n position: relative;\n border-bottom: 1px solid ${props => (props.$selected ? themeVars.activeColor : themeVars.borderLightColor)};\n border-collapse: collapse;\n\n // Must set background on row for the case where we just have the infos column (part of the row is empty)\n background-color: ${p => (p.$selected ? themeVars.activeColor : themeVars.defaultBg)};\n\n &:not(:hover) .floating-menu {\n display: none;\n }\n\n &:hover {\n background-color: ${p => (p.$selected ? themeVars.activeColor : `${themeVars.activeColor}`)};\n }\n`;\n\ninterface IBodyRowProps {\n row: Row<IItem | any>; // react-table typing fail\n}\n\nfunction BodyRow({row}: IBodyRowProps): JSX.Element {\n const props = row.getRowProps();\n const {state: searchState, dispatch: searchDispatch} = useSearchReducer();\n\n const {editRecord} = useEditRecordModalContext();\n\n const record = row.cells[0]?.row?.original?.record;\n\n if (!row.cells.length || typeof record === 'undefined') {\n return <></>;\n }\n\n const isRecordSelected = !!searchState.selection.selected.find(\n e => e.id === record.id && e.library === searchState.library.id,\n );\n const isAllSelected = searchState.selection.allSelected;\n\n const isRowSelected = isAllSelected || isRecordSelected;\n\n const _handleCellSelected = () => {\n const selectionData = {id: record.id, library: record.library.id, label: record.label};\n\n searchDispatch({\n type: SearchActionTypes.TOGGLE_RECORD_SELECTION,\n record: selectionData,\n });\n };\n\n const _handleDoubleClick = () => {\n editRecord({\n open: true,\n library: record.library.id,\n record,\n onClose: () => null,\n valuesVersion: searchState.valuesVersions,\n });\n };\n\n return (\n <CustomBodyRow\n {...props}\n onClick={_handleCellSelected}\n onDoubleClick={_handleDoubleClick}\n $selected={isRowSelected}\n >\n {row.cells.map(cell => (\n <BodyCell selected={isRowSelected} cell={cell as any} key={cell.column.id} />\n ))}\n </CustomBodyRow>\n );\n}\n\nexport default BodyRow;\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 BodyRow from './BodyRow';
|
|
5
|
-
export default BodyRow;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,eAAe,OAAO,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 BodyRow from './BodyRow';\n\nexport default BodyRow;\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type FunctionComponent } from 'react';
|
|
2
|
-
import { type AttributeType } from '../../../../../_gqlTypes';
|
|
3
|
-
interface IAllValuesCountProps {
|
|
4
|
-
values: any[];
|
|
5
|
-
attributeType: AttributeType;
|
|
6
|
-
}
|
|
7
|
-
declare const AllValuesCount: FunctionComponent<IAllValuesCountProps>;
|
|
8
|
-
export default AllValuesCount;
|