@elliemae/ds-shuttle-v2 3.70.0-alpha.13 → 3.70.0-alpha.14

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable max-lines */\nimport { type DSButtonT, type DSButtonV3T } from '@elliemae/ds-button-v2';\nimport { type DnDKitTree, type useSortable } from '@elliemae/ds-drag-and-drop';\nimport { type DSControlledCheckboxT } from '@elliemae/ds-form-checkbox';\nimport { type DSInputTextT } from '@elliemae/ds-form-input-text';\nimport { type useHeadlessTooltip } from '@elliemae/ds-hooks-headless-tooltip';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n getPropsPerDatatestIdPropTypes,\n getPropsPerSlotPropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { ZustandT } from '@elliemae/ds-zustand-helpers';\nimport type React from 'react';\nimport type { useAutoCalculated } from './config/useAutoCalculated/index.js';\nimport type { ACTIONS_FOCUSES, DropIndicatorPosition, ITEMS_FOCUSES, REGIONS_FOCUSES } from './constants/index.js';\nimport { DSShuttleV2DataTestIds, DSShuttleV2Name, DSShuttleV2Slots } from './constants/index.js';\n\nexport declare namespace DSShuttleV2T {\n export type Datum<D extends Record<string, unknown> = Record<string, unknown>> = D;\n export type PanelMetaInfo = { isDestinationPanel: boolean; hasMultipleSelection?: boolean; height?: number };\n type HydratedId = string;\n\n export type DatumInternalMeta = {\n isFirst: boolean;\n isLast: boolean;\n isSelected: boolean;\n softDeleted: boolean;\n localIndex: number;\n hydratedId: HydratedId;\n hydratedPreventMove: boolean;\n };\n export type DatumRenderFlags = {\n selectionPrevented: boolean;\n withActions: boolean;\n withMoveBtn: boolean;\n withDrilldownBtn: boolean;\n internallyDisabledMove: boolean;\n internallyDisabledDrilldown: boolean;\n };\n\n export type DropIndicatorPositionValues = TypescriptHelpersT.ObjectValues<typeof DropIndicatorPosition>;\n\n // =============================================================================\n // Hydratables section - panel level hydratables\n // =============================================================================\n type RequiredPanelHydratables = Record<string, never>;\n type OptionalPanelHydratables = {\n batchActionableButtonProps: Record<string, unknown>;\n };\n export type PanelHydratables = RequiredPanelHydratables & OptionalPanelHydratables;\n\n // =============================================================================\n // Hydratables section - datum level hydratables\n // shared usage between internal and custom component\n // =============================================================================\n export type PrimaryKeyHydratables = {\n id: HydratedId;\n };\n type FunctionalHydratables = {\n preventMove?: boolean;\n };\n type RequiredDatumHydratablesWithoutComponents = {\n label: string;\n };\n type OptionalDatumHydratablesWithoutComponents = {\n subtitle?: string;\n preventDrilldown?: boolean;\n };\n type DatumHydratablesWithoutComponents = PrimaryKeyHydratables &\n FunctionalHydratables &\n RequiredDatumHydratablesWithoutComponents &\n OptionalDatumHydratablesWithoutComponents;\n // =============================================================================\n // Hydratables section - datum level hydratables\n // Custom component-only\n // =============================================================================\n export type ComponentProps<D extends Record<string, unknown> = Record<string, unknown>> = {\n datum: Datum<D>;\n thisItemIsFocused: boolean;\n panelMetaInfo: PanelMetaInfo;\n datumInternalMeta: DatumInternalMeta;\n datumHydratables: DatumHydratablesWithoutComponents;\n tooltipHelpers?: ReturnType<typeof useHeadlessTooltip>;\n };\n // eslint-disable-next-line @typescript-eslint/ban-types\n type RequiredDatumHydratablesComponents = {};\n type OptionalDatumHydratablesComponents<D extends Record<string, unknown> = Record<string, unknown>> = {\n Icon?: React.ComponentType<ComponentProps<D>>;\n CustomRenderer?: React.ComponentType<ComponentProps<D>> | null;\n };\n // =============================================================================\n // Hydratables section - datum level hydratables\n // Finals\n // =============================================================================\n type RequiredDatumHydratables = RequiredDatumHydratablesWithoutComponents & RequiredDatumHydratablesComponents;\n type OptionalDatumHydratables<D extends Record<string, unknown> = Record<string, unknown>> =\n OptionalDatumHydratablesWithoutComponents & OptionalDatumHydratablesComponents<D>;\n export type DatumHydratables<D extends Record<string, unknown> = Record<string, unknown>> = PrimaryKeyHydratables &\n RequiredDatumHydratables &\n OptionalDatumHydratables<D>;\n\n // =============================================================================\n // Hydraters\n // =============================================================================\n export type PrimaryKeyHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<PrimaryKeyHydratables, [Datum<D>]>;\n export type FunctionalHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<FunctionalHydratables, [Datum<D>, Partial<PanelMetaInfo>]>;\n type HydratersMeta = { datumMeta: DatumInternalMeta; panelMetaInfo: PanelMetaInfo };\n type RequiredDatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<RequiredDatumHydratables, [Datum<D>, HydratersMeta]>;\n type OptionalDatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<OptionalDatumHydratables<D>, [Datum<D>, HydratersMeta]>;\n\n type DatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> = PrimaryKeyHydraters<D> &\n FunctionalHydraters<D> &\n RequiredDatumHydraters<D> &\n OptionalDatumHydraters<D>;\n\n type RequiredPanelHydraters = TypescriptHelpersT.Hydraters<RequiredPanelHydratables, [PanelMetaInfo]>;\n type OptionalPanelHydraters = Partial<TypescriptHelpersT.Hydraters<OptionalPanelHydratables, [PanelMetaInfo]>>;\n type PanelHydraters = RequiredPanelHydraters & OptionalPanelHydraters;\n\n // =============================================================================\n // Datum & Internals structures\n // =============================================================================\n export type ConfiguredDatum<D extends Record<string, unknown> = Record<string, unknown>> = DatumInternalMeta & {\n original: Datum<D>;\n };\n export interface ItemMeta<D extends Record<string, unknown> = Record<string, unknown>> extends PanelMetaInfo {\n datum: Datum<D>;\n datumHydratables: DatumHydratables<D>;\n datumInternalMeta: DatumInternalMeta;\n datumRenderFlags: DatumRenderFlags;\n withDragNDrop: boolean;\n useSortableHelpers?: ReturnType<typeof useSortable>;\n }\n\n // =============================================================================\n // Slot argument types \u2014 per-slot getOwnerPropsArguments shapes\n // =============================================================================\n export type DragHandleArguments = {\n id: string;\n innerRef: React.RefObject<HTMLDivElement> | React.RefCallback<HTMLDivElement>;\n useSortableHelpers: ReturnType<typeof useSortable>;\n isDndActive: boolean;\n isDragging: boolean;\n disabled?: boolean;\n ariaLabelledby?: string;\n };\n\n export type ItemMidSectionArguments<D extends Record<string, unknown> = Record<string, unknown>> = ItemMeta<D> & {\n tooltipHelpers?: ComponentProps<D>['tooltipHelpers'];\n };\n\n // The to-source / to-destination icon slots render in two contexts (per-item action row and\n // bulk-action button). Both receive this single unified shape: the panel info is always present,\n // and the per-item extras (only available in the item-row context) are optional under extraMetaInfo.\n export type ItemActionIconArguments<D extends Record<string, unknown> = Record<string, unknown>> = {\n panelMetaInfo: PanelMetaInfo;\n extraMetaInfo?: { itemMeta?: ItemMeta<D> };\n };\n\n export type SlotFunctionArguments<D extends Record<string, unknown> = Record<string, unknown>> = {\n // Panel-level slots \u2014 receive PanelMetaInfo\n dsShuttlev2PanelWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2HeaderSearchIcon: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapperTop: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSearchWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSearchBar: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSelectionHeader: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSelectionHeaderCountLabel: (args: PanelMetaInfo) => object;\n dsShuttlev2AriaLivePanelCenter: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapperMid: (args: PanelMetaInfo) => object;\n dsShuttlev2ItemsWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2MoveMultipleWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2MoveMultipleBtn: (args: PanelMetaInfo) => object;\n dsShuttlev2MoveMultipleLiveRegion: (args: PanelMetaInfo) => object;\n dsShuttlev2EmptyListWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2LoadingListWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2ListBottomLoadingMore: (args: PanelMetaInfo) => object;\n dsShuttlev2ListBottomLoadMoreBtn: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapperBottom: (args: PanelMetaInfo) => object;\n // Item-level slots \u2014 receive ItemMeta\n dsShuttlev2ItemWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemCheckbox: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemSelection: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemSelectionCheckboxUi: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemLabelWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionsWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionBtn: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionBtnDrilldownIcon: (args: ItemMeta<D>) => object;\n // Item-level slots \u2014 receive ItemMeta & { tooltipHelpers? }\n dsShuttlev2ItemMidsectionWrapper: (args: ItemMidSectionArguments<D>) => object;\n dsShuttlev2ItemIconWrapper: (args: ItemMidSectionArguments<D>) => object;\n // Dual-context slots \u2014 rendered in both the item-action row and the bulk-action button;\n // both pass the same unified ItemActionIconArguments shape\n dsShuttlev2ItemActionBtnToSourceIcon: (args: ItemActionIconArguments<D>) => object;\n dsShuttlev2ItemActionBtnToDestinationIcon: (args: ItemActionIconArguments<D>) => object;\n // Drag-and-drop slots \u2014 receive DragHandleArguments\n dsShuttlev2DragAndDropHandleWrapper: (args: DragHandleArguments) => object;\n dsShuttlev2DragAndDropHandle: (args: DragHandleArguments) => object;\n // Root wrapper \u2014 no getOwnerPropsArguments passed\n dsShuttlev2Wrapper: () => object;\n };\n\n export type SlotProps<D extends Record<string, unknown> = Record<string, unknown>> = {\n [K in keyof SlotFunctionArguments<D>]?: object | SlotFunctionArguments<D>[K];\n };\n\n // =============================================================================\n // Callbacks\n // =============================================================================\n type OnDataChange<D extends Record<string, unknown> = Record<string, unknown>> = (\n newData: Datum<D>[],\n metainfo: {\n event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>;\n item?: Datum<D>;\n selectedItems?: Datum<D>[];\n },\n ) => void;\n\n type OnChangeEvent<T> = (\n items: T,\n metainfo: {\n event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>;\n },\n ) => void;\n\n type OnReorderEventMetadata<D extends Record<string, unknown> = Record<string, unknown>> = Omit<\n DnDKitTree.OnReorder<Datum<D>>,\n 'considerExpanding'\n >;\n type OnReorderEvent<D extends Record<string, unknown> = Record<string, unknown>> = (\n movedItem: Datum<D>,\n metadata: OnReorderEventMetadata<D>,\n ) => void;\n\n export type SelectionMap = Record<string, boolean>;\n type OnSelectionChange<D extends Record<string, unknown> = Record<string, unknown>> = (\n newSelection: SelectionMap,\n metainfo: {\n event:\n | Parameters<Required<DSButtonT.Props>['onClick']>[0]\n | Parameters<DSControlledCheckboxT.InternalProps['onChange']>[1]\n | React.MouseEvent<HTMLButtonElement | HTMLDivElement>\n | React.KeyboardEvent<HTMLDivElement>\n | React.ChangeEvent<HTMLInputElement>;\n item?: Datum<D>;\n },\n ) => void;\n\n type OnSelectionDrilldown<T> = (\n item: T,\n metainfo: { event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement> },\n ) => void;\n\n type OnLoadMore = (e: Parameters<Required<DSButtonT.Props>['onClick']>[0]) => void;\n type OnFilterChange = (\n newfilter: string,\n metainfo: { event: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement> },\n ) => void;\n type OnSearchbarOpen = (\n newfilter: boolean,\n metainfo: { event: Parameters<Required<DSButtonT.Props>['onClick']>[0] },\n ) => void;\n\n export type SoftDeletedMap = Record<string, boolean>;\n type OnSoftDeletedChange<D extends Record<string, unknown> = Record<string, unknown>> = (\n newSoftDeleted: SoftDeletedMap,\n metainfo: {\n event:\n | Parameters<Required<DSButtonT.Props>['onClick']>[0]\n | Parameters<DSControlledCheckboxT.InternalProps['onChange']>[1]\n | React.MouseEvent<HTMLButtonElement | HTMLDivElement>\n | React.KeyboardEvent<HTMLDivElement>\n | React.ChangeEvent<HTMLInputElement>;\n item?: Datum<D>;\n },\n ) => void;\n // =============================================================================\n // Zustand Store\n // =============================================================================\n export type FocusRegion = (typeof REGIONS_FOCUSES)[keyof typeof REGIONS_FOCUSES];\n export type FocusItem = Omit<(typeof ITEMS_FOCUSES)[keyof typeof ITEMS_FOCUSES], 'GET_SPECIFIC_ITEM'> & string;\n export type FocusItemAction = (typeof ACTIONS_FOCUSES)[keyof typeof ACTIONS_FOCUSES];\n export type InternalAtoms = {\n focusRegion: FocusRegion;\n focusItem: FocusItem;\n focusItemAction: FocusItemAction;\n deferFocusUntilFirstRender: boolean;\n dropIndicatorPosition: DropIndicatorPositionValues;\n overId: string;\n dndDraggingItem: ConfiguredDatum | null;\n dndDraggingItemMeta: ItemMeta | null;\n lastActiveId: string;\n isDropValid: boolean;\n sourcePanelLastSelectedItem: string | null | undefined;\n destinationPanelLastSelectedItem: string | null | undefined;\n shuttleInternalId: string;\n };\n export type UseAutoCalculatedT = ReturnType<typeof useAutoCalculated>;\n export type Selectors = {\n getIsDragAndDropHappening: () => boolean;\n getPanelLastSelectedItem: (isDestinationPanel: boolean) => string | null | undefined;\n };\n export type Reducers = Record<string, never>;\n export type ShuttleInternalStore = ZustandT.InternalStore<InternalAtoms, Selectors, Reducers>;\n // =============================================================================\n // Final Props\n // =============================================================================\n export interface RequiredProps<D extends Record<string, unknown> = Record<string, unknown>>\n extends RequiredDatumHydraters<D>,\n PrimaryKeyHydraters<D> {\n sourceData: Datum<D>[];\n sourceSelectedItems: SelectionMap;\n onSourceSelectionChange: OnSelectionChange<D>;\n // The header component and its props are owned and typed by the consumer; we only render\n // whatever component they pass with whatever props they pass. We deliberately use `any` (not\n // Record<string, unknown>) so a consumer component with its own required prop shape is accepted \u2014\n // ComponentType<Record<string, unknown>> would reject it via parameter contravariance.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n SourceHeader: React.ComponentType<any>;\n onSourceDrilldown: OnSelectionDrilldown<Datum<D>>;\n\n destinationData: Datum<D>[];\n destinationSelectedItems: SelectionMap;\n onDestinationSelectionChange: OnSelectionChange<D>;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n DestinationHeader: React.ComponentType<any>;\n onDestinationDrilldown: OnSelectionDrilldown<Datum<D>>;\n }\n\n export interface DefaultProps<D extends Record<string, unknown> = Record<string, unknown>>\n extends Required<FunctionalHydraters<D>> {\n // additional flag to condition how the selection UI renders (checkbox vs highlight only)\n // \u2014 can be used by the consumer to decide whether to use the ItemSelectionUI or not\n // incremental change for\n // PUI-18536 - [Dev][ShuttleV2] Non-color indicators needed for item states \u2014 WCAG 1.4.1 Use of Color\n explicitSelectionUI: boolean;\n // load-more and loaders\n sourceIsLoading: boolean;\n sourceWithLoadMore: boolean;\n sourceIsLoadingMore: boolean;\n onSourceLoadMore: OnLoadMore;\n destinationIsLoading: boolean;\n destinationWithLoadMore: boolean;\n destinationIsLoadingMore: boolean;\n onDestinationLoadMore: OnLoadMore;\n destinationNoOptionsMessage: string;\n sourceNoOptionsMessage: string;\n // switch side\n onSourceAdd: OnChangeEvent<Datum<D>[]>;\n onSourceRemove: OnChangeEvent<Datum<D>[]>;\n onDestinationAdd: OnChangeEvent<Datum<D>[]>;\n onDestinationRemove: OnChangeEvent<Datum<D>[]>;\n\n // dnd\n addDragAndDropFromSource: boolean;\n removeDragAndDropFromDestination: boolean;\n onSourceReorder: OnReorderEvent<D>;\n onDestinationReorder: OnReorderEvent<D>;\n\n // soft delete\n sourceSoftDeletedItems: SoftDeletedMap;\n onSourceSoftDelete: OnSoftDeletedChange<D>;\n destinationSoftDeletedItems: SoftDeletedMap;\n onDestinationSoftDelete: OnSoftDeletedChange<D>;\n }\n export interface OptionalProps<D extends Record<string, unknown> = Record<string, unknown>>\n extends OptionalDatumHydraters<D>,\n OptionalPanelHydraters,\n SlotProps<D> {\n sourceItemProps?: Record<string, unknown>;\n destinationItemProps?: Record<string, unknown>;\n sourceHeaderProps?: Record<string, unknown>;\n destinationHeaderProps?: Record<string, unknown>;\n // filtering\n sourceShowSearchbar?: boolean;\n destinationShowSearchbar?: boolean;\n onSourceOpenSearchbar?: OnSearchbarOpen;\n onDesinationOpenSearchbar?: OnSearchbarOpen;\n sourceFilterValue?: string;\n destinationFilterValue?: string;\n onSourceFilterChange?: OnFilterChange;\n onDestinationFilterChange?: OnFilterChange;\n\n moveButtonProps?: ({\n itemMeta,\n isDestinationPanel,\n }: {\n itemMeta: ItemMeta<D>;\n isDestinationPanel: boolean;\n }) => Omit<DSButtonV3T.Props, 'children'>;\n drillDownButtonProps?: ({\n itemMeta,\n isDestinationPanel,\n }: {\n itemMeta: ItemMeta<D>;\n isDestinationPanel: boolean;\n }) => Omit<DSButtonV3T.Props, 'children'>;\n\n checkboxSelectAllProps?: (metainfo: PanelMetaInfo) => DSControlledCheckboxT.Props;\n areaSearchBarProps?: (metaInfo: PanelMetaInfo) => DSInputTextT.Props;\n }\n\n export interface Props<D extends Record<string, unknown> = Record<string, unknown>>\n extends Partial<DefaultProps<D>>,\n OptionalProps<D>,\n Omit<\n GlobalAttributesT<HTMLButtonElement>,\n keyof DefaultProps<D> | keyof OptionalProps<D> | keyof RequiredProps<D>\n >,\n XstyledProps,\n RequiredProps<D> {}\n\n export interface InternalProps<D extends Record<string, unknown> = Record<string, unknown>>\n extends DefaultProps<D>,\n OptionalProps<D>,\n Omit<\n GlobalAttributesT<HTMLButtonElement>,\n keyof DefaultProps<D> | keyof OptionalProps<D> | keyof RequiredProps<D>\n >,\n XstyledProps,\n RequiredProps<D> {}\n}\n\nexport const defaultProps: DSShuttleV2T.DefaultProps = {\n // we start as false to avoid breaking changes, eventually converge to true for better accessibility\n explicitSelectionUI: false,\n\n addDragAndDropFromSource: false,\n removeDragAndDropFromDestination: false,\n destinationNoOptionsMessage: 'There are no items to display',\n sourceNoOptionsMessage: 'There are no items to display',\n sourceIsLoading: false,\n destinationIsLoading: false,\n sourceWithLoadMore: false,\n destinationWithLoadMore: false,\n sourceIsLoadingMore: false,\n destinationIsLoadingMore: false,\n onSourceLoadMore: () => {},\n onDestinationLoadMore: () => {},\n\n onSourceAdd: () => {},\n onDestinationAdd: () => {},\n onSourceRemove: () => {},\n onDestinationRemove: () => {},\n onSourceReorder: () => {},\n onDestinationReorder: () => {},\n\n sourceSoftDeletedItems: {},\n onSourceSoftDelete: () => {},\n destinationSoftDeletedItems: {},\n onDestinationSoftDelete: () => {},\n getPreventMove: () => false,\n};\n\nconst DSShuttleV2PropTypes: DSPropTypesSchema<DSShuttleV2T.Props> = {\n ...getPropsPerSlotPropTypes(DSShuttleV2Name, DSShuttleV2Slots),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n\n explicitSelectionUI: PropTypes.bool\n .description(\n 'A boolean indicating whether to use WCAG-compliant selection indicators (checkboxes) instead of color-only indicators for selected items, must be true for the component to meet WCAG 1.4.1 Use of Color guidelines',\n )\n .defaultValue(false),\n\n sourceData: PropTypes.arrayOf(PropTypes.object).description(\n 'An array of objects representing the items in the source list',\n ).isRequired,\n sourceSelectedItems: PropTypes.object.description('An object representing the selected items in the source list')\n .isRequired,\n onSourceSelectionChange: PropTypes.func.description('A function called when the selection in the source list changes')\n .isRequired,\n SourceHeader: PropTypes.elementType.description('The header component for the source list').isRequired,\n sourceHeaderProps: PropTypes.object.description('Props to be passed to the source header').defaultValue({}),\n onSourceDrilldown: PropTypes.func.description('A function called when an item in the source list is clicked')\n .isRequired,\n destinationData: PropTypes.arrayOf(PropTypes.object).description(\n 'An array of objects representing the items in the destination list',\n ).isRequired,\n destinationSelectedItems: PropTypes.object.description(\n 'An object representing the selected items in the destination list',\n ).isRequired,\n onDestinationSelectionChange: PropTypes.func.description(\n 'A function called when the selection in the destination list changes',\n ).isRequired,\n DestinationHeader: PropTypes.elementType.description('The header component for the destination list').isRequired,\n destinationHeaderProps: PropTypes.object.description('Props to be passed to the destination header').defaultValue({}),\n onDestinationDrilldown: PropTypes.func.description(\n 'A function called when an item in the destination list is clicked',\n ).isRequired,\n getId: PropTypes.func.description(\n 'A function that takes an item from the source/destination list and returns its unique identifier',\n ).isRequired,\n getLabel: PropTypes.func.description(\n 'A function that takes an item from the source/destination list and returns its display label',\n ).isRequired,\n sourceIsLoading: PropTypes.bool\n .description('A boolean indicating whether the source list is currently loading data')\n .defaultValue(false),\n destinationIsLoading: PropTypes.bool\n .description('A boolean indicating whether the destination list is currently loading data')\n .defaultValue(false),\n sourceWithLoadMore: PropTypes.bool\n .description('A boolean indicating whether the source list supports \"load more\" functionality')\n .defaultValue(false),\n destinationWithLoadMore: PropTypes.bool\n .description('A boolean indicating whether the destination list supports \"load more\" functionality')\n .defaultValue(false),\n sourceIsLoadingMore: PropTypes.bool\n .description('A boolean indicating whether the source list is currently loading more data')\n .defaultValue(false),\n destinationIsLoadingMore: PropTypes.bool\n .description('A boolean indicating whether the destination list is currently loading more data')\n .defaultValue(false),\n onSourceLoadMore: PropTypes.func\n .description('A function called when the \"load more\" button in the source list is clicked')\n .defaultValue(() => {}),\n onDestinationLoadMore: PropTypes.func\n .description('A function called when the \"load more\" button in the destination list is clicked')\n .defaultValue(() => {}),\n onSourceAdd: PropTypes.func\n .description('A function called when an item is added from the source list to the destination list')\n .defaultValue(() => {}),\n onDestinationAdd: PropTypes.func\n .description('A function called when an item is added from the destination list to the source list')\n .defaultValue(() => {}),\n onSourceRemove: PropTypes.func\n .description('A function called when an item is removed from the destination list')\n .defaultValue(() => {}),\n onDestinationRemove: PropTypes.func\n .description('Callback function to handle when an item is removed from the destination shuttle list. ')\n .defaultValue(() => {}),\n onSourceReorder: PropTypes.func\n .description('Callback function to handle when items are reordered in the source shuttle list.')\n .defaultValue(() => {}),\n onDestinationReorder: PropTypes.func\n .description('Callback function to handle when items are reordered in the destination shuttle list. ')\n .defaultValue(() => {}),\n sourceSoftDeletedItems: PropTypes.object\n .description(\n 'Object containing the soft deleted items in the source shuttle list, where the key is the item ID and the value is the deleted item.',\n )\n .defaultValue({}),\n onSourceSoftDelete: PropTypes.func\n .description('Callback function to handle when an item is soft deleted in the source shuttle list. ')\n .defaultValue(() => {}),\n destinationSoftDeletedItems: PropTypes.object\n .description(\n 'Object containing the soft deleted items in the destination shuttle list, where the key is the item ID and the value is the deleted item.',\n )\n .defaultValue({}),\n onDestinationSoftDelete: PropTypes.func\n .description('Callback function to handle when an item is soft deleted in the destination shuttle list.')\n .defaultValue(() => {}),\n getPreventMove: PropTypes.func\n .description('Function that determines whether a specific item can be moved to the destination shuttle list. ')\n .defaultValue(() => false),\n addDragAndDropFromSource: PropTypes.bool\n .description('Specifies whether items can be dragged from the source list and dropped into the destination list.')\n .defaultValue(false),\n removeDragAndDropFromDestination: PropTypes.bool\n .description('Specifies whether items can be removed from the destination list by dragging them out of the list.')\n .defaultValue(false),\n sourceItemProps: PropTypes.object\n .description('Specifies additional props to be applied to each item in the source list.')\n .defaultValue({}),\n destinationItemProps: PropTypes.object\n .description('Specifies additional props to be applied to each item in the destination list.')\n .defaultValue({}),\n sourceShowSearchbar: PropTypes.bool\n .description('Specifies whether the search bar should be shown in the source list.')\n .defaultValue(false),\n destinationShowSearchbar: PropTypes.bool\n .description('Specifies whether the search bar should be shown in the destination list.')\n .defaultValue(false),\n onSourceOpenSearchbar: PropTypes.func\n .description('Callback function that is called when the search bar in the source list is opened.')\n .defaultValue(() => {}),\n onDesinationOpenSearchbar: PropTypes.func\n .description('Callback function that is called when the search bar in the destination list is opened.')\n .defaultValue(() => {}),\n sourceFilterValue: PropTypes.string\n .description('Specifies the current value of the search filter in the source list.')\n .defaultValue(''),\n destinationFilterValue: PropTypes.string\n .description('Specifies the current value of the search filter in the destination list.')\n .defaultValue(''),\n onSourceFilterChange: PropTypes.func\n .description('Callback function that is called when the search filter in the source list is changed.')\n .defaultValue(() => {}),\n onDestinationFilterChange: PropTypes.func\n .description('Callback function that is called when the search filter in the destination list is changed.')\n .defaultValue(() => {}),\n getSubtitle: PropTypes.func\n .description('Callback function that returns the subtitle to be displayed for each item in the list.')\n .defaultValue(() => ''),\n getIcon: PropTypes.func\n .description('Callback function that returns the icon to be displayed for each item in the list.')\n .defaultValue(() => ''),\n getPreventDrilldown: PropTypes.func\n .description('Callback function that determines whether drilldown should be prevented for a particular item.')\n .defaultValue(() => false),\n getCustomRenderer: PropTypes.func\n .description('Callback function that returns a custom renderer for each item in the list.')\n .defaultValue(() => undefined),\n getBatchActionableButtonProps: PropTypes.func\n .description('Callback function that returns the props for the batch actionable button in the destination list.')\n .defaultValue(() => ({}))\n .signature(`(({ isDestionationPanel: boolean }) => ({ \"aria-label\": string }))`),\n ...getPropsPerDatatestIdPropTypes(DSShuttleV2DataTestIds),\n destinationNoOptionsMessage: PropTypes.string\n .description('Custome message to be display when no matches found after filtering in destination panel')\n .defaultValue('There are no items to display'),\n sourceNoOptionsMessage: PropTypes.string\n .description('Custome message to be display when no matches found after filtering in source panel')\n .defaultValue('There are no items to display'),\n checkboxSelectAllProps: PropTypes.func\n .description('Function that returns props for the select all checkbox in the source panel.')\n .defaultValue({}),\n moveButtonProps: PropTypes.func\n .description('Function that returns props for the move button.')\n .defaultValue(() => ({}))\n .signature(`(({ isDestionationPanel: boolean }) => ({ \"aria-label\": string }))`),\n drillDownButtonProps: PropTypes.func\n .description('Function that returns props for the drilldown button.')\n .defaultValue(() => ({}))\n .signature(`(({ isDestionationPanel: boolean }) => ({ \"aria-label\": string }))`),\n areaSearchBarProps: PropTypes.func\n .description('Function that returns props for the area search bar.')\n .defaultValue(() => ({})),\n};\n\nexport const DSShuttleV2PropTypesSchema = DSShuttleV2PropTypes as unknown as ValidationMap<DSShuttleV2T.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
4
+ "sourcesContent": ["/* eslint-disable max-lines */\nimport { type DSButtonT, type DSButtonV3T } from '@elliemae/ds-button-v2';\nimport { type DnDKitTree, type useSortable } from '@elliemae/ds-drag-and-drop';\nimport { type DSControlledCheckboxT } from '@elliemae/ds-form-checkbox';\nimport { type DSInputTextT } from '@elliemae/ds-form-input-text';\nimport { type useHeadlessTooltip } from '@elliemae/ds-hooks-headless-tooltip';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n getPropsPerDatatestIdPropTypes,\n getPropsPerSlotPropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { ZustandT } from '@elliemae/ds-zustand-helpers';\nimport type React from 'react';\nimport type { useAutoCalculated } from './config/useAutoCalculated/index.js';\nimport type { ACTIONS_FOCUSES, DropIndicatorPosition, ITEMS_FOCUSES, REGIONS_FOCUSES } from './constants/index.js';\nimport { DSShuttleV2DataTestIds, DSShuttleV2Name, DSShuttleV2Slots } from './constants/index.js';\n\nexport declare namespace DSShuttleV2T {\n export type Datum<D extends Record<string, unknown> = Record<string, unknown>> = D;\n export type PanelMetaInfo = { isDestinationPanel: boolean; hasMultipleSelection?: boolean; height?: number };\n type HydratedId = string;\n\n export type DatumInternalMeta = {\n isFirst: boolean;\n isLast: boolean;\n isSelected: boolean;\n softDeleted: boolean;\n localIndex: number;\n hydratedId: HydratedId;\n hydratedPreventMove: boolean;\n };\n export type DatumRenderFlags = {\n selectionPrevented: boolean;\n withActions: boolean;\n withMoveBtn: boolean;\n withDrilldownBtn: boolean;\n internallyDisabledMove: boolean;\n internallyDisabledDrilldown: boolean;\n };\n\n export type DropIndicatorPositionValues = TypescriptHelpersT.ObjectValues<typeof DropIndicatorPosition>;\n\n // =============================================================================\n // Hydratables section - panel level hydratables\n // =============================================================================\n type RequiredPanelHydratables = Record<string, never>;\n type OptionalPanelHydratables = {\n batchActionableButtonProps: Record<string, unknown>;\n };\n export type PanelHydratables = RequiredPanelHydratables & OptionalPanelHydratables;\n\n // =============================================================================\n // Hydratables section - datum level hydratables\n // shared usage between internal and custom component\n // =============================================================================\n export type PrimaryKeyHydratables = {\n id: HydratedId;\n };\n type FunctionalHydratables = {\n preventMove?: boolean;\n };\n type RequiredDatumHydratablesWithoutComponents = {\n label: string;\n };\n type OptionalDatumHydratablesWithoutComponents = {\n subtitle?: string;\n preventDrilldown?: boolean;\n };\n type DatumHydratablesWithoutComponents = PrimaryKeyHydratables &\n FunctionalHydratables &\n RequiredDatumHydratablesWithoutComponents &\n OptionalDatumHydratablesWithoutComponents;\n // =============================================================================\n // Hydratables section - datum level hydratables\n // Custom component-only\n // =============================================================================\n export type ComponentProps<D extends Record<string, unknown> = Record<string, unknown>> = {\n datum: Datum<D>;\n thisItemIsFocused: boolean;\n panelMetaInfo: PanelMetaInfo;\n datumInternalMeta: DatumInternalMeta;\n datumHydratables: DatumHydratablesWithoutComponents;\n tooltipHelpers?: ReturnType<typeof useHeadlessTooltip>;\n };\n // eslint-disable-next-line @typescript-eslint/ban-types\n type RequiredDatumHydratablesComponents = {};\n type OptionalDatumHydratablesComponents<D extends Record<string, unknown> = Record<string, unknown>> = {\n Icon?: React.ComponentType<ComponentProps<D>>;\n CustomRenderer?: React.ComponentType<ComponentProps<D>> | null;\n };\n // =============================================================================\n // Hydratables section - datum level hydratables\n // Finals\n // =============================================================================\n type RequiredDatumHydratables = RequiredDatumHydratablesWithoutComponents & RequiredDatumHydratablesComponents;\n type OptionalDatumHydratables<D extends Record<string, unknown> = Record<string, unknown>> =\n OptionalDatumHydratablesWithoutComponents & OptionalDatumHydratablesComponents<D>;\n export type DatumHydratables<D extends Record<string, unknown> = Record<string, unknown>> = PrimaryKeyHydratables &\n RequiredDatumHydratables &\n OptionalDatumHydratables<D>;\n\n // =============================================================================\n // Hydraters\n // =============================================================================\n export type PrimaryKeyHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<PrimaryKeyHydratables, [Datum<D>]>;\n export type FunctionalHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<FunctionalHydratables, [Datum<D>, Partial<PanelMetaInfo>]>;\n type HydratersMeta = { datumMeta: DatumInternalMeta; panelMetaInfo: PanelMetaInfo };\n type RequiredDatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<RequiredDatumHydratables, [Datum<D>, HydratersMeta]>;\n type OptionalDatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<OptionalDatumHydratables<D>, [Datum<D>, HydratersMeta]>;\n\n type DatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> = PrimaryKeyHydraters<D> &\n FunctionalHydraters<D> &\n RequiredDatumHydraters<D> &\n OptionalDatumHydraters<D>;\n\n type RequiredPanelHydraters = TypescriptHelpersT.Hydraters<RequiredPanelHydratables, [PanelMetaInfo]>;\n type OptionalPanelHydraters = Partial<TypescriptHelpersT.Hydraters<OptionalPanelHydratables, [PanelMetaInfo]>>;\n type PanelHydraters = RequiredPanelHydraters & OptionalPanelHydraters;\n\n // =============================================================================\n // Datum & Internals structures\n // =============================================================================\n export type ConfiguredDatum<D extends Record<string, unknown> = Record<string, unknown>> = DatumInternalMeta & {\n original: Datum<D>;\n };\n export interface ItemMeta<D extends Record<string, unknown> = Record<string, unknown>> extends PanelMetaInfo {\n datum: Datum<D>;\n datumHydratables: DatumHydratables<D>;\n datumInternalMeta: DatumInternalMeta;\n datumRenderFlags: DatumRenderFlags;\n withDragNDrop: boolean;\n useSortableHelpers?: ReturnType<typeof useSortable>;\n }\n\n // =============================================================================\n // Slot argument types \u2014 per-slot getOwnerPropsArguments shapes\n // =============================================================================\n export type DragHandleArguments = {\n id: string;\n innerRef: React.RefObject<HTMLDivElement> | React.RefCallback<HTMLDivElement>;\n useSortableHelpers: ReturnType<typeof useSortable>;\n isDndActive: boolean;\n isDragging: boolean;\n disabled?: boolean;\n ariaLabelledby?: string;\n };\n\n export type ItemMidSectionArguments<D extends Record<string, unknown> = Record<string, unknown>> = ItemMeta<D> & {\n tooltipHelpers?: ComponentProps<D>['tooltipHelpers'];\n };\n\n // The to-source / to-destination icon slots render in two contexts (per-item action row and\n // bulk-action button). Both receive this single unified shape: the panel info is always present,\n // and the per-item extras (only available in the item-row context) are optional under extraMetaInfo.\n export type ItemActionIconArguments<D extends Record<string, unknown> = Record<string, unknown>> = {\n panelMetaInfo: PanelMetaInfo;\n extraMetaInfo?: { itemMeta?: ItemMeta<D> };\n };\n\n export type SlotFunctionArguments<D extends Record<string, unknown> = Record<string, unknown>> = {\n // Panel-level slots \u2014 receive PanelMetaInfo\n dsShuttlev2PanelWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2HeaderSearchIcon: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapperTop: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSearchWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSearchBar: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSelectionHeader: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSelectionHeaderCountLabel: (args: PanelMetaInfo) => object;\n dsShuttlev2AriaLivePanelCenter: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapperMid: (args: PanelMetaInfo) => object;\n dsShuttlev2ItemsWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2MoveMultipleWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2MoveMultipleBtn: (args: PanelMetaInfo) => object;\n dsShuttlev2MoveMultipleLiveRegion: (args: PanelMetaInfo) => object;\n dsShuttlev2EmptyListWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2LoadingListWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2ListBottomLoadingMore: (args: PanelMetaInfo) => object;\n dsShuttlev2ListBottomLoadMoreBtn: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapperBottom: (args: PanelMetaInfo) => object;\n // Item-level slots \u2014 receive ItemMeta\n dsShuttlev2ItemWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemCheckbox: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemSelection: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemSelectionCheckboxUi: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemLabelWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionsWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionBtn: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionBtnDrilldownIcon: (args: ItemMeta<D>) => object;\n // Item-level slots \u2014 receive ItemMeta & { tooltipHelpers? }\n dsShuttlev2ItemMidsectionWrapper: (args: ItemMidSectionArguments<D>) => object;\n dsShuttlev2ItemIconWrapper: (args: ItemMidSectionArguments<D>) => object;\n // Dual-context slots \u2014 rendered in both the item-action row and the bulk-action button;\n // both pass the same unified ItemActionIconArguments shape\n dsShuttlev2ItemActionBtnToSourceIcon: (args: ItemActionIconArguments<D>) => object;\n dsShuttlev2ItemActionBtnToDestinationIcon: (args: ItemActionIconArguments<D>) => object;\n // Drag-and-drop slots \u2014 receive DragHandleArguments\n dsShuttlev2DragAndDropHandleWrapper: (args: DragHandleArguments) => object;\n dsShuttlev2DragAndDropHandle: (args: DragHandleArguments) => object;\n // Root wrapper \u2014 no getOwnerPropsArguments passed\n dsShuttlev2Wrapper: () => object;\n };\n\n export type SlotProps<D extends Record<string, unknown> = Record<string, unknown>> = {\n [K in keyof SlotFunctionArguments<D>]?: object | SlotFunctionArguments<D>[K];\n };\n\n // =============================================================================\n // Callbacks\n // =============================================================================\n type OnDataChange<D extends Record<string, unknown> = Record<string, unknown>> = (\n newData: Datum<D>[],\n metainfo: {\n event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>;\n item?: Datum<D>;\n selectedItems?: Datum<D>[];\n },\n ) => void;\n\n type OnChangeEvent<T> = (\n items: T,\n metainfo: {\n event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>;\n },\n ) => void;\n\n type OnReorderEventMetadata<D extends Record<string, unknown> = Record<string, unknown>> = Omit<\n DnDKitTree.OnReorder<Datum<D>>,\n 'considerExpanding'\n >;\n type OnReorderEvent<D extends Record<string, unknown> = Record<string, unknown>> = (\n movedItem: Datum<D>,\n metadata: OnReorderEventMetadata<D>,\n ) => void;\n\n export type SelectionMap = Record<string, boolean>;\n type OnSelectionChange<D extends Record<string, unknown> = Record<string, unknown>> = (\n newSelection: SelectionMap,\n metainfo: {\n event:\n | Parameters<Required<DSButtonT.Props>['onClick']>[0]\n | Parameters<DSControlledCheckboxT.InternalProps['onChange']>[1]\n | React.MouseEvent<HTMLButtonElement | HTMLDivElement>\n | React.KeyboardEvent<HTMLDivElement>\n | React.ChangeEvent<HTMLInputElement>;\n item?: Datum<D>;\n },\n ) => void;\n\n type OnSelectionDrilldown<T> = (\n item: T,\n metainfo: { event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement> },\n ) => void;\n\n type OnLoadMore = (e: Parameters<Required<DSButtonT.Props>['onClick']>[0]) => void;\n type OnFilterChange = (\n newfilter: string,\n metainfo: { event: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement> },\n ) => void;\n type OnSearchbarOpen = (\n newfilter: boolean,\n metainfo: { event: Parameters<Required<DSButtonT.Props>['onClick']>[0] },\n ) => void;\n\n export type SoftDeletedMap = Record<string, boolean>;\n type OnSoftDeletedChange<D extends Record<string, unknown> = Record<string, unknown>> = (\n newSoftDeleted: SoftDeletedMap,\n metainfo: {\n event:\n | Parameters<Required<DSButtonT.Props>['onClick']>[0]\n | Parameters<DSControlledCheckboxT.InternalProps['onChange']>[1]\n | React.MouseEvent<HTMLButtonElement | HTMLDivElement>\n | React.KeyboardEvent<HTMLDivElement>\n | React.ChangeEvent<HTMLInputElement>;\n item?: Datum<D>;\n },\n ) => void;\n // =============================================================================\n // Zustand Store\n // =============================================================================\n export type FocusRegion = (typeof REGIONS_FOCUSES)[keyof typeof REGIONS_FOCUSES];\n export type FocusItem = Omit<(typeof ITEMS_FOCUSES)[keyof typeof ITEMS_FOCUSES], 'GET_SPECIFIC_ITEM'> & string;\n export type FocusItemAction = (typeof ACTIONS_FOCUSES)[keyof typeof ACTIONS_FOCUSES];\n export type InternalAtoms = {\n focusRegion: FocusRegion;\n focusItem: FocusItem;\n focusItemAction: FocusItemAction;\n deferFocusUntilFirstRender: boolean;\n dropIndicatorPosition: DropIndicatorPositionValues;\n overId: string;\n dndDraggingItem: ConfiguredDatum | null;\n dndDraggingItemMeta: ItemMeta | null;\n lastActiveId: string;\n isDropValid: boolean;\n sourcePanelLastSelectedItem: string | null | undefined;\n destinationPanelLastSelectedItem: string | null | undefined;\n shuttleInternalId: string;\n };\n export type UseAutoCalculatedT = ReturnType<typeof useAutoCalculated>;\n export type Selectors = {\n getIsDragAndDropHappening: () => boolean;\n getPanelLastSelectedItem: (isDestinationPanel: boolean) => string | null | undefined;\n };\n export type Reducers = Record<string, never>;\n export type ShuttleInternalStore = ZustandT.InternalStore<InternalAtoms, Selectors, Reducers>;\n // =============================================================================\n // Final Props\n // =============================================================================\n export interface RequiredProps<D extends Record<string, unknown> = Record<string, unknown>>\n extends RequiredDatumHydraters<D>, PrimaryKeyHydraters<D> {\n sourceData: Datum<D>[];\n sourceSelectedItems: SelectionMap;\n onSourceSelectionChange: OnSelectionChange<D>;\n // The header component and its props are owned and typed by the consumer; we only render\n // whatever component they pass with whatever props they pass. We deliberately use `any` (not\n // Record<string, unknown>) so a consumer component with its own required prop shape is accepted \u2014\n // ComponentType<Record<string, unknown>> would reject it via parameter contravariance.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n SourceHeader: React.ComponentType<any>;\n onSourceDrilldown: OnSelectionDrilldown<Datum<D>>;\n\n destinationData: Datum<D>[];\n destinationSelectedItems: SelectionMap;\n onDestinationSelectionChange: OnSelectionChange<D>;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n DestinationHeader: React.ComponentType<any>;\n onDestinationDrilldown: OnSelectionDrilldown<Datum<D>>;\n }\n\n export interface DefaultProps<D extends Record<string, unknown> = Record<string, unknown>> extends Required<\n FunctionalHydraters<D>\n > {\n // additional flag to condition how the selection UI renders (checkbox vs highlight only)\n // \u2014 can be used by the consumer to decide whether to use the ItemSelectionUI or not\n // incremental change for\n // PUI-18536 - [Dev][ShuttleV2] Non-color indicators needed for item states \u2014 WCAG 1.4.1 Use of Color\n explicitSelectionUI: boolean;\n // load-more and loaders\n sourceIsLoading: boolean;\n sourceWithLoadMore: boolean;\n sourceIsLoadingMore: boolean;\n onSourceLoadMore: OnLoadMore;\n destinationIsLoading: boolean;\n destinationWithLoadMore: boolean;\n destinationIsLoadingMore: boolean;\n onDestinationLoadMore: OnLoadMore;\n destinationNoOptionsMessage: string;\n sourceNoOptionsMessage: string;\n // switch side\n onSourceAdd: OnChangeEvent<Datum<D>[]>;\n onSourceRemove: OnChangeEvent<Datum<D>[]>;\n onDestinationAdd: OnChangeEvent<Datum<D>[]>;\n onDestinationRemove: OnChangeEvent<Datum<D>[]>;\n\n // dnd\n addDragAndDropFromSource: boolean;\n removeDragAndDropFromDestination: boolean;\n onSourceReorder: OnReorderEvent<D>;\n onDestinationReorder: OnReorderEvent<D>;\n\n // soft delete\n sourceSoftDeletedItems: SoftDeletedMap;\n onSourceSoftDelete: OnSoftDeletedChange<D>;\n destinationSoftDeletedItems: SoftDeletedMap;\n onDestinationSoftDelete: OnSoftDeletedChange<D>;\n }\n export interface OptionalProps<D extends Record<string, unknown> = Record<string, unknown>>\n extends OptionalDatumHydraters<D>, OptionalPanelHydraters, SlotProps<D> {\n sourceItemProps?: Record<string, unknown>;\n destinationItemProps?: Record<string, unknown>;\n sourceHeaderProps?: Record<string, unknown>;\n destinationHeaderProps?: Record<string, unknown>;\n // filtering\n sourceShowSearchbar?: boolean;\n destinationShowSearchbar?: boolean;\n onSourceOpenSearchbar?: OnSearchbarOpen;\n onDesinationOpenSearchbar?: OnSearchbarOpen;\n sourceFilterValue?: string;\n destinationFilterValue?: string;\n onSourceFilterChange?: OnFilterChange;\n onDestinationFilterChange?: OnFilterChange;\n\n moveButtonProps?: ({\n itemMeta,\n isDestinationPanel,\n }: {\n itemMeta: ItemMeta<D>;\n isDestinationPanel: boolean;\n }) => Omit<DSButtonV3T.Props, 'children'>;\n drillDownButtonProps?: ({\n itemMeta,\n isDestinationPanel,\n }: {\n itemMeta: ItemMeta<D>;\n isDestinationPanel: boolean;\n }) => Omit<DSButtonV3T.Props, 'children'>;\n\n checkboxSelectAllProps?: (metainfo: PanelMetaInfo) => DSControlledCheckboxT.Props;\n areaSearchBarProps?: (metaInfo: PanelMetaInfo) => DSInputTextT.Props;\n }\n\n export interface Props<D extends Record<string, unknown> = Record<string, unknown>>\n extends\n Partial<DefaultProps<D>>,\n OptionalProps<D>,\n Omit<\n GlobalAttributesT<HTMLButtonElement>,\n keyof DefaultProps<D> | keyof OptionalProps<D> | keyof RequiredProps<D>\n >,\n XstyledProps,\n RequiredProps<D> {}\n\n export interface InternalProps<D extends Record<string, unknown> = Record<string, unknown>>\n extends\n DefaultProps<D>,\n OptionalProps<D>,\n Omit<\n GlobalAttributesT<HTMLButtonElement>,\n keyof DefaultProps<D> | keyof OptionalProps<D> | keyof RequiredProps<D>\n >,\n XstyledProps,\n RequiredProps<D> {}\n}\n\nexport const defaultProps: DSShuttleV2T.DefaultProps = {\n // we start as false to avoid breaking changes, eventually converge to true for better accessibility\n explicitSelectionUI: false,\n\n addDragAndDropFromSource: false,\n removeDragAndDropFromDestination: false,\n destinationNoOptionsMessage: 'There are no items to display',\n sourceNoOptionsMessage: 'There are no items to display',\n sourceIsLoading: false,\n destinationIsLoading: false,\n sourceWithLoadMore: false,\n destinationWithLoadMore: false,\n sourceIsLoadingMore: false,\n destinationIsLoadingMore: false,\n onSourceLoadMore: () => {},\n onDestinationLoadMore: () => {},\n\n onSourceAdd: () => {},\n onDestinationAdd: () => {},\n onSourceRemove: () => {},\n onDestinationRemove: () => {},\n onSourceReorder: () => {},\n onDestinationReorder: () => {},\n\n sourceSoftDeletedItems: {},\n onSourceSoftDelete: () => {},\n destinationSoftDeletedItems: {},\n onDestinationSoftDelete: () => {},\n getPreventMove: () => false,\n};\n\nconst DSShuttleV2PropTypes: DSPropTypesSchema<DSShuttleV2T.Props> = {\n ...getPropsPerSlotPropTypes(DSShuttleV2Name, DSShuttleV2Slots),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n\n explicitSelectionUI: PropTypes.bool\n .description(\n 'A boolean indicating whether to use WCAG-compliant selection indicators (checkboxes) instead of color-only indicators for selected items, must be true for the component to meet WCAG 1.4.1 Use of Color guidelines',\n )\n .defaultValue(false),\n\n sourceData: PropTypes.arrayOf(PropTypes.object).description(\n 'An array of objects representing the items in the source list',\n ).isRequired,\n sourceSelectedItems: PropTypes.object.description('An object representing the selected items in the source list')\n .isRequired,\n onSourceSelectionChange: PropTypes.func.description('A function called when the selection in the source list changes')\n .isRequired,\n SourceHeader: PropTypes.elementType.description('The header component for the source list').isRequired,\n sourceHeaderProps: PropTypes.object.description('Props to be passed to the source header').defaultValue({}),\n onSourceDrilldown: PropTypes.func.description('A function called when an item in the source list is clicked')\n .isRequired,\n destinationData: PropTypes.arrayOf(PropTypes.object).description(\n 'An array of objects representing the items in the destination list',\n ).isRequired,\n destinationSelectedItems: PropTypes.object.description(\n 'An object representing the selected items in the destination list',\n ).isRequired,\n onDestinationSelectionChange: PropTypes.func.description(\n 'A function called when the selection in the destination list changes',\n ).isRequired,\n DestinationHeader: PropTypes.elementType.description('The header component for the destination list').isRequired,\n destinationHeaderProps: PropTypes.object.description('Props to be passed to the destination header').defaultValue({}),\n onDestinationDrilldown: PropTypes.func.description(\n 'A function called when an item in the destination list is clicked',\n ).isRequired,\n getId: PropTypes.func.description(\n 'A function that takes an item from the source/destination list and returns its unique identifier',\n ).isRequired,\n getLabel: PropTypes.func.description(\n 'A function that takes an item from the source/destination list and returns its display label',\n ).isRequired,\n sourceIsLoading: PropTypes.bool\n .description('A boolean indicating whether the source list is currently loading data')\n .defaultValue(false),\n destinationIsLoading: PropTypes.bool\n .description('A boolean indicating whether the destination list is currently loading data')\n .defaultValue(false),\n sourceWithLoadMore: PropTypes.bool\n .description('A boolean indicating whether the source list supports \"load more\" functionality')\n .defaultValue(false),\n destinationWithLoadMore: PropTypes.bool\n .description('A boolean indicating whether the destination list supports \"load more\" functionality')\n .defaultValue(false),\n sourceIsLoadingMore: PropTypes.bool\n .description('A boolean indicating whether the source list is currently loading more data')\n .defaultValue(false),\n destinationIsLoadingMore: PropTypes.bool\n .description('A boolean indicating whether the destination list is currently loading more data')\n .defaultValue(false),\n onSourceLoadMore: PropTypes.func\n .description('A function called when the \"load more\" button in the source list is clicked')\n .defaultValue(() => {}),\n onDestinationLoadMore: PropTypes.func\n .description('A function called when the \"load more\" button in the destination list is clicked')\n .defaultValue(() => {}),\n onSourceAdd: PropTypes.func\n .description('A function called when an item is added from the source list to the destination list')\n .defaultValue(() => {}),\n onDestinationAdd: PropTypes.func\n .description('A function called when an item is added from the destination list to the source list')\n .defaultValue(() => {}),\n onSourceRemove: PropTypes.func\n .description('A function called when an item is removed from the destination list')\n .defaultValue(() => {}),\n onDestinationRemove: PropTypes.func\n .description('Callback function to handle when an item is removed from the destination shuttle list. ')\n .defaultValue(() => {}),\n onSourceReorder: PropTypes.func\n .description('Callback function to handle when items are reordered in the source shuttle list.')\n .defaultValue(() => {}),\n onDestinationReorder: PropTypes.func\n .description('Callback function to handle when items are reordered in the destination shuttle list. ')\n .defaultValue(() => {}),\n sourceSoftDeletedItems: PropTypes.object\n .description(\n 'Object containing the soft deleted items in the source shuttle list, where the key is the item ID and the value is the deleted item.',\n )\n .defaultValue({}),\n onSourceSoftDelete: PropTypes.func\n .description('Callback function to handle when an item is soft deleted in the source shuttle list. ')\n .defaultValue(() => {}),\n destinationSoftDeletedItems: PropTypes.object\n .description(\n 'Object containing the soft deleted items in the destination shuttle list, where the key is the item ID and the value is the deleted item.',\n )\n .defaultValue({}),\n onDestinationSoftDelete: PropTypes.func\n .description('Callback function to handle when an item is soft deleted in the destination shuttle list.')\n .defaultValue(() => {}),\n getPreventMove: PropTypes.func\n .description('Function that determines whether a specific item can be moved to the destination shuttle list. ')\n .defaultValue(() => false),\n addDragAndDropFromSource: PropTypes.bool\n .description('Specifies whether items can be dragged from the source list and dropped into the destination list.')\n .defaultValue(false),\n removeDragAndDropFromDestination: PropTypes.bool\n .description('Specifies whether items can be removed from the destination list by dragging them out of the list.')\n .defaultValue(false),\n sourceItemProps: PropTypes.object\n .description('Specifies additional props to be applied to each item in the source list.')\n .defaultValue({}),\n destinationItemProps: PropTypes.object\n .description('Specifies additional props to be applied to each item in the destination list.')\n .defaultValue({}),\n sourceShowSearchbar: PropTypes.bool\n .description('Specifies whether the search bar should be shown in the source list.')\n .defaultValue(false),\n destinationShowSearchbar: PropTypes.bool\n .description('Specifies whether the search bar should be shown in the destination list.')\n .defaultValue(false),\n onSourceOpenSearchbar: PropTypes.func\n .description('Callback function that is called when the search bar in the source list is opened.')\n .defaultValue(() => {}),\n onDesinationOpenSearchbar: PropTypes.func\n .description('Callback function that is called when the search bar in the destination list is opened.')\n .defaultValue(() => {}),\n sourceFilterValue: PropTypes.string\n .description('Specifies the current value of the search filter in the source list.')\n .defaultValue(''),\n destinationFilterValue: PropTypes.string\n .description('Specifies the current value of the search filter in the destination list.')\n .defaultValue(''),\n onSourceFilterChange: PropTypes.func\n .description('Callback function that is called when the search filter in the source list is changed.')\n .defaultValue(() => {}),\n onDestinationFilterChange: PropTypes.func\n .description('Callback function that is called when the search filter in the destination list is changed.')\n .defaultValue(() => {}),\n getSubtitle: PropTypes.func\n .description('Callback function that returns the subtitle to be displayed for each item in the list.')\n .defaultValue(() => ''),\n getIcon: PropTypes.func\n .description('Callback function that returns the icon to be displayed for each item in the list.')\n .defaultValue(() => ''),\n getPreventDrilldown: PropTypes.func\n .description('Callback function that determines whether drilldown should be prevented for a particular item.')\n .defaultValue(() => false),\n getCustomRenderer: PropTypes.func\n .description('Callback function that returns a custom renderer for each item in the list.')\n .defaultValue(() => undefined),\n getBatchActionableButtonProps: PropTypes.func\n .description('Callback function that returns the props for the batch actionable button in the destination list.')\n .defaultValue(() => ({}))\n .signature(`(({ isDestionationPanel: boolean }) => ({ \"aria-label\": string }))`),\n ...getPropsPerDatatestIdPropTypes(DSShuttleV2DataTestIds),\n destinationNoOptionsMessage: PropTypes.string\n .description('Custome message to be display when no matches found after filtering in destination panel')\n .defaultValue('There are no items to display'),\n sourceNoOptionsMessage: PropTypes.string\n .description('Custome message to be display when no matches found after filtering in source panel')\n .defaultValue('There are no items to display'),\n checkboxSelectAllProps: PropTypes.func\n .description('Function that returns props for the select all checkbox in the source panel.')\n .defaultValue({}),\n moveButtonProps: PropTypes.func\n .description('Function that returns props for the move button.')\n .defaultValue(() => ({}))\n .signature(`(({ isDestionationPanel: boolean }) => ({ \"aria-label\": string }))`),\n drillDownButtonProps: PropTypes.func\n .description('Function that returns props for the drilldown button.')\n .defaultValue(() => ({}))\n .signature(`(({ isDestionationPanel: boolean }) => ({ \"aria-label\": string }))`),\n areaSearchBarProps: PropTypes.func\n .description('Function that returns props for the area search bar.')\n .defaultValue(() => ({})),\n};\n\nexport const DSShuttleV2PropTypesSchema = DSShuttleV2PropTypes as unknown as ValidationMap<DSShuttleV2T.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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AAoE;AAAA,EACjF,sBAAsB,kCAAU,KAC7B,YAAY,uDAAuD,EACnE,aAAa,OAAO,CAAC,EAAE,EACvB,UAAU,oEAAoE;AAAA,EACjF,oBAAoB,kCAAU,KAC3B,YAAY,sDAAsD,EAClE,aAAa,OAAO,CAAC,EAAE;AAC5B;AAEO,MAAM,6BAA6B;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport { type DSButtonT, type DSButtonV3T } from '@elliemae/ds-button-v2';\nimport { type DnDKitTree, type useSortable } from '@elliemae/ds-drag-and-drop';\nimport { type DSControlledCheckboxT } from '@elliemae/ds-form-checkbox';\nimport { type DSInputTextT } from '@elliemae/ds-form-input-text';\nimport { type useHeadlessTooltip } from '@elliemae/ds-hooks-headless-tooltip';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n getPropsPerDatatestIdPropTypes,\n getPropsPerSlotPropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { ZustandT } from '@elliemae/ds-zustand-helpers';\nimport type React from 'react';\nimport type { useAutoCalculated } from './config/useAutoCalculated/index.js';\nimport type { ACTIONS_FOCUSES, DropIndicatorPosition, ITEMS_FOCUSES, REGIONS_FOCUSES } from './constants/index.js';\nimport { DSShuttleV2DataTestIds, DSShuttleV2Name, DSShuttleV2Slots } from './constants/index.js';\n\nexport declare namespace DSShuttleV2T {\n export type Datum<D extends Record<string, unknown> = Record<string, unknown>> = D;\n export type PanelMetaInfo = { isDestinationPanel: boolean; hasMultipleSelection?: boolean; height?: number };\n type HydratedId = string;\n\n export type DatumInternalMeta = {\n isFirst: boolean;\n isLast: boolean;\n isSelected: boolean;\n softDeleted: boolean;\n localIndex: number;\n hydratedId: HydratedId;\n hydratedPreventMove: boolean;\n };\n export type DatumRenderFlags = {\n selectionPrevented: boolean;\n withActions: boolean;\n withMoveBtn: boolean;\n withDrilldownBtn: boolean;\n internallyDisabledMove: boolean;\n internallyDisabledDrilldown: boolean;\n };\n\n export type DropIndicatorPositionValues = TypescriptHelpersT.ObjectValues<typeof DropIndicatorPosition>;\n\n // =============================================================================\n // Hydratables section - panel level hydratables\n // =============================================================================\n type RequiredPanelHydratables = Record<string, never>;\n type OptionalPanelHydratables = {\n batchActionableButtonProps: Record<string, unknown>;\n };\n export type PanelHydratables = RequiredPanelHydratables & OptionalPanelHydratables;\n\n // =============================================================================\n // Hydratables section - datum level hydratables\n // shared usage between internal and custom component\n // =============================================================================\n export type PrimaryKeyHydratables = {\n id: HydratedId;\n };\n type FunctionalHydratables = {\n preventMove?: boolean;\n };\n type RequiredDatumHydratablesWithoutComponents = {\n label: string;\n };\n type OptionalDatumHydratablesWithoutComponents = {\n subtitle?: string;\n preventDrilldown?: boolean;\n };\n type DatumHydratablesWithoutComponents = PrimaryKeyHydratables &\n FunctionalHydratables &\n RequiredDatumHydratablesWithoutComponents &\n OptionalDatumHydratablesWithoutComponents;\n // =============================================================================\n // Hydratables section - datum level hydratables\n // Custom component-only\n // =============================================================================\n export type ComponentProps<D extends Record<string, unknown> = Record<string, unknown>> = {\n datum: Datum<D>;\n thisItemIsFocused: boolean;\n panelMetaInfo: PanelMetaInfo;\n datumInternalMeta: DatumInternalMeta;\n datumHydratables: DatumHydratablesWithoutComponents;\n tooltipHelpers?: ReturnType<typeof useHeadlessTooltip>;\n };\n // eslint-disable-next-line @typescript-eslint/ban-types\n type RequiredDatumHydratablesComponents = {};\n type OptionalDatumHydratablesComponents<D extends Record<string, unknown> = Record<string, unknown>> = {\n Icon?: React.ComponentType<ComponentProps<D>>;\n CustomRenderer?: React.ComponentType<ComponentProps<D>> | null;\n };\n // =============================================================================\n // Hydratables section - datum level hydratables\n // Finals\n // =============================================================================\n type RequiredDatumHydratables = RequiredDatumHydratablesWithoutComponents & RequiredDatumHydratablesComponents;\n type OptionalDatumHydratables<D extends Record<string, unknown> = Record<string, unknown>> =\n OptionalDatumHydratablesWithoutComponents & OptionalDatumHydratablesComponents<D>;\n export type DatumHydratables<D extends Record<string, unknown> = Record<string, unknown>> = PrimaryKeyHydratables &\n RequiredDatumHydratables &\n OptionalDatumHydratables<D>;\n\n // =============================================================================\n // Hydraters\n // =============================================================================\n export type PrimaryKeyHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<PrimaryKeyHydratables, [Datum<D>]>;\n export type FunctionalHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<FunctionalHydratables, [Datum<D>, Partial<PanelMetaInfo>]>;\n type HydratersMeta = { datumMeta: DatumInternalMeta; panelMetaInfo: PanelMetaInfo };\n type RequiredDatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<RequiredDatumHydratables, [Datum<D>, HydratersMeta]>;\n type OptionalDatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<OptionalDatumHydratables<D>, [Datum<D>, HydratersMeta]>;\n\n type DatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> = PrimaryKeyHydraters<D> &\n FunctionalHydraters<D> &\n RequiredDatumHydraters<D> &\n OptionalDatumHydraters<D>;\n\n type RequiredPanelHydraters = TypescriptHelpersT.Hydraters<RequiredPanelHydratables, [PanelMetaInfo]>;\n type OptionalPanelHydraters = Partial<TypescriptHelpersT.Hydraters<OptionalPanelHydratables, [PanelMetaInfo]>>;\n type PanelHydraters = RequiredPanelHydraters & OptionalPanelHydraters;\n\n // =============================================================================\n // Datum & Internals structures\n // =============================================================================\n export type ConfiguredDatum<D extends Record<string, unknown> = Record<string, unknown>> = DatumInternalMeta & {\n original: Datum<D>;\n };\n export interface ItemMeta<D extends Record<string, unknown> = Record<string, unknown>> extends PanelMetaInfo {\n datum: Datum<D>;\n datumHydratables: DatumHydratables<D>;\n datumInternalMeta: DatumInternalMeta;\n datumRenderFlags: DatumRenderFlags;\n withDragNDrop: boolean;\n useSortableHelpers?: ReturnType<typeof useSortable>;\n }\n\n // =============================================================================\n // Slot argument types \u2014 per-slot getOwnerPropsArguments shapes\n // =============================================================================\n export type DragHandleArguments = {\n id: string;\n innerRef: React.RefObject<HTMLDivElement> | React.RefCallback<HTMLDivElement>;\n useSortableHelpers: ReturnType<typeof useSortable>;\n isDndActive: boolean;\n isDragging: boolean;\n disabled?: boolean;\n ariaLabelledby?: string;\n };\n\n export type ItemMidSectionArguments<D extends Record<string, unknown> = Record<string, unknown>> = ItemMeta<D> & {\n tooltipHelpers?: ComponentProps<D>['tooltipHelpers'];\n };\n\n // The to-source / to-destination icon slots render in two contexts (per-item action row and\n // bulk-action button). Both receive this single unified shape: the panel info is always present,\n // and the per-item extras (only available in the item-row context) are optional under extraMetaInfo.\n export type ItemActionIconArguments<D extends Record<string, unknown> = Record<string, unknown>> = {\n panelMetaInfo: PanelMetaInfo;\n extraMetaInfo?: { itemMeta?: ItemMeta<D> };\n };\n\n export type SlotFunctionArguments<D extends Record<string, unknown> = Record<string, unknown>> = {\n // Panel-level slots \u2014 receive PanelMetaInfo\n dsShuttlev2PanelWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2HeaderSearchIcon: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapperTop: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSearchWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSearchBar: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSelectionHeader: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSelectionHeaderCountLabel: (args: PanelMetaInfo) => object;\n dsShuttlev2AriaLivePanelCenter: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapperMid: (args: PanelMetaInfo) => object;\n dsShuttlev2ItemsWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2MoveMultipleWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2MoveMultipleBtn: (args: PanelMetaInfo) => object;\n dsShuttlev2MoveMultipleLiveRegion: (args: PanelMetaInfo) => object;\n dsShuttlev2EmptyListWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2LoadingListWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2ListBottomLoadingMore: (args: PanelMetaInfo) => object;\n dsShuttlev2ListBottomLoadMoreBtn: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapperBottom: (args: PanelMetaInfo) => object;\n // Item-level slots \u2014 receive ItemMeta\n dsShuttlev2ItemWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemCheckbox: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemSelection: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemSelectionCheckboxUi: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemLabelWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionsWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionBtn: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionBtnDrilldownIcon: (args: ItemMeta<D>) => object;\n // Item-level slots \u2014 receive ItemMeta & { tooltipHelpers? }\n dsShuttlev2ItemMidsectionWrapper: (args: ItemMidSectionArguments<D>) => object;\n dsShuttlev2ItemIconWrapper: (args: ItemMidSectionArguments<D>) => object;\n // Dual-context slots \u2014 rendered in both the item-action row and the bulk-action button;\n // both pass the same unified ItemActionIconArguments shape\n dsShuttlev2ItemActionBtnToSourceIcon: (args: ItemActionIconArguments<D>) => object;\n dsShuttlev2ItemActionBtnToDestinationIcon: (args: ItemActionIconArguments<D>) => object;\n // Drag-and-drop slots \u2014 receive DragHandleArguments\n dsShuttlev2DragAndDropHandleWrapper: (args: DragHandleArguments) => object;\n dsShuttlev2DragAndDropHandle: (args: DragHandleArguments) => object;\n // Root wrapper \u2014 no getOwnerPropsArguments passed\n dsShuttlev2Wrapper: () => object;\n };\n\n export type SlotProps<D extends Record<string, unknown> = Record<string, unknown>> = {\n [K in keyof SlotFunctionArguments<D>]?: object | SlotFunctionArguments<D>[K];\n };\n\n // =============================================================================\n // Callbacks\n // =============================================================================\n type OnDataChange<D extends Record<string, unknown> = Record<string, unknown>> = (\n newData: Datum<D>[],\n metainfo: {\n event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>;\n item?: Datum<D>;\n selectedItems?: Datum<D>[];\n },\n ) => void;\n\n type OnChangeEvent<T> = (\n items: T,\n metainfo: {\n event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>;\n },\n ) => void;\n\n type OnReorderEventMetadata<D extends Record<string, unknown> = Record<string, unknown>> = Omit<\n DnDKitTree.OnReorder<Datum<D>>,\n 'considerExpanding'\n >;\n type OnReorderEvent<D extends Record<string, unknown> = Record<string, unknown>> = (\n movedItem: Datum<D>,\n metadata: OnReorderEventMetadata<D>,\n ) => void;\n\n export type SelectionMap = Record<string, boolean>;\n type OnSelectionChange<D extends Record<string, unknown> = Record<string, unknown>> = (\n newSelection: SelectionMap,\n metainfo: {\n event:\n | Parameters<Required<DSButtonT.Props>['onClick']>[0]\n | Parameters<DSControlledCheckboxT.InternalProps['onChange']>[1]\n | React.MouseEvent<HTMLButtonElement | HTMLDivElement>\n | React.KeyboardEvent<HTMLDivElement>\n | React.ChangeEvent<HTMLInputElement>;\n item?: Datum<D>;\n },\n ) => void;\n\n type OnSelectionDrilldown<T> = (\n item: T,\n metainfo: { event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement> },\n ) => void;\n\n type OnLoadMore = (e: Parameters<Required<DSButtonT.Props>['onClick']>[0]) => void;\n type OnFilterChange = (\n newfilter: string,\n metainfo: { event: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement> },\n ) => void;\n type OnSearchbarOpen = (\n newfilter: boolean,\n metainfo: { event: Parameters<Required<DSButtonT.Props>['onClick']>[0] },\n ) => void;\n\n export type SoftDeletedMap = Record<string, boolean>;\n type OnSoftDeletedChange<D extends Record<string, unknown> = Record<string, unknown>> = (\n newSoftDeleted: SoftDeletedMap,\n metainfo: {\n event:\n | Parameters<Required<DSButtonT.Props>['onClick']>[0]\n | Parameters<DSControlledCheckboxT.InternalProps['onChange']>[1]\n | React.MouseEvent<HTMLButtonElement | HTMLDivElement>\n | React.KeyboardEvent<HTMLDivElement>\n | React.ChangeEvent<HTMLInputElement>;\n item?: Datum<D>;\n },\n ) => void;\n // =============================================================================\n // Zustand Store\n // =============================================================================\n export type FocusRegion = (typeof REGIONS_FOCUSES)[keyof typeof REGIONS_FOCUSES];\n export type FocusItem = Omit<(typeof ITEMS_FOCUSES)[keyof typeof ITEMS_FOCUSES], 'GET_SPECIFIC_ITEM'> & string;\n export type FocusItemAction = (typeof ACTIONS_FOCUSES)[keyof typeof ACTIONS_FOCUSES];\n export type InternalAtoms = {\n focusRegion: FocusRegion;\n focusItem: FocusItem;\n focusItemAction: FocusItemAction;\n deferFocusUntilFirstRender: boolean;\n dropIndicatorPosition: DropIndicatorPositionValues;\n overId: string;\n dndDraggingItem: ConfiguredDatum | null;\n dndDraggingItemMeta: ItemMeta | null;\n lastActiveId: string;\n isDropValid: boolean;\n sourcePanelLastSelectedItem: string | null | undefined;\n destinationPanelLastSelectedItem: string | null | undefined;\n shuttleInternalId: string;\n };\n export type UseAutoCalculatedT = ReturnType<typeof useAutoCalculated>;\n export type Selectors = {\n getIsDragAndDropHappening: () => boolean;\n getPanelLastSelectedItem: (isDestinationPanel: boolean) => string | null | undefined;\n };\n export type Reducers = Record<string, never>;\n export type ShuttleInternalStore = ZustandT.InternalStore<InternalAtoms, Selectors, Reducers>;\n // =============================================================================\n // Final Props\n // =============================================================================\n export interface RequiredProps<D extends Record<string, unknown> = Record<string, unknown>>\n extends RequiredDatumHydraters<D>,\n PrimaryKeyHydraters<D> {\n sourceData: Datum<D>[];\n sourceSelectedItems: SelectionMap;\n onSourceSelectionChange: OnSelectionChange<D>;\n // The header component and its props are owned and typed by the consumer; we only render\n // whatever component they pass with whatever props they pass. We deliberately use `any` (not\n // Record<string, unknown>) so a consumer component with its own required prop shape is accepted \u2014\n // ComponentType<Record<string, unknown>> would reject it via parameter contravariance.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n SourceHeader: React.ComponentType<any>;\n onSourceDrilldown: OnSelectionDrilldown<Datum<D>>;\n\n destinationData: Datum<D>[];\n destinationSelectedItems: SelectionMap;\n onDestinationSelectionChange: OnSelectionChange<D>;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n DestinationHeader: React.ComponentType<any>;\n onDestinationDrilldown: OnSelectionDrilldown<Datum<D>>;\n }\n\n export interface DefaultProps<D extends Record<string, unknown> = Record<string, unknown>>\n extends Required<FunctionalHydraters<D>> {\n // additional flag to condition how the selection UI renders (checkbox vs highlight only)\n // \u2014 can be used by the consumer to decide whether to use the ItemSelectionUI or not\n // incremental change for\n // PUI-18536 - [Dev][ShuttleV2] Non-color indicators needed for item states \u2014 WCAG 1.4.1 Use of Color\n explicitSelectionUI: boolean;\n // load-more and loaders\n sourceIsLoading: boolean;\n sourceWithLoadMore: boolean;\n sourceIsLoadingMore: boolean;\n onSourceLoadMore: OnLoadMore;\n destinationIsLoading: boolean;\n destinationWithLoadMore: boolean;\n destinationIsLoadingMore: boolean;\n onDestinationLoadMore: OnLoadMore;\n destinationNoOptionsMessage: string;\n sourceNoOptionsMessage: string;\n // switch side\n onSourceAdd: OnChangeEvent<Datum<D>[]>;\n onSourceRemove: OnChangeEvent<Datum<D>[]>;\n onDestinationAdd: OnChangeEvent<Datum<D>[]>;\n onDestinationRemove: OnChangeEvent<Datum<D>[]>;\n\n // dnd\n addDragAndDropFromSource: boolean;\n removeDragAndDropFromDestination: boolean;\n onSourceReorder: OnReorderEvent<D>;\n onDestinationReorder: OnReorderEvent<D>;\n\n // soft delete\n sourceSoftDeletedItems: SoftDeletedMap;\n onSourceSoftDelete: OnSoftDeletedChange<D>;\n destinationSoftDeletedItems: SoftDeletedMap;\n onDestinationSoftDelete: OnSoftDeletedChange<D>;\n }\n export interface OptionalProps<D extends Record<string, unknown> = Record<string, unknown>>\n extends OptionalDatumHydraters<D>,\n OptionalPanelHydraters,\n SlotProps<D> {\n sourceItemProps?: Record<string, unknown>;\n destinationItemProps?: Record<string, unknown>;\n sourceHeaderProps?: Record<string, unknown>;\n destinationHeaderProps?: Record<string, unknown>;\n // filtering\n sourceShowSearchbar?: boolean;\n destinationShowSearchbar?: boolean;\n onSourceOpenSearchbar?: OnSearchbarOpen;\n onDesinationOpenSearchbar?: OnSearchbarOpen;\n sourceFilterValue?: string;\n destinationFilterValue?: string;\n onSourceFilterChange?: OnFilterChange;\n onDestinationFilterChange?: OnFilterChange;\n\n moveButtonProps?: ({\n itemMeta,\n isDestinationPanel,\n }: {\n itemMeta: ItemMeta<D>;\n isDestinationPanel: boolean;\n }) => Omit<DSButtonV3T.Props, 'children'>;\n drillDownButtonProps?: ({\n itemMeta,\n isDestinationPanel,\n }: {\n itemMeta: ItemMeta<D>;\n isDestinationPanel: boolean;\n }) => Omit<DSButtonV3T.Props, 'children'>;\n\n checkboxSelectAllProps?: (metainfo: PanelMetaInfo) => DSControlledCheckboxT.Props;\n areaSearchBarProps?: (metaInfo: PanelMetaInfo) => DSInputTextT.Props;\n }\n\n export interface Props<D extends Record<string, unknown> = Record<string, unknown>>\n extends Partial<DefaultProps<D>>,\n OptionalProps<D>,\n Omit<\n GlobalAttributesT<HTMLButtonElement>,\n keyof DefaultProps<D> | keyof OptionalProps<D> | keyof RequiredProps<D>\n >,\n XstyledProps,\n RequiredProps<D> {}\n\n export interface InternalProps<D extends Record<string, unknown> = Record<string, unknown>>\n extends DefaultProps<D>,\n OptionalProps<D>,\n Omit<\n GlobalAttributesT<HTMLButtonElement>,\n keyof DefaultProps<D> | keyof OptionalProps<D> | keyof RequiredProps<D>\n >,\n XstyledProps,\n RequiredProps<D> {}\n}\n\nexport const defaultProps: DSShuttleV2T.DefaultProps = {\n // we start as false to avoid breaking changes, eventually converge to true for better accessibility\n explicitSelectionUI: false,\n\n addDragAndDropFromSource: false,\n removeDragAndDropFromDestination: false,\n destinationNoOptionsMessage: 'There are no items to display',\n sourceNoOptionsMessage: 'There are no items to display',\n sourceIsLoading: false,\n destinationIsLoading: false,\n sourceWithLoadMore: false,\n destinationWithLoadMore: false,\n sourceIsLoadingMore: false,\n destinationIsLoadingMore: false,\n onSourceLoadMore: () => {},\n onDestinationLoadMore: () => {},\n\n onSourceAdd: () => {},\n onDestinationAdd: () => {},\n onSourceRemove: () => {},\n onDestinationRemove: () => {},\n onSourceReorder: () => {},\n onDestinationReorder: () => {},\n\n sourceSoftDeletedItems: {},\n onSourceSoftDelete: () => {},\n destinationSoftDeletedItems: {},\n onDestinationSoftDelete: () => {},\n getPreventMove: () => false,\n};\n\nconst DSShuttleV2PropTypes: DSPropTypesSchema<DSShuttleV2T.Props> = {\n ...getPropsPerSlotPropTypes(DSShuttleV2Name, DSShuttleV2Slots),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n\n explicitSelectionUI: PropTypes.bool\n .description(\n 'A boolean indicating whether to use WCAG-compliant selection indicators (checkboxes) instead of color-only indicators for selected items, must be true for the component to meet WCAG 1.4.1 Use of Color guidelines',\n )\n .defaultValue(false),\n\n sourceData: PropTypes.arrayOf(PropTypes.object).description(\n 'An array of objects representing the items in the source list',\n ).isRequired,\n sourceSelectedItems: PropTypes.object.description('An object representing the selected items in the source list')\n .isRequired,\n onSourceSelectionChange: PropTypes.func.description('A function called when the selection in the source list changes')\n .isRequired,\n SourceHeader: PropTypes.elementType.description('The header component for the source list').isRequired,\n sourceHeaderProps: PropTypes.object.description('Props to be passed to the source header').defaultValue({}),\n onSourceDrilldown: PropTypes.func.description('A function called when an item in the source list is clicked')\n .isRequired,\n destinationData: PropTypes.arrayOf(PropTypes.object).description(\n 'An array of objects representing the items in the destination list',\n ).isRequired,\n destinationSelectedItems: PropTypes.object.description(\n 'An object representing the selected items in the destination list',\n ).isRequired,\n onDestinationSelectionChange: PropTypes.func.description(\n 'A function called when the selection in the destination list changes',\n ).isRequired,\n DestinationHeader: PropTypes.elementType.description('The header component for the destination list').isRequired,\n destinationHeaderProps: PropTypes.object.description('Props to be passed to the destination header').defaultValue({}),\n onDestinationDrilldown: PropTypes.func.description(\n 'A function called when an item in the destination list is clicked',\n ).isRequired,\n getId: PropTypes.func.description(\n 'A function that takes an item from the source/destination list and returns its unique identifier',\n ).isRequired,\n getLabel: PropTypes.func.description(\n 'A function that takes an item from the source/destination list and returns its display label',\n ).isRequired,\n sourceIsLoading: PropTypes.bool\n .description('A boolean indicating whether the source list is currently loading data')\n .defaultValue(false),\n destinationIsLoading: PropTypes.bool\n .description('A boolean indicating whether the destination list is currently loading data')\n .defaultValue(false),\n sourceWithLoadMore: PropTypes.bool\n .description('A boolean indicating whether the source list supports \"load more\" functionality')\n .defaultValue(false),\n destinationWithLoadMore: PropTypes.bool\n .description('A boolean indicating whether the destination list supports \"load more\" functionality')\n .defaultValue(false),\n sourceIsLoadingMore: PropTypes.bool\n .description('A boolean indicating whether the source list is currently loading more data')\n .defaultValue(false),\n destinationIsLoadingMore: PropTypes.bool\n .description('A boolean indicating whether the destination list is currently loading more data')\n .defaultValue(false),\n onSourceLoadMore: PropTypes.func\n .description('A function called when the \"load more\" button in the source list is clicked')\n .defaultValue(() => {}),\n onDestinationLoadMore: PropTypes.func\n .description('A function called when the \"load more\" button in the destination list is clicked')\n .defaultValue(() => {}),\n onSourceAdd: PropTypes.func\n .description('A function called when an item is added from the source list to the destination list')\n .defaultValue(() => {}),\n onDestinationAdd: PropTypes.func\n .description('A function called when an item is added from the destination list to the source list')\n .defaultValue(() => {}),\n onSourceRemove: PropTypes.func\n .description('A function called when an item is removed from the destination list')\n .defaultValue(() => {}),\n onDestinationRemove: PropTypes.func\n .description('Callback function to handle when an item is removed from the destination shuttle list. ')\n .defaultValue(() => {}),\n onSourceReorder: PropTypes.func\n .description('Callback function to handle when items are reordered in the source shuttle list.')\n .defaultValue(() => {}),\n onDestinationReorder: PropTypes.func\n .description('Callback function to handle when items are reordered in the destination shuttle list. ')\n .defaultValue(() => {}),\n sourceSoftDeletedItems: PropTypes.object\n .description(\n 'Object containing the soft deleted items in the source shuttle list, where the key is the item ID and the value is the deleted item.',\n )\n .defaultValue({}),\n onSourceSoftDelete: PropTypes.func\n .description('Callback function to handle when an item is soft deleted in the source shuttle list. ')\n .defaultValue(() => {}),\n destinationSoftDeletedItems: PropTypes.object\n .description(\n 'Object containing the soft deleted items in the destination shuttle list, where the key is the item ID and the value is the deleted item.',\n )\n .defaultValue({}),\n onDestinationSoftDelete: PropTypes.func\n .description('Callback function to handle when an item is soft deleted in the destination shuttle list.')\n .defaultValue(() => {}),\n getPreventMove: PropTypes.func\n .description('Function that determines whether a specific item can be moved to the destination shuttle list. ')\n .defaultValue(() => false),\n addDragAndDropFromSource: PropTypes.bool\n .description('Specifies whether items can be dragged from the source list and dropped into the destination list.')\n .defaultValue(false),\n removeDragAndDropFromDestination: PropTypes.bool\n .description('Specifies whether items can be removed from the destination list by dragging them out of the list.')\n .defaultValue(false),\n sourceItemProps: PropTypes.object\n .description('Specifies additional props to be applied to each item in the source list.')\n .defaultValue({}),\n destinationItemProps: PropTypes.object\n .description('Specifies additional props to be applied to each item in the destination list.')\n .defaultValue({}),\n sourceShowSearchbar: PropTypes.bool\n .description('Specifies whether the search bar should be shown in the source list.')\n .defaultValue(false),\n destinationShowSearchbar: PropTypes.bool\n .description('Specifies whether the search bar should be shown in the destination list.')\n .defaultValue(false),\n onSourceOpenSearchbar: PropTypes.func\n .description('Callback function that is called when the search bar in the source list is opened.')\n .defaultValue(() => {}),\n onDesinationOpenSearchbar: PropTypes.func\n .description('Callback function that is called when the search bar in the destination list is opened.')\n .defaultValue(() => {}),\n sourceFilterValue: PropTypes.string\n .description('Specifies the current value of the search filter in the source list.')\n .defaultValue(''),\n destinationFilterValue: PropTypes.string\n .description('Specifies the current value of the search filter in the destination list.')\n .defaultValue(''),\n onSourceFilterChange: PropTypes.func\n .description('Callback function that is called when the search filter in the source list is changed.')\n .defaultValue(() => {}),\n onDestinationFilterChange: PropTypes.func\n .description('Callback function that is called when the search filter in the destination list is changed.')\n .defaultValue(() => {}),\n getSubtitle: PropTypes.func\n .description('Callback function that returns the subtitle to be displayed for each item in the list.')\n .defaultValue(() => ''),\n getIcon: PropTypes.func\n .description('Callback function that returns the icon to be displayed for each item in the list.')\n .defaultValue(() => ''),\n getPreventDrilldown: PropTypes.func\n .description('Callback function that determines whether drilldown should be prevented for a particular item.')\n .defaultValue(() => false),\n getCustomRenderer: PropTypes.func\n .description('Callback function that returns a custom renderer for each item in the list.')\n .defaultValue(() => undefined),\n getBatchActionableButtonProps: PropTypes.func\n .description('Callback function that returns the props for the batch actionable button in the destination list.')\n .defaultValue(() => ({}))\n .signature(`(({ isDestionationPanel: boolean }) => ({ \"aria-label\": string }))`),\n ...getPropsPerDatatestIdPropTypes(DSShuttleV2DataTestIds),\n destinationNoOptionsMessage: PropTypes.string\n .description('Custome message to be display when no matches found after filtering in destination panel')\n .defaultValue('There are no items to display'),\n sourceNoOptionsMessage: PropTypes.string\n .description('Custome message to be display when no matches found after filtering in source panel')\n .defaultValue('There are no items to display'),\n checkboxSelectAllProps: PropTypes.func\n .description('Function that returns props for the select all checkbox in the source panel.')\n .defaultValue({}),\n moveButtonProps: PropTypes.func\n .description('Function that returns props for the move button.')\n .defaultValue(() => ({}))\n .signature(`(({ isDestionationPanel: boolean }) => ({ \"aria-label\": string }))`),\n drillDownButtonProps: PropTypes.func\n .description('Function that returns props for the drilldown button.')\n .defaultValue(() => ({}))\n .signature(`(({ isDestionationPanel: boolean }) => ({ \"aria-label\": string }))`),\n areaSearchBarProps: PropTypes.func\n .description('Function that returns props for the area search bar.')\n .defaultValue(() => ({})),\n};\n\nexport const DSShuttleV2PropTypesSchema = DSShuttleV2PropTypes as unknown as ValidationMap<DSShuttleV2T.Props>;\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport { type DSButtonT, type DSButtonV3T } from '@elliemae/ds-button-v2';\nimport { type DnDKitTree, type useSortable } from '@elliemae/ds-drag-and-drop';\nimport { type DSControlledCheckboxT } from '@elliemae/ds-form-checkbox';\nimport { type DSInputTextT } from '@elliemae/ds-form-input-text';\nimport { type useHeadlessTooltip } from '@elliemae/ds-hooks-headless-tooltip';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n getPropsPerDatatestIdPropTypes,\n getPropsPerSlotPropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { ZustandT } from '@elliemae/ds-zustand-helpers';\nimport type React from 'react';\nimport type { useAutoCalculated } from './config/useAutoCalculated/index.js';\nimport type { ACTIONS_FOCUSES, DropIndicatorPosition, ITEMS_FOCUSES, REGIONS_FOCUSES } from './constants/index.js';\nimport { DSShuttleV2DataTestIds, DSShuttleV2Name, DSShuttleV2Slots } from './constants/index.js';\n\nexport declare namespace DSShuttleV2T {\n export type Datum<D extends Record<string, unknown> = Record<string, unknown>> = D;\n export type PanelMetaInfo = { isDestinationPanel: boolean; hasMultipleSelection?: boolean; height?: number };\n type HydratedId = string;\n\n export type DatumInternalMeta = {\n isFirst: boolean;\n isLast: boolean;\n isSelected: boolean;\n softDeleted: boolean;\n localIndex: number;\n hydratedId: HydratedId;\n hydratedPreventMove: boolean;\n };\n export type DatumRenderFlags = {\n selectionPrevented: boolean;\n withActions: boolean;\n withMoveBtn: boolean;\n withDrilldownBtn: boolean;\n internallyDisabledMove: boolean;\n internallyDisabledDrilldown: boolean;\n };\n\n export type DropIndicatorPositionValues = TypescriptHelpersT.ObjectValues<typeof DropIndicatorPosition>;\n\n // =============================================================================\n // Hydratables section - panel level hydratables\n // =============================================================================\n type RequiredPanelHydratables = Record<string, never>;\n type OptionalPanelHydratables = {\n batchActionableButtonProps: Record<string, unknown>;\n };\n export type PanelHydratables = RequiredPanelHydratables & OptionalPanelHydratables;\n\n // =============================================================================\n // Hydratables section - datum level hydratables\n // shared usage between internal and custom component\n // =============================================================================\n export type PrimaryKeyHydratables = {\n id: HydratedId;\n };\n type FunctionalHydratables = {\n preventMove?: boolean;\n };\n type RequiredDatumHydratablesWithoutComponents = {\n label: string;\n };\n type OptionalDatumHydratablesWithoutComponents = {\n subtitle?: string;\n preventDrilldown?: boolean;\n };\n type DatumHydratablesWithoutComponents = PrimaryKeyHydratables &\n FunctionalHydratables &\n RequiredDatumHydratablesWithoutComponents &\n OptionalDatumHydratablesWithoutComponents;\n // =============================================================================\n // Hydratables section - datum level hydratables\n // Custom component-only\n // =============================================================================\n export type ComponentProps<D extends Record<string, unknown> = Record<string, unknown>> = {\n datum: Datum<D>;\n thisItemIsFocused: boolean;\n panelMetaInfo: PanelMetaInfo;\n datumInternalMeta: DatumInternalMeta;\n datumHydratables: DatumHydratablesWithoutComponents;\n tooltipHelpers?: ReturnType<typeof useHeadlessTooltip>;\n };\n // eslint-disable-next-line @typescript-eslint/ban-types\n type RequiredDatumHydratablesComponents = {};\n type OptionalDatumHydratablesComponents<D extends Record<string, unknown> = Record<string, unknown>> = {\n Icon?: React.ComponentType<ComponentProps<D>>;\n CustomRenderer?: React.ComponentType<ComponentProps<D>> | null;\n };\n // =============================================================================\n // Hydratables section - datum level hydratables\n // Finals\n // =============================================================================\n type RequiredDatumHydratables = RequiredDatumHydratablesWithoutComponents & RequiredDatumHydratablesComponents;\n type OptionalDatumHydratables<D extends Record<string, unknown> = Record<string, unknown>> =\n OptionalDatumHydratablesWithoutComponents & OptionalDatumHydratablesComponents<D>;\n export type DatumHydratables<D extends Record<string, unknown> = Record<string, unknown>> = PrimaryKeyHydratables &\n RequiredDatumHydratables &\n OptionalDatumHydratables<D>;\n\n // =============================================================================\n // Hydraters\n // =============================================================================\n export type PrimaryKeyHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<PrimaryKeyHydratables, [Datum<D>]>;\n export type FunctionalHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<FunctionalHydratables, [Datum<D>, Partial<PanelMetaInfo>]>;\n type HydratersMeta = { datumMeta: DatumInternalMeta; panelMetaInfo: PanelMetaInfo };\n type RequiredDatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<RequiredDatumHydratables, [Datum<D>, HydratersMeta]>;\n type OptionalDatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> =\n TypescriptHelpersT.Hydraters<OptionalDatumHydratables<D>, [Datum<D>, HydratersMeta]>;\n\n type DatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> = PrimaryKeyHydraters<D> &\n FunctionalHydraters<D> &\n RequiredDatumHydraters<D> &\n OptionalDatumHydraters<D>;\n\n type RequiredPanelHydraters = TypescriptHelpersT.Hydraters<RequiredPanelHydratables, [PanelMetaInfo]>;\n type OptionalPanelHydraters = Partial<TypescriptHelpersT.Hydraters<OptionalPanelHydratables, [PanelMetaInfo]>>;\n type PanelHydraters = RequiredPanelHydraters & OptionalPanelHydraters;\n\n // =============================================================================\n // Datum & Internals structures\n // =============================================================================\n export type ConfiguredDatum<D extends Record<string, unknown> = Record<string, unknown>> = DatumInternalMeta & {\n original: Datum<D>;\n };\n export interface ItemMeta<D extends Record<string, unknown> = Record<string, unknown>> extends PanelMetaInfo {\n datum: Datum<D>;\n datumHydratables: DatumHydratables<D>;\n datumInternalMeta: DatumInternalMeta;\n datumRenderFlags: DatumRenderFlags;\n withDragNDrop: boolean;\n useSortableHelpers?: ReturnType<typeof useSortable>;\n }\n\n // =============================================================================\n // Slot argument types \u2014 per-slot getOwnerPropsArguments shapes\n // =============================================================================\n export type DragHandleArguments = {\n id: string;\n innerRef: React.RefObject<HTMLDivElement> | React.RefCallback<HTMLDivElement>;\n useSortableHelpers: ReturnType<typeof useSortable>;\n isDndActive: boolean;\n isDragging: boolean;\n disabled?: boolean;\n ariaLabelledby?: string;\n };\n\n export type ItemMidSectionArguments<D extends Record<string, unknown> = Record<string, unknown>> = ItemMeta<D> & {\n tooltipHelpers?: ComponentProps<D>['tooltipHelpers'];\n };\n\n // The to-source / to-destination icon slots render in two contexts (per-item action row and\n // bulk-action button). Both receive this single unified shape: the panel info is always present,\n // and the per-item extras (only available in the item-row context) are optional under extraMetaInfo.\n export type ItemActionIconArguments<D extends Record<string, unknown> = Record<string, unknown>> = {\n panelMetaInfo: PanelMetaInfo;\n extraMetaInfo?: { itemMeta?: ItemMeta<D> };\n };\n\n export type SlotFunctionArguments<D extends Record<string, unknown> = Record<string, unknown>> = {\n // Panel-level slots \u2014 receive PanelMetaInfo\n dsShuttlev2PanelWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2HeaderSearchIcon: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapperTop: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSearchWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSearchBar: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSelectionHeader: (args: PanelMetaInfo) => object;\n dsShuttlev2AreaSelectionHeaderCountLabel: (args: PanelMetaInfo) => object;\n dsShuttlev2AriaLivePanelCenter: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapperMid: (args: PanelMetaInfo) => object;\n dsShuttlev2ItemsWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2MoveMultipleWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2MoveMultipleBtn: (args: PanelMetaInfo) => object;\n dsShuttlev2MoveMultipleLiveRegion: (args: PanelMetaInfo) => object;\n dsShuttlev2EmptyListWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2LoadingListWrapper: (args: PanelMetaInfo) => object;\n dsShuttlev2ListBottomLoadingMore: (args: PanelMetaInfo) => object;\n dsShuttlev2ListBottomLoadMoreBtn: (args: PanelMetaInfo) => object;\n dsShuttlev2ListWrapperBottom: (args: PanelMetaInfo) => object;\n // Item-level slots \u2014 receive ItemMeta\n dsShuttlev2ItemWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemCheckbox: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemSelection: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemSelectionCheckboxUi: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemLabelWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionsWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionWrapper: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionBtn: (args: ItemMeta<D>) => object;\n dsShuttlev2ItemActionBtnDrilldownIcon: (args: ItemMeta<D>) => object;\n // Item-level slots \u2014 receive ItemMeta & { tooltipHelpers? }\n dsShuttlev2ItemMidsectionWrapper: (args: ItemMidSectionArguments<D>) => object;\n dsShuttlev2ItemIconWrapper: (args: ItemMidSectionArguments<D>) => object;\n // Dual-context slots \u2014 rendered in both the item-action row and the bulk-action button;\n // both pass the same unified ItemActionIconArguments shape\n dsShuttlev2ItemActionBtnToSourceIcon: (args: ItemActionIconArguments<D>) => object;\n dsShuttlev2ItemActionBtnToDestinationIcon: (args: ItemActionIconArguments<D>) => object;\n // Drag-and-drop slots \u2014 receive DragHandleArguments\n dsShuttlev2DragAndDropHandleWrapper: (args: DragHandleArguments) => object;\n dsShuttlev2DragAndDropHandle: (args: DragHandleArguments) => object;\n // Root wrapper \u2014 no getOwnerPropsArguments passed\n dsShuttlev2Wrapper: () => object;\n };\n\n export type SlotProps<D extends Record<string, unknown> = Record<string, unknown>> = {\n [K in keyof SlotFunctionArguments<D>]?: object | SlotFunctionArguments<D>[K];\n };\n\n // =============================================================================\n // Callbacks\n // =============================================================================\n type OnDataChange<D extends Record<string, unknown> = Record<string, unknown>> = (\n newData: Datum<D>[],\n metainfo: {\n event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>;\n item?: Datum<D>;\n selectedItems?: Datum<D>[];\n },\n ) => void;\n\n type OnChangeEvent<T> = (\n items: T,\n metainfo: {\n event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>;\n },\n ) => void;\n\n type OnReorderEventMetadata<D extends Record<string, unknown> = Record<string, unknown>> = Omit<\n DnDKitTree.OnReorder<Datum<D>>,\n 'considerExpanding'\n >;\n type OnReorderEvent<D extends Record<string, unknown> = Record<string, unknown>> = (\n movedItem: Datum<D>,\n metadata: OnReorderEventMetadata<D>,\n ) => void;\n\n export type SelectionMap = Record<string, boolean>;\n type OnSelectionChange<D extends Record<string, unknown> = Record<string, unknown>> = (\n newSelection: SelectionMap,\n metainfo: {\n event:\n | Parameters<Required<DSButtonT.Props>['onClick']>[0]\n | Parameters<DSControlledCheckboxT.InternalProps['onChange']>[1]\n | React.MouseEvent<HTMLButtonElement | HTMLDivElement>\n | React.KeyboardEvent<HTMLDivElement>\n | React.ChangeEvent<HTMLInputElement>;\n item?: Datum<D>;\n },\n ) => void;\n\n type OnSelectionDrilldown<T> = (\n item: T,\n metainfo: { event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement> },\n ) => void;\n\n type OnLoadMore = (e: Parameters<Required<DSButtonT.Props>['onClick']>[0]) => void;\n type OnFilterChange = (\n newfilter: string,\n metainfo: { event: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement> },\n ) => void;\n type OnSearchbarOpen = (\n newfilter: boolean,\n metainfo: { event: Parameters<Required<DSButtonT.Props>['onClick']>[0] },\n ) => void;\n\n export type SoftDeletedMap = Record<string, boolean>;\n type OnSoftDeletedChange<D extends Record<string, unknown> = Record<string, unknown>> = (\n newSoftDeleted: SoftDeletedMap,\n metainfo: {\n event:\n | Parameters<Required<DSButtonT.Props>['onClick']>[0]\n | Parameters<DSControlledCheckboxT.InternalProps['onChange']>[1]\n | React.MouseEvent<HTMLButtonElement | HTMLDivElement>\n | React.KeyboardEvent<HTMLDivElement>\n | React.ChangeEvent<HTMLInputElement>;\n item?: Datum<D>;\n },\n ) => void;\n // =============================================================================\n // Zustand Store\n // =============================================================================\n export type FocusRegion = (typeof REGIONS_FOCUSES)[keyof typeof REGIONS_FOCUSES];\n export type FocusItem = Omit<(typeof ITEMS_FOCUSES)[keyof typeof ITEMS_FOCUSES], 'GET_SPECIFIC_ITEM'> & string;\n export type FocusItemAction = (typeof ACTIONS_FOCUSES)[keyof typeof ACTIONS_FOCUSES];\n export type InternalAtoms = {\n focusRegion: FocusRegion;\n focusItem: FocusItem;\n focusItemAction: FocusItemAction;\n deferFocusUntilFirstRender: boolean;\n dropIndicatorPosition: DropIndicatorPositionValues;\n overId: string;\n dndDraggingItem: ConfiguredDatum | null;\n dndDraggingItemMeta: ItemMeta | null;\n lastActiveId: string;\n isDropValid: boolean;\n sourcePanelLastSelectedItem: string | null | undefined;\n destinationPanelLastSelectedItem: string | null | undefined;\n shuttleInternalId: string;\n };\n export type UseAutoCalculatedT = ReturnType<typeof useAutoCalculated>;\n export type Selectors = {\n getIsDragAndDropHappening: () => boolean;\n getPanelLastSelectedItem: (isDestinationPanel: boolean) => string | null | undefined;\n };\n export type Reducers = Record<string, never>;\n export type ShuttleInternalStore = ZustandT.InternalStore<InternalAtoms, Selectors, Reducers>;\n // =============================================================================\n // Final Props\n // =============================================================================\n export interface RequiredProps<D extends Record<string, unknown> = Record<string, unknown>>\n extends RequiredDatumHydraters<D>, PrimaryKeyHydraters<D> {\n sourceData: Datum<D>[];\n sourceSelectedItems: SelectionMap;\n onSourceSelectionChange: OnSelectionChange<D>;\n // The header component and its props are owned and typed by the consumer; we only render\n // whatever component they pass with whatever props they pass. We deliberately use `any` (not\n // Record<string, unknown>) so a consumer component with its own required prop shape is accepted \u2014\n // ComponentType<Record<string, unknown>> would reject it via parameter contravariance.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n SourceHeader: React.ComponentType<any>;\n onSourceDrilldown: OnSelectionDrilldown<Datum<D>>;\n\n destinationData: Datum<D>[];\n destinationSelectedItems: SelectionMap;\n onDestinationSelectionChange: OnSelectionChange<D>;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n DestinationHeader: React.ComponentType<any>;\n onDestinationDrilldown: OnSelectionDrilldown<Datum<D>>;\n }\n\n export interface DefaultProps<D extends Record<string, unknown> = Record<string, unknown>> extends Required<\n FunctionalHydraters<D>\n > {\n // additional flag to condition how the selection UI renders (checkbox vs highlight only)\n // \u2014 can be used by the consumer to decide whether to use the ItemSelectionUI or not\n // incremental change for\n // PUI-18536 - [Dev][ShuttleV2] Non-color indicators needed for item states \u2014 WCAG 1.4.1 Use of Color\n explicitSelectionUI: boolean;\n // load-more and loaders\n sourceIsLoading: boolean;\n sourceWithLoadMore: boolean;\n sourceIsLoadingMore: boolean;\n onSourceLoadMore: OnLoadMore;\n destinationIsLoading: boolean;\n destinationWithLoadMore: boolean;\n destinationIsLoadingMore: boolean;\n onDestinationLoadMore: OnLoadMore;\n destinationNoOptionsMessage: string;\n sourceNoOptionsMessage: string;\n // switch side\n onSourceAdd: OnChangeEvent<Datum<D>[]>;\n onSourceRemove: OnChangeEvent<Datum<D>[]>;\n onDestinationAdd: OnChangeEvent<Datum<D>[]>;\n onDestinationRemove: OnChangeEvent<Datum<D>[]>;\n\n // dnd\n addDragAndDropFromSource: boolean;\n removeDragAndDropFromDestination: boolean;\n onSourceReorder: OnReorderEvent<D>;\n onDestinationReorder: OnReorderEvent<D>;\n\n // soft delete\n sourceSoftDeletedItems: SoftDeletedMap;\n onSourceSoftDelete: OnSoftDeletedChange<D>;\n destinationSoftDeletedItems: SoftDeletedMap;\n onDestinationSoftDelete: OnSoftDeletedChange<D>;\n }\n export interface OptionalProps<D extends Record<string, unknown> = Record<string, unknown>>\n extends OptionalDatumHydraters<D>, OptionalPanelHydraters, SlotProps<D> {\n sourceItemProps?: Record<string, unknown>;\n destinationItemProps?: Record<string, unknown>;\n sourceHeaderProps?: Record<string, unknown>;\n destinationHeaderProps?: Record<string, unknown>;\n // filtering\n sourceShowSearchbar?: boolean;\n destinationShowSearchbar?: boolean;\n onSourceOpenSearchbar?: OnSearchbarOpen;\n onDesinationOpenSearchbar?: OnSearchbarOpen;\n sourceFilterValue?: string;\n destinationFilterValue?: string;\n onSourceFilterChange?: OnFilterChange;\n onDestinationFilterChange?: OnFilterChange;\n\n moveButtonProps?: ({\n itemMeta,\n isDestinationPanel,\n }: {\n itemMeta: ItemMeta<D>;\n isDestinationPanel: boolean;\n }) => Omit<DSButtonV3T.Props, 'children'>;\n drillDownButtonProps?: ({\n itemMeta,\n isDestinationPanel,\n }: {\n itemMeta: ItemMeta<D>;\n isDestinationPanel: boolean;\n }) => Omit<DSButtonV3T.Props, 'children'>;\n\n checkboxSelectAllProps?: (metainfo: PanelMetaInfo) => DSControlledCheckboxT.Props;\n areaSearchBarProps?: (metaInfo: PanelMetaInfo) => DSInputTextT.Props;\n }\n\n export interface Props<D extends Record<string, unknown> = Record<string, unknown>>\n extends\n Partial<DefaultProps<D>>,\n OptionalProps<D>,\n Omit<\n GlobalAttributesT<HTMLButtonElement>,\n keyof DefaultProps<D> | keyof OptionalProps<D> | keyof RequiredProps<D>\n >,\n XstyledProps,\n RequiredProps<D> {}\n\n export interface InternalProps<D extends Record<string, unknown> = Record<string, unknown>>\n extends\n DefaultProps<D>,\n OptionalProps<D>,\n Omit<\n GlobalAttributesT<HTMLButtonElement>,\n keyof DefaultProps<D> | keyof OptionalProps<D> | keyof RequiredProps<D>\n >,\n XstyledProps,\n RequiredProps<D> {}\n}\n\nexport const defaultProps: DSShuttleV2T.DefaultProps = {\n // we start as false to avoid breaking changes, eventually converge to true for better accessibility\n explicitSelectionUI: false,\n\n addDragAndDropFromSource: false,\n removeDragAndDropFromDestination: false,\n destinationNoOptionsMessage: 'There are no items to display',\n sourceNoOptionsMessage: 'There are no items to display',\n sourceIsLoading: false,\n destinationIsLoading: false,\n sourceWithLoadMore: false,\n destinationWithLoadMore: false,\n sourceIsLoadingMore: false,\n destinationIsLoadingMore: false,\n onSourceLoadMore: () => {},\n onDestinationLoadMore: () => {},\n\n onSourceAdd: () => {},\n onDestinationAdd: () => {},\n onSourceRemove: () => {},\n onDestinationRemove: () => {},\n onSourceReorder: () => {},\n onDestinationReorder: () => {},\n\n sourceSoftDeletedItems: {},\n onSourceSoftDelete: () => {},\n destinationSoftDeletedItems: {},\n onDestinationSoftDelete: () => {},\n getPreventMove: () => false,\n};\n\nconst DSShuttleV2PropTypes: DSPropTypesSchema<DSShuttleV2T.Props> = {\n ...getPropsPerSlotPropTypes(DSShuttleV2Name, DSShuttleV2Slots),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n\n explicitSelectionUI: PropTypes.bool\n .description(\n 'A boolean indicating whether to use WCAG-compliant selection indicators (checkboxes) instead of color-only indicators for selected items, must be true for the component to meet WCAG 1.4.1 Use of Color guidelines',\n )\n .defaultValue(false),\n\n sourceData: PropTypes.arrayOf(PropTypes.object).description(\n 'An array of objects representing the items in the source list',\n ).isRequired,\n sourceSelectedItems: PropTypes.object.description('An object representing the selected items in the source list')\n .isRequired,\n onSourceSelectionChange: PropTypes.func.description('A function called when the selection in the source list changes')\n .isRequired,\n SourceHeader: PropTypes.elementType.description('The header component for the source list').isRequired,\n sourceHeaderProps: PropTypes.object.description('Props to be passed to the source header').defaultValue({}),\n onSourceDrilldown: PropTypes.func.description('A function called when an item in the source list is clicked')\n .isRequired,\n destinationData: PropTypes.arrayOf(PropTypes.object).description(\n 'An array of objects representing the items in the destination list',\n ).isRequired,\n destinationSelectedItems: PropTypes.object.description(\n 'An object representing the selected items in the destination list',\n ).isRequired,\n onDestinationSelectionChange: PropTypes.func.description(\n 'A function called when the selection in the destination list changes',\n ).isRequired,\n DestinationHeader: PropTypes.elementType.description('The header component for the destination list').isRequired,\n destinationHeaderProps: PropTypes.object.description('Props to be passed to the destination header').defaultValue({}),\n onDestinationDrilldown: PropTypes.func.description(\n 'A function called when an item in the destination list is clicked',\n ).isRequired,\n getId: PropTypes.func.description(\n 'A function that takes an item from the source/destination list and returns its unique identifier',\n ).isRequired,\n getLabel: PropTypes.func.description(\n 'A function that takes an item from the source/destination list and returns its display label',\n ).isRequired,\n sourceIsLoading: PropTypes.bool\n .description('A boolean indicating whether the source list is currently loading data')\n .defaultValue(false),\n destinationIsLoading: PropTypes.bool\n .description('A boolean indicating whether the destination list is currently loading data')\n .defaultValue(false),\n sourceWithLoadMore: PropTypes.bool\n .description('A boolean indicating whether the source list supports \"load more\" functionality')\n .defaultValue(false),\n destinationWithLoadMore: PropTypes.bool\n .description('A boolean indicating whether the destination list supports \"load more\" functionality')\n .defaultValue(false),\n sourceIsLoadingMore: PropTypes.bool\n .description('A boolean indicating whether the source list is currently loading more data')\n .defaultValue(false),\n destinationIsLoadingMore: PropTypes.bool\n .description('A boolean indicating whether the destination list is currently loading more data')\n .defaultValue(false),\n onSourceLoadMore: PropTypes.func\n .description('A function called when the \"load more\" button in the source list is clicked')\n .defaultValue(() => {}),\n onDestinationLoadMore: PropTypes.func\n .description('A function called when the \"load more\" button in the destination list is clicked')\n .defaultValue(() => {}),\n onSourceAdd: PropTypes.func\n .description('A function called when an item is added from the source list to the destination list')\n .defaultValue(() => {}),\n onDestinationAdd: PropTypes.func\n .description('A function called when an item is added from the destination list to the source list')\n .defaultValue(() => {}),\n onSourceRemove: PropTypes.func\n .description('A function called when an item is removed from the destination list')\n .defaultValue(() => {}),\n onDestinationRemove: PropTypes.func\n .description('Callback function to handle when an item is removed from the destination shuttle list. ')\n .defaultValue(() => {}),\n onSourceReorder: PropTypes.func\n .description('Callback function to handle when items are reordered in the source shuttle list.')\n .defaultValue(() => {}),\n onDestinationReorder: PropTypes.func\n .description('Callback function to handle when items are reordered in the destination shuttle list. ')\n .defaultValue(() => {}),\n sourceSoftDeletedItems: PropTypes.object\n .description(\n 'Object containing the soft deleted items in the source shuttle list, where the key is the item ID and the value is the deleted item.',\n )\n .defaultValue({}),\n onSourceSoftDelete: PropTypes.func\n .description('Callback function to handle when an item is soft deleted in the source shuttle list. ')\n .defaultValue(() => {}),\n destinationSoftDeletedItems: PropTypes.object\n .description(\n 'Object containing the soft deleted items in the destination shuttle list, where the key is the item ID and the value is the deleted item.',\n )\n .defaultValue({}),\n onDestinationSoftDelete: PropTypes.func\n .description('Callback function to handle when an item is soft deleted in the destination shuttle list.')\n .defaultValue(() => {}),\n getPreventMove: PropTypes.func\n .description('Function that determines whether a specific item can be moved to the destination shuttle list. ')\n .defaultValue(() => false),\n addDragAndDropFromSource: PropTypes.bool\n .description('Specifies whether items can be dragged from the source list and dropped into the destination list.')\n .defaultValue(false),\n removeDragAndDropFromDestination: PropTypes.bool\n .description('Specifies whether items can be removed from the destination list by dragging them out of the list.')\n .defaultValue(false),\n sourceItemProps: PropTypes.object\n .description('Specifies additional props to be applied to each item in the source list.')\n .defaultValue({}),\n destinationItemProps: PropTypes.object\n .description('Specifies additional props to be applied to each item in the destination list.')\n .defaultValue({}),\n sourceShowSearchbar: PropTypes.bool\n .description('Specifies whether the search bar should be shown in the source list.')\n .defaultValue(false),\n destinationShowSearchbar: PropTypes.bool\n .description('Specifies whether the search bar should be shown in the destination list.')\n .defaultValue(false),\n onSourceOpenSearchbar: PropTypes.func\n .description('Callback function that is called when the search bar in the source list is opened.')\n .defaultValue(() => {}),\n onDesinationOpenSearchbar: PropTypes.func\n .description('Callback function that is called when the search bar in the destination list is opened.')\n .defaultValue(() => {}),\n sourceFilterValue: PropTypes.string\n .description('Specifies the current value of the search filter in the source list.')\n .defaultValue(''),\n destinationFilterValue: PropTypes.string\n .description('Specifies the current value of the search filter in the destination list.')\n .defaultValue(''),\n onSourceFilterChange: PropTypes.func\n .description('Callback function that is called when the search filter in the source list is changed.')\n .defaultValue(() => {}),\n onDestinationFilterChange: PropTypes.func\n .description('Callback function that is called when the search filter in the destination list is changed.')\n .defaultValue(() => {}),\n getSubtitle: PropTypes.func\n .description('Callback function that returns the subtitle to be displayed for each item in the list.')\n .defaultValue(() => ''),\n getIcon: PropTypes.func\n .description('Callback function that returns the icon to be displayed for each item in the list.')\n .defaultValue(() => ''),\n getPreventDrilldown: PropTypes.func\n .description('Callback function that determines whether drilldown should be prevented for a particular item.')\n .defaultValue(() => false),\n getCustomRenderer: PropTypes.func\n .description('Callback function that returns a custom renderer for each item in the list.')\n .defaultValue(() => undefined),\n getBatchActionableButtonProps: PropTypes.func\n .description('Callback function that returns the props for the batch actionable button in the destination list.')\n .defaultValue(() => ({}))\n .signature(`(({ isDestionationPanel: boolean }) => ({ \"aria-label\": string }))`),\n ...getPropsPerDatatestIdPropTypes(DSShuttleV2DataTestIds),\n destinationNoOptionsMessage: PropTypes.string\n .description('Custome message to be display when no matches found after filtering in destination panel')\n .defaultValue('There are no items to display'),\n sourceNoOptionsMessage: PropTypes.string\n .description('Custome message to be display when no matches found after filtering in source panel')\n .defaultValue('There are no items to display'),\n checkboxSelectAllProps: PropTypes.func\n .description('Function that returns props for the select all checkbox in the source panel.')\n .defaultValue({}),\n moveButtonProps: PropTypes.func\n .description('Function that returns props for the move button.')\n .defaultValue(() => ({}))\n .signature(`(({ isDestionationPanel: boolean }) => ({ \"aria-label\": string }))`),\n drillDownButtonProps: PropTypes.func\n .description('Function that returns props for the drilldown button.')\n .defaultValue(() => ({}))\n .signature(`(({ isDestionationPanel: boolean }) => ({ \"aria-label\": string }))`),\n areaSearchBarProps: PropTypes.func\n .description('Function that returns props for the area search bar.')\n .defaultValue(() => ({})),\n};\n\nexport const DSShuttleV2PropTypesSchema = DSShuttleV2PropTypes as unknown as ValidationMap<DSShu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D,EAC9D,aAAa,OAAO,CAAC,EAAE,EACvB,UAAU,oEAAoE;AAAA,EACjF,sBAAsB,UAAU,KAC7B,YAAY,uDAAuD,EACnE,aAAa,OAAO,CAAC,EAAE,EACvB,UAAU,oEAAoE;AAAA,EACjF,oBAAoB,UAAU,KAC3B,YAAY,sDAAsD,EAClE,aAAa,OAAO,CAAC,EAAE;AAC5B;AAEO,MAAM,6BAA6B;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-shuttle-v2",
3
- "version": "3.70.0-alpha.13",
3
+ "version": "3.70.0-alpha.14",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Shuttle v2",
6
6
  "files": [
@@ -39,33 +39,33 @@
39
39
  "@xstyled/styled-components": "~3.8.1",
40
40
  "fast-deep-equal": "~3.1.3",
41
41
  "uid": "^2.0.2",
42
- "@elliemae/ds-button-v2": "3.70.0-alpha.13",
43
- "@elliemae/ds-drag-and-drop": "3.70.0-alpha.13",
44
- "@elliemae/ds-fast-list": "3.70.0-alpha.13",
45
- "@elliemae/ds-form-checkbox": "3.70.0-alpha.13",
46
- "@elliemae/ds-floating-context": "3.70.0-alpha.13",
47
- "@elliemae/ds-circular-progress-indicator": "3.70.0-alpha.13",
48
- "@elliemae/ds-form-input-text": "3.70.0-alpha.13",
49
- "@elliemae/ds-grid": "3.70.0-alpha.13",
50
- "@elliemae/ds-hooks-fontsize-detector": "3.70.0-alpha.13",
51
- "@elliemae/ds-hooks-headless-tooltip": "3.70.0-alpha.13",
52
- "@elliemae/ds-hooks-on-blur-out": "3.70.0-alpha.13",
53
- "@elliemae/ds-indeterminate-progress-indicator": "3.70.0-alpha.13",
54
- "@elliemae/ds-icons": "3.70.0-alpha.13",
55
- "@elliemae/ds-props-helpers": "3.70.0-alpha.13",
56
- "@elliemae/ds-system": "3.70.0-alpha.13",
57
- "@elliemae/ds-typescript-helpers": "3.70.0-alpha.13",
58
- "@elliemae/ds-typography": "3.70.0-alpha.13",
59
- "@elliemae/ds-zustand-helpers": "3.70.0-alpha.13"
42
+ "@elliemae/ds-button-v2": "3.70.0-alpha.14",
43
+ "@elliemae/ds-circular-progress-indicator": "3.70.0-alpha.14",
44
+ "@elliemae/ds-fast-list": "3.70.0-alpha.14",
45
+ "@elliemae/ds-floating-context": "3.70.0-alpha.14",
46
+ "@elliemae/ds-form-checkbox": "3.70.0-alpha.14",
47
+ "@elliemae/ds-drag-and-drop": "3.70.0-alpha.14",
48
+ "@elliemae/ds-form-input-text": "3.70.0-alpha.14",
49
+ "@elliemae/ds-grid": "3.70.0-alpha.14",
50
+ "@elliemae/ds-hooks-fontsize-detector": "3.70.0-alpha.14",
51
+ "@elliemae/ds-hooks-headless-tooltip": "3.70.0-alpha.14",
52
+ "@elliemae/ds-hooks-on-blur-out": "3.70.0-alpha.14",
53
+ "@elliemae/ds-indeterminate-progress-indicator": "3.70.0-alpha.14",
54
+ "@elliemae/ds-props-helpers": "3.70.0-alpha.14",
55
+ "@elliemae/ds-system": "3.70.0-alpha.14",
56
+ "@elliemae/ds-icons": "3.70.0-alpha.14",
57
+ "@elliemae/ds-zustand-helpers": "3.70.0-alpha.14",
58
+ "@elliemae/ds-typography": "3.70.0-alpha.14",
59
+ "@elliemae/ds-typescript-helpers": "3.70.0-alpha.14"
60
60
  },
61
61
  "devDependencies": {
62
62
  "jest": "^30.0.0",
63
63
  "lodash-es": "^4.18.1",
64
64
  "styled-components": "~5.3.11",
65
- "@elliemae/ds-breadcrumb": "3.70.0-alpha.13",
66
- "@elliemae/ds-monorepo-devops": "3.70.0-alpha.13",
67
- "@elliemae/ds-test-utils": "3.70.0-alpha.13",
68
- "@elliemae/ds-tree-model": "3.70.0-alpha.13"
65
+ "@elliemae/ds-breadcrumb": "3.70.0-alpha.14",
66
+ "@elliemae/ds-monorepo-devops": "3.70.0-alpha.14",
67
+ "@elliemae/ds-test-utils": "3.70.0-alpha.14",
68
+ "@elliemae/ds-tree-model": "3.70.0-alpha.14"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "lodash-es": "^4.18.1",