@elliemae/ds-data-table-drag-and-drop-cell 3.80.0-next.71 → 3.80.0-next.75
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/DSDataTableDragAndDropCell.js +20 -8
- package/dist/cjs/DSDataTableDragAndDropCell.js.map +3 -3
- package/dist/cjs/react-desc-prop-types.js +7 -1
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/esm/DSDataTableDragAndDropCell.js +22 -10
- package/dist/esm/DSDataTableDragAndDropCell.js.map +3 -3
- package/dist/esm/react-desc-prop-types.js +7 -1
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/types/react-desc-prop-types.d.ts +1 -0
- package/package.json +8 -8
|
@@ -34,6 +34,7 @@ __export(DSDataTableDragAndDropCell_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(DSDataTableDragAndDropCell_exports);
|
|
35
35
|
var React = __toESM(require("react"));
|
|
36
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
+
var import_react = __toESM(require("react"));
|
|
37
38
|
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
38
39
|
var import_ds_system = require("@elliemae/ds-system");
|
|
39
40
|
var import_ds_icons = require("@elliemae/ds-icons");
|
|
@@ -70,12 +71,7 @@ const StyledGripper = (0, import_ds_system.styled)("div", {
|
|
|
70
71
|
name: import_constants.DSDataTableDragAndDropCellName,
|
|
71
72
|
slot: import_constants.DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS.GRIPPER
|
|
72
73
|
})`
|
|
73
|
-
|
|
74
|
-
cursor: ${({ isActive, isDisabled }) => {
|
|
75
|
-
if (isDisabled) return "not-allowed";
|
|
76
|
-
if (isActive) return "grabbing";
|
|
77
|
-
return "grab";
|
|
78
|
-
}};
|
|
74
|
+
cursor: ${({ isActive }) => isActive ? "grabbing" : "grab"};
|
|
79
75
|
outline: none;
|
|
80
76
|
display: flex;
|
|
81
77
|
align-items: center;
|
|
@@ -84,10 +80,23 @@ const StyledGripper = (0, import_ds_system.styled)("div", {
|
|
|
84
80
|
svg {
|
|
85
81
|
fill: ${({ isActive, theme }) => isActive && theme.colors.neutral["500"]};
|
|
86
82
|
}
|
|
83
|
+
${import_ds_system.lockedStateInteractionCss}
|
|
87
84
|
`;
|
|
85
|
+
const GRIPPER_SLOT_PROP = `ds${import_constants.DSDataTableDragAndDropCellName.slice(2)}Gripper`;
|
|
86
|
+
const lockGripperSlotProps = (slotProps) => typeof slotProps === "function" ? (args) => (0, import_ds_props_helpers.omitLockedHandlers)(slotProps(args), true) : (0, import_ds_props_helpers.omitLockedHandlers)(slotProps, true);
|
|
88
87
|
const DSDataTableDragAndDropCell = (props) => {
|
|
89
88
|
const { propsWithDefault, xstyledProps } = (0, import_useDataTableDragAndDropCell.useDataTableDragAndDropCell)(props);
|
|
90
|
-
const
|
|
89
|
+
const { disabled } = propsWithDefault;
|
|
90
|
+
const ownerProps = import_react.default.useMemo(() => {
|
|
91
|
+
const gripperSlotProps = propsWithDefault[GRIPPER_SLOT_PROP];
|
|
92
|
+
if (!disabled || !gripperSlotProps) return propsWithDefault;
|
|
93
|
+
return { ...propsWithDefault, [GRIPPER_SLOT_PROP]: lockGripperSlotProps(gripperSlotProps) };
|
|
94
|
+
}, [disabled, propsWithDefault]);
|
|
95
|
+
const ownerPropsConfig = (0, import_ds_props_helpers.useOwnerProps)(ownerProps);
|
|
96
|
+
const locked = (0, import_ds_props_helpers.isLocked)({
|
|
97
|
+
disabled: propsWithDefault.disabled,
|
|
98
|
+
applyAriaDisabled: propsWithDefault.applyAriaDisabled
|
|
99
|
+
});
|
|
91
100
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
92
101
|
StyledWrapper,
|
|
93
102
|
{
|
|
@@ -99,8 +108,11 @@ const DSDataTableDragAndDropCell = (props) => {
|
|
|
99
108
|
StyledGripper,
|
|
100
109
|
{
|
|
101
110
|
role: "button",
|
|
111
|
+
tabIndex: propsWithDefault.disabled ? -1 : 0,
|
|
102
112
|
"aria-label": "Drag handle",
|
|
103
|
-
|
|
113
|
+
"aria-disabled": locked ? true : void 0,
|
|
114
|
+
$disabled: propsWithDefault.disabled,
|
|
115
|
+
$applyAriaDisabled: propsWithDefault.applyAriaDisabled,
|
|
104
116
|
isActive: propsWithDefault.active,
|
|
105
117
|
...ownerPropsConfig,
|
|
106
118
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.GripperVertical, { size: "s" })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSDataTableDragAndDropCell.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { describe, useOwnerProps } from '@elliemae/ds-props-helpers';\nimport { styled } from '@elliemae/ds-system';\nimport { GripperVertical } from '@elliemae/ds-icons';\nimport { DSDataTableCell } from '@elliemae/ds-data-table-cell';\nimport {\n type DSDataTableDragAndDropCellT,\n DSDataTableDragAndDropCellPropTypesSchema,\n} from './react-desc-prop-types.js';\nimport { useDataTableDragAndDropCell } from './config/useDataTableDragAndDropCell.js';\nimport { DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS, DSDataTableDragAndDropCellName } from './constants/index.js';\n\nconst StyledWrapper = styled(DSDataTableCell, {\n name: DSDataTableDragAndDropCellName,\n slot: DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS.ROOT,\n})<{ shouldShowFocus: boolean }>`\n padding: 0;\n justify-content: center;\n ${({ shouldShowFocus, theme }) =>\n shouldShowFocus\n ? `:focus-within {\n &:after {\n display: block;\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border: 2px solid ${theme.colors.brand[700]};\n pointer-events: none;\n z-index: 7;\n }\n }`\n : undefined}\n\n svg {\n fill: brand-800;\n }\n`;\n\nconst StyledGripper = styled('div', {\n name: DSDataTableDragAndDropCellName,\n slot: DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS.GRIPPER,\n})<{
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;
|
|
6
|
-
"names": []
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe, useOwnerProps, isLocked, omitLockedHandlers } from '@elliemae/ds-props-helpers';\nimport { styled, lockedStateInteractionCss } from '@elliemae/ds-system';\nimport { GripperVertical } from '@elliemae/ds-icons';\nimport { DSDataTableCell } from '@elliemae/ds-data-table-cell';\nimport {\n type DSDataTableDragAndDropCellT,\n DSDataTableDragAndDropCellPropTypesSchema,\n} from './react-desc-prop-types.js';\nimport { useDataTableDragAndDropCell } from './config/useDataTableDragAndDropCell.js';\nimport { DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS, DSDataTableDragAndDropCellName } from './constants/index.js';\n\nconst StyledWrapper = styled(DSDataTableCell, {\n name: DSDataTableDragAndDropCellName,\n slot: DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS.ROOT,\n})<{ shouldShowFocus: boolean }>`\n padding: 0;\n justify-content: center;\n ${({ shouldShowFocus, theme }) =>\n shouldShowFocus\n ? `:focus-within {\n &:after {\n display: block;\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border: 2px solid ${theme.colors.brand[700]};\n pointer-events: none;\n z-index: 7;\n }\n }`\n : undefined}\n\n svg {\n fill: brand-800;\n }\n`;\n\nconst StyledGripper = styled('div', {\n name: DSDataTableDragAndDropCellName,\n slot: DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS.GRIPPER,\n})<{ $disabled: boolean; $applyAriaDisabled: boolean; isActive: boolean }>`\n cursor: ${({ isActive }) => (isActive ? 'grabbing' : 'grab')};\n outline: none;\n display: flex;\n align-items: center;\n touch-action: none;\n\n svg {\n fill: ${({ isActive, theme }) => isActive && theme.colors.neutral['500']};\n }\n ${lockedStateInteractionCss}\n`;\n\n// the key under which a consumer passes props to the gripper slot (see `getPartProps` of ds-system)\nconst GRIPPER_SLOT_PROP = `ds${DSDataTableDragAndDropCellName.slice(2)}Gripper`;\n\ntype GripperSlotPropsFn = (args: object) => object;\ntype GripperSlotProps = object | GripperSlotPropsFn;\n\n// `disabled` is a hard lock: the action handlers a consumer wires to the gripper (drag start, pointer, Enter / Space)\n// are withheld. The slot value can be an object or a function of the owner arguments, both are covered.\nconst lockGripperSlotProps = (slotProps: GripperSlotProps): GripperSlotProps =>\n typeof slotProps === 'function'\n ? (args: object) => omitLockedHandlers((slotProps as GripperSlotPropsFn)(args), true)\n : omitLockedHandlers(slotProps, true);\n\nconst DSDataTableDragAndDropCell: React.ComponentType<DSDataTableDragAndDropCellT.Props> = (props) => {\n const { propsWithDefault, xstyledProps } = useDataTableDragAndDropCell(props);\n const { disabled } = propsWithDefault;\n const ownerProps = React.useMemo(() => {\n const gripperSlotProps = (propsWithDefault as unknown as Record<string, unknown>)[GRIPPER_SLOT_PROP] as\n GripperSlotProps | undefined;\n if (!disabled || !gripperSlotProps) return propsWithDefault;\n return { ...propsWithDefault, [GRIPPER_SLOT_PROP]: lockGripperSlotProps(gripperSlotProps) };\n }, [disabled, propsWithDefault]);\n const ownerPropsConfig = useOwnerProps(ownerProps);\n // a div has no native disabled, so disabled and applyAriaDisabled are both announced through aria-disabled\n const locked = isLocked({\n disabled: propsWithDefault.disabled,\n applyAriaDisabled: propsWithDefault.applyAriaDisabled,\n });\n return (\n <StyledWrapper\n className={propsWithDefault.className}\n {...ownerPropsConfig}\n {...xstyledProps}\n shouldShowFocus={propsWithDefault.shouldShowFocus}\n >\n <StyledGripper\n role=\"button\"\n // a focusable element by default (the focus ring of the cell needs it); out of the tab order when disabled.\n // A host that moves the focus itself (a roving tab stop) overrides it through the gripper slot props.\n tabIndex={propsWithDefault.disabled ? -1 : 0}\n aria-label=\"Drag handle\"\n aria-disabled={locked ? true : undefined}\n $disabled={propsWithDefault.disabled}\n $applyAriaDisabled={propsWithDefault.applyAriaDisabled}\n isActive={propsWithDefault.active}\n {...ownerPropsConfig}\n >\n <GripperVertical size=\"s\" />\n </StyledGripper>\n </StyledWrapper>\n );\n};\n\nDSDataTableDragAndDropCell.displayName = DSDataTableDragAndDropCellName;\nconst DSDataTableDragAndDropCellWithSchema = describe(DSDataTableDragAndDropCell);\nDSDataTableDragAndDropCellWithSchema.propTypes = DSDataTableDragAndDropCellPropTypesSchema;\n\nexport { DSDataTableDragAndDropCell, DSDataTableDragAndDropCellWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADwGf;AAxGR,mBAAkB;AAClB,8BAAsE;AACtE,uBAAkD;AAClD,sBAAgC;AAChC,gCAAgC;AAChC,mCAGO;AACP,yCAA4C;AAC5C,uBAAoF;AAEpF,MAAM,oBAAgB,yBAAO,2CAAiB;AAAA,EAC5C,MAAM;AAAA,EACN,MAAM,qDAAoC;AAC5C,CAAC;AAAA;AAAA;AAAA,IAGG,CAAC,EAAE,iBAAiB,MAAM,MAC1B,kBACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BASkB,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA;AAAA;AAAA;AAAA,OAKzC,MAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAOjB,MAAM,oBAAgB,yBAAO,OAAO;AAAA,EAClC,MAAM;AAAA,EACN,MAAM,qDAAoC;AAC5C,CAAC;AAAA,YACW,CAAC,EAAE,SAAS,MAAO,WAAW,aAAa,MAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAOlD,CAAC,EAAE,UAAU,MAAM,MAAM,YAAY,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA;AAAA,IAExE,0CAAyB;AAAA;AAI7B,MAAM,oBAAoB,KAAK,gDAA+B,MAAM,CAAC,CAAC;AAOtE,MAAM,uBAAuB,CAAC,cAC5B,OAAO,cAAc,aACjB,CAAC,aAAiB,4CAAoB,UAAiC,IAAI,GAAG,IAAI,QAClF,4CAAmB,WAAW,IAAI;AAExC,MAAM,6BAAqF,CAAC,UAAU;AACpG,QAAM,EAAE,kBAAkB,aAAa,QAAI,gEAA4B,KAAK;AAC5E,QAAM,EAAE,SAAS,IAAI;AACrB,QAAM,aAAa,aAAAA,QAAM,QAAQ,MAAM;AACrC,UAAM,mBAAoB,iBAAwD,iBAAiB;AAEnG,QAAI,CAAC,YAAY,CAAC,iBAAkB,QAAO;AAC3C,WAAO,EAAE,GAAG,kBAAkB,CAAC,iBAAiB,GAAG,qBAAqB,gBAAgB,EAAE;AAAA,EAC5F,GAAG,CAAC,UAAU,gBAAgB,CAAC;AAC/B,QAAM,uBAAmB,uCAAc,UAAU;AAEjD,QAAM,aAAS,kCAAS;AAAA,IACtB,UAAU,iBAAiB;AAAA,IAC3B,mBAAmB,iBAAiB;AAAA,EACtC,CAAC;AACD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,iBAAiB;AAAA,MAC3B,GAAG;AAAA,MACH,GAAG;AAAA,MACJ,iBAAiB,iBAAiB;AAAA,MAElC;AAAA,QAAC;AAAA;AAAA,UACC,MAAK;AAAA,UAGL,UAAU,iBAAiB,WAAW,KAAK;AAAA,UAC3C,cAAW;AAAA,UACX,iBAAe,SAAS,OAAO;AAAA,UAC/B,WAAW,iBAAiB;AAAA,UAC5B,oBAAoB,iBAAiB;AAAA,UACrC,UAAU,iBAAiB;AAAA,UAC1B,GAAG;AAAA,UAEJ,sDAAC,mCAAgB,MAAK,KAAI;AAAA;AAAA,MAC5B;AAAA;AAAA,EACF;AAEJ;AAEA,2BAA2B,cAAc;AACzC,MAAM,2CAAuC,kCAAS,0BAA0B;AAChF,qCAAqC,YAAY;",
|
|
6
|
+
"names": ["React"]
|
|
7
7
|
}
|
|
@@ -38,6 +38,7 @@ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
|
38
38
|
var import_constants = require("./constants/index.js");
|
|
39
39
|
const defaultProps = {
|
|
40
40
|
disabled: false,
|
|
41
|
+
applyAriaDisabled: false,
|
|
41
42
|
active: false,
|
|
42
43
|
shouldShowFocus: true
|
|
43
44
|
};
|
|
@@ -45,7 +46,12 @@ const DSDataTableDragAndDropCellPropTypes = {
|
|
|
45
46
|
...import_ds_props_helpers.xstyledPropTypes,
|
|
46
47
|
...(0, import_ds_props_helpers.getPropsPerSlotPropTypes)(import_constants.DSDataTableDragAndDropCellName, import_constants.DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS),
|
|
47
48
|
className: import_ds_props_helpers.PropTypes.string.description("className for the wrapper"),
|
|
48
|
-
disabled: import_ds_props_helpers.PropTypes.bool.description(
|
|
49
|
+
disabled: import_ds_props_helpers.PropTypes.bool.description(
|
|
50
|
+
'Whether its disabled or not. Announces the gripper as disabled in SR (aria-disabled="true") and withholds the action handlers (pointer, mouse, touch, drag start, Enter and Space) that the consumer passes through the gripper slot props'
|
|
51
|
+
),
|
|
52
|
+
applyAriaDisabled: import_ds_props_helpers.PropTypes.bool.description(
|
|
53
|
+
`Whether to apply disabled styling (not-allowed cursor) and announce the gripper as disabled in SR (aria-disabled="true"). The package attaches no drag, pointer or keyboard handler to the gripper, so it does NOT stop a drag that the consumer wires to it: that wiring stays the consumer's`
|
|
54
|
+
),
|
|
49
55
|
active: import_ds_props_helpers.PropTypes.bool.description("Whether its active or not"),
|
|
50
56
|
shouldShowFocus: import_ds_props_helpers.PropTypes.bool.description("Whether its should the focus or not")
|
|
51
57
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, xstyledPropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { DSDataTableDragAndDropCellName, DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS } from './constants/index.js';\n\nexport declare namespace DSDataTableDragAndDropCellT {\n export interface RequiredProps {}\n\n export interface DefaultProps {\n disabled: boolean;\n active: boolean;\n shouldShowFocus: boolean;\n }\n\n export interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSDataTableDragAndDropCellName,\n typeof DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS\n > {\n className?: string;\n }\n\n export interface Props extends Partial<DefaultProps>, OptionalProps, XstyledProps, RequiredProps {}\n\n export interface InternalProps extends DefaultProps, OptionalProps, XstyledProps, RequiredProps {}\n}\n\nexport const defaultProps: DSDataTableDragAndDropCellT.DefaultProps = {\n disabled: false,\n active: false,\n shouldShowFocus: true,\n};\n\nexport const DSDataTableDragAndDropCellPropTypes: DSPropTypesSchema<DSDataTableDragAndDropCellT.Props> = {\n ...xstyledPropTypes,\n ...getPropsPerSlotPropTypes(DSDataTableDragAndDropCellName, DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS),\n className: PropTypes.string.description('className for the wrapper'),\n disabled: PropTypes.bool.description('Whether its disabled or not'),\n active: PropTypes.bool.description('Whether its active or not'),\n shouldShowFocus: PropTypes.bool.description('Whether its should the focus or not'),\n};\n\nexport const DSDataTableDragAndDropCellPropTypesSchema =\n DSDataTableDragAndDropCellPropTypes as unknown as WeakValidationMap<DSDataTableDragAndDropCellT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,8BAAsE;AAGtE,uBAAoF;
|
|
4
|
+
"sourcesContent": ["import type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, xstyledPropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { DSDataTableDragAndDropCellName, DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS } from './constants/index.js';\n\nexport declare namespace DSDataTableDragAndDropCellT {\n export interface RequiredProps {}\n\n export interface DefaultProps {\n disabled: boolean;\n applyAriaDisabled: boolean;\n active: boolean;\n shouldShowFocus: boolean;\n }\n\n export interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSDataTableDragAndDropCellName,\n typeof DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS\n > {\n className?: string;\n }\n\n export interface Props extends Partial<DefaultProps>, OptionalProps, XstyledProps, RequiredProps {}\n\n export interface InternalProps extends DefaultProps, OptionalProps, XstyledProps, RequiredProps {}\n}\n\nexport const defaultProps: DSDataTableDragAndDropCellT.DefaultProps = {\n disabled: false,\n applyAriaDisabled: false,\n active: false,\n shouldShowFocus: true,\n};\n\nexport const DSDataTableDragAndDropCellPropTypes: DSPropTypesSchema<DSDataTableDragAndDropCellT.Props> = {\n ...xstyledPropTypes,\n ...getPropsPerSlotPropTypes(DSDataTableDragAndDropCellName, DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS),\n className: PropTypes.string.description('className for the wrapper'),\n disabled: PropTypes.bool.description(\n 'Whether its disabled or not. Announces the gripper as disabled in SR (aria-disabled=\"true\") and withholds the action handlers (pointer, mouse, touch, drag start, Enter and Space) that the consumer passes through the gripper slot props',\n ),\n applyAriaDisabled: PropTypes.bool.description(\n 'Whether to apply disabled styling (not-allowed cursor) and announce the gripper as disabled in SR (aria-disabled=\"true\"). The package attaches no drag, pointer or keyboard handler to the gripper, so it does NOT stop a drag that the consumer wires to it: that wiring stays the consumer\\'s',\n ),\n active: PropTypes.bool.description('Whether its active or not'),\n shouldShowFocus: PropTypes.bool.description('Whether its should the focus or not'),\n};\n\nexport const DSDataTableDragAndDropCellPropTypesSchema =\n DSDataTableDragAndDropCellPropTypes as unknown as WeakValidationMap<DSDataTableDragAndDropCellT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,8BAAsE;AAGtE,uBAAoF;AAwB7E,MAAM,eAAyD;AAAA,EACpE,UAAU;AAAA,EACV,mBAAmB;AAAA,EACnB,QAAQ;AAAA,EACR,iBAAiB;AACnB;AAEO,MAAM,sCAA4F;AAAA,EACvG,GAAG;AAAA,EACH,OAAG,kDAAyB,iDAAgC,oDAAmC;AAAA,EAC/F,WAAW,kCAAU,OAAO,YAAY,2BAA2B;AAAA,EACnE,UAAU,kCAAU,KAAK;AAAA,IACvB;AAAA,EACF;AAAA,EACA,mBAAmB,kCAAU,KAAK;AAAA,IAChC;AAAA,EACF;AAAA,EACA,QAAQ,kCAAU,KAAK,YAAY,2BAA2B;AAAA,EAC9D,iBAAiB,kCAAU,KAAK,YAAY,qCAAqC;AACnF;AAEO,MAAM,4CACX;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import React2 from "react";
|
|
4
|
+
import { describe, useOwnerProps, isLocked, omitLockedHandlers } from "@elliemae/ds-props-helpers";
|
|
5
|
+
import { styled, lockedStateInteractionCss } from "@elliemae/ds-system";
|
|
5
6
|
import { GripperVertical } from "@elliemae/ds-icons";
|
|
6
7
|
import { DSDataTableCell } from "@elliemae/ds-data-table-cell";
|
|
7
8
|
import {
|
|
@@ -38,12 +39,7 @@ const StyledGripper = styled("div", {
|
|
|
38
39
|
name: DSDataTableDragAndDropCellName,
|
|
39
40
|
slot: DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS.GRIPPER
|
|
40
41
|
})`
|
|
41
|
-
|
|
42
|
-
cursor: ${({ isActive, isDisabled }) => {
|
|
43
|
-
if (isDisabled) return "not-allowed";
|
|
44
|
-
if (isActive) return "grabbing";
|
|
45
|
-
return "grab";
|
|
46
|
-
}};
|
|
42
|
+
cursor: ${({ isActive }) => isActive ? "grabbing" : "grab"};
|
|
47
43
|
outline: none;
|
|
48
44
|
display: flex;
|
|
49
45
|
align-items: center;
|
|
@@ -52,10 +48,23 @@ const StyledGripper = styled("div", {
|
|
|
52
48
|
svg {
|
|
53
49
|
fill: ${({ isActive, theme }) => isActive && theme.colors.neutral["500"]};
|
|
54
50
|
}
|
|
51
|
+
${lockedStateInteractionCss}
|
|
55
52
|
`;
|
|
53
|
+
const GRIPPER_SLOT_PROP = `ds${DSDataTableDragAndDropCellName.slice(2)}Gripper`;
|
|
54
|
+
const lockGripperSlotProps = (slotProps) => typeof slotProps === "function" ? (args) => omitLockedHandlers(slotProps(args), true) : omitLockedHandlers(slotProps, true);
|
|
56
55
|
const DSDataTableDragAndDropCell = (props) => {
|
|
57
56
|
const { propsWithDefault, xstyledProps } = useDataTableDragAndDropCell(props);
|
|
58
|
-
const
|
|
57
|
+
const { disabled } = propsWithDefault;
|
|
58
|
+
const ownerProps = React2.useMemo(() => {
|
|
59
|
+
const gripperSlotProps = propsWithDefault[GRIPPER_SLOT_PROP];
|
|
60
|
+
if (!disabled || !gripperSlotProps) return propsWithDefault;
|
|
61
|
+
return { ...propsWithDefault, [GRIPPER_SLOT_PROP]: lockGripperSlotProps(gripperSlotProps) };
|
|
62
|
+
}, [disabled, propsWithDefault]);
|
|
63
|
+
const ownerPropsConfig = useOwnerProps(ownerProps);
|
|
64
|
+
const locked = isLocked({
|
|
65
|
+
disabled: propsWithDefault.disabled,
|
|
66
|
+
applyAriaDisabled: propsWithDefault.applyAriaDisabled
|
|
67
|
+
});
|
|
59
68
|
return /* @__PURE__ */ jsx(
|
|
60
69
|
StyledWrapper,
|
|
61
70
|
{
|
|
@@ -67,8 +76,11 @@ const DSDataTableDragAndDropCell = (props) => {
|
|
|
67
76
|
StyledGripper,
|
|
68
77
|
{
|
|
69
78
|
role: "button",
|
|
79
|
+
tabIndex: propsWithDefault.disabled ? -1 : 0,
|
|
70
80
|
"aria-label": "Drag handle",
|
|
71
|
-
|
|
81
|
+
"aria-disabled": locked ? true : void 0,
|
|
82
|
+
$disabled: propsWithDefault.disabled,
|
|
83
|
+
$applyAriaDisabled: propsWithDefault.applyAriaDisabled,
|
|
72
84
|
isActive: propsWithDefault.active,
|
|
73
85
|
...ownerPropsConfig,
|
|
74
86
|
children: /* @__PURE__ */ jsx(GripperVertical, { size: "s" })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSDataTableDragAndDropCell.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe, useOwnerProps } from '@elliemae/ds-props-helpers';\nimport { styled } from '@elliemae/ds-system';\nimport { GripperVertical } from '@elliemae/ds-icons';\nimport { DSDataTableCell } from '@elliemae/ds-data-table-cell';\nimport {\n type DSDataTableDragAndDropCellT,\n DSDataTableDragAndDropCellPropTypesSchema,\n} from './react-desc-prop-types.js';\nimport { useDataTableDragAndDropCell } from './config/useDataTableDragAndDropCell.js';\nimport { DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS, DSDataTableDragAndDropCellName } from './constants/index.js';\n\nconst StyledWrapper = styled(DSDataTableCell, {\n name: DSDataTableDragAndDropCellName,\n slot: DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS.ROOT,\n})<{ shouldShowFocus: boolean }>`\n padding: 0;\n justify-content: center;\n ${({ shouldShowFocus, theme }) =>\n shouldShowFocus\n ? `:focus-within {\n &:after {\n display: block;\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border: 2px solid ${theme.colors.brand[700]};\n pointer-events: none;\n z-index: 7;\n }\n }`\n : undefined}\n\n svg {\n fill: brand-800;\n }\n`;\n\nconst StyledGripper = styled('div', {\n name: DSDataTableDragAndDropCellName,\n slot: DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS.GRIPPER,\n})<{
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
6
|
-
"names": []
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe, useOwnerProps, isLocked, omitLockedHandlers } from '@elliemae/ds-props-helpers';\nimport { styled, lockedStateInteractionCss } from '@elliemae/ds-system';\nimport { GripperVertical } from '@elliemae/ds-icons';\nimport { DSDataTableCell } from '@elliemae/ds-data-table-cell';\nimport {\n type DSDataTableDragAndDropCellT,\n DSDataTableDragAndDropCellPropTypesSchema,\n} from './react-desc-prop-types.js';\nimport { useDataTableDragAndDropCell } from './config/useDataTableDragAndDropCell.js';\nimport { DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS, DSDataTableDragAndDropCellName } from './constants/index.js';\n\nconst StyledWrapper = styled(DSDataTableCell, {\n name: DSDataTableDragAndDropCellName,\n slot: DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS.ROOT,\n})<{ shouldShowFocus: boolean }>`\n padding: 0;\n justify-content: center;\n ${({ shouldShowFocus, theme }) =>\n shouldShowFocus\n ? `:focus-within {\n &:after {\n display: block;\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border: 2px solid ${theme.colors.brand[700]};\n pointer-events: none;\n z-index: 7;\n }\n }`\n : undefined}\n\n svg {\n fill: brand-800;\n }\n`;\n\nconst StyledGripper = styled('div', {\n name: DSDataTableDragAndDropCellName,\n slot: DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS.GRIPPER,\n})<{ $disabled: boolean; $applyAriaDisabled: boolean; isActive: boolean }>`\n cursor: ${({ isActive }) => (isActive ? 'grabbing' : 'grab')};\n outline: none;\n display: flex;\n align-items: center;\n touch-action: none;\n\n svg {\n fill: ${({ isActive, theme }) => isActive && theme.colors.neutral['500']};\n }\n ${lockedStateInteractionCss}\n`;\n\n// the key under which a consumer passes props to the gripper slot (see `getPartProps` of ds-system)\nconst GRIPPER_SLOT_PROP = `ds${DSDataTableDragAndDropCellName.slice(2)}Gripper`;\n\ntype GripperSlotPropsFn = (args: object) => object;\ntype GripperSlotProps = object | GripperSlotPropsFn;\n\n// `disabled` is a hard lock: the action handlers a consumer wires to the gripper (drag start, pointer, Enter / Space)\n// are withheld. The slot value can be an object or a function of the owner arguments, both are covered.\nconst lockGripperSlotProps = (slotProps: GripperSlotProps): GripperSlotProps =>\n typeof slotProps === 'function'\n ? (args: object) => omitLockedHandlers((slotProps as GripperSlotPropsFn)(args), true)\n : omitLockedHandlers(slotProps, true);\n\nconst DSDataTableDragAndDropCell: React.ComponentType<DSDataTableDragAndDropCellT.Props> = (props) => {\n const { propsWithDefault, xstyledProps } = useDataTableDragAndDropCell(props);\n const { disabled } = propsWithDefault;\n const ownerProps = React.useMemo(() => {\n const gripperSlotProps = (propsWithDefault as unknown as Record<string, unknown>)[GRIPPER_SLOT_PROP] as\n GripperSlotProps | undefined;\n if (!disabled || !gripperSlotProps) return propsWithDefault;\n return { ...propsWithDefault, [GRIPPER_SLOT_PROP]: lockGripperSlotProps(gripperSlotProps) };\n }, [disabled, propsWithDefault]);\n const ownerPropsConfig = useOwnerProps(ownerProps);\n // a div has no native disabled, so disabled and applyAriaDisabled are both announced through aria-disabled\n const locked = isLocked({\n disabled: propsWithDefault.disabled,\n applyAriaDisabled: propsWithDefault.applyAriaDisabled,\n });\n return (\n <StyledWrapper\n className={propsWithDefault.className}\n {...ownerPropsConfig}\n {...xstyledProps}\n shouldShowFocus={propsWithDefault.shouldShowFocus}\n >\n <StyledGripper\n role=\"button\"\n // a focusable element by default (the focus ring of the cell needs it); out of the tab order when disabled.\n // A host that moves the focus itself (a roving tab stop) overrides it through the gripper slot props.\n tabIndex={propsWithDefault.disabled ? -1 : 0}\n aria-label=\"Drag handle\"\n aria-disabled={locked ? true : undefined}\n $disabled={propsWithDefault.disabled}\n $applyAriaDisabled={propsWithDefault.applyAriaDisabled}\n isActive={propsWithDefault.active}\n {...ownerPropsConfig}\n >\n <GripperVertical size=\"s\" />\n </StyledGripper>\n </StyledWrapper>\n );\n};\n\nDSDataTableDragAndDropCell.displayName = DSDataTableDragAndDropCellName;\nconst DSDataTableDragAndDropCellWithSchema = describe(DSDataTableDragAndDropCell);\nDSDataTableDragAndDropCellWithSchema.propTypes = DSDataTableDragAndDropCellPropTypesSchema;\n\nexport { DSDataTableDragAndDropCell, DSDataTableDragAndDropCellWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACwGf;AAxGR,OAAOA,YAAW;AAClB,SAAS,UAAU,eAAe,UAAU,0BAA0B;AACtE,SAAS,QAAQ,iCAAiC;AAClD,SAAS,uBAAuB;AAChC,SAAS,uBAAuB;AAChC;AAAA,EAEE;AAAA,OACK;AACP,SAAS,mCAAmC;AAC5C,SAAS,qCAAqC,sCAAsC;AAEpF,MAAM,gBAAgB,OAAO,iBAAiB;AAAA,EAC5C,MAAM;AAAA,EACN,MAAM,oCAAoC;AAC5C,CAAC;AAAA;AAAA;AAAA,IAGG,CAAC,EAAE,iBAAiB,MAAM,MAC1B,kBACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BASkB,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA;AAAA;AAAA;AAAA,OAKzC,MAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAOjB,MAAM,gBAAgB,OAAO,OAAO;AAAA,EAClC,MAAM;AAAA,EACN,MAAM,oCAAoC;AAC5C,CAAC;AAAA,YACW,CAAC,EAAE,SAAS,MAAO,WAAW,aAAa,MAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAOlD,CAAC,EAAE,UAAU,MAAM,MAAM,YAAY,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA;AAAA,IAExE,yBAAyB;AAAA;AAI7B,MAAM,oBAAoB,KAAK,+BAA+B,MAAM,CAAC,CAAC;AAOtE,MAAM,uBAAuB,CAAC,cAC5B,OAAO,cAAc,aACjB,CAAC,SAAiB,mBAAoB,UAAiC,IAAI,GAAG,IAAI,IAClF,mBAAmB,WAAW,IAAI;AAExC,MAAM,6BAAqF,CAAC,UAAU;AACpG,QAAM,EAAE,kBAAkB,aAAa,IAAI,4BAA4B,KAAK;AAC5E,QAAM,EAAE,SAAS,IAAI;AACrB,QAAM,aAAaA,OAAM,QAAQ,MAAM;AACrC,UAAM,mBAAoB,iBAAwD,iBAAiB;AAEnG,QAAI,CAAC,YAAY,CAAC,iBAAkB,QAAO;AAC3C,WAAO,EAAE,GAAG,kBAAkB,CAAC,iBAAiB,GAAG,qBAAqB,gBAAgB,EAAE;AAAA,EAC5F,GAAG,CAAC,UAAU,gBAAgB,CAAC;AAC/B,QAAM,mBAAmB,cAAc,UAAU;AAEjD,QAAM,SAAS,SAAS;AAAA,IACtB,UAAU,iBAAiB;AAAA,IAC3B,mBAAmB,iBAAiB;AAAA,EACtC,CAAC;AACD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,iBAAiB;AAAA,MAC3B,GAAG;AAAA,MACH,GAAG;AAAA,MACJ,iBAAiB,iBAAiB;AAAA,MAElC;AAAA,QAAC;AAAA;AAAA,UACC,MAAK;AAAA,UAGL,UAAU,iBAAiB,WAAW,KAAK;AAAA,UAC3C,cAAW;AAAA,UACX,iBAAe,SAAS,OAAO;AAAA,UAC/B,WAAW,iBAAiB;AAAA,UAC5B,oBAAoB,iBAAiB;AAAA,UACrC,UAAU,iBAAiB;AAAA,UAC1B,GAAG;AAAA,UAEJ,8BAAC,mBAAgB,MAAK,KAAI;AAAA;AAAA,MAC5B;AAAA;AAAA,EACF;AAEJ;AAEA,2BAA2B,cAAc;AACzC,MAAM,uCAAuC,SAAS,0BAA0B;AAChF,qCAAqC,YAAY;",
|
|
6
|
+
"names": ["React"]
|
|
7
7
|
}
|
|
@@ -3,6 +3,7 @@ import { PropTypes, xstyledPropTypes, getPropsPerSlotPropTypes } from "@elliemae
|
|
|
3
3
|
import { DSDataTableDragAndDropCellName, DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS } from "./constants/index.js";
|
|
4
4
|
const defaultProps = {
|
|
5
5
|
disabled: false,
|
|
6
|
+
applyAriaDisabled: false,
|
|
6
7
|
active: false,
|
|
7
8
|
shouldShowFocus: true
|
|
8
9
|
};
|
|
@@ -10,7 +11,12 @@ const DSDataTableDragAndDropCellPropTypes = {
|
|
|
10
11
|
...xstyledPropTypes,
|
|
11
12
|
...getPropsPerSlotPropTypes(DSDataTableDragAndDropCellName, DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS),
|
|
12
13
|
className: PropTypes.string.description("className for the wrapper"),
|
|
13
|
-
disabled: PropTypes.bool.description(
|
|
14
|
+
disabled: PropTypes.bool.description(
|
|
15
|
+
'Whether its disabled or not. Announces the gripper as disabled in SR (aria-disabled="true") and withholds the action handlers (pointer, mouse, touch, drag start, Enter and Space) that the consumer passes through the gripper slot props'
|
|
16
|
+
),
|
|
17
|
+
applyAriaDisabled: PropTypes.bool.description(
|
|
18
|
+
`Whether to apply disabled styling (not-allowed cursor) and announce the gripper as disabled in SR (aria-disabled="true"). The package attaches no drag, pointer or keyboard handler to the gripper, so it does NOT stop a drag that the consumer wires to it: that wiring stays the consumer's`
|
|
19
|
+
),
|
|
14
20
|
active: PropTypes.bool.description("Whether its active or not"),
|
|
15
21
|
shouldShowFocus: PropTypes.bool.description("Whether its should the focus or not")
|
|
16
22
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, xstyledPropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { DSDataTableDragAndDropCellName, DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS } from './constants/index.js';\n\nexport declare namespace DSDataTableDragAndDropCellT {\n export interface RequiredProps {}\n\n export interface DefaultProps {\n disabled: boolean;\n active: boolean;\n shouldShowFocus: boolean;\n }\n\n export interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSDataTableDragAndDropCellName,\n typeof DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS\n > {\n className?: string;\n }\n\n export interface Props extends Partial<DefaultProps>, OptionalProps, XstyledProps, RequiredProps {}\n\n export interface InternalProps extends DefaultProps, OptionalProps, XstyledProps, RequiredProps {}\n}\n\nexport const defaultProps: DSDataTableDragAndDropCellT.DefaultProps = {\n disabled: false,\n active: false,\n shouldShowFocus: true,\n};\n\nexport const DSDataTableDragAndDropCellPropTypes: DSPropTypesSchema<DSDataTableDragAndDropCellT.Props> = {\n ...xstyledPropTypes,\n ...getPropsPerSlotPropTypes(DSDataTableDragAndDropCellName, DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS),\n className: PropTypes.string.description('className for the wrapper'),\n disabled: PropTypes.bool.description('Whether its disabled or not'),\n active: PropTypes.bool.description('Whether its active or not'),\n shouldShowFocus: PropTypes.bool.description('Whether its should the focus or not'),\n};\n\nexport const DSDataTableDragAndDropCellPropTypesSchema =\n DSDataTableDragAndDropCellPropTypes as unknown as WeakValidationMap<DSDataTableDragAndDropCellT.Props>;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,WAAW,kBAAkB,gCAAgC;AAGtE,SAAS,gCAAgC,2CAA2C;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, xstyledPropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { DSDataTableDragAndDropCellName, DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS } from './constants/index.js';\n\nexport declare namespace DSDataTableDragAndDropCellT {\n export interface RequiredProps {}\n\n export interface DefaultProps {\n disabled: boolean;\n applyAriaDisabled: boolean;\n active: boolean;\n shouldShowFocus: boolean;\n }\n\n export interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSDataTableDragAndDropCellName,\n typeof DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS\n > {\n className?: string;\n }\n\n export interface Props extends Partial<DefaultProps>, OptionalProps, XstyledProps, RequiredProps {}\n\n export interface InternalProps extends DefaultProps, OptionalProps, XstyledProps, RequiredProps {}\n}\n\nexport const defaultProps: DSDataTableDragAndDropCellT.DefaultProps = {\n disabled: false,\n applyAriaDisabled: false,\n active: false,\n shouldShowFocus: true,\n};\n\nexport const DSDataTableDragAndDropCellPropTypes: DSPropTypesSchema<DSDataTableDragAndDropCellT.Props> = {\n ...xstyledPropTypes,\n ...getPropsPerSlotPropTypes(DSDataTableDragAndDropCellName, DATA_TABLE_DRAG_AND_DROP_CELL_SLOTS),\n className: PropTypes.string.description('className for the wrapper'),\n disabled: PropTypes.bool.description(\n 'Whether its disabled or not. Announces the gripper as disabled in SR (aria-disabled=\"true\") and withholds the action handlers (pointer, mouse, touch, drag start, Enter and Space) that the consumer passes through the gripper slot props',\n ),\n applyAriaDisabled: PropTypes.bool.description(\n 'Whether to apply disabled styling (not-allowed cursor) and announce the gripper as disabled in SR (aria-disabled=\"true\"). The package attaches no drag, pointer or keyboard handler to the gripper, so it does NOT stop a drag that the consumer wires to it: that wiring stays the consumer\\'s',\n ),\n active: PropTypes.bool.description('Whether its active or not'),\n shouldShowFocus: PropTypes.bool.description('Whether its should the focus or not'),\n};\n\nexport const DSDataTableDragAndDropCellPropTypesSchema =\n DSDataTableDragAndDropCellPropTypes as unknown as WeakValidationMap<DSDataTableDragAndDropCellT.Props>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,WAAW,kBAAkB,gCAAgC;AAGtE,SAAS,gCAAgC,2CAA2C;AAwB7E,MAAM,eAAyD;AAAA,EACpE,UAAU;AAAA,EACV,mBAAmB;AAAA,EACnB,QAAQ;AAAA,EACR,iBAAiB;AACnB;AAEO,MAAM,sCAA4F;AAAA,EACvG,GAAG;AAAA,EACH,GAAG,yBAAyB,gCAAgC,mCAAmC;AAAA,EAC/F,WAAW,UAAU,OAAO,YAAY,2BAA2B;AAAA,EACnE,UAAU,UAAU,KAAK;AAAA,IACvB;AAAA,EACF;AAAA,EACA,mBAAmB,UAAU,KAAK;AAAA,IAChC;AAAA,EACF;AAAA,EACA,QAAQ,UAAU,KAAK,YAAY,2BAA2B;AAAA,EAC9D,iBAAiB,UAAU,KAAK,YAAY,qCAAqC;AACnF;AAEO,MAAM,4CACX;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-data-table-drag-and-drop-cell",
|
|
3
|
-
"version": "3.80.0-next.
|
|
3
|
+
"version": "3.80.0-next.75",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Data Table Drag And Drop Cell",
|
|
6
6
|
"files": [
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-data-table-cell": "3.80.0-next.
|
|
40
|
-
"@elliemae/ds-icons": "3.80.0-next.
|
|
41
|
-
"@elliemae/ds-props-helpers": "3.80.0-next.
|
|
42
|
-
"@elliemae/ds-system": "3.80.0-next.
|
|
43
|
-
"@elliemae/ds-test-utils": "3.80.0-next.
|
|
44
|
-
"@elliemae/ds-typescript-helpers": "3.80.0-next.
|
|
39
|
+
"@elliemae/ds-data-table-cell": "3.80.0-next.75",
|
|
40
|
+
"@elliemae/ds-icons": "3.80.0-next.75",
|
|
41
|
+
"@elliemae/ds-props-helpers": "3.80.0-next.75",
|
|
42
|
+
"@elliemae/ds-system": "3.80.0-next.75",
|
|
43
|
+
"@elliemae/ds-test-utils": "3.80.0-next.75",
|
|
44
|
+
"@elliemae/ds-typescript-helpers": "3.80.0-next.75"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@elliemae/ds-monorepo-devops": "3.80.0-next.
|
|
47
|
+
"@elliemae/ds-monorepo-devops": "3.80.0-next.75",
|
|
48
48
|
"jest": "^30.0.0",
|
|
49
49
|
"styled-components": "~5.3.11"
|
|
50
50
|
},
|