diff --git a/packages/components/package-lock.json b/packages/components/package-lock.json index 8639e8e0b3..65d5f3e458 100644 --- a/packages/components/package-lock.json +++ b/packages/components/package-lock.json @@ -1,12 +1,12 @@ { "name": "@labkey/components", - "version": "6.70.0", + "version": "6.70.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@labkey/components", - "version": "6.70.0", + "version": "6.70.1", "license": "SEE LICENSE IN LICENSE.txt", "dependencies": { "@hello-pangea/dnd": "18.0.1", diff --git a/packages/components/package.json b/packages/components/package.json index 3b5c62a661..3ef32062e1 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@labkey/components", - "version": "6.70.0", + "version": "6.70.1", "description": "Components, models, actions, and utility functions for LabKey applications and pages", "sideEffects": false, "files": [ diff --git a/packages/components/releaseNotes/components.md b/packages/components/releaseNotes/components.md index 0759caabba..863905d206 100644 --- a/packages/components/releaseNotes/components.md +++ b/packages/components/releaseNotes/components.md @@ -1,6 +1,10 @@ # @labkey/components Components, models, actions, and utility functions for LabKey applications and pages +### version 6.70.1 +*Released*: 6 November 2025 +- use export-tools to remove unused package exports + ### version 6.70.0 *Released*: 5 November 2025 - Package updates diff --git a/packages/components/src/index.ts b/packages/components/src/index.ts index f56ddd2092..18a0c2fb25 100644 --- a/packages/components/src/index.ts +++ b/packages/components/src/index.ts @@ -26,7 +26,7 @@ import { GridColumn } from './internal/components/base/models/GridColumn'; import { decodePart, encodePart, getSchemaQuery, resolveKey, SchemaQuery } from './public/SchemaQuery'; import { insertColumnFilter, Operation, QueryColumn, QueryLookup } from './public/QueryColumn'; import { QuerySort } from './public/QuerySort'; -import { LastActionStatus, MessageLevel } from './internal/LastActionStatus'; +import { MessageLevel } from './internal/LastActionStatus'; import { inferDomainFromFile, InferDomainResponse } from './public/InferDomainResponse'; import { ViewInfo } from './internal/ViewInfo'; import { QueryInfo, QueryInfoStatus } from './public/QueryInfo'; @@ -38,7 +38,6 @@ import { useContainerPath, useContainerUser } from './internal/components/contai import { handleRequestFailure, request } from './internal/request'; import { - ServerContextConsumer, ServerContextProvider, useServerContext, useServerContextDispatch, @@ -48,14 +47,12 @@ import { import { naturalSort, naturalSortByProperty } from './public/sort'; import { AssayDefinitionModel, AssayDomainTypes, AssayLink } from './internal/AssayDefinitionModel'; import { - applyDevTools, arrayEquals, blurActiveElement, camelCaseToTitleCase, capitalizeFirstChar, caseInsensitive, debounce, - devToolsActive, downloadAttachment, findMissingValues, generateId, @@ -73,14 +70,13 @@ import { parseScientificInt, quoteValueWithDelimiters, setIsTestEnv, - toggleDevTools, uncapitalizeFirstChar, valueIsEmpty, withTransformedKeys, } from './internal/util/utils'; import { AutoForm } from './internal/components/AutoForm'; import { HelpIcon } from './internal/components/HelpIcon'; -import { getUserProperties, getUserRoleDisplay } from './internal/components/user/actions'; +import { getUserRoleDisplay } from './internal/components/user/actions'; import { BeforeUnload } from './internal/util/BeforeUnload'; import { deleteErrorMessage, @@ -128,7 +124,7 @@ import { import { FileTree } from './internal/components/files/FileTree'; import { ReleaseNote } from './internal/components/notifications/ReleaseNote'; import { Notifications } from './internal/components/notifications/Notifications'; -import { getPipelineActivityData, markAllNotificationsAsRead } from './internal/components/notifications/actions'; +import { getPipelineActivityData } from './internal/components/notifications/actions'; import { NotificationsContextProvider, useNotificationsContext, @@ -167,12 +163,7 @@ import { } from './internal/util/Date'; import { SVGIcon, Theme } from './internal/components/base/SVGIcon'; import { CreatedModified } from './internal/components/base/CreatedModified'; -import { - NotificationItemModel, - Persistence, - ServerActivityData, - ServerNotificationModel, -} from './internal/components/notifications/model'; +import { Persistence, ServerNotificationModel } from './internal/components/notifications/model'; import { RequiresPermission } from './internal/components/base/Permissions'; import { PaginationButtons } from './internal/components/buttons/PaginationButtons'; import { ManageDropdownButton } from './internal/components/buttons/ManageDropdownButton'; @@ -262,10 +253,6 @@ import { MAX_EDITABLE_GRID_ROWS, MAX_SELECTION_ACTION_ROWS, NO_UPDATES_MESSAGE, - PIPELINE_JOB_NOTIFICATION_EVENT, - PIPELINE_JOB_NOTIFICATION_EVENT_ERROR, - PIPELINE_JOB_NOTIFICATION_EVENT_START, - PIPELINE_JOB_NOTIFICATION_EVENT_SUCCESS, SHARED_CONTAINER_PATH, } from './internal/constants'; import { getQueryParams, pushParameters, removeParameters, replaceParameters } from './internal/util/URL'; @@ -283,7 +270,7 @@ import { import { ExperimentRunResolver, ListResolver } from './internal/url/AppURLResolver'; import { NOT_ANY_FILTER_TYPE } from './internal/url/NotAnyFilterType'; import { genCellKey, incrementRowCountMetric, parseCellKey } from './internal/components/editable/utils'; -import { EditableGrid, EditableGridTabs } from './internal/components/editable/EditableGrid'; +import { EditableGrid } from './internal/components/editable/EditableGrid'; import { AliasRenderer } from './internal/renderers/AliasRenderer'; import { ANCESTOR_LOOKUP_CONCEPT_URI, AncestorRenderer } from './internal/renderers/AncestorRenderer'; @@ -316,7 +303,7 @@ import { } from './internal/components/forms/utils'; import { QueryFormInputs } from './internal/components/forms/QueryFormInputs'; import { LookupSelectInput } from './internal/components/forms/input/LookupSelectInput'; -import { SelectInput, SelectInputImpl } from './internal/components/forms/input/SelectInput'; +import { SelectInput } from './internal/components/forms/input/SelectInput'; import { DatePickerInput } from './internal/components/forms/input/DatePickerInput'; import { FileInput } from './internal/components/forms/input/FileInput'; import { TextInput } from './internal/components/forms/input/TextInput'; @@ -394,7 +381,6 @@ import { getLookupRowIdsFromSelection, getSampleSet, getSampleTypeDetails, - getSelectionLineageData, updateSampleStorageData, } from './internal/components/samples/actions'; import { SampleTypeEmptyAlert } from './internal/components/samples/SampleTypeEmptyAlert'; @@ -433,10 +419,9 @@ import { AssayStateModel, AssayUploadResultModel } from './internal/components/a import { clearAssayDefinitionCache, getAssayDefinitions, getProtocol } from './internal/components/assay/actions'; import { createHorizontalBarLegendData } from './internal/components/chart/utils'; -import { ReportItemModal, ReportList, ReportListItem } from './internal/components/report-list/ReportList'; +import { ReportItemModal, ReportList } from './internal/components/report-list/ReportList'; import { createGridModel, - getImmediateChildLineageFilterValue, getLineageFilterValue, getPageNumberChangeURL, invalidateLineageResults, @@ -453,7 +438,7 @@ import { import { LineageDepthLimitMessage, LineageGraph } from './internal/components/lineage/LineageGraph'; import { SampleTypeLineageCounts } from './internal/components/lineage/SampleTypeLineageCounts'; import { NavigationBar } from './internal/components/navigation/NavigationBar'; -import { HOME_PATH, HOME_TITLE, SEARCH_PLACEHOLDER } from './internal/components/navigation/constants'; +import { HOME_PATH, HOME_TITLE } from './internal/components/navigation/constants'; import { FindByIdsModal } from './internal/components/search/FindByIdsModal'; import { QueryFilterPanel } from './internal/components/search/QueryFilterPanel'; import { ProductNavigationMenu } from './internal/components/productnavigation/ProductNavigationMenu'; @@ -492,7 +477,6 @@ import { import { ExpandableContainer } from './internal/components/ExpandableContainer'; import { Principal, SecurityAssignment, SecurityPolicy, SecurityRole } from './internal/components/permissions/models'; import { - fetchContainerSecurityPolicy, getInactiveUsers, getPrincipals, getPrincipalsById, @@ -502,11 +486,8 @@ import { import { getContainersForPermission, getDataDeleteConfirmationData, - getDataOperationConfirmationData, - getDeleteConfirmationData, getEntityTypeOptions, getExcludedDataTypeNames, - getOperationConfirmationData, getOrderedSelectedMappedKeysFromQueryModel, getParentTypeDataForLineage, getSampleIdentifyingFieldGridData, @@ -520,7 +501,6 @@ import { DATA_CLASS_IMPORT_PREFIX, DataClassDataType, DataOperation, - ParentEntityLineageColumns, ParentEntityRequiredColumns, SAMPLE_SET_IMPORT_PREFIX, SampleParentDataType, @@ -531,7 +511,6 @@ import { getModuleCustomLabels } from './internal/components/labels/actions'; import { createEntityParentKey, getCellKeyColumnMap, - getEntityDescription, getEntityNoun, getInitialParentChoices, getSampleIdCellKey, @@ -559,7 +538,6 @@ import { createOrderedSnapshotSelectionKey, createSnapshotSelectionKey, createSnapshotSelectionKeyStr, - getQueryModelExportParams, runDetailsColumnsForQueryModel, } from './public/QueryModel/utils'; import { CONFIRM_MESSAGE, useRouteLeave } from './internal/util/RouteLeave'; @@ -598,7 +576,6 @@ import { DomainDetails, DomainException, DomainField, - PropertyValidator, } from './internal/components/domainproperties/models'; import { SAMPLE_TYPE } from './internal/components/domainproperties/PropDescType'; import DomainForm from './internal/components/domainproperties/DomainForm'; @@ -611,11 +588,7 @@ import { IssuesListDefModel } from './internal/components/domainproperties/issue import { IssuesListDefDesignerPanels } from './internal/components/domainproperties/issues/IssuesListDefDesignerPanels'; import { DatasetDesignerPanels } from './internal/components/domainproperties/dataset/DatasetDesignerPanels'; import { DatasetModel } from './internal/components/domainproperties/dataset/models'; -import { - fetchListDesign, - getListIdFromDomainId, - getListProperties, -} from './internal/components/domainproperties/list/actions'; +import { fetchListDesign, getListIdFromDomainId } from './internal/components/domainproperties/list/actions'; import { fetchIssuesListDefDesign } from './internal/components/domainproperties/issues/actions'; import { fetchDatasetDesign } from './internal/components/domainproperties/dataset/actions'; import { SampleTypeDesigner } from './internal/components/domainproperties/samples/SampleTypeDesigner'; @@ -629,7 +602,6 @@ import { } from './internal/components/domainproperties/dataclasses/actions'; import { DesignerDetailTooltip } from './internal/components/domainproperties/DesignerDetailPanel'; import { DomainFieldLabel } from './internal/components/domainproperties/DomainFieldLabel'; -import { RangeValidationOptionsModal } from './internal/components/domainproperties/validation/RangeValidationOptions'; import { DataTypeFoldersPanel } from './internal/components/domainproperties/DataTypeFoldersPanel'; import { AssayDesignEmptyAlert } from './internal/components/assay/AssayDesignEmptyAlert'; @@ -664,7 +636,6 @@ import { DEFAULT_SAMPLE_FIELD_CONFIG, FIND_BY_IDS_QUERY_PARAM, IS_ALIQUOT_COL, - SAMPLE_ALL_PROJECT_LOOKUP_FIELDS, SAMPLE_DATA_EXPORT_CONFIG, SAMPLE_ID_FIND_FIELD, SAMPLE_IMPORT_EXTRA_ALLOWED_COLUMNS, @@ -674,7 +645,6 @@ import { SAMPLE_STATUS_REQUIRED_COLUMNS, SAMPLE_STORAGE_COLUMNS, SampleOperation, - SAMPLES_WITH_TYPES_FILTER, SELECTION_KEY_TYPE, STORED_AMOUNT_FIELDS, UNIQUE_ID_FIND_FIELD, @@ -696,13 +666,10 @@ import { AddToPicklistMenuItem } from './internal/components/picklist/AddToPickl import { deletePicklists, getOrderedSelectedPicklistSamples, - getPicklistFromId, getPicklistListingContainerFilter, getSelectedPicklistSamples, - updatePicklist, } from './internal/components/picklist/actions'; import { PrintLabelsModal } from './internal/components/labelPrinting/PrintLabelsModal'; -import { BarTenderConfiguration } from './internal/components/labelPrinting/models'; import { useLabelPrintingContext } from './internal/components/labelPrinting/LabelPrintingContextProvider'; import { BarTenderSettingsForm } from './internal/components/labelPrinting/BarTenderSettingsForm'; import { ColumnSelectionModal } from './internal/components/ColumnSelectionModal'; @@ -869,11 +836,7 @@ import { Key, useEnterEscape } from './public/useEnterEscape'; import { DateInput } from './internal/components/DateInput'; import { EditInlineField } from './internal/components/EditInlineField'; import { FileAttachmentArea } from './internal/components/files/FileAttachmentArea'; -import { AnnouncementRenderType } from './internal/announcements/model'; import { Discussions } from './internal/announcements/Discussions'; -import { Thread } from './internal/announcements/Thread'; -import { ThreadBlock } from './internal/announcements/ThreadBlock'; -import { ThreadEditor } from './internal/announcements/ThreadEditor'; import { useModalState, useNotAuthorized, useNotFound, usePortalRef, useTimeout } from './internal/hooks'; import { TEST_BIO_LIMS_ENTERPRISE_MODULE_CONTEXT, @@ -1139,7 +1102,6 @@ export { ANCESTOR_LOOKUP_CONCEPT_URI, ANCESTOR_MATCHES_ALL_OF_FILTER_TYPE, AncestorRenderer, - AnnouncementRenderType, APIKeysPanel, App, AppContextProvider, @@ -1147,7 +1109,6 @@ export { AppContextTestProvider, AppendUnits, AppLink, - applyDevTools, applyURL, AppModel, AppURL, @@ -1181,7 +1142,6 @@ export { AutoForm, BACKGROUND_IMPORT_MIN_FILE_SIZE, BACKGROUND_IMPORT_MIN_ROW_SIZE, - BarTenderConfiguration, BarTenderSettingsForm, BaseDomainDesigner, BaseModal, @@ -1266,7 +1226,6 @@ export { DetailPanel, DetailPanelHeader, DetailPanelWithModel, - devToolsActive, DisableableAnchor, DisableableButton, DisableableMenuItem, @@ -1291,7 +1250,6 @@ export { EditableDetailPanel, EditableGrid, EditableGridEvent, - EditableGridTabs, EditInlineField, EditorMode, EditorModel, @@ -1312,7 +1270,6 @@ export { ExpirationDateColumnRenderer, EXPORT_TYPES, ExtendedMap, - fetchContainerSecurityPolicy, fetchDataClass, fetchDatasetDesign, fetchDomain, @@ -1367,14 +1324,11 @@ export { getContainersForPermission, getDataClassDetails, getDataDeleteConfirmationData, - getDataOperationConfirmationData, getDateFNSDateFormat, getDateTimeInputOptions, getDateTimeSettingFormat, getDateTimeSettingWarning, getDefaultAPIWrapper, - getDeleteConfirmationData, - getEntityDescription, getEntityNoun, getEntityTypeOptions, getEventDataValueDisplay, @@ -1390,7 +1344,6 @@ export { getGroupedSampleDomainFields, getGroupMembership, getHelpLink, - getImmediateChildLineageFilterValue, getInactiveUsers, getInitialParentChoices, getJsonDateFormatString, @@ -1400,13 +1353,11 @@ export { getLegalIdentifier, getLineageFilterValue, getListIdFromDomainId, - getListProperties, getLookupRowIdsFromSelection, getMetricUnitOptions, getModuleCustomLabels, getNonStandardFormatWarning, getOmittedSampleTypeColumns, - getOperationConfirmationData, getOperationNotAllowedMessage, getOperationNotAllowedMessageFromCounts, getOperationNotPermittedMessage, @@ -1416,7 +1367,6 @@ export { getParentTypeDataForLineage, getParsedRelativeDateStr, getPermissionRestrictionMessage, - getPicklistFromId, getPicklistListingContainerFilter, getPipelineActivityData, getPrincipals, @@ -1424,7 +1374,6 @@ export { getProtocol, getQueryDetails, getQueryFormLabelFieldName, - getQueryModelExportParams, getQueryParams, getRequestAuditDetail, getRolesByUniqueName, @@ -1448,12 +1397,10 @@ export { getSelectedDataDeprecated, getSelectedPicklistSamples, getSelectedRows, - getSelectionLineageData, getSourceDomainDefaultSystemFields, getTestAPIWrapper, getTimelineEntityUrl, getUniqueIdColumnMetadata, - getUserProperties, getUserRoleDisplay, getUsersWithPermissions, getValueFromRow, @@ -1540,7 +1487,6 @@ export { LabelColorRenderer, LabelHelpTip, LabelOverlay, - LastActionStatus, LINEAGE_DIRECTIONS, LINEAGE_GROUPING_GENERATIONS, LineageDepthLimitMessage, @@ -1568,7 +1514,6 @@ export { makeTestQueryModel, ManageDropdownButton, ManageSampleStatusesPanel, - markAllNotificationsAsRead, MAX_EDITABLE_GRID_ROWS, MAX_SELECTION_ACTION_ROWS, MEASUREMENT_UNITS, @@ -1591,7 +1536,6 @@ export { NoLinkRenderer, NOT_ANY_FILTER_TYPE, NOT_IN_EXP_DESCENDANTS_OF_FILTER_TYPE, - NotificationItemModel, Notifications, NotificationsContextProvider, OntologyBrowserFilterPanel, @@ -1606,7 +1550,6 @@ export { PageHeader, Pagination, PaginationButtons, - ParentEntityLineageColumns, ParentEntityRequiredColumns, ParentImportAliasRenderer, parseCellKey, @@ -1620,10 +1563,6 @@ export { PicklistButton, PicklistCreationMenuItem, PicklistEditModal, - PIPELINE_JOB_NOTIFICATION_EVENT, - PIPELINE_JOB_NOTIFICATION_EVENT_ERROR, - PIPELINE_JOB_NOTIFICATION_EVENT_START, - PIPELINE_JOB_NOTIFICATION_EVENT_SUCCESS, POOLED_SAMPLE_CREATION, Popover, Principal, @@ -1633,7 +1572,6 @@ export { ProductMenuModel, ProductNavigationMenu, Progress, - PropertyValidator, pushParameters, QUERY_UPDATE_AUDIT_QUERY, QueryColumn, @@ -1648,7 +1586,6 @@ export { QuerySort, quoteValueWithDelimiters, RANGE_URIS, - RangeValidationOptionsModal, registerDefaultURLMappers, registerFilterType, registerInputRenderer, @@ -1662,7 +1599,6 @@ export { replaceSelected, ReportItemModal, ReportList, - ReportListItem, request, RequiresPermission, resolveDetailFieldValue, @@ -1672,7 +1608,6 @@ export { ResponsiveMenuButton, ResponsiveMenuButtonGroup, runDetailsColumnsForQueryModel, - SAMPLE_ALL_PROJECT_LOOKUP_FIELDS, SAMPLE_DATA_EXPORT_CONFIG, SAMPLE_FINDER_SESSION_PREFIX, SAMPLE_ID_FIELD_KEY, @@ -1694,7 +1629,6 @@ export { SampleOperation, SampleParentDataType, SamplePropertyDataType, - SAMPLES_WITH_TYPES_FILTER, SamplesEditButtonSections, SampleStateType, SampleStatusLegend, @@ -1712,7 +1646,6 @@ export { SchemaDetails, SchemaQuery, SCHEMAS, - SEARCH_PLACEHOLDER, SearchCategory, SearchField, searchFiltersToJson, @@ -1725,13 +1658,10 @@ export { selectDistinctRows, selectGridIdsFromTransactionId, SelectInput, - SelectInputImpl, SELECTION_KEY_TYPE, SelectionMenuItem, selectRows, selectRowsDeprecated, - ServerActivityData, - ServerContextConsumer, ServerContextProvider, ServerNotificationModel, setDomainFields, @@ -1759,14 +1689,10 @@ export { TextAreaInput, TextInput, Theme, - Thread, - ThreadBlock, - ThreadEditor, TimelineEventModel, TimelineView, Tip, ToggleButtons, - toggleDevTools, ToggleIcon, toggleParameter, Tooltip, @@ -1777,7 +1703,6 @@ export { updateCellKeySampleIdMap, updateCellValuesForSampleIds, updateGridFromBulkForm, - updatePicklist, updateRowFieldValue, updateRows, updateSampleStorageData, @@ -1841,9 +1766,6 @@ export { wrapDraggable, }; -export type { ClearSelectedOptions, ReplaceSelectedOptions } from './internal/actions'; -export type { ThreadBlockProps } from './internal/announcements/ThreadBlock'; -export type { ThreadEditorProps } from './internal/announcements/ThreadEditor'; export type { ComponentsAPIWrapper } from './internal/APIWrapper'; export type { AppReducerState, ProductMenuState, ServerNotificationState } from './internal/app/reducers'; export type { @@ -1855,18 +1777,13 @@ export type { } from './internal/AppContext'; export type { GroupMembership, Groups, Member } from './internal/components/administration/models'; export type { WithAdminAppContext } from './internal/components/administration/useAdminAppContext'; -export type { - DuplicateFilesResponse, - GetAssayDefinitionsOptions, - GetProtocolOptions, -} from './internal/components/assay/actions'; +export type { DuplicateFilesResponse, GetProtocolOptions } from './internal/components/assay/actions'; export type { AssayPickerSelectionModel } from './internal/components/assay/AssayPicker'; export type { InjectedAssayModel, WithAssayModelProps } from './internal/components/assay/withAssayModels'; export type { AuditQuery } from './internal/components/auditlog/constants'; export type { TimelineGroupedEventInfo } from './internal/components/auditlog/models'; export type { Field, FormSchema, Option } from './internal/components/AutoForm'; export type { GridProps } from './internal/components/base/Grid'; -export type { PageHeaderProps } from './internal/components/base/PageHeader'; export type { ModuleContext, ServerContext } from './internal/components/base/ServerContext'; export type { PaginationButtonsProps } from './internal/components/buttons/PaginationButtons'; export type { HorizontalBarData, HorizontalBarLegendData } from './internal/components/chart/utils'; @@ -1883,7 +1800,6 @@ export type { IFieldChange, SystemField, } from './internal/components/domainproperties/models'; -export type { MetricUnitProps } from './internal/components/domainproperties/samples/models'; export type { PlacementType } from './internal/components/editable/Controls'; export type { BulkAddData, EditableGridChange, EditableGridProps } from './internal/components/editable/EditableGrid'; export type { @@ -1897,17 +1813,14 @@ export type { UpdatedRowValue, ValueDescriptor, } from './internal/components/editable/models'; -export type { GetParentTypeDataForLineage } from './internal/components/entities/actions'; export type { CrossFolderSelectionResult, DataTypeEntity, DisplayObject, EntityChoice, EntityDataType, - EntityInputProps, FilterProps, FolderConfigurableDataType, - IDerivePayload, IEntityTypeOption, IImportAlias, IParentOption, @@ -1916,13 +1829,7 @@ export type { FileAttachmentFormModel, IFile } from './internal/components/files export type { UsersLoader } from './internal/components/forms/actions'; export type { WithFormStepsProps } from './internal/components/forms/FormStep'; export type { DisableableInputProps } from './internal/components/forms/input/DisableableInput'; -export type { - FormsyInputProps, - FormsySelectOption, - FormsySelectProps, - FormsyTextAreaProps, -} from './internal/components/forms/input/FormsyReactComponents'; -export type { InputRendererComponent } from './internal/components/forms/input/InputRenderFactory'; +export type { FormsySelectOption } from './internal/components/forms/input/FormsyReactComponents'; export type { SelectInputChange, SelectInputOption, @@ -1930,17 +1837,11 @@ export type { } from './internal/components/forms/input/SelectInput'; export type { InputRendererProps } from './internal/components/forms/input/types'; export type { ISelectInitData } from './internal/components/forms/model'; -export type { PageDetailHeaderProps } from './internal/components/forms/PageDetailHeader'; export type { QuerySelectChange, - QuerySelectOptionComponent, QuerySelectOptionProps, QuerySelectOwnProps, } from './internal/components/forms/QuerySelect'; -export type { - LabelPrintingContext, - LabelPrintingContextProps, -} from './internal/components/labelPrinting/LabelPrintingContextProvider'; export type { LabelsAPIWrapper } from './internal/components/labels/APIWrapper'; export type { VisGraphNode } from './internal/components/lineage/models'; export type { LineageGroupingOptions } from './internal/components/lineage/types'; @@ -1954,22 +1855,20 @@ export type { PicklistDeletionData } from './internal/components/picklist/action export type { GroupedSampleDisplayColumns, SampleStorageData } from './internal/components/samples/actions'; export type { EntityCreationTypeModel, - FindField, GroupedSampleFields, SampleStatus, StorageActionStatusCounts, } from './internal/components/samples/models'; -export type { SearchHitWithCardData, SearchResultWithCardData } from './internal/components/search/actions'; -export type { SearchHit, SearchMetadata, SearchOptions, SearchResult } from './internal/components/search/actions'; -export type { FieldFilter, SearchResultCardData } from './internal/components/search/models'; -export type { FetchedGroup, SecurityAPIWrapper } from './internal/components/security/APIWrapper'; +export type { SearchHit, SearchOptions } from './internal/components/search/actions'; +export type { FieldFilter } from './internal/components/search/models'; +export type { SecurityAPIWrapper } from './internal/components/security/APIWrapper'; export type { IDataViewInfo } from './internal/DataViewInfo'; export type { BSStyle } from './internal/dropdowns'; export type { MenuSectionItem } from './internal/DropdownSection'; export type { UseTimeout } from './internal/hooks'; export type { ModalProps } from './internal/Modal'; export type { TriggerType } from './internal/OverlayTrigger'; -export type { IImportData, ISelectRowsResult } from './internal/query/api'; +export type { ISelectRowsResult } from './internal/query/api'; export type { ExecuteSqlOptions, ExecuteSqlResponse, @@ -1987,13 +1886,10 @@ export type { URLMapper } from './internal/url/URLResolver'; export type { NavigateFn } from './internal/url/useAppNavigate'; export type { LoadableState, Loader } from './internal/useLoadableState'; export type { ContainerFormats, DateTimeSettingProp } from './internal/util/Date'; -export type { MeasurementUnit } from './internal/util/measurement'; export type { UseRequestHandler } from './internal/util/RequestHandler'; export type { InjectedRouteLeaveProps, WrappedRouteLeaveProps } from './internal/util/RouteLeave'; export type { QueryParams } from './internal/util/URL'; -export type { FileAttachmentFormProps } from './public/files/FileAttachmentForm'; export type { FileSizeLimitProps } from './public/files/models'; -export type { QueryLookupFilterGroup, QueryLookupFilterGroupFilter } from './public/QueryColumn'; export type { ImportTemplate } from './public/QueryInfo'; export type { EditableDetailPanelProps } from './public/QueryModel/EditableDetailPanel'; export type { QueryConfig } from './public/QueryModel/QueryModel'; diff --git a/packages/components/src/internal/components/base/PageHeader.tsx b/packages/components/src/internal/components/base/PageHeader.tsx index 10b6e5eb46..207a0cdb20 100644 --- a/packages/components/src/internal/components/base/PageHeader.tsx +++ b/packages/components/src/internal/components/base/PageHeader.tsx @@ -17,7 +17,7 @@ import React, { FC, PropsWithChildren } from 'react'; import { Notifications } from '../notifications/Notifications'; -export interface PageHeaderProps extends PropsWithChildren { +interface PageHeaderProps extends PropsWithChildren { iconCls?: string; showNotifications?: boolean; title?: string; diff --git a/packages/components/src/internal/components/base/ServerContext.tsx b/packages/components/src/internal/components/base/ServerContext.tsx index 0b8b25f176..9275f495da 100644 --- a/packages/components/src/internal/components/base/ServerContext.tsx +++ b/packages/components/src/internal/components/base/ServerContext.tsx @@ -71,7 +71,7 @@ export const useServerContextDispatch = (): AppLabKeyDispatch => { return context; }; -export const ServerContextConsumer = Context.Consumer; +const ServerContextConsumer = Context.Consumer; export const withAppUser = (ctx: LabKey): ServerContext => { return Object.assign({}, ctx, { diff --git a/packages/components/src/internal/components/forms/PageDetailHeader.tsx b/packages/components/src/internal/components/forms/PageDetailHeader.tsx index 18aa0ee7c5..3a819196a9 100644 --- a/packages/components/src/internal/components/forms/PageDetailHeader.tsx +++ b/packages/components/src/internal/components/forms/PageDetailHeader.tsx @@ -17,7 +17,7 @@ import React, { PropsWithChildren, PureComponent, ReactNode } from 'react'; import { SVGIcon } from '../base/SVGIcon'; -export interface PageDetailHeaderProps extends PropsWithChildren { +interface PageDetailHeaderProps extends PropsWithChildren { description?: ReactNode; iconAltText?: string; iconDir?: string; diff --git a/packages/components/src/internal/components/forms/QuerySelect.tsx b/packages/components/src/internal/components/forms/QuerySelect.tsx index 3d2899a34d..aeaab0f02a 100644 --- a/packages/components/src/internal/components/forms/QuerySelect.tsx +++ b/packages/components/src/internal/components/forms/QuerySelect.tsx @@ -83,7 +83,7 @@ export interface QuerySelectOptionProps extends Pick; +type QuerySelectOptionComponent = ComponentType; interface OptionRendererProps extends Pick { OptionComponent?: QuerySelectOptionComponent; diff --git a/packages/components/src/internal/components/lineage/actions.ts b/packages/components/src/internal/components/lineage/actions.ts index 4fffdc7bf7..fce4a012e7 100644 --- a/packages/components/src/internal/components/lineage/actions.ts +++ b/packages/components/src/internal/components/lineage/actions.ts @@ -232,10 +232,6 @@ export function getLineageFilterValue(lsid: string, depth: number | string): str return '{json:' + JSON.stringify(filterVals) + '}'; } -export function getImmediateChildLineageFilterValue(lsid: string): string { - return getLineageFilterValue(lsid, 1); -} - export interface LineageAPIWrapper { loadLineageResult: ( seed: string, diff --git a/packages/components/src/internal/components/samples/constants.ts b/packages/components/src/internal/components/samples/constants.ts index 3c5d309795..544220bfcf 100644 --- a/packages/components/src/internal/components/samples/constants.ts +++ b/packages/components/src/internal/components/samples/constants.ts @@ -210,9 +210,6 @@ export const SAMPLE_IMPORT_EXTRA_ALLOWED_COLUMNS = [ 'ExpirationDate', ]; -// those lookup values are at Home project level, no need to reload on target folder change -export const SAMPLE_ALL_PROJECT_LOOKUP_FIELDS = ['SampleState', 'Units']; - export const SAMPLE_DATA_EXPORT_CONFIG = { 'exportAlias.name': DEFAULT_SAMPLE_FIELD_CONFIG.label, 'exportAlias.aliquotedFromLSID': ALIQUOTED_FROM_COL, diff --git a/packages/components/src/internal/components/search/actions.ts b/packages/components/src/internal/components/search/actions.ts index 7dd0e903b9..3516403e4c 100644 --- a/packages/components/src/internal/components/search/actions.ts +++ b/packages/components/src/internal/components/search/actions.ts @@ -29,7 +29,7 @@ export interface SearchHit { url?: string; } -export interface SearchMetadata { +interface SearchMetadata { idProperty: string; root: string; successProperty: string; @@ -117,11 +117,11 @@ export const search: Search = (options, moduleContext, applyURLResolver = true, }); }; -export interface SearchHitWithCardData extends SearchHit { +interface SearchHitWithCardData extends SearchHit { cardData: SearchResultCardData; } -export interface SearchResultWithCardData extends Omit { +interface SearchResultWithCardData extends Omit { hits: SearchHitWithCardData[]; } diff --git a/packages/components/src/internal/util/utils.ts b/packages/components/src/internal/util/utils.ts index 540818275f..4aecd24ddb 100644 --- a/packages/components/src/internal/util/utils.ts +++ b/packages/components/src/internal/util/utils.ts @@ -111,7 +111,7 @@ export function not(predicate: (...args: any[]) => boolean): (...args: any[]) => }; } -export function applyDevTools() { +function applyDevTools() { if (devToolsActive() && window['devToolsExtension']) { return window['devToolsExtension'](); }