@elliemae/ds-shuttle-v2 3.62.1 → 3.70.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/DSShuttleV2.js.map +2 -2
- package/dist/cjs/config/useAutoCalculated/index.js.map +2 -2
- package/dist/cjs/config/useAutoCalculated/useDataStructure.js.map +2 -2
- package/dist/cjs/config/useStore/useStore.js.map +1 -1
- package/dist/cjs/config/useValidateProps.js.map +2 -2
- package/dist/cjs/constants/index.js +3 -1
- package/dist/cjs/constants/index.js.map +2 -2
- package/dist/cjs/exported-related/ShuttleItem.js +27 -3
- package/dist/cjs/exported-related/ShuttleItem.js.map +2 -2
- package/dist/cjs/parts/Dnd/DndHandle.js +47 -21
- package/dist/cjs/parts/Dnd/DndHandle.js.map +2 -2
- package/dist/cjs/parts/Dnd/DragOverlay.js +1 -1
- package/dist/cjs/parts/Dnd/DragOverlay.js.map +2 -2
- package/dist/cjs/parts/HoC/withConditionalDnDRowContext.js +16 -14
- package/dist/cjs/parts/HoC/withConditionalDnDRowContext.js.map +2 -2
- package/dist/cjs/parts/Item/Item.js +29 -68
- package/dist/cjs/parts/Item/Item.js.map +3 -3
- package/dist/cjs/parts/Item/ItemActions/ItemActions.js +19 -5
- package/dist/cjs/parts/Item/ItemActions/ItemActions.js.map +2 -2
- package/dist/cjs/parts/Item/ItemActions/{useInnerRefHandlers.js → useInnerRefActionHandlers.js} +6 -6
- package/dist/cjs/parts/Item/ItemActions/useInnerRefActionHandlers.js.map +7 -0
- package/dist/cjs/parts/Item/ItemMiddleSection.js +1 -0
- package/dist/cjs/parts/Item/ItemMiddleSection.js.map +2 -2
- package/dist/cjs/parts/Item/ItemSelectionUi/CheckboxSelectionUI.js +72 -0
- package/dist/cjs/parts/Item/ItemSelectionUi/CheckboxSelectionUI.js.map +7 -0
- package/dist/cjs/parts/Item/ItemSelectionUi/ItemSelectionUI.js +83 -0
- package/dist/cjs/parts/Item/ItemSelectionUi/ItemSelectionUI.js.map +7 -0
- package/dist/cjs/parts/{HoC/withConditionalUseSortable.js → Item/ItemSelectionUi/ItemSelectionUI.types.js} +3 -18
- package/dist/cjs/parts/Item/ItemSelectionUi/ItemSelectionUI.types.js.map +7 -0
- package/dist/cjs/parts/Item/{ItemSelection.js → ItemSelectionUi/VerticalBarSelectionUI.js} +14 -12
- package/dist/cjs/parts/Item/ItemSelectionUi/VerticalBarSelectionUI.js.map +7 -0
- package/dist/cjs/parts/Item/useItemInnerRefHandlers.js +73 -0
- package/dist/cjs/parts/Item/useItemInnerRefHandlers.js.map +7 -0
- package/dist/cjs/parts/Panel/bottom/LoadMoreBtn.js +2 -2
- package/dist/cjs/parts/Panel/bottom/LoadMoreBtn.js.map +2 -2
- package/dist/cjs/parts/Panel/bottom/{useInnerRefHandlers.js → useLoadMoreBtnInnerRefHandlers.js} +6 -6
- package/dist/cjs/parts/Panel/bottom/useLoadMoreBtnInnerRefHandlers.js.map +7 -0
- package/dist/cjs/parts/Panel/middle/MultipleSelectionAction.js +65 -33
- package/dist/cjs/parts/Panel/middle/MultipleSelectionAction.js.map +2 -2
- package/dist/cjs/parts/Panel/middle/PanelContentMiddleSection.js +2 -2
- package/dist/cjs/parts/Panel/middle/PanelContentMiddleSection.js.map +2 -2
- package/dist/cjs/parts/Panel/top/SelectionHeader.js.map +2 -2
- package/dist/cjs/react-desc-prop-types.js +8 -4
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/typescript-testing/slot-props.js +181 -0
- package/dist/cjs/typescript-testing/slot-props.js.map +7 -0
- package/dist/cjs/typescript-testing/typescript-shuttle-v2-valid-with-datum.js +159 -0
- package/dist/cjs/typescript-testing/typescript-shuttle-v2-valid-with-datum.js.map +7 -0
- package/dist/cjs/typescript-testing/typescript-shuttle-v2-valid.js +0 -1
- package/dist/cjs/typescript-testing/typescript-shuttle-v2-valid.js.map +2 -2
- package/dist/esm/DSShuttleV2.js.map +2 -2
- package/dist/esm/config/useAutoCalculated/index.js.map +2 -2
- package/dist/esm/config/useAutoCalculated/useDataStructure.js.map +2 -2
- package/dist/esm/config/useStore/useStore.js.map +1 -1
- package/dist/esm/config/useValidateProps.js.map +2 -2
- package/dist/esm/constants/index.js +3 -1
- package/dist/esm/constants/index.js.map +2 -2
- package/dist/esm/exported-related/ShuttleItem.js +28 -4
- package/dist/esm/exported-related/ShuttleItem.js.map +2 -2
- package/dist/esm/parts/Dnd/DndHandle.js +48 -22
- package/dist/esm/parts/Dnd/DndHandle.js.map +2 -2
- package/dist/esm/parts/Dnd/DragOverlay.js +1 -1
- package/dist/esm/parts/Dnd/DragOverlay.js.map +2 -2
- package/dist/esm/parts/HoC/withConditionalDnDRowContext.js +16 -14
- package/dist/esm/parts/HoC/withConditionalDnDRowContext.js.map +2 -2
- package/dist/esm/parts/Item/Item.js +30 -69
- package/dist/esm/parts/Item/Item.js.map +2 -2
- package/dist/esm/parts/Item/ItemActions/ItemActions.js +19 -5
- package/dist/esm/parts/Item/ItemActions/ItemActions.js.map +2 -2
- package/dist/esm/parts/Item/ItemActions/{useInnerRefHandlers.js → useInnerRefActionHandlers.js} +3 -3
- package/dist/esm/parts/Item/ItemActions/useInnerRefActionHandlers.js.map +7 -0
- package/dist/esm/parts/Item/ItemMiddleSection.js +1 -0
- package/dist/esm/parts/Item/ItemMiddleSection.js.map +2 -2
- package/dist/esm/parts/Item/ItemSelectionUi/CheckboxSelectionUI.js +42 -0
- package/dist/esm/parts/Item/ItemSelectionUi/CheckboxSelectionUI.js.map +7 -0
- package/dist/esm/parts/Item/ItemSelectionUi/ItemSelectionUI.js +53 -0
- package/dist/esm/parts/Item/ItemSelectionUi/ItemSelectionUI.js.map +7 -0
- package/dist/esm/parts/Item/ItemSelectionUi/ItemSelectionUI.types.js +2 -0
- package/dist/esm/parts/Item/ItemSelectionUi/ItemSelectionUI.types.js.map +7 -0
- package/dist/esm/parts/Item/{ItemSelection.js → ItemSelectionUi/VerticalBarSelectionUI.js} +11 -9
- package/dist/esm/parts/Item/ItemSelectionUi/VerticalBarSelectionUI.js.map +7 -0
- package/dist/esm/parts/Item/useItemInnerRefHandlers.js +43 -0
- package/dist/esm/parts/Item/useItemInnerRefHandlers.js.map +7 -0
- package/dist/esm/parts/Panel/bottom/LoadMoreBtn.js +2 -2
- package/dist/esm/parts/Panel/bottom/LoadMoreBtn.js.map +2 -2
- package/dist/esm/parts/Panel/bottom/{useInnerRefHandlers.js → useLoadMoreBtnInnerRefHandlers.js} +3 -3
- package/dist/esm/parts/Panel/bottom/useLoadMoreBtnInnerRefHandlers.js.map +7 -0
- package/dist/esm/parts/Panel/middle/MultipleSelectionAction.js +66 -34
- package/dist/esm/parts/Panel/middle/MultipleSelectionAction.js.map +2 -2
- package/dist/esm/parts/Panel/middle/PanelContentMiddleSection.js +2 -2
- package/dist/esm/parts/Panel/middle/PanelContentMiddleSection.js.map +2 -2
- package/dist/esm/parts/Panel/top/SelectionHeader.js.map +2 -2
- package/dist/esm/react-desc-prop-types.js +8 -4
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/esm/typescript-testing/slot-props.js +158 -0
- package/dist/esm/typescript-testing/slot-props.js.map +7 -0
- package/dist/esm/typescript-testing/typescript-shuttle-v2-valid-with-datum.js +136 -0
- package/dist/esm/typescript-testing/typescript-shuttle-v2-valid-with-datum.js.map +7 -0
- package/dist/esm/typescript-testing/typescript-shuttle-v2-valid.js +0 -1
- package/dist/esm/typescript-testing/typescript-shuttle-v2-valid.js.map +2 -2
- package/dist/types/DSShuttleV2.d.ts +2 -2
- package/dist/types/config/useAutoCalculated/index.d.ts +7 -7
- package/dist/types/config/useAutoCalculated/useDataStructure.d.ts +7 -7
- package/dist/types/config/useStore/useStore.d.ts +64 -64
- package/dist/types/config/useValidateProps.d.ts +1 -1
- package/dist/types/constants/index.d.ts +6 -2
- package/dist/types/parts/Dnd/DndHandle.d.ts +3 -10
- package/dist/types/parts/Header.d.ts +1 -1
- package/dist/types/parts/Item/Item.d.ts +1 -4
- package/dist/types/parts/Item/ItemActions/ItemActions.d.ts +1 -1
- package/dist/types/parts/Item/ItemActions/{useInnerRefHandlers.d.ts → useInnerRefActionHandlers.d.ts} +1 -1
- package/dist/types/parts/Item/ItemMiddleSection.d.ts +1 -1
- package/dist/types/parts/Item/ItemOverlay.d.ts +1 -1
- package/dist/types/parts/Item/ItemSelectionUi/CheckboxSelectionUI.d.ts +3 -0
- package/dist/types/parts/Item/ItemSelectionUi/ItemSelectionUI.d.ts +3 -0
- package/dist/types/parts/Item/ItemSelectionUi/ItemSelectionUI.types.d.ts +11 -0
- package/dist/types/parts/Item/ItemSelectionUi/VerticalBarSelectionUI.d.ts +3 -0
- package/dist/types/parts/Item/TextSection.d.ts +1 -1
- package/dist/types/parts/Item/useItemInnerRefHandlers.d.ts +5 -0
- package/dist/types/parts/MainContent.d.ts +1 -1
- package/dist/types/parts/Panel/bottom/LoadMoreBtn.d.ts +2 -1
- package/dist/types/parts/Panel/bottom/LoadingMore.d.ts +2 -1
- package/dist/types/parts/Panel/bottom/PanelContentBottomSection.d.ts +1 -1
- package/dist/types/parts/Panel/bottom/{useInnerRefHandlers.d.ts → useLoadMoreBtnInnerRefHandlers.d.ts} +1 -1
- package/dist/types/parts/Panel/middle/EmptyItems.d.ts +2 -1
- package/dist/types/parts/Panel/middle/ItemListWrapper/useGetDatumHydratables.d.ts +2 -2
- package/dist/types/parts/Panel/middle/LoadingItems.d.ts +2 -1
- package/dist/types/parts/Panel/middle/MultipleSelectionAction.d.ts +1 -1
- package/dist/types/parts/Panel/middle/PanelContentMiddleSection.d.ts +1 -1
- package/dist/types/parts/Panel/middle/ShuttleLoadingAnnouncement.d.ts +1 -1
- package/dist/types/parts/Panel/top/AriaLivePanelCenter.d.ts +2 -1
- package/dist/types/parts/Panel/top/PanelContentTopSection.d.ts +2 -1
- package/dist/types/parts/Panel/top/PanelFilterSection.d.ts +2 -1
- package/dist/types/parts/Panel/top/SelectionHeader.d.ts +1 -1
- package/dist/types/parts/PanelWrapper.d.ts +1 -1
- package/dist/types/react-desc-prop-types.d.ts +111 -57
- package/package.json +26 -26
- package/dist/cjs/parts/HoC/withConditionalUseSortable.js.map +0 -7
- package/dist/cjs/parts/Item/ItemActions/useInnerRefHandlers.js.map +0 -7
- package/dist/cjs/parts/Item/ItemSelection.js.map +0 -7
- package/dist/cjs/parts/Panel/bottom/useInnerRefHandlers.js.map +0 -7
- package/dist/esm/parts/HoC/withConditionalUseSortable.js +0 -13
- package/dist/esm/parts/HoC/withConditionalUseSortable.js.map +0 -7
- package/dist/esm/parts/Item/ItemActions/useInnerRefHandlers.js.map +0 -7
- package/dist/esm/parts/Item/ItemSelection.js.map +0 -7
- package/dist/esm/parts/Panel/bottom/useInnerRefHandlers.js.map +0 -7
- package/dist/types/parts/HoC/withConditionalUseSortable.d.ts +0 -9
- package/dist/types/parts/Item/ItemSelection.d.ts +0 -3
- package/dist/types/tests/DSShuttlev2.PUI-16059.test.d.ts +0 -1
- package/dist/types/tests/configs/ControlledTestRender.d.ts +0 -1
- package/dist/types/tests/configs/basic.d.ts +0 -24
- package/dist/types/tests/configs/breadcrumb.d.ts +0 -1
- package/dist/types/tests/configs/dnd.d.ts +0 -1
- package/dist/types/tests/configs/filter.d.ts +0 -30
- package/dist/types/tests/configs/loadMore.d.ts +0 -28
- package/dist/types/tests/configs/soft-delete.d.ts +0 -1
- package/dist/types/tests/loadMore/ShuttleV2WithLoadMoreTestable.d.ts +0 -2
- package/dist/types/tests/loadMore/shuttle-v2.load-more.focus.test.d.ts +0 -1
- package/dist/types/tests/loadMore/shuttle-v2.load-more.test.d.ts +0 -1
- package/dist/types/tests/shuttle-v2.a11y.test.d.ts +0 -1
- package/dist/types/tests/shuttle-v2.data-testid.test.d.ts +0 -1
- package/dist/types/tests/shuttle-v2.dnd.test.d.ts +0 -1
- package/dist/types/tests/shuttle-v2.events.test.d.ts +0 -1
- package/dist/types/tests/shuttle-v2.exports.test.d.ts +0 -1
- package/dist/types/tests/shuttle-v2.get-owner-props.test.d.ts +0 -1
- package/dist/types/tests/shuttle-v2.keyboard.test.d.ts +0 -1
- package/dist/types/tests/shuttle-v2.soft-delete.test.d.ts +0 -1
- package/dist/types/typescript-testing/typescript-shuttle-v2-valid.d.ts +0 -1
|
@@ -10,6 +10,7 @@ export declare const DSShuttleV2Slots: {
|
|
|
10
10
|
readonly ITEM_LABEL_WRAPPER: "item-label-wrapper";
|
|
11
11
|
readonly ITEM_MIDSECTION_WRAPPER: "item-midsection-wrapper";
|
|
12
12
|
readonly ITEM_SELECTION: "item-selection";
|
|
13
|
+
readonly ITEM_SELECTION_CHECKBOX_UI: "item-selection-checkbox-ui";
|
|
13
14
|
readonly ITEM_ACTIONS_WRAPPER: "item-actions-wrapper";
|
|
14
15
|
readonly ITEM_ACTION_WRAPPER: "item-action-wrapper";
|
|
15
16
|
readonly ITEM_ACTION_BTN: "item-action-btn";
|
|
@@ -24,13 +25,14 @@ export declare const DSShuttleV2Slots: {
|
|
|
24
25
|
readonly LOADING_LIST_WRAPPER: "loading-list-wrapper";
|
|
25
26
|
readonly MOVE_MULTIPLE_WRAPPER: "move-multiple-wrapper";
|
|
26
27
|
readonly MOVE_MULTIPLE_BTN: "move-multiple-btn";
|
|
28
|
+
readonly MOVE_MULTIPLE_LIVE_REGION: "move-multiple-live-region";
|
|
27
29
|
readonly LIST_WRAPPER_MID: "list-wrapper-mid";
|
|
28
|
-
readonly LIST_WRAPPER_MID_SCROLLER: "list-wrapper-mid-scroller";
|
|
29
30
|
readonly LIST_WRAPPER_TOP: "list-wrapper-top";
|
|
30
31
|
readonly AREA_SEARCH_WRAPPER: "area-search-wrapper";
|
|
31
32
|
readonly AREA_SEARCH_BAR: "area-search-bar";
|
|
32
33
|
readonly AREA_SELECTION_HEADER: "area-selection-header";
|
|
33
34
|
readonly AREA_SELECTION_HEADER_COUNT_LABEL: "area-selection-header-count-label";
|
|
35
|
+
readonly DRAG_AND_DROP_HANDLE_WRAPPER: "drag-and-drop-handle-wrapper";
|
|
34
36
|
readonly DRAG_AND_DROP_HANDLE: "drag-and-drop-handle";
|
|
35
37
|
readonly ARIA_LIVE_PANEL_CENTER: "aria-live-panel-center";
|
|
36
38
|
};
|
|
@@ -49,6 +51,7 @@ export declare const DSShuttleV2DataTestIds: {
|
|
|
49
51
|
readonly ITEM_LABEL_WRAPPER: "ds-shuttlev2-item-label-wrapper";
|
|
50
52
|
readonly ITEM_MIDSECTION_WRAPPER: "ds-shuttlev2-item-midsection-wrapper";
|
|
51
53
|
readonly ITEM_SELECTION: "ds-shuttlev2-item-selection";
|
|
54
|
+
readonly ITEM_SELECTION_CHECKBOX_UI: "ds-shuttlev2-item-selection-checkbox-ui";
|
|
52
55
|
readonly ITEM_ACTIONS_WRAPPER: "ds-shuttlev2-item-actions-wrapper";
|
|
53
56
|
readonly ITEM_ACTION_WRAPPER: "ds-shuttlev2-item-action-wrapper";
|
|
54
57
|
readonly ITEM_ACTION_BTN: "ds-shuttlev2-item-action-btn";
|
|
@@ -63,13 +66,14 @@ export declare const DSShuttleV2DataTestIds: {
|
|
|
63
66
|
readonly LOADING_LIST_WRAPPER: "ds-shuttlev2-loading-list-wrapper";
|
|
64
67
|
readonly MOVE_MULTIPLE_WRAPPER: "ds-shuttlev2-move-multiple-wrapper";
|
|
65
68
|
readonly MOVE_MULTIPLE_BTN: "ds-shuttlev2-move-multiple-btn";
|
|
69
|
+
readonly MOVE_MULTIPLE_LIVE_REGION: "ds-shuttlev2-move-multiple-live-region";
|
|
66
70
|
readonly LIST_WRAPPER_MID: "ds-shuttlev2-list-wrapper-mid";
|
|
67
|
-
readonly LIST_WRAPPER_MID_SCROLLER: "ds-shuttlev2-list-wrapper-mid-scroller";
|
|
68
71
|
readonly LIST_WRAPPER_TOP: "ds-shuttlev2-list-wrapper-top";
|
|
69
72
|
readonly AREA_SEARCH_WRAPPER: "ds-shuttlev2-area-search-wrapper";
|
|
70
73
|
readonly AREA_SEARCH_BAR: "ds-shuttlev2-area-search-bar";
|
|
71
74
|
readonly AREA_SELECTION_HEADER: "ds-shuttlev2-area-selection-header";
|
|
72
75
|
readonly AREA_SELECTION_HEADER_COUNT_LABEL: "ds-shuttlev2-area-selection-header-count-label";
|
|
76
|
+
readonly DRAG_AND_DROP_HANDLE_WRAPPER: "ds-shuttlev2-drag-and-drop-handle-wrapper";
|
|
73
77
|
readonly DRAG_AND_DROP_HANDLE: "ds-shuttlev2-drag-and-drop-handle";
|
|
74
78
|
readonly ARIA_LIVE_PANEL_CENTER: "ds-shuttlev2-aria-live-panel-center";
|
|
75
79
|
};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type DSShuttleV2T } from '../../react-desc-prop-types.js';
|
|
3
3
|
export declare const StyledGripperButtonOrOverlay: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
|
|
4
4
|
isActive: boolean;
|
|
5
5
|
isDragOverlay?: boolean;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
innerRef: React.RefObject<HTMLDivElement> | React.RefCallback<HTMLDivElement>;
|
|
11
|
-
useSortableHelpers: ReturnType<typeof useSortable>;
|
|
12
|
-
isDndActive: boolean;
|
|
13
|
-
isDragging: boolean;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
ariaLabelledby?: string;
|
|
16
|
-
}>;
|
|
8
|
+
export declare const StyledGripperWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
9
|
+
export declare const DragHandle: React.ComponentType<DSShuttleV2T.DragHandleArguments>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DSShuttleV2T } from '../react-desc-prop-types.js';
|
|
3
|
-
export declare const Header: React.MemoExoticComponent<(panelMetaInfo: DSShuttleV2T.PanelMetaInfo) =>
|
|
3
|
+
export declare const Header: React.MemoExoticComponent<(panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => React.JSX.Element>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DSShuttleV2T } from '../../react-desc-prop-types.js';
|
|
3
|
-
export declare const
|
|
4
|
-
declare const ItemSortable: React.ComponentType<DSShuttleV2T.ItemMeta>;
|
|
5
|
-
export { ItemSortable };
|
|
6
|
-
export default ItemSortable;
|
|
3
|
+
export declare const ItemSortable: (props: DSShuttleV2T.ItemMeta) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
3
|
-
export declare const ItemActions: React.MemoExoticComponent<(itemMeta: DSShuttleV2T.ItemMeta) =>
|
|
3
|
+
export declare const ItemActions: React.MemoExoticComponent<(itemMeta: DSShuttleV2T.ItemMeta) => React.JSX.Element>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const useInnerRefActionHandlers: ({ datumInternalMeta, isDestinationPanel }: DSShuttleV2T.ItemMeta) => {
|
|
3
3
|
innerRefHandlerDnd: (node: HTMLDivElement | null) => void;
|
|
4
4
|
innerRefHandlerDrilldown: (node: HTMLButtonElement) => void;
|
|
5
5
|
innerRefHandlerMove: (node: HTMLButtonElement) => void;
|
|
@@ -2,4 +2,4 @@ import React from 'react';
|
|
|
2
2
|
import { type DSShuttleV2T } from '../../react-desc-prop-types.js';
|
|
3
3
|
export declare const ItemMiddleSection: React.MemoExoticComponent<(props: DSShuttleV2T.ItemMeta & {
|
|
4
4
|
tooltipHelpers?: DSShuttleV2T.ComponentProps["tooltipHelpers"];
|
|
5
|
-
}) =>
|
|
5
|
+
}) => React.JSX.Element>;
|
|
@@ -2,4 +2,4 @@ import React from 'react';
|
|
|
2
2
|
import { type DSShuttleV2T } from '../../react-desc-prop-types.js';
|
|
3
3
|
export declare const ItemOverlay: React.MemoExoticComponent<(itemMeta: DSShuttleV2T.ItemMeta & {
|
|
4
4
|
tooltipHelpers?: DSShuttleV2T.ComponentProps["tooltipHelpers"];
|
|
5
|
-
}) =>
|
|
5
|
+
}) => React.JSX.Element>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { useHeadlessTooltip } from '@elliemae/ds-hooks-headless-tooltip';
|
|
2
|
+
import type { DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
3
|
+
import type { useItemInnerRefHandlers } from '../useItemInnerRefHandlers.js';
|
|
4
|
+
type TooltipHelpers = ReturnType<typeof useHeadlessTooltip>;
|
|
5
|
+
type ItemInnerRefHandlers = ReturnType<typeof useItemInnerRefHandlers>;
|
|
6
|
+
export interface SelectionUIProps {
|
|
7
|
+
tooltipHelpers: TooltipHelpers;
|
|
8
|
+
itemInnerRefHandlers: ItemInnerRefHandlers;
|
|
9
|
+
itemMeta: DSShuttleV2T.ItemMeta;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DSShuttleV2T } from '../../react-desc-prop-types.js';
|
|
3
|
-
export declare const TextSection: React.MemoExoticComponent<(props: DSShuttleV2T.ItemMeta) =>
|
|
3
|
+
export declare const TextSection: React.MemoExoticComponent<(props: DSShuttleV2T.ItemMeta) => React.JSX.Element>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const MainContent: React.MemoExoticComponent<() =>
|
|
2
|
+
export declare const MainContent: React.MemoExoticComponent<() => React.JSX.Element>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
2
|
-
export declare const LoadMoreBtn: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) =>
|
|
3
|
+
export declare const LoadMoreBtn: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
2
|
-
export declare const LoadingMore: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) =>
|
|
3
|
+
export declare const LoadingMore: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
3
|
-
export declare const PanelContentBottomSection: React.MemoExoticComponent<(panelMetaInfo: DSShuttleV2T.PanelMetaInfo) =>
|
|
3
|
+
export declare const PanelContentBottomSection: React.MemoExoticComponent<(panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => React.JSX.Element>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const useLoadMoreBtnInnerRefHandlers: ({ isDestinationPanel }: DSShuttleV2T.PanelMetaInfo) => {
|
|
3
3
|
innerRefHandlerLoadMoreBtn: (node: HTMLButtonElement) => void;
|
|
4
4
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
2
|
-
export declare const EmptyItems: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) =>
|
|
3
|
+
export declare const EmptyItems: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => React.JSX.Element;
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { type DSShuttleV2T } from '../../../../react-desc-prop-types.js';
|
|
3
3
|
export declare const useGetDatumHydratables: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => (item: DSShuttleV2T.ConfiguredDatum) => {
|
|
4
4
|
preventDrilldown?: boolean | undefined;
|
|
5
|
-
CustomRenderer?: React.ComponentType<DSShuttleV2T.ComponentProps
|
|
6
|
-
Icon?: React.ComponentType<DSShuttleV2T.ComponentProps
|
|
5
|
+
CustomRenderer?: React.ComponentType<DSShuttleV2T.ComponentProps<Record<string, unknown>>> | null | undefined;
|
|
6
|
+
Icon?: React.ComponentType<DSShuttleV2T.ComponentProps<Record<string, unknown>>> | undefined;
|
|
7
7
|
subtitle?: string | undefined;
|
|
8
8
|
id: string;
|
|
9
9
|
preventMove: boolean;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
2
|
-
export declare const LoadingItems: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) =>
|
|
3
|
+
export declare const LoadingItems: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
3
|
-
export declare const MultipleSelectionAction: React.MemoExoticComponent<(panelMeta: DSShuttleV2T.PanelMetaInfo) =>
|
|
3
|
+
export declare const MultipleSelectionAction: React.MemoExoticComponent<(panelMeta: DSShuttleV2T.PanelMetaInfo) => React.JSX.Element>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
3
|
-
export declare const PanelContentMiddleSection: React.MemoExoticComponent<(panelMetaInfo: DSShuttleV2T.PanelMetaInfo) =>
|
|
3
|
+
export declare const PanelContentMiddleSection: React.MemoExoticComponent<(panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => React.JSX.Element>;
|
|
@@ -3,5 +3,5 @@ interface ShuttleLoadingAnnouncementProps {
|
|
|
3
3
|
isLoading: boolean;
|
|
4
4
|
headerProps?: Record<string, unknown>;
|
|
5
5
|
}
|
|
6
|
-
export declare const ShuttleLoadingAnnouncement: React.MemoExoticComponent<({ isLoading, headerProps }: ShuttleLoadingAnnouncementProps) =>
|
|
6
|
+
export declare const ShuttleLoadingAnnouncement: React.MemoExoticComponent<({ isLoading, headerProps }: ShuttleLoadingAnnouncementProps) => React.JSX.Element>;
|
|
7
7
|
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
2
|
-
export declare const AriaLivePanelCenter: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) =>
|
|
3
|
+
export declare const AriaLivePanelCenter: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
2
|
-
export declare const PanelContentTopSection: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) =>
|
|
3
|
+
export declare const PanelContentTopSection: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
2
|
-
export declare const PanelFilterSection: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) =>
|
|
3
|
+
export declare const PanelFilterSection: (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DSShuttleV2T } from '../../../react-desc-prop-types.js';
|
|
3
|
-
export declare const SelectionHeader: React.MemoExoticComponent<(panelMetaInfo: DSShuttleV2T.PanelMetaInfo) =>
|
|
3
|
+
export declare const SelectionHeader: React.MemoExoticComponent<(panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => React.JSX.Element>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DSShuttleV2T } from '../react-desc-prop-types.js';
|
|
3
|
-
export declare const PanelWrapper: React.MemoExoticComponent<(panelMetaInfo: DSShuttleV2T.PanelMetaInfo) =>
|
|
3
|
+
export declare const PanelWrapper: React.MemoExoticComponent<(panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => React.JSX.Element>;
|
|
@@ -7,11 +7,10 @@ import type { GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/d
|
|
|
7
7
|
import { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
|
|
8
8
|
import type { ZustandT } from '@elliemae/ds-zustand-helpers';
|
|
9
9
|
import type React from 'react';
|
|
10
|
-
import { DSShuttleV2Name, DSShuttleV2Slots } from './constants/index.js';
|
|
11
10
|
import type { useAutoCalculated } from './config/useAutoCalculated/index.js';
|
|
12
11
|
import type { ACTIONS_FOCUSES, DropIndicatorPosition, ITEMS_FOCUSES, REGIONS_FOCUSES } from './constants/index.js';
|
|
13
12
|
export declare namespace DSShuttleV2T {
|
|
14
|
-
type Datum = Record<string, unknown
|
|
13
|
+
type Datum<D extends Record<string, unknown> = Record<string, unknown>> = D;
|
|
15
14
|
type PanelMetaInfo = {
|
|
16
15
|
isDestinationPanel: boolean;
|
|
17
16
|
hasMultipleSelection?: boolean;
|
|
@@ -55,8 +54,8 @@ export declare namespace DSShuttleV2T {
|
|
|
55
54
|
preventDrilldown?: boolean;
|
|
56
55
|
};
|
|
57
56
|
type DatumHydratablesWithoutComponents = PrimaryKeyHydratables & FunctionalHydratables & RequiredDatumHydratablesWithoutComponents & OptionalDatumHydratablesWithoutComponents;
|
|
58
|
-
type ComponentProps = {
|
|
59
|
-
datum: Datum
|
|
57
|
+
type ComponentProps<D extends Record<string, unknown> = Record<string, unknown>> = {
|
|
58
|
+
datum: Datum<D>;
|
|
60
59
|
thisItemIsFocused: boolean;
|
|
61
60
|
panelMetaInfo: PanelMetaInfo;
|
|
62
61
|
datumInternalMeta: DatumInternalMeta;
|
|
@@ -64,53 +63,108 @@ export declare namespace DSShuttleV2T {
|
|
|
64
63
|
tooltipHelpers?: ReturnType<typeof useHeadlessTooltip>;
|
|
65
64
|
};
|
|
66
65
|
type RequiredDatumHydratablesComponents = {};
|
|
67
|
-
type OptionalDatumHydratablesComponents = {
|
|
68
|
-
Icon?: React.ComponentType<ComponentProps
|
|
69
|
-
CustomRenderer?: React.ComponentType<ComponentProps
|
|
66
|
+
type OptionalDatumHydratablesComponents<D extends Record<string, unknown> = Record<string, unknown>> = {
|
|
67
|
+
Icon?: React.ComponentType<ComponentProps<D>>;
|
|
68
|
+
CustomRenderer?: React.ComponentType<ComponentProps<D>> | null;
|
|
70
69
|
};
|
|
71
70
|
type RequiredDatumHydratables = RequiredDatumHydratablesWithoutComponents & RequiredDatumHydratablesComponents;
|
|
72
|
-
type OptionalDatumHydratables = OptionalDatumHydratablesWithoutComponents & OptionalDatumHydratablesComponents
|
|
73
|
-
type DatumHydratables = PrimaryKeyHydratables & RequiredDatumHydratables & OptionalDatumHydratables
|
|
74
|
-
type PrimaryKeyHydraters = TypescriptHelpersT.Hydraters<PrimaryKeyHydratables, [Datum]>;
|
|
75
|
-
type FunctionalHydraters = TypescriptHelpersT.Hydraters<FunctionalHydratables, [
|
|
76
|
-
Datum,
|
|
77
|
-
Partial<PanelMetaInfo>
|
|
78
|
-
]>;
|
|
71
|
+
type OptionalDatumHydratables<D extends Record<string, unknown> = Record<string, unknown>> = OptionalDatumHydratablesWithoutComponents & OptionalDatumHydratablesComponents<D>;
|
|
72
|
+
type DatumHydratables<D extends Record<string, unknown> = Record<string, unknown>> = PrimaryKeyHydratables & RequiredDatumHydratables & OptionalDatumHydratables<D>;
|
|
73
|
+
type PrimaryKeyHydraters<D extends Record<string, unknown> = Record<string, unknown>> = TypescriptHelpersT.Hydraters<PrimaryKeyHydratables, [Datum<D>]>;
|
|
74
|
+
type FunctionalHydraters<D extends Record<string, unknown> = Record<string, unknown>> = TypescriptHelpersT.Hydraters<FunctionalHydratables, [Datum<D>, Partial<PanelMetaInfo>]>;
|
|
79
75
|
type HydratersMeta = {
|
|
80
76
|
datumMeta: DatumInternalMeta;
|
|
81
77
|
panelMetaInfo: PanelMetaInfo;
|
|
82
78
|
};
|
|
83
|
-
type RequiredDatumHydraters = TypescriptHelpersT.Hydraters<RequiredDatumHydratables, [Datum
|
|
84
|
-
type OptionalDatumHydraters = TypescriptHelpersT.Hydraters<OptionalDatumHydratables
|
|
85
|
-
type DatumHydraters = PrimaryKeyHydraters & FunctionalHydraters & RequiredDatumHydraters & OptionalDatumHydraters
|
|
79
|
+
type RequiredDatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> = TypescriptHelpersT.Hydraters<RequiredDatumHydratables, [Datum<D>, HydratersMeta]>;
|
|
80
|
+
type OptionalDatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> = TypescriptHelpersT.Hydraters<OptionalDatumHydratables<D>, [Datum<D>, HydratersMeta]>;
|
|
81
|
+
type DatumHydraters<D extends Record<string, unknown> = Record<string, unknown>> = PrimaryKeyHydraters<D> & FunctionalHydraters<D> & RequiredDatumHydraters<D> & OptionalDatumHydraters<D>;
|
|
86
82
|
type RequiredPanelHydraters = TypescriptHelpersT.Hydraters<RequiredPanelHydratables, [PanelMetaInfo]>;
|
|
87
83
|
type OptionalPanelHydraters = Partial<TypescriptHelpersT.Hydraters<OptionalPanelHydratables, [PanelMetaInfo]>>;
|
|
88
84
|
type PanelHydraters = RequiredPanelHydraters & OptionalPanelHydraters;
|
|
89
|
-
type ConfiguredDatum = DatumInternalMeta & {
|
|
90
|
-
original: Datum
|
|
85
|
+
type ConfiguredDatum<D extends Record<string, unknown> = Record<string, unknown>> = DatumInternalMeta & {
|
|
86
|
+
original: Datum<D>;
|
|
91
87
|
};
|
|
92
|
-
interface ItemMeta extends PanelMetaInfo {
|
|
93
|
-
datum: Datum
|
|
94
|
-
datumHydratables: DatumHydratables
|
|
88
|
+
interface ItemMeta<D extends Record<string, unknown> = Record<string, unknown>> extends PanelMetaInfo {
|
|
89
|
+
datum: Datum<D>;
|
|
90
|
+
datumHydratables: DatumHydratables<D>;
|
|
95
91
|
datumInternalMeta: DatumInternalMeta;
|
|
96
92
|
datumRenderFlags: DatumRenderFlags;
|
|
97
93
|
withDragNDrop: boolean;
|
|
98
94
|
useSortableHelpers?: ReturnType<typeof useSortable>;
|
|
99
95
|
}
|
|
100
|
-
type
|
|
96
|
+
type DragHandleArguments = {
|
|
97
|
+
id: string;
|
|
98
|
+
innerRef: React.RefObject<HTMLDivElement> | React.RefCallback<HTMLDivElement>;
|
|
99
|
+
useSortableHelpers: ReturnType<typeof useSortable>;
|
|
100
|
+
isDndActive: boolean;
|
|
101
|
+
isDragging: boolean;
|
|
102
|
+
disabled?: boolean;
|
|
103
|
+
ariaLabelledby?: string;
|
|
104
|
+
};
|
|
105
|
+
type ItemMidSectionArguments<D extends Record<string, unknown> = Record<string, unknown>> = ItemMeta<D> & {
|
|
106
|
+
tooltipHelpers?: ComponentProps<D>['tooltipHelpers'];
|
|
107
|
+
};
|
|
108
|
+
type ItemActionIconArguments<D extends Record<string, unknown> = Record<string, unknown>> = {
|
|
109
|
+
panelMetaInfo: PanelMetaInfo;
|
|
110
|
+
extraMetaInfo?: {
|
|
111
|
+
itemMeta?: ItemMeta<D>;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
type SlotFunctionArguments<D extends Record<string, unknown> = Record<string, unknown>> = {
|
|
115
|
+
dsShuttlev2PanelWrapper: (args: PanelMetaInfo) => object;
|
|
116
|
+
dsShuttlev2ListWrapper: (args: PanelMetaInfo) => object;
|
|
117
|
+
dsShuttlev2HeaderSearchIcon: (args: PanelMetaInfo) => object;
|
|
118
|
+
dsShuttlev2ListWrapperTop: (args: PanelMetaInfo) => object;
|
|
119
|
+
dsShuttlev2AreaSearchWrapper: (args: PanelMetaInfo) => object;
|
|
120
|
+
dsShuttlev2AreaSearchBar: (args: PanelMetaInfo) => object;
|
|
121
|
+
dsShuttlev2AreaSelectionHeader: (args: PanelMetaInfo) => object;
|
|
122
|
+
dsShuttlev2AreaSelectionHeaderCountLabel: (args: PanelMetaInfo) => object;
|
|
123
|
+
dsShuttlev2AriaLivePanelCenter: (args: PanelMetaInfo) => object;
|
|
124
|
+
dsShuttlev2ListWrapperMid: (args: PanelMetaInfo) => object;
|
|
125
|
+
dsShuttlev2ItemsWrapper: (args: PanelMetaInfo) => object;
|
|
126
|
+
dsShuttlev2MoveMultipleWrapper: (args: PanelMetaInfo) => object;
|
|
127
|
+
dsShuttlev2MoveMultipleBtn: (args: PanelMetaInfo) => object;
|
|
128
|
+
dsShuttlev2MoveMultipleLiveRegion: (args: PanelMetaInfo) => object;
|
|
129
|
+
dsShuttlev2EmptyListWrapper: (args: PanelMetaInfo) => object;
|
|
130
|
+
dsShuttlev2LoadingListWrapper: (args: PanelMetaInfo) => object;
|
|
131
|
+
dsShuttlev2ListBottomLoadingMore: (args: PanelMetaInfo) => object;
|
|
132
|
+
dsShuttlev2ListBottomLoadMoreBtn: (args: PanelMetaInfo) => object;
|
|
133
|
+
dsShuttlev2ListWrapperBottom: (args: PanelMetaInfo) => object;
|
|
134
|
+
dsShuttlev2ItemWrapper: (args: ItemMeta<D>) => object;
|
|
135
|
+
dsShuttlev2ItemCheckbox: (args: ItemMeta<D>) => object;
|
|
136
|
+
dsShuttlev2ItemSelection: (args: ItemMeta<D>) => object;
|
|
137
|
+
dsShuttlev2ItemSelectionCheckboxUi: (args: ItemMeta<D>) => object;
|
|
138
|
+
dsShuttlev2ItemLabelWrapper: (args: ItemMeta<D>) => object;
|
|
139
|
+
dsShuttlev2ItemActionsWrapper: (args: ItemMeta<D>) => object;
|
|
140
|
+
dsShuttlev2ItemActionWrapper: (args: ItemMeta<D>) => object;
|
|
141
|
+
dsShuttlev2ItemActionBtn: (args: ItemMeta<D>) => object;
|
|
142
|
+
dsShuttlev2ItemActionBtnDrilldownIcon: (args: ItemMeta<D>) => object;
|
|
143
|
+
dsShuttlev2ItemMidsectionWrapper: (args: ItemMidSectionArguments<D>) => object;
|
|
144
|
+
dsShuttlev2ItemIconWrapper: (args: ItemMidSectionArguments<D>) => object;
|
|
145
|
+
dsShuttlev2ItemActionBtnToSourceIcon: (args: ItemActionIconArguments<D>) => object;
|
|
146
|
+
dsShuttlev2ItemActionBtnToDestinationIcon: (args: ItemActionIconArguments<D>) => object;
|
|
147
|
+
dsShuttlev2DragAndDropHandleWrapper: (args: DragHandleArguments) => object;
|
|
148
|
+
dsShuttlev2DragAndDropHandle: (args: DragHandleArguments) => object;
|
|
149
|
+
dsShuttlev2Wrapper: () => object;
|
|
150
|
+
};
|
|
151
|
+
type SlotProps<D extends Record<string, unknown> = Record<string, unknown>> = {
|
|
152
|
+
[K in keyof SlotFunctionArguments<D>]?: object | SlotFunctionArguments<D>[K];
|
|
153
|
+
};
|
|
154
|
+
type OnDataChange<D extends Record<string, unknown> = Record<string, unknown>> = (newData: Datum<D>[], metainfo: {
|
|
101
155
|
event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>;
|
|
102
|
-
item?: Datum
|
|
103
|
-
selectedItems?: Datum[];
|
|
156
|
+
item?: Datum<D>;
|
|
157
|
+
selectedItems?: Datum<D>[];
|
|
104
158
|
}) => void;
|
|
105
159
|
type OnChangeEvent<T> = (items: T, metainfo: {
|
|
106
160
|
event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>;
|
|
107
161
|
}) => void;
|
|
108
|
-
type OnReorderEventMetadata = Omit<DnDKitTree.OnReorder<
|
|
109
|
-
type OnReorderEvent = (movedItem: Datum
|
|
162
|
+
type OnReorderEventMetadata<D extends Record<string, unknown> = Record<string, unknown>> = Omit<DnDKitTree.OnReorder<Datum<D>>, 'considerExpanding'>;
|
|
163
|
+
type OnReorderEvent<D extends Record<string, unknown> = Record<string, unknown>> = (movedItem: Datum<D>, metadata: OnReorderEventMetadata<D>) => void;
|
|
110
164
|
type SelectionMap = Record<string, boolean>;
|
|
111
|
-
type OnSelectionChange = (newSelection: SelectionMap, metainfo: {
|
|
165
|
+
type OnSelectionChange<D extends Record<string, unknown> = Record<string, unknown>> = (newSelection: SelectionMap, metainfo: {
|
|
112
166
|
event: Parameters<Required<DSButtonT.Props>['onClick']>[0] | Parameters<DSControlledCheckboxT.InternalProps['onChange']>[1] | React.MouseEvent<HTMLButtonElement | HTMLDivElement> | React.KeyboardEvent<HTMLDivElement> | React.ChangeEvent<HTMLInputElement>;
|
|
113
|
-
item?: Datum
|
|
167
|
+
item?: Datum<D>;
|
|
114
168
|
}) => void;
|
|
115
169
|
type OnSelectionDrilldown<T> = (item: T, metainfo: {
|
|
116
170
|
event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>;
|
|
@@ -123,9 +177,9 @@ export declare namespace DSShuttleV2T {
|
|
|
123
177
|
event: Parameters<Required<DSButtonT.Props>['onClick']>[0];
|
|
124
178
|
}) => void;
|
|
125
179
|
type SoftDeletedMap = Record<string, boolean>;
|
|
126
|
-
type OnSoftDeletedChange = (newSoftDeleted: SoftDeletedMap, metainfo: {
|
|
180
|
+
type OnSoftDeletedChange<D extends Record<string, unknown> = Record<string, unknown>> = (newSoftDeleted: SoftDeletedMap, metainfo: {
|
|
127
181
|
event: Parameters<Required<DSButtonT.Props>['onClick']>[0] | Parameters<DSControlledCheckboxT.InternalProps['onChange']>[1] | React.MouseEvent<HTMLButtonElement | HTMLDivElement> | React.KeyboardEvent<HTMLDivElement> | React.ChangeEvent<HTMLInputElement>;
|
|
128
|
-
item?: Datum
|
|
182
|
+
item?: Datum<D>;
|
|
129
183
|
}) => void;
|
|
130
184
|
type FocusRegion = (typeof REGIONS_FOCUSES)[keyof typeof REGIONS_FOCUSES];
|
|
131
185
|
type FocusItem = Omit<(typeof ITEMS_FOCUSES)[keyof typeof ITEMS_FOCUSES], 'GET_SPECIFIC_ITEM'> & string;
|
|
@@ -152,19 +206,20 @@ export declare namespace DSShuttleV2T {
|
|
|
152
206
|
};
|
|
153
207
|
type Reducers = Record<string, never>;
|
|
154
208
|
type ShuttleInternalStore = ZustandT.InternalStore<InternalAtoms, Selectors, Reducers>;
|
|
155
|
-
interface RequiredProps<
|
|
156
|
-
sourceData: Datum[];
|
|
209
|
+
interface RequiredProps<D extends Record<string, unknown> = Record<string, unknown>> extends RequiredDatumHydraters<D>, PrimaryKeyHydraters<D> {
|
|
210
|
+
sourceData: Datum<D>[];
|
|
157
211
|
sourceSelectedItems: SelectionMap;
|
|
158
|
-
onSourceSelectionChange: OnSelectionChange
|
|
159
|
-
SourceHeader: React.ComponentType<
|
|
160
|
-
onSourceDrilldown: OnSelectionDrilldown<
|
|
161
|
-
destinationData: Datum[];
|
|
212
|
+
onSourceSelectionChange: OnSelectionChange<D>;
|
|
213
|
+
SourceHeader: React.ComponentType<any>;
|
|
214
|
+
onSourceDrilldown: OnSelectionDrilldown<Datum<D>>;
|
|
215
|
+
destinationData: Datum<D>[];
|
|
162
216
|
destinationSelectedItems: SelectionMap;
|
|
163
|
-
onDestinationSelectionChange: OnSelectionChange
|
|
164
|
-
DestinationHeader: React.ComponentType<
|
|
165
|
-
onDestinationDrilldown: OnSelectionDrilldown<
|
|
217
|
+
onDestinationSelectionChange: OnSelectionChange<D>;
|
|
218
|
+
DestinationHeader: React.ComponentType<any>;
|
|
219
|
+
onDestinationDrilldown: OnSelectionDrilldown<Datum<D>>;
|
|
166
220
|
}
|
|
167
|
-
interface DefaultProps<
|
|
221
|
+
interface DefaultProps<D extends Record<string, unknown> = Record<string, unknown>> extends Required<FunctionalHydraters<D>> {
|
|
222
|
+
explicitSelectionUI: boolean;
|
|
168
223
|
sourceIsLoading: boolean;
|
|
169
224
|
sourceWithLoadMore: boolean;
|
|
170
225
|
sourceIsLoadingMore: boolean;
|
|
@@ -175,20 +230,20 @@ export declare namespace DSShuttleV2T {
|
|
|
175
230
|
onDestinationLoadMore: OnLoadMore;
|
|
176
231
|
destinationNoOptionsMessage: string;
|
|
177
232
|
sourceNoOptionsMessage: string;
|
|
178
|
-
onSourceAdd: OnChangeEvent<
|
|
179
|
-
onSourceRemove: OnChangeEvent<
|
|
180
|
-
onDestinationAdd: OnChangeEvent<
|
|
181
|
-
onDestinationRemove: OnChangeEvent<
|
|
233
|
+
onSourceAdd: OnChangeEvent<Datum<D>[]>;
|
|
234
|
+
onSourceRemove: OnChangeEvent<Datum<D>[]>;
|
|
235
|
+
onDestinationAdd: OnChangeEvent<Datum<D>[]>;
|
|
236
|
+
onDestinationRemove: OnChangeEvent<Datum<D>[]>;
|
|
182
237
|
addDragAndDropFromSource: boolean;
|
|
183
238
|
removeDragAndDropFromDestination: boolean;
|
|
184
|
-
onSourceReorder: OnReorderEvent
|
|
185
|
-
onDestinationReorder: OnReorderEvent
|
|
239
|
+
onSourceReorder: OnReorderEvent<D>;
|
|
240
|
+
onDestinationReorder: OnReorderEvent<D>;
|
|
186
241
|
sourceSoftDeletedItems: SoftDeletedMap;
|
|
187
|
-
onSourceSoftDelete: OnSoftDeletedChange
|
|
242
|
+
onSourceSoftDelete: OnSoftDeletedChange<D>;
|
|
188
243
|
destinationSoftDeletedItems: SoftDeletedMap;
|
|
189
|
-
onDestinationSoftDelete: OnSoftDeletedChange
|
|
244
|
+
onDestinationSoftDelete: OnSoftDeletedChange<D>;
|
|
190
245
|
}
|
|
191
|
-
interface OptionalProps extends
|
|
246
|
+
interface OptionalProps<D extends Record<string, unknown> = Record<string, unknown>> extends OptionalDatumHydraters<D>, OptionalPanelHydraters, SlotProps<D> {
|
|
192
247
|
sourceItemProps?: Record<string, unknown>;
|
|
193
248
|
destinationItemProps?: Record<string, unknown>;
|
|
194
249
|
sourceHeaderProps?: Record<string, unknown>;
|
|
@@ -202,21 +257,20 @@ export declare namespace DSShuttleV2T {
|
|
|
202
257
|
onSourceFilterChange?: OnFilterChange;
|
|
203
258
|
onDestinationFilterChange?: OnFilterChange;
|
|
204
259
|
moveButtonProps?: ({ itemMeta, isDestinationPanel, }: {
|
|
205
|
-
itemMeta: ItemMeta
|
|
260
|
+
itemMeta: ItemMeta<D>;
|
|
206
261
|
isDestinationPanel: boolean;
|
|
207
262
|
}) => Omit<DSButtonV3T.Props, 'children'>;
|
|
208
263
|
drillDownButtonProps?: ({ itemMeta, isDestinationPanel, }: {
|
|
209
|
-
itemMeta: ItemMeta
|
|
264
|
+
itemMeta: ItemMeta<D>;
|
|
210
265
|
isDestinationPanel: boolean;
|
|
211
266
|
}) => Omit<DSButtonV3T.Props, 'children'>;
|
|
212
267
|
checkboxSelectAllProps?: (metainfo: PanelMetaInfo) => DSControlledCheckboxT.Props;
|
|
213
|
-
dsShuttleV2ListWrapperMid?: (metaInfo: PanelMetaInfo) => Record<string, unknown>;
|
|
214
268
|
areaSearchBarProps?: (metaInfo: PanelMetaInfo) => DSInputTextT.Props;
|
|
215
269
|
}
|
|
216
|
-
interface Props<
|
|
270
|
+
interface Props<D extends Record<string, unknown> = Record<string, unknown>> extends Partial<DefaultProps<D>>, OptionalProps<D>, Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps<D> | keyof OptionalProps<D> | keyof RequiredProps<D>>, XstyledProps, RequiredProps<D> {
|
|
217
271
|
}
|
|
218
|
-
interface InternalProps<
|
|
272
|
+
interface InternalProps<D extends Record<string, unknown> = Record<string, unknown>> extends DefaultProps<D>, OptionalProps<D>, Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps<D> | keyof OptionalProps<D> | keyof RequiredProps<D>>, XstyledProps, RequiredProps<D> {
|
|
219
273
|
}
|
|
220
274
|
}
|
|
221
|
-
export declare const defaultProps: DSShuttleV2T.DefaultProps
|
|
222
|
-
export declare const DSShuttleV2PropTypesSchema: ValidationMap<DSShuttleV2T.Props
|
|
275
|
+
export declare const defaultProps: DSShuttleV2T.DefaultProps;
|
|
276
|
+
export declare const DSShuttleV2PropTypesSchema: ValidationMap<DSShuttleV2T.Props>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-shuttle-v2",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.70.0-alpha.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Shuttle v2",
|
|
6
6
|
"files": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "https://
|
|
25
|
+
"url": "https://github.com/intcx/PLATFORM-UI.dimsum.git"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"pnpm": ">=9",
|
|
@@ -39,39 +39,39 @@
|
|
|
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.
|
|
43
|
-
"@elliemae/ds-circular-progress-indicator": "3.
|
|
44
|
-
"@elliemae/ds-
|
|
45
|
-
"@elliemae/ds-
|
|
46
|
-
"@elliemae/ds-
|
|
47
|
-
"@elliemae/ds-
|
|
48
|
-
"@elliemae/ds-
|
|
49
|
-
"@elliemae/ds-
|
|
50
|
-
"@elliemae/ds-hooks-
|
|
51
|
-
"@elliemae/ds-hooks-
|
|
52
|
-
"@elliemae/ds-
|
|
53
|
-
"@elliemae/ds-
|
|
54
|
-
"@elliemae/ds-
|
|
55
|
-
"@elliemae/ds-
|
|
56
|
-
"@elliemae/ds-system": "3.
|
|
57
|
-
"@elliemae/ds-typescript-helpers": "3.
|
|
58
|
-
"@elliemae/ds-typography": "3.
|
|
59
|
-
"@elliemae/ds-zustand-helpers": "3.
|
|
42
|
+
"@elliemae/ds-button-v2": "3.70.0-alpha.11",
|
|
43
|
+
"@elliemae/ds-circular-progress-indicator": "3.70.0-alpha.11",
|
|
44
|
+
"@elliemae/ds-fast-list": "3.70.0-alpha.11",
|
|
45
|
+
"@elliemae/ds-floating-context": "3.70.0-alpha.11",
|
|
46
|
+
"@elliemae/ds-form-checkbox": "3.70.0-alpha.11",
|
|
47
|
+
"@elliemae/ds-drag-and-drop": "3.70.0-alpha.11",
|
|
48
|
+
"@elliemae/ds-form-input-text": "3.70.0-alpha.11",
|
|
49
|
+
"@elliemae/ds-grid": "3.70.0-alpha.11",
|
|
50
|
+
"@elliemae/ds-hooks-fontsize-detector": "3.70.0-alpha.11",
|
|
51
|
+
"@elliemae/ds-hooks-on-blur-out": "3.70.0-alpha.11",
|
|
52
|
+
"@elliemae/ds-hooks-headless-tooltip": "3.70.0-alpha.11",
|
|
53
|
+
"@elliemae/ds-indeterminate-progress-indicator": "3.70.0-alpha.11",
|
|
54
|
+
"@elliemae/ds-props-helpers": "3.70.0-alpha.11",
|
|
55
|
+
"@elliemae/ds-icons": "3.70.0-alpha.11",
|
|
56
|
+
"@elliemae/ds-system": "3.70.0-alpha.11",
|
|
57
|
+
"@elliemae/ds-typescript-helpers": "3.70.0-alpha.11",
|
|
58
|
+
"@elliemae/ds-typography": "3.70.0-alpha.11",
|
|
59
|
+
"@elliemae/ds-zustand-helpers": "3.70.0-alpha.11"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"jest": "^30.0.0",
|
|
63
63
|
"lodash-es": "^4.18.1",
|
|
64
|
-
"styled-components": "~5.3.
|
|
65
|
-
"@elliemae/ds-
|
|
66
|
-
"@elliemae/ds-
|
|
67
|
-
"@elliemae/ds-test-utils": "3.
|
|
68
|
-
"@elliemae/ds-tree-model": "3.
|
|
64
|
+
"styled-components": "~5.3.11",
|
|
65
|
+
"@elliemae/ds-monorepo-devops": "3.70.0-alpha.11",
|
|
66
|
+
"@elliemae/ds-breadcrumb": "3.70.0-alpha.11",
|
|
67
|
+
"@elliemae/ds-test-utils": "3.70.0-alpha.11",
|
|
68
|
+
"@elliemae/ds-tree-model": "3.70.0-alpha.11"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"lodash-es": "^4.18.1",
|
|
72
72
|
"react": "^18.3.1",
|
|
73
73
|
"react-dom": "^18.3.1",
|
|
74
|
-
"styled-components": "~5.3.
|
|
74
|
+
"styled-components": "~5.3.11"
|
|
75
75
|
},
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public",
|