@kdcloudjs/table 1.2.2-canary.6 → 1.2.2-canary.7
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/@kdcloudjs/table.css +1 -1
- package/dist/@kdcloudjs/table.js +10 -7
- package/dist/@kdcloudjs/table.js.map +1 -1
- package/dist/@kdcloudjs/table.min.css +1 -1
- package/dist/@kdcloudjs/table.min.js +2 -2
- package/dist/@kdcloudjs/table.min.js.map +1 -1
- package/es/table/base/styles.js +1 -1
- package/es/table/pipeline/features/rowDrag.js +8 -5
- package/lib/table/base/styles.js +1 -1
- package/lib/table/pipeline/features/rowDrag.js +8 -5
- package/package.json +1 -1
package/dist/@kdcloudjs/table.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/table v1.2.2-canary.
|
|
3
|
+
* @kdcloudjs/table v1.2.2-canary.6
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -3200,7 +3200,7 @@ var Z = {
|
|
|
3200
3200
|
scrollItem: 30,
|
|
3201
3201
|
loadingIndicator: 40
|
|
3202
3202
|
};
|
|
3203
|
-
var GlobalStyle = Object(styled_components__WEBPACK_IMPORTED_MODULE_4__["createGlobalStyle"])(_templateObject || (_templateObject = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n .", "{\n position: absolute;\n top:0;\n left:0;\n z-index: 9999;\n pointer-events:none;\n user-select: none;\n\n display:flex;\n opacity: 0.9;\n align-items:center;\n min-width:80px;\n padding: 0px 8px;\n border: 1px solid #d9d9d9;\n box-shadow: 0px 6px 16px 3px rgba(0,0,0,0.08);\n border-radius: 2px;\n background: #fff;\n\n .", "{\n font-size:12px;\n overflow:hidden;\n text-overflow: ellipsis;\n white-space:nowrap;\n }\n \n }\n\n .", "{\n position: absolute;\n top:0;\n left:0;\n z-index: 9998;\n pointer-events:none;\n user-select: none;\n height: 2px;\n background: var(--primary-color);\n }\n .", ":before{\n content: \" \";\n position: absolute;\n width: 8px;\n height: 8px;\n top:-4px;\n border: 2px solid var(--primary-color);\n border-radius: 50%;\n background:#fff;\n }\n"])), Classes.rowDragElement, Classes.rowDragElementLabel, Classes.rowDragLine, Classes.treeTableRowDragLine);
|
|
3203
|
+
var GlobalStyle = Object(styled_components__WEBPACK_IMPORTED_MODULE_4__["createGlobalStyle"])(_templateObject || (_templateObject = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n .", "{\n position: absolute;\n top:0;\n left:0;\n z-index: 9999;\n pointer-events:none;\n user-select: none;\n\n display:flex;\n opacity: 0.9;\n align-items:center;\n min-width:80px;\n padding: 0px 8px;\n border: 1px solid #d9d9d9;\n box-shadow: 0px 6px 16px 3px rgba(0,0,0,0.08);\n border-radius: 2px;\n background: #fff;\n max-height:48px;\n\n .", "{\n font-size:12px;\n overflow:hidden;\n text-overflow: ellipsis;\n white-space:nowrap;\n }\n \n }\n\n .", "{\n position: absolute;\n top:0;\n left:0;\n z-index: 9998;\n pointer-events:none;\n user-select: none;\n height: 2px;\n background: var(--primary-color);\n }\n .", ":before{\n content: \" \";\n position: absolute;\n width: 8px;\n height: 8px;\n top:-4px;\n border: 2px solid var(--primary-color);\n border-radius: 50%;\n background:#fff;\n }\n"])), Classes.rowDragElement, Classes.rowDragElementLabel, Classes.rowDragLine, Classes.treeTableRowDragLine);
|
|
3204
3204
|
var outerBorderStyleMixin = Object(styled_components__WEBPACK_IMPORTED_MODULE_4__["css"])(_templateObject2 || (_templateObject2 = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n border-top: 1px solid #cccccc;\n border-right: 1px solid #cccccc;\n border-bottom: 1px solid #cccccc;\n border-left: 1px solid #cccccc;\n\n td.", ",\n th.", " {\n border-left: none;\n }\n td.", ",\n th.", " {\n border-right: none;\n }\n\n thead tr.", " th,\n tbody tr.", " td {\n border-top: none;\n }\n &.has-footer tfoot tr.", " td {\n border-bottom: none;\n }\n &:not(.has-footer) tbody tr.", " td {\n border-bottom: none;\n }\n td.", ":not(.", "){\n border-left: var(---cell-border-vertical);\n }\n td.", ":not(.", "){\n border-right: var(---cell-border-vertical);\n }\n"])), Classes.first, Classes.first, Classes.last, Classes.last, Classes.first, Classes.first, Classes.last, Classes.last, Classes.rowSpan, Classes.first, Classes.rowSpan, Classes.last);
|
|
3205
3205
|
var defaultCSSVariables = {
|
|
3206
3206
|
'--row-height': '48px',
|
|
@@ -8968,7 +8968,7 @@ function rowDrag(opt) {
|
|
|
8968
8968
|
timeoutId = setTimeout(function () {
|
|
8969
8969
|
intervalId = setInterval(function () {
|
|
8970
8970
|
tableBody.scrollTop += moveOffset;
|
|
8971
|
-
},
|
|
8971
|
+
}, 50);
|
|
8972
8972
|
}, 500);
|
|
8973
8973
|
};
|
|
8974
8974
|
var handleDragStart = function handleDragStart(mouseDownEvent) {
|
|
@@ -9062,6 +9062,9 @@ function rowDrag(opt) {
|
|
|
9062
9062
|
}
|
|
9063
9063
|
};
|
|
9064
9064
|
var handleDragStop = function handleDragStop(mouseUpEvent) {
|
|
9065
|
+
if (!isValidDrag) {
|
|
9066
|
+
return;
|
|
9067
|
+
}
|
|
9065
9068
|
removeElement(dragElement);
|
|
9066
9069
|
removeElement(dragLine);
|
|
9067
9070
|
artTable.classList.remove(classnames__WEBPACK_IMPORTED_MODULE_11___default()(_base_styles__WEBPACK_IMPORTED_MODULE_12__["Classes"].rowDragging));
|
|
@@ -9069,10 +9072,6 @@ function rowDrag(opt) {
|
|
|
9069
9072
|
clearTimeout(timeoutId);
|
|
9070
9073
|
clearInterval(intervalId);
|
|
9071
9074
|
clearTimeout(expandRowTimeoutId);
|
|
9072
|
-
while (expandRowCallBackList.length > 0) {
|
|
9073
|
-
var callback = expandRowCallBackList.pop();
|
|
9074
|
-
callback();
|
|
9075
|
-
}
|
|
9076
9075
|
var rowDropZones = rowDragApi.getRowDropZone();
|
|
9077
9076
|
rowDropZones.forEach(function (dropzone) {
|
|
9078
9077
|
var container = dropzone.getContainer();
|
|
@@ -9086,6 +9085,10 @@ function rowDrag(opt) {
|
|
|
9086
9085
|
var dragEvent = createDropTargetEvent(dropTarget, mouseUpEvent, startDataItem, currentDropZone);
|
|
9087
9086
|
dropTarget.onDragStop(dragEvent);
|
|
9088
9087
|
}
|
|
9088
|
+
while (expandRowCallBackList.length > 0) {
|
|
9089
|
+
var callback = expandRowCallBackList.pop();
|
|
9090
|
+
callback();
|
|
9091
|
+
}
|
|
9089
9092
|
};
|
|
9090
9093
|
var mousemove$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_9__["fromEvent"])(window, 'mousemove');
|
|
9091
9094
|
var mouseup$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_9__["fromEvent"])(window, 'mouseup');
|