oolib 2.109.0 → 2.109.1
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/components/Lexical/Plugins/TableCellResizer/index.d.ts +0 -1
- package/dist/components/Lexical/Plugins/TableCellResizer/index.js +3 -3
- package/dist/components/Lexical/Plugins/TableCellResizer/index.styled.d.ts +9 -0
- package/dist/components/Lexical/Plugins/TableCellResizer/index.styled.js +21 -0
- package/package.json +1 -1
|
@@ -26,7 +26,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
require("./style.css");
|
|
30
29
|
var LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext");
|
|
31
30
|
var useLexicalEditable_1 = __importDefault(require("@lexical/react/useLexicalEditable"));
|
|
32
31
|
var table_1 = require("@lexical/table");
|
|
@@ -34,6 +33,7 @@ var lexical_1 = require("lexical");
|
|
|
34
33
|
var React = __importStar(require("react"));
|
|
35
34
|
var react_1 = require("react");
|
|
36
35
|
var react_dom_1 = require("react-dom");
|
|
36
|
+
var index_styled_1 = require("./index.styled");
|
|
37
37
|
var MIN_ROW_HEIGHT = 33;
|
|
38
38
|
var MIN_COLUMN_WIDTH = 50;
|
|
39
39
|
function TableCellResizer(_a) {
|
|
@@ -271,8 +271,8 @@ function TableCellResizer(_a) {
|
|
|
271
271
|
}, [activeCell, draggingDirection, mouseCurrentPos]);
|
|
272
272
|
var resizerStyles = getResizers();
|
|
273
273
|
return (React.createElement("div", { ref: resizerRef }, activeCell != null && !isSelectingGrid && (React.createElement(React.Fragment, null,
|
|
274
|
-
React.createElement(
|
|
275
|
-
React.createElement(
|
|
274
|
+
React.createElement(index_styled_1.StyledTableCellResizer, { className: "TableCellResizer__resizer TableCellResizer__ui", style: resizerStyles.right || undefined, onMouseDown: toggleResize('right') }),
|
|
275
|
+
React.createElement(index_styled_1.StyledTableCellResizer, { className: "TableCellResizer__resizer TableCellResizer__ui", style: resizerStyles.bottom || undefined, onMouseDown: toggleResize('bottom') })))));
|
|
276
276
|
}
|
|
277
277
|
function TableCellResizerPlugin() {
|
|
278
278
|
var editor = (0, LexicalComposerContext_1.useLexicalComposerContext)()[0];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare const StyledTableCellResizer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
11
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
12
|
+
return cooked;
|
|
13
|
+
};
|
|
14
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.StyledTableCellResizer = void 0;
|
|
19
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
20
|
+
exports.StyledTableCellResizer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n\n"], ["\n position: absolute;\n\n"])));
|
|
21
|
+
var templateObject_1;
|