@elliemae/ds-shuttle-v2 3.12.0-rc.2 → 3.12.0-rc.3

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.
Files changed (77) hide show
  1. package/dist/cjs/DSShuttleV2.js +1 -9
  2. package/dist/cjs/DSShuttleV2.js.map +1 -1
  3. package/dist/cjs/parts/Header.js +4 -15
  4. package/dist/cjs/parts/Header.js.map +1 -1
  5. package/dist/cjs/parts/Item/Item.js +19 -22
  6. package/dist/cjs/parts/Item/Item.js.map +1 -1
  7. package/dist/cjs/parts/Item/ItemActions/ItemActions.js +29 -47
  8. package/dist/cjs/parts/Item/ItemActions/ItemActions.js.map +1 -1
  9. package/dist/cjs/parts/Item/ItemMiddleSection.js +10 -48
  10. package/dist/cjs/parts/Item/ItemMiddleSection.js.map +1 -1
  11. package/dist/cjs/parts/Item/ItemSelection.js +1 -4
  12. package/dist/cjs/parts/Item/ItemSelection.js.map +1 -1
  13. package/dist/cjs/parts/MainContent.js +4 -14
  14. package/dist/cjs/parts/MainContent.js.map +1 -1
  15. package/dist/cjs/parts/Panel/bottom/LoadMoreBtn.js +10 -7
  16. package/dist/cjs/parts/Panel/bottom/LoadMoreBtn.js.map +1 -1
  17. package/dist/cjs/parts/Panel/bottom/LoadingMore.js +1 -7
  18. package/dist/cjs/parts/Panel/bottom/LoadingMore.js.map +1 -1
  19. package/dist/cjs/parts/Panel/bottom/PanelContentBottomSection.js +13 -14
  20. package/dist/cjs/parts/Panel/bottom/PanelContentBottomSection.js.map +1 -1
  21. package/dist/cjs/parts/Panel/middle/EmptyItems.js +1 -5
  22. package/dist/cjs/parts/Panel/middle/EmptyItems.js.map +1 -1
  23. package/dist/cjs/parts/Panel/middle/ItemListWrapper.js +15 -17
  24. package/dist/cjs/parts/Panel/middle/ItemListWrapper.js.map +1 -1
  25. package/dist/cjs/parts/Panel/middle/LoadingItems.js +1 -8
  26. package/dist/cjs/parts/Panel/middle/LoadingItems.js.map +1 -1
  27. package/dist/cjs/parts/Panel/middle/MultipleSelectionAction.js +11 -19
  28. package/dist/cjs/parts/Panel/middle/MultipleSelectionAction.js.map +1 -1
  29. package/dist/cjs/parts/Panel/middle/PanelContentMiddleSection.js +5 -15
  30. package/dist/cjs/parts/Panel/middle/PanelContentMiddleSection.js.map +1 -1
  31. package/dist/cjs/parts/Panel/top/PanelContentTopSection.js +4 -11
  32. package/dist/cjs/parts/Panel/top/PanelContentTopSection.js.map +1 -1
  33. package/dist/cjs/parts/Panel/top/PanelFilterSection.js +1 -6
  34. package/dist/cjs/parts/Panel/top/PanelFilterSection.js.map +1 -1
  35. package/dist/cjs/parts/Panel/top/SelectionHeader.js +16 -26
  36. package/dist/cjs/parts/Panel/top/SelectionHeader.js.map +1 -1
  37. package/dist/cjs/parts/PanelWrapper.js +8 -23
  38. package/dist/cjs/parts/PanelWrapper.js.map +1 -1
  39. package/dist/esm/DSShuttleV2.js +1 -9
  40. package/dist/esm/DSShuttleV2.js.map +1 -1
  41. package/dist/esm/parts/Header.js +4 -15
  42. package/dist/esm/parts/Header.js.map +1 -1
  43. package/dist/esm/parts/Item/Item.js +19 -22
  44. package/dist/esm/parts/Item/Item.js.map +1 -1
  45. package/dist/esm/parts/Item/ItemActions/ItemActions.js +29 -47
  46. package/dist/esm/parts/Item/ItemActions/ItemActions.js.map +1 -1
  47. package/dist/esm/parts/Item/ItemMiddleSection.js +10 -48
  48. package/dist/esm/parts/Item/ItemMiddleSection.js.map +1 -1
  49. package/dist/esm/parts/Item/ItemSelection.js +1 -4
  50. package/dist/esm/parts/Item/ItemSelection.js.map +1 -1
  51. package/dist/esm/parts/MainContent.js +4 -14
  52. package/dist/esm/parts/MainContent.js.map +1 -1
  53. package/dist/esm/parts/Panel/bottom/LoadMoreBtn.js +10 -7
  54. package/dist/esm/parts/Panel/bottom/LoadMoreBtn.js.map +1 -1
  55. package/dist/esm/parts/Panel/bottom/LoadingMore.js +1 -7
  56. package/dist/esm/parts/Panel/bottom/LoadingMore.js.map +1 -1
  57. package/dist/esm/parts/Panel/bottom/PanelContentBottomSection.js +13 -14
  58. package/dist/esm/parts/Panel/bottom/PanelContentBottomSection.js.map +1 -1
  59. package/dist/esm/parts/Panel/middle/EmptyItems.js +1 -5
  60. package/dist/esm/parts/Panel/middle/EmptyItems.js.map +1 -1
  61. package/dist/esm/parts/Panel/middle/ItemListWrapper.js +15 -17
  62. package/dist/esm/parts/Panel/middle/ItemListWrapper.js.map +1 -1
  63. package/dist/esm/parts/Panel/middle/LoadingItems.js +1 -8
  64. package/dist/esm/parts/Panel/middle/LoadingItems.js.map +1 -1
  65. package/dist/esm/parts/Panel/middle/MultipleSelectionAction.js +11 -19
  66. package/dist/esm/parts/Panel/middle/MultipleSelectionAction.js.map +1 -1
  67. package/dist/esm/parts/Panel/middle/PanelContentMiddleSection.js +5 -15
  68. package/dist/esm/parts/Panel/middle/PanelContentMiddleSection.js.map +1 -1
  69. package/dist/esm/parts/Panel/top/PanelContentTopSection.js +4 -11
  70. package/dist/esm/parts/Panel/top/PanelContentTopSection.js.map +1 -1
  71. package/dist/esm/parts/Panel/top/PanelFilterSection.js +1 -6
  72. package/dist/esm/parts/Panel/top/PanelFilterSection.js.map +1 -1
  73. package/dist/esm/parts/Panel/top/SelectionHeader.js +16 -26
  74. package/dist/esm/parts/Panel/top/SelectionHeader.js.map +1 -1
  75. package/dist/esm/parts/PanelWrapper.js +8 -23
  76. package/dist/esm/parts/PanelWrapper.js.map +1 -1
  77. package/package.json +11 -11
@@ -40,14 +40,6 @@ const ConfiguredComponent = import_react.default.memo((props) => {
40
40
  const DSShuttleV2 = (props) => {
41
41
  const createInternalStore = (0, import_useStore.useShuttleV2InternalStoreConfig)(props);
42
42
  const createPropsStore = (0, import_useStore.useShuttleV2PropsStoreConfig)(props);
43
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_useStore.PropsProvider, {
44
- createStore: createPropsStore,
45
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_useStore.InternalProvider, {
46
- createStore: createInternalStore,
47
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ConfiguredComponent, {
48
- userProps: props
49
- })
50
- })
51
- });
43
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_useStore.PropsProvider, { createStore: createPropsStore, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_useStore.InternalProvider, { createStore: createInternalStore, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ConfiguredComponent, { userProps: props }) }) });
52
44
  };
53
45
  //# sourceMappingURL=DSShuttleV2.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/DSShuttleV2.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { useShuttleV2 } from './config/useShuttleV2';\nimport {\n InternalProvider,\n PropsProvider,\n useShuttleV2InternalStoreConfig,\n useShuttleV2PropsStoreConfig,\n // useInternalStore,\n} from './config/useStore';\nimport { type DSShuttleV2T } from './react-desc-prop-types';\nimport { MainContent } from './parts/MainContent';\n\nconst ConfiguredComponent = React.memo((props: { userProps: DSShuttleV2T.Props }) => {\n useShuttleV2(props.userProps);\n // const store = useInternalStore((state) => state);\n // React.useEffect(() => {\n // console.group('-----------------------------------------');\n // console.groupCollapsed('Full Store');\n // console.log(store);\n // console.groupEnd();\n // console.groupEnd();\n // }, [store]);\n\n return <MainContent />;\n});\n\nexport const DSShuttleV2 = (props: DSShuttleV2T.Props) => {\n const createInternalStore = useShuttleV2InternalStoreConfig(props);\n const createPropsStore = useShuttleV2PropsStoreConfig(props);\n\n return (\n <PropsProvider createStore={createPropsStore}>\n <InternalProvider createStore={createInternalStore}>\n <ConfiguredComponent userProps={props} />\n </InternalProvider>\n </PropsProvider>\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADuBd;AAvBT,mBAAkB;AAClB,0BAA6B;AAC7B,sBAMO;AAEP,yBAA4B;AAE5B,MAAM,sBAAsB,aAAAA,QAAM,KAAK,CAAC,UAA6C;AACnF,wCAAa,MAAM,SAAS;AAU5B,SAAO,4CAAC,kCAAY;AACtB,CAAC;AAEM,MAAM,cAAc,CAAC,UAA8B;AACxD,QAAM,0BAAsB,iDAAgC,KAAK;AACjE,QAAM,uBAAmB,8CAA6B,KAAK;AAE3D,SACE,4CAAC;AAAA,IAAc,aAAa;AAAA,IAC1B,sDAAC;AAAA,MAAiB,aAAa;AAAA,MAC7B,sDAAC;AAAA,QAAoB,WAAW;AAAA,OAAO;AAAA,KACzC;AAAA,GACF;AAEJ;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADuBd;AAvBT,mBAAkB;AAClB,0BAA6B;AAC7B,sBAMO;AAEP,yBAA4B;AAE5B,MAAM,sBAAsB,aAAAA,QAAM,KAAK,CAAC,UAA6C;AACnF,wCAAa,MAAM,SAAS;AAU5B,SAAO,4CAAC,kCAAY;AACtB,CAAC;AAEM,MAAM,cAAc,CAAC,UAA8B;AACxD,QAAM,0BAAsB,iDAAgC,KAAK;AACjE,QAAM,uBAAmB,8CAA6B,KAAK;AAE3D,SACE,4CAAC,iCAAc,aAAa,kBAC1B,sDAAC,oCAAiB,aAAa,qBAC7B,sDAAC,uBAAoB,WAAW,OAAO,GACzC,GACF;AAEJ;",
6
6
  "names": ["React"]
7
7
  }
@@ -66,20 +66,9 @@ const Header = import_react.default.memo(({ isDestinationPanel }) => {
66
66
  finalCols.push("auto");
67
67
  return finalCols;
68
68
  }, [onSearchBarOpen]);
69
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, {
70
- onFocus: onHeaderFocus,
71
- cols,
72
- children: [
73
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HeaderRenderer, {}),
74
- onSearchBarOpen ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledIconButton, {
75
- buttonType: "icon",
76
- onClick: handleFilterClick,
77
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Search, {
78
- width: "14px",
79
- height: "14px"
80
- })
81
- }) : null
82
- ]
83
- });
69
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { onFocus: onHeaderFocus, cols, children: [
70
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HeaderRenderer, {}),
71
+ onSearchBarOpen ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledIconButton, { buttonType: "icon", onClick: handleFilterClick, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Search, { width: "14px", height: "14px" }) }) : null
72
+ ] });
84
73
  });
85
74
  //# sourceMappingURL=Header.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/parts/Header.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { Search } from '@elliemae/ds-icons';\nimport {\n DSButtonV2,\n type DSButtonT,\n // BUTTON_SIZES\n} from '@elliemae/ds-button';\nimport { styled } from '@elliemae/ds-system';\nimport { usePropsStore } from '../config/useStore';\nimport { useFocusTracker } from '../config/useFocusTracker';\nimport { type DSShuttleV2T } from '../react-desc-prop-types';\nconst StyledIconButton = styled(DSButtonV2, { name: 'ds-shuttle-v2', slot: 'header-search-icon' })`\n width: 16px;\n height: 16px;\n`;\nexport const Header = React.memo(({ isDestinationPanel }: DSShuttleV2T.PanelMetaInfo) => {\n const HeaderRenderer = usePropsStore((state) => (isDestinationPanel ? state.DestinationHeader : state.SourceHeader));\n const onSearchBarOpen = usePropsStore((state) =>\n isDestinationPanel ? state.onDesinationOpenSearchbar : state.onSourceOpenSearchbar,\n );\n const isSearchBarOpen = usePropsStore((state) =>\n isDestinationPanel ? state.destinationShowSearchbar : state.sourceShowSearchbar,\n );\n const { trackFocusRegionHeader, trackFocusItemReset, trackFocusActionReset } = useFocusTracker();\n const onHeaderFocus = React.useCallback(() => {\n trackFocusRegionHeader(isDestinationPanel);\n trackFocusItemReset();\n trackFocusActionReset();\n }, [isDestinationPanel, trackFocusActionReset, trackFocusItemReset, trackFocusRegionHeader]);\n\n const handleFilterClick = React.useCallback(\n (event: Parameters<Required<DSButtonT.Props>['onClick']>[0]) => {\n onSearchBarOpen?.(!isSearchBarOpen, { event });\n },\n [isSearchBarOpen, onSearchBarOpen],\n );\n\n const cols = React.useMemo(() => {\n const finalCols = ['1fr'];\n if (onSearchBarOpen) finalCols.push('auto');\n return finalCols;\n }, [onSearchBarOpen]);\n\n return (\n <Grid onFocus={onHeaderFocus} cols={cols}>\n <HeaderRenderer />\n {onSearchBarOpen ? (\n <StyledIconButton buttonType=\"icon\" onClick={handleFilterClick}>\n <Search width=\"14px\" height=\"14px\" />\n </StyledIconButton>\n ) : null}\n </Grid>\n );\n});\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD6CnB;AA7CJ,mBAAkB;AAClB,qBAAqB;AACrB,sBAAuB;AACvB,uBAIO;AACP,uBAAuB;AACvB,sBAA8B;AAC9B,6BAAgC;AAEhC,MAAM,uBAAmB,yBAAO,6BAAY,EAAE,MAAM,iBAAiB,MAAM,qBAAqB,CAAC;AAAA;AAAA;AAAA;AAI1F,MAAM,SAAS,aAAAA,QAAM,KAAK,CAAC,EAAE,mBAAmB,MAAkC;AACvF,QAAM,qBAAiB,+BAAc,CAAC,UAAW,qBAAqB,MAAM,oBAAoB,MAAM,YAAa;AACnH,QAAM,sBAAkB;AAAA,IAAc,CAAC,UACrC,qBAAqB,MAAM,4BAA4B,MAAM;AAAA,EAC/D;AACA,QAAM,sBAAkB;AAAA,IAAc,CAAC,UACrC,qBAAq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AAC,UAAW,qBAAqB,MAAM,oBAAoB,MAAM,YAAa;AACnH,QAAM,sBAAkB;AAAA,IAAc,CAAC,UACrC,qBAAqB,MAAM,4BAA4B,MAAM;AAAA,EAC/D;AACA,QAAM,sBAAkB;AAAA,IAAc,CAAC,UACrC,qBAAqB,MAAM,2BAA2B,MAAM;AAAA,EAC9D;AACA,QAAM,EAAE,wBAAwB,qBAAqB,sBAAsB,QAAI,wCAAgB;AAC/F,QAAM,gBAAgB,aAAAA,QAAM,YAAY,MAAM;AAC5C,2BAAuB,kBAAkB;AACzC,wBAAoB;AACpB,0BAAsB;AAAA,EACxB,GAAG,CAAC,oBAAoB,uBAAuB,qBAAqB,sBAAsB,CAAC;AAE3F,QAAM,oBAAoB,aAAAA,QAAM;AAAA,IAC9B,CAAC,UAA+D;AAC9D,wBAAkB,CAAC,iBAAiB,EAAE,MAAM,CAAC;AAAA,IAC/C;AAAA,IACA,CAAC,iBAAiB,eAAe;AAAA,EACnC;AAEA,QAAM,OAAO,aAAAA,QAAM,QAAQ,MAAM;AAC/B,UAAM,YAAY,CAAC,KAAK;AACxB,QAAI;AAAiB,gBAAU,KAAK,MAAM;AAC1C,WAAO;AAAA,EACT,GAAG,CAAC,eAAe,CAAC;AAEpB,SACE,6CAAC,uBAAK,SAAS,eAAe,MAC5B;AAAA,gDAAC,kBAAe;AAAA,IACf,kBACC,4CAAC,oBAAiB,YAAW,QAAO,SAAS,mBAC3C,sDAAC,0BAAO,OAAM,QAAO,QAAO,QAAO,GACrC,IACE;AAAA,KACN;AAEJ,CAAC;",
6
6
  "names": ["React"]
7
7
  }
@@ -99,27 +99,24 @@ const Item = import_react.default.memo((itemMeta) => {
99
99
  [onItemContainerKeyDown, selectItem]
100
100
  );
101
101
  const { shouldFocus, innerRefHandlerParentItem } = useInnerRefHandlers(itemMeta);
102
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(ItemWrapper, {
103
- cols,
104
- alignItems: "center",
105
- onClick: selectItem,
106
- onKeyDown: handleItemKeyDown,
107
- ref: innerRefHandlerParentItem,
108
- tabIndex: shouldFocus ? 0 : -1,
109
- role: "checkbox",
110
- "aria-checked": isSelected,
111
- id,
112
- children: [
113
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ItemSelection.ItemSelection, {
114
- ...itemMeta
115
- }),
116
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ItemMiddleSection.ItemMiddleSection, {
117
- ...itemMeta
118
- }),
119
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ItemActions.ItemActions, {
120
- ...itemMeta
121
- })
122
- ]
123
- });
102
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
103
+ ItemWrapper,
104
+ {
105
+ cols,
106
+ alignItems: "center",
107
+ onClick: selectItem,
108
+ onKeyDown: handleItemKeyDown,
109
+ ref: innerRefHandlerParentItem,
110
+ tabIndex: shouldFocus ? 0 : -1,
111
+ role: "checkbox",
112
+ "aria-checked": isSelected,
113
+ id,
114
+ children: [
115
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ItemSelection.ItemSelection, { ...itemMeta }),
116
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ItemMiddleSection.ItemMiddleSection, { ...itemMeta }),
117
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ItemActions.ItemActions, { ...itemMeta })
118
+ ]
119
+ }
120
+ );
124
121
  });
125
122
  //# sourceMappingURL=Item.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/Item/Item.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { type DSShuttleV2T } from '../../react-desc-prop-types';\nimport { useInternalStore } from '../../config/useStore';\nimport { useFocusTracker } from '../../config/useFocusTracker';\nimport { ItemSelection } from './ItemSelection';\nimport { ItemActions } from './ItemActions';\nimport { ItemMiddleSection } from './ItemMiddleSection';\nimport { useSelectionLogic } from './useSelectionLogic';\nimport { useItemArrowNavigation } from './useItemArrowNavigation';\nimport { REGIONS_FOCUSES } from '../../constants';\n\n// we are using the class-name added via slot for the children `:hover` styling of icon colors\nconst ItemWrapper = styled(Grid, { name: 'ds-shuttle-v2', slot: 'item-wrapper' })`\n min-height: 36px;\n :hover {\n background-color: brand-200;\n .ds-shuttle-v2-item-action-btn-to-source-icon > svg,\n .ds-shuttle-v2-item-action-btn-to-destination-icon > svg,\n .ds-shuttle-v2-item-action-btn-drilldown-icon > svg {\n fill: brand-700;\n }\n }\n :focus {\n outline: 2px solid brand-700;\n outline-offset: -2px;\n }\n border-bottom: 1px solid neutral-100;\n`;\n\nconst useInnerRefHandlers = ({ item, isDestinationPanel }: DSShuttleV2T.ItemMeta) => {\n const { isFirst, isLast } = item;\n const { trackFocusItem } = useFocusTracker();\n const focusRegion = useInternalStore((state) => state.focusRegion);\n const focusItem = useInternalStore((state) => state.focusItem);\n const focusItemAction = useInternalStore((state) => state.focusItemAction);\n const currRegion = isDestinationPanel ? REGIONS_FOCUSES.DESTINATION_PANEL_ITEM : REGIONS_FOCUSES.SOURCE_PANEL_ITEM;\n const currItemId = item.original.id;\n\n const shouldFocus = React.useMemo(\n () =>\n focusRegion === currRegion &&\n focusItemAction === 'parent' &&\n (focusItem === currItemId || (isFirst && focusItem === 'first') || (isLast && focusItem === 'last')),\n [currItemId, currRegion, focusItem, focusItemAction, focusRegion, isFirst, isLast],\n );\n const innerRefHandlerParentItem = React.useCallback(\n (node: HTMLDivElement) => {\n if (shouldFocus) {\n node?.focus();\n trackFocusItem(item); // this converts 'first'/'last' to actual id -> prevents 'last' to focus \"new last\" if new items are added\n }\n },\n [item, shouldFocus, trackFocusItem],\n );\n return React.useMemo(() => ({ shouldFocus, innerRefHandlerParentItem }), [shouldFocus, innerRefHandlerParentItem]);\n};\n\nconst cols = ['5px', '1fr', 'auto'];\nexport const Item = React.memo((itemMeta: DSShuttleV2T.ItemMeta) => {\n const { item } = itemMeta;\n const { original, isSelected } = item;\n const { id } = original;\n\n const selectItem = useSelectionLogic(itemMeta);\n const { onItemContainerKeyDown } = useItemArrowNavigation(itemMeta);\n const handleItemKeyDown: React.KeyboardEventHandler<HTMLDivElement> = React.useCallback(\n (event) => {\n const { key } = event;\n // Spacebar AND ' ' are cross-browser compatibility thing\n if (['Spacebar', ' ', 'Enter'].includes(key)) {\n event.preventDefault();\n event.stopPropagation();\n selectItem(event);\n }\n onItemContainerKeyDown(event);\n },\n [onItemContainerKeyDown, selectItem],\n );\n const { shouldFocus, innerRefHandlerParentItem } = useInnerRefHandlers(itemMeta);\n\n return (\n <ItemWrapper\n cols={cols}\n alignItems=\"center\"\n onClick={selectItem}\n onKeyDown={handleItemKeyDown}\n ref={innerRefHandlerParentItem}\n tabIndex={shouldFocus ? 0 : -1}\n role=\"checkbox\"\n aria-checked={isSelected}\n id={id}\n >\n <ItemSelection {...itemMeta} />\n <ItemMiddleSection {...itemMeta} />\n <ItemActions {...itemMeta} />\n </ItemWrapper>\n );\n});\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADmFnB;AAnFJ,mBAAkB;AAClB,uBAAuB;AACvB,qBAAqB;AAErB,sBAAiC;AACjC,6BAAgC;AAChC,2BAA8B;AAC9B,yBAA4B;AAC5B,+BAAkC;AAClC,+BAAkC;AAClC,oCAAuC;AACvC,uBAAgC;AAGhC,MAAM,kBAAc,yBAAO,qBAAM,EAAE,MAAM,iBAAiB,MAAM,eAAe,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBhF,MAAM,sBAAsB,CAAC,EAAE,MAAM,mBAAmB,MAA6B;AACnF,QAAM,EAAE,SAAS,OAAO,IAAI;AAC5B,QAAM,EAAE,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ACT,WAAW;AAAA,MACX,KAAK;AAAA,MACL,UAAU,cAAc,IAAI;AAAA,MAC5B,MAAK;AAAA,MACL,gBAAc;AAAA,MACd;AAAA,MAEA;AAAA,oDAAC,sCAAe,GAAG,UAAU;AAAA,QAC7B,4CAAC,8CAAmB,GAAG,UAAU;AAAA,QACjC,4CAAC,kCAAa,GAAG,UAAU;AAAA;AAAA;AAAA,EAC7B;AAEJ,CAAC;",
6
6
  "names": ["React"]
7
7
  }
@@ -66,52 +66,34 @@ const ItemActions = import_react.default.memo((itemMeta) => {
66
66
  const { preventDrilldown, preventMove } = original;
67
67
  const { shouldFocusDrilldown, shouldFocusMove, innerRefHandlerDrilldown, innerRefHandlerMove } = (0, import_useInnerRefHandlers.useInnerRefHandlers)(itemMeta);
68
68
  const { handleClickDrilldown, handleClickSingleMove } = (0, import_useActionsHandlers.useActionsHandlers)(itemMeta);
69
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledItemActions, {
70
- cols: actionsCols,
71
- gutter: "xxs",
72
- pl: "xs",
73
- pr: "xxs",
74
- alignItems: "center",
75
- children: withActions ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
76
- children: [
77
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledItemActionWrapper, {
78
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledButton, {
79
- buttonType: "icon",
80
- onClick: handleClickDrilldown,
81
- size: import_ds_button.BUTTON_SIZES.S,
82
- innerRef: innerRefHandlerDrilldown,
83
- tabIndex: shouldFocusDrilldown && !preventDrilldown ? 0 : -1,
84
- disabled: preventDrilldown === true,
85
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledDrilldownIcon, {
86
- width: "20px",
87
- height: "20px"
88
- })
89
- })
90
- }),
91
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledItemActionWrapper, {
92
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledButton, {
93
- buttonType: "icon",
94
- onClick: handleClickSingleMove,
95
- size: import_ds_button.BUTTON_SIZES.S,
96
- innerRef: innerRefHandlerMove,
97
- tabIndex: shouldFocusMove && !preventMove ? 0 : -1,
98
- disabled: preventMove === true,
99
- children: isDestinationPanel ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledCloseMediumIcon, {
100
- width: "20px",
101
- height: "20px"
102
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledArrowShortRightIcon, {
103
- width: "20px",
104
- height: "20px"
105
- })
106
- })
107
- })
108
- ]
109
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
110
- children: [
111
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}),
112
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {})
113
- ]
114
- })
115
- });
69
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledItemActions, { cols: actionsCols, gutter: "xxs", pl: "xs", pr: "xxs", alignItems: "center", children: withActions ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
70
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledItemActionWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
71
+ StyledButton,
72
+ {
73
+ buttonType: "icon",
74
+ onClick: handleClickDrilldown,
75
+ size: import_ds_button.BUTTON_SIZES.S,
76
+ innerRef: innerRefHandlerDrilldown,
77
+ tabIndex: shouldFocusDrilldown && !preventDrilldown ? 0 : -1,
78
+ disabled: preventDrilldown === true,
79
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledDrilldownIcon, { width: "20px", height: "20px" })
80
+ }
81
+ ) }),
82
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledItemActionWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
83
+ StyledButton,
84
+ {
85
+ buttonType: "icon",
86
+ onClick: handleClickSingleMove,
87
+ size: import_ds_button.BUTTON_SIZES.S,
88
+ innerRef: innerRefHandlerMove,
89
+ tabIndex: shouldFocusMove && !preventMove ? 0 : -1,
90
+ disabled: preventMove === true,
91
+ children: isDestinationPanel ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledCloseMediumIcon, { width: "20px", height: "20px" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledArrowShortRightIcon, { width: "20px", height: "20px" })
92
+ }
93
+ ) })
94
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
95
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}),
96
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {})
97
+ ] }) });
116
98
  });
117
99
  //# sourceMappingURL=ItemActions.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/parts/Item/ItemActions/ItemActions.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSButtonV2, BUTTON_SIZES } from '@elliemae/ds-button';\nimport { ArrowShortReturn, ArrowShortRight, CloseMedium } from '@elliemae/ds-icons';\nimport { type DSShuttleV2T } from '../../../react-desc-prop-types';\nimport { useActionsHandlers } from './useActionsHandlers';\nimport { useInnerRefHandlers } from './useInnerRefHandlers';\n\nconst StyledItemActions = styled(Grid, { name: 'ds-shuttle-v2', slot: 'item-actions-wrapper' })``;\nconst StyledItemActionWrapper = styled(Grid, { name: 'ds-shuttle-v2', slot: 'item-action-wrapper' })``;\nconst StyledButton = styled(DSButtonV2, { name: 'ds-shuttle-v2', slot: 'item-action-btn' })`\n height: 22px !important;\n svg {\n fill: brand-600;\n }\n :disabled svg {\n fill: neutral-200 !important;\n }\n`;\nconst StyledDrilldownIcon = styled(ArrowShortReturn, {\n name: 'ds-shuttle-v2',\n slot: 'item-action-btn-drilldown-icon',\n})``;\nconst StyledCloseMediumIcon = styled(CloseMedium, {\n name: 'ds-shuttle-v2',\n slot: 'item-action-btn-to-source-icon',\n})``;\nconst StyledArrowShortRightIcon = styled(ArrowShortRight, {\n name: 'ds-shuttle-v2',\n slot: 'item-action-btn-to-destination-icon',\n})``;\n\nconst actionsCols = ['20px', '20px'];\n\nexport const ItemActions = React.memo((itemMeta: DSShuttleV2T.ItemMeta) => {\n const { item, isDestinationPanel } = itemMeta;\n // withActions is calculated in /src/config/configureAutoCalculated.ts\n const { original, withActions } = item;\n const { preventDrilldown, preventMove } = original;\n const { shouldFocusDrilldown, shouldFocusMove, innerRefHandlerDrilldown, innerRefHandlerMove } =\n useInnerRefHandlers(itemMeta);\n const { handleClickDrilldown, handleClickSingleMove } = useActionsHandlers(itemMeta);\n\n return (\n <StyledItemActions cols={actionsCols} gutter=\"xxs\" pl=\"xs\" pr=\"xxs\" alignItems=\"center\">\n {withActions ? (\n <>\n <StyledItemActionWrapper>\n <StyledButton\n buttonType=\"icon\"\n onClick={handleClickDrilldown}\n size={BUTTON_SIZES.S}\n innerRef={innerRefHandlerDrilldown}\n tabIndex={shouldFocusDrilldown && !preventDrilldown ? 0 : -1}\n disabled={preventDrilldown === true}\n >\n <StyledDrilldownIcon width=\"20px\" height=\"20px\" />\n </StyledButton>\n </StyledItemActionWrapper>\n <StyledItemActionWrapper>\n <StyledButton\n buttonType=\"icon\"\n onClick={handleClickSingleMove}\n size={BUTTON_SIZES.S}\n innerRef={innerRefHandlerMove}\n tabIndex={shouldFocusMove && !preventMove ? 0 : -1}\n disabled={preventMove === true}\n >\n {isDestinationPanel ? (\n <StyledCloseMediumIcon width=\"20px\" height=\"20px\" />\n ) : (\n <StyledArrowShortRightIcon width=\"20px\" height=\"20px\" />\n )}\n </StyledButton>\n </StyledItemActionWrapper>\n </>\n ) : (\n // this is a place-holder used for mantainting the grid spacing\n <>\n <div />\n <div />\n </>\n )}\n </StyledItemActions>\n );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AA,KACF,IAGA,4EACE;AAAA,gDAAC,SAAI;AAAA,IACL,4CAAC,SAAI;AAAA,KACP,GAEJ;AAEJ,CAAC;",
6
6
  "names": ["React"]
7
7
  }
@@ -58,28 +58,11 @@ const withSubtitleRows = ["auto", "auto"];
58
58
  const TextSection = import_react.default.memo((props) => {
59
59
  const { label, subtitle } = props.item.original;
60
60
  if (subtitle === void 0)
61
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LabelWrapper, {
62
- alignItems: "center",
63
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_typography.DSTypography, {
64
- variant: "b1",
65
- children: label
66
- })
67
- });
68
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, {
69
- alignItems: "center",
70
- rows: withSubtitleRows,
71
- gutter: "1px",
72
- children: [
73
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_typography.DSTypography, {
74
- variant: "b1",
75
- children: label
76
- }),
77
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_typography.DSTypography, {
78
- variant: "b4",
79
- children: subtitle
80
- })
81
- ]
82
- });
61
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LabelWrapper, { alignItems: "center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_typography.DSTypography, { variant: "b1", children: label }) });
62
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { alignItems: "center", rows: withSubtitleRows, gutter: "1px", children: [
63
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_typography.DSTypography, { variant: "b1", children: label }),
64
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_typography.DSTypography, { variant: "b4", children: subtitle })
65
+ ] });
83
66
  });
84
67
  const ItemMiddleSection = import_react.default.memo((itemMeta) => {
85
68
  const { item } = itemMeta;
@@ -95,31 +78,10 @@ const ItemMiddleSection = import_react.default.memo((itemMeta) => {
95
78
  return dynamicCols;
96
79
  }, [CustomRenderer, Icon]);
97
80
  if (CustomRenderer)
98
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MidSection, {
99
- cols: customMidSectionCols,
100
- rows: customMidSectionRows,
101
- $softDeleted: softDeleted,
102
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CustomRenderer, {
103
- ...itemMeta
104
- })
105
- });
106
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MidSection, {
107
- cols,
108
- alignItems: "center",
109
- ml: "xxs",
110
- $softDeleted: softDeleted,
111
- children: [
112
- Icon ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconWrapper, {
113
- alignItems: "center",
114
- mr: "xxs",
115
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, {
116
- ...itemMeta
117
- })
118
- }) : null,
119
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextSection, {
120
- ...itemMeta
121
- })
122
- ]
123
- });
81
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MidSection, { cols: customMidSectionCols, rows: customMidSectionRows, $softDeleted: softDeleted, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CustomRenderer, { ...itemMeta }) });
82
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MidSection, { cols, alignItems: "center", ml: "xxs", $softDeleted: softDeleted, children: [
83
+ Icon ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconWrapper, { alignItems: "center", mr: "xxs", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { ...itemMeta }) }) : null,
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextSection, { ...itemMeta })
85
+ ] });
124
86
  });
125
87
  //# sourceMappingURL=ItemMiddleSection.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/Item/ItemMiddleSection.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSTypography } from '@elliemae/ds-typography';\nimport { type DSShuttleV2T } from '../../react-desc-prop-types';\n\nconst IconWrapper = styled(Grid, { name: 'ds-shuttle-v2', slot: 'item-icon-wrapper' })`\n min-height: 1rem;\n`;\nconst LabelWrapper = styled(Grid, { name: 'ds-shuttle-v2', slot: 'item-label-wrapper' })`\n min-height: 1rem;\n`;\nconst MidSection = styled(Grid, { name: 'ds-shuttle-v2', slot: 'item-midsection-wrapper' })`\n min-height: 1rem;\n ${(props) => {\n if (props.$softDeleted)\n return `\n color: ${props.theme.colors.neutral[500]};\n svg {\n fill: ${props.theme.colors.neutral[400]};\n }\n `;\n return '';\n }};\n`;\nconst customMidSectionCols = ['1fr'];\nconst customMidSectionRows = ['1fr'];\n\nconst withSubtitleRows = ['auto', 'auto'];\nconst TextSection = React.memo((props: DSShuttleV2T.ItemMeta) => {\n const { label, subtitle } = props.item.original;\n if (subtitle === undefined)\n return (\n <LabelWrapper alignItems=\"center\">\n <DSTypography variant=\"b1\">{label}</DSTypography>\n </LabelWrapper>\n );\n return (\n <Grid alignItems=\"center\" rows={withSubtitleRows} gutter=\"1px\">\n <DSTypography variant=\"b1\">{label}</DSTypography>\n <DSTypography variant=\"b4\">{subtitle}</DSTypography>\n </Grid>\n );\n});\n\nexport const ItemMiddleSection = React.memo((itemMeta: DSShuttleV2T.ItemMeta) => {\n const { item } = itemMeta;\n const { original } = item;\n const { Icon, CustomRenderer, softDeleted } = original;\n const cols = React.useMemo(() => {\n // if CustomRenderer is defined, shortcircuit\n if (CustomRenderer) return [];\n const dynamicCols = [];\n if (Icon) dynamicCols.push('auto');\n dynamicCols.push('1fr');\n return dynamicCols;\n }, [CustomRenderer, Icon]);\n\n if (CustomRenderer)\n return (\n <MidSection cols={customMidSectionCols} rows={customMidSectionRows} $softDeleted={softDeleted}>\n <CustomRenderer {...itemMeta} />\n </MidSection>\n );\n\n return (\n <MidSection cols={cols} alignItems=\"center\" ml=\"xxs\" $softDeleted={softDeleted}>\n {Icon ? (\n <IconWrapper alignItems=\"center\" mr=\"xxs\">\n <Icon {...itemMeta} />\n </IconWrapper>\n ) : null}\n <TextSection {...itemMeta} />\n </MidSection>\n );\n});\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkCf;AAlCR,mBAAkB;AAClB,uBAAuB;AACvB,qBAAqB;AACrB,2BAA6B;AAG7B,MAAM,kBAAc,yBAAO,qBAAM,EAAE,MAAM,iBAAiB,MAAM,oBAAoB,CAAC;AAAA;AAAA;AAGrF,MAAM,mBAAe,yBAAO,qBAAM,EAAE,MAAM,iBAAiB,MAAM,qBAAqB,CAAC;AAAA;AAAA;AAGvF,MAAM,iBAAa,yBAAO,qBAAM,EAAE,MAAM,iBAAiB,MAAM,0BAA0B,CAAC;AAAA;AAAA,IAEtF,CAAC,UAAU;AACX,MAAI,MAAM;AACR,WAAO;AAAA,eACE,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA,gBAE1B,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA;AAGvC,SAAO;AACT;AAAA;AAEF,MAAM,uBAAuB,CAAC,KAAK;AACnC,MAAM,uBAAuB,CAAC,KAAK;AAEnC,MAAM,mBAAmB,CAAC,QAAQ,MAAM;AACxC,MAAM,cAAc,aAAAA,QAAM,KAAK,CAAC,UAAiC;AAC/D,QAAM,EAAE,OAAO,SAAS,IAAI,MAAM,KAAK;AACvC,MAAI,aAAa;AACf,WACE,4CAAC;AAAA,MAAa,YAAW;AAAA,MACvB,sDAAC;AAAA,QAAa,SAAQ;AAAA,QAAM;AAAA,OAAM;AAAA,KACpC;AAEJ,SACE,6CAAC;AAAA,IAAK,YAAW;AAAA,IAAS,MAAM;AAAA,IAAkB,QAAO;AAAA,IACvD;AAAA,kDAAC;AAAA,QAAa,SAAQ;AAAA,QAAM;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gB,GAAG,UAAU,GAChC;AAGJ,SACE,6CAAC,cAAW,MAAY,YAAW,UAAS,IAAG,OAAM,cAAc,aAChE;AAAA,WACC,4CAAC,eAAY,YAAW,UAAS,IAAG,OAClC,sDAAC,QAAM,GAAG,UAAU,GACtB,IACE;AAAA,IACJ,4CAAC,eAAa,GAAG,UAAU;AAAA,KAC7B;AAEJ,CAAC;",
6
6
  "names": ["React"]
7
7
  }
@@ -44,8 +44,5 @@ const StyledItemSelection = (0, import_ds_system.styled)(import_ds_grid.Grid, {
44
44
  return props.theme.colors.brand[300];
45
45
  }};
46
46
  `;
47
- const ItemSelection = import_react.default.memo(({ item: { isSelected, selectionPrevented } }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledItemSelection, {
48
- $isSelected: isSelected,
49
- $selectionPrevented: selectionPrevented
50
- }));
47
+ const ItemSelection = import_react.default.memo(({ item: { isSelected, selectionPrevented } }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledItemSelection, { $isSelected: isSelected, $selectionPrevented: selectionPrevented }));
51
48
  //# sourceMappingURL=ItemSelection.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/Item/ItemSelection.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { type DSShuttleV2T } from '../../react-desc-prop-types';\n\n// border-right: ${(props) => {\n// if (props.$selectionPrevented === true) return `1px solid ${props.theme.colors.neutral['200']}`;\n// return '';\n// }};\n// border-bottom: ${(props) => {\n// if (props.$selectionPrevented === true) return `1px solid ${props.theme.colors.neutral['200']}`;\n// return '';\n// }};\n\nconst StyledItemSelection = styled(Grid, { name: 'ds-shuttle-v2', slot: 'item-selection' })<{\n $isSelected: boolean;\n $selectionPrevented?: boolean;\n}>`\n width: 5px;\n height: 100%;\n box-sizing: border-box;\n background-color: ${(props) => {\n if (props.$isSelected) return props.theme.colors.brand[600];\n if (props.$selectionPrevented === true) return props.theme.colors.neutral['080'];\n return props.theme.colors.brand[300];\n }};\n`;\n\nexport const ItemSelection = React.memo(({ item: { isSelected, selectionPrevented } }: DSShuttleV2T.ItemMeta) => (\n <StyledItemSelection $isSelected={isSelected} $selectionPrevented={selectionPrevented} />\n));\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD6BrB;AA7BF,mBAAkB;AAClB,uBAAuB;AACvB,qBAAqB;AAYrB,MAAM,0BAAsB,yBAAO,qBAAM,EAAE,MAAM,iBAAiB,MAAM,iBAAiB,CAAC;AAAA;AAAA;AAAA;AAAA,sBAOpE,CAAC,UAAU;AAC7B,MAAI,MAAM;AAAa,WAAO,MAAM,MAAM,OAAO,MAAM;AACvD,MAAI,MAAM,wBAAwB;AAAM,WAAO,MAAM,MAAM,OAAO,QAAQ;AAC1E,SAAO,MAAM,MAAM,OAAO,MAAM;AAClC;AAAA;AAGK,MAAM,gBAAgB,aAAAA,QAAM,KAAK,CAAC,EAAE,MAAM,EAAE,YAAY,mBAAmB,EAAE,MAClF,4CAAC;AAAA,EAAoB,aAAa;AAAA,EAAY,qBAAqB;AAAA,CAAoB,CACxF;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD6BrB;AA7BF,mBAAkB;AAClB,uBAAuB;AACvB,qBAAqB;AAYrB,MAAM,0BAAsB,yBAAO,qBAAM,EAAE,MAAM,iBAAiB,MAAM,iBAAiB,CAAC;AAAA;AAAA;AAAA;AAAA,sBAOpE,CAAC,UAAU;AAC7B,MAAI,MAAM;AAAa,WAAO,MAAM,MAAM,OAAO,MAAM;AACvD,MAAI,MAAM,wBAAwB;AAAM,WAAO,MAAM,MAAM,OAAO,QAAQ;AAC1E,SAAO,MAAM,MAAM,OAAO,MAAM;AAClC;AAAA;AAGK,MAAM,gBAAgB,aAAAA,QAAM,KAAK,CAAC,EAAE,MAAM,EAAE,YAAY,mBAAmB,EAAE,MAClF,4CAAC,uBAAoB,aAAa,YAAY,qBAAqB,oBAAoB,CACxF;",
6
6
  "names": ["React"]
7
7
  }
@@ -53,19 +53,9 @@ const MainContent = import_react.default.memo(() => {
53
53
  [trackFocusActionReset, trackFocusItemReset, trackFocusRegionReset]
54
54
  );
55
55
  const handleOnBlurOut = (0, import_ds_utilities.useOnBlurOut)(config);
56
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledWrapper, {
57
- cols: mainContentCols,
58
- gutter: "xs",
59
- p: "xs",
60
- onBlur: handleOnBlurOut,
61
- children: [
62
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_PanelWrapper.PanelWrapper, {
63
- isDestinationPanel: false
64
- }),
65
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_PanelWrapper.PanelWrapper, {
66
- isDestinationPanel: true
67
- })
68
- ]
69
- });
56
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledWrapper, { cols: mainContentCols, gutter: "xs", p: "xs", onBlur: handleOnBlurOut, children: [
57
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_PanelWrapper.PanelWrapper, { isDestinationPanel: false }),
58
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_PanelWrapper.PanelWrapper, { isDestinationPanel: true })
59
+ ] });
70
60
  });
71
61
  //# sourceMappingURL=MainContent.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/parts/MainContent.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { useOnBlurOut } from '@elliemae/ds-utilities';\nimport { PanelWrapper } from './PanelWrapper';\nimport { useFocusTracker } from '../config/useFocusTracker';\n\nconst StyledWrapper = styled(Grid, { name: 'ds-shuttle-v2', slot: 'wrapper' })`\n min-width: 648px;\n min-height: 296px;\n`;\nconst mainContentCols = ['1fr', '1fr'];\n\nexport const MainContent = React.memo(() => {\n const { trackFocusRegionReset, trackFocusItemReset, trackFocusActionReset } = useFocusTracker();\n const config = React.useMemo(\n () => ({\n onBlur: () => {\n trackFocusRegionReset();\n trackFocusItemReset();\n trackFocusActionReset();\n },\n }),\n [trackFocusActionReset, trackFocusItemReset, trackFocusRegionReset],\n );\n const handleOnBlurOut = useOnBlurOut(config);\n return (\n <StyledWrapper cols={mainContentCols} gutter=\"xs\" p=\"xs\" onBlur={handleOnBlurOut}>\n <PanelWrapper isDestinationPanel={false} />\n <PanelWrapper isDestinationPanel />\n </StyledWrapper>\n );\n});\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD2BnB;AA3BJ,mBAAkB;AAClB,uBAAuB;AACvB,qBAAqB;AACrB,0BAA6B;AAC7B,0BAA6B;AAC7B,6BAAgC;AAEhC,MAAM,oBAAgB,yBAAO,qBAAM,EAAE,MAAM,iBAAiB,MAAM,UAAU,CAAC;AAAA;AAAA;AAAA;AAI7E,MAAM,kBAAkB,CAAC,OAAO,KAAK;AAE9B,MAAM,cAAc,aAAAA,QAAM,KAAK,MAAM;AAC1C,QAAM,EAAE,uBAAuB,qBAAqB,sBAAsB,QAAI,wCAAgB;AAC9F,QAAM,SAAS,aAAAA,QAAM;AAAA,IACnB,OAAO;AAAA,MACL,QAAQ,MAAM;AACZ,8BAAsB;AACtB,4BAAoB;AACpB,8BAAsB;AAAA,MACxB;AAAA,IACF;AAAA,IACA,CAAC,uBAAuB,qBAAqB,qBAAqB;AAAA,EACpE;AACA,QAAM,sBAAkB,kCAAa,MAAM;AAC3C,SACE,6CAAC;AAAA,IAAc,MAAM;AAAA,IAAiB,QAAO;AAAA,IAAK,GAAE;AAAA,IAAK,QAAQ;AAAA,IAC/D;AAAA,kDAAC;AAAA,QAAa,oBAAoB;AAAA,OAAO;AAAA,MACzC,4CAAC;AAAA,QAAa,oBAAkB;AAAA,OAAC;AAAA;AAAA,GACnC;AAEJ,CAAC;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD2BnB;AA3BJ,mBAAkB;AAClB,uBAAuB;AACvB,qBAAqB;AACrB,0BAA6B;AAC7B,0BAA6B;AAC7B,6BAAgC;AAEhC,MAAM,oBAAgB,yBAAO,qBAAM,EAAE,MAAM,iBAAiB,MAAM,UAAU,CAAC;AAAA;AAAA;AAAA;AAI7E,MAAM,kBAAkB,CAAC,OAAO,KAAK;AAE9B,MAAM,cAAc,aAAAA,QAAM,KAAK,MAAM;AAC1C,QAAM,EAAE,uBAAuB,qBAAqB,sBAAsB,QAAI,wCAAgB;AAC9F,QAAM,SAAS,aAAAA,QAAM;AAAA,IACnB,OAAO;AAAA,MACL,QAAQ,MAAM;AACZ,8BAAsB;AACtB,4BAAoB;AACpB,8BAAsB;AAAA,MACxB;AAAA,IACF;AAAA,IACA,CAAC,uBAAuB,qBAAqB,qBAAqB;AAAA,EACpE;AACA,QAAM,sBAAkB,kCAAa,MAAM;AAC3C,SACE,6CAAC,iBAAc,MAAM,iBAAiB,QAAO,MAAK,GAAE,MAAK,QAAQ,iBAC/D;AAAA,gDAAC,oCAAa,oBAAoB,OAAO;AAAA,IACzC,4CAAC,oCAAa,oBAAkB,MAAC;AAAA,KACnC;AAEJ,CAAC;",
6
6
  "names": ["React"]
7
7
  }
@@ -61,12 +61,15 @@ const LoadMoreBtn = (panelMetaInfo) => {
61
61
  ]
62
62
  );
63
63
  const { innerRefHandlerLoadMoreBtn } = (0, import_useInnerRefHandlers.useInnerRefHandlers)(panelMetaInfo);
64
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledLoadMoreBtn, {
65
- buttonType: "text",
66
- onClick: handleOnClick,
67
- size: import_ds_button.BUTTON_SIZES.S,
68
- innerRef: innerRefHandlerLoadMoreBtn,
69
- children: "Load More..."
70
- });
64
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
65
+ StyledLoadMoreBtn,
66
+ {
67
+ buttonType: "text",
68
+ onClick: handleOnClick,
69
+ size: import_ds_button.BUTTON_SIZES.S,
70
+ innerRef: innerRefHandlerLoadMoreBtn,
71
+ children: "Load More..."
72
+ }
73
+ );
71
74
  };
72
75
  //# sourceMappingURL=LoadMoreBtn.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/parts/Panel/bottom/LoadMoreBtn.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { DSButtonV2, BUTTON_SIZES, type DSButtonT } from '@elliemae/ds-button';\nimport { usePropsStore } from '../../../config/useStore';\nimport { type DSShuttleV2T } from '../../../react-desc-prop-types';\nimport { useInnerRefHandlers } from './useInnerRefHandlers';\nimport { useFocusTracker } from '../../../config/useFocusTracker';\n\nconst StyledLoadMoreBtn = styled(DSButtonV2, { name: 'ds-shuttle-v2', slot: 'list-bottom-load-more-btn' })`\n width: 100%;\n height: 100%;\n`;\n\nexport const LoadMoreBtn = (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => {\n const { isDestinationPanel = false } = panelMetaInfo;\n const { trackFocusItemLast, trackFocusActionParent, trackFocusRegionPanelItem } = useFocusTracker();\n const onLoadMore = usePropsStore((state) =>\n isDestinationPanel ? state.onDestinationLoadMore : state.onSourceLoadMore,\n );\n const handleOnClick = React.useCallback(\n (e: Parameters<Required<DSButtonT.Props>['onClick']>[0]) => {\n onLoadMore(e);\n trackFocusItemLast();\n trackFocusRegionPanelItem(panelMetaInfo.isDestinationPanel);\n trackFocusActionParent();\n },\n [\n onLoadMore,\n panelMetaInfo.isDestinationPanel,\n trackFocusActionParent,\n trackFocusItemLast,\n trackFocusRegionPanelItem,\n ],\n );\n const { innerRefHandlerLoadMoreBtn } = useInnerRefHandlers(panelMetaInfo);\n return (\n <StyledLoadMoreBtn\n buttonType=\"text\"\n onClick={handleOnClick}\n size={BUTTON_SIZES.S}\n innerRef={innerRefHandlerLoadMoreBtn}\n >\n Load More...\n </StyledLoadMoreBtn>\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADoCnB;AApCJ,mBAAkB;AAClB,uBAAuB;AACvB,uBAAyD;AACzD,sBAA8B;AAE9B,iCAAoC;AACpC,6BAAgC;AAEhC,MAAM,wBAAoB,yBAAO,6BAAY,EAAE,MAAM,iBAAiB,MAAM,4BAA4B,CAAC;AAAA;AAAA;AAAA;AAKlG,MAAM,cAAc,CAAC,kBAA8C;AACxE,QAAM,EAAE,qBAAqB,MAAM,IAAI;AACvC,QAAM,EAAE,oBAAoB,wBAAwB,0BAA0B,QAAI,wCAAgB;AAClG,QAAM,iBAAa;AAAA,IAAc,CAAC,UAChC,qBAAqB,MAAM,wBAAwB,MAAM;AAAA,EAC3D;AACA,QAAM,gBAAgB,aAAAA,QAAM;AAAA,IAC1B,CAAC,MAA2D;AAC1D,iBAAW,CAAC;AACZ,yBAAmB;AACnB,gCAA0B,cAAc,kBAAkB;AAC1D,6BAAuB;AAAA,IACzB;AAAA,IACA;AAAA,MACE;AAAA,MACA,cAAc;AAAA,MACd;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACA,QAAM,EAAE,2BAA2B,QAAI,gDAAoB,aAAa;AACxE,SACE,4CAAC;AAAA,IACC,YAAW;AAAA,IACX,SAAS;AAAA,IACT,MAAM,8BAAa;AAAA,IACnB,UAAU;AAAA,IACX;AAAA,GAED;AAEJ;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADoCnB;AApCJ,mBAAkB;AAClB,uBAAuB;AACvB,uBAAyD;AACzD,sBAA8B;AAE9B,iCAAoC;AACpC,6BAAgC;AAEhC,MAAM,wBAAoB,yBAAO,6BAAY,EAAE,MAAM,iBAAiB,MAAM,4BAA4B,CAAC;AAAA;AAAA;AAAA;AAKlG,MAAM,cAAc,CAAC,kBAA8C;AACxE,QAAM,EAAE,qBAAqB,MAAM,IAAI;AACvC,QAAM,EAAE,oBAAoB,wBAAwB,0BAA0B,QAAI,wCAAgB;AAClG,QAAM,iBAAa;AAAA,IAAc,CAAC,UAChC,qBAAqB,MAAM,wBAAwB,MAAM;AAAA,EAC3D;AACA,QAAM,gBAAgB,aAAAA,QAAM;AAAA,IAC1B,CAAC,MAA2D;AAC1D,iBAAW,CAAC;AACZ,yBAAmB;AACnB,gCAA0B,cAAc,kBAAkB;AAC1D,6BAAuB;AAAA,IACzB;AAAA,IACA;AAAA,MACE;AAAA,MACA,cAAc;AAAA,MACd;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACA,QAAM,EAAE,2BAA2B,QAAI,gDAAoB,aAAa;AACxE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,YAAW;AAAA,MACX,SAAS;AAAA,MACT,MAAM,8BAAa;AAAA,MACnB,UAAU;AAAA,MACX;AAAA;AAAA,EAED;AAEJ;",
6
6
  "names": ["React"]
7
7
  }
@@ -33,11 +33,5 @@ var import_ds_system = require("@elliemae/ds-system");
33
33
  var import_ds_grid = require("@elliemae/ds-grid");
34
34
  var import_ds_indeterminate_progress_indicator = require("@elliemae/ds-indeterminate-progress-indicator");
35
35
  const StyledBottomLoadingMore = (0, import_ds_system.styled)(import_ds_grid.Grid, { name: "ds-shuttle-v2", slot: "list-bottom-loading-more" })``;
36
- const LoadingMore = (panelMetaInfo) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledBottomLoadingMore, {
37
- px: "24px",
38
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_indeterminate_progress_indicator.DSIndeterminateProgressIndicator, {
39
- processing: true,
40
- title: "Loading"
41
- })
42
- });
36
+ const LoadingMore = (panelMetaInfo) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledBottomLoadingMore, { px: "24px", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_indeterminate_progress_indicator.DSIndeterminateProgressIndicator, { processing: true, title: "Loading" }) });
43
37
  //# sourceMappingURL=LoadingMore.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/parts/Panel/bottom/LoadingMore.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable no-unused-vars */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSIndeterminateProgressIndicator } from '@elliemae/ds-indeterminate-progress-indicator';\nimport { type DSShuttleV2T } from '../../../react-desc-prop-types';\n\nconst StyledBottomLoadingMore = styled(Grid, { name: 'ds-shuttle-v2', slot: 'list-bottom-loading-more' })``;\nexport const LoadingMore = (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => (\n <StyledBottomLoadingMore px=\"24px\">\n <DSIndeterminateProgressIndicator processing title=\"Loading\" />\n </StyledBottomLoadingMore>\n);\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADUnB;AARJ,uBAAuB;AACvB,qBAAqB;AACrB,iDAAiD;AAGjD,MAAM,8BAA0B,yBAAO,qBAAM,EAAE,MAAM,iBAAiB,MAAM,2BAA2B,CAAC;AACjG,MAAM,cAAc,CAAC,kBAC1B,4CAAC;AAAA,EAAwB,IAAG;AAAA,EAC1B,sDAAC;AAAA,IAAiC,YAAU;AAAA,IAAC,OAAM;AAAA,GAAU;AAAA,CAC/D;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADUnB;AARJ,uBAAuB;AACvB,qBAAqB;AACrB,iDAAiD;AAGjD,MAAM,8BAA0B,yBAAO,qBAAM,EAAE,MAAM,iBAAiB,MAAM,2BAA2B,CAAC;AACjG,MAAM,cAAc,CAAC,kBAC1B,4CAAC,2BAAwB,IAAG,QAC1B,sDAAC,+EAAiC,YAAU,MAAC,OAAM,WAAU,GAC/D;",
6
6
  "names": []
7
7
  }
@@ -62,19 +62,18 @@ const PanelContentBottomSection = import_react.default.memo((panelMetaInfo) => {
62
62
  const { onLoadMoreButtonKeyDown } = (0, import_useLoadMoreBtnArrowNavigation.useLoadMoreBtnArrowNavigation)(panelMetaInfo);
63
63
  if (shouldNotTakeSpace)
64
64
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {});
65
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledListWrapperBottom, {
66
- cols: wrapperColsRows,
67
- rows: wrapperColsRows,
68
- onFocus: onBottomSectionFocus,
69
- onKeyDown: onLoadMoreButtonKeyDown,
70
- children: [
71
- shouldDisplayLoadingMore ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_LoadingMore.LoadingMore, {
72
- ...panelMetaInfo
73
- }) : null,
74
- shouldDisplayLoadMoreBtn ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_LoadMoreBtn.LoadMoreBtn, {
75
- ...panelMetaInfo
76
- }) : null
77
- ]
78
- });
65
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
66
+ StyledListWrapperBottom,
67
+ {
68
+ cols: wrapperColsRows,
69
+ rows: wrapperColsRows,
70
+ onFocus: onBottomSectionFocus,
71
+ onKeyDown: onLoadMoreButtonKeyDown,
72
+ children: [
73
+ shouldDisplayLoadingMore ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_LoadingMore.LoadingMore, { ...panelMetaInfo }) : null,
74
+ shouldDisplayLoadMoreBtn ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_LoadMoreBtn.LoadMoreBtn, { ...panelMetaInfo }) : null
75
+ ]
76
+ }
77
+ );
79
78
  });
80
79
  //# sourceMappingURL=PanelContentBottomSection.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/parts/Panel/bottom/PanelContentBottomSection.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable no-unused-vars */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { useFocusTracker } from '../../../config/useFocusTracker';\nimport { usePropsStore } from '../../../config/useStore';\nimport { type DSShuttleV2T } from '../../../react-desc-prop-types';\nimport { LoadMoreBtn } from './LoadMoreBtn';\nimport { LoadingMore } from './LoadingMore';\nimport { useLoadMoreBtnArrowNavigation } from './useLoadMoreBtnArrowNavigation';\n\nconst StyledListWrapperBottom = styled(Grid, { name: 'ds-shuttle-v2', slot: 'list-wrapper-bottom' })`\n min-height: 36px;\n border-top: 1px solid neutral-400;\n`;\nconst wrapperColsRows = ['1fr'];\n\nexport const PanelContentBottomSection = React.memo((panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => {\n const { isDestinationPanel = false } = panelMetaInfo;\n const withLoadMore = usePropsStore((state) =>\n isDestinationPanel ? state.destinationWithLoadMore : state.sourceWithLoadMore,\n );\n const isLoadingMore = usePropsStore((state) =>\n isDestinationPanel ? state.destinationIsLoadingMore : state.sourceIsLoadingMore,\n );\n const { trackFocusRegionBottom, trackFocusLoadMoreBtn, trackFocusActionReset } = useFocusTracker();\n const onBottomSectionFocus = React.useCallback(() => {\n trackFocusRegionBottom(isDestinationPanel);\n trackFocusLoadMoreBtn();\n trackFocusActionReset();\n }, [isDestinationPanel, trackFocusActionReset, trackFocusLoadMoreBtn, trackFocusRegionBottom]);\n\n // this 3 booleans MUST be auto-exclusives with each other\n const shouldDisplayLoadingMore = isLoadingMore;\n const shouldDisplayLoadMoreBtn = withLoadMore && !isLoadingMore;\n const shouldNotTakeSpace = !withLoadMore && !isLoadingMore;\n const { onLoadMoreButtonKeyDown } = useLoadMoreBtnArrowNavigation(panelMetaInfo);\n\n if (shouldNotTakeSpace) return <div />;\n return (\n <StyledListWrapperBottom\n cols={wrapperColsRows}\n rows={wrapperColsRows}\n onFocus={onBottomSectionFocus}\n onKeyDown={onLoadMoreButtonKeyDown}\n >\n {shouldDisplayLoadingMore ? <LoadingMore {...panelMetaInfo} /> : null}\n {shouldDisplayLoadMoreBtn ? <LoadMoreBtn {...panelMetaInfo} /> : null}\n </StyledListWrapperBottom>\n );\n});\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADuCU;AArCjC,mBAAkB;AAClB,uBAAuB;AACvB,qBAAqB;AACrB,6BAAgC;AAChC,sBAA8B;AAE9B,yBAA4B;AAC5B,yBAA4B;AAC5B,2CAA8C;AAE9C,MAAM,8BAA0B,yBAAO,qBAAM,EAAE,MAAM,iBAAiB,MAAM,sBAAsB,CAAC;AAAA;AAAA;AAAA;AAInG,MAAM,kBAAkB,CAAC,KAAK;AAEvB,MAAM,4BAA4B,aAAAA,QAAM,KAAK,CAAC,kBAA8C;AACjG,QAAM,EAAE,qBAAqB,MAAM,IAAI;AACvC,QAAM,mBAAe;AAAA,IAAc,CAAC,UAClC,qBAAqB,MAAM,0BAA0B,MAAM;AAAA,EAC7D;AACA,QAAM,oBAAgB;AAAA,IAAc,CAAC,UACnC,qBAAqB,MAAM,2BAA2B,MAAM;AAAA,EAC9D;AACA,QAAM,EAAE,wBAAwB,uBAAuB,sBAAsB,QAAI,wCAAgB;AACjG,QAAM,uBAAuB,aAAAA,QAAM,YAAY,M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BAAuB,aAAAA,QAAM,YAAY,MAAM;AACnD,2BAAuB,kBAAkB;AACzC,0BAAsB;AACtB,0BAAsB;AAAA,EACxB,GAAG,CAAC,oBAAoB,uBAAuB,uBAAuB,sBAAsB,CAAC;AAG7F,QAAM,2BAA2B;AACjC,QAAM,2BAA2B,gBAAgB,CAAC;AAClD,QAAM,qBAAqB,CAAC,gBAAgB,CAAC;AAC7C,QAAM,EAAE,wBAAwB,QAAI,oEAA8B,aAAa;AAE/E,MAAI;AAAoB,WAAO,4CAAC,SAAI;AACpC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAM;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,MACT,WAAW;AAAA,MAEV;AAAA,mCAA2B,4CAAC,kCAAa,GAAG,eAAe,IAAK;AAAA,QAChE,2BAA2B,4CAAC,kCAAa,GAAG,eAAe,IAAK;AAAA;AAAA;AAAA,EACnE;AAEJ,CAAC;",
6
6
  "names": ["React"]
7
7
  }
@@ -34,9 +34,5 @@ var import_ds_grid = require("@elliemae/ds-grid");
34
34
  const StyledEmptyListWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid, { name: "ds-shuttle-v2", slot: "empty-list-wrapper" })`
35
35
  color: neutral-500;
36
36
  `;
37
- const EmptyItems = (panelMetaInfo) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledEmptyListWrapper, {
38
- alignItems: "center",
39
- justifyContent: "center",
40
- children: "There are no items to display"
41
- });
37
+ const EmptyItems = (panelMetaInfo) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledEmptyListWrapper, { alignItems: "center", justifyContent: "center", children: "There are no items to display" });
42
38
  //# sourceMappingURL=EmptyItems.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/parts/Panel/middle/EmptyItems.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable no-unused-vars */\nimport React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { type DSShuttleV2T } from '../../../react-desc-prop-types';\n\nconst StyledEmptyListWrapper = styled(Grid, { name: 'ds-shuttle-v2', slot: 'empty-list-wrapper' })`\n color: neutral-500;\n`;\nexport const EmptyItems = (panelMetaInfo: DSShuttleV2T.PanelMetaInfo) => (\n <StyledEmptyListWrapper alignItems=\"center\" justifyContent=\"center\">\n There are no items to display\n </StyledEmptyListWrapper>\n);\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADWrB;AARF,uBAAuB;AACvB,qBAAqB;AAGrB,MAAM,6BAAyB,yBAAO,qBAAM,EAAE,MAAM,iBAAiB,MAAM,qBAAqB,CAAC;AAAA;AAAA;AAG1F,MAAM,aAAa,CAAC,kBACzB,4CAAC;AAAA,EAAuB,YAAW;AAAA,EAAS,gBAAe;AAAA,EAAS;AAAA,CAEpE;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADWrB;AARF,uBAAuB;AACvB,qBAAqB;AAGrB,MAAM,6BAAyB,yBAAO,qBAAM,EAAE,MAAM,iBAAiB,MAAM,qBAAqB,CAAC;AAAA;AAAA;AAG1F,MAAM,aAAa,CAAC,kBACzB,4CAAC,0BAAuB,YAAW,UAAS,gBAAe,UAAS,2CAEpE;",
6
6
  "names": []
7
7
  }
@@ -132,22 +132,20 @@ const ItemListWrapper = import_react.default.memo((panelMetaInfo) => {
132
132
  ]
133
133
  );
134
134
  const { innerRefHandlerParentItem } = useInnerRefHandlers(panelMetaInfo);
135
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledItemsWrapper, {
136
- alignItems: "flex-start",
137
- rows,
138
- tabIndex: 0,
139
- ref: innerRefHandlerParentItem,
140
- onFocus: onPanelFocus,
141
- onKeyDown: onPanelKeyDown,
142
- children: [
143
- itemList.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Item.Item, {
144
- item,
145
- isDestinationPanel
146
- }, item.original.id)),
147
- hasMultipleSelection ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_MultipleSelectionAction.MultipleSelectionAction, {
148
- isDestinationPanel
149
- }) : null
150
- ]
151
- });
135
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
136
+ StyledItemsWrapper,
137
+ {
138
+ alignItems: "flex-start",
139
+ rows,
140
+ tabIndex: 0,
141
+ ref: innerRefHandlerParentItem,
142
+ onFocus: onPanelFocus,
143
+ onKeyDown: onPanelKeyDown,
144
+ children: [
145
+ itemList.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Item.Item, { item, isDestinationPanel }, item.original.id)),
146
+ hasMultipleSelection ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_MultipleSelectionAction.MultipleSelectionAction, { isDestinationPanel }) : null
147
+ ]
148
+ }
149
+ );
152
150
  });
153
151
  //# sourceMappingURL=ItemListWrapper.js.map