@leav/ui 1.9.0 → 1.10.0-1b7fd090
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_gqlTypes/index.d.ts +291 -120
- package/dist/_gqlTypes/index.js +204 -87
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/records/createRecordMutation.js +2 -2
- package/dist/_queries/records/createRecordMutation.js.map +1 -1
- package/dist/_utils/getFiltersFromRequest.js +5 -6
- package/dist/_utils/getFiltersFromRequest.js.map +1 -1
- package/dist/_utils/index.d.ts +0 -1
- package/dist/_utils/index.js +3 -7
- package/dist/_utils/index.js.map +1 -1
- package/dist/_utils/typeguards.d.ts +5 -0
- package/dist/_utils/typeguards.js +6 -0
- package/dist/_utils/typeguards.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +2 -1
- package/dist/components/Explorer/Explorer.js +31 -13
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.js +2 -1
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerCountData.d.ts +16 -0
- package/dist/components/Explorer/_queries/useExplorerCountData.js +26 -0
- package/dist/components/Explorer/_queries/useExplorerCountData.js.map +1 -0
- package/dist/components/Explorer/_queries/useExplorerData.js +18 -20
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/actions-mass/ResultsCount.d.ts +10 -0
- package/dist/components/Explorer/actions-mass/ResultsCount.js +8 -0
- package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +9 -2
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +18 -4
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +1 -1
- package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.d.ts +10 -0
- package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js +69 -0
- package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js.map +1 -0
- package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.d.ts +18 -0
- package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js +57 -0
- package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.d.ts +19 -0
- package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js +94 -0
- package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useMassActions.d.ts +5 -3
- package/dist/components/Explorer/actions-mass/useMassActions.js +19 -13
- package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +3 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +5 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +6 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +5 -5
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +11 -8
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/Filters/_queries/treeFiltersDataQuery.d.ts +6 -0
- package/dist/components/Filters/_queries/treeFiltersDataQuery.js +54 -0
- package/dist/components/Filters/_queries/treeFiltersDataQuery.js.map +1 -0
- package/dist/components/Filters/context/useGetTreeFilters.js +24 -40
- package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +1 -2
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.d.ts +6 -0
- package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js +54 -0
- package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +22 -41
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +3 -27
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +2 -2
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +5 -19
- package/dist/components/RecordEdition/EditRecordContent/_types.js +0 -5
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -3
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.d.ts +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +28 -17
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +30 -18
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +11 -0
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +35 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +6 -8
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +2 -33
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +11 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +2 -19
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
- package/dist/components/RecordEdition/_types.d.ts +1 -1
- package/dist/components/RecordEdition/_types.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +7 -6
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +6 -2
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
- package/dist/components/SearchModal/SearchModal.js +28 -18
- package/dist/components/SearchModal/SearchModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +0 -2
- package/dist/components/SelectTreeNode/SelectTreeNode.js +2 -2
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +0 -2
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +60 -114
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +0 -1
- package/dist/components/SelectTreeNode/TreeNodeTitle.js +3 -7
- package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
- package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.d.ts +6 -0
- package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js +56 -0
- package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js.map +1 -0
- package/dist/components/SelectTreeNode/_types.d.ts +0 -1
- package/dist/components/SelectTreeNode/_types.js.map +1 -1
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.js +0 -3
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +24 -22
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +9 -6
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/schema.d.ts +14 -2
- package/dist/hooks/useIFrameMessenger/schema.js +7 -1
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/types.d.ts +5 -0
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.d.ts +1 -1
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +14 -6
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.d.ts +2 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +32 -4
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
- package/dist/locales/en/shared.json +17 -35
- package/dist/locales/fr/shared.json +17 -35
- package/package.json +11 -20
- package/dist/__mocks__/common/mockSearchContextProvider.d.ts +0 -6
- package/dist/__mocks__/common/mockSearchContextProvider.js +0 -10
- package/dist/__mocks__/common/mockSearchContextProvider.js.map +0 -1
- package/dist/components/AttributesSelectionList/Attribute/Attribute.d.ts +0 -3
- package/dist/components/AttributesSelectionList/Attribute/Attribute.js +0 -50
- package/dist/components/AttributesSelectionList/Attribute/Attribute.js.map +0 -1
- package/dist/components/AttributesSelectionList/Attribute/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/Attribute/index.js +0 -6
- package/dist/components/AttributesSelectionList/Attribute/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +0 -10
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js +0 -72
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +0 -7
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +0 -39
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js +0 -6
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.d.ts +0 -2
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +0 -63
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js +0 -6
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/_types.d.ts +0 -8
- package/dist/components/AttributesSelectionList/_types.js +0 -2
- package/dist/components/AttributesSelectionList/_types.js.map +0 -1
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +0 -3
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +0 -9
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js.map +0 -1
- package/dist/components/AttributesSelectionList/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/index.js +0 -6
- package/dist/components/AttributesSelectionList/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.d.ts +0 -11
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +0 -10
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js.map +0 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.d.ts +0 -33
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +0 -77
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js.map +0 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.d.ts +0 -10
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +0 -8
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js.map +0 -1
- package/dist/components/AttributesSelectionList/sharedComponents.d.ts +0 -809
- package/dist/components/AttributesSelectionList/sharedComponents.js +0 -16
- package/dist/components/AttributesSelectionList/sharedComponents.js.map +0 -1
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +0 -10
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +0 -39
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +0 -1
- package/dist/components/DeactivateRecordsModal/index.d.ts +0 -1
- package/dist/components/DeactivateRecordsModal/index.js +0 -5
- package/dist/components/DeactivateRecordsModal/index.js.map +0 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.d.ts +0 -13
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +0 -50
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +0 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js +0 -6
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +0 -80
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayOptions/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayOptions/index.js +0 -6
- package/dist/components/LibraryItemsList/DisplayOptions/index.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js +0 -22
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js +0 -6
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +0 -13
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +0 -229
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersDropdown/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersDropdown/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.d.ts +0 -11
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +0 -328
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +0 -7
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +0 -90
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js +0 -13
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js +0 -26
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js +0 -22
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js +0 -35
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js +0 -34
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js +0 -16
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.d.ts +0 -8
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js +0 -11
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +0 -38
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.d.ts +0 -14
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +0 -147
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +0 -121
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +0 -17
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js.map +0 -1
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.d.ts +0 -8
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.js +0 -18
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.js.map +0 -1
- package/dist/components/LibraryItemsList/IconViewType/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/IconViewType/index.js +0 -6
- package/dist/components/LibraryItemsList/IconViewType/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsList.d.ts +0 -14
- package/dist/components/LibraryItemsList/LibraryItemsList.js +0 -18
- package/dist/components/LibraryItemsList/LibraryItemsList.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.d.ts +0 -16
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +0 -202
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.d.ts +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +0 -32
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js +0 -21
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.d.ts +0 -8
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +0 -56
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.d.ts +0 -7
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +0 -54
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.d.ts +0 -8
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +0 -66
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.d.ts +0 -8
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +0 -59
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +0 -9
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +0 -56
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.d.ts +0 -5
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js +0 -34
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.d.ts +0 -5
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js +0 -23
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.d.ts +0 -3
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +0 -80
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.d.ts +0 -12
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +0 -11
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.d.ts +0 -12
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js +0 -40
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.d.ts +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +0 -81
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.d.ts +0 -9
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +0 -142
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +0 -232
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.d.ts +0 -9
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +0 -27
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemList/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemList/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuItemList/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +0 -62
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.d.ts +0 -5
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +0 -139
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +0 -58
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuSelection/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuSelection/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuSelection/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuView/MenuView.d.ts +0 -6
- package/dist/components/LibraryItemsList/MenuView/MenuView.js +0 -162
- package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuView/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuView/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuView/index.js.map +0 -1
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.d.ts +0 -2
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.js +0 -21
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.js.map +0 -1
- package/dist/components/LibraryItemsList/SearchItems/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/SearchItems/index.js +0 -6
- package/dist/components/LibraryItemsList/SearchItems/index.js.map +0 -1
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.d.ts +0 -2
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +0 -58
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js.map +0 -1
- package/dist/components/LibraryItemsList/Sidebar/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/Sidebar/index.js +0 -6
- package/dist/components/LibraryItemsList/Sidebar/index.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.d.ts +0 -6
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +0 -199
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js +0 -6
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.d.ts +0 -2
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +0 -50
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.d.ts +0 -3
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +0 -11
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/TileDisplay/index.js +0 -6
- package/dist/components/LibraryItemsList/TileDisplay/index.js.map +0 -1
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.d.ts +0 -2
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +0 -66
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js.map +0 -1
- package/dist/components/LibraryItemsList/VersionsPanel/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/VersionsPanel/index.js +0 -6
- package/dist/components/LibraryItemsList/VersionsPanel/index.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.d.ts +0 -9
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +0 -85
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js +0 -6
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/View.d.ts +0 -7
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js +0 -152
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/View/index.js +0 -6
- package/dist/components/LibraryItemsList/ViewPanel/View/index.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +0 -209
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/index.js +0 -6
- package/dist/components/LibraryItemsList/ViewPanel/index.js.map +0 -1
- package/dist/components/LibraryItemsList/constants.d.ts +0 -12
- package/dist/components/LibraryItemsList/constants.js +0 -19
- package/dist/components/LibraryItemsList/constants.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.d.ts +0 -3
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js +0 -21
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +0 -3
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +0 -18
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.d.ts +0 -4
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +0 -64
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.d.ts +0 -5
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +0 -40
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.d.ts +0 -6
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +0 -10
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.d.ts +0 -2
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js +0 -13
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.d.ts +0 -2
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js +0 -18
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.d.ts +0 -8
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +0 -99
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +0 -82
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js +0 -2
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js +0 -6
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.d.ts +0 -7
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js +0 -7
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +0 -121
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +0 -228
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +0 -5
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js +0 -8
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.d.ts +0 -7
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +0 -40
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +0 -1
- package/dist/components/LibraryItemsList/index.d.ts +0 -1
- package/dist/components/LibraryItemsList/index.js +0 -5
- package/dist/components/LibraryItemsList/index.js.map +0 -1
- package/dist/components/LibraryItemsList/manageItems.d.ts +0 -11
- package/dist/components/LibraryItemsList/manageItems.js +0 -98
- package/dist/components/LibraryItemsList/manageItems.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +0 -7
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +0 -38
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js +0 -6
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.d.ts +0 -12
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +0 -29
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/sharedUtils.d.ts +0 -4
- package/dist/components/LibraryItemsList/shared/sharedUtils.js +0 -9
- package/dist/components/LibraryItemsList/shared/sharedUtils.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.d.ts +0 -3
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.js +0 -2
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.js +0 -5
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.js +0 -5
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.d.ts +0 -7
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js +0 -20
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.d.ts +0 -11
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +0 -35
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.d.ts +0 -52
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +0 -144
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.d.ts +0 -9
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +0 -19
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.d.ts +0 -5
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js +0 -21
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.d.ts +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js +0 -14
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.d.ts +0 -9
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js +0 -28
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.d.ts +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.js +0 -25
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.d.ts +0 -7
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.js +0 -33
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js +0 -13
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.d.ts +0 -10
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +0 -24
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +0 -13
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +0 -41
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.d.ts +0 -8
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js +0 -34
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.js.map +0 -1
package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, 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 { Modal, Tooltip } from 'antd';
|
|
6
|
-
import styled from 'styled-components';
|
|
7
|
-
import { themeVars } from '../../../../../antdTheme';
|
|
8
|
-
import { RecordCard } from '../../../../../components';
|
|
9
|
-
import List from '../../../../../components/List';
|
|
10
|
-
import { PreviewSize } from '../../../../../constants';
|
|
11
|
-
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
12
|
-
import { stopEvent } from '../../../../../_utils';
|
|
13
|
-
import { TypeGuards } from '../typeGuards';
|
|
14
|
-
const MoreValuesCount = styled.span `
|
|
15
|
-
padding: 0 0.75em;
|
|
16
|
-
height: 1.75em;
|
|
17
|
-
line-height: 1.75em;
|
|
18
|
-
margin: 0 1em;
|
|
19
|
-
border-radius: 2em;
|
|
20
|
-
background: ${themeVars.activeColor};
|
|
21
|
-
color: ${themeVars.secondaryTextColor};
|
|
22
|
-
font-weight: bold;
|
|
23
|
-
font-size: 0.9em;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
`;
|
|
26
|
-
const AllValuesCount = ({ values, attributeType }) => {
|
|
27
|
-
const { t } = useSharedTranslation();
|
|
28
|
-
const [modal, contextHolder] = Modal.useModal();
|
|
29
|
-
const _handleShowMoreClick = (e) => {
|
|
30
|
-
stopEvent(e);
|
|
31
|
-
modal.info({
|
|
32
|
-
icon: null,
|
|
33
|
-
content: (_jsx(List, { dataSource: values.map(value => {
|
|
34
|
-
let whoAmI = null;
|
|
35
|
-
if (TypeGuards.isTreeCellValues(values)) {
|
|
36
|
-
whoAmI = value?.treeValue?.record?.whoAmI;
|
|
37
|
-
}
|
|
38
|
-
if (TypeGuards.isLinkCellValues(values)) {
|
|
39
|
-
whoAmI = value.linkValue?.whoAmI;
|
|
40
|
-
}
|
|
41
|
-
return whoAmI ? _jsx(RecordCard, { record: whoAmI, size: PreviewSize.SMALL }) : value;
|
|
42
|
-
}), size: "small", maxHeight: "50vh" })),
|
|
43
|
-
okText: t('global.close'),
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
const otherValuesData = values
|
|
47
|
-
.slice(0, 5)
|
|
48
|
-
.map(value => {
|
|
49
|
-
let whoAmI = null;
|
|
50
|
-
if (TypeGuards.isTreeCellValue(value)) {
|
|
51
|
-
whoAmI = value.treeValue?.record?.whoAmI;
|
|
52
|
-
}
|
|
53
|
-
if (TypeGuards.isLinkCellValue(value)) {
|
|
54
|
-
whoAmI = value.linkValue?.whoAmI;
|
|
55
|
-
}
|
|
56
|
-
if (!whoAmI) {
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
return whoAmI.label ?? whoAmI.id;
|
|
60
|
-
})
|
|
61
|
-
.filter(val => !!val); // To make sure we don't have null values. This crashes the List component
|
|
62
|
-
const otherValuesList = (_jsx(List, { dataSource: otherValuesData, size: "small", maxHeight: "50vh", footer: values.length > 5 && _jsx("a", { onClick: _handleShowMoreClick, children: t('items_list.show_more_links') }) }));
|
|
63
|
-
return (_jsxs(_Fragment, { children: [_jsx(Tooltip, { overlay: otherValuesList, color: "white", children: _jsx(MoreValuesCount, { onClick: _handleShowMoreClick, onDoubleClick: stopEvent, children: values.length }) }), contextHolder] }));
|
|
64
|
-
};
|
|
65
|
-
export default AllValuesCount;
|
|
66
|
-
//# sourceMappingURL=AllValuesCount.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AllValuesCount.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AAEpC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,IAAI,MAAM,qBAAqB,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Z,EACT,aAAa,IACf,CACN,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {Modal, Tooltip} from 'antd';\nimport React, {type FunctionComponent} from 'react';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\nimport {RecordCard} from '_ui/components';\nimport List from '_ui/components/List';\nimport {PreviewSize} from '_ui/constants';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type AttributeType} from '_ui/_gqlTypes';\nimport {stopEvent} from '_ui/_utils';\nimport {TypeGuards} from '../typeGuards';\nimport {type IRecordIdentityWhoAmI} from '_ui/types';\n\ninterface IAllValuesCountProps {\n values: any[];\n attributeType: AttributeType;\n}\n\nconst MoreValuesCount = styled.span`\n padding: 0 0.75em;\n height: 1.75em;\n line-height: 1.75em;\n margin: 0 1em;\n border-radius: 2em;\n background: ${themeVars.activeColor};\n color: ${themeVars.secondaryTextColor};\n font-weight: bold;\n font-size: 0.9em;\n cursor: pointer;\n`;\n\nconst AllValuesCount: FunctionComponent<IAllValuesCountProps> = ({values, attributeType}) => {\n const {t} = useSharedTranslation();\n const [modal, contextHolder] = Modal.useModal();\n\n const _handleShowMoreClick = (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => {\n stopEvent(e);\n modal.info({\n icon: null,\n content: (\n <List\n dataSource={values.map(value => {\n let whoAmI = null;\n\n if (TypeGuards.isTreeCellValues(values)) {\n whoAmI = value?.treeValue?.record?.whoAmI;\n }\n\n if (TypeGuards.isLinkCellValues(values)) {\n whoAmI = value.linkValue?.whoAmI;\n }\n\n return whoAmI ? <RecordCard record={whoAmI} size={PreviewSize.SMALL} /> : value;\n })}\n size=\"small\"\n maxHeight=\"50vh\"\n />\n ),\n okText: t('global.close'),\n });\n };\n\n const otherValuesData = values\n .slice(0, 5)\n .map(value => {\n let whoAmI: IRecordIdentityWhoAmI = null;\n\n if (TypeGuards.isTreeCellValue(value)) {\n whoAmI = value.treeValue?.record?.whoAmI;\n }\n\n if (TypeGuards.isLinkCellValue(value)) {\n whoAmI = value.linkValue?.whoAmI;\n }\n\n if (!whoAmI) {\n return null;\n }\n\n return whoAmI.label ?? whoAmI.id;\n })\n .filter(val => !!val); // To make sure we don't have null values. This crashes the List component\n\n const otherValuesList = (\n <List\n dataSource={otherValuesData}\n size=\"small\"\n maxHeight=\"50vh\"\n footer={values.length > 5 && <a onClick={_handleShowMoreClick}>{t('items_list.show_more_links')}</a>}\n />\n );\n\n return (\n <>\n <Tooltip overlay={otherValuesList} color=\"white\">\n <MoreValuesCount onClick={_handleShowMoreClick} onDoubleClick={stopEvent}>\n {values.length}\n </MoreValuesCount>\n </Tooltip>\n {contextHolder}\n </>\n );\n};\n\nexport default AllValuesCount;\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 AllValuesCount from './AllValuesCount';
|
|
5
|
-
export default AllValuesCount;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,eAAe,cAAc,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport AllValuesCount from './AllValuesCount';\n\nexport default AllValuesCount;\n"]}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { RecordCard } from '../../../../components';
|
|
7
|
-
import useSearchReducer from '../../../../components/LibraryItemsList/hooks/useSearchReducer';
|
|
8
|
-
import { PreviewSize } from '../../../../constants';
|
|
9
|
-
import { useLang } from '../../../../hooks';
|
|
10
|
-
import { AttributeType } from '../../../../_gqlTypes';
|
|
11
|
-
import { infosCol } from '../../constants';
|
|
12
|
-
import { displayTypeToPreviewSize } from '../../helpers/displayTypeToPreviewSize';
|
|
13
|
-
import AllValuesCount from './AllValuesCount';
|
|
14
|
-
import CellInfos from './CellInfos';
|
|
15
|
-
import StandardCell from './StandardCell';
|
|
16
|
-
import { getValuesToDisplayInCell } from './utils';
|
|
17
|
-
import { TypeGuards } from './typeGuards';
|
|
18
|
-
const RecordCardCellWrapper = styled.div `
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
justify-content: space-between;
|
|
22
|
-
width: 100%;
|
|
23
|
-
`;
|
|
24
|
-
const Cell = ({ columnName, data }) => {
|
|
25
|
-
const { value, type } = data;
|
|
26
|
-
const { lang } = useLang();
|
|
27
|
-
const { state: searchState } = useSearchReducer();
|
|
28
|
-
const previewSize = displayTypeToPreviewSize(searchState.display.size);
|
|
29
|
-
const arrayOfValues = Array.isArray(value) ? value : [value];
|
|
30
|
-
if (arrayOfValues.length === 0) {
|
|
31
|
-
return _jsx(_Fragment, {});
|
|
32
|
-
}
|
|
33
|
-
switch (type) {
|
|
34
|
-
case AttributeType.simple:
|
|
35
|
-
case AttributeType.advanced:
|
|
36
|
-
return _jsx(StandardCell, { cellData: data, values: arrayOfValues });
|
|
37
|
-
case AttributeType.simple_link:
|
|
38
|
-
case AttributeType.advanced_link:
|
|
39
|
-
case AttributeType.tree:
|
|
40
|
-
const valuesToDisplay = getValuesToDisplayInCell(arrayOfValues);
|
|
41
|
-
let whoAmI = null;
|
|
42
|
-
if (TypeGuards.isTreeCellValues(valuesToDisplay)) {
|
|
43
|
-
whoAmI = valuesToDisplay[0]?.treeValue?.record?.whoAmI;
|
|
44
|
-
}
|
|
45
|
-
if (TypeGuards.isLinkCellValues(valuesToDisplay)) {
|
|
46
|
-
whoAmI = valuesToDisplay[0].linkValue?.whoAmI;
|
|
47
|
-
}
|
|
48
|
-
const numberOfHiddenValues = valuesToDisplay.length - 1;
|
|
49
|
-
return whoAmI ? (_jsxs(RecordCardCellWrapper, { children: [_jsx(RecordCard, { record: whoAmI, size: PreviewSize.SMALL, lang: lang, withPreview: true, withLibrary: false, simplistic: true }, whoAmI.id), numberOfHiddenValues > 0 && _jsx(AllValuesCount, { values: valuesToDisplay, attributeType: type })] })) : null;
|
|
50
|
-
default:
|
|
51
|
-
// selection and infos column has no type
|
|
52
|
-
if (columnName === infosCol) {
|
|
53
|
-
return _jsx(CellInfos, { record: value, previewSize: previewSize, lang: lang });
|
|
54
|
-
}
|
|
55
|
-
return _jsx(_Fragment, {});
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
export default Cell;
|
|
59
|
-
//# sourceMappingURL=Cell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cell.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CA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E,CAAC;YAED,OAAO,mBAAK,CAAC;IACrB,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,IAAI,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 styled from 'styled-components';\nimport {RecordCard} from '_ui/components';\nimport useSearchReducer from '_ui/components/LibraryItemsList/hooks/useSearchReducer';\nimport {PreviewSize} from '_ui/constants';\nimport {useLang} from '_ui/hooks';\nimport {type ITableCell} from '_ui/types/search';\nimport {AttributeType} from '_ui/_gqlTypes';\nimport {infosCol} from '../../constants';\nimport {displayTypeToPreviewSize} from '../../helpers/displayTypeToPreviewSize';\nimport AllValuesCount from './AllValuesCount';\nimport CellInfos from './CellInfos';\nimport StandardCell from './StandardCell';\nimport {getValuesToDisplayInCell} from './utils';\nimport {TypeGuards} from './typeGuards';\nimport {type FunctionComponent} from 'react';\nimport {type IRecordIdentityWhoAmI} from '_ui/types';\n\nconst RecordCardCellWrapper = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n`;\n\ninterface ICellProps {\n columnName: string;\n data: ITableCell;\n}\n\nconst Cell: FunctionComponent<ICellProps> = ({columnName, data}) => {\n const {value, type} = data;\n const {lang} = useLang();\n\n const {state: searchState} = useSearchReducer();\n const previewSize: PreviewSize = displayTypeToPreviewSize(searchState.display.size);\n\n const arrayOfValues = Array.isArray(value) ? value : [value];\n\n if (arrayOfValues.length === 0) {\n return <></>;\n }\n\n switch (type) {\n case AttributeType.simple:\n case AttributeType.advanced:\n return <StandardCell cellData={data} values={arrayOfValues} />;\n case AttributeType.simple_link:\n case AttributeType.advanced_link:\n case AttributeType.tree:\n const valuesToDisplay = getValuesToDisplayInCell(arrayOfValues);\n\n let whoAmI: IRecordIdentityWhoAmI = null;\n\n if (TypeGuards.isTreeCellValues(valuesToDisplay)) {\n whoAmI = valuesToDisplay[0]?.treeValue?.record?.whoAmI;\n }\n\n if (TypeGuards.isLinkCellValues(valuesToDisplay)) {\n whoAmI = valuesToDisplay[0].linkValue?.whoAmI;\n }\n\n const numberOfHiddenValues = valuesToDisplay.length - 1;\n\n return whoAmI ? (\n <RecordCardCellWrapper>\n <RecordCard\n record={whoAmI}\n size={PreviewSize.SMALL}\n lang={lang}\n key={whoAmI.id}\n withPreview={true}\n withLibrary={false}\n simplistic\n />\n {numberOfHiddenValues > 0 && <AllValuesCount values={valuesToDisplay} attributeType={type} />}\n </RecordCardCellWrapper>\n ) : null;\n default:\n // selection and infos column has no type\n if (columnName === infosCol) {\n return <CellInfos record={value} previewSize={previewSize} lang={lang} />;\n }\n\n return <></>;\n }\n};\n\nexport default Cell;\n"]}
|
package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type PreviewSize } from '../../../../../constants';
|
|
2
|
-
import { type IRecordIdentityWhoAmI } from '../../../../../types/records';
|
|
3
|
-
interface ICellInfosProps {
|
|
4
|
-
record: IRecordIdentityWhoAmI;
|
|
5
|
-
previewSize: PreviewSize;
|
|
6
|
-
lang?: string[];
|
|
7
|
-
}
|
|
8
|
-
declare function CellInfos({ record, previewSize, lang }: ICellInfosProps): JSX.Element;
|
|
9
|
-
export default CellInfos;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import { FloatingMenu, RecordCard } from '../../../../../components';
|
|
4
|
-
import useSearchReducer from '../../../../../components/LibraryItemsList/hooks/useSearchReducer';
|
|
5
|
-
import DeactivateRecordBtn from '../../../../../components/LibraryItemsList/shared/DeactivateRecordBtn';
|
|
6
|
-
import SelectCellsBtn from '../../../../../components/LibraryItemsList/shared/SelectCellsBtn';
|
|
7
|
-
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
8
|
-
import { ArrowsAltOutlined } from '@ant-design/icons';
|
|
9
|
-
import { AntButton } from 'aristid-ds';
|
|
10
|
-
import { useEditRecordModalContext } from '../../../../../contexts/EditRecordModalContext';
|
|
11
|
-
import { SelectCellsBtnType } from '../../../../../components/LibraryItemsList/shared/sharedUtils';
|
|
12
|
-
const Info = styled.div `
|
|
13
|
-
min-width: 150px;
|
|
14
|
-
`;
|
|
15
|
-
function CellInfos({ record, previewSize, lang }) {
|
|
16
|
-
const { t } = useSharedTranslation();
|
|
17
|
-
const { state: searchState } = useSearchReducer();
|
|
18
|
-
const canDeleteRecord = searchState.library.permissions.delete_record;
|
|
19
|
-
const { editRecord } = useEditRecordModalContext();
|
|
20
|
-
const menuBtnSize = 'middle';
|
|
21
|
-
const _onEditRecord = () => {
|
|
22
|
-
editRecord({
|
|
23
|
-
open: true,
|
|
24
|
-
record,
|
|
25
|
-
library: record.library.id,
|
|
26
|
-
onClose: () => null,
|
|
27
|
-
valuesVersion: searchState.valuesVersions,
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
const menuActions = [
|
|
31
|
-
{
|
|
32
|
-
title: t('global.details'),
|
|
33
|
-
button: (_jsx(AntButton, { "aria-label": "edit-record", shape: "circle", size: menuBtnSize, icon: _jsx(ArrowsAltOutlined, { size: 48 }), onClick: _onEditRecord })),
|
|
34
|
-
},
|
|
35
|
-
];
|
|
36
|
-
if (canDeleteRecord) {
|
|
37
|
-
menuActions.push({
|
|
38
|
-
title: t('records_deactivation.title_one'),
|
|
39
|
-
button: _jsx(DeactivateRecordBtn, { record: record }),
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
const selectActions = [
|
|
43
|
-
{
|
|
44
|
-
title: t('items-list-row.select-only'),
|
|
45
|
-
button: (_jsx(SelectCellsBtn, { selectionType: SelectCellsBtnType.ONLY, text: t('items-list-row.select-only'), record: record, size: menuBtnSize })),
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
title: t('items-list-row.select-all'),
|
|
49
|
-
button: (_jsx(SelectCellsBtn, { selectionType: SelectCellsBtnType.ALL, text: t('items-list-row.select-all'), record: record, size: menuBtnSize })),
|
|
50
|
-
},
|
|
51
|
-
];
|
|
52
|
-
const isSelectActive = searchState.selection.selected.length || searchState.selection.allSelected;
|
|
53
|
-
return (_jsxs(_Fragment, { children: [_jsx(Info, { children: _jsx(RecordCard, { record: record, size: previewSize, lang: lang }) }), _jsx(FloatingMenu, { actions: isSelectActive ? selectActions : menuActions, size: menuBtnSize })] }));
|
|
54
|
-
}
|
|
55
|
-
export default CellInfos;
|
|
56
|
-
//# sourceMappingURL=CellInfos.js.map
|
package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CellInfos.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.tsx"],"names":[],"mappings":";AAIA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,YAAY,EAA2B,UAAU,EAAC,MAAM,gBAAgB,CAAC;AACjF,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AACtF,OAAO,mBAAmB,MAAM,4DAA4D,CAAC;AAC7F,OAAO,cAAc,MAAM,uDAAuD,CAAC;AAEnF,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,yBAAyB,EAAC,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAC,kBAAkB,EAAC,MAAM,oDAAoD,CAAC;AAEtF,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAA;;CAEtB,CAAC;AAQF,SAAS,SAAS,CAAC,EAAC,MAAM,EAAE,WAAW,EAAE,IA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,EACrC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,WAAW,GACnB,CACL;SACJ;QACD;YACI,KAAK,EAAE,CAAC,CAAC,2BAA2B,CAAC;YACrC,MAAM,EAAE,CACJ,KAAC,cAAc,IACX,aAAa,EAAE,kBAAkB,CAAC,GAAG,EACrC,IAAI,EAAE,CAAC,CAAC,2BAA2B,CAAC,EACpC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,WAAW,GACnB,CACL;SACJ;KACJ,CAAC;IAEF,MAAM,cAAc,GAAG,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,IAAI,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC;IAElG,OAAO,CACH,8BACI,KAAC,IAAI,cACD,KAAC,UAAU,IAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,GAAI,GAC1D,EACP,KAAC,YAAY,IAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,WAAW,GAAI,IAC3F,CACN,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 {type SizeType} from 'antd/lib/config-provider/SizeContext';\nimport styled from 'styled-components';\nimport {FloatingMenu, type FloatingMenuAction, RecordCard} from '_ui/components';\nimport useSearchReducer from '_ui/components/LibraryItemsList/hooks/useSearchReducer';\nimport DeactivateRecordBtn from '_ui/components/LibraryItemsList/shared/DeactivateRecordBtn';\nimport SelectCellsBtn from '_ui/components/LibraryItemsList/shared/SelectCellsBtn';\nimport {type PreviewSize} from '_ui/constants';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type IRecordIdentityWhoAmI} from '_ui/types/records';\nimport {ArrowsAltOutlined} from '@ant-design/icons';\nimport {AntButton} from 'aristid-ds';\nimport {useEditRecordModalContext} from '_ui/contexts/EditRecordModalContext';\nimport {SelectCellsBtnType} from '_ui/components/LibraryItemsList/shared/sharedUtils';\n\nconst Info = styled.div`\n min-width: 150px;\n`;\n\ninterface ICellInfosProps {\n record: IRecordIdentityWhoAmI;\n previewSize: PreviewSize;\n lang?: string[];\n}\n\nfunction CellInfos({record, previewSize, lang}: ICellInfosProps): JSX.Element {\n const {t} = useSharedTranslation();\n const {state: searchState} = useSearchReducer();\n\n const canDeleteRecord = searchState.library.permissions.delete_record;\n\n const {editRecord} = useEditRecordModalContext();\n\n const menuBtnSize: SizeType = 'middle';\n\n const _onEditRecord = () => {\n editRecord({\n open: true,\n record,\n library: record.library.id,\n onClose: () => null,\n valuesVersion: searchState.valuesVersions,\n });\n };\n\n const menuActions: FloatingMenuAction[] = [\n {\n title: t('global.details'),\n button: (\n <AntButton\n aria-label=\"edit-record\"\n shape=\"circle\"\n size={menuBtnSize}\n icon={<ArrowsAltOutlined size={48} />}\n onClick={_onEditRecord}\n />\n ),\n },\n ];\n\n if (canDeleteRecord) {\n menuActions.push({\n title: t('records_deactivation.title_one'),\n button: <DeactivateRecordBtn record={record} />,\n });\n }\n\n const selectActions: FloatingMenuAction[] = [\n {\n title: t('items-list-row.select-only'),\n button: (\n <SelectCellsBtn\n selectionType={SelectCellsBtnType.ONLY}\n text={t('items-list-row.select-only')}\n record={record}\n size={menuBtnSize}\n />\n ),\n },\n {\n title: t('items-list-row.select-all'),\n button: (\n <SelectCellsBtn\n selectionType={SelectCellsBtnType.ALL}\n text={t('items-list-row.select-all')}\n record={record}\n size={menuBtnSize}\n />\n ),\n },\n ];\n\n const isSelectActive = searchState.selection.selected.length || searchState.selection.allSelected;\n\n return (\n <>\n <Info>\n <RecordCard record={record} size={previewSize} lang={lang} />\n </Info>\n <FloatingMenu actions={isSelectActive ? selectActions : menuActions} size={menuBtnSize} />\n </>\n );\n}\n\nexport default CellInfos;\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 CellInfos from './CellInfos';
|
|
5
|
-
export default CellInfos;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/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 CellInfos from './CellInfos';\n\nexport default CellInfos;\n"]}
|
package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js
DELETED
|
@@ -1,34 +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 { CheckCircleFilled, CheckCircleOutlined } from '@ant-design/icons';
|
|
6
|
-
import styled from 'styled-components';
|
|
7
|
-
import { themeVars } from '../../../../../antdTheme';
|
|
8
|
-
const Wrapper = styled.div `
|
|
9
|
-
display: grid;
|
|
10
|
-
place-items: center;
|
|
11
|
-
position: relative;
|
|
12
|
-
height: 100%;
|
|
13
|
-
width: 100%;
|
|
14
|
-
`;
|
|
15
|
-
const CustomCheckbox = styled.span `
|
|
16
|
-
&& {
|
|
17
|
-
display: ${p => (!p.checked ? 'none' : 'block')};
|
|
18
|
-
color: ${p => (p.checked ? themeVars.primaryColor : themeVars.defaultTextColor)};
|
|
19
|
-
font-size: 1.5em;
|
|
20
|
-
|
|
21
|
-
.ant-checkbox-checked::after {
|
|
22
|
-
border: none;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
[role='row']:hover & {
|
|
27
|
-
display: block;
|
|
28
|
-
}
|
|
29
|
-
`;
|
|
30
|
-
function CellSelection({ selected }) {
|
|
31
|
-
return (_jsx(Wrapper, { children: _jsx(CustomCheckbox, { checked: selected, role: "checkbox", children: selected ? _jsx(CheckCircleFilled, {}) : _jsx(CheckCircleOutlined, {}) }) }));
|
|
32
|
-
}
|
|
33
|
-
export default CellSelection;
|
|
34
|
-
//# sourceMappingURL=CellSelection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CellSelection.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,iBAAiB,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACzE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAExC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAMzB,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAoB;;mBAEnC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;iBACtC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC;;;;;;;;;;;CAWtF,CAAC;AAMF,SAAS,aAAa,CAAC,EAAC,QAAQ,EAAsB;IAClD,OAAO,CACH,KAAC,OAAO,cACJ,KAAC,cAAc,IAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAC,UAAU,YAC7C,QAAQ,CAAC,CAAC,CAAC,KAAC,iBAAiB,KAAG,CAAC,CAAC,CAAC,KAAC,mBAAmB,KAAG,GAC9C,GACX,CACb,CAAC;AACN,CAAC;AAED,eAAe,aAAa,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 {CheckCircleFilled, CheckCircleOutlined} from '@ant-design/icons';\nimport styled from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\n\nconst Wrapper = styled.div`\n display: grid;\n place-items: center;\n position: relative;\n height: 100%;\n width: 100%;\n`;\n\nconst CustomCheckbox = styled.span<{checked: boolean}>`\n && {\n display: ${p => (!p.checked ? 'none' : 'block')};\n color: ${p => (p.checked ? themeVars.primaryColor : themeVars.defaultTextColor)};\n font-size: 1.5em;\n\n .ant-checkbox-checked::after {\n border: none;\n }\n }\n\n [role='row']:hover & {\n display: block;\n }\n`;\n\ninterface ICellSelectionProps {\n selected: boolean;\n}\n\nfunction CellSelection({selected}: ICellSelectionProps): JSX.Element {\n return (\n <Wrapper>\n <CustomCheckbox checked={selected} role=\"checkbox\">\n {selected ? <CheckCircleFilled /> : <CheckCircleOutlined />}\n </CustomCheckbox>\n </Wrapper>\n );\n}\n\nexport default CellSelection;\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 CellSelection from './CellSelection';
|
|
5
|
-
export default CellSelection;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,eAAe,aAAa,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 CellSelection from './CellSelection';\n\nexport default CellSelection;\n"]}
|
|
@@ -1,23 +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 EllipsisOutlined from '@ant-design/icons/lib/icons/EllipsisOutlined';
|
|
6
|
-
import { Tooltip } from 'antd';
|
|
7
|
-
import parse from 'html-react-parser';
|
|
8
|
-
import styled from 'styled-components';
|
|
9
|
-
import DOMPurify from 'dompurify';
|
|
10
|
-
const EllipsisOutlinedComponent = styled(EllipsisOutlined) `
|
|
11
|
-
border-width: 1px;
|
|
12
|
-
border-style: solid;
|
|
13
|
-
border-color: #d9d9d9;
|
|
14
|
-
background: white;
|
|
15
|
-
border-radius: 10px;
|
|
16
|
-
`;
|
|
17
|
-
function RichTextDisplay({ displayedValue }) {
|
|
18
|
-
const sanitizedDisplayedValue = DOMPurify.sanitize(displayedValue);
|
|
19
|
-
const parseValue = parse(sanitizedDisplayedValue);
|
|
20
|
-
return (_jsx(Tooltip, { overlay: parseValue, children: _jsx(EllipsisOutlinedComponent, {}) }));
|
|
21
|
-
}
|
|
22
|
-
export default RichTextDisplay;
|
|
23
|
-
//# sourceMappingURL=RichTextDisplay.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextDisplay.js","sourceRoot":"","sources":["../../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,gBAAgB,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAC,OAAO,EAAC,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,MAAM,yBAAyB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAA;;;;;;CAMzD,CAAC;AAMF,SAAS,eAAe,CAAC,EAAC,cAAc,EAAwB;IAC5D,MAAM,uBAAuB,GAAG,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IACnE,MAAM,UAAU,GAAG,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAElD,OAAO,CACH,KAAC,OAAO,IAAC,OAAO,EAAE,UAAU,YACxB,KAAC,yBAAyB,KAAG,GACvB,CACb,CAAC;AACN,CAAC;AAED,eAAe,eAAe,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 EllipsisOutlined from '@ant-design/icons/lib/icons/EllipsisOutlined';\nimport {Tooltip} from 'antd';\nimport parse from 'html-react-parser';\nimport styled from 'styled-components';\nimport DOMPurify from 'dompurify';\n\nconst EllipsisOutlinedComponent = styled(EllipsisOutlined)`\n border-width: 1px;\n border-style: solid;\n border-color: #d9d9d9;\n background: white;\n border-radius: 10px;\n`;\n\nexport interface IRichTextDisplayProps {\n displayedValue: string;\n}\n\nfunction RichTextDisplay({displayedValue}: IRichTextDisplayProps): JSX.Element {\n const sanitizedDisplayedValue = DOMPurify.sanitize(displayedValue);\n const parseValue = parse(sanitizedDisplayedValue);\n\n return (\n <Tooltip overlay={parseValue}>\n <EllipsisOutlinedComponent />\n </Tooltip>\n );\n}\n\nexport default RichTextDisplay;\n"]}
|
package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, 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 { CheckOutlined, CloseOutlined, FileTextOutlined } from '@ant-design/icons';
|
|
6
|
-
import { getInvertColor } from '@leav/utils';
|
|
7
|
-
import { Switch, Tag, Tooltip, Typography } from 'antd';
|
|
8
|
-
import isEmpty from 'lodash/isEmpty';
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import styled from 'styled-components';
|
|
11
|
-
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
12
|
-
import { AttributeFormat } from '../../../../../_gqlTypes';
|
|
13
|
-
import { stringifyDateRangeValue } from '../../../../../_utils';
|
|
14
|
-
import { getValuesToDisplayInCell } from '../utils';
|
|
15
|
-
import { AggregationColor } from 'antd/es/color-picker/color';
|
|
16
|
-
const RichTextDisplay = React.lazy(() => import('./ElementsToDisplay/RichTextDisplay'));
|
|
17
|
-
const alignmentByFormat = {
|
|
18
|
-
[AttributeFormat.text]: 'left',
|
|
19
|
-
[AttributeFormat.numeric]: 'right',
|
|
20
|
-
[AttributeFormat.boolean]: 'center',
|
|
21
|
-
[AttributeFormat.date]: 'left',
|
|
22
|
-
[AttributeFormat.date_range]: 'left',
|
|
23
|
-
[AttributeFormat.extended]: 'left',
|
|
24
|
-
[AttributeFormat.encrypted]: 'left',
|
|
25
|
-
[AttributeFormat.color]: 'left',
|
|
26
|
-
[AttributeFormat.rich_text]: 'center',
|
|
27
|
-
};
|
|
28
|
-
const Wrapper = styled.div `
|
|
29
|
-
padding: 5px;
|
|
30
|
-
width: 100%;
|
|
31
|
-
text-align: ${props => alignmentByFormat[props.$format]};
|
|
32
|
-
`;
|
|
33
|
-
function StandardCell({ cellData, values }) {
|
|
34
|
-
const { t } = useSharedTranslation();
|
|
35
|
-
const _getValueByFormat = (cellValue) => {
|
|
36
|
-
switch (cellData.format) {
|
|
37
|
-
case AttributeFormat.date_range:
|
|
38
|
-
const rangeValue = cellValue;
|
|
39
|
-
return stringifyDateRangeValue(rangeValue, t);
|
|
40
|
-
default:
|
|
41
|
-
return cellValue;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
const formattedValuesToDisplay = getValuesToDisplayInCell(values)
|
|
45
|
-
.map(valueData => _getValueByFormat(valueData?.value))
|
|
46
|
-
.join(', ');
|
|
47
|
-
const _getTagStyle = (hexColor) => ({ color: getInvertColor(hexColor) });
|
|
48
|
-
const _getElementToDisplay = () => {
|
|
49
|
-
switch (cellData.format) {
|
|
50
|
-
case AttributeFormat.boolean:
|
|
51
|
-
return (_jsx(Switch, { disabled: true, checked: values[0]?.value, checkedChildren: _jsx(CheckOutlined, {}), unCheckedChildren: _jsx(CloseOutlined, {}) }));
|
|
52
|
-
case AttributeFormat.color:
|
|
53
|
-
if (!isEmpty(values)) {
|
|
54
|
-
return (_jsx(_Fragment, { children: values.map((colorData, index) => {
|
|
55
|
-
const color = new AggregationColor(colorData.raw_value);
|
|
56
|
-
const hexColor = color.toHexString();
|
|
57
|
-
return (_jsx(Tag, { bordered: true, color: hexColor, style: _getTagStyle(hexColor), children: colorData.value }, index));
|
|
58
|
-
}) }));
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
return formattedValuesToDisplay;
|
|
62
|
-
}
|
|
63
|
-
case AttributeFormat.rich_text:
|
|
64
|
-
if (isEmpty(formattedValuesToDisplay)) {
|
|
65
|
-
return formattedValuesToDisplay;
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
return _jsx(RichTextDisplay, { displayedValue: formattedValuesToDisplay });
|
|
69
|
-
}
|
|
70
|
-
default:
|
|
71
|
-
return formattedValuesToDisplay;
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
return (_jsx(Wrapper, { "$format": cellData.format, children: cellData.format === AttributeFormat.extended ? (_jsx(Tooltip, { overlay: formattedValuesToDisplay, children: _jsx(FileTextOutlined, { size: 256, style: { fontSize: '2em' } }) })) : (_jsx(Typography.Paragraph, { ellipsis: {
|
|
75
|
-
rows: 1,
|
|
76
|
-
tooltip: formattedValuesToDisplay,
|
|
77
|
-
}, style: { margin: 0 }, children: _getElementToDisplay() })) }));
|
|
78
|
-
}
|
|
79
|
-
export default StandardCell;
|
|
80
|
-
//# sourceMappingURL=StandardCell.js.map
|
package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StandardCell.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACjF,OAAO,EAAC,cAAc,EAAuB,MAAM,aAAa,CAAC;AACjE,OAAO,EAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAC,MAAM,MAAM,CAAC;AACtD,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,mB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AAC;wBACN,CAAC,CAAC,GACH,CACN,CAAC;gBACN,CAAC;qBAAM,CAAC;oBACJ,OAAO,wBAAwB,CAAC;gBACpC,CAAC;YACL,KAAK,eAAe,CAAC,SAAS;gBAC1B,IAAI,OAAO,CAAC,wBAAwB,CAAC,EAAE,CAAC;oBACpC,OAAO,wBAAwB,CAAC;gBACpC,CAAC;qBAAM,CAAC;oBACJ,OAAO,KAAC,eAAe,IAAC,cAAc,EAAE,wBAAwB,GAAI,CAAC;gBACzE,CAAC;YAEL;gBACI,OAAO,wBAAwB,CAAC;QACxC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,OAAO,eAAU,QAAQ,CAAC,MAAM,YAC5B,QAAQ,CAAC,MAAM,KAAK,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAC5C,KAAC,OAAO,IAAC,OAAO,EAAE,wBAAwB,YACtC,KAAC,gBAAgB,IAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,EAAC,QAAQ,EAAE,KAAK,EAAC,GAAI,GACnD,CACb,CAAC,CAAC,CAAC,CACA,KAAC,UAAU,CAAC,SAAS,IACjB,QAAQ,EAAE;gBACN,IAAI,EAAE,CAAC;gBACP,OAAO,EAAE,wBAAwB;aACpC,EACD,KAAK,EAAE,EAAC,MAAM,EAAE,CAAC,EAAC,YAEjB,oBAAoB,EAAE,GACJ,CAC1B,GACK,CACb,CAAC;AACN,CAAC;AAED,eAAe,YAAY,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 {CheckOutlined, CloseOutlined, FileTextOutlined} from '@ant-design/icons';\nimport {getInvertColor, type IDateRangeValue} from '@leav/utils';\nimport {Switch, Tag, Tooltip, Typography} from 'antd';\nimport isEmpty from 'lodash/isEmpty';\nimport React from 'react';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {AttributeFormat} from '_ui/_gqlTypes';\nimport {stringifyDateRangeValue} from '_ui/_utils';\nimport {type ISimpleCellProps} from '../types';\nimport {getValuesToDisplayInCell} from '../utils';\nimport {AggregationColor} from 'antd/es/color-picker/color';\n\nconst RichTextDisplay = React.lazy(() => import('./ElementsToDisplay/RichTextDisplay'));\n\nconst alignmentByFormat: Record<AttributeFormat, 'left' | 'right' | 'center'> = {\n [AttributeFormat.text]: 'left',\n [AttributeFormat.numeric]: 'right',\n [AttributeFormat.boolean]: 'center',\n [AttributeFormat.date]: 'left',\n [AttributeFormat.date_range]: 'left',\n [AttributeFormat.extended]: 'left',\n [AttributeFormat.encrypted]: 'left',\n [AttributeFormat.color]: 'left',\n [AttributeFormat.rich_text]: 'center',\n};\n\nconst Wrapper = styled.div<{$format: AttributeFormat}>`\n padding: 5px;\n width: 100%;\n text-align: ${props => alignmentByFormat[props.$format]};\n`;\n\nfunction StandardCell({cellData, values}: ISimpleCellProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n const _getValueByFormat = (cellValue: any): string => {\n switch (cellData.format) {\n case AttributeFormat.date_range:\n const rangeValue = cellValue as IDateRangeValue;\n return stringifyDateRangeValue(rangeValue, t);\n default:\n return cellValue;\n }\n };\n\n const formattedValuesToDisplay = getValuesToDisplayInCell(values)\n .map(valueData => _getValueByFormat(valueData?.value))\n .join(', ');\n\n const _getTagStyle = (hexColor: string) => ({color: getInvertColor(hexColor)});\n\n const _getElementToDisplay = () => {\n switch (cellData.format) {\n case AttributeFormat.boolean:\n return (\n <Switch\n disabled\n checked={values[0]?.value}\n checkedChildren={<CheckOutlined />}\n unCheckedChildren={<CloseOutlined />}\n />\n );\n case AttributeFormat.color:\n if (!isEmpty(values)) {\n return (\n <>\n {values.map((colorData, index) => {\n const color = new AggregationColor(colorData.raw_value);\n const hexColor = color.toHexString();\n\n return (\n <Tag key={index} bordered={true} color={hexColor} style={_getTagStyle(hexColor)}>\n {colorData.value}\n </Tag>\n );\n })}\n </>\n );\n } else {\n return formattedValuesToDisplay;\n }\n case AttributeFormat.rich_text:\n if (isEmpty(formattedValuesToDisplay)) {\n return formattedValuesToDisplay;\n } else {\n return <RichTextDisplay displayedValue={formattedValuesToDisplay} />;\n }\n\n default:\n return formattedValuesToDisplay;\n }\n };\n\n return (\n <Wrapper $format={cellData.format}>\n {cellData.format === AttributeFormat.extended ? (\n <Tooltip overlay={formattedValuesToDisplay}>\n <FileTextOutlined size={256} style={{fontSize: '2em'}} />\n </Tooltip>\n ) : (\n <Typography.Paragraph\n ellipsis={{\n rows: 1,\n tooltip: formattedValuesToDisplay,\n }}\n style={{margin: 0}}\n >\n {_getElementToDisplay()}\n </Typography.Paragraph>\n )}\n </Wrapper>\n );\n}\n\nexport default StandardCell;\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 StandardCell from './StandardCell';
|
|
5
|
-
export default StandardCell;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,eAAe,YAAY,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 StandardCell from './StandardCell';\n\nexport default StandardCell;\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 Cell from './Cell';
|
|
5
|
-
export default Cell;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,eAAe,IAAI,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 Cell from './Cell';\n\nexport default Cell;\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type RecordFormElementsValueLinkValue, type RecordFormElementsValueStandardValue, type RecordFormElementsValueTreeValue } from '../../../../hooks/useGetRecordForm';
|
|
2
|
-
import { type LinkCellValue, type LinkCellValues, type SimpleCellValue, type SimpleCellValues, type TreeCellValue, type TreeCellValues } from './types';
|
|
3
|
-
export declare const TypeGuards: {
|
|
4
|
-
isSimpleCellValues: (values: SimpleCellValues | LinkCellValues | TreeCellValues) => values is SimpleCellValues;
|
|
5
|
-
isLinkCellValue: (value: SimpleCellValue | LinkCellValue | TreeCellValue) => value is LinkCellValue;
|
|
6
|
-
isLinkCellValues: (values: SimpleCellValues | LinkCellValues | TreeCellValues) => values is LinkCellValues;
|
|
7
|
-
isTreeCellValue: (value: SimpleCellValue | LinkCellValue | TreeCellValue) => value is TreeCellValue;
|
|
8
|
-
isTreeCellValues: (values: SimpleCellValues | LinkCellValues | TreeCellValues) => values is TreeCellValues;
|
|
9
|
-
isRecordFormElementsValueStandardValue: (value: RecordFormElementsValueStandardValue | RecordFormElementsValueLinkValue | RecordFormElementsValueTreeValue) => value is RecordFormElementsValueStandardValue;
|
|
10
|
-
isRecordFormElementsValuesLinkValue: (value: RecordFormElementsValueStandardValue | RecordFormElementsValueLinkValue | RecordFormElementsValueTreeValue) => value is RecordFormElementsValueLinkValue;
|
|
11
|
-
isRecordFormElementsValuesTreeValue: (value: RecordFormElementsValueStandardValue | RecordFormElementsValueLinkValue | RecordFormElementsValueTreeValue) => value is RecordFormElementsValueTreeValue;
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export const TypeGuards = {
|
|
2
|
-
isSimpleCellValues: (values) => values.length > 0 && 'value' in values[0],
|
|
3
|
-
isLinkCellValue: (value) => 'linkValue' in value,
|
|
4
|
-
isLinkCellValues: (values) => values.length > 0 && TypeGuards.isLinkCellValue(values[0]),
|
|
5
|
-
isTreeCellValue: (value) => 'treeValue' in value,
|
|
6
|
-
isTreeCellValues: (values) => values.length > 0 && TypeGuards.isTreeCellValue(values[0]),
|
|
7
|
-
isRecordFormElementsValueStandardValue: (value) => value && 'value' in value,
|
|
8
|
-
isRecordFormElementsValuesLinkValue: (value) => value && 'linkValue' in value,
|
|
9
|
-
isRecordFormElementsValuesTreeValue: (value) => value && 'treeValue' in value,
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=typeGuards.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,kBAAkB,EAAE,CAAC,MAA0D,EAA8B,EAAE,CAC3G,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC;IAC7C,eAAe,EAAE,CAAC,KAAsD,EAA0B,EAAE,CAChG,WAAW,IAAI,KAAK;IACxB,gBAAgB,EAAE,CAAC,MAA0D,EAA4B,EAAE,CACvG,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC9D,eAAe,EAAE,CAAC,KAAsD,EAA0B,EAAE,CAChG,WAAW,IAAI,KAAK;IACxB,gBAAgB,EAAE,CAAC,MAA0D,EAA4B,EAAE,CACvG,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC9D,sCAAsC,EAAE,CACpC,KAGsC,EACO,EAAE,CAAC,KAAK,IAAI,OAAO,IAAI,KAAK;IAC7E,mCAAmC,EAAE,CACjC,KAGsC,EACG,EAAE,CAAC,KAAK,IAAI,WAAW,IAAI,KAAK;IAC7E,mCAAmC,EAAE,CACjC,KAGsC,EACG,EAAE,CAAC,KAAK,IAAI,WAAW,IAAI,KAAK;CAChF,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 {\n type RecordFormElementsValueLinkValue,\n type RecordFormElementsValueStandardValue,\n type RecordFormElementsValueTreeValue,\n} from '_ui/hooks/useGetRecordForm';\nimport {\n type LinkCellValue,\n type LinkCellValues,\n type SimpleCellValue,\n type SimpleCellValues,\n type TreeCellValue,\n type TreeCellValues,\n} from './types';\n\nexport const TypeGuards = {\n isSimpleCellValues: (values: SimpleCellValues | LinkCellValues | TreeCellValues): values is SimpleCellValues =>\n values.length > 0 && 'value' in values[0],\n isLinkCellValue: (value: SimpleCellValue | LinkCellValue | TreeCellValue): value is LinkCellValue =>\n 'linkValue' in value,\n isLinkCellValues: (values: SimpleCellValues | LinkCellValues | TreeCellValues): values is LinkCellValues =>\n values.length > 0 && TypeGuards.isLinkCellValue(values[0]),\n isTreeCellValue: (value: SimpleCellValue | LinkCellValue | TreeCellValue): value is TreeCellValue =>\n 'treeValue' in value,\n isTreeCellValues: (values: SimpleCellValues | LinkCellValues | TreeCellValues): values is TreeCellValues =>\n values.length > 0 && TypeGuards.isTreeCellValue(values[0]),\n isRecordFormElementsValueStandardValue: (\n value:\n | RecordFormElementsValueStandardValue\n | RecordFormElementsValueLinkValue\n | RecordFormElementsValueTreeValue,\n ): value is RecordFormElementsValueStandardValue => value && 'value' in value,\n isRecordFormElementsValuesLinkValue: (\n value:\n | RecordFormElementsValueStandardValue\n | RecordFormElementsValueLinkValue\n | RecordFormElementsValueTreeValue,\n ): value is RecordFormElementsValueLinkValue => value && 'linkValue' in value,\n isRecordFormElementsValuesTreeValue: (\n value:\n | RecordFormElementsValueStandardValue\n | RecordFormElementsValueLinkValue\n | RecordFormElementsValueTreeValue,\n ): value is RecordFormElementsValueTreeValue => value && 'treeValue' in value,\n};\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type ValueDetailsLinkValueFragment, type ValueDetailsTreeValueFragment, type ValueDetailsValueFragment } from '../../../../_gqlTypes';
|
|
2
|
-
import { type ITableCell } from '../../../../types';
|
|
3
|
-
export type SimpleCellValue = ValueDetailsValueFragment;
|
|
4
|
-
export type SimpleCellValues = SimpleCellValue[];
|
|
5
|
-
export type LinkCellValue = ValueDetailsLinkValueFragment;
|
|
6
|
-
export type LinkCellValues = LinkCellValue[];
|
|
7
|
-
export type TreeCellValue = ValueDetailsTreeValueFragment;
|
|
8
|
-
export type TreeCellValues = TreeCellValue[];
|
|
9
|
-
export interface ISimpleCellProps {
|
|
10
|
-
cellData: ITableCell;
|
|
11
|
-
values: SimpleCellValues;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/components/LibraryItemsList/LibraryItemsListTable/Cell/types.ts"],"names":[],"mappings":"","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 {\n type ValueDetailsLinkValueFragment,\n type ValueDetailsTreeValueFragment,\n type ValueDetailsValueFragment,\n} from '_ui/_gqlTypes';\nimport {type ITableCell} from '_ui/types';\n\nexport type SimpleCellValue = ValueDetailsValueFragment;\nexport type SimpleCellValues = SimpleCellValue[];\n\nexport type LinkCellValue = ValueDetailsLinkValueFragment;\nexport type LinkCellValues = LinkCellValue[];\n\nexport type TreeCellValue = ValueDetailsTreeValueFragment;\nexport type TreeCellValues = TreeCellValue[];\n\nexport interface ISimpleCellProps {\n cellData: ITableCell;\n values: SimpleCellValues;\n}\n"]}
|