@sis-cc/dotstatsuite-visions 15.17.0 → 15.18.0
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/TableLayout/TableLayout.js +235 -173
- package/dist/TableLayout/TableLayout.js.map +1 -1
- package/dist/assets/Add-BOavXQGJ.js +1 -0
- package/dist/assets/{Alert-BJ5GefUB.js → Alert-CI3CnEU9.js} +1 -1
- package/dist/assets/{Alert.stories-AVrq33pL.js → Alert.stories-B6BsLv_r.js} +1 -1
- package/dist/assets/{ApiQueries.stories-i66WcB3r.js → ApiQueries.stories-Dr2kT9if.js} +1 -1
- package/dist/assets/ArrowForward-QrCHpLlJ.js +1 -0
- package/dist/assets/{Asterisk-DUdGR_xJ.js → Asterisk-3Rhwi0WA.js} +1 -1
- package/dist/assets/{AuthDialog.stories-DawlY_G8.js → AuthDialog.stories-CvF2sb9q.js} +1 -1
- package/dist/assets/{Breadcrumbs.stories-BoZvg9IO.js → Breadcrumbs.stories-BwkZP8U5.js} +1 -1
- package/dist/assets/{Button-BWYJIiRh.js → Button-BiHQ2vOD.js} +1 -1
- package/dist/assets/{Button.stories-BNQcufoV.js → Button.stories-CRade2Lu.js} +1 -1
- package/dist/assets/{CardContent-BTtrJ4XX.js → CardContent-DCSLw0IR.js} +1 -1
- package/dist/assets/{ChartsConfig.stories-CWyr9PaV.js → ChartsConfig.stories-CCnkjQuh.js} +1 -1
- package/dist/assets/{Checkbox-CoVn6d9N.js → Checkbox-BexP1orf.js} +1 -1
- package/dist/assets/{Chips.stories-D2WffXFr.js → Chips.stories-DgAlsI9C.js} +1 -1
- package/dist/assets/{CircularProgress-gV85jGqn.js → CircularProgress-B4-i86z_.js} +1 -1
- package/dist/assets/Close-BjZqVfS-.js +1 -0
- package/dist/assets/{Collapse-CL_2BjVR.js → Collapse-DXtMjzVx.js} +1 -1
- package/dist/assets/{CollapseButtons.stories-CEixK7T9.js → CollapseButtons.stories-C3KyVYXt.js} +1 -1
- package/dist/assets/{CollapsibleTree.stories-BZGQ0ZP2.js → CollapsibleTree.stories-C-Th6prK.js} +1 -1
- package/dist/assets/{Color-6AOWCN3U-BH12hkqW.js → Color-6AOWCN3U-ihLmUPnX.js} +1 -1
- package/dist/assets/{Contact.stories-BNazt5cb.js → Contact.stories-I2QClu_K.js} +1 -1
- package/dist/assets/{Container-BZ4YN7Q2.js → Container-8Eg7Ev_d.js} +1 -1
- package/dist/assets/{Cross-CsoQ1KmQ.js → Cross-snf9VeuL.js} +1 -1
- package/dist/assets/{CustomChip-BlfNCO9C.js → CustomChip-CLYzvFOP.js} +1 -1
- package/dist/assets/{DataEdit.stories-DiVE-mRb.js → DataEdit.stories-Du66K6ED.js} +1 -1
- package/dist/assets/{DataFooter.stories-CiitqtaP.js → DataFooter.stories-C_keeuRM.js} +1 -1
- package/dist/assets/{DataHeader.stories-BCFpT8XL.js → DataHeader.stories-BIY7VUtj.js} +1 -1
- package/dist/assets/{Dataflow.stories-BA7whOpB.js → Dataflow.stories-jz4WO4lz.js} +1 -1
- package/dist/assets/{DeleteAllChip.stories-BqVkSP1r.js → DeleteAllChip.stories-7_PR3OHU.js} +1 -1
- package/dist/assets/{Dialog-Rlxkd-TO.js → Dialog-Dwe2Q5qM.js} +1 -1
- package/dist/assets/{DocsRenderer-JROSPFPF-6HiKq6V4.js → DocsRenderer-JROSPFPF-BG3i7ScM.js} +5 -5
- package/dist/assets/Done-DPdrw-eb.js +1 -0
- package/dist/assets/Download-BeoD-Yy0.js +1 -0
- package/dist/assets/{DynamicDrawer.stories-Z06w-fuf.js → DynamicDrawer.stories-Dd_pvgS6.js} +1 -1
- package/dist/assets/{EmojiObjects-Dqt0xKSX.js → EmojiObjects-CAcWTfhy.js} +1 -1
- package/dist/assets/ExpandLess-CumXrG4o.js +1 -0
- package/dist/assets/ExpandMore-DIU_T7SL.js +1 -0
- package/dist/assets/{ExpansionPanel-BB3Vm4ZE.js → ExpansionPanel-DdJppdta.js} +1 -1
- package/dist/assets/{ExpansionPanel.stories-BBQo735I.js → ExpansionPanel.stories-DzmPCEs9.js} +1 -1
- package/dist/assets/{FormControlLabel-D38XP1ds.js → FormControlLabel-BZCIDGya.js} +1 -1
- package/dist/assets/{Grid-DSEGVn_z.js → Grid-CJO61dRG.js} +1 -1
- package/dist/assets/{GroupedChips.stories-BLDbV3ay.js → GroupedChips.stories-CPGxUc3n.js} +1 -1
- package/dist/assets/{Grow-DKCUKVTv.js → Grow-CsG6GW7T.js} +1 -1
- package/dist/assets/{HierarchicalFilter.stories-ByMuNa_l.js → HierarchicalFilter.stories-DDyHytFy.js} +1 -1
- package/dist/assets/{IconButton-BPX_DtgC.js → IconButton-BmV2jvz-.js} +1 -1
- package/dist/assets/{Icons.stories-nvECa0Mz.js → Icons.stories-D-LZai1f.js} +1 -1
- package/dist/assets/Info-BU4oEAwq.js +1 -0
- package/dist/assets/{InfoOutlined-BKNZGpbR.js → InfoOutlined-B-Y1AVYd.js} +1 -1
- package/dist/assets/{Input-CodJGv3V.js → Input-BsOi0WUF.js} +1 -1
- package/dist/assets/{Input.stories-BmUtQqpQ.js → Input.stories-C5Xdkf6f.js} +1 -1
- package/dist/assets/{InputAdornment-iYBniea1.js → InputAdornment-CvUVeXUB.js} +1 -1
- package/dist/assets/{InputNumber.stories-Bgx3BGS3.js → InputNumber.stories-B-Y7AB91.js} +1 -1
- package/dist/assets/{KeyboardArrowUp-D30pQ89z.js → KeyboardArrowUp-CE7zL2ol.js} +1 -1
- package/dist/assets/{LabelDivider.stories-BNZ_lWkH.js → LabelDivider.stories-BDAxZZtl.js} +1 -1
- package/dist/assets/Lens-7v1e07y0.js +1 -0
- package/dist/assets/{Link-BteZBst8.js → Link-IITWMAlI.js} +1 -1
- package/dist/assets/{List-Df2hWU6I.js → List-COrkKCMC.js} +1 -1
- package/dist/assets/ListContext-xq2a6xmy.js +1 -0
- package/dist/assets/{Loading.stories-Cr2F5x1k.js → Loading.stories-Cui02_P7.js} +1 -1
- package/dist/assets/{Logo.stories-D1UJf9d2.js → Logo.stories-BwzFy29g.js} +1 -1
- package/dist/assets/{MenuItem-BFT1S5Dc.js → MenuItem-rwQC5Jz1.js} +1 -1
- package/dist/assets/{Mode-Bi0WcXoa.js → Mode-CeZLN76c.js} +1 -1
- package/dist/assets/{Mode.stories-B5WEPLxx.js → Mode.stories-CigsMCpP.js} +1 -1
- package/dist/assets/{NoData-CIQGXHkI.js → NoData-aIoNNHqZ.js} +1 -1
- package/dist/assets/{NoData.stories-MVjk4mvr.js → NoData.stories-BPWnLnXv.js} +1 -1
- package/dist/assets/{Pagination.stories-BZtQmxQ4.js → Pagination.stories-BJRt-Ju-.js} +1 -1
- package/dist/assets/{Paper-Cho_IrsI.js → Paper-CGj07eAk.js} +1 -1
- package/dist/assets/{PeriodPicker.stories-qXc0E7wD.js → PeriodPicker.stories-ldoONt31.js} +1 -1
- package/dist/assets/{Popover-OSdDAfbm.js → Popover-NnzkJg8l.js} +1 -1
- package/dist/assets/{RadioGroup-BJD7wMWq.js → RadioGroup-DgTYg9us.js} +1 -1
- package/dist/assets/{Search-DW0H3bHN.js → Search-DqbF4LDH.js} +1 -1
- package/dist/assets/{Select-BD-M0EaD.js → Select-BSveSpZX.js} +1 -1
- package/dist/assets/{Select-Cvvhkj5p.js → Select-DvF6k9X2.js} +1 -1
- package/dist/assets/{Select.stories-BcUw_AIZ.js → Select.stories-DF6qQS9X.js} +1 -1
- package/dist/assets/{Share-DKFFnVoz.js → Share-CcnUidCo.js} +1 -1
- package/dist/assets/{Share.stories-7eNaNdnw.js → Share.stories-BGS677TD.js} +1 -1
- package/dist/assets/{ShortUrls.stories-BLc7E-xR.js → ShortUrls.stories-DHqPnoy5.js} +1 -1
- package/dist/assets/{SisccFooter.stories-CwOnYQjb.js → SisccFooter.stories-DzZKFhKX.js} +1 -1
- package/dist/assets/{Spotlight-C4sn7AHE.js → Spotlight-BBoE4S1w.js} +1 -1
- package/dist/assets/{Spotlight.stories-ChPlgmj9.js → Spotlight.stories-XCvsdTv0.js} +1 -1
- package/dist/assets/{SwitchBase-B5yq6u9q.js → SwitchBase-Dey9Iw42.js} +1 -1
- package/dist/assets/{TableFooter.stories-BYsmNv86.js → TableFooter.stories-Cm2T-AL2.js} +1 -1
- package/dist/assets/{TableHeader.stories-nJ6ncTeo.js → TableHeader.stories-D2AP5gMN.js} +1 -1
- package/dist/assets/{TableHtml5.stories-DdOnBkVy.js → TableHtml5.stories-Dfqe3xMY.js} +1 -1
- package/dist/assets/TableLayout.stories-Ng5lv-TV.js +45 -0
- package/dist/assets/{TablePreview.stories-70Kciat4.js → TablePreview.stories-C0obluLj.js} +1 -1
- package/dist/assets/{TableRow-CCLqUJp_.js → TableRow-DyLjuwze.js} +1 -1
- package/dist/assets/{Tag-DLQw4boA.js → Tag-CQQ0Wz8k.js} +1 -1
- package/dist/assets/{Tag.stories-CaWQho0f.js → Tag.stories-B1HL_Qnh.js} +1 -1
- package/dist/assets/{TextField-bDW8naaY.js → TextField-DTKLdgYP.js} +1 -1
- package/dist/assets/{TextareaAutosize-BHWY2Lcy.js → TextareaAutosize-BnqrzVWc.js} +1 -1
- package/dist/assets/{ToggleButton-DDvD1EoP.js → ToggleButton-CxuHZPwa.js} +1 -1
- package/dist/assets/{ToggleButton.stories-Bcg1QCwe.js → ToggleButton.stories-TwZJlXVo.js} +1 -1
- package/dist/assets/{Tooltip-BkeXRnIm.js → Tooltip-CzBJj1M2.js} +1 -1
- package/dist/assets/{Tooltip-B7xbweYc.js → Tooltip-iI471JT9.js} +1 -1
- package/dist/assets/{Tooltip.stories-CAvQfcNl.js → Tooltip.stories-Dhm73XQH.js} +1 -1
- package/dist/assets/{Typography-CQOsqtpQ.js → Typography-BSx6QP1S.js} +1 -1
- package/dist/assets/{UseCases-Cmie_LYT.js → UseCases-CyXRdmDK.js} +1 -1
- package/dist/assets/{UserRightForm.stories-CPAatozC.js → UserRightForm.stories-Bg6VF0-_.js} +1 -1
- package/dist/assets/{VerticalButton-D1obcTrq.js → VerticalButton-B93ipWX6.js} +1 -1
- package/dist/assets/{VerticalButton.stories-Q2FdBiXA.js → VerticalButton.stories-DgwTfo-c.js} +1 -1
- package/dist/assets/{VirtualizedTree.stories-CRY7kd3G.js → VirtualizedTree.stories-DexQLugo.js} +1 -1
- package/dist/assets/{Warning-C7A_bzMj.js → Warning-mu6JqPAR.js} +1 -1
- package/dist/assets/{WithTooltip-7X4HQR7L-veiLmfZI.js → WithTooltip-7X4HQR7L-CxqNrBx6.js} +1 -1
- package/dist/assets/{areas-D1pVvygC.js → areas-BCCSI2R2.js} +1 -1
- package/dist/assets/{axe-B9BR6bS6.js → axe-C1TbcgjJ.js} +1 -1
- package/dist/assets/{chartProperties-rV1Zsclo.js → chartProperties-D9rhHNyS.js} +1 -1
- package/dist/assets/{client-CI2qxS2q.js → client-D6VCKNKn.js} +1 -1
- package/dist/assets/{colorManipulator-DBr9rqe1.js → colorManipulator-1p2EF9SY.js} +1 -1
- package/dist/assets/{formControlState-DLBkGBoq.js → formControlState-Dg0qiabM.js} +1 -1
- package/dist/assets/formatter-L2YTDE3Q-DcGXocwJ.js +1 -0
- package/dist/assets/{getThemeProps-Bd5bffM3.js → getThemeProps-C8xS0M6W.js} +1 -1
- package/dist/assets/{iframe-D5HGECkm.js → iframe-a_pZB-t6.js} +3 -3
- package/dist/assets/{index-tCerA6iK.js → index-BCSOKU0M.js} +1 -1
- package/dist/assets/{index-DvemN24o.js → index-BnO-aI7j.js} +1 -1
- package/dist/assets/{index-B-DgIThf.js → index-CDcCtVv4.js} +1 -1
- package/dist/assets/{index-D44A4RHW.js → index-DBVtfPKZ.js} +1 -1
- package/dist/assets/{index-DMYQb6m_.js → index-DS-XPpOX.js} +1 -1
- package/dist/assets/index-DadQTpM3.js +1 -0
- package/dist/assets/{index-Cou1HDzY.js → index-MWRVRKRi.js} +1 -1
- package/dist/assets/{isMuiElement-CVyjFWiz.js → isMuiElement-C2XWHu21.js} +1 -1
- package/dist/assets/{listItemButtonClasses-DxJZAHWj.js → listItemButtonClasses-DAjTv-uW.js} +1 -1
- package/dist/assets/{listItemTextClasses-tFhFxuIu.js → listItemTextClasses-CZbRJWVH.js} +1 -1
- package/dist/assets/{makeStyles-CjM3VvvY.js → makeStyles-DjbLSwJE.js} +1 -1
- package/dist/assets/{react-18-zBw2AM-4.js → react-18-VFwgwc4r.js} +1 -1
- package/dist/assets/{syntaxhighlighter-YFXUGROL-Z6nwzlTT.js → syntaxhighlighter-YFXUGROL-DBGSNc0s.js} +1 -1
- package/dist/assets/{table-preview-props-CNGUTlA5.js → table-preview-props-DwPvcwTv.js} +1 -1
- package/dist/assets/{useControlled-B0m-j8-3.js → useControlled-CwodZjTa.js} +1 -1
- package/dist/assets/{useKeybordEscapeHandler-D8K_ZP32.js → useKeybordEscapeHandler-CrJ6yBNo.js} +1 -1
- package/dist/assets/{useMediaQuery-00hMajW1.js → useMediaQuery-Cp6nHdWo.js} +1 -1
- package/dist/assets/{useSlotProps-CVKNv_Nj.js → useSlotProps-pWzUupkJ.js} +1 -1
- package/dist/assets/useTheme-pGXs_ROT.js +1 -0
- package/dist/assets/{useThemeProps-NCPKzcg_.js → useThemeProps-Bg_Es16W.js} +1 -1
- package/dist/assets/{utils-BPpA6QmH.js → utils-BRr-vONA.js} +1 -1
- package/dist/assets/{utils-DkmBfj_J.js → utils-Ci5srLYt.js} +1 -1
- package/dist/assets/{with-input-DHV2e_Uq.js → with-input-a92DkuNY.js} +1 -1
- package/dist/assets/{withSpotlight-CLv5xXJ-.js → withSpotlight-nUUuH7vR.js} +1 -1
- package/dist/iframe.html +1 -1
- package/dist/manifests/components.html +1 -1
- package/dist/manifests/components.json +1 -1
- package/dist/project.json +1 -1
- package/package.json +1 -1
- package/dist/assets/Add-DU1c8sa4.js +0 -1
- package/dist/assets/ArrowForward-Lpn1eSgo.js +0 -1
- package/dist/assets/Close-DvQsTWrm.js +0 -1
- package/dist/assets/Done-ypCBEcBE.js +0 -1
- package/dist/assets/Download-xVd7wAzI.js +0 -1
- package/dist/assets/ExpandLess-BEgpQhAc.js +0 -1
- package/dist/assets/ExpandMore-C5bxJOgI.js +0 -1
- package/dist/assets/Info-QgbSCQx0.js +0 -1
- package/dist/assets/Lens-DqQI6Iuw.js +0 -1
- package/dist/assets/ListContext-C1kO3zKr.js +0 -1
- package/dist/assets/TableLayout.stories-Bq_KHVbC.js +0 -46
- package/dist/assets/formatter-L2YTDE3Q-Dzy4maKF.js +0 -1
- package/dist/assets/index-kQbKJzBV.js +0 -1
- package/dist/assets/useTheme-BlifkizG.js +0 -1
|
@@ -25,7 +25,6 @@ const BOX = {
|
|
|
25
25
|
sections: 'sections',
|
|
26
26
|
rows: 'rows'
|
|
27
27
|
};
|
|
28
|
-
const wcagId = 'dnd-how-drag-item';
|
|
29
28
|
|
|
30
29
|
const useStyles$2 = makeStyles((theme) => ({
|
|
31
30
|
containerButton: {
|
|
@@ -82,7 +81,7 @@ const useStyles$2 = makeStyles((theme) => ({
|
|
|
82
81
|
}
|
|
83
82
|
}));
|
|
84
83
|
const ItemBody = React.forwardRef((t0, ref) => {
|
|
85
|
-
const $ = c(
|
|
84
|
+
const $ = c(40);
|
|
86
85
|
const {
|
|
87
86
|
item,
|
|
88
87
|
itemRenderer,
|
|
@@ -90,8 +89,7 @@ const ItemBody = React.forwardRef((t0, ref) => {
|
|
|
90
89
|
itemButtonProps,
|
|
91
90
|
canDrag,
|
|
92
91
|
style,
|
|
93
|
-
dragHandleProps
|
|
94
|
-
describedBy
|
|
92
|
+
dragHandleProps
|
|
95
93
|
} = t0;
|
|
96
94
|
const classes = useStyles$2();
|
|
97
95
|
let T0;
|
|
@@ -103,115 +101,109 @@ const ItemBody = React.forwardRef((t0, ref) => {
|
|
|
103
101
|
let t6;
|
|
104
102
|
let t7;
|
|
105
103
|
let t8;
|
|
106
|
-
|
|
107
|
-
if ($[0] !== canDrag || $[1] !== classes || $[2] !== describedBy || $[3] !== dragHandleProps || $[4] !== dropZoneLabel || $[5] !== item || $[6] !== itemButtonProps || $[7] !== itemRenderer || $[8] !== ref || $[9] !== style) {
|
|
104
|
+
if ($[0] !== canDrag || $[1] !== classes || $[2] !== dragHandleProps || $[3] !== dropZoneLabel || $[4] !== item || $[5] !== itemButtonProps || $[6] !== itemRenderer || $[7] !== ref || $[8] !== style) {
|
|
108
105
|
const selectItem = R.prop(item.id)(itemButtonProps);
|
|
109
106
|
t3 = ref;
|
|
110
107
|
t4 = style;
|
|
111
108
|
t5 = `draggable-${item.id}`;
|
|
112
109
|
t6 = dragHandleProps;
|
|
113
|
-
if ($[
|
|
110
|
+
if ($[18] !== canDrag || $[19] !== classes || $[20] !== dropZoneLabel) {
|
|
114
111
|
t7 = cx(classes.styledItemContainer, classes.containerButton, [R.prop(`${dropZoneLabel}Item`)(classes)], {
|
|
115
112
|
[classes.cantMove]: R.not(canDrag)
|
|
116
113
|
});
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
114
|
+
$[18] = canDrag;
|
|
115
|
+
$[19] = classes;
|
|
116
|
+
$[20] = dropZoneLabel;
|
|
117
|
+
$[21] = t7;
|
|
121
118
|
} else {
|
|
122
|
-
t7 = $[
|
|
119
|
+
t7 = $[21];
|
|
123
120
|
}
|
|
124
|
-
if ($[
|
|
121
|
+
if ($[22] !== item || $[23] !== itemRenderer) {
|
|
125
122
|
t8 = itemRenderer(item);
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
123
|
+
$[22] = item;
|
|
124
|
+
$[23] = itemRenderer;
|
|
125
|
+
$[24] = t8;
|
|
129
126
|
} else {
|
|
130
|
-
t8 = $[
|
|
127
|
+
t8 = $[24];
|
|
131
128
|
}
|
|
132
|
-
t9 = describedBy;
|
|
133
129
|
T0 = Fragment;
|
|
134
|
-
const
|
|
130
|
+
const t92 = cx(classes.text, {
|
|
135
131
|
[classes.spaceButton]: selectItem
|
|
136
132
|
});
|
|
137
|
-
let
|
|
138
|
-
if ($[
|
|
139
|
-
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
133
|
+
let t102;
|
|
134
|
+
if ($[25] !== item || $[26] !== itemRenderer) {
|
|
135
|
+
t102 = itemRenderer(item);
|
|
136
|
+
$[25] = item;
|
|
137
|
+
$[26] = itemRenderer;
|
|
138
|
+
$[27] = t102;
|
|
143
139
|
} else {
|
|
144
|
-
|
|
140
|
+
t102 = $[27];
|
|
145
141
|
}
|
|
146
|
-
t1 = /* @__PURE__ */ jsx(Typography, { variant: "body2", className:
|
|
142
|
+
t1 = /* @__PURE__ */ jsx(Typography, { variant: "body2", className: t92, children: t102 });
|
|
147
143
|
t2 = selectItem && /* @__PURE__ */ jsx("span", { className: classes.itemButton, role: "presentation", onPointerDown: _temp, onKeyDown: _temp2, children: /* @__PURE__ */ jsx(Select, { id: item.id, value: selectItem.value, onChange: (e_1) => selectItem.onChange(e_1.target.value), classes: {
|
|
148
144
|
root: classes.select
|
|
149
145
|
}, variant: "outlined", size: "small", autoWidth: true, children: R.map(_temp3)(selectItem.options) }) });
|
|
150
146
|
$[0] = canDrag;
|
|
151
147
|
$[1] = classes;
|
|
152
|
-
$[2] =
|
|
153
|
-
$[3] =
|
|
154
|
-
$[4] =
|
|
155
|
-
$[5] =
|
|
156
|
-
$[6] =
|
|
157
|
-
$[7] =
|
|
158
|
-
$[8] =
|
|
159
|
-
$[9] =
|
|
160
|
-
$[10] =
|
|
161
|
-
$[11] =
|
|
162
|
-
$[12] =
|
|
163
|
-
$[13] =
|
|
164
|
-
$[14] =
|
|
165
|
-
$[15] =
|
|
166
|
-
$[16] =
|
|
167
|
-
$[17] =
|
|
168
|
-
$[18] = t8;
|
|
169
|
-
$[19] = t9;
|
|
148
|
+
$[2] = dragHandleProps;
|
|
149
|
+
$[3] = dropZoneLabel;
|
|
150
|
+
$[4] = item;
|
|
151
|
+
$[5] = itemButtonProps;
|
|
152
|
+
$[6] = itemRenderer;
|
|
153
|
+
$[7] = ref;
|
|
154
|
+
$[8] = style;
|
|
155
|
+
$[9] = T0;
|
|
156
|
+
$[10] = t1;
|
|
157
|
+
$[11] = t2;
|
|
158
|
+
$[12] = t3;
|
|
159
|
+
$[13] = t4;
|
|
160
|
+
$[14] = t5;
|
|
161
|
+
$[15] = t6;
|
|
162
|
+
$[16] = t7;
|
|
163
|
+
$[17] = t8;
|
|
170
164
|
} else {
|
|
171
|
-
T0 = $[
|
|
172
|
-
t1 = $[
|
|
173
|
-
t2 = $[
|
|
174
|
-
t3 = $[
|
|
175
|
-
t4 = $[
|
|
176
|
-
t5 = $[
|
|
177
|
-
t6 = $[
|
|
178
|
-
t7 = $[
|
|
179
|
-
t8 = $[
|
|
180
|
-
t9 = $[19];
|
|
165
|
+
T0 = $[9];
|
|
166
|
+
t1 = $[10];
|
|
167
|
+
t2 = $[11];
|
|
168
|
+
t3 = $[12];
|
|
169
|
+
t4 = $[13];
|
|
170
|
+
t5 = $[14];
|
|
171
|
+
t6 = $[15];
|
|
172
|
+
t7 = $[16];
|
|
173
|
+
t8 = $[17];
|
|
181
174
|
}
|
|
182
|
-
let
|
|
183
|
-
if ($[
|
|
184
|
-
|
|
175
|
+
let t9;
|
|
176
|
+
if ($[28] !== T0 || $[29] !== t1 || $[30] !== t2) {
|
|
177
|
+
t9 = /* @__PURE__ */ jsxs(T0, { children: [
|
|
185
178
|
t1,
|
|
186
179
|
t2
|
|
187
180
|
] });
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
$[
|
|
181
|
+
$[28] = T0;
|
|
182
|
+
$[29] = t1;
|
|
183
|
+
$[30] = t2;
|
|
184
|
+
$[31] = t9;
|
|
192
185
|
} else {
|
|
193
|
-
|
|
186
|
+
t9 = $[31];
|
|
194
187
|
}
|
|
195
|
-
let
|
|
196
|
-
if ($[
|
|
197
|
-
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
206
|
-
$[42] = t11;
|
|
188
|
+
let t10;
|
|
189
|
+
if ($[32] !== t3 || $[33] !== t4 || $[34] !== t5 || $[35] !== t6 || $[36] !== t7 || $[37] !== t8 || $[38] !== t9) {
|
|
190
|
+
t10 = /* @__PURE__ */ jsx("div", { ref: t3, style: t4, "data-testid": t5, ...t6, className: t7, "aria-label": t8, children: t9 });
|
|
191
|
+
$[32] = t3;
|
|
192
|
+
$[33] = t4;
|
|
193
|
+
$[34] = t5;
|
|
194
|
+
$[35] = t6;
|
|
195
|
+
$[36] = t7;
|
|
196
|
+
$[37] = t8;
|
|
197
|
+
$[38] = t9;
|
|
198
|
+
$[39] = t10;
|
|
207
199
|
} else {
|
|
208
|
-
|
|
200
|
+
t10 = $[39];
|
|
209
201
|
}
|
|
210
|
-
return
|
|
202
|
+
return t10;
|
|
211
203
|
});
|
|
212
204
|
ItemBody.displayName = "ItemBody";
|
|
213
205
|
const DnDItem = (t0) => {
|
|
214
|
-
const $ = c(
|
|
206
|
+
const $ = c(27);
|
|
215
207
|
const {
|
|
216
208
|
item,
|
|
217
209
|
index,
|
|
@@ -288,43 +280,33 @@ const DnDItem = (t0) => {
|
|
|
288
280
|
}
|
|
289
281
|
const style = t7;
|
|
290
282
|
let t8;
|
|
291
|
-
if ($[15] !== attributes) {
|
|
292
|
-
t8 =
|
|
293
|
-
$[15] = attributes;
|
|
294
|
-
$[16] = t8;
|
|
295
|
-
} else {
|
|
296
|
-
t8 = $[16];
|
|
297
|
-
}
|
|
298
|
-
const describedBy = t8;
|
|
299
|
-
let t9;
|
|
300
|
-
if ($[17] !== attributes || $[18] !== listeners) {
|
|
301
|
-
t9 = {
|
|
283
|
+
if ($[15] !== attributes || $[16] !== listeners) {
|
|
284
|
+
t8 = {
|
|
302
285
|
...attributes,
|
|
303
286
|
...listeners
|
|
304
287
|
};
|
|
305
|
-
$[
|
|
306
|
-
$[
|
|
307
|
-
$[
|
|
288
|
+
$[15] = attributes;
|
|
289
|
+
$[16] = listeners;
|
|
290
|
+
$[17] = t8;
|
|
308
291
|
} else {
|
|
309
|
-
|
|
292
|
+
t8 = $[17];
|
|
310
293
|
}
|
|
311
|
-
let
|
|
312
|
-
if ($[
|
|
313
|
-
|
|
314
|
-
$[
|
|
315
|
-
$[
|
|
316
|
-
$[
|
|
317
|
-
$[
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
320
|
-
$[
|
|
321
|
-
$[
|
|
322
|
-
$[
|
|
323
|
-
$[29] = t10;
|
|
294
|
+
let t9;
|
|
295
|
+
if ($[18] !== canDrag || $[19] !== dropZoneLabel || $[20] !== item || $[21] !== itemButtonProps || $[22] !== itemRenderer || $[23] !== setNodeRef || $[24] !== style || $[25] !== t8) {
|
|
296
|
+
t9 = /* @__PURE__ */ jsx(ItemBody, { ref: setNodeRef, item, itemRenderer, dropZoneLabel, itemButtonProps, canDrag, style, dragHandleProps: t8 });
|
|
297
|
+
$[18] = canDrag;
|
|
298
|
+
$[19] = dropZoneLabel;
|
|
299
|
+
$[20] = item;
|
|
300
|
+
$[21] = itemButtonProps;
|
|
301
|
+
$[22] = itemRenderer;
|
|
302
|
+
$[23] = setNodeRef;
|
|
303
|
+
$[24] = style;
|
|
304
|
+
$[25] = t8;
|
|
305
|
+
$[26] = t9;
|
|
324
306
|
} else {
|
|
325
|
-
|
|
307
|
+
t9 = $[26];
|
|
326
308
|
}
|
|
327
|
-
return
|
|
309
|
+
return t9;
|
|
328
310
|
};
|
|
329
311
|
DnDItem.propTypes = {
|
|
330
312
|
item: PropTypes.object,
|
|
@@ -578,7 +560,49 @@ const findContainer = (layout, id) => {
|
|
|
578
560
|
if (R.has(id, layout)) {
|
|
579
561
|
return id;
|
|
580
562
|
}
|
|
581
|
-
return R.pipe(R.toPairs, R.find(([, ids]) => R.includes(id, ids)), R.
|
|
563
|
+
return R.pipe(R.toPairs, R.find(([, ids]) => R.includes(id, ids)), R.defaultTo([]), R.head)(layout);
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Where the active item lands if dropped over `overId`, given the layout before
|
|
568
|
+
* that move is applied. Within a zone the sortable strategy takes the hovered
|
|
569
|
+
* item's slot; across zones the item is inserted before the hovered item.
|
|
570
|
+
* Hovering a zone itself (empty zone or its free area) targets its end.
|
|
571
|
+
* Shared by the move handlers and the screen-reader announcements so the
|
|
572
|
+
* announced position always matches the applied one.
|
|
573
|
+
* @param {Object} layout - { header: string[], sections: string[], rows: string[] }
|
|
574
|
+
* @param {string} activeId - the moved item id
|
|
575
|
+
* @param {string} overId - the hovered item id or zone key
|
|
576
|
+
* @returns {Object|null} { dragZone, dragIndex, dropZone, index, length }, 0-based indexes
|
|
577
|
+
*/
|
|
578
|
+
const getMoveTarget = (layout, activeId, overId) => {
|
|
579
|
+
const dragZone = findContainer(layout, activeId);
|
|
580
|
+
const dropZone = findContainer(layout, overId);
|
|
581
|
+
if (R.isNil(dragZone) || R.isNil(dropZone)) {
|
|
582
|
+
return null;
|
|
583
|
+
}
|
|
584
|
+
const dragIndex = R.indexOf(activeId, layout[dragZone]);
|
|
585
|
+
const dropItems = layout[dropZone];
|
|
586
|
+
const isOverZone = R.has(overId, layout);
|
|
587
|
+
if (R.equals(dragZone, dropZone)) {
|
|
588
|
+
const length = R.length(dropItems);
|
|
589
|
+
const index = isOverZone ? length - 1 : R.indexOf(overId, dropItems);
|
|
590
|
+
return {
|
|
591
|
+
dragZone,
|
|
592
|
+
dragIndex,
|
|
593
|
+
dropZone,
|
|
594
|
+
index,
|
|
595
|
+
length
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
const index = isOverZone ? R.length(dropItems) : R.indexOf(overId, dropItems);
|
|
599
|
+
return {
|
|
600
|
+
dragZone,
|
|
601
|
+
dragIndex,
|
|
602
|
+
dropZone,
|
|
603
|
+
index,
|
|
604
|
+
length: R.length(dropItems) + 1
|
|
605
|
+
};
|
|
582
606
|
};
|
|
583
607
|
|
|
584
608
|
const useStyles = makeStyles$1((theme) => ({
|
|
@@ -604,6 +628,24 @@ const useStyles = makeStyles$1((theme) => ({
|
|
|
604
628
|
const EMPTY_LAYOUT = {};
|
|
605
629
|
const EMPTY_ITEMS = [];
|
|
606
630
|
const EMPTY_OPTIONAL_ITEM = {};
|
|
631
|
+
const keyboardCoordinates = (event, args) => {
|
|
632
|
+
const {
|
|
633
|
+
droppableContainers
|
|
634
|
+
} = args.context;
|
|
635
|
+
const enabled = droppableContainers.getEnabled();
|
|
636
|
+
const zonesWithItems = R.pipe(R.map(R.path(["data", "current", "sortable", "containerId"])), R.reject(R.isNil))(R.reject(R.prop("disabled"), enabled));
|
|
637
|
+
const targets = R.reject((entry) => R.isNil(R.path(["data", "current", "sortable"], entry)) && R.includes(entry.id, zonesWithItems), enabled);
|
|
638
|
+
return sortableKeyboardCoordinates(event, {
|
|
639
|
+
...args,
|
|
640
|
+
context: {
|
|
641
|
+
...args.context,
|
|
642
|
+
droppableContainers: {
|
|
643
|
+
getEnabled: () => targets,
|
|
644
|
+
get: (id) => droppableContainers.get(id)
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
};
|
|
607
649
|
const deriveButtonValues = (itemButtonProps) => R.map(R.prop("value"), itemButtonProps || {});
|
|
608
650
|
const CustomTableLayout = ({
|
|
609
651
|
layout = EMPTY_LAYOUT,
|
|
@@ -647,12 +689,14 @@ const CustomTableLayout = ({
|
|
|
647
689
|
distance: 8
|
|
648
690
|
}
|
|
649
691
|
}), useSensor(KeyboardSensor, {
|
|
650
|
-
coordinateGetter:
|
|
692
|
+
coordinateGetter: keyboardCoordinates
|
|
651
693
|
}));
|
|
652
694
|
const [activeId, setActiveId] = useState(null);
|
|
653
695
|
const clonedLayoutRef = useRef(null);
|
|
654
696
|
const layoutRef = useRef(currentLayout);
|
|
655
697
|
layoutRef.current = currentLayout;
|
|
698
|
+
const dragOriginRef = useRef(null);
|
|
699
|
+
const announcedPositionRef = useRef(null);
|
|
656
700
|
const activateOptionalItem = () => {
|
|
657
701
|
const nextLayout = R.over(R.lensProp("header"), R.append(optionalItem.id), currentLayout);
|
|
658
702
|
setCurrentLayout(nextLayout);
|
|
@@ -673,8 +717,41 @@ const CustomTableLayout = ({
|
|
|
673
717
|
active
|
|
674
718
|
}) => {
|
|
675
719
|
clonedLayoutRef.current = currentLayout;
|
|
720
|
+
const zone = findContainer(currentLayout, active.id);
|
|
721
|
+
const zoneIds = R.propOr([], zone, currentLayout);
|
|
722
|
+
dragOriginRef.current = {
|
|
723
|
+
zone,
|
|
724
|
+
index: R.indexOf(active.id, zoneIds),
|
|
725
|
+
length: R.length(zoneIds)
|
|
726
|
+
};
|
|
727
|
+
announcedPositionRef.current = `${zone}:${R.indexOf(active.id, zoneIds)}`;
|
|
676
728
|
setActiveId(active.id);
|
|
677
729
|
};
|
|
730
|
+
const applyMove = (movedId, overId, {
|
|
731
|
+
crossZoneOnly
|
|
732
|
+
}) => setCurrentLayout((prev) => {
|
|
733
|
+
const target = getMoveTarget(prev, movedId, overId);
|
|
734
|
+
if (R.isNil(target)) {
|
|
735
|
+
return prev;
|
|
736
|
+
}
|
|
737
|
+
const {
|
|
738
|
+
dragZone,
|
|
739
|
+
dragIndex,
|
|
740
|
+
dropZone,
|
|
741
|
+
index
|
|
742
|
+
} = target;
|
|
743
|
+
const isSameZone = R.equals(dragZone, dropZone);
|
|
744
|
+
if (crossZoneOnly && isSameZone || isSameZone && R.equals(dragIndex, index)) {
|
|
745
|
+
return prev;
|
|
746
|
+
}
|
|
747
|
+
return changeLayout({
|
|
748
|
+
dragIndex,
|
|
749
|
+
hoverIndex: index,
|
|
750
|
+
dragZone,
|
|
751
|
+
dropZone,
|
|
752
|
+
currentLayout: prev
|
|
753
|
+
});
|
|
754
|
+
});
|
|
678
755
|
const handleDragOver = ({
|
|
679
756
|
active: active_0,
|
|
680
757
|
over
|
|
@@ -682,21 +759,8 @@ const CustomTableLayout = ({
|
|
|
682
759
|
if (R.isNil(over)) {
|
|
683
760
|
return;
|
|
684
761
|
}
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
const dropZone = findContainer(prev, over.id);
|
|
688
|
-
if (R.isNil(dragZone) || R.isNil(dropZone) || R.equals(dragZone, dropZone)) {
|
|
689
|
-
return prev;
|
|
690
|
-
}
|
|
691
|
-
const dragIndex = R.indexOf(active_0.id, prev[dragZone]);
|
|
692
|
-
const hoverIndex = R.has(over.id, prev) ? R.length(prev[dropZone]) : R.indexOf(over.id, prev[dropZone]);
|
|
693
|
-
return changeLayout({
|
|
694
|
-
dragIndex,
|
|
695
|
-
hoverIndex,
|
|
696
|
-
dragZone,
|
|
697
|
-
dropZone,
|
|
698
|
-
currentLayout: prev
|
|
699
|
-
});
|
|
762
|
+
applyMove(active_0.id, over.id, {
|
|
763
|
+
crossZoneOnly: true
|
|
700
764
|
});
|
|
701
765
|
};
|
|
702
766
|
const handleDragEnd = ({
|
|
@@ -712,24 +776,8 @@ const CustomTableLayout = ({
|
|
|
712
776
|
}
|
|
713
777
|
return;
|
|
714
778
|
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
const dropZone_0 = findContainer(prev_0, over_0.id);
|
|
718
|
-
if (R.isNil(dragZone_0) || R.isNil(dropZone_0) || R.not(R.equals(dragZone_0, dropZone_0))) {
|
|
719
|
-
return prev_0;
|
|
720
|
-
}
|
|
721
|
-
const dragIndex_0 = R.indexOf(active_1.id, prev_0[dropZone_0]);
|
|
722
|
-
const hoverIndex_0 = R.has(over_0.id, prev_0) ? R.length(prev_0[dropZone_0]) - 1 : R.indexOf(over_0.id, prev_0[dropZone_0]);
|
|
723
|
-
if (hoverIndex_0 < 0 || R.equals(dragIndex_0, hoverIndex_0)) {
|
|
724
|
-
return prev_0;
|
|
725
|
-
}
|
|
726
|
-
return changeLayout({
|
|
727
|
-
dragIndex: dragIndex_0,
|
|
728
|
-
hoverIndex: hoverIndex_0,
|
|
729
|
-
dragZone: dragZone_0,
|
|
730
|
-
dropZone: dropZone_0,
|
|
731
|
-
currentLayout: prev_0
|
|
732
|
-
});
|
|
779
|
+
applyMove(active_1.id, over_0.id, {
|
|
780
|
+
crossZoneOnly: false
|
|
733
781
|
});
|
|
734
782
|
};
|
|
735
783
|
const handleDragCancel = () => {
|
|
@@ -740,6 +788,21 @@ const CustomTableLayout = ({
|
|
|
740
788
|
setCurrentLayout(cloned_0);
|
|
741
789
|
}
|
|
742
790
|
};
|
|
791
|
+
const getDragLabel = (id_0) => itemRenderer(R.prop(id_0, indexedItems));
|
|
792
|
+
const getOrigin = () => {
|
|
793
|
+
const {
|
|
794
|
+
zone: zone_0,
|
|
795
|
+
index: index_0,
|
|
796
|
+
length
|
|
797
|
+
} = dragOriginRef.current || {};
|
|
798
|
+
return {
|
|
799
|
+
dragZone: R.prop(zone_0, boxLabel),
|
|
800
|
+
droppableId: zone_0,
|
|
801
|
+
dragIndex: index_0 + 1,
|
|
802
|
+
length
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
const cancelAnnouncement = () => R.is(String, labels.wcagDragCancel) ? labels.wcagDragCancel : void 0;
|
|
743
806
|
const announcements = {
|
|
744
807
|
onDragStart: ({
|
|
745
808
|
active: active_2
|
|
@@ -747,13 +810,11 @@ const CustomTableLayout = ({
|
|
|
747
810
|
if (R.not(R.is(Function, labels.wcagDragStart))) {
|
|
748
811
|
return void 0;
|
|
749
812
|
}
|
|
750
|
-
const
|
|
751
|
-
const index = R.indexOf(active_2.id, R.propOr([], dragZone_1, layoutRef.current));
|
|
813
|
+
const origin = getOrigin();
|
|
752
814
|
return labels.wcagDragStart({
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
dragLabel: itemRenderer(R.prop(active_2.id, indexedItems))
|
|
815
|
+
...origin,
|
|
816
|
+
index: origin.dragIndex,
|
|
817
|
+
dragLabel: getDragLabel(active_2.id)
|
|
757
818
|
});
|
|
758
819
|
},
|
|
759
820
|
onDragOver: ({
|
|
@@ -763,42 +824,46 @@ const CustomTableLayout = ({
|
|
|
763
824
|
if (R.isNil(over_1) || R.not(R.is(Function, labels.wcagDragUpdate))) {
|
|
764
825
|
return void 0;
|
|
765
826
|
}
|
|
766
|
-
const
|
|
767
|
-
|
|
768
|
-
if (R.isNil(dropZone_1)) {
|
|
827
|
+
const target_0 = getMoveTarget(layoutRef.current, active_3.id, over_1.id);
|
|
828
|
+
if (R.isNil(target_0)) {
|
|
769
829
|
return void 0;
|
|
770
830
|
}
|
|
771
|
-
const
|
|
772
|
-
|
|
773
|
-
|
|
831
|
+
const position = `${target_0.dropZone}:${target_0.index}`;
|
|
832
|
+
if (R.equals(position, announcedPositionRef.current)) {
|
|
833
|
+
return void 0;
|
|
834
|
+
}
|
|
835
|
+
announcedPositionRef.current = position;
|
|
774
836
|
return labels.wcagDragUpdate({
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
index:
|
|
778
|
-
length
|
|
837
|
+
...getOrigin(),
|
|
838
|
+
dropZone: R.prop(target_0.dropZone, boxLabel),
|
|
839
|
+
index: target_0.index + 1,
|
|
840
|
+
length: target_0.length,
|
|
841
|
+
dragLabel: getDragLabel(active_3.id)
|
|
779
842
|
});
|
|
780
843
|
},
|
|
781
844
|
onDragEnd: ({
|
|
782
845
|
active: active_4,
|
|
783
846
|
over: over_2
|
|
784
847
|
}) => {
|
|
785
|
-
if (R.isNil(over_2)
|
|
848
|
+
if (R.isNil(over_2)) {
|
|
849
|
+
return cancelAnnouncement();
|
|
850
|
+
}
|
|
851
|
+
if (R.not(R.is(Function, labels.wcagDragEnd))) {
|
|
786
852
|
return void 0;
|
|
787
853
|
}
|
|
788
|
-
const
|
|
789
|
-
|
|
790
|
-
if (R.isNil(dropZone_2)) {
|
|
854
|
+
const target_1 = getMoveTarget(layoutRef.current, active_4.id, over_2.id);
|
|
855
|
+
if (R.isNil(target_1)) {
|
|
791
856
|
return void 0;
|
|
792
857
|
}
|
|
793
|
-
const dropItems_0 = R.propOr([], dropZone_2, layoutRef.current);
|
|
794
|
-
const index_1 = R.has(over_2.id, layoutRef.current) ? R.length(dropItems_0) - 1 : R.indexOf(over_2.id, dropItems_0);
|
|
795
858
|
return labels.wcagDragEnd({
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
index:
|
|
859
|
+
...getOrigin(),
|
|
860
|
+
dropZone: R.prop(target_1.dropZone, boxLabel),
|
|
861
|
+
index: target_1.index + 1,
|
|
862
|
+
length: target_1.length,
|
|
863
|
+
dragLabel: getDragLabel(active_4.id)
|
|
799
864
|
});
|
|
800
865
|
},
|
|
801
|
-
onDragCancel:
|
|
866
|
+
onDragCancel: cancelAnnouncement
|
|
802
867
|
};
|
|
803
868
|
const screenReaderInstructions = R.is(String, labels.wcagDragExplanation) ? {
|
|
804
869
|
draggable: labels.wcagDragExplanation
|
|
@@ -813,9 +878,6 @@ const CustomTableLayout = ({
|
|
|
813
878
|
] });
|
|
814
879
|
const isOptionalActivated = getIsOptionalActivated(currentLayout, R.prop("id", optionalItem));
|
|
815
880
|
return /* @__PURE__ */ jsxs(Grid, { "data-testid": "table-layout-test-id", container: true, children: [
|
|
816
|
-
/* @__PURE__ */ jsx("div", { id: wcagId, "aria-live": "assertive", style: {
|
|
817
|
-
display: "none"
|
|
818
|
-
}, children: labels.wcagDragExplanation }),
|
|
819
881
|
/* @__PURE__ */ jsxs(DndContext, { sensors, collisionDetection: closestCorners, onDragStart: handleDragStart, onDragOver: handleDragOver, onDragEnd: handleDragEnd, onDragCancel: handleDragCancel, accessibility: {
|
|
820
882
|
announcements,
|
|
821
883
|
...screenReaderInstructions ? {
|
|
@@ -843,7 +905,7 @@ const CustomTableLayout = ({
|
|
|
843
905
|
] })
|
|
844
906
|
] })
|
|
845
907
|
] }),
|
|
846
|
-
/* @__PURE__ */ jsx(DragOverlay, { children: overlayItem ? /* @__PURE__ */ jsx(ItemBody, { item: overlayItem, itemRenderer, dropZoneLabel: overlayZone, itemButtonProps: effectiveButtonProps, canDrag: true
|
|
908
|
+
/* @__PURE__ */ jsx(DragOverlay, { children: overlayItem ? /* @__PURE__ */ jsx(ItemBody, { item: overlayItem, itemRenderer, dropZoneLabel: overlayZone, itemButtonProps: effectiveButtonProps, canDrag: true }) : null })
|
|
847
909
|
] }),
|
|
848
910
|
/* @__PURE__ */ jsxs(Grid, { container: true, justifyContent: "space-between", className: classes.buttonContainer, spacing: 1, children: [
|
|
849
911
|
/* @__PURE__ */ jsx(Grid, { item: true, "data-testid": isOptionalActivated ? "table-layout-deactivate-optional" : "table-layout-activate-optional", children: !R.isNil(optionalItem) && !R.isEmpty(optionalItem) && /* @__PURE__ */ jsx(FormControlLabel, { control: /* @__PURE__ */ jsx(Checkbox, { name: "checkedB", color: "primary" }), label: /* @__PURE__ */ jsx(Typography, { variant: "body2", className: classes.activationButton, children: R.prop("activationLabel", optionalItem) }), className: classes.activationButton, checked: isOptionalActivated, onChange: isOptionalActivated ? deactivateOptionalItem : activateOptionalItem }) }),
|