@atlaskit/editor-plugin-table 7.16.8 → 7.16.9
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/CHANGELOG.md +8 -0
- package/dist/cjs/nodeviews/ExternalDropTargets.js +4 -0
- package/dist/cjs/nodeviews/TableComponent.js +28 -5
- package/dist/cjs/nodeviews/TableContainer.js +32 -11
- package/dist/cjs/toolbar.js +17 -7
- package/dist/cjs/ui/ColumnResizeWidget/index.js +2 -0
- package/dist/cjs/ui/DragHandle/index.js +10 -3
- package/dist/cjs/ui/DragPreview/index.js +1 -0
- package/dist/cjs/ui/FloatingContextualButton/FixedButton.js +12 -1
- package/dist/cjs/ui/FloatingContextualButton/index.js +3 -1
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +7 -2
- package/dist/cjs/ui/FloatingDeleteButton/DeleteButton.js +7 -2
- package/dist/cjs/ui/FloatingDeleteButton/index.js +2 -0
- package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +7 -2
- package/dist/cjs/ui/FloatingDragMenu/DropdownMenu.js +61 -57
- package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +36 -14
- package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +22 -4
- package/dist/cjs/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.js +2 -0
- package/dist/cjs/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
- package/dist/cjs/ui/TableFloatingColumnControls/index.js +3 -1
- package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +12 -3
- package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +2 -0
- package/dist/cjs/ui/TableFloatingControls/NumberColumn/index.js +13 -4
- package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +50 -43
- package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +16 -2
- package/dist/cjs/ui/TableFloatingControls/RowDropTarget/index.js +3 -1
- package/dist/cjs/ui/TableFloatingControls/index.js +80 -76
- package/dist/cjs/ui/icons/DragHandleDisabledIcon.js +3 -1
- package/dist/cjs/ui/icons/DragInMotionIcon.js +3 -1
- package/dist/cjs/ui/icons/MinimisedHandle.js +1 -0
- package/dist/es2019/nodeviews/ExternalDropTargets.js +4 -0
- package/dist/es2019/nodeviews/TableComponent.js +28 -5
- package/dist/es2019/nodeviews/TableContainer.js +32 -11
- package/dist/es2019/toolbar.js +13 -3
- package/dist/es2019/ui/ColumnResizeWidget/index.js +2 -0
- package/dist/es2019/ui/DragHandle/index.js +10 -3
- package/dist/es2019/ui/DragPreview/index.js +1 -0
- package/dist/es2019/ui/FloatingContextualButton/FixedButton.js +12 -1
- package/dist/es2019/ui/FloatingContextualButton/index.js +3 -1
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +7 -2
- package/dist/es2019/ui/FloatingDeleteButton/DeleteButton.js +7 -2
- package/dist/es2019/ui/FloatingDeleteButton/index.js +2 -0
- package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +7 -2
- package/dist/es2019/ui/FloatingDragMenu/DropdownMenu.js +56 -52
- package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +36 -14
- package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +22 -4
- package/dist/es2019/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.js +2 -0
- package/dist/es2019/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
- package/dist/es2019/ui/TableFloatingColumnControls/index.js +3 -1
- package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +12 -3
- package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +2 -0
- package/dist/es2019/ui/TableFloatingControls/NumberColumn/index.js +13 -4
- package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +47 -40
- package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +16 -2
- package/dist/es2019/ui/TableFloatingControls/RowDropTarget/index.js +3 -1
- package/dist/es2019/ui/TableFloatingControls/index.js +78 -74
- package/dist/es2019/ui/icons/DragHandleDisabledIcon.js +3 -1
- package/dist/es2019/ui/icons/DragInMotionIcon.js +3 -1
- package/dist/es2019/ui/icons/MinimisedHandle.js +1 -0
- package/dist/esm/nodeviews/ExternalDropTargets.js +4 -0
- package/dist/esm/nodeviews/TableComponent.js +28 -5
- package/dist/esm/nodeviews/TableContainer.js +32 -11
- package/dist/esm/toolbar.js +16 -4
- package/dist/esm/ui/ColumnResizeWidget/index.js +2 -0
- package/dist/esm/ui/DragHandle/index.js +10 -3
- package/dist/esm/ui/DragPreview/index.js +1 -0
- package/dist/esm/ui/FloatingContextualButton/FixedButton.js +12 -1
- package/dist/esm/ui/FloatingContextualButton/index.js +3 -1
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +7 -2
- package/dist/esm/ui/FloatingDeleteButton/DeleteButton.js +7 -2
- package/dist/esm/ui/FloatingDeleteButton/index.js +2 -0
- package/dist/esm/ui/FloatingDragMenu/DragMenu.js +7 -2
- package/dist/esm/ui/FloatingDragMenu/DropdownMenu.js +61 -57
- package/dist/esm/ui/FloatingInsertButton/InsertButton.js +36 -14
- package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +22 -4
- package/dist/esm/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.js +2 -0
- package/dist/esm/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
- package/dist/esm/ui/TableFloatingColumnControls/index.js +3 -1
- package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +12 -3
- package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +2 -0
- package/dist/esm/ui/TableFloatingControls/NumberColumn/index.js +13 -4
- package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +50 -43
- package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +16 -2
- package/dist/esm/ui/TableFloatingControls/RowDropTarget/index.js +3 -1
- package/dist/esm/ui/TableFloatingControls/index.js +80 -76
- package/dist/esm/ui/icons/DragHandleDisabledIcon.js +3 -1
- package/dist/esm/ui/icons/DragInMotionIcon.js +3 -1
- package/dist/esm/ui/icons/MinimisedHandle.js +1 -0
- package/dist/types/toolbar.d.ts +2 -1
- package/dist/types-ts4.5/toolbar.d.ts +2 -1
- package/docs/0-intro.tsx +1 -0
- package/package.json +1 -1
- package/src/nodeviews/ExternalDropTargets.tsx +4 -0
- package/src/nodeviews/TableComponent.tsx +18 -0
- package/src/nodeviews/TableContainer.tsx +12 -0
- package/src/toolbar.tsx +20 -1
- package/src/ui/ColumnResizeWidget/index.tsx +2 -0
- package/src/ui/DragHandle/index.tsx +3 -0
- package/src/ui/DragPreview/index.tsx +1 -0
- package/src/ui/FloatingContextualButton/FixedButton.tsx +10 -0
- package/src/ui/FloatingContextualButton/index.tsx +1 -0
- package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +3 -0
- package/src/ui/FloatingDeleteButton/DeleteButton.tsx +4 -0
- package/src/ui/FloatingDeleteButton/index.tsx +2 -0
- package/src/ui/FloatingDragMenu/DragMenu.tsx +3 -0
- package/src/ui/FloatingDragMenu/DropdownMenu.tsx +3 -0
- package/src/ui/FloatingInsertButton/InsertButton.tsx +14 -0
- package/src/ui/TableFloatingColumnControls/ColumnControls/index.tsx +16 -1
- package/src/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.tsx +2 -0
- package/src/ui/TableFloatingColumnControls/ColumnDropTargets/index.tsx +2 -0
- package/src/ui/TableFloatingColumnControls/index.tsx +1 -0
- package/src/ui/TableFloatingControls/CornerControls/ClassicCornerControls.tsx +6 -0
- package/src/ui/TableFloatingControls/CornerControls/DragCornerControls.tsx +4 -0
- package/src/ui/TableFloatingControls/NumberColumn/index.tsx +5 -0
- package/src/ui/TableFloatingControls/RowControls/ClassicControls.tsx +5 -0
- package/src/ui/TableFloatingControls/RowControls/DragControls.tsx +15 -1
- package/src/ui/TableFloatingControls/RowDropTarget/index.tsx +1 -0
- package/src/ui/TableFloatingControls/index.tsx +1 -0
- package/src/ui/icons/DragHandleDisabledIcon.tsx +1 -0
- package/src/ui/icons/DragInMotionIcon.tsx +1 -0
- package/src/ui/icons/MinimisedHandle.tsx +1 -0
|
@@ -198,9 +198,11 @@ var FloatingDeleteButton = /*#__PURE__*/function (_Component) {
|
|
|
198
198
|
});
|
|
199
199
|
return /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement("div", {
|
|
200
200
|
style: {
|
|
201
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
201
202
|
position: 'fixed',
|
|
202
203
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
203
204
|
top: pos.top,
|
|
205
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
204
206
|
zIndex: stickyRowZIndex,
|
|
205
207
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
206
208
|
left: rect.left + (pos.left || 0) - (this.state.selectionType === 'column' ? this.state.scrollLeft : 0) - (this.props.isNumberColumnEnabled ? akEditorTableNumberColumnWidth : 0)
|
|
@@ -251,12 +251,17 @@ export var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
251
251
|
size: "medium"
|
|
252
252
|
})),
|
|
253
253
|
elemAfter: jsx("div", {
|
|
254
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
254
255
|
className: DropdownMenuSharedCssClassName.SUBMENU,
|
|
255
256
|
css: dragMenuBackgroundColorStyles
|
|
256
257
|
}, jsx("div", {
|
|
257
|
-
css: cellColourPreviewStyles(background)
|
|
258
|
+
css: cellColourPreviewStyles(background)
|
|
259
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
260
|
+
,
|
|
258
261
|
className: ClassName.DRAG_SUBMENU_ICON
|
|
259
|
-
}), isSubmenuOpen &&
|
|
262
|
+
}), isSubmenuOpen &&
|
|
263
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
264
|
+
jsx("div", {
|
|
260
265
|
className: ClassName.DRAG_SUBMENU,
|
|
261
266
|
ref: handleSubMenuRef
|
|
262
267
|
}, jsx(ArrowKeyNavigationProvider, {
|
|
@@ -82,69 +82,73 @@ export var DropdownMenu = function DropdownMenu(_ref) {
|
|
|
82
82
|
}));
|
|
83
83
|
})));
|
|
84
84
|
};
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
85
|
+
return (
|
|
86
|
+
/*#__PURE__*/
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
88
|
+
React.createElement("div", {
|
|
89
|
+
className: "drag-dropdown-menu-wrapper"
|
|
90
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
91
|
+
className: "drag-dropdown-menu-popup-ref",
|
|
92
|
+
ref: handleRef
|
|
93
|
+
}), /*#__PURE__*/React.createElement(Popup, {
|
|
94
|
+
target: targetRefDiv,
|
|
95
|
+
mountTo: mountPoint,
|
|
96
|
+
boundariesElement: boundariesElement,
|
|
97
|
+
scrollableElement: scrollableElement,
|
|
98
|
+
onPlacementChanged: function onPlacementChanged(placement) {
|
|
99
|
+
setPopupPlacement(placement);
|
|
100
|
+
},
|
|
101
|
+
fitHeight: fitHeight,
|
|
102
|
+
fitWidth: fitWidth,
|
|
103
|
+
zIndex: akEditorFloatingPanelZIndex,
|
|
104
|
+
offset: [offsetX, offsetY],
|
|
105
|
+
allowOutOfBounds: true // required as this popup is child of a parent popup, should be allowed to be out of bound of the parent popup, otherwise horizontal offset is not right
|
|
106
|
+
}, disableKeyboardHandling ? innerMenu() : /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
|
|
107
|
+
closeOnTab: true,
|
|
108
|
+
type: ArrowKeyNavigationType.MENU,
|
|
109
|
+
handleClose: function handleClose() {
|
|
110
|
+
return _handleClose('handle');
|
|
111
|
+
},
|
|
112
|
+
onSelection: function onSelection(index) {
|
|
113
|
+
var results = items.flatMap(function (item) {
|
|
114
|
+
return 'items' in item ? item.items : item;
|
|
115
|
+
});
|
|
113
116
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
});
|
|
125
|
-
if (firstIndex === -1 || index <= firstIndex) {
|
|
126
|
-
onItemActivated && onItemActivated({
|
|
127
|
-
item: results[index]
|
|
117
|
+
// onSelection is called when any focusable element is 'activated'
|
|
118
|
+
// this is an issue as some menu items have toggles, which cause the index value
|
|
119
|
+
// in the callback to be outside of array length.
|
|
120
|
+
// The logic below normalises the index value based on the number
|
|
121
|
+
// of menu items with 2 focusable elements, and adjusts the index to ensure
|
|
122
|
+
// the correct menu item is sent in onItemActivated callback
|
|
123
|
+
var keys = ['row_numbers', 'header_row', 'header_column'];
|
|
124
|
+
var doubleItemCount = 0;
|
|
125
|
+
var firstIndex = results.findIndex(function (value) {
|
|
126
|
+
return keys.includes(value.key);
|
|
128
127
|
});
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
for (var i = firstIndex; i < results.length; i += 1) {
|
|
132
|
-
if (keys.includes(results[i].key)) {
|
|
133
|
-
doubleItemCount += 1;
|
|
134
|
-
}
|
|
135
|
-
if (firstIndex % 2 === 0 && index - doubleItemCount === i) {
|
|
128
|
+
if (firstIndex === -1 || index <= firstIndex) {
|
|
136
129
|
onItemActivated && onItemActivated({
|
|
137
|
-
item: results[
|
|
130
|
+
item: results[index]
|
|
138
131
|
});
|
|
139
132
|
return;
|
|
140
133
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
|
|
134
|
+
for (var i = firstIndex; i < results.length; i += 1) {
|
|
135
|
+
if (keys.includes(results[i].key)) {
|
|
136
|
+
doubleItemCount += 1;
|
|
137
|
+
}
|
|
138
|
+
if (firstIndex % 2 === 0 && index - doubleItemCount === i) {
|
|
139
|
+
onItemActivated && onItemActivated({
|
|
140
|
+
item: results[i]
|
|
141
|
+
});
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
if (firstIndex % 2 === 1 && index - doubleItemCount === i) {
|
|
145
|
+
onItemActivated && onItemActivated({
|
|
146
|
+
item: results[i]
|
|
147
|
+
});
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
146
150
|
}
|
|
147
151
|
}
|
|
148
|
-
}
|
|
149
|
-
|
|
152
|
+
}, innerMenu())))
|
|
153
|
+
);
|
|
150
154
|
};
|
|
@@ -68,12 +68,16 @@ export var InsertButtonForDragAndDrop = function InsertButtonForDragAndDrop(_ref
|
|
|
68
68
|
}),
|
|
69
69
|
position: "top"
|
|
70
70
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
71
72
|
className: classnames(ClassName.DRAG_CONTROLS_INSERT_BUTTON_INNER, (_classnames = {}, _defineProperty(_classnames, ClassName.DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW, isRow), _defineProperty(_classnames, ClassName.DRAG_CONTROLS_INSERT_BUTTON_INNER_COLUMN, !isRow), _classnames))
|
|
72
73
|
}, /*#__PURE__*/React.createElement("button", {
|
|
73
|
-
type: "button"
|
|
74
|
+
type: "button"
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
76
|
+
,
|
|
74
77
|
className: ClassName.DRAG_CONTROLS_INSERT_BUTTON,
|
|
75
78
|
onMouseDown: onMouseDown
|
|
76
79
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
77
81
|
className: ClassName.CONTROLS_BUTTON_ICON,
|
|
78
82
|
width: "16",
|
|
79
83
|
height: "16",
|
|
@@ -84,7 +88,10 @@ export var InsertButtonForDragAndDrop = function InsertButtonForDragAndDrop(_ref
|
|
|
84
88
|
d: "M8 4C7.44771 4 7 4.44771 7 5V7H5C4.44771 7 4 7.44771 4 8C4 8.55229 4.44771 9 5 9H7V11C7 11.5523 7.44771 12 8 12C8.55229 12 9 11.5523 9 11V9H11C11.5523 9 12 8.55229 12 8C12 7.44771 11.5523 7 11 7H9V5C9 4.44771 8.55229 4 8 4Z",
|
|
85
89
|
fill: "currentColor"
|
|
86
90
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
87
|
-
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
92
|
+
className: ClassName.CONTROLS_INSERT_LINE
|
|
93
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
94
|
+
,
|
|
88
95
|
style: type === 'row' ? {
|
|
89
96
|
width: getInsertLineWidth(tableRef, true),
|
|
90
97
|
left: "var(--ds-space-150, 12px)"
|
|
@@ -95,11 +102,16 @@ export var InsertButtonForDragAndDrop = function InsertButtonForDragAndDrop(_ref
|
|
|
95
102
|
}
|
|
96
103
|
})));
|
|
97
104
|
var floatingButtonClassName = isRow ? ClassName.CONTROLS_FLOATING_BUTTON_ROW : ClassName.CONTROLS_FLOATING_BUTTON_COLUMN;
|
|
98
|
-
return
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
105
|
+
return (
|
|
106
|
+
/*#__PURE__*/
|
|
107
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
108
|
+
React.createElement("div", {
|
|
109
|
+
className: floatingButtonClassName
|
|
110
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
112
|
+
className: "".concat(ClassName.DRAG_CONTROLS_INSERT_BUTTON_WRAP, " ").concat(ClassName.CONTROLS_INSERT_ROW)
|
|
113
|
+
}, content))
|
|
114
|
+
);
|
|
103
115
|
};
|
|
104
116
|
export var DragAndDropInsertButton = injectIntl(InsertButtonForDragAndDrop);
|
|
105
117
|
var InsertButton = function InsertButton(_ref3) {
|
|
@@ -117,7 +129,9 @@ var InsertButton = function InsertButton(_ref3) {
|
|
|
117
129
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
118
130
|
className: ClassName.CONTROLS_INSERT_BUTTON_INNER
|
|
119
131
|
}, /*#__PURE__*/React.createElement("button", {
|
|
120
|
-
type: "button"
|
|
132
|
+
type: "button"
|
|
133
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
134
|
+
,
|
|
121
135
|
className: ClassName.CONTROLS_INSERT_BUTTON,
|
|
122
136
|
onMouseDown: onMouseDown
|
|
123
137
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
@@ -127,7 +141,10 @@ var InsertButton = function InsertButton(_ref3) {
|
|
|
127
141
|
fill: "currentColor",
|
|
128
142
|
fillRule: "evenodd"
|
|
129
143
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
130
|
-
|
|
144
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
145
|
+
className: ClassName.CONTROLS_INSERT_LINE
|
|
146
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
147
|
+
,
|
|
131
148
|
style: type === 'row' ? {
|
|
132
149
|
width: getInsertLineWidth(tableRef)
|
|
133
150
|
} : {
|
|
@@ -135,10 +152,15 @@ var InsertButton = function InsertButton(_ref3) {
|
|
|
135
152
|
}
|
|
136
153
|
})));
|
|
137
154
|
var floatingButtonClassName = type === 'column' ? ClassName.CONTROLS_FLOATING_BUTTON_COLUMN : ClassName.CONTROLS_FLOATING_BUTTON_ROW;
|
|
138
|
-
return
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
155
|
+
return (
|
|
156
|
+
/*#__PURE__*/
|
|
157
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
158
|
+
React.createElement("div", {
|
|
159
|
+
className: floatingButtonClassName
|
|
160
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
161
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
162
|
+
className: "".concat(ClassName.CONTROLS_INSERT_BUTTON_WRAP, " ").concat(ClassName.CONTROLS_INSERT_ROW)
|
|
163
|
+
}, content))
|
|
164
|
+
);
|
|
143
165
|
};
|
|
144
166
|
export default injectIntl(InsertButton);
|
|
@@ -129,14 +129,23 @@ export var ColumnControls = function ColumnControls(_ref) {
|
|
|
129
129
|
key: type,
|
|
130
130
|
style: {
|
|
131
131
|
gridColumn: gridColumn,
|
|
132
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
132
133
|
gridRow: '1',
|
|
134
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
133
135
|
display: 'flex',
|
|
136
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
134
137
|
justifyContent: 'center',
|
|
138
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
135
139
|
alignItems: 'center',
|
|
140
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
136
141
|
height: 'fit-content',
|
|
142
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
137
143
|
placeSelf: 'center',
|
|
144
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
138
145
|
zIndex: 99,
|
|
146
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
139
147
|
width: '100%',
|
|
148
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
140
149
|
position: 'relative'
|
|
141
150
|
},
|
|
142
151
|
"data-testid": "table-floating-column-".concat(isHover ? colIndex : isPlaceholder ? appearance : selectedColIndexes[0], "-drag-handle")
|
|
@@ -178,15 +187,19 @@ export var ColumnControls = function ColumnControls(_ref) {
|
|
|
178
187
|
};
|
|
179
188
|
var containerWidth = isNumberColumnEnabled && tableContainerWidth ? tableContainerWidth - akEditorTableNumberColumnWidth : tableContainerWidth;
|
|
180
189
|
return /*#__PURE__*/React.createElement("div", {
|
|
190
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
181
191
|
className: ClassName.DRAG_COLUMN_CONTROLS,
|
|
182
192
|
onMouseMove: handleMouseMove
|
|
183
193
|
}, /*#__PURE__*/React.createElement("div", {
|
|
184
|
-
ref: columnControlsRef
|
|
194
|
+
ref: columnControlsRef
|
|
195
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
196
|
+
,
|
|
185
197
|
className: ClassName.DRAG_COLUMN_CONTROLS_INNER,
|
|
186
198
|
"data-testid": "table-floating-column-controls",
|
|
187
199
|
style: {
|
|
200
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
188
201
|
gridTemplateColumns: widths,
|
|
189
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
202
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
190
203
|
marginTop: marginTop,
|
|
191
204
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
192
205
|
width: stickyTop ? containerWidth : undefined,
|
|
@@ -201,12 +214,17 @@ export var ColumnControls = function ColumnControls(_ref) {
|
|
|
201
214
|
gridColumn: "".concat(startIndex + 1, " / span 1")
|
|
202
215
|
},
|
|
203
216
|
"data-start-index": startIndex,
|
|
204
|
-
"data-end-index": endIndex
|
|
217
|
+
"data-end-index": endIndex
|
|
218
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
219
|
+
,
|
|
205
220
|
className: ClassName.DRAG_COLUMN_FLOATING_INSERT_DOT_WRAPPER,
|
|
206
221
|
contentEditable: false,
|
|
207
222
|
key: index
|
|
208
223
|
}, /*#__PURE__*/React.createElement("div", {
|
|
209
|
-
|
|
224
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
225
|
+
className: ClassName.DRAG_COLUMN_FLOATING_INSERT_DOT
|
|
226
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
227
|
+
,
|
|
210
228
|
style: columnParams.length - 1 === index ? {
|
|
211
229
|
right: '0'
|
|
212
230
|
} : {}
|
|
@@ -80,7 +80,9 @@ export var ColumnDropTarget = function ColumnDropTarget(_ref) {
|
|
|
80
80
|
height: height && "".concat(height, "px"),
|
|
81
81
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
82
82
|
marginTop: marginTop && "".concat(marginTop, "px"),
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
83
84
|
pointerEvents: 'auto',
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
84
86
|
flexShrink: 0
|
|
85
87
|
},
|
|
86
88
|
"data-drop-target-index": index,
|
|
@@ -17,10 +17,13 @@ export var ColumnDropTargets = function ColumnDropTargets(_ref) {
|
|
|
17
17
|
dropTargetRef.current.style.marginLeft = "-".concat((_getScrollOffset = getScrollOffset === null || getScrollOffset === void 0 ? void 0 : getScrollOffset()) !== null && _getScrollOffset !== void 0 ? _getScrollOffset : 0, "px");
|
|
18
18
|
}
|
|
19
19
|
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
-
ref: dropTargetRef
|
|
20
|
+
ref: dropTargetRef
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
22
|
+
,
|
|
21
23
|
className: ClassName.DRAG_COLUMN_DROP_TARGET_CONTROLS,
|
|
22
24
|
contentEditable: false
|
|
23
25
|
}, /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
24
27
|
className: ClassName.DRAG_COLUMN_CONTROLS_INNER,
|
|
25
28
|
"data-testid": "table-floating-column-controls-drop-targets"
|
|
26
29
|
}, colWidths === null || colWidths === void 0 ? void 0 : colWidths.map(function (width, index) {
|
|
@@ -71,7 +71,9 @@ export var TableFloatingColumnControls = function TableFloatingColumnControls(_r
|
|
|
71
71
|
containerRef === null || containerRef === void 0 || (_containerRef$current2 = containerRef.current) === null || _containerRef$current2 === void 0 || _containerRef$current2.style.removeProperty('top');
|
|
72
72
|
}
|
|
73
73
|
return /*#__PURE__*/React.createElement("div", {
|
|
74
|
-
ref: containerRef
|
|
74
|
+
ref: containerRef
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
76
|
+
,
|
|
75
77
|
className: ClassName.DRAG_COLUMN_CONTROLS_WRAPPER,
|
|
76
78
|
"data-testid": "table-floating-column-controls-wrapper"
|
|
77
79
|
}, /*#__PURE__*/React.createElement(ColumnControls, {
|
|
@@ -71,6 +71,7 @@ var CornerControlComponent = /*#__PURE__*/function (_Component) {
|
|
|
71
71
|
}
|
|
72
72
|
var isActive = this.isActive();
|
|
73
73
|
return /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
74
75
|
className: classnames(ClassName.CORNER_CONTROLS, {
|
|
75
76
|
active: isActive,
|
|
76
77
|
sticky: this.props.stickyTop !== undefined
|
|
@@ -82,18 +83,26 @@ var CornerControlComponent = /*#__PURE__*/function (_Component) {
|
|
|
82
83
|
contentEditable: false
|
|
83
84
|
}, /*#__PURE__*/React.createElement("button", {
|
|
84
85
|
"aria-label": formatMessage(messages.cornerControl),
|
|
85
|
-
type: "button"
|
|
86
|
+
type: "button"
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
88
|
+
,
|
|
86
89
|
className: classnames(ClassName.CONTROLS_CORNER_BUTTON, {
|
|
87
90
|
danger: isActive && isInDanger
|
|
88
91
|
}),
|
|
89
92
|
onClick: this.selectTable,
|
|
90
93
|
onMouseOver: this.hoverTable,
|
|
91
94
|
onMouseOut: this.clearHoverSelection
|
|
92
|
-
}), !isHeaderRowEnabled &&
|
|
95
|
+
}), !isHeaderRowEnabled &&
|
|
96
|
+
/*#__PURE__*/
|
|
97
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
98
|
+
React.createElement("div", {
|
|
93
99
|
className: ClassName.CORNER_CONTROLS_INSERT_ROW_MARKER
|
|
94
100
|
}, /*#__PURE__*/React.createElement("div", {
|
|
95
101
|
className: ClassName.CONTROLS_INSERT_MARKER
|
|
96
|
-
})), !isHeaderColumnEnabled &&
|
|
102
|
+
})), !isHeaderColumnEnabled &&
|
|
103
|
+
/*#__PURE__*/
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
105
|
+
React.createElement("div", {
|
|
97
106
|
className: ClassName.CORNER_CONTROLS_INSERT_COLUMN_MARKER
|
|
98
107
|
}, /*#__PURE__*/React.createElement("div", {
|
|
99
108
|
className: ClassName.CONTROLS_INSERT_MARKER
|
|
@@ -33,6 +33,7 @@ var DragCornerControlsComponent = function DragCornerControlsComponent(_ref) {
|
|
|
33
33
|
return null;
|
|
34
34
|
}
|
|
35
35
|
return /*#__PURE__*/React.createElement("button", {
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
36
37
|
className: classnames(ClassName.DRAG_CORNER_BUTTON, {
|
|
37
38
|
active: isActive,
|
|
38
39
|
danger: isActive && isInDanger
|
|
@@ -78,6 +79,7 @@ var DragCornerControlsComponentWithSelection = function DragCornerControlsCompon
|
|
|
78
79
|
return null;
|
|
79
80
|
}
|
|
80
81
|
return /*#__PURE__*/React.createElement("button", {
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
81
83
|
className: classnames(ClassName.DRAG_CORNER_BUTTON, {
|
|
82
84
|
active: isActive,
|
|
83
85
|
danger: isActive && isInDanger
|
|
@@ -100,6 +100,7 @@ var NumberColumn = /*#__PURE__*/function (_Component) {
|
|
|
100
100
|
updateCellHoverLocation = _this$props5.updateCellHoverLocation;
|
|
101
101
|
var rowHeights = getRowHeights(tableRef);
|
|
102
102
|
return /*#__PURE__*/React.createElement("div", {
|
|
103
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
103
104
|
className: ClassName.NUMBERED_COLUMN,
|
|
104
105
|
style: {
|
|
105
106
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
@@ -109,17 +110,25 @@ var NumberColumn = /*#__PURE__*/function (_Component) {
|
|
|
109
110
|
contentEditable: false
|
|
110
111
|
}, rowHeights.map(function (rowHeight, index) {
|
|
111
112
|
return isDragAndDropEnabled ? /*#__PURE__*/React.createElement("div", {
|
|
112
|
-
key: "wrapper-".concat(index)
|
|
113
|
+
key: "wrapper-".concat(index)
|
|
114
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
115
|
+
,
|
|
113
116
|
className: _this2.getClassNames(index, true),
|
|
114
|
-
"data-index": index
|
|
117
|
+
"data-index": index
|
|
118
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
119
|
+
,
|
|
115
120
|
style: _this2.getCellStyles(index, rowHeight),
|
|
116
121
|
onMouseOver: function onMouseOver() {
|
|
117
122
|
return updateCellHoverLocation(index);
|
|
118
123
|
}
|
|
119
124
|
}, hasHeaderRow ? index > 0 ? index : null : index + 1) : /*#__PURE__*/React.createElement("div", {
|
|
120
|
-
key: "wrapper-".concat(index)
|
|
125
|
+
key: "wrapper-".concat(index)
|
|
126
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
127
|
+
,
|
|
121
128
|
className: _this2.getClassNames(index),
|
|
122
|
-
"data-index": index
|
|
129
|
+
"data-index": index
|
|
130
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
131
|
+
,
|
|
123
132
|
style: _this2.getCellStyles(index, rowHeight),
|
|
124
133
|
onClick: function onClick(event) {
|
|
125
134
|
return _this2.selectRow(index, event);
|
|
@@ -52,50 +52,57 @@ var RowControlsComponent = /*#__PURE__*/function (_Component) {
|
|
|
52
52
|
var rowsParams = getRowsParams(rowHeights);
|
|
53
53
|
var firstRow = tableRef.querySelector('tr');
|
|
54
54
|
var hasHeaderRow = firstRow ? firstRow.getAttribute('data-header-row') : false;
|
|
55
|
-
return
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
className: "".concat(ClassName.ROW_CONTROLS_BUTTON_WRAP, " ").concat(getRowClassNames(startIndex, selectionState || selection, hoveredRows, isInDanger, isResizing), " ").concat(thisRowSticky ? 'sticky' : ''),
|
|
71
|
-
key: startIndex,
|
|
72
|
-
style: {
|
|
73
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
74
|
-
height: height,
|
|
75
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
76
|
-
marginTop: "".concat(marginTop, "px"),
|
|
77
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
78
|
-
top: thisRowSticky ? "".concat(_this2.props.stickyTop + 3, "px") : undefined,
|
|
79
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
80
|
-
paddingTop: thisRowSticky ? "".concat(tableControlsSpacing, "px") : undefined
|
|
55
|
+
return (
|
|
56
|
+
/*#__PURE__*/
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
58
|
+
React.createElement("div", {
|
|
59
|
+
className: ClassName.ROW_CONTROLS
|
|
60
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
61
|
+
className: ClassName.ROW_CONTROLS_INNER
|
|
62
|
+
}, rowsParams.map(function (_ref, index) {
|
|
63
|
+
var startIndex = _ref.startIndex,
|
|
64
|
+
endIndex = _ref.endIndex,
|
|
65
|
+
height = _ref.height;
|
|
66
|
+
// if previous row was header row, add its height to our margin
|
|
67
|
+
var marginTop = -1;
|
|
68
|
+
if (index === 1 && hasHeaderRow && _this2.props.stickyTop !== undefined) {
|
|
69
|
+
marginTop += rowHeights[index - 1] + tableToolbarSize;
|
|
81
70
|
}
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
71
|
+
var thisRowSticky = _this2.props.stickyTop !== undefined && index === 0 && hasHeaderRow;
|
|
72
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
74
|
+
className: "".concat(ClassName.ROW_CONTROLS_BUTTON_WRAP, " ").concat(getRowClassNames(startIndex, selectionState || selection, hoveredRows, isInDanger, isResizing), " ").concat(thisRowSticky ? 'sticky' : ''),
|
|
75
|
+
key: startIndex,
|
|
76
|
+
style: {
|
|
77
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
78
|
+
height: height,
|
|
79
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
80
|
+
marginTop: "".concat(marginTop, "px"),
|
|
81
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
82
|
+
top: thisRowSticky ? "".concat(_this2.props.stickyTop + 3, "px") : undefined,
|
|
83
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
84
|
+
paddingTop: thisRowSticky ? "".concat(tableControlsSpacing, "px") : undefined
|
|
85
|
+
}
|
|
86
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
87
|
+
"aria-label": formatMessage(messages.rowControl),
|
|
88
|
+
type: "button"
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
90
|
+
,
|
|
91
|
+
className: "".concat(ClassName.ROW_CONTROLS_BUTTON, " ").concat(ClassName.CONTROLS_BUTTON),
|
|
92
|
+
onClick: function onClick(event) {
|
|
93
|
+
return _this2.props.selectRow(startIndex, event.shiftKey);
|
|
94
|
+
},
|
|
95
|
+
onMouseOver: function onMouseOver() {
|
|
96
|
+
return _this2.props.hoverRows([startIndex]);
|
|
97
|
+
},
|
|
98
|
+
onMouseOut: _this2.clearHoverSelection,
|
|
99
|
+
"data-start-index": startIndex,
|
|
100
|
+
"data-end-index": endIndex
|
|
101
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
102
|
+
className: ClassName.CONTROLS_INSERT_MARKER
|
|
103
|
+
}));
|
|
104
|
+
})))
|
|
105
|
+
);
|
|
99
106
|
}
|
|
100
107
|
}]);
|
|
101
108
|
return RowControlsComponent;
|
|
@@ -136,13 +136,18 @@ var DragControlsComponent = function DragControlsComponent(_ref) {
|
|
|
136
136
|
key: type,
|
|
137
137
|
style: {
|
|
138
138
|
gridRow: gridRow,
|
|
139
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
139
140
|
gridColumn: '2',
|
|
140
141
|
// DragHandle uses `transform: rotate(90)`, which doesn't affect its parent (this div) causing the width of this element to be the true height of the drag handle
|
|
142
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
141
143
|
display: 'flex',
|
|
144
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
142
145
|
width: '9px',
|
|
146
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
143
147
|
height: '100%',
|
|
148
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
144
149
|
position: 'relative',
|
|
145
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
150
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
146
151
|
right: '-0.5px'
|
|
147
152
|
},
|
|
148
153
|
"data-testid": "table-floating-row-".concat(isHover ? rowIndex : selectedRowIndexes[0], "-drag-handle")
|
|
@@ -183,6 +188,7 @@ var DragControlsComponent = function DragControlsComponent(_ref) {
|
|
|
183
188
|
return null;
|
|
184
189
|
}
|
|
185
190
|
return /*#__PURE__*/React.createElement("div", {
|
|
191
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
186
192
|
className: ClassName.DRAG_ROW_CONTROLS,
|
|
187
193
|
style: {
|
|
188
194
|
gridTemplateRows: heights,
|
|
@@ -200,10 +206,13 @@ var DragControlsComponent = function DragControlsComponent(_ref) {
|
|
|
200
206
|
}, /*#__PURE__*/React.createElement("div", {
|
|
201
207
|
style: {
|
|
202
208
|
gridRow: "".concat(index + 1, " / span 1"),
|
|
209
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
203
210
|
gridColumn: '2'
|
|
204
211
|
},
|
|
205
212
|
"data-start-index": startIndex,
|
|
206
|
-
"data-end-index": endIndex
|
|
213
|
+
"data-end-index": endIndex
|
|
214
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
215
|
+
,
|
|
207
216
|
className: ClassName.DRAG_ROW_FLOATING_INSERT_DOT_WRAPPER,
|
|
208
217
|
contentEditable: false,
|
|
209
218
|
key: "insert-dot-".concat(index)
|
|
@@ -214,11 +223,16 @@ var DragControlsComponent = function DragControlsComponent(_ref) {
|
|
|
214
223
|
index: index,
|
|
215
224
|
localId: currentNodeLocalId,
|
|
216
225
|
style: {
|
|
226
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
217
227
|
gridColumn: '1 / span 3',
|
|
218
228
|
gridRow: "".concat(index + 1, " / span 1"),
|
|
229
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
219
230
|
height: '100%',
|
|
231
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
220
232
|
pointerEvents: 'auto',
|
|
233
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
221
234
|
position: 'relative',
|
|
235
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
222
236
|
left: "var(--ds-space-negative-100, -8px)"
|
|
223
237
|
}
|
|
224
238
|
}));
|