@elliemae/ds-shuttle-v2 3.70.0-next.32 → 3.70.0-next.33
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 +0 -1
- package/dist/cjs/constants/index.js.map +2 -2
- package/dist/cjs/parts/Dnd/DndHandle.js +2 -2
- package/dist/cjs/parts/Dnd/DndHandle.js.map +2 -2
- package/dist/cjs/parts/Item/ItemActions/ItemActions.js +9 -2
- package/dist/cjs/parts/Item/ItemActions/ItemActions.js.map +2 -2
- package/dist/cjs/parts/Panel/middle/MultipleSelectionAction.js +6 -2
- package/dist/cjs/parts/Panel/middle/MultipleSelectionAction.js.map +2 -2
- package/dist/cjs/parts/Panel/top/SelectionHeader.js.map +2 -2
- package/dist/cjs/react-desc-prop-types.js +1 -2
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/typescript-testing/slot-props.js +180 -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 +0 -1
- package/dist/esm/constants/index.js.map +2 -2
- package/dist/esm/parts/Dnd/DndHandle.js +3 -3
- package/dist/esm/parts/Dnd/DndHandle.js.map +2 -2
- package/dist/esm/parts/Item/ItemActions/ItemActions.js +9 -2
- package/dist/esm/parts/Item/ItemActions/ItemActions.js.map +2 -2
- package/dist/esm/parts/Panel/middle/MultipleSelectionAction.js +6 -2
- package/dist/esm/parts/Panel/middle/MultipleSelectionAction.js.map +2 -2
- package/dist/esm/parts/Panel/top/SelectionHeader.js.map +2 -2
- package/dist/esm/react-desc-prop-types.js +1 -2
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/esm/typescript-testing/slot-props.js +157 -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 +0 -2
- package/dist/types/parts/Dnd/DndHandle.d.ts +2 -10
- package/dist/types/parts/Item/Item.d.ts +1 -1
- package/dist/types/parts/Panel/middle/ItemListWrapper/useGetDatumHydratables.d.ts +2 -2
- package/dist/types/react-desc-prop-types.d.ts +109 -57
- package/dist/types/typescript-testing/slot-props.d.ts +1 -0
- package/dist/types/typescript-testing/typescript-shuttle-v2-valid-with-datum.d.ts +1 -0
- package/package.json +23 -23
|
@@ -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,107 @@ 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
|
+
dsShuttlev2ItemLabelWrapper: (args: ItemMeta<D>) => object;
|
|
138
|
+
dsShuttlev2ItemActionsWrapper: (args: ItemMeta<D>) => object;
|
|
139
|
+
dsShuttlev2ItemActionWrapper: (args: ItemMeta<D>) => object;
|
|
140
|
+
dsShuttlev2ItemActionBtn: (args: ItemMeta<D>) => object;
|
|
141
|
+
dsShuttlev2ItemActionBtnDrilldownIcon: (args: ItemMeta<D>) => object;
|
|
142
|
+
dsShuttlev2ItemMidsectionWrapper: (args: ItemMidSectionArguments<D>) => object;
|
|
143
|
+
dsShuttlev2ItemIconWrapper: (args: ItemMidSectionArguments<D>) => object;
|
|
144
|
+
dsShuttlev2ItemActionBtnToSourceIcon: (args: ItemActionIconArguments<D>) => object;
|
|
145
|
+
dsShuttlev2ItemActionBtnToDestinationIcon: (args: ItemActionIconArguments<D>) => object;
|
|
146
|
+
dsShuttlev2DragAndDropHandleWrapper: (args: DragHandleArguments) => object;
|
|
147
|
+
dsShuttlev2DragAndDropHandle: (args: DragHandleArguments) => object;
|
|
148
|
+
dsShuttlev2Wrapper: () => object;
|
|
149
|
+
};
|
|
150
|
+
type SlotProps<D extends Record<string, unknown> = Record<string, unknown>> = {
|
|
151
|
+
[K in keyof SlotFunctionArguments<D>]?: object | SlotFunctionArguments<D>[K];
|
|
152
|
+
};
|
|
153
|
+
type OnDataChange<D extends Record<string, unknown> = Record<string, unknown>> = (newData: Datum<D>[], metainfo: {
|
|
101
154
|
event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>;
|
|
102
|
-
item?: Datum
|
|
103
|
-
selectedItems?: Datum[];
|
|
155
|
+
item?: Datum<D>;
|
|
156
|
+
selectedItems?: Datum<D>[];
|
|
104
157
|
}) => void;
|
|
105
158
|
type OnChangeEvent<T> = (items: T, metainfo: {
|
|
106
159
|
event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>;
|
|
107
160
|
}) => void;
|
|
108
|
-
type OnReorderEventMetadata = Omit<DnDKitTree.OnReorder<
|
|
109
|
-
type OnReorderEvent = (movedItem: Datum
|
|
161
|
+
type OnReorderEventMetadata<D extends Record<string, unknown> = Record<string, unknown>> = Omit<DnDKitTree.OnReorder<Datum<D>>, 'considerExpanding'>;
|
|
162
|
+
type OnReorderEvent<D extends Record<string, unknown> = Record<string, unknown>> = (movedItem: Datum<D>, metadata: OnReorderEventMetadata<D>) => void;
|
|
110
163
|
type SelectionMap = Record<string, boolean>;
|
|
111
|
-
type OnSelectionChange = (newSelection: SelectionMap, metainfo: {
|
|
164
|
+
type OnSelectionChange<D extends Record<string, unknown> = Record<string, unknown>> = (newSelection: SelectionMap, metainfo: {
|
|
112
165
|
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
|
|
166
|
+
item?: Datum<D>;
|
|
114
167
|
}) => void;
|
|
115
168
|
type OnSelectionDrilldown<T> = (item: T, metainfo: {
|
|
116
169
|
event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>;
|
|
@@ -123,9 +176,9 @@ export declare namespace DSShuttleV2T {
|
|
|
123
176
|
event: Parameters<Required<DSButtonT.Props>['onClick']>[0];
|
|
124
177
|
}) => void;
|
|
125
178
|
type SoftDeletedMap = Record<string, boolean>;
|
|
126
|
-
type OnSoftDeletedChange = (newSoftDeleted: SoftDeletedMap, metainfo: {
|
|
179
|
+
type OnSoftDeletedChange<D extends Record<string, unknown> = Record<string, unknown>> = (newSoftDeleted: SoftDeletedMap, metainfo: {
|
|
127
180
|
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
|
|
181
|
+
item?: Datum<D>;
|
|
129
182
|
}) => void;
|
|
130
183
|
type FocusRegion = (typeof REGIONS_FOCUSES)[keyof typeof REGIONS_FOCUSES];
|
|
131
184
|
type FocusItem = Omit<(typeof ITEMS_FOCUSES)[keyof typeof ITEMS_FOCUSES], 'GET_SPECIFIC_ITEM'> & string;
|
|
@@ -152,19 +205,19 @@ export declare namespace DSShuttleV2T {
|
|
|
152
205
|
};
|
|
153
206
|
type Reducers = Record<string, never>;
|
|
154
207
|
type ShuttleInternalStore = ZustandT.InternalStore<InternalAtoms, Selectors, Reducers>;
|
|
155
|
-
interface RequiredProps<
|
|
156
|
-
sourceData: Datum[];
|
|
208
|
+
interface RequiredProps<D extends Record<string, unknown> = Record<string, unknown>> extends RequiredDatumHydraters<D>, PrimaryKeyHydraters<D> {
|
|
209
|
+
sourceData: Datum<D>[];
|
|
157
210
|
sourceSelectedItems: SelectionMap;
|
|
158
|
-
onSourceSelectionChange: OnSelectionChange
|
|
159
|
-
SourceHeader: React.ComponentType<
|
|
160
|
-
onSourceDrilldown: OnSelectionDrilldown<
|
|
161
|
-
destinationData: Datum[];
|
|
211
|
+
onSourceSelectionChange: OnSelectionChange<D>;
|
|
212
|
+
SourceHeader: React.ComponentType<any>;
|
|
213
|
+
onSourceDrilldown: OnSelectionDrilldown<Datum<D>>;
|
|
214
|
+
destinationData: Datum<D>[];
|
|
162
215
|
destinationSelectedItems: SelectionMap;
|
|
163
|
-
onDestinationSelectionChange: OnSelectionChange
|
|
164
|
-
DestinationHeader: React.ComponentType<
|
|
165
|
-
onDestinationDrilldown: OnSelectionDrilldown<
|
|
216
|
+
onDestinationSelectionChange: OnSelectionChange<D>;
|
|
217
|
+
DestinationHeader: React.ComponentType<any>;
|
|
218
|
+
onDestinationDrilldown: OnSelectionDrilldown<Datum<D>>;
|
|
166
219
|
}
|
|
167
|
-
interface DefaultProps<
|
|
220
|
+
interface DefaultProps<D extends Record<string, unknown> = Record<string, unknown>> extends Required<FunctionalHydraters<D>> {
|
|
168
221
|
sourceIsLoading: boolean;
|
|
169
222
|
sourceWithLoadMore: boolean;
|
|
170
223
|
sourceIsLoadingMore: boolean;
|
|
@@ -175,20 +228,20 @@ export declare namespace DSShuttleV2T {
|
|
|
175
228
|
onDestinationLoadMore: OnLoadMore;
|
|
176
229
|
destinationNoOptionsMessage: string;
|
|
177
230
|
sourceNoOptionsMessage: string;
|
|
178
|
-
onSourceAdd: OnChangeEvent<
|
|
179
|
-
onSourceRemove: OnChangeEvent<
|
|
180
|
-
onDestinationAdd: OnChangeEvent<
|
|
181
|
-
onDestinationRemove: OnChangeEvent<
|
|
231
|
+
onSourceAdd: OnChangeEvent<Datum<D>[]>;
|
|
232
|
+
onSourceRemove: OnChangeEvent<Datum<D>[]>;
|
|
233
|
+
onDestinationAdd: OnChangeEvent<Datum<D>[]>;
|
|
234
|
+
onDestinationRemove: OnChangeEvent<Datum<D>[]>;
|
|
182
235
|
addDragAndDropFromSource: boolean;
|
|
183
236
|
removeDragAndDropFromDestination: boolean;
|
|
184
|
-
onSourceReorder: OnReorderEvent
|
|
185
|
-
onDestinationReorder: OnReorderEvent
|
|
237
|
+
onSourceReorder: OnReorderEvent<D>;
|
|
238
|
+
onDestinationReorder: OnReorderEvent<D>;
|
|
186
239
|
sourceSoftDeletedItems: SoftDeletedMap;
|
|
187
|
-
onSourceSoftDelete: OnSoftDeletedChange
|
|
240
|
+
onSourceSoftDelete: OnSoftDeletedChange<D>;
|
|
188
241
|
destinationSoftDeletedItems: SoftDeletedMap;
|
|
189
|
-
onDestinationSoftDelete: OnSoftDeletedChange
|
|
242
|
+
onDestinationSoftDelete: OnSoftDeletedChange<D>;
|
|
190
243
|
}
|
|
191
|
-
interface OptionalProps extends
|
|
244
|
+
interface OptionalProps<D extends Record<string, unknown> = Record<string, unknown>> extends OptionalDatumHydraters<D>, OptionalPanelHydraters, SlotProps<D> {
|
|
192
245
|
sourceItemProps?: Record<string, unknown>;
|
|
193
246
|
destinationItemProps?: Record<string, unknown>;
|
|
194
247
|
sourceHeaderProps?: Record<string, unknown>;
|
|
@@ -202,21 +255,20 @@ export declare namespace DSShuttleV2T {
|
|
|
202
255
|
onSourceFilterChange?: OnFilterChange;
|
|
203
256
|
onDestinationFilterChange?: OnFilterChange;
|
|
204
257
|
moveButtonProps?: ({ itemMeta, isDestinationPanel, }: {
|
|
205
|
-
itemMeta: ItemMeta
|
|
258
|
+
itemMeta: ItemMeta<D>;
|
|
206
259
|
isDestinationPanel: boolean;
|
|
207
260
|
}) => Omit<DSButtonV3T.Props, 'children'>;
|
|
208
261
|
drillDownButtonProps?: ({ itemMeta, isDestinationPanel, }: {
|
|
209
|
-
itemMeta: ItemMeta
|
|
262
|
+
itemMeta: ItemMeta<D>;
|
|
210
263
|
isDestinationPanel: boolean;
|
|
211
264
|
}) => Omit<DSButtonV3T.Props, 'children'>;
|
|
212
265
|
checkboxSelectAllProps?: (metainfo: PanelMetaInfo) => DSControlledCheckboxT.Props;
|
|
213
|
-
dsShuttleV2ListWrapperMid?: (metaInfo: PanelMetaInfo) => Record<string, unknown>;
|
|
214
266
|
areaSearchBarProps?: (metaInfo: PanelMetaInfo) => DSInputTextT.Props;
|
|
215
267
|
}
|
|
216
|
-
interface Props<
|
|
268
|
+
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
269
|
}
|
|
218
|
-
interface InternalProps<
|
|
270
|
+
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
271
|
}
|
|
220
272
|
}
|
|
221
|
-
export declare const defaultProps: DSShuttleV2T.DefaultProps
|
|
222
|
-
export declare const DSShuttleV2PropTypesSchema: ValidationMap<DSShuttleV2T.Props
|
|
273
|
+
export declare const defaultProps: DSShuttleV2T.DefaultProps;
|
|
274
|
+
export declare const DSShuttleV2PropTypesSchema: ValidationMap<DSShuttleV2T.Props>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-shuttle-v2",
|
|
3
|
-
"version": "3.70.0-next.
|
|
3
|
+
"version": "3.70.0-next.33",
|
|
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-next.
|
|
43
|
-
"@elliemae/ds-circular-progress-indicator": "3.70.0-next.
|
|
44
|
-
"@elliemae/ds-drag-and-drop": "3.70.0-next.
|
|
45
|
-
"@elliemae/ds-fast-list": "3.70.0-next.
|
|
46
|
-
"@elliemae/ds-form-
|
|
47
|
-
"@elliemae/ds-
|
|
48
|
-
"@elliemae/ds-
|
|
49
|
-
"@elliemae/ds-
|
|
50
|
-
"@elliemae/ds-hooks-
|
|
51
|
-
"@elliemae/ds-
|
|
52
|
-
"@elliemae/ds-
|
|
53
|
-
"@elliemae/ds-
|
|
54
|
-
"@elliemae/ds-
|
|
55
|
-
"@elliemae/ds-
|
|
56
|
-
"@elliemae/ds-
|
|
57
|
-
"@elliemae/ds-
|
|
58
|
-
"@elliemae/ds-
|
|
59
|
-
"@elliemae/ds-zustand-helpers": "3.70.0-next.
|
|
42
|
+
"@elliemae/ds-button-v2": "3.70.0-next.33",
|
|
43
|
+
"@elliemae/ds-circular-progress-indicator": "3.70.0-next.33",
|
|
44
|
+
"@elliemae/ds-drag-and-drop": "3.70.0-next.33",
|
|
45
|
+
"@elliemae/ds-fast-list": "3.70.0-next.33",
|
|
46
|
+
"@elliemae/ds-form-checkbox": "3.70.0-next.33",
|
|
47
|
+
"@elliemae/ds-hooks-fontsize-detector": "3.70.0-next.33",
|
|
48
|
+
"@elliemae/ds-hooks-headless-tooltip": "3.70.0-next.33",
|
|
49
|
+
"@elliemae/ds-grid": "3.70.0-next.33",
|
|
50
|
+
"@elliemae/ds-hooks-on-blur-out": "3.70.0-next.33",
|
|
51
|
+
"@elliemae/ds-form-input-text": "3.70.0-next.33",
|
|
52
|
+
"@elliemae/ds-props-helpers": "3.70.0-next.33",
|
|
53
|
+
"@elliemae/ds-indeterminate-progress-indicator": "3.70.0-next.33",
|
|
54
|
+
"@elliemae/ds-floating-context": "3.70.0-next.33",
|
|
55
|
+
"@elliemae/ds-system": "3.70.0-next.33",
|
|
56
|
+
"@elliemae/ds-typography": "3.70.0-next.33",
|
|
57
|
+
"@elliemae/ds-typescript-helpers": "3.70.0-next.33",
|
|
58
|
+
"@elliemae/ds-icons": "3.70.0-next.33",
|
|
59
|
+
"@elliemae/ds-zustand-helpers": "3.70.0-next.33"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"jest": "^30.0.0",
|
|
63
63
|
"lodash-es": "^4.18.1",
|
|
64
64
|
"styled-components": "~5.3.9",
|
|
65
|
-
"@elliemae/ds-breadcrumb": "3.70.0-next.
|
|
66
|
-
"@elliemae/ds-monorepo-devops": "3.70.0-next.
|
|
67
|
-
"@elliemae/ds-test-utils": "3.70.0-next.
|
|
68
|
-
"@elliemae/ds-tree-model": "3.70.0-next.
|
|
65
|
+
"@elliemae/ds-breadcrumb": "3.70.0-next.33",
|
|
66
|
+
"@elliemae/ds-monorepo-devops": "3.70.0-next.33",
|
|
67
|
+
"@elliemae/ds-test-utils": "3.70.0-next.33",
|
|
68
|
+
"@elliemae/ds-tree-model": "3.70.0-next.33"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"lodash-es": "^4.18.1",
|