@leav/ui 1.9.0 → 1.10.0-034fe799
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_gqlTypes/index.d.ts +291 -120
- package/dist/_gqlTypes/index.js +204 -87
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/records/createRecordMutation.js +2 -2
- package/dist/_queries/records/createRecordMutation.js.map +1 -1
- package/dist/_utils/getFiltersFromRequest.js +5 -6
- package/dist/_utils/getFiltersFromRequest.js.map +1 -1
- package/dist/_utils/index.d.ts +0 -1
- package/dist/_utils/index.js +3 -7
- package/dist/_utils/index.js.map +1 -1
- package/dist/_utils/typeguards.d.ts +5 -0
- package/dist/_utils/typeguards.js +6 -0
- package/dist/_utils/typeguards.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +2 -1
- package/dist/components/Explorer/Explorer.js +31 -13
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.js +2 -1
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerCountData.d.ts +16 -0
- package/dist/components/Explorer/_queries/useExplorerCountData.js +26 -0
- package/dist/components/Explorer/_queries/useExplorerCountData.js.map +1 -0
- package/dist/components/Explorer/_queries/useExplorerData.js +18 -20
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/actions-mass/ResultsCount.d.ts +10 -0
- package/dist/components/Explorer/actions-mass/ResultsCount.js +8 -0
- package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +9 -2
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +18 -4
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +1 -1
- package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.d.ts +10 -0
- package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js +69 -0
- package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js.map +1 -0
- package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.d.ts +18 -0
- package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js +57 -0
- package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.d.ts +19 -0
- package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js +94 -0
- package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useMassActions.d.ts +5 -3
- package/dist/components/Explorer/actions-mass/useMassActions.js +19 -13
- package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +3 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +5 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +6 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +5 -5
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +11 -8
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/Filters/_queries/treeFiltersDataQuery.d.ts +6 -0
- package/dist/components/Filters/_queries/treeFiltersDataQuery.js +54 -0
- package/dist/components/Filters/_queries/treeFiltersDataQuery.js.map +1 -0
- package/dist/components/Filters/context/useGetTreeFilters.js +24 -40
- package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +1 -2
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.d.ts +6 -0
- package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js +54 -0
- package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +22 -41
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +3 -27
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +2 -2
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +5 -19
- package/dist/components/RecordEdition/EditRecordContent/_types.js +0 -5
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -3
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.d.ts +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +28 -17
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +30 -18
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +11 -0
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +35 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +6 -8
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +2 -33
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +11 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +2 -19
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
- package/dist/components/RecordEdition/_types.d.ts +1 -1
- package/dist/components/RecordEdition/_types.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +7 -6
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +6 -2
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
- package/dist/components/SearchModal/SearchModal.js +28 -18
- package/dist/components/SearchModal/SearchModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +0 -2
- package/dist/components/SelectTreeNode/SelectTreeNode.js +2 -2
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +0 -2
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +60 -114
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +0 -1
- package/dist/components/SelectTreeNode/TreeNodeTitle.js +3 -7
- package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
- package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.d.ts +6 -0
- package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js +56 -0
- package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js.map +1 -0
- package/dist/components/SelectTreeNode/_types.d.ts +0 -1
- package/dist/components/SelectTreeNode/_types.js.map +1 -1
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.js +0 -3
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +24 -22
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +9 -6
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/schema.d.ts +14 -2
- package/dist/hooks/useIFrameMessenger/schema.js +7 -1
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/types.d.ts +5 -0
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.d.ts +1 -1
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +14 -6
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.d.ts +2 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +32 -4
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
- package/dist/locales/en/shared.json +17 -35
- package/dist/locales/fr/shared.json +17 -35
- package/package.json +11 -20
- package/dist/__mocks__/common/mockSearchContextProvider.d.ts +0 -6
- package/dist/__mocks__/common/mockSearchContextProvider.js +0 -10
- package/dist/__mocks__/common/mockSearchContextProvider.js.map +0 -1
- package/dist/components/AttributesSelectionList/Attribute/Attribute.d.ts +0 -3
- package/dist/components/AttributesSelectionList/Attribute/Attribute.js +0 -50
- package/dist/components/AttributesSelectionList/Attribute/Attribute.js.map +0 -1
- package/dist/components/AttributesSelectionList/Attribute/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/Attribute/index.js +0 -6
- package/dist/components/AttributesSelectionList/Attribute/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +0 -10
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js +0 -72
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +0 -7
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +0 -39
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js +0 -6
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.d.ts +0 -2
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +0 -63
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js +0 -6
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/_types.d.ts +0 -8
- package/dist/components/AttributesSelectionList/_types.js +0 -2
- package/dist/components/AttributesSelectionList/_types.js.map +0 -1
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +0 -3
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +0 -9
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js.map +0 -1
- package/dist/components/AttributesSelectionList/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/index.js +0 -6
- package/dist/components/AttributesSelectionList/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.d.ts +0 -11
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +0 -10
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js.map +0 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.d.ts +0 -33
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +0 -77
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js.map +0 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.d.ts +0 -10
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +0 -8
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js.map +0 -1
- package/dist/components/AttributesSelectionList/sharedComponents.d.ts +0 -809
- package/dist/components/AttributesSelectionList/sharedComponents.js +0 -16
- package/dist/components/AttributesSelectionList/sharedComponents.js.map +0 -1
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +0 -10
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +0 -39
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +0 -1
- package/dist/components/DeactivateRecordsModal/index.d.ts +0 -1
- package/dist/components/DeactivateRecordsModal/index.js +0 -5
- package/dist/components/DeactivateRecordsModal/index.js.map +0 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.d.ts +0 -13
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +0 -50
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +0 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js +0 -6
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +0 -80
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayOptions/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayOptions/index.js +0 -6
- package/dist/components/LibraryItemsList/DisplayOptions/index.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js +0 -22
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js +0 -6
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +0 -13
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +0 -229
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersDropdown/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersDropdown/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.d.ts +0 -11
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +0 -328
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +0 -7
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +0 -90
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js +0 -13
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js +0 -26
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js +0 -22
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js +0 -35
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js +0 -34
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js +0 -16
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.d.ts +0 -8
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js +0 -11
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +0 -38
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.d.ts +0 -14
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +0 -147
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +0 -121
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +0 -17
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js.map +0 -1
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.d.ts +0 -8
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.js +0 -18
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.js.map +0 -1
- package/dist/components/LibraryItemsList/IconViewType/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/IconViewType/index.js +0 -6
- package/dist/components/LibraryItemsList/IconViewType/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsList.d.ts +0 -14
- package/dist/components/LibraryItemsList/LibraryItemsList.js +0 -18
- package/dist/components/LibraryItemsList/LibraryItemsList.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.d.ts +0 -16
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +0 -202
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.d.ts +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +0 -32
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js +0 -21
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.d.ts +0 -8
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +0 -56
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.d.ts +0 -7
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +0 -54
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.d.ts +0 -8
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +0 -66
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.d.ts +0 -8
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +0 -59
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +0 -9
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +0 -56
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.d.ts +0 -5
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js +0 -34
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.d.ts +0 -5
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js +0 -23
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.d.ts +0 -3
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +0 -80
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.d.ts +0 -12
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +0 -11
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.d.ts +0 -12
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js +0 -40
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.d.ts +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +0 -81
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.d.ts +0 -9
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +0 -142
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +0 -232
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.d.ts +0 -9
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +0 -27
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemList/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemList/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuItemList/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +0 -62
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.d.ts +0 -5
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +0 -139
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +0 -58
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuSelection/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuSelection/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuSelection/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuView/MenuView.d.ts +0 -6
- package/dist/components/LibraryItemsList/MenuView/MenuView.js +0 -162
- package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuView/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuView/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuView/index.js.map +0 -1
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.d.ts +0 -2
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.js +0 -21
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.js.map +0 -1
- package/dist/components/LibraryItemsList/SearchItems/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/SearchItems/index.js +0 -6
- package/dist/components/LibraryItemsList/SearchItems/index.js.map +0 -1
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.d.ts +0 -2
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +0 -58
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js.map +0 -1
- package/dist/components/LibraryItemsList/Sidebar/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/Sidebar/index.js +0 -6
- package/dist/components/LibraryItemsList/Sidebar/index.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.d.ts +0 -6
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +0 -199
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js +0 -6
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.d.ts +0 -2
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +0 -50
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.d.ts +0 -3
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +0 -11
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/TileDisplay/index.js +0 -6
- package/dist/components/LibraryItemsList/TileDisplay/index.js.map +0 -1
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.d.ts +0 -2
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +0 -66
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js.map +0 -1
- package/dist/components/LibraryItemsList/VersionsPanel/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/VersionsPanel/index.js +0 -6
- package/dist/components/LibraryItemsList/VersionsPanel/index.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.d.ts +0 -9
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +0 -85
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js +0 -6
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/View.d.ts +0 -7
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js +0 -152
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/View/index.js +0 -6
- package/dist/components/LibraryItemsList/ViewPanel/View/index.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +0 -209
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/index.js +0 -6
- package/dist/components/LibraryItemsList/ViewPanel/index.js.map +0 -1
- package/dist/components/LibraryItemsList/constants.d.ts +0 -12
- package/dist/components/LibraryItemsList/constants.js +0 -19
- package/dist/components/LibraryItemsList/constants.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.d.ts +0 -3
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js +0 -21
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +0 -3
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +0 -18
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.d.ts +0 -4
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +0 -64
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.d.ts +0 -5
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +0 -40
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.d.ts +0 -6
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +0 -10
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.d.ts +0 -2
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js +0 -13
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.d.ts +0 -2
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js +0 -18
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.d.ts +0 -8
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +0 -99
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +0 -82
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js +0 -2
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js +0 -6
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.d.ts +0 -7
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js +0 -7
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +0 -121
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +0 -228
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +0 -5
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js +0 -8
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.d.ts +0 -7
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +0 -40
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +0 -1
- package/dist/components/LibraryItemsList/index.d.ts +0 -1
- package/dist/components/LibraryItemsList/index.js +0 -5
- package/dist/components/LibraryItemsList/index.js.map +0 -1
- package/dist/components/LibraryItemsList/manageItems.d.ts +0 -11
- package/dist/components/LibraryItemsList/manageItems.js +0 -98
- package/dist/components/LibraryItemsList/manageItems.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +0 -7
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +0 -38
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js +0 -6
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.d.ts +0 -12
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +0 -29
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/sharedUtils.d.ts +0 -4
- package/dist/components/LibraryItemsList/shared/sharedUtils.js +0 -9
- package/dist/components/LibraryItemsList/shared/sharedUtils.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.d.ts +0 -3
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.js +0 -2
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.js +0 -5
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.js +0 -5
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.d.ts +0 -7
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js +0 -20
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.d.ts +0 -11
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +0 -35
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.d.ts +0 -52
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +0 -144
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.d.ts +0 -9
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +0 -19
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.d.ts +0 -5
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js +0 -21
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.d.ts +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js +0 -14
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.d.ts +0 -9
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js +0 -28
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.d.ts +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.js +0 -25
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.d.ts +0 -7
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.js +0 -33
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js +0 -13
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.d.ts +0 -10
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +0 -24
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +0 -13
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +0 -41
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.d.ts +0 -8
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js +0 -34
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.js.map +0 -1
|
@@ -411,42 +411,21 @@
|
|
|
411
411
|
},
|
|
412
412
|
"record_edition": {
|
|
413
413
|
"no_form_error": "Aucun formulaire disponible",
|
|
414
|
-
"invalid_format": "Format non valide",
|
|
415
414
|
"missing_attribute": "Attribut manquant",
|
|
416
415
|
"modified_at": "Modifié le",
|
|
417
416
|
"created_at": "Créée le",
|
|
418
|
-
"link_created_at": "Lié le",
|
|
419
417
|
"add_value": "Ajouter une valeur",
|
|
420
|
-
"add_value_link": "Ajouter une liaison",
|
|
421
418
|
"delete_value": "Supprimer cette valeur",
|
|
422
|
-
"delete_value_confirm": "Êtes-vous sûr de vouloir supprimer cette valeur ?",
|
|
423
419
|
"whoAmI": "Informations",
|
|
424
420
|
"no_value": "Pas de valeur",
|
|
425
|
-
"value_details": "Infos valeur",
|
|
426
|
-
"link_details": "Infos liaison",
|
|
427
|
-
"by": "par",
|
|
428
|
-
"no_matching_value": "Aucune valeur correspondante",
|
|
429
|
-
"copy_value": "Copier",
|
|
430
421
|
"select": "Sélectionner",
|
|
431
|
-
"new_value": "Nouvelle valeur",
|
|
432
|
-
"advanced_search": "Recherche avancée",
|
|
433
|
-
"search_elements": "Rechercher des éléments",
|
|
434
422
|
"values_list": "Liste de valeurs",
|
|
435
423
|
"new_record": "Créer",
|
|
436
|
-
"value_details_section": "Valeur",
|
|
437
|
-
"link_value_details_section": "Élément lié",
|
|
438
|
-
"attribute_details_section": "Plus d'infos...",
|
|
439
|
-
"path_section": "Chemin",
|
|
440
|
-
"start_typing_message": "Commencez à taper pour chercher des éléments",
|
|
441
|
-
"metadata_section": "Propriétés de la valeur",
|
|
442
|
-
"metadata_section_link": "Propriétés de la liaison",
|
|
443
|
-
"value_length": "{{length}} caractère(s)",
|
|
444
424
|
"delete_all": "Tout supprimer",
|
|
445
425
|
"delete_all_values": "Supprimer toutes les valeurs",
|
|
446
426
|
"delete_all_values_confirm": "Êtes-vous sûr de vouloir supprimer toutes les valeurs?",
|
|
447
427
|
"delete_link": "Supprimer la liaison",
|
|
448
428
|
"delete_link_description": "Êtes-vous sûr de vouloir supprimer la liaison?",
|
|
449
|
-
"value_details_tooltip": "Plus d'informations",
|
|
450
429
|
"attribute": {
|
|
451
430
|
"id": "Identifiant",
|
|
452
431
|
"info_title": "Infos attribut",
|
|
@@ -467,8 +446,6 @@
|
|
|
467
446
|
"format_rich_text": "Texte Enrichi"
|
|
468
447
|
},
|
|
469
448
|
"date_range_value": "Du {{from}} au {{to}}",
|
|
470
|
-
"external_update_warning": "Cet élément a été modifié par {{modifiers}}",
|
|
471
|
-
"field_external_update": "Ce champ a été modifié",
|
|
472
449
|
"create": "Créer",
|
|
473
450
|
"create_and_edit": "Créer et éditer",
|
|
474
451
|
"cancel_confirm_modal_title": "Confirmer l'abandon?",
|
|
@@ -477,9 +454,6 @@
|
|
|
477
454
|
"inherited_value": "Valeur héritée",
|
|
478
455
|
"calculated_value": "Valeur calculée",
|
|
479
456
|
"overrided_value": "Valeur surchargée",
|
|
480
|
-
"date_range_from_to": "du {{- from}} au {{- to}}",
|
|
481
|
-
"link_search_result_count": "Résultats ({{count}}/{{total}})",
|
|
482
|
-
"suggestions_count": "Suggestions ({{count}})",
|
|
483
457
|
"search_not_found": "Aucune correspondance",
|
|
484
458
|
"press_enter_to": "Appuyer sur Entrer pour ",
|
|
485
459
|
"select_this_value": "Sélectionner cette valeur",
|
|
@@ -498,8 +472,8 @@
|
|
|
498
472
|
"select_an_option": "Sélectionner une option"
|
|
499
473
|
},
|
|
500
474
|
"replace-by-existing-item": "Remplacer par un élément existant",
|
|
501
|
-
"open_sidebar": "
|
|
502
|
-
"close_sidebar": "
|
|
475
|
+
"open_sidebar": "Afficher les informations",
|
|
476
|
+
"close_sidebar": "Masquer les informations"
|
|
503
477
|
},
|
|
504
478
|
"record_summary": {
|
|
505
479
|
"preview_title": "Cliquez ici pour voir l’aperçu.",
|
|
@@ -510,15 +484,13 @@
|
|
|
510
484
|
"created_at_value": "{{date}} par {{user}}",
|
|
511
485
|
"modified_at": "Modifié le",
|
|
512
486
|
"modified_at_value": "{{date}} par {{user}}",
|
|
513
|
-
"new_record": "Nouvel élément",
|
|
514
487
|
"id_entity": "Identifiant entité",
|
|
515
488
|
"creation": "Création",
|
|
516
489
|
"last_modification": "Dernière modification",
|
|
517
490
|
"date_by_user": "Le {{date}} par {{user}}",
|
|
518
|
-
"open_preview_modal": "Ouvrir la modale d'aperçu",
|
|
519
491
|
"informations": "Informations",
|
|
520
|
-
"chat": "Chat",
|
|
521
492
|
"history": "Historique",
|
|
493
|
+
"entity": "{{entity}}",
|
|
522
494
|
"entity_overview": "Fiche {{entity}}",
|
|
523
495
|
"attribute": "Attribut",
|
|
524
496
|
"attribute_format": "Format de l'attribut",
|
|
@@ -669,7 +641,8 @@
|
|
|
669
641
|
"previews_generation_failed_only": "Seulement si la précédente génération a échoué",
|
|
670
642
|
"previews_generation_success": "La génération des aperçus a bien été lancée",
|
|
671
643
|
"previews_generation_nothing_to_do": "Aucun aperçu à générer",
|
|
672
|
-
"previews_generation_select_all": "Toutes les versions"
|
|
644
|
+
"previews_generation_select_all": "Toutes les versions",
|
|
645
|
+
"conditional_processing": "Traitement conditionnel"
|
|
673
646
|
},
|
|
674
647
|
"menu-selection": {
|
|
675
648
|
"nb-selected": "Sélection {{nbSelected}} / {{total}}",
|
|
@@ -716,8 +689,11 @@
|
|
|
716
689
|
"pagination-total-number_one": "{{from, number}} - {{to, number}} de {{count, number}} élément",
|
|
717
690
|
"pagination-total-number_other": "{{from, number}} - {{to, number}} de {{count, number}} éléments",
|
|
718
691
|
"columns": "Colonnes",
|
|
692
|
+
"available-attributes-for-users": "Attributs disponibles pour les utilisateurs",
|
|
719
693
|
"visible-columns": "Colonnes visibles",
|
|
720
694
|
"invisible-columns": "Colonnes invisibles",
|
|
695
|
+
"visible-attributes": "Attributs visibles",
|
|
696
|
+
"invisible-attributes": "Attributs invisibles",
|
|
721
697
|
"active-items-number": "{{count, number}} actifs",
|
|
722
698
|
"active-items-number_zero": "Aucun",
|
|
723
699
|
"invalid-value": "Valeur invalide",
|
|
@@ -746,8 +722,8 @@
|
|
|
746
722
|
"copied": "Copié"
|
|
747
723
|
},
|
|
748
724
|
"massAction": {
|
|
749
|
-
"
|
|
750
|
-
"
|
|
725
|
+
"results_one": "résultat",
|
|
726
|
+
"results_other": "résultats",
|
|
751
727
|
"selectedItems_one": "{{count, number}} sélectionné",
|
|
752
728
|
"selectedItems_other": "{{count, number}} sélectionnés",
|
|
753
729
|
"deactivate": "Supprimer",
|
|
@@ -782,7 +758,9 @@
|
|
|
782
758
|
"select_page_other": "Sélectionner les éléments visibles ({{count, number}})",
|
|
783
759
|
"select_all": "Tout sélectionner ({{count, number}})",
|
|
784
760
|
"deselect_all": "Tout désélectionner"
|
|
785
|
-
}
|
|
761
|
+
},
|
|
762
|
+
"generate_previews": "Générer les aperçus",
|
|
763
|
+
"generate_previews_error_description": "Une erreur est survenue lors de la génération des aperçus. Veuillez contacter un administrateur."
|
|
786
764
|
},
|
|
787
765
|
"export_profile_modal": {
|
|
788
766
|
"title": "Export",
|
|
@@ -795,6 +773,10 @@
|
|
|
795
773
|
"export_button": "Exporter",
|
|
796
774
|
"error_title": "Erreur de profil d'export"
|
|
797
775
|
},
|
|
776
|
+
"generate_previews_modal": {
|
|
777
|
+
"title": "Générer les aperçus",
|
|
778
|
+
"generate_button": "Générer"
|
|
779
|
+
},
|
|
798
780
|
"add-existing-item": "Ajouter un élément existant",
|
|
799
781
|
"activate_item_one": "Activer cet élément ?",
|
|
800
782
|
"activate_item_other": "Activer ces éléments ?",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leav/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0-034fe799",
|
|
4
4
|
"description": "Shared React components and hooks",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "yarn build",
|
|
@@ -28,23 +28,21 @@
|
|
|
28
28
|
"@babel/preset-env": "7.29.0",
|
|
29
29
|
"@babel/preset-react": "7.28.5",
|
|
30
30
|
"@graphql-codegen/add": "5.0.3",
|
|
31
|
-
"@graphql-codegen/cli": "6.1.
|
|
32
|
-
"@graphql-codegen/typescript": "5.0.
|
|
33
|
-
"@graphql-codegen/typescript-operations": "5.0.
|
|
34
|
-
"@graphql-codegen/typescript-react-apollo": "4.4.
|
|
31
|
+
"@graphql-codegen/cli": "6.1.3",
|
|
32
|
+
"@graphql-codegen/typescript": "5.0.9",
|
|
33
|
+
"@graphql-codegen/typescript-operations": "5.0.9",
|
|
34
|
+
"@graphql-codegen/typescript-react-apollo": "4.4.1",
|
|
35
35
|
"@testing-library/jest-dom": "5.17.0",
|
|
36
36
|
"@testing-library/react": "14.3.1",
|
|
37
37
|
"@testing-library/react-hooks": "8.0.1",
|
|
38
38
|
"@testing-library/user-event": "14.6.1",
|
|
39
39
|
"@total-typescript/ts-reset": "0.6.1",
|
|
40
|
-
"@types/dompurify": "3.0
|
|
40
|
+
"@types/dompurify": "3.2.0",
|
|
41
41
|
"@types/jest": "29.5.14",
|
|
42
42
|
"@types/lodash.isequal": "^4",
|
|
43
|
-
"@types/object-path": "0.11.4",
|
|
44
43
|
"@types/react": "18.2.14",
|
|
45
44
|
"@types/react-dom": "18.2.6",
|
|
46
|
-
"
|
|
47
|
-
"aristid-ds": "15.0.0-06322cf",
|
|
45
|
+
"aristid-ds": "15.2.0-e049fb9",
|
|
48
46
|
"babel-jest": "29.7.0",
|
|
49
47
|
"graphql": "16.12.0",
|
|
50
48
|
"i18next": "22.5.1",
|
|
@@ -62,7 +60,7 @@
|
|
|
62
60
|
},
|
|
63
61
|
"peerDependencies": {
|
|
64
62
|
"@apollo/client": ">=3.8.1",
|
|
65
|
-
"aristid-ds": "15.
|
|
63
|
+
"aristid-ds": "15.2.0-e049fb9",
|
|
66
64
|
"i18next": ">=22.5.1",
|
|
67
65
|
"react": "^18.2.0",
|
|
68
66
|
"react-dom": "^18.2.0",
|
|
@@ -73,24 +71,17 @@
|
|
|
73
71
|
"@ant-design/icons": "5.6.1",
|
|
74
72
|
"@ckeditor/ckeditor5-build-inline": "39.0.2",
|
|
75
73
|
"@ckeditor/ckeditor5-react": "6.3.0",
|
|
76
|
-
"@dnd-kit/core": "6.1
|
|
74
|
+
"@dnd-kit/core": "6.3.1",
|
|
77
75
|
"@dnd-kit/sortable": "8.0.0",
|
|
78
76
|
"@dnd-kit/utilities": "3.2.2",
|
|
79
|
-
"@
|
|
80
|
-
"@fortawesome/free-regular-svg-icons": "7.0.1",
|
|
81
|
-
"@fortawesome/free-solid-svg-icons": "7.0.1",
|
|
82
|
-
"@fortawesome/react-fontawesome": "3.0.2",
|
|
83
|
-
"@leav/utils": "1.9.0",
|
|
77
|
+
"@leav/utils": "1.10.0",
|
|
84
78
|
"@uidotdev/usehooks": "2.4.1",
|
|
85
79
|
"dayjs": "^1.11.13",
|
|
86
|
-
"dompurify": "3.2
|
|
80
|
+
"dompurify": "3.3.2",
|
|
87
81
|
"html-react-parser": "4.2.10",
|
|
88
82
|
"i18next-resources-to-backend": "1.1.4",
|
|
89
83
|
"lodash.isequal": "4.5.0",
|
|
90
|
-
"object-path": "0.11.8",
|
|
91
84
|
"react-markdown": "5.0.3",
|
|
92
|
-
"react-table": "7.8.0",
|
|
93
|
-
"react-table-sticky": "1.1.3",
|
|
94
85
|
"styled-components": "6.0.8",
|
|
95
86
|
"xlsx": "0.18.5",
|
|
96
87
|
"zod": "3.25.76"
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type PropsWithChildren } from 'react';
|
|
2
|
-
import { type ISearchState } from '../../components/LibraryItemsList/hooks/useSearchReducer/_types';
|
|
3
|
-
declare const MockSearchContextProvider: ({ state, children }: PropsWithChildren<{
|
|
4
|
-
state?: Partial<ISearchState>;
|
|
5
|
-
}>) => JSX.Element;
|
|
6
|
-
export default MockSearchContextProvider;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { SearchContext } from '../../components/LibraryItemsList/hooks/useSearchReducer/searchContext';
|
|
3
|
-
import { initialSearchState } from '../../components/LibraryItemsList/hooks/useSearchReducer/searchReducer';
|
|
4
|
-
import { mockGetLibraryDetailExtendedElement } from '../mockQuery/mockGetLibraryDetailExtendedQuery';
|
|
5
|
-
const MockSearchContextProvider = ({ state, children }) => (_jsx(SearchContext.Provider, { value: {
|
|
6
|
-
state: { ...initialSearchState, library: mockGetLibraryDetailExtendedElement, ...state },
|
|
7
|
-
dispatch: jest.fn(),
|
|
8
|
-
}, children: children }));
|
|
9
|
-
export default MockSearchContextProvider;
|
|
10
|
-
//# sourceMappingURL=mockSearchContextProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockSearchContextProvider.js","sourceRoot":"","sources":["../../../src/__mocks__/common/mockSearchContextProvider.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,aAAa,EAAC,MAAM,sEAAsE,CAAC;AACnG,OAAO,EAAC,kBAAkB,EAAC,MAAM,sEAAsE,CAAC;AAExG,OAAO,EAAC,mCAAmC,EAAC,MAAM,gDAAgD,CAAC;AAEnG,MAAM,yBAAyB,GAAG,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAqD,EAAE,EAAE,CAAC,CACzG,KAAC,aAAa,CAAC,QAAQ,IACnB,KAAK,EAAE;QACH,KAAK,EAAE,EAAC,GAAG,kBAAkB,EAAE,OAAO,EAAE,mCAAmC,EAAE,GAAG,KAAK,EAAC;QACtF,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE;KACtB,YAEA,QAAQ,GACY,CAC5B,CAAC;AAEF,eAAe,yBAAyB,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 PropsWithChildren} from 'react';\nimport {SearchContext} from '_ui/components/LibraryItemsList/hooks/useSearchReducer/searchContext';\nimport {initialSearchState} from '_ui/components/LibraryItemsList/hooks/useSearchReducer/searchReducer';\nimport {type ISearchState} from '_ui/components/LibraryItemsList/hooks/useSearchReducer/_types';\nimport {mockGetLibraryDetailExtendedElement} from '../mockQuery/mockGetLibraryDetailExtendedQuery';\n\nconst MockSearchContextProvider = ({state, children}: PropsWithChildren<{state?: Partial<ISearchState>}>) => (\n <SearchContext.Provider\n value={{\n state: {...initialSearchState, library: mockGetLibraryDetailExtendedElement, ...state},\n dispatch: jest.fn(),\n }}\n >\n {children}\n </SearchContext.Provider>\n);\n\nexport default MockSearchContextProvider;\n"]}
|
|
@@ -1,50 +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 { localizedTranslation } from '@leav/utils';
|
|
6
|
-
import { Checkbox, Radio, Space } from 'antd';
|
|
7
|
-
import styled from 'styled-components';
|
|
8
|
-
import { themeVars } from '../../../antdTheme';
|
|
9
|
-
import { useLang } from '../../../hooks';
|
|
10
|
-
import { attributeToSelectedAttribute } from '../helpers/attributeToSelectedAttribute';
|
|
11
|
-
import { AttributesSelectionListActionTypes } from '../reducer/attributesSelectionListReducer';
|
|
12
|
-
import { useAttributesSelectionListState } from '../reducer/attributesSelectionListStateContext';
|
|
13
|
-
import { SmallText, TextAttribute } from '../sharedComponents';
|
|
14
|
-
const Item = styled.div `
|
|
15
|
-
padding: 0.5em;
|
|
16
|
-
display: flex;
|
|
17
|
-
justify-content: space-between;
|
|
18
|
-
align-items: center;
|
|
19
|
-
width: 100%;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
border: 2px solid transparent;
|
|
22
|
-
|
|
23
|
-
&:hover {
|
|
24
|
-
border-color: ${themeVars.primaryColor};
|
|
25
|
-
background-color: ${themeVars.activeColor};
|
|
26
|
-
}
|
|
27
|
-
`;
|
|
28
|
-
const CheckboxWrapper = styled.div `
|
|
29
|
-
margin-left: 1em;
|
|
30
|
-
`;
|
|
31
|
-
function Attribute({ attribute, path, library, parentAttribute }) {
|
|
32
|
-
const attributePath = [path, attribute.id].filter(p => !!p).join('.');
|
|
33
|
-
const { lang } = useLang();
|
|
34
|
-
const { state, dispatch } = useAttributesSelectionListState();
|
|
35
|
-
const _handleClick = () => {
|
|
36
|
-
dispatch({
|
|
37
|
-
type: AttributesSelectionListActionTypes.TOGGLE_ATTRIBUTE_SELECTION,
|
|
38
|
-
attribute: attributeToSelectedAttribute(attribute, {
|
|
39
|
-
path: attributePath,
|
|
40
|
-
library,
|
|
41
|
-
parentAttributeData: parentAttribute,
|
|
42
|
-
}),
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
const label = localizedTranslation(attribute.label, lang);
|
|
46
|
-
const isSelected = state.selectedAttributes.findIndex(selectedAttribute => selectedAttribute.path === attributePath) !== -1;
|
|
47
|
-
return (_jsxs(Item, { onClick: _handleClick, "data-testid": "attribute-in-list", children: [_jsxs(Space, { children: [_jsx(TextAttribute, { children: label ?? attribute.id }), label && _jsx(SmallText, { children: attribute.id })] }), _jsx(CheckboxWrapper, { children: state.multiple ? _jsx(Checkbox, { checked: isSelected }) : _jsx(Radio, { checked: isSelected }) })] }));
|
|
48
|
-
}
|
|
49
|
-
export default Attribute;
|
|
50
|
-
//# sourceMappingURL=Attribute.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Attribute.js","sourceRoot":"","sources":["../../../../src/components/AttributesSelectionList/Attribute/Attribute.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AAC5C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,4BAA4B,EAAC,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAC,kCAAkC,EAAC,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAC,+BAA+B,EAAC,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAG7D,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;wBAUC,SAAS,CAAC,YAAY;4BAClB,SAAS,CAAC,WAAW;;CAEhD,CAAC;AAEF,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;CAEjC,CAAC;AAEF,SAAS,SAAS,CAAC,EAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,eAAe,EAAiC;IAC1F,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtE,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,EAAE,CAAC;IACzB,MAAM,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAG,+BAA+B,EAAE,CAAC;IAE5D,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,QAAQ,CAAC;YACL,IAAI,EAAE,kCAAkC,CAAC,0BAA0B;YACnE,SAAS,EAAE,4BAA4B,CAAC,SAAS,EAAE;gBAC/C,IAAI,EAAE,aAAa;gBACnB,OAAO;gBACP,mBAAmB,EAAE,eAAe;aACvC,CAAC;SACL,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,MAAM,KAAK,GAAG,oBAAoB,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAC1D,MAAM,UAAU,GACZ,KAAK,CAAC,kBAAkB,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAAE,CAAC,iBAAiB,CAAC,IAAI,KAAK,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IAE7G,OAAO,CACH,MAAC,IAAI,IAAC,OAAO,EAAE,YAAY,iBAAc,mBAAmB,aACxD,MAAC,KAAK,eACF,KAAC,aAAa,cAAE,KAAK,IAAI,SAAS,CAAC,EAAE,GAAiB,EACrD,KAAK,IAAI,KAAC,SAAS,cAAE,SAAS,CAAC,EAAE,GAAa,IAC3C,EACR,KAAC,eAAe,cACX,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAC,QAAQ,IAAC,OAAO,EAAE,UAAU,GAAI,CAAC,CAAC,CAAC,KAAC,KAAK,IAAC,OAAO,EAAE,UAAU,GAAI,GACtE,IACf,CACV,CAAC;AACN,CAAC;AAED,eAAe,SAAS,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 {localizedTranslation} from '@leav/utils';\nimport {Checkbox, Radio, Space} from 'antd';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\nimport {useLang} from '_ui/hooks';\nimport {attributeToSelectedAttribute} from '../helpers/attributeToSelectedAttribute';\nimport {AttributesSelectionListActionTypes} from '../reducer/attributesSelectionListReducer';\nimport {useAttributesSelectionListState} from '../reducer/attributesSelectionListStateContext';\nimport {SmallText, TextAttribute} from '../sharedComponents';\nimport {type ICommonAttributeComponentProps} from '../_types';\n\nconst Item = styled.div`\n padding: 0.5em;\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n cursor: pointer;\n border: 2px solid transparent;\n\n &:hover {\n border-color: ${themeVars.primaryColor};\n background-color: ${themeVars.activeColor};\n }\n`;\n\nconst CheckboxWrapper = styled.div`\n margin-left: 1em;\n`;\n\nfunction Attribute({attribute, path, library, parentAttribute}: ICommonAttributeComponentProps): JSX.Element {\n const attributePath = [path, attribute.id].filter(p => !!p).join('.');\n const {lang} = useLang();\n const {state, dispatch} = useAttributesSelectionListState();\n\n const _handleClick = () => {\n dispatch({\n type: AttributesSelectionListActionTypes.TOGGLE_ATTRIBUTE_SELECTION,\n attribute: attributeToSelectedAttribute(attribute, {\n path: attributePath,\n library,\n parentAttributeData: parentAttribute,\n }),\n });\n };\n\n const label = localizedTranslation(attribute.label, lang);\n const isSelected =\n state.selectedAttributes.findIndex(selectedAttribute => selectedAttribute.path === attributePath) !== -1;\n\n return (\n <Item onClick={_handleClick} data-testid=\"attribute-in-list\">\n <Space>\n <TextAttribute>{label ?? attribute.id}</TextAttribute>\n {label && <SmallText>{attribute.id}</SmallText>}\n </Space>\n <CheckboxWrapper>\n {state.multiple ? <Checkbox checked={isSelected} /> : <Radio checked={isSelected} />}\n </CheckboxWrapper>\n </Item>\n );\n}\n\nexport default Attribute;\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 Attribute from './Attribute';
|
|
5
|
-
export default Attribute;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/AttributesSelectionList/Attribute/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,eAAe,SAAS,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 Attribute from './Attribute';\n\nexport default Attribute;\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ISelectedAttribute } from '../../types/attributes';
|
|
2
|
-
interface IAttributesSelectionListProps {
|
|
3
|
-
library: string;
|
|
4
|
-
multiple?: boolean;
|
|
5
|
-
selectedAttributes?: ISelectedAttribute[];
|
|
6
|
-
canExpandExtendedAttributes?: boolean;
|
|
7
|
-
onSelectionChange: (selectedAttributes: ISelectedAttribute[]) => void;
|
|
8
|
-
}
|
|
9
|
-
declare function AttributesSelectionList({ library, multiple, selectedAttributes, canExpandExtendedAttributes, onSelectionChange, }: IAttributesSelectionListProps): JSX.Element;
|
|
10
|
-
export default AttributesSelectionList;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { localizedTranslation } from '@leav/utils';
|
|
6
|
-
import { Input, List, Spin } from 'antd';
|
|
7
|
-
import { useEffect, useReducer, useRef, useState } from 'react';
|
|
8
|
-
import styled from 'styled-components';
|
|
9
|
-
import { useLang } from '../../hooks';
|
|
10
|
-
import { useSharedTranslation } from '../../hooks/useSharedTranslation';
|
|
11
|
-
import { useGetAttributesByLibQuery } from '../../_gqlTypes';
|
|
12
|
-
import { ErrorDisplay } from '../ErrorDisplay';
|
|
13
|
-
import Attribute from './Attribute';
|
|
14
|
-
import attributeSelectionListReducer, { AttributesSelectionListActionTypes, initialState, } from './reducer/attributesSelectionListReducer';
|
|
15
|
-
import { AttributesSelectionListStateContext } from './reducer/attributesSelectionListStateContext';
|
|
16
|
-
import SelectedAttributesList from './SelectedAttributesList';
|
|
17
|
-
import { CustomForm } from './sharedComponents';
|
|
18
|
-
const ListWrapper = styled.div `
|
|
19
|
-
padding: 0.3rem 1rem 0 1rem;
|
|
20
|
-
overflow-y: scroll;
|
|
21
|
-
height: calc(100vh - 15rem);
|
|
22
|
-
`;
|
|
23
|
-
const Wrapper = styled.div `
|
|
24
|
-
display: Grid;
|
|
25
|
-
grid-template-columns: repeat(${props => (props.$multiple ? 2 : 1)}, 1fr);
|
|
26
|
-
grid-column-gap: 0.3rem;
|
|
27
|
-
`;
|
|
28
|
-
function AttributesSelectionList({ library, multiple = true, selectedAttributes = [], canExpandExtendedAttributes = true, onSelectionChange, }) {
|
|
29
|
-
const { t } = useSharedTranslation();
|
|
30
|
-
const searchRef = useRef(null);
|
|
31
|
-
const { lang } = useLang();
|
|
32
|
-
const [searchValue, setSearchValue] = useState('');
|
|
33
|
-
const [state, dispatch] = useReducer(attributeSelectionListReducer, {
|
|
34
|
-
...initialState,
|
|
35
|
-
library,
|
|
36
|
-
multiple,
|
|
37
|
-
selectedAttributes,
|
|
38
|
-
canExpandExtendedAttributes,
|
|
39
|
-
});
|
|
40
|
-
// Retrieve attributes list
|
|
41
|
-
const { loading, error } = useGetAttributesByLibQuery({
|
|
42
|
-
variables: {
|
|
43
|
-
library,
|
|
44
|
-
},
|
|
45
|
-
onCompleted: data => {
|
|
46
|
-
dispatch({
|
|
47
|
-
type: AttributesSelectionListActionTypes.SET_ATTRIBUTES,
|
|
48
|
-
attributes: data.attributes?.list || [],
|
|
49
|
-
});
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
useEffect(() => {
|
|
53
|
-
onSelectionChange(state.selectedAttributes);
|
|
54
|
-
}, [onSelectionChange, state.selectedAttributes]);
|
|
55
|
-
// Display list
|
|
56
|
-
if (loading) {
|
|
57
|
-
return _jsx(Spin, {});
|
|
58
|
-
}
|
|
59
|
-
const _handleSearchChange = (search) => {
|
|
60
|
-
setSearchValue(search);
|
|
61
|
-
};
|
|
62
|
-
const attributesList = state.attributes.filter(attribute => {
|
|
63
|
-
if (!searchValue) {
|
|
64
|
-
return true;
|
|
65
|
-
}
|
|
66
|
-
const attributeLabel = localizedTranslation(attribute.label, lang).toLowerCase();
|
|
67
|
-
return attributeLabel.indexOf(searchValue) !== -1 || attribute.id.indexOf(searchValue) !== -1;
|
|
68
|
-
});
|
|
69
|
-
return (_jsx(AttributesSelectionListStateContext.Provider, { value: { state, dispatch }, children: _jsxs(Wrapper, { "$multiple": state.multiple, children: [_jsxs(ListWrapper, { "data-testid": "attributes-list", children: [_jsx(CustomForm, { children: _jsx(Input.Search, { placeholder: t('attributes-list.search'), "aria-label": "search", ref: searchRef, onChange: event => _handleSearchChange(event.target.value ?? '') }) }), error ? (_jsx(ErrorDisplay, { message: error.message })) : (_jsx(List, { children: attributesList.map(attribute => (_jsx(Attribute, { attribute: attribute, depth: 0, library: library, path: "" }, attribute.id))) }))] }), multiple && _jsx(SelectedAttributesList, { "data-testid": "selected-attributes-list" })] }) }));
|
|
70
|
-
}
|
|
71
|
-
export default AttributesSelectionList;
|
|
72
|
-
//# sourceMappingURL=AttributesSelectionList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AttributesSelectionList.js","sourceRoot":"","sources":["../../../src/components/AttributesSelectionList/AttributesSelectionList.tsx"],"names":[],"mappings":"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","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 {localizedTranslation} from '@leav/utils';\nimport {Input, List, Spin} from 'antd';\nimport {useEffect, useReducer, useRef, useState} from 'react';\nimport styled from 'styled-components';\nimport {useLang} from '_ui/hooks';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type ISelectedAttribute} from '_ui/types/attributes';\nimport {useGetAttributesByLibQuery} from '_ui/_gqlTypes';\nimport {ErrorDisplay} from '../ErrorDisplay';\nimport Attribute from './Attribute';\nimport attributeSelectionListReducer, {\n AttributesSelectionListActionTypes,\n initialState,\n} from './reducer/attributesSelectionListReducer';\nimport {AttributesSelectionListStateContext} from './reducer/attributesSelectionListStateContext';\nimport SelectedAttributesList from './SelectedAttributesList';\nimport {CustomForm} from './sharedComponents';\n\nconst ListWrapper = styled.div`\n padding: 0.3rem 1rem 0 1rem;\n overflow-y: scroll;\n height: calc(100vh - 15rem);\n`;\n\nconst Wrapper = styled.div<{$multiple: boolean}>`\n display: Grid;\n grid-template-columns: repeat(${props => (props.$multiple ? 2 : 1)}, 1fr);\n grid-column-gap: 0.3rem;\n`;\n\ninterface IAttributesSelectionListProps {\n library: string;\n multiple?: boolean;\n selectedAttributes?: ISelectedAttribute[];\n canExpandExtendedAttributes?: boolean;\n onSelectionChange: (selectedAttributes: ISelectedAttribute[]) => void;\n}\n\nfunction AttributesSelectionList({\n library,\n multiple = true,\n selectedAttributes = [],\n canExpandExtendedAttributes = true,\n onSelectionChange,\n}: IAttributesSelectionListProps): JSX.Element {\n const {t} = useSharedTranslation();\n const searchRef = useRef<any>(null);\n const {lang} = useLang();\n const [searchValue, setSearchValue] = useState<string>('');\n\n const [state, dispatch] = useReducer(attributeSelectionListReducer, {\n ...initialState,\n library,\n multiple,\n selectedAttributes,\n canExpandExtendedAttributes,\n });\n\n // Retrieve attributes list\n const {loading, error} = useGetAttributesByLibQuery({\n variables: {\n library,\n },\n onCompleted: data => {\n dispatch({\n type: AttributesSelectionListActionTypes.SET_ATTRIBUTES,\n attributes: data.attributes?.list || [],\n });\n },\n });\n\n useEffect(() => {\n onSelectionChange(state.selectedAttributes);\n }, [onSelectionChange, state.selectedAttributes]);\n\n // Display list\n if (loading) {\n return <Spin />;\n }\n\n const _handleSearchChange = (search: string) => {\n setSearchValue(search);\n };\n\n const attributesList = state.attributes.filter(attribute => {\n if (!searchValue) {\n return true;\n }\n\n const attributeLabel = localizedTranslation(attribute.label, lang).toLowerCase();\n\n return attributeLabel.indexOf(searchValue) !== -1 || attribute.id.indexOf(searchValue) !== -1;\n });\n\n return (\n <AttributesSelectionListStateContext.Provider value={{state, dispatch}}>\n <Wrapper $multiple={state.multiple}>\n <ListWrapper data-testid=\"attributes-list\">\n <CustomForm>\n <Input.Search\n placeholder={t('attributes-list.search')}\n aria-label=\"search\"\n ref={searchRef}\n onChange={event => _handleSearchChange(event.target.value ?? '')}\n />\n </CustomForm>\n {error ? (\n <ErrorDisplay message={error.message} />\n ) : (\n <List>\n {attributesList.map(attribute => (\n <Attribute\n key={attribute.id}\n attribute={attribute}\n depth={0}\n library={library}\n path=\"\"\n />\n ))}\n </List>\n )}\n </ListWrapper>\n {multiple && <SelectedAttributesList data-testid=\"selected-attributes-list\" />}\n </Wrapper>\n </AttributesSelectionListStateContext.Provider>\n );\n}\n\nexport default AttributesSelectionList;\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type ISelectedAttribute } from '../../../../types/attributes';
|
|
2
|
-
interface ISelectedAttributeProps {
|
|
3
|
-
selectedAttribute: ISelectedAttribute;
|
|
4
|
-
handleProps: any;
|
|
5
|
-
}
|
|
6
|
-
declare const SelectedAttribute: ({ selectedAttribute, handleProps }: ISelectedAttributeProps) => JSX.Element;
|
|
7
|
-
export default SelectedAttribute;
|
|
@@ -1,39 +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 { CloseOutlined, HolderOutlined } from '@ant-design/icons';
|
|
6
|
-
import { localizedTranslation } from '@leav/utils';
|
|
7
|
-
import { Button, Space } from 'antd';
|
|
8
|
-
import styled from 'styled-components';
|
|
9
|
-
import { useLang } from '../../../../hooks';
|
|
10
|
-
import { AttributesSelectionListActionTypes } from '../../reducer/attributesSelectionListReducer';
|
|
11
|
-
import { useAttributesSelectionListState } from '../../reducer/attributesSelectionListStateContext';
|
|
12
|
-
import { SmallText, TextAttribute } from '../../sharedComponents';
|
|
13
|
-
const DragHandle = styled.div `
|
|
14
|
-
border-right: 1px solid #f0f0f0;
|
|
15
|
-
padding: 0.5em;
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
`;
|
|
19
|
-
const Content = styled(Space) `
|
|
20
|
-
padding: 0.5em;
|
|
21
|
-
flex-grow: 1;
|
|
22
|
-
`;
|
|
23
|
-
const CloseWrapper = styled.div `
|
|
24
|
-
padding: 8px;
|
|
25
|
-
`;
|
|
26
|
-
const SelectedAttribute = ({ selectedAttribute, handleProps }) => {
|
|
27
|
-
const { lang } = useLang();
|
|
28
|
-
const { dispatch } = useAttributesSelectionListState();
|
|
29
|
-
const label = localizedTranslation(selectedAttribute.label, lang);
|
|
30
|
-
const _handleUnselectAttribute = () => {
|
|
31
|
-
dispatch({
|
|
32
|
-
type: AttributesSelectionListActionTypes.TOGGLE_ATTRIBUTE_SELECTION,
|
|
33
|
-
attribute: selectedAttribute,
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
return (_jsxs(_Fragment, { children: [_jsx(DragHandle, { ...handleProps, children: _jsx(HolderOutlined, {}) }), _jsxs(Content, { direction: "vertical", children: [_jsx(TextAttribute, { children: label ?? selectedAttribute.id }), label && (_jsx("div", { children: _jsx(SmallText, { children: selectedAttribute.id }) }))] }), _jsx(CloseWrapper, { children: _jsx(Button, { icon: _jsx(CloseOutlined, {}), size: "small", onClick: _handleUnselectAttribute }) })] }));
|
|
37
|
-
};
|
|
38
|
-
export default SelectedAttribute;
|
|
39
|
-
//# sourceMappingURL=SelectedAttribute.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectedAttribute.js","sourceRoot":"","sources":["../../../../../src/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,MAAM,EAAE,KAAK,EAAC,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,OAAO,EAAC,kCAAkC,EAAC,MAAM,8CAA8C,CAAC;AAChG,OAAO,EAAC,+BAA+B,EAAC,MAAM,mDAAmD,CAAC;AAClG,OAAO,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAOhE,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAK5B,CAAC;AAEF,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;CAG5B,CAAC;AAEF,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;CAE9B,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,EAAC,iBAAiB,EAAE,WAAW,EAA0B,EAAE,EAAE;IACpF,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,EAAE,CAAC;IACzB,MAAM,EAAC,QAAQ,EAAC,GAAG,+BAA+B,EAAE,CAAC;IAErD,MAAM,KAAK,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAElE,MAAM,wBAAwB,GAAG,GAAG,EAAE;QAClC,QAAQ,CAAC;YACL,IAAI,EAAE,kCAAkC,CAAC,0BAA0B;YACnE,SAAS,EAAE,iBAAiB;SAC/B,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO,CACH,8BACI,KAAC,UAAU,OAAK,WAAW,YACvB,KAAC,cAAc,KAAG,GACT,EAEb,MAAC,OAAO,IAAC,SAAS,EAAC,UAAU,aACzB,KAAC,aAAa,cAAE,KAAK,IAAI,iBAAiB,CAAC,EAAE,GAAiB,EAC7D,KAAK,IAAI,CACN,wBACI,KAAC,SAAS,cAAE,iBAAiB,CAAC,EAAE,GAAa,GAC3C,CACT,IACK,EACV,KAAC,YAAY,cACT,KAAC,MAAM,IAAC,IAAI,EAAE,KAAC,aAAa,KAAG,EAAE,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,wBAAwB,GAAI,GACxE,IAChB,CACN,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,iBAAiB,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 {CloseOutlined, HolderOutlined} from '@ant-design/icons';\nimport {localizedTranslation} from '@leav/utils';\nimport {Button, Space} from 'antd';\nimport styled from 'styled-components';\nimport {useLang} from '_ui/hooks';\nimport {type ISelectedAttribute} from '_ui/types/attributes';\nimport {AttributesSelectionListActionTypes} from '../../reducer/attributesSelectionListReducer';\nimport {useAttributesSelectionListState} from '../../reducer/attributesSelectionListStateContext';\nimport {SmallText, TextAttribute} from '../../sharedComponents';\n\ninterface ISelectedAttributeProps {\n selectedAttribute: ISelectedAttribute;\n handleProps: any;\n}\n\nconst DragHandle = styled.div`\n border-right: 1px solid #f0f0f0;\n padding: 0.5em;\n display: flex;\n align-items: center;\n`;\n\nconst Content = styled(Space)`\n padding: 0.5em;\n flex-grow: 1;\n`;\n\nconst CloseWrapper = styled.div`\n padding: 8px;\n`;\n\nconst SelectedAttribute = ({selectedAttribute, handleProps}: ISelectedAttributeProps) => {\n const {lang} = useLang();\n const {dispatch} = useAttributesSelectionListState();\n\n const label = localizedTranslation(selectedAttribute.label, lang);\n\n const _handleUnselectAttribute = () => {\n dispatch({\n type: AttributesSelectionListActionTypes.TOGGLE_ATTRIBUTE_SELECTION,\n attribute: selectedAttribute,\n });\n };\n\n return (\n <>\n <DragHandle {...handleProps}>\n <HolderOutlined />\n </DragHandle>\n\n <Content direction=\"vertical\">\n <TextAttribute>{label ?? selectedAttribute.id}</TextAttribute>\n {label && (\n <div>\n <SmallText>{selectedAttribute.id}</SmallText>\n </div>\n )}\n </Content>\n <CloseWrapper>\n <Button icon={<CloseOutlined />} size=\"small\" onClick={_handleUnselectAttribute} />\n </CloseWrapper>\n </>\n );\n};\n\nexport default SelectedAttribute;\n"]}
|
package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js
DELETED
|
@@ -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 SelectedAttribute from './SelectedAttribute';
|
|
5
|
-
export default SelectedAttribute;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,eAAe,iBAAiB,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 SelectedAttribute from './SelectedAttribute';\n\nexport default SelectedAttribute;\n"]}
|
package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js
DELETED
|
@@ -1,63 +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 { DndContext, closestCenter } from '@dnd-kit/core';
|
|
6
|
-
import { SortableContext, verticalListSortingStrategy, useSortable } from '@dnd-kit/sortable';
|
|
7
|
-
import { CSS } from '@dnd-kit/utilities';
|
|
8
|
-
import styled from 'styled-components';
|
|
9
|
-
import { infosCol } from '../../../components/LibraryItemsList/constants';
|
|
10
|
-
import { AttributesSelectionListActionTypes } from '../reducer/attributesSelectionListReducer';
|
|
11
|
-
import { useAttributesSelectionListState } from '../reducer/attributesSelectionListStateContext';
|
|
12
|
-
import SelectedAttribute from './SelectedAttribute/SelectedAttribute';
|
|
13
|
-
const WrapperItemSelected = styled.div `
|
|
14
|
-
overflow-y: auto;
|
|
15
|
-
height: calc(100vh - 15rem);
|
|
16
|
-
|
|
17
|
-
&&& > *:first-child {
|
|
18
|
-
margin-top: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&&& > *:last-child {
|
|
22
|
-
margin-bottom: 0;
|
|
23
|
-
}
|
|
24
|
-
`;
|
|
25
|
-
const CustomCard = styled.div `
|
|
26
|
-
&&& {
|
|
27
|
-
padding: 0;
|
|
28
|
-
margin: 0 10px 10px 10px;
|
|
29
|
-
display: flex;
|
|
30
|
-
justify-content: space-between;
|
|
31
|
-
border: 1px solid #f0f0f0;
|
|
32
|
-
border-radius: 2px;
|
|
33
|
-
min-height: 3rem;
|
|
34
|
-
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
|
|
35
|
-
background: #fff;
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
38
|
-
function SelectedAttributesList() {
|
|
39
|
-
const { state, dispatch } = useAttributesSelectionListState();
|
|
40
|
-
const selection = state.selectedAttributes.filter(a => a.path !== infosCol);
|
|
41
|
-
const handleDragEnd = event => {
|
|
42
|
-
const { active, over } = event;
|
|
43
|
-
if (!over || active.id === over.id) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
const from = selection.findIndex(item => item.path === active.id);
|
|
47
|
-
const to = selection.findIndex(item => item.path === over.id);
|
|
48
|
-
if (from === -1 || to === -1) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
dispatch({ type: AttributesSelectionListActionTypes.MOVE_SELECTED_ATTRIBUTE, from, to });
|
|
52
|
-
};
|
|
53
|
-
return (_jsx(WrapperItemSelected, { children: _jsx(DndContext, { collisionDetection: closestCenter, onDragEnd: handleDragEnd, children: _jsx(SortableContext, { items: selection.map(a => a.path), strategy: verticalListSortingStrategy, children: selection.map(selectedAttribute => (_jsx(SortableItem, { selectedAttribute: selectedAttribute }, selectedAttribute.path))) }) }) }));
|
|
54
|
-
}
|
|
55
|
-
function SortableItem({ selectedAttribute }) {
|
|
56
|
-
const { attributes, listeners, setNodeRef, transform, transition } = useSortable({
|
|
57
|
-
id: selectedAttribute.path,
|
|
58
|
-
});
|
|
59
|
-
const style = { transform: CSS.Transform.toString(transform), transition };
|
|
60
|
-
return (_jsx(CustomCard, { ref: setNodeRef, style: style, ...attributes, children: _jsx(SelectedAttribute, { selectedAttribute: selectedAttribute, handleProps: listeners }) }));
|
|
61
|
-
}
|
|
62
|
-
export default SelectedAttributesList;
|
|
63
|
-
//# sourceMappingURL=SelectedAttributesList.js.map
|
package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectedAttributesList.js","sourceRoot":"","sources":["../../../../src/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.tsx"],"names":[],"mappings":"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","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 {DndContext, closestCenter} from '@dnd-kit/core';\nimport {SortableContext, verticalListSortingStrategy, useSortable} from '@dnd-kit/sortable';\nimport {CSS} from '@dnd-kit/utilities';\nimport styled from 'styled-components';\nimport {infosCol} from '_ui/components/LibraryItemsList/constants';\nimport {AttributesSelectionListActionTypes} from '../reducer/attributesSelectionListReducer';\nimport {useAttributesSelectionListState} from '../reducer/attributesSelectionListStateContext';\nimport SelectedAttribute from './SelectedAttribute/SelectedAttribute';\nimport {type ISelectedAttribute} from '_ui/types';\n\nconst WrapperItemSelected = styled.div`\n overflow-y: auto;\n height: calc(100vh - 15rem);\n\n &&& > *:first-child {\n margin-top: 0;\n }\n\n &&& > *:last-child {\n margin-bottom: 0;\n }\n`;\n\nconst CustomCard = styled.div`\n &&& {\n padding: 0;\n margin: 0 10px 10px 10px;\n display: flex;\n justify-content: space-between;\n border: 1px solid #f0f0f0;\n border-radius: 2px;\n min-height: 3rem;\n box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);\n background: #fff;\n }\n`;\n\nfunction SelectedAttributesList(): JSX.Element {\n const {state, dispatch} = useAttributesSelectionListState();\n const selection = state.selectedAttributes.filter(a => a.path !== infosCol);\n\n const handleDragEnd = event => {\n const {active, over} = event;\n if (!over || active.id === over.id) {\n return;\n }\n const from = selection.findIndex(item => item.path === active.id);\n const to = selection.findIndex(item => item.path === over.id);\n if (from === -1 || to === -1) {\n return;\n }\n dispatch({type: AttributesSelectionListActionTypes.MOVE_SELECTED_ATTRIBUTE, from, to});\n };\n\n return (\n <WrapperItemSelected>\n <DndContext collisionDetection={closestCenter} onDragEnd={handleDragEnd}>\n <SortableContext items={selection.map(a => a.path)} strategy={verticalListSortingStrategy}>\n {selection.map(selectedAttribute => (\n <SortableItem key={selectedAttribute.path} selectedAttribute={selectedAttribute} />\n ))}\n </SortableContext>\n </DndContext>\n </WrapperItemSelected>\n );\n}\n\nfunction SortableItem({selectedAttribute}: {selectedAttribute: ISelectedAttribute}) {\n const {attributes, listeners, setNodeRef, transform, transition} = useSortable({\n id: selectedAttribute.path,\n });\n const style = {transform: CSS.Transform.toString(transform), transition};\n\n return (\n <CustomCard ref={setNodeRef} style={style} {...attributes}>\n <SelectedAttribute selectedAttribute={selectedAttribute} handleProps={listeners} />\n </CustomCard>\n );\n}\n\nexport default SelectedAttributesList;\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 SelectedAttributesList from './SelectedAttributesList';
|
|
5
|
-
export default SelectedAttributesList;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/AttributesSelectionList/SelectedAttributesList/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAE9D,eAAe,sBAAsB,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 SelectedAttributesList from './SelectedAttributesList';\n\nexport default SelectedAttributesList;\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type AttributesByLibAttributeFragment, type AttributesByLibAttributeLinkAttributeFragment, type AttributesByLibAttributeTreeAttributeFragment } from '../../_gqlTypes';
|
|
2
|
-
export interface ICommonAttributeComponentProps {
|
|
3
|
-
attribute: AttributesByLibAttributeFragment;
|
|
4
|
-
library: string;
|
|
5
|
-
path: string;
|
|
6
|
-
depth: number;
|
|
7
|
-
parentAttribute?: AttributesByLibAttributeLinkAttributeFragment | AttributesByLibAttributeTreeAttributeFragment;
|
|
8
|
-
}
|