@kdcloudjs/kdesign 1.8.13 → 1.8.15
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/kdesign.css +1 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +977 -456
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +1 -1
- package/dist/kdesign.min.js +10 -10
- package/dist/kdesign.min.js.map +1 -1
- package/es/city-picker/city-picker.js +12 -28
- package/es/city-picker/option.js +1 -5
- package/es/table/api.js +6 -1
- package/es/table/feature/useRowDrag.d.ts +1 -1
- package/es/table/feature/useRowDrag.js +2 -4
- package/es/table/interface.d.ts +1 -0
- package/es/table/table.js +1 -1
- package/es/tree/tree.js +1 -0
- package/lib/city-picker/city-picker.js +12 -28
- package/lib/city-picker/option.js +1 -5
- package/lib/table/api.js +6 -1
- package/lib/table/feature/useRowDrag.d.ts +1 -1
- package/lib/table/feature/useRowDrag.js +2 -4
- package/lib/table/interface.d.ts +1 -0
- package/lib/table/table.js +1 -1
- package/lib/tree/tree.js +1 -0
- package/package.json +2 -2
package/dist/kdesign.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/kdesign v1.8.
|
|
3
|
+
* @kdcloudjs/kdesign v1.8.15
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -8139,66 +8139,72 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8139
8139
|
|
|
8140
8140
|
"use strict";
|
|
8141
8141
|
__webpack_require__.r(__webpack_exports__);
|
|
8142
|
-
/* harmony import */ var
|
|
8143
|
-
/* harmony import */ var
|
|
8144
|
-
/* harmony import */ var
|
|
8145
|
-
/* harmony import */ var
|
|
8146
|
-
/* harmony import */ var
|
|
8147
|
-
/* harmony import */ var
|
|
8148
|
-
/* harmony import */ var
|
|
8149
|
-
/* harmony import */ var
|
|
8150
|
-
/* harmony import */ var
|
|
8151
|
-
/* harmony import */ var
|
|
8152
|
-
/* harmony import */ var
|
|
8153
|
-
/* harmony import */ var
|
|
8154
|
-
/* harmony import */ var
|
|
8155
|
-
/* harmony import */ var
|
|
8156
|
-
/* harmony import */ var
|
|
8157
|
-
/* harmony import */ var
|
|
8158
|
-
/* harmony import */ var
|
|
8159
|
-
/* harmony import */ var
|
|
8160
|
-
/* harmony import */ var
|
|
8161
|
-
/* harmony import */ var
|
|
8162
|
-
/* harmony import */ var
|
|
8163
|
-
/* harmony import */ var
|
|
8164
|
-
/* harmony import */ var
|
|
8165
|
-
/* harmony import */ var
|
|
8166
|
-
/* harmony import */ var
|
|
8167
|
-
/* harmony import */ var
|
|
8168
|
-
/* harmony import */ var
|
|
8169
|
-
/* harmony import */ var
|
|
8170
|
-
/* harmony import */ var
|
|
8171
|
-
/* harmony import */ var
|
|
8172
|
-
/* harmony import */ var
|
|
8173
|
-
/* harmony import */ var
|
|
8174
|
-
/* harmony import */ var
|
|
8175
|
-
/* harmony import */ var
|
|
8176
|
-
/* harmony import */ var
|
|
8177
|
-
/* harmony import */ var
|
|
8178
|
-
/* harmony import */ var
|
|
8179
|
-
/* harmony import */ var
|
|
8180
|
-
/* harmony import */ var
|
|
8181
|
-
/* harmony import */ var
|
|
8182
|
-
/* harmony import */ var
|
|
8183
|
-
/* harmony import */ var
|
|
8184
|
-
/* harmony import */ var
|
|
8185
|
-
/* harmony import */ var
|
|
8186
|
-
/* harmony import */ var
|
|
8187
|
-
/* harmony import */ var
|
|
8188
|
-
/* harmony import */ var
|
|
8189
|
-
/* harmony import */ var
|
|
8190
|
-
/* harmony import */ var
|
|
8191
|
-
/* harmony import */ var
|
|
8192
|
-
/* harmony import */ var
|
|
8193
|
-
/* harmony import */ var
|
|
8194
|
-
/* harmony import */ var
|
|
8195
|
-
/* harmony import */ var
|
|
8196
|
-
/* harmony import */ var
|
|
8142
|
+
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js");
|
|
8143
|
+
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
|
|
8144
|
+
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js");
|
|
8145
|
+
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
|
|
8146
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js");
|
|
8147
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
|
|
8148
|
+
/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js");
|
|
8149
|
+
/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__);
|
|
8150
|
+
/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
|
|
8151
|
+
/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
8152
|
+
/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");
|
|
8153
|
+
/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
8154
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
|
|
8155
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
8156
|
+
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js");
|
|
8157
|
+
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
8158
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
|
|
8159
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
8160
|
+
/* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.regexp.constructor.js */ "./node_modules/core-js/modules/es.regexp.constructor.js");
|
|
8161
|
+
/* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
8162
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");
|
|
8163
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
8164
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");
|
|
8165
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
8166
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ "./node_modules/core-js/modules/es.array.join.js");
|
|
8167
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
8168
|
+
/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");
|
|
8169
|
+
/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
8170
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");
|
|
8171
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
8172
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");
|
|
8173
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
8174
|
+
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");
|
|
8175
|
+
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
8176
|
+
/* harmony import */ var core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.array.find-index.js */ "./node_modules/core-js/modules/es.array.find-index.js");
|
|
8177
|
+
/* harmony import */ var core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
8178
|
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ "./node_modules/core-js/modules/es.object.keys.js");
|
|
8179
|
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
8180
|
+
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
|
|
8181
|
+
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
8182
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
|
|
8183
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
8184
|
+
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptors.js");
|
|
8185
|
+
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
8186
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! react */ "react");
|
|
8187
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_22__);
|
|
8188
|
+
/* harmony import */ var _utils_hooks__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../_utils/hooks */ "./components/_utils/hooks.tsx");
|
|
8189
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
8190
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_24__);
|
|
8191
|
+
/* harmony import */ var _config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../config-provider/ConfigContext */ "./components/config-provider/ConfigContext.tsx");
|
|
8192
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../_utils */ "./components/_utils/index.ts");
|
|
8193
|
+
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../index */ "./components/index.tsx");
|
|
8194
|
+
/* harmony import */ var _popper__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../popper */ "./components/popper/index.tsx");
|
|
8195
|
+
/* harmony import */ var _option__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./option */ "./components/city-picker/option.tsx");
|
|
8196
|
+
/* harmony import */ var lodash_escapeRegExp__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! lodash/escapeRegExp */ "./node_modules/lodash/escapeRegExp.js");
|
|
8197
|
+
/* harmony import */ var lodash_escapeRegExp__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(lodash_escapeRegExp__WEBPACK_IMPORTED_MODULE_30__);
|
|
8198
|
+
/* harmony import */ var _utils_KeyCode__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../_utils/KeyCode */ "./components/_utils/KeyCode.ts");
|
|
8199
|
+
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! lodash/isObject */ "./node_modules/lodash/isObject.js");
|
|
8200
|
+
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_32__);
|
|
8201
|
+
|
|
8197
8202
|
|
|
8198
8203
|
|
|
8199
8204
|
|
|
8200
8205
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8201
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
8206
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8207
|
+
|
|
8202
8208
|
|
|
8203
8209
|
|
|
8204
8210
|
|
|
@@ -8228,19 +8234,19 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
8228
8234
|
|
|
8229
8235
|
|
|
8230
8236
|
var getCityId = function getCityId(data) {
|
|
8231
|
-
if (
|
|
8237
|
+
if (lodash_isObject__WEBPACK_IMPORTED_MODULE_32___default()(data)) {
|
|
8232
8238
|
return data === null || data === void 0 ? void 0 : data.id;
|
|
8233
8239
|
}
|
|
8234
8240
|
return data;
|
|
8235
8241
|
};
|
|
8236
8242
|
var InternalSelect = function InternalSelect(props, ref) {
|
|
8237
8243
|
var _classNames3, _classNames6;
|
|
8238
|
-
var _useContext = Object(
|
|
8244
|
+
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_22__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_25__["default"]),
|
|
8239
8245
|
getPrefixCls = _useContext.getPrefixCls,
|
|
8240
8246
|
prefixCls = _useContext.prefixCls,
|
|
8241
8247
|
userDefaultProps = _useContext.compDefaultProps,
|
|
8242
8248
|
locale = _useContext.locale;
|
|
8243
|
-
var selectProps = Object(
|
|
8249
|
+
var selectProps = Object(_utils__WEBPACK_IMPORTED_MODULE_26__["getCompProps"])('CityPicker', userDefaultProps, props);
|
|
8244
8250
|
var cityPickerLangMsg = locale.getCompLangMsg({
|
|
8245
8251
|
componentName: 'CityPicker'
|
|
8246
8252
|
});
|
|
@@ -8282,11 +8288,11 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8282
8288
|
foreignList = _selectProps$foreignL === void 0 ? [] : _selectProps$foreignL,
|
|
8283
8289
|
itemRender = selectProps.itemRender,
|
|
8284
8290
|
onTabPaneChange = selectProps.onTabPaneChange;
|
|
8285
|
-
var _useMergedState = Object(
|
|
8291
|
+
var _useMergedState = Object(_utils_hooks__WEBPACK_IMPORTED_MODULE_23__["useMergedState"])(undefined, {
|
|
8286
8292
|
value: getCityId(value),
|
|
8287
8293
|
defaultValue: getCityId(defaultValue)
|
|
8288
8294
|
}),
|
|
8289
|
-
_useMergedState2 =
|
|
8295
|
+
_useMergedState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useMergedState, 2),
|
|
8290
8296
|
initValue = _useMergedState2[0],
|
|
8291
8297
|
setInitValue = _useMergedState2[1];
|
|
8292
8298
|
var tabsData = [{
|
|
@@ -8296,85 +8302,76 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8296
8302
|
id: 'foreign',
|
|
8297
8303
|
name: cityPickerLangMsg === null || cityPickerLangMsg === void 0 ? void 0 : cityPickerLangMsg.tabsInternation
|
|
8298
8304
|
}];
|
|
8299
|
-
var innerRef = Object(
|
|
8305
|
+
var innerRef = Object(react__WEBPACK_IMPORTED_MODULE_22__["useRef"])();
|
|
8300
8306
|
var selectRef = ref || innerRef;
|
|
8301
|
-
var searchRef = Object(
|
|
8302
|
-
var selectionRef = Object(
|
|
8303
|
-
var clearRef = Object(
|
|
8304
|
-
var optionsListRef = Object(
|
|
8305
|
-
var _useState = Object(
|
|
8306
|
-
_useState2 =
|
|
8307
|
+
var searchRef = Object(react__WEBPACK_IMPORTED_MODULE_22__["useRef"])(null); // 搜索框ref
|
|
8308
|
+
var selectionRef = Object(react__WEBPACK_IMPORTED_MODULE_22__["useRef"])(null);
|
|
8309
|
+
var clearRef = Object(react__WEBPACK_IMPORTED_MODULE_22__["useRef"])(null);
|
|
8310
|
+
var optionsListRef = Object(react__WEBPACK_IMPORTED_MODULE_22__["useRef"])(null);
|
|
8311
|
+
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_22__["useState"])(typeof props.visible === 'undefined' ? !!defaultOpen : !!props.visible),
|
|
8312
|
+
_useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
|
|
8307
8313
|
optionShow = _useState2[0],
|
|
8308
8314
|
setOptionShow = _useState2[1];
|
|
8309
|
-
var _useState3 = Object(
|
|
8310
|
-
_useState4 =
|
|
8315
|
+
var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_22__["useState"])(''),
|
|
8316
|
+
_useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
|
|
8311
8317
|
searchValue = _useState4[0],
|
|
8312
8318
|
setSearchValue = _useState4[1];
|
|
8313
|
-
var _useState5 = Object(
|
|
8314
|
-
_useState6 =
|
|
8319
|
+
var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_22__["useState"])(false),
|
|
8320
|
+
_useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState5, 2),
|
|
8315
8321
|
focusd = _useState6[0],
|
|
8316
8322
|
setFocusd = _useState6[1];
|
|
8317
|
-
var _useState7 = Object(
|
|
8318
|
-
_useState8 =
|
|
8323
|
+
var _useState7 = Object(react__WEBPACK_IMPORTED_MODULE_22__["useState"])(false),
|
|
8324
|
+
_useState8 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState7, 2),
|
|
8319
8325
|
afterChangeFocus = _useState8[0],
|
|
8320
8326
|
setAfterChangeFocus = _useState8[1];
|
|
8321
|
-
var _useState9 = Object(
|
|
8322
|
-
_useState10 =
|
|
8327
|
+
var _useState9 = Object(react__WEBPACK_IMPORTED_MODULE_22__["useState"])(null),
|
|
8328
|
+
_useState10 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState9, 2),
|
|
8323
8329
|
seletedCity = _useState10[0],
|
|
8324
8330
|
setSeletedCity = _useState10[1];
|
|
8325
|
-
var _useState11 = Object(
|
|
8326
|
-
_useState12 =
|
|
8331
|
+
var _useState11 = Object(react__WEBPACK_IMPORTED_MODULE_22__["useState"])('domestic'),
|
|
8332
|
+
_useState12 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState11, 2),
|
|
8327
8333
|
tabsValue = _useState12[0],
|
|
8328
8334
|
setTabsValue = _useState12[1];
|
|
8329
8335
|
var isDomestic = function isDomestic(type) {
|
|
8330
8336
|
return type === 'domestic';
|
|
8331
8337
|
};
|
|
8332
8338
|
var selectPrefixCls = getPrefixCls(prefixCls, 'city-picker', customPrefixcls);
|
|
8333
|
-
var cityPickerCls =
|
|
8334
|
-
var selectionCls =
|
|
8339
|
+
var cityPickerCls = classnames__WEBPACK_IMPORTED_MODULE_24___default()(selectPrefixCls, className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, "".concat(selectPrefixCls, "-visible"), optionShow));
|
|
8340
|
+
var selectionCls = classnames__WEBPACK_IMPORTED_MODULE_24___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, "".concat(selectPrefixCls, "-selector"), true));
|
|
8335
8341
|
|
|
8336
8342
|
// 公共样式
|
|
8337
|
-
var commCls =
|
|
8338
|
-
Object(
|
|
8343
|
+
var commCls = classnames__WEBPACK_IMPORTED_MODULE_24___default()((_classNames3 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, "".concat(selectPrefixCls, "-bordered"), borderType === 'bordered'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, "".concat(selectPrefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, "".concat(selectPrefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, "".concat(selectPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, "".concat(selectPrefixCls, "-wrapper"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, "".concat(selectPrefixCls, "-show-search"), focusd), _classNames3));
|
|
8344
|
+
Object(react__WEBPACK_IMPORTED_MODULE_22__["useEffect"])(function () {
|
|
8339
8345
|
if (typeof value === 'undefined') return;
|
|
8340
|
-
if (
|
|
8346
|
+
if (lodash_isObject__WEBPACK_IMPORTED_MODULE_32___default()(value)) {
|
|
8341
8347
|
setSeletedCity(value);
|
|
8342
8348
|
return;
|
|
8343
8349
|
}
|
|
8344
|
-
var cityList = [].concat(
|
|
8350
|
+
var cityList = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(commonList), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(domesticList), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(foreignList));
|
|
8345
8351
|
var city = cityList.find(function (city) {
|
|
8346
8352
|
return city.id === value;
|
|
8347
8353
|
});
|
|
8348
8354
|
setSeletedCity(city);
|
|
8349
8355
|
}, [commonList, domesticList, foreignList, value]);
|
|
8350
|
-
Object(
|
|
8356
|
+
Object(react__WEBPACK_IMPORTED_MODULE_22__["useEffect"])(function () {
|
|
8351
8357
|
if (typeof props.visible !== 'undefined') {
|
|
8352
8358
|
setOptionShow(props.visible);
|
|
8353
8359
|
}
|
|
8354
8360
|
}, [props.visible]);
|
|
8355
|
-
var handleFocus = Object(
|
|
8361
|
+
var handleFocus = Object(react__WEBPACK_IMPORTED_MODULE_22__["useCallback"])(function (e) {
|
|
8356
8362
|
e.stopPropagation();
|
|
8357
8363
|
setFocusd(true);
|
|
8358
8364
|
onFocus && onFocus(e);
|
|
8359
8365
|
}, [onFocus]);
|
|
8360
|
-
var handleBlur = Object(
|
|
8366
|
+
var handleBlur = Object(react__WEBPACK_IMPORTED_MODULE_22__["useCallback"])(function (e) {
|
|
8361
8367
|
e.stopPropagation();
|
|
8362
8368
|
setFocusd(false);
|
|
8363
8369
|
setAfterChangeFocus(false);
|
|
8364
8370
|
onBlur && onBlur(e);
|
|
8365
8371
|
}, [onBlur]);
|
|
8366
|
-
Object(react__WEBPACK_IMPORTED_MODULE_20__["useEffect"])(function () {
|
|
8367
|
-
selectionRef.current.addEventListener('mouseup', function (e) {
|
|
8368
|
-
var _e$target;
|
|
8369
|
-
var isCloseBtn = (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.className.indexOf('kd-tag-close-icon')) > -1;
|
|
8370
|
-
if (isCloseBtn) {
|
|
8371
|
-
e.stopPropagation();
|
|
8372
|
-
}
|
|
8373
|
-
});
|
|
8374
|
-
}, []);
|
|
8375
8372
|
|
|
8376
8373
|
// 输入框变化搜索内容
|
|
8377
|
-
var handleSearchChange = Object(
|
|
8374
|
+
var handleSearchChange = Object(react__WEBPACK_IMPORTED_MODULE_22__["useCallback"])(function (event) {
|
|
8378
8375
|
var val = event.currentTarget.value;
|
|
8379
8376
|
setOptionShow(true);
|
|
8380
8377
|
setSearchValue(val);
|
|
@@ -8382,7 +8379,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8382
8379
|
}, [onSearch]);
|
|
8383
8380
|
|
|
8384
8381
|
// 清除搜索内容
|
|
8385
|
-
var handleClear = Object(
|
|
8382
|
+
var handleClear = Object(react__WEBPACK_IMPORTED_MODULE_22__["useCallback"])(function () {
|
|
8386
8383
|
if (searchRef.current) {
|
|
8387
8384
|
searchRef.current.value = '';
|
|
8388
8385
|
setSearchValue('');
|
|
@@ -8404,20 +8401,20 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8404
8401
|
var _classNames4;
|
|
8405
8402
|
if (disabled) return null;
|
|
8406
8403
|
var suffixIcon = selectProps.suffixIcon;
|
|
8407
|
-
var arrowIconCls =
|
|
8404
|
+
var arrowIconCls = classnames__WEBPACK_IMPORTED_MODULE_24___default()((_classNames4 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames4, "".concat(selectPrefixCls, "-icon-arrow"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames4, "".concat(selectPrefixCls, "-icon-arrow-up"), optionShow), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames4, "".concat(selectPrefixCls, "-icon-arrow-down"), !optionShow), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames4, "".concat(selectPrefixCls, "-icon-arrow-focus"), optionShow), _classNames4));
|
|
8408
8405
|
var iconShow = allowClear && !disabled && (initValue !== null && initValue !== void 0 ? initValue : '') !== '';
|
|
8409
|
-
return /*#__PURE__*/
|
|
8406
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_22___default.a.Fragment, null, iconShow && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("span", {
|
|
8410
8407
|
onClick: handleReset,
|
|
8411
8408
|
onMouseDown: function onMouseDown(e) {
|
|
8412
8409
|
return e.preventDefault();
|
|
8413
8410
|
},
|
|
8414
8411
|
className: "".concat(selectPrefixCls, "-icon-clear"),
|
|
8415
8412
|
ref: clearRef
|
|
8416
|
-
}, clearIcon || /*#__PURE__*/
|
|
8413
|
+
}, clearIcon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_27__["Icon"], {
|
|
8417
8414
|
type: "close"
|
|
8418
|
-
})), showArrow && /*#__PURE__*/
|
|
8415
|
+
})), showArrow && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("span", {
|
|
8419
8416
|
className: arrowIconCls
|
|
8420
|
-
}, suffixIcon || /*#__PURE__*/
|
|
8417
|
+
}, suffixIcon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_27__["Icon"], {
|
|
8421
8418
|
type: "arrow-down"
|
|
8422
8419
|
})));
|
|
8423
8420
|
};
|
|
@@ -8426,21 +8423,21 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8426
8423
|
var renderNotContent = function renderNotContent(msg) {
|
|
8427
8424
|
var notFoundContent = selectProps.notFoundContent;
|
|
8428
8425
|
var emptyContent = notFoundContent || msg;
|
|
8429
|
-
return /*#__PURE__*/
|
|
8426
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div", {
|
|
8430
8427
|
className: "".concat(selectPrefixCls, "-dropdown-empty")
|
|
8431
8428
|
}, emptyContent);
|
|
8432
8429
|
};
|
|
8433
8430
|
var getHighlightText = function getHighlightText(text, inputValue) {
|
|
8434
8431
|
if (!inputValue || !text) return text;
|
|
8435
8432
|
var regex = new RegExp(Array.isArray(inputValue) ? inputValue.map(function (item) {
|
|
8436
|
-
return "(".concat(
|
|
8437
|
-
}).join('|') : "(".concat(
|
|
8433
|
+
return "(".concat(lodash_escapeRegExp__WEBPACK_IMPORTED_MODULE_30___default()(item), ")");
|
|
8434
|
+
}).join('|') : "(".concat(lodash_escapeRegExp__WEBPACK_IMPORTED_MODULE_30___default()(inputValue), ")"), 'i');
|
|
8438
8435
|
var strArr = text === null || text === void 0 ? void 0 : text.split(regex);
|
|
8439
|
-
return /*#__PURE__*/
|
|
8440
|
-
return regex !== null && regex !== void 0 && regex.test(item) ? /*#__PURE__*/
|
|
8436
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_22___default.a.Fragment, null, strArr === null || strArr === void 0 ? void 0 : strArr.map(function (item, index) {
|
|
8437
|
+
return regex !== null && regex !== void 0 && regex.test(item) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("span", {
|
|
8441
8438
|
key: index,
|
|
8442
8439
|
className: "".concat(selectPrefixCls, "-highlight")
|
|
8443
|
-
}, item) : /*#__PURE__*/
|
|
8440
|
+
}, item) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("span", {
|
|
8444
8441
|
key: index
|
|
8445
8442
|
}, item);
|
|
8446
8443
|
}));
|
|
@@ -8464,14 +8461,14 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8464
8461
|
if (!data.length) {
|
|
8465
8462
|
return renderNotContent(notContent);
|
|
8466
8463
|
}
|
|
8467
|
-
return /*#__PURE__*/
|
|
8464
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div", {
|
|
8468
8465
|
className: "".concat(selectPrefixCls, "-list"),
|
|
8469
8466
|
ref: optionsListRef,
|
|
8470
8467
|
onMouseDown: function onMouseDown(e) {
|
|
8471
8468
|
return e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
8472
8469
|
}
|
|
8473
8470
|
}, data.map(function (item, index) {
|
|
8474
|
-
return /*#__PURE__*/
|
|
8471
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_option__WEBPACK_IMPORTED_MODULE_29__["default"], {
|
|
8475
8472
|
key: item.id,
|
|
8476
8473
|
value: initValue,
|
|
8477
8474
|
city: item,
|
|
@@ -8490,9 +8487,9 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8490
8487
|
}));
|
|
8491
8488
|
};
|
|
8492
8489
|
var renderLoading = function renderLoading() {
|
|
8493
|
-
return /*#__PURE__*/
|
|
8490
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div", {
|
|
8494
8491
|
className: "".concat(selectPrefixCls, "-dropdown-loading")
|
|
8495
|
-
}, /*#__PURE__*/
|
|
8492
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_27__["Spin"], {
|
|
8496
8493
|
type: "container"
|
|
8497
8494
|
}));
|
|
8498
8495
|
};
|
|
@@ -8503,20 +8500,20 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8503
8500
|
|
|
8504
8501
|
// 渲染下拉列表框
|
|
8505
8502
|
var renderContent = function renderContent() {
|
|
8506
|
-
return loading ? renderLoading() : /*#__PURE__*/
|
|
8503
|
+
return loading ? renderLoading() : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_22___default.a.Fragment, null, searchValue ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_22___default.a.Fragment, null, isDomestic(type) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_27__["Tabs"], {
|
|
8507
8504
|
noContainer: true,
|
|
8508
8505
|
onChange: toggleTabPane,
|
|
8509
8506
|
activeKey: tabsValue
|
|
8510
8507
|
}, tabsData.map(function (item) {
|
|
8511
|
-
return /*#__PURE__*/
|
|
8508
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_27__["Tabs"].TabPane, {
|
|
8512
8509
|
key: item.id,
|
|
8513
8510
|
tab: item.name
|
|
8514
8511
|
}, item);
|
|
8515
|
-
})), tabsValue === 'domestic' ? renderNodeList(domesticList, cityPickerLangMsg === null || cityPickerLangMsg === void 0 ? void 0 : cityPickerLangMsg.emptyText) : renderNodeList(foreignList, cityPickerLangMsg === null || cityPickerLangMsg === void 0 ? void 0 : cityPickerLangMsg.emptyText)) : /*#__PURE__*/
|
|
8512
|
+
})), tabsValue === 'domestic' ? renderNodeList(domesticList, cityPickerLangMsg === null || cityPickerLangMsg === void 0 ? void 0 : cityPickerLangMsg.emptyText) : renderNodeList(foreignList, cityPickerLangMsg === null || cityPickerLangMsg === void 0 ? void 0 : cityPickerLangMsg.emptyText)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_22___default.a.Fragment, null, !!commonList.length && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div", {
|
|
8516
8513
|
className: "".concat(selectPrefixCls, "-dropdown-common")
|
|
8517
8514
|
}, cityPickerLangMsg === null || cityPickerLangMsg === void 0 ? void 0 : cityPickerLangMsg.common), renderNodeList(commonList, cityPickerLangMsg === null || cityPickerLangMsg === void 0 ? void 0 : cityPickerLangMsg.commonEmptyText, true)));
|
|
8518
8515
|
};
|
|
8519
|
-
var _renderCityInfo = Object(
|
|
8516
|
+
var _renderCityInfo = Object(react__WEBPACK_IMPORTED_MODULE_22__["useCallback"])(function (data) {
|
|
8520
8517
|
var isCommon = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
8521
8518
|
var flag = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
8522
8519
|
var symbol = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ', ';
|
|
@@ -8541,15 +8538,15 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8541
8538
|
var hiddenStyle = !!searchValue || (initValue !== null && initValue !== void 0 ? initValue : '') !== '' ? {
|
|
8542
8539
|
visibility: 'hidden'
|
|
8543
8540
|
} : undefined;
|
|
8544
|
-
var itemCls =
|
|
8545
|
-
return /*#__PURE__*/
|
|
8541
|
+
var itemCls = classnames__WEBPACK_IMPORTED_MODULE_24___default()((_classNames5 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames5, "".concat(selectPrefixCls, "-content-item"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames5, "".concat(selectPrefixCls, "-content-item-seleted"), afterChangeFocus), _classNames5));
|
|
8542
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_22___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div", {
|
|
8546
8543
|
className: singleCls,
|
|
8547
8544
|
ref: selectionRef
|
|
8548
|
-
}, /*#__PURE__*/
|
|
8545
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div", {
|
|
8549
8546
|
className: "".concat(selectPrefixCls, "-content")
|
|
8550
|
-
}, /*#__PURE__*/
|
|
8547
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("span", {
|
|
8551
8548
|
className: "".concat(selectPrefixCls, "-content-search")
|
|
8552
|
-
}, /*#__PURE__*/
|
|
8549
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("input", {
|
|
8553
8550
|
ref: searchRef,
|
|
8554
8551
|
value: searchValue,
|
|
8555
8552
|
className: "".concat(selectPrefixCls, "-content-search-input"),
|
|
@@ -8557,39 +8554,32 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8557
8554
|
onFocus: handleFocus,
|
|
8558
8555
|
onBlur: handleBlur,
|
|
8559
8556
|
readOnly: !!disabled
|
|
8560
|
-
}), !searchValue && /*#__PURE__*/
|
|
8557
|
+
}), !searchValue && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("span", {
|
|
8561
8558
|
className: itemCls,
|
|
8562
8559
|
title: seletedCity === null || seletedCity === void 0 ? void 0 : seletedCity.name
|
|
8563
|
-
}, seletedCity === null || seletedCity === void 0 ? void 0 : seletedCity.name)), !searchValue && /*#__PURE__*/
|
|
8560
|
+
}, seletedCity === null || seletedCity === void 0 ? void 0 : seletedCity.name)), !searchValue && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("span", {
|
|
8564
8561
|
className: "".concat(selectPrefixCls, "-content-info")
|
|
8565
|
-
}, _renderCityInfo(seletedCity))), /*#__PURE__*/
|
|
8562
|
+
}, _renderCityInfo(seletedCity))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("span", {
|
|
8566
8563
|
className: "".concat(selectPrefixCls, "-placeholder"),
|
|
8567
8564
|
style: hiddenStyle
|
|
8568
|
-
}, !disabled ? placeholder : null), /*#__PURE__*/
|
|
8565
|
+
}, !disabled ? placeholder : null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("span", {
|
|
8569
8566
|
className: "".concat(selectPrefixCls, "-suffix")
|
|
8570
8567
|
}, renderSuffix())));
|
|
8571
8568
|
};
|
|
8572
|
-
var singleCls =
|
|
8573
|
-
Object(
|
|
8569
|
+
var singleCls = classnames__WEBPACK_IMPORTED_MODULE_24___default()(commCls, (_classNames6 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames6, "".concat(selectPrefixCls, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames6, "".concat(selectPrefixCls, "-focused"), !disabled && focusd || optionShow), _classNames6));
|
|
8570
|
+
Object(react__WEBPACK_IMPORTED_MODULE_22__["useEffect"])(function () {
|
|
8574
8571
|
if (optionShow && !disabled) {
|
|
8575
8572
|
var onDropdownVisibleChange = selectProps.onDropdownVisibleChange;
|
|
8576
8573
|
onDropdownVisibleChange && onDropdownVisibleChange(true);
|
|
8577
8574
|
}
|
|
8578
8575
|
}, [optionShow]);
|
|
8579
|
-
Object(
|
|
8576
|
+
Object(react__WEBPACK_IMPORTED_MODULE_22__["useEffect"])(function () {
|
|
8580
8577
|
var _clearRef$current;
|
|
8581
|
-
|
|
8582
|
-
e.stopPropagation();
|
|
8583
|
-
};
|
|
8584
|
-
(_clearRef$current = clearRef.current) === null || _clearRef$current === void 0 ? void 0 : _clearRef$current.addEventListener('mouseup', fn);
|
|
8585
|
-
return function () {
|
|
8586
|
-
var _clearRef$current2;
|
|
8587
|
-
(_clearRef$current2 = clearRef.current) === null || _clearRef$current2 === void 0 ? void 0 : _clearRef$current2.removeEventListener('mouseup', fn);
|
|
8588
|
-
};
|
|
8578
|
+
(_clearRef$current = clearRef.current) === null || _clearRef$current === void 0 ? void 0 : _clearRef$current.addEventListener('click', handleReset);
|
|
8589
8579
|
}, [initValue]);
|
|
8590
8580
|
|
|
8591
8581
|
// keyboard
|
|
8592
|
-
var curkeyboardList = Object(
|
|
8582
|
+
var curkeyboardList = Object(react__WEBPACK_IMPORTED_MODULE_22__["useMemo"])(function () {
|
|
8593
8583
|
if (!searchValue) {
|
|
8594
8584
|
return commonList;
|
|
8595
8585
|
} else if (tabsValue === 'domestic') {
|
|
@@ -8607,35 +8597,37 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8607
8597
|
}
|
|
8608
8598
|
return -1;
|
|
8609
8599
|
};
|
|
8610
|
-
var _useState13 = Object(
|
|
8611
|
-
_useState14 =
|
|
8600
|
+
var _useState13 = Object(react__WEBPACK_IMPORTED_MODULE_22__["useState"])(-1),
|
|
8601
|
+
_useState14 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState13, 2),
|
|
8612
8602
|
activeIndex = _useState14[0],
|
|
8613
8603
|
setActiveIndex = _useState14[1];
|
|
8614
8604
|
var initActiveIndex = function initActiveIndex() {
|
|
8615
8605
|
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
|
|
8616
8606
|
setActiveIndex(index === undefined ? getActiveIndex(0) : index);
|
|
8617
8607
|
};
|
|
8618
|
-
Object(
|
|
8619
|
-
|
|
8620
|
-
|
|
8608
|
+
Object(react__WEBPACK_IMPORTED_MODULE_22__["useEffect"])(function () {
|
|
8609
|
+
var index = curkeyboardList.findIndex(function (item) {
|
|
8610
|
+
return item.id === initValue;
|
|
8611
|
+
});
|
|
8612
|
+
initActiveIndex(index >= 0 ? index : undefined);
|
|
8613
|
+
}, [curkeyboardList, initValue]);
|
|
8621
8614
|
var onInternalKeyDown = function onInternalKeyDown(e) {
|
|
8622
8615
|
var which = e.which;
|
|
8623
8616
|
// open
|
|
8624
|
-
if (which ===
|
|
8617
|
+
if (which === _utils_KeyCode__WEBPACK_IMPORTED_MODULE_31__["default"].ENTER || which === _utils_KeyCode__WEBPACK_IMPORTED_MODULE_31__["default"].UP || which === _utils_KeyCode__WEBPACK_IMPORTED_MODULE_31__["default"].DOWN) {
|
|
8625
8618
|
e.preventDefault();
|
|
8626
|
-
setOptionShow(true);
|
|
8627
8619
|
}
|
|
8628
8620
|
// up、down、enter、esc
|
|
8629
8621
|
if (optionShow) {
|
|
8630
8622
|
var offset = 0;
|
|
8631
8623
|
switch (which) {
|
|
8632
|
-
case
|
|
8624
|
+
case _utils_KeyCode__WEBPACK_IMPORTED_MODULE_31__["default"].UP:
|
|
8633
8625
|
offset = -1;
|
|
8634
8626
|
break;
|
|
8635
|
-
case
|
|
8627
|
+
case _utils_KeyCode__WEBPACK_IMPORTED_MODULE_31__["default"].DOWN:
|
|
8636
8628
|
offset = 1;
|
|
8637
8629
|
break;
|
|
8638
|
-
case
|
|
8630
|
+
case _utils_KeyCode__WEBPACK_IMPORTED_MODULE_31__["default"].ENTER:
|
|
8639
8631
|
{
|
|
8640
8632
|
var item = curkeyboardList[activeIndex];
|
|
8641
8633
|
if (!item) return;
|
|
@@ -8643,7 +8635,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8643
8635
|
handleVisibleChange(false);
|
|
8644
8636
|
break;
|
|
8645
8637
|
}
|
|
8646
|
-
case
|
|
8638
|
+
case _utils_KeyCode__WEBPACK_IMPORTED_MODULE_31__["default"].ESC:
|
|
8647
8639
|
handleVisibleChange(false);
|
|
8648
8640
|
break;
|
|
8649
8641
|
default:
|
|
@@ -8666,13 +8658,13 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8666
8658
|
}
|
|
8667
8659
|
};
|
|
8668
8660
|
var renderCityPicker = function renderCityPicker() {
|
|
8669
|
-
return /*#__PURE__*/
|
|
8661
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div", {
|
|
8670
8662
|
className: cityPickerCls,
|
|
8671
8663
|
ref: selectRef,
|
|
8672
8664
|
style: style
|
|
8673
|
-
}, showDescription && /*#__PURE__*/
|
|
8665
|
+
}, showDescription && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("span", {
|
|
8674
8666
|
className: "".concat(selectPrefixCls, "-description")
|
|
8675
|
-
}, description), /*#__PURE__*/
|
|
8667
|
+
}, description), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("span", {
|
|
8676
8668
|
className: selectionCls,
|
|
8677
8669
|
tabIndex: disabled ? -1 : 0,
|
|
8678
8670
|
onFocus: function onFocus() {
|
|
@@ -8691,15 +8683,11 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8691
8683
|
minWidth: width,
|
|
8692
8684
|
maxWidth: 600
|
|
8693
8685
|
}, dropdownStyle), {}, {
|
|
8694
|
-
width: (dropdownStyle === null || dropdownStyle === void 0 ? void 0 : dropdownStyle.width) || 'auto'
|
|
8695
|
-
zIndex: 1050
|
|
8686
|
+
width: (dropdownStyle === null || dropdownStyle === void 0 ? void 0 : dropdownStyle.width) || 'auto'
|
|
8696
8687
|
}, popperStyle);
|
|
8697
8688
|
}
|
|
8698
8689
|
};
|
|
8699
8690
|
var handleVisibleChange = function handleVisibleChange(visible) {
|
|
8700
|
-
if (!visible) {
|
|
8701
|
-
initActiveIndex(-1);
|
|
8702
|
-
}
|
|
8703
8691
|
if (visible !== optionShow) {
|
|
8704
8692
|
props.visible === undefined && setOptionShow(visible);
|
|
8705
8693
|
onVisibleChange && onVisibleChange(visible);
|
|
@@ -8712,16 +8700,17 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8712
8700
|
defaultVisible: optionShow,
|
|
8713
8701
|
visible: optionShow,
|
|
8714
8702
|
onVisibleChange: handleVisibleChange,
|
|
8715
|
-
clickToClose: !searchValue,
|
|
8716
8703
|
onTransitionEnd: function onTransitionEnd() {
|
|
8717
8704
|
if (optionShow === false) {
|
|
8718
8705
|
handleClear();
|
|
8719
8706
|
}
|
|
8720
8707
|
}
|
|
8721
8708
|
});
|
|
8722
|
-
return
|
|
8709
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_popper__WEBPACK_IMPORTED_MODULE_28__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
8710
|
+
tip: renderContent()
|
|
8711
|
+
}, popperProps), renderCityPicker());
|
|
8723
8712
|
};
|
|
8724
|
-
var Select = /*#__PURE__*/
|
|
8713
|
+
var Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.forwardRef(InternalSelect);
|
|
8725
8714
|
Select.displayName = 'CityPicker';
|
|
8726
8715
|
/* harmony default export */ __webpack_exports__["default"] = (Select);
|
|
8727
8716
|
|
|
@@ -8833,16 +8822,12 @@ var InternalOption = function InternalOption(props, ref) {
|
|
|
8833
8822
|
var handleOnMouseEnter = function handleOnMouseEnter() {
|
|
8834
8823
|
onChangeActiveIndex && onChangeActiveIndex(index);
|
|
8835
8824
|
};
|
|
8836
|
-
var handleOnMouseLeave = function handleOnMouseLeave() {
|
|
8837
|
-
onChangeActiveIndex && onChangeActiveIndex(-1);
|
|
8838
|
-
};
|
|
8839
8825
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", {
|
|
8840
8826
|
ref: optionRef,
|
|
8841
8827
|
className: optionCls,
|
|
8842
8828
|
title: name,
|
|
8843
8829
|
onClick: handleClick,
|
|
8844
|
-
onMouseEnter: handleOnMouseEnter
|
|
8845
|
-
onMouseLeave: handleOnMouseLeave
|
|
8830
|
+
onMouseEnter: handleOnMouseEnter
|
|
8846
8831
|
}, typeof itemRender === 'function' ? itemRender(city) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
|
|
8847
8832
|
className: "".concat(selectOptionPrefixCls, "-content")
|
|
8848
8833
|
}, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
|
|
@@ -35958,6 +35943,10 @@ function getApi(pipelineRef) {
|
|
|
35958
35943
|
var pipeline = pipelineRef.current;
|
|
35959
35944
|
return (_pipeline$ref5 = pipeline.ref) === null || _pipeline$ref5 === void 0 ? void 0 : _pipeline$ref5.current.rowHeightManager.cache;
|
|
35960
35945
|
}
|
|
35946
|
+
function getFeatureApi(featureName) {
|
|
35947
|
+
var pipeline = pipelineRef.current;
|
|
35948
|
+
return pipeline.getFeatureApi(featureName);
|
|
35949
|
+
}
|
|
35961
35950
|
return {
|
|
35962
35951
|
getColumns: getColumns,
|
|
35963
35952
|
getDataSource: getDataSource,
|
|
@@ -35965,7 +35954,8 @@ function getApi(pipelineRef) {
|
|
|
35965
35954
|
clearRangeSelection: clearRangeSelection,
|
|
35966
35955
|
ensureRowIndexVisible: ensureRowIndexVisible,
|
|
35967
35956
|
ensureColumnVisible: ensureColumnVisible,
|
|
35968
|
-
getHeightCache: getHeightCache
|
|
35957
|
+
getHeightCache: getHeightCache,
|
|
35958
|
+
getFeatureApi: getFeatureApi
|
|
35969
35959
|
};
|
|
35970
35960
|
}
|
|
35971
35961
|
|
|
@@ -36467,11 +36457,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
36467
36457
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
36468
36458
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
36469
36459
|
|
|
36470
|
-
function useRowDrag(pipeline, rowDrag
|
|
36460
|
+
function useRowDrag(pipeline, rowDrag) {
|
|
36471
36461
|
if (rowDrag) {
|
|
36472
|
-
pipeline.use(_kdcloudjs_table__WEBPACK_IMPORTED_MODULE_8__["features"].rowDrag(_objectSpread({
|
|
36473
|
-
rowHeight: estimatedRowHeight
|
|
36474
|
-
}, rowDrag)));
|
|
36462
|
+
pipeline.use(_kdcloudjs_table__WEBPACK_IMPORTED_MODULE_8__["features"].rowDrag(_objectSpread({}, rowDrag)));
|
|
36475
36463
|
}
|
|
36476
36464
|
}
|
|
36477
36465
|
/* harmony default export */ __webpack_exports__["default"] = (useRowDrag);
|
|
@@ -36676,7 +36664,7 @@ var Table = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"]
|
|
|
36676
36664
|
Object(_feature_useRangeSelection__WEBPACK_IMPORTED_MODULE_20__["default"])(pipeline, rangeSelection);
|
|
36677
36665
|
Object(_feature_mergeCellHover__WEBPACK_IMPORTED_MODULE_21__["default"])(pipeline);
|
|
36678
36666
|
Object(_feature_useFooterDataSource__WEBPACK_IMPORTED_MODULE_23__["default"])(pipeline, footerDataSource);
|
|
36679
|
-
Object(_feature_useRowDrag__WEBPACK_IMPORTED_MODULE_25__["default"])(pipeline, rowDrag
|
|
36667
|
+
Object(_feature_useRowDrag__WEBPACK_IMPORTED_MODULE_25__["default"])(pipeline, rowDrag);
|
|
36680
36668
|
|
|
36681
36669
|
/* -------------------------------------------------------------------------- */
|
|
36682
36670
|
/* after useTablePipeline, merge pipeline.getProps result */
|
|
@@ -40181,6 +40169,7 @@ var InternalTree = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.fo
|
|
|
40181
40169
|
setCheckedKeys(checkState.checkedKeys);
|
|
40182
40170
|
setHalfCheckedKeys(checkState.halfCheckedKeys);
|
|
40183
40171
|
}
|
|
40172
|
+
setScrollKey(undefined);
|
|
40184
40173
|
onCheck && onCheck(checkState.checkedKeys, {
|
|
40185
40174
|
event: event,
|
|
40186
40175
|
node: node,
|
|
@@ -46958,11 +46947,11 @@ function formatElement(msg, variables) {
|
|
|
46958
46947
|
var t = item.t,
|
|
46959
46948
|
v = item.v;
|
|
46960
46949
|
if (t === 0 && v !== '') {
|
|
46961
|
-
elements.push(
|
|
46950
|
+
elements.push(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("span", {
|
|
46962
46951
|
key: index
|
|
46963
46952
|
}, v));
|
|
46964
46953
|
} else if (t === 1) {
|
|
46965
|
-
elements.push(
|
|
46954
|
+
elements.push(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.cloneElement(variables[v], {
|
|
46966
46955
|
key: index
|
|
46967
46956
|
}));
|
|
46968
46957
|
}
|
|
@@ -47463,12 +47452,64 @@ function EmptyHtmlTable(_ref) {
|
|
|
47463
47452
|
style: {
|
|
47464
47453
|
height: emptyCellHeight !== null && emptyCellHeight !== void 0 ? emptyCellHeight : 200
|
|
47465
47454
|
}
|
|
47466
|
-
})))), show && (
|
|
47455
|
+
})))), show && (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
|
|
47467
47456
|
className: _styles__WEBPACK_IMPORTED_MODULE_3__["Classes"].emptyWrapper,
|
|
47468
47457
|
key: "empty"
|
|
47469
47458
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(EmptyContent, null))));
|
|
47470
47459
|
}
|
|
47471
47460
|
|
|
47461
|
+
/***/ }),
|
|
47462
|
+
|
|
47463
|
+
/***/ "./node_modules/@kdcloudjs/table/es/table/base/globalStyleComponent.js":
|
|
47464
|
+
/*!*****************************************************************************!*\
|
|
47465
|
+
!*** ./node_modules/@kdcloudjs/table/es/table/base/globalStyleComponent.js ***!
|
|
47466
|
+
\*****************************************************************************/
|
|
47467
|
+
/*! exports provided: default */
|
|
47468
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
47469
|
+
|
|
47470
|
+
"use strict";
|
|
47471
|
+
__webpack_require__.r(__webpack_exports__);
|
|
47472
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GlobalStyleComponent; });
|
|
47473
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_reflect_construct__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/reflect/construct */ "./node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js");
|
|
47474
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_reflect_construct__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_reflect_construct__WEBPACK_IMPORTED_MODULE_0__);
|
|
47475
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/classCallCheck */ "./node_modules/@babel/runtime-corejs3/helpers/classCallCheck.js");
|
|
47476
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
|
|
47477
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/createClass */ "./node_modules/@babel/runtime-corejs3/helpers/createClass.js");
|
|
47478
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
|
|
47479
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/possibleConstructorReturn */ "./node_modules/@babel/runtime-corejs3/helpers/possibleConstructorReturn.js");
|
|
47480
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
|
|
47481
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/getPrototypeOf */ "./node_modules/@babel/runtime-corejs3/helpers/getPrototypeOf.js");
|
|
47482
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
|
|
47483
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/inherits */ "./node_modules/@babel/runtime-corejs3/helpers/inherits.js");
|
|
47484
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__);
|
|
47485
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "react");
|
|
47486
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
|
|
47487
|
+
/* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./styles */ "./node_modules/@kdcloudjs/table/es/table/base/styles.js");
|
|
47488
|
+
|
|
47489
|
+
|
|
47490
|
+
|
|
47491
|
+
|
|
47492
|
+
|
|
47493
|
+
|
|
47494
|
+
function _callSuper(t, o, e) { return o = _babel_runtime_corejs3_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(o), _babel_runtime_corejs3_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(t, _isNativeReflectConstruct() ? _babel_runtime_corejs3_core_js_stable_reflect_construct__WEBPACK_IMPORTED_MODULE_0___default()(o, e || [], _babel_runtime_corejs3_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(t).constructor) : o.apply(t, e)); }
|
|
47495
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_babel_runtime_corejs3_core_js_stable_reflect_construct__WEBPACK_IMPORTED_MODULE_0___default()(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
47496
|
+
|
|
47497
|
+
|
|
47498
|
+
var GlobalStyleComponent = /*#__PURE__*/function (_PureComponent) {
|
|
47499
|
+
function GlobalStyleComponent() {
|
|
47500
|
+
_babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, GlobalStyleComponent);
|
|
47501
|
+
return _callSuper(this, GlobalStyleComponent, arguments);
|
|
47502
|
+
}
|
|
47503
|
+
_babel_runtime_corejs3_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(GlobalStyleComponent, _PureComponent);
|
|
47504
|
+
return _babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(GlobalStyleComponent, [{
|
|
47505
|
+
key: "render",
|
|
47506
|
+
value: function render() {
|
|
47507
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_styles__WEBPACK_IMPORTED_MODULE_7__["GlobalStyle"], null);
|
|
47508
|
+
}
|
|
47509
|
+
}]);
|
|
47510
|
+
}(react__WEBPACK_IMPORTED_MODULE_6__["PureComponent"]);
|
|
47511
|
+
|
|
47512
|
+
|
|
47472
47513
|
/***/ }),
|
|
47473
47514
|
|
|
47474
47515
|
/***/ "./node_modules/@kdcloudjs/table/es/table/base/header.js":
|
|
@@ -48623,7 +48664,7 @@ function Loading(_ref2) {
|
|
|
48623
48664
|
LoadingIcon = _ref2$LoadingIcon === void 0 ? DefaultLoadingIcon : _ref2$LoadingIcon;
|
|
48624
48665
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
48625
48666
|
className: _styles__WEBPACK_IMPORTED_MODULE_1__["Classes"].loadingWrapper
|
|
48626
|
-
}, visible && (
|
|
48667
|
+
}, visible && (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
48627
48668
|
className: _styles__WEBPACK_IMPORTED_MODULE_1__["Classes"].loadingIndicatorWrapper
|
|
48628
48669
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
48629
48670
|
className: _styles__WEBPACK_IMPORTED_MODULE_1__["Classes"].loadingIndicator
|
|
@@ -48717,7 +48758,7 @@ function renderTableHeaderInIE(info, props, extra) {
|
|
|
48717
48758
|
style: typeof (extra === null || extra === void 0 ? void 0 : extra.stickyRightOffset) === 'number' ? {
|
|
48718
48759
|
width: extra === null || extra === void 0 ? void 0 : extra.stickyRightOffset
|
|
48719
48760
|
} : undefined
|
|
48720
|
-
})), left.length > 0 ? (
|
|
48761
|
+
})), left.length > 0 ? (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", {
|
|
48721
48762
|
className: _styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].fixedLeft
|
|
48722
48763
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_header__WEBPACK_IMPORTED_MODULE_12__["default"], {
|
|
48723
48764
|
info: _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, info), {
|
|
@@ -48743,7 +48784,7 @@ function renderTableHeaderInIE(info, props, extra) {
|
|
|
48743
48784
|
}),
|
|
48744
48785
|
theaderPosition: "left",
|
|
48745
48786
|
rowCount: rowCount
|
|
48746
|
-
}))) : null, right.length > 0 ? (
|
|
48787
|
+
}))) : null, right.length > 0 ? (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", {
|
|
48747
48788
|
className: _styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].fixedRight,
|
|
48748
48789
|
style: fixedRightTableStyle
|
|
48749
48790
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_header__WEBPACK_IMPORTED_MODULE_12__["default"], {
|
|
@@ -48802,7 +48843,7 @@ function renderTableBodyInIE(info, props, extra) {
|
|
|
48802
48843
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", {
|
|
48803
48844
|
className: _styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].virtual,
|
|
48804
48845
|
tabIndex: -1
|
|
48805
|
-
}, topBlank > 0 && (
|
|
48846
|
+
}, topBlank > 0 && (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", {
|
|
48806
48847
|
key: "top-blank",
|
|
48807
48848
|
className: classnames__WEBPACK_IMPORTED_MODULE_7___default()(_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].virtualBlank, 'top'),
|
|
48808
48849
|
style: {
|
|
@@ -48814,15 +48855,15 @@ function renderTableBodyInIE(info, props, extra) {
|
|
|
48814
48855
|
tbodyPosition: hasLockColumn ? 'center' : undefined,
|
|
48815
48856
|
horizontalRenderInfo: info,
|
|
48816
48857
|
verticalRenderInfo: verticalRenderInfo
|
|
48817
|
-
})), bottomBlank > 0 && (
|
|
48858
|
+
})), bottomBlank > 0 && (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", {
|
|
48818
48859
|
key: "bottom-blank",
|
|
48819
48860
|
className: classnames__WEBPACK_IMPORTED_MODULE_7___default()(_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].virtualBlank, 'bottom'),
|
|
48820
48861
|
style: {
|
|
48821
48862
|
height: bottomBlank
|
|
48822
48863
|
}
|
|
48823
|
-
}))), left.length > 0 ? (
|
|
48864
|
+
}))), left.length > 0 ? (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", {
|
|
48824
48865
|
className: _styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].fixedLeft
|
|
48825
|
-
}, topBlank > 0 && (
|
|
48866
|
+
}, topBlank > 0 && (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", {
|
|
48826
48867
|
key: "top-blank",
|
|
48827
48868
|
className: classnames__WEBPACK_IMPORTED_MODULE_7___default()(_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].virtualBlank, 'top'),
|
|
48828
48869
|
style: {
|
|
@@ -48842,15 +48883,15 @@ function renderTableBodyInIE(info, props, extra) {
|
|
|
48842
48883
|
visible: _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3___default()(visible).call(visible, 0, left.length)
|
|
48843
48884
|
}),
|
|
48844
48885
|
verticalRenderInfo: verticalRenderInfo
|
|
48845
|
-
})), bottomBlank > 0 && (
|
|
48886
|
+
})), bottomBlank > 0 && (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", {
|
|
48846
48887
|
key: "bottom-blank",
|
|
48847
48888
|
className: classnames__WEBPACK_IMPORTED_MODULE_7___default()(_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].virtualBlank, 'bottom'),
|
|
48848
48889
|
style: {
|
|
48849
48890
|
height: bottomBlank
|
|
48850
48891
|
}
|
|
48851
|
-
})))) : null, right.length > 0 ? (
|
|
48892
|
+
})))) : null, right.length > 0 ? (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", {
|
|
48852
48893
|
className: _styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].fixedRight
|
|
48853
|
-
}, topBlank > 0 && (
|
|
48894
|
+
}, topBlank > 0 && (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", {
|
|
48854
48895
|
key: "top-blank",
|
|
48855
48896
|
className: classnames__WEBPACK_IMPORTED_MODULE_7___default()(_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].virtualBlank, 'top'),
|
|
48856
48897
|
style: {
|
|
@@ -48870,7 +48911,7 @@ function renderTableBodyInIE(info, props, extra) {
|
|
|
48870
48911
|
visible: _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3___default()(visible).call(visible, visible.length - right.length)
|
|
48871
48912
|
}),
|
|
48872
48913
|
verticalRenderInfo: verticalRenderInfo
|
|
48873
|
-
})), bottomBlank > 0 && (
|
|
48914
|
+
})), bottomBlank > 0 && (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", {
|
|
48874
48915
|
key: "bottom-blank",
|
|
48875
48916
|
className: classnames__WEBPACK_IMPORTED_MODULE_7___default()(_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].virtualBlank, 'bottom'),
|
|
48876
48917
|
style: {
|
|
@@ -48963,7 +49004,7 @@ function renderRowDetailInIE(params) {
|
|
|
48963
49004
|
if (!domHelper) return;
|
|
48964
49005
|
var artTable = domHelper.artTable;
|
|
48965
49006
|
var rowDetailContainer = artTable && artTable.querySelector(".".concat(_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDetailContainer));
|
|
48966
|
-
return /*#__PURE__*/react_dom__WEBPACK_IMPORTED_MODULE_6___default.a.createPortal(
|
|
49007
|
+
return /*#__PURE__*/react_dom__WEBPACK_IMPORTED_MODULE_6___default.a.createPortal(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(RowDetail, _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, params)), rowDetailContainer);
|
|
48967
49008
|
}
|
|
48968
49009
|
function RowDetail(props) {
|
|
48969
49010
|
var detailRef = Object(react__WEBPACK_IMPORTED_MODULE_5__["useRef"])(null);
|
|
@@ -49013,7 +49054,7 @@ function getTableHeaderRenderTemplate(type) {
|
|
|
49013
49054
|
/*!***************************************************************!*\
|
|
49014
49055
|
!*** ./node_modules/@kdcloudjs/table/es/table/base/styles.js ***!
|
|
49015
49056
|
\***************************************************************/
|
|
49016
|
-
/*! exports provided: LOCK_SHADOW_PADDING, Classes, MenuClasses, defaultCSSVariables, variableConst, StyledArtTableWrapper, ButtonCSS */
|
|
49057
|
+
/*! exports provided: LOCK_SHADOW_PADDING, Classes, MenuClasses, GlobalStyle, defaultCSSVariables, variableConst, StyledArtTableWrapper, ButtonCSS */
|
|
49017
49058
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
49018
49059
|
|
|
49019
49060
|
"use strict";
|
|
@@ -49021,6 +49062,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49021
49062
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LOCK_SHADOW_PADDING", function() { return LOCK_SHADOW_PADDING; });
|
|
49022
49063
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Classes", function() { return Classes; });
|
|
49023
49064
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MenuClasses", function() { return MenuClasses; });
|
|
49065
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalStyle", function() { return GlobalStyle; });
|
|
49024
49066
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultCSSVariables", function() { return defaultCSSVariables; });
|
|
49025
49067
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "variableConst", function() { return variableConst; });
|
|
49026
49068
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyledArtTableWrapper", function() { return StyledArtTableWrapper; });
|
|
@@ -49033,7 +49075,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49033
49075
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__);
|
|
49034
49076
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js");
|
|
49035
49077
|
|
|
49036
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
49078
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
49037
49079
|
|
|
49038
49080
|
|
|
49039
49081
|
|
|
@@ -49056,6 +49098,7 @@ var Classes = {
|
|
|
49056
49098
|
tableHeaderRow: "".concat(prefix, "table-header-row"),
|
|
49057
49099
|
/** 单元格 */
|
|
49058
49100
|
tableCell: "".concat(prefix, "table-cell"),
|
|
49101
|
+
tableExtendCell: "".concat(prefix, "table-extend-cell"),
|
|
49059
49102
|
/** 表头的单元格 */
|
|
49060
49103
|
tableHeaderCell: "".concat(prefix, "table-header-cell"),
|
|
49061
49104
|
tableHeaderCellContent: "".concat(prefix, "table-header-cell-content"),
|
|
@@ -49113,9 +49156,17 @@ var Classes = {
|
|
|
49113
49156
|
rowDragging: "".concat(prefix, "row-dragging"),
|
|
49114
49157
|
rowDragStart: "".concat(prefix, "row-drag-start"),
|
|
49115
49158
|
rowDragEnd: "".concat(prefix, "row-drag-end"),
|
|
49159
|
+
rowDragEndParent: "".concat(prefix, "row-drag-end-parent"),
|
|
49116
49160
|
rowDragEndToTop: "".concat(prefix, "row-drag-end-to-top"),
|
|
49117
49161
|
rowDragEndToBottom: "".concat(prefix, "row-drag-end-to-bottom"),
|
|
49162
|
+
rowDragEndInto: "".concat(prefix, "row-drag-end-into"),
|
|
49118
49163
|
rowDragElement: "".concat(prefix, "row-drag-element"),
|
|
49164
|
+
rowDragElementIcon: "".concat(prefix, "row-drag-element-icon"),
|
|
49165
|
+
rowDragElementLabel: "".concat(prefix, "row-drag-element-label"),
|
|
49166
|
+
rowDragLine: "".concat(prefix, "row-drag-line"),
|
|
49167
|
+
treeTableRowDragLine: "".concat(prefix, "tree-table-row-drag-line"),
|
|
49168
|
+
iconNotAllowed: "".concat(prefix, "icon-not-allowed"),
|
|
49169
|
+
iconMove: "".concat(prefix, "icon-move"),
|
|
49119
49170
|
rowDragCell: "".concat(prefix, "row-drag-cell")
|
|
49120
49171
|
};
|
|
49121
49172
|
var MenuClasses = {
|
|
@@ -49135,7 +49186,8 @@ var Z = {
|
|
|
49135
49186
|
scrollItem: 30,
|
|
49136
49187
|
loadingIndicator: 40
|
|
49137
49188
|
};
|
|
49138
|
-
var
|
|
49189
|
+
var GlobalStyle = Object(styled_components__WEBPACK_IMPORTED_MODULE_3__["createGlobalStyle"])(_templateObject || (_templateObject = _babel_runtime_corejs3_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 align-items:center;\n min-width:48px;\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);
|
|
49190
|
+
var outerBorderStyleMixin = Object(styled_components__WEBPACK_IMPORTED_MODULE_3__["css"])(_templateObject2 || (_templateObject2 = _babel_runtime_corejs3_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);
|
|
49139
49191
|
var defaultCSSVariables = {
|
|
49140
49192
|
'--row-height': '48px',
|
|
49141
49193
|
'--color': '#333',
|
|
@@ -49166,10 +49218,10 @@ var defaultCSSVariables = {
|
|
|
49166
49218
|
'--header-cell-border-vertical': '1px solid #dfe3e8'
|
|
49167
49219
|
};
|
|
49168
49220
|
var variableConst = getCssVariableText(defaultCSSVariables);
|
|
49169
|
-
var notBorderedStyleMixin = Object(styled_components__WEBPACK_IMPORTED_MODULE_3__["css"])(
|
|
49170
|
-
var borderedStyleMixin = Object(styled_components__WEBPACK_IMPORTED_MODULE_3__["css"])(
|
|
49171
|
-
var StyledArtTableWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3__["default"].div(_templateObject4 || (_templateObject4 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n :root {\n ", "\n }\n ", "\n\n box-sizing: border-box;\n * {\n box-sizing: border-box;\n }\n cursor: default;\n color: var(--color);\n font-size: var(--font-size);\n line-height: var(--line-height);\n position: relative;\n\n // \u8868\u683C\u5916\u8FB9\u6846\u7531 art-table-wrapper \u63D0\u4F9B\uFF0C\u800C\u4E0D\u662F\u7531\u5355\u5143\u683C\u63D0\u4F9B\n &.use-outer-border {\n ", ";\n }\n\n // \u8868\u683C\u4E0D\u542F\u7528\u8FB9\u6846\u7EBF\uFF0C\u9690\u85CFth\u3001td\u7684\u5355\u5143\u683C\u5DE6\u53F3\u8FB9\u6846\u7EBF\n &:not(.", ") {\n ", "\n }\n &.", "{\n ", "\n }\n\n .no-scrollbar {\n ::-webkit-scrollbar {\n display: none;\n }\n }\n\n .", " {\n overflow: auto;\n flex-shrink: 1;\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n }\n\n .", " {\n overflow: hidden;\n background: var(--header-bgcolor);\n display: flex;\n flex-shrink: 0;\n border-bottom: var(--header-cell-border-horizontal);\n }\n\n .", " {\n display: flex;\n // justify-content: flex-start;\n align-items: center;\n height: inherit;\n }\n\n .", " {\n overflow-x:auto;\n flex-shrink: 0;\n flex-grow: 0;\n scrollbar-width: none; // \u517C\u5BB9\u706B\u72D0\n & {\n ::-webkit-scrollbar {\n display:none;\n }\n }\n }\n\n .", " {\n display: flex;\n flex: none;\n }\n .", ", .", " {\n background: var(--bgcolor);\n overflow: auto;\n overflow-x: hidden;\n overflow-anchor: none;\n position:relative;\n &.empty {\n position: relative;\n }\n }\n\n .", " {\n position: relative;\n }\n .", ", .", " {\n .", "{\n background-color: #e6effb !important;\n }\n .", "{\n border-top: 1px solid #0E5FD8 !important;\n }\n .", "{\n border-left: 1px solid #0E5FD8 !important;\n }\n .", "{\n border-bottom: 1px solid #0E5FD8 !important;\n }\n .", "{\n border-right: 1px solid #0E5FD8 !important;\n }\n }\n\n .", " {\n user-select:none;\n }\n\n .", " {\n user-select:none;\n .", " .", " >td{\n cursor:move;\n }\n\n .", " .", " >td{\n cursor:no-drop;\n }\n \n }\n\n .", "{\n opacity: 0.5;\n }\n\n\n .", " td{\n border-top: 1px solid var(--primary-color) !important;\n }\n\n .", " td{\n border-bottom: 1px solid var(--primary-color) !important;\n \n }\n\n .", " {\n cursor:pointer;\n }\n\n\n &.sticky-header .", " {\n position: sticky;\n top: 0;\n z-index: ", ";\n }\n\n &.sticky-footer .", " {\n position: sticky;\n bottom: 0;\n z-index: ", ";\n }\n\n table {\n width: 0;\n table-layout: fixed;\n border-collapse: separate;\n border-spacing: 0;\n display: table;\n margin: 0;\n padding: 0;\n flex-shrink: 0;\n flex-grow: 0;\n position:relative;\n }\n\n // \u5728 tr \u4E0A\u8BBE\u7F6E .no-hover \u53EF\u4EE5\u7981\u7528\u9F20\u6807\u60AC\u505C\u6548\u679C\n tr:not(.no-hover):hover > td {\n background: var(--hover-bgcolor);\n }\n // \u4F7F\u7528 js \u6DFB\u52A0\u60AC\u6D6E\u6548\u679C\n tr:not(.no-hover).row-hover > td {\n background: var(--hover-bgcolor);\n }\n // \u5728 tr \u8BBE\u7F6E highlight \u53EF\u4EE5\u4E3A\u5E95\u4E0B\u7684 td \u8BBE\u7F6E\u4E3A\u9AD8\u4EAE\u8272\n // \u800C\u8BBE\u7F6E .no-highlight \u7684\u8BDD\u5219\u53EF\u4EE5\u7981\u7528\u9AD8\u4EAE\u6548\u679C\uFF1B\n tr:not(.no-highlight).highlight > td {\n background: var(--highlight-bgcolor);\n }\n\n th {\n font-weight: normal;\n text-align: left;\n padding: var(--cell-padding);\n height: var(--header-row-height);\n color: var(--header-color);\n background: var(--header-bgcolor);\n border:1px solid transparent;\n border-right: var(--header-cell-border-vertical);\n border-bottom: var(--header-cell-border-horizontal);\n position: relative;\n }\n\n th.resizeable{\n border-right: var(--header-cell-border-vertical)\n }\n\n th.", " {\n border-right: var(--header-cell-border-vertical);\n border-bottom: none;\n }\n\n tr.", " th {\n border-top: var(--header-cell-border-horizontal);\n }\n th.", " {\n border-left: var(--header-cell-border-vertical);\n }\n\n td {\n padding: var(--cell-padding);\n background: var(--bgcolor);\n height: var(--row-height);\n border:1px solid transparent;\n border-right: var(--cell-border-vertical);\n border-bottom: var(--cell-border-horizontal);\n word-break: break-all;\n }\n td.", " {\n border-left: var(--cell-border-vertical);\n }\n tr.", " td {\n border-top: var(--cell-border-horizontal);\n }\n &.has-header tbody tr.", " td {\n border-top: none;\n }\n &.has-footer tbody tr.", " td {\n border-bottom: none;\n }\n\n .", ",\n .", " {\n z-index: ", ";\n }\n\n //#region \u9501\u5217\u9634\u5F71\n .", " {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: ", ";\n pointer-events: none;\n overflow: hidden;\n\n .", " {\n height: 100%;\n }\n\n .", " {\n margin-right: ", "px;\n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-right: var(--cell-border-vertical);\n }\n }\n\n .", " {\n margin-left: ", "px;\n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-left: var(--cell-border-vertical);\n }\n }\n }\n //#endregion\n\n //#region \u7A7A\u8868\u683C\u5C55\u73B0\n .", " {\n pointer-events: none;\n color: #99a3b3;\n font-size: 12px;\n text-align: center;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n .empty-image {\n width: 50px;\n height: 50px;\n }\n\n .empty-tips {\n margin-top: 16px;\n line-height: 1.5;\n }\n }\n //#endregion\n\n //#region sticky\u517C\u5BB9\n &.sticky-polyfill-wrapper{\n //\u9501\u5B9A\u5217\u517C\u5BB9 \u4EC5\u5728\u9501\u5B9A\u5217\u7684\u60C5\u51B5\u4E0B\u751F\u6548\n .", " {\n overflow-x: hidden;\n }\n .", ", .", " {\n position:relative;\n }\n .", " {\n overflow: hidden;\n display: flex;\n }\n .", " {\n position: relative;\n }\n\n .", " {\n display: flex;\n overflow: auto;\n overflow-x: hidden;\n overflow-anchor: none;\n }\n\n .", ", .", "{\n position: absolute;\n z-index: ", ";\n top: 0;\n }\n .", "{\n left:0;\n }\n .", "{\n right:0;\n }\n\n .", "{\n .", "{\n position: absolute;\n top: 0;\n width: 100%;\n z-index: ", ";\n }\n }\n\n tr:not(.no-hover).row-hover > td {\n background: var(--hover-bgcolor);\n }\n }\n //#endregion sticky\u517C\u5BB9\n\n //#region \u7C98\u6027\u6EDA\u52A8\u6761\n .", "{\n display:flex;\n background: var(--bgcolor);\n }\n .", "{\n height: 1px;\n flex-shrink: 0;\n border-top: 1px solid var(--border-color);\n }\n\n .", "{\n height: 1px;\n flex-shrink: 0;\n border-top: 1px solid var(--border-color);\n }\n .", " {\n overflow-y: hidden;\n overflow-x: auto;\n z-index: ", ";\n flex-shrink: 1;\n flex-grow: 0;\n border-top: 1px solid var(--border-color);\n }\n\n .", " {\n // \u5FC5\u987B\u6709\u9AD8\u5EA6\u624D\u80FD\u51FA\u73B0\u6EDA\u52A8\u6761\n height: 1px;\n visibility: hidden;\n }\n //#endregion\n\n //#region \u52A0\u8F7D\u6837\u5F0F\n .", " {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: auto;\n\n .", " {\n filter: none;\n width: 100%;\n height: 100%;\n overflow: hidden;//\u5217\u5168\u90E8\u56FA\u5B9A\u65F6\uFF0C\u5B58\u5728\u53CC\u6A2A\u5411\u6EDA\u52A8\u6761\n display: flex;\n position: relative;\n flex-direction: column;\n }\n\n .", " {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n }\n\n .", " {\n position: sticky;\n z-index: ", ";\n transform: translateY(-50%);\n }\n }\n //#endregion\n\n //#region \u8868\u683C\u8FC7\u6EE4\n .", " {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n padding: 6px 4px;\n &:hover{\n background-color: #e5e5e5;\n }\n &:focus {\n outline: none\n }\n }\n //#endregion\n\n //#region \u8868\u683C\u6392\u5E8F\n .", " {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n }\n .", " {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n }\n //#endregion\n\n //#region \u6EDA\u52A8\u6761\u5360\u4F4D\n .", " {\n visibility: hidden;\n flex-shrink: 0;\n }\n .", " .", " {\n border-top: var(--cell-border-horizontal);\n }\n //#endregion\n\n //#region \u62D6\u62FD\u5217\u5BBD\u5927\u5C0F\n .", "::after{\n background-color: var(--border-color);\n }\n //\u89E3\u51B3\u90E8\u5206\u6D4F\u89C8\u5668(chrome109)\u6700\u540E\u4E00\u4E2A\u5355\u5143\u683C\u7684\u5217\u5BBD\u62D6\u62FD\u533A\u57DF\u7EDD\u5BF9\u5B9A\u4F4D\u8D85\u51FA\u8868\u683C\uFF0C\u5BFC\u81F4\u8868\u683C\u7AD6\u5206\u5272\u7EBF\u65E0\u6CD5\u5BF9\u9F50\n .", " th.", " .", "{\n right: 0;\n width: 5px;\n &::after{\n left: 4px;\n }\n }\n //#endregion\n\n "])), variableConst, variableConst, outerBorderStyleMixin, Classes.artTableBordered, notBorderedStyleMixin, Classes.artTableBordered, borderedStyleMixin, Classes.artTable, Classes.tableHeader, Classes.tableHeaderCellContent, Classes.virtual, Classes.tableFooter, Classes.tableBody, Classes.tableFooter, Classes.tableRow, Classes.tableBody, Classes.tableFooter, Classes.tableCellRangeSelected, Classes.tableCellRangeTop, Classes.tableCellRangeLeft, Classes.tableCellRangeBottom, Classes.tableCellRangeRight, Classes.rangeSelection, Classes.rowDragging, Classes.tableBody, Classes.tableRow, Classes.tableFooter, Classes.tableRow, Classes.rowDragStart, Classes.rowDragEndToTop, Classes.rowDragEndToBottom, Classes.rowDragCell, Classes.tableHeader, Z.header, Classes.tableFooter, Z.footer, Classes.leaf, Classes.first, Classes.first, Classes.first, Classes.first, Classes.first, Classes.last, Classes.lockLeft, Classes.lockRight, Z.lock, Classes.lockShadowMask, Z.lockShadow, Classes.lockShadow, Classes.leftLockShadow, LOCK_SHADOW_PADDING, Classes.rightLockShadow, LOCK_SHADOW_PADDING, Classes.emptyWrapper, Classes.virtual, Classes.tableBody, Classes.tableFooter, Classes.tableHeaderMain, Classes.tableHeader, Classes.tableFooterMain, Classes.fixedLeft, Classes.fixedRight, Z.lock, Classes.fixedLeft, Classes.fixedRight, Classes.rowDetailContainer, Classes.rowDetailItem, Z.rowDetail, Classes.horizontalStickyScrollContainer, Classes.horizontalScrollLeftSpacer, Classes.horizontalScrollRightSpacer, Classes.stickyScroll, Z.scrollItem, Classes.stickyScrollItem, Classes.loadingWrapper, Classes.loadingContentWrapper, Classes.loadingIndicatorWrapper, Classes.loadingIndicator, Z.loadingIndicator, Classes.tableFilterTrigger, Classes.tableSortIcon, Classes.tableExtendIcon, Classes.verticalScrollPlaceholder, Classes.tableFooter, Classes.verticalScrollPlaceholder, Classes.tableHeaderCellResize, Classes.tableHeaderRow, Classes.last, Classes.tableHeaderCellResize);
|
|
49172
|
-
var ButtonCSS = Object(styled_components__WEBPACK_IMPORTED_MODULE_3__["css"])(
|
|
49221
|
+
var notBorderedStyleMixin = Object(styled_components__WEBPACK_IMPORTED_MODULE_3__["css"])(_templateObject3 || (_templateObject3 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n --cell-border-vertical: none;\n --header-cell-border-vertical: none;\n"])));
|
|
49222
|
+
var borderedStyleMixin = Object(styled_components__WEBPACK_IMPORTED_MODULE_3__["css"])(_templateObject4 || (_templateObject4 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n //th\u9690\u85CF\u5217\u5BBD\u62D6\u62FD\u7684\u80CC\u666F\u8272\uFF0C\u4F7F\u7528th\u7684\u53F3\u8FB9\u6846\u4EE3\u66FF\n .", "::after{\n background-color: inherit;\n }\n"])), Classes.tableHeaderCellResize);
|
|
49223
|
+
var StyledArtTableWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3__["default"].div(_templateObject5 || (_templateObject5 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n :root {\n ", "\n }\n ", "\n\n box-sizing: border-box;\n * {\n box-sizing: border-box;\n }\n cursor: default;\n color: var(--color);\n font-size: var(--font-size);\n line-height: var(--line-height);\n position: relative;\n\n // \u8868\u683C\u5916\u8FB9\u6846\u7531 art-table-wrapper \u63D0\u4F9B\uFF0C\u800C\u4E0D\u662F\u7531\u5355\u5143\u683C\u63D0\u4F9B\n &.use-outer-border {\n ", ";\n }\n\n // \u8868\u683C\u4E0D\u542F\u7528\u8FB9\u6846\u7EBF\uFF0C\u9690\u85CFth\u3001td\u7684\u5355\u5143\u683C\u5DE6\u53F3\u8FB9\u6846\u7EBF\n &:not(.", ") {\n ", "\n }\n &.", "{\n ", "\n }\n\n .no-scrollbar {\n ::-webkit-scrollbar {\n display: none;\n }\n }\n\n .", " {\n overflow: auto;\n flex-shrink: 1;\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n }\n\n .", " {\n overflow: hidden;\n background: var(--header-bgcolor);\n display: flex;\n flex-shrink: 0;\n border-bottom: var(--header-cell-border-horizontal);\n }\n\n .", " {\n display: flex;\n // justify-content: flex-start;\n align-items: center;\n height: inherit;\n }\n\n .", " {\n overflow-x:auto;\n flex-shrink: 0;\n flex-grow: 0;\n scrollbar-width: none; // \u517C\u5BB9\u706B\u72D0\n & {\n ::-webkit-scrollbar {\n display:none;\n }\n }\n }\n\n .", " {\n display: flex;\n flex: none;\n }\n .", ", .", " {\n background: var(--bgcolor);\n overflow: auto;\n overflow-x: hidden;\n overflow-anchor: none;\n position:relative;\n &.empty {\n position: relative;\n }\n }\n\n .", " {\n position: relative;\n }\n .", ", .", " {\n .", "{\n background-color: #e6effb !important;\n }\n .", "{\n border-top: 1px solid #0E5FD8 !important;\n }\n .", "{\n border-left: 1px solid #0E5FD8 !important;\n }\n .", "{\n border-bottom: 1px solid #0E5FD8 !important;\n }\n .", "{\n border-right: 1px solid #0E5FD8 !important;\n }\n }\n\n .", " {\n user-select:none;\n }\n\n .", " {\n user-select:none;\n .", " .", " >td{\n cursor:move;\n }\n\n .", " .", " >td{\n cursor:no-drop;\n }\n \n }\n\n .", "{\n opacity: 0.5;\n }\n\n .", " td{\n border-top: 1px solid var(--primary-color) !important;\n border-bottom: 1px solid var(--primary-color) !important;\n \n }\n .", " td:first-child{\n border-left: 1px solid var(--primary-color) !important;\n \n }\n .", " td:last-child{\n border-right: 1px solid var(--primary-color) !important;\n \n }\n\n\n // .", " td{\n // border-top: 1px solid var(--primary-color) !important;\n // }\n\n .", " td{\n border-top: 1px solid var(--primary-color) !important;\n border-bottom: 1px solid var(--primary-color) !important;\n }\n\n .", " td:first-child{\n border-left: 1px solid var(--primary-color) !important;\n }\n\n .", " td:last-child{\n border-right: 1px solid var(--primary-color) !important;\n }\n\n // .", " td{\n // border-bottom: 1px solid var(--primary-color) !important;\n // }\n\n .", " {\n cursor:pointer;\n }\n\n\n &.sticky-header .", " {\n position: sticky;\n top: 0;\n z-index: ", ";\n }\n\n &.sticky-footer .", " {\n position: sticky;\n bottom: 0;\n z-index: ", ";\n }\n\n table {\n width: 0;\n table-layout: fixed;\n border-collapse: separate;\n border-spacing: 0;\n display: table;\n margin: 0;\n padding: 0;\n flex-shrink: 0;\n flex-grow: 0;\n position:relative;\n }\n\n // \u5728 tr \u4E0A\u8BBE\u7F6E .no-hover \u53EF\u4EE5\u7981\u7528\u9F20\u6807\u60AC\u505C\u6548\u679C\n tr:not(.no-hover):hover > td {\n background: var(--hover-bgcolor);\n }\n // \u4F7F\u7528 js \u6DFB\u52A0\u60AC\u6D6E\u6548\u679C\n tr:not(.no-hover).row-hover > td {\n background: var(--hover-bgcolor);\n }\n // \u5728 tr \u8BBE\u7F6E highlight \u53EF\u4EE5\u4E3A\u5E95\u4E0B\u7684 td \u8BBE\u7F6E\u4E3A\u9AD8\u4EAE\u8272\n // \u800C\u8BBE\u7F6E .no-highlight \u7684\u8BDD\u5219\u53EF\u4EE5\u7981\u7528\u9AD8\u4EAE\u6548\u679C\uFF1B\n tr:not(.no-highlight).highlight > td {\n background: var(--highlight-bgcolor);\n }\n\n th {\n font-weight: normal;\n text-align: left;\n padding: var(--cell-padding);\n height: var(--header-row-height);\n color: var(--header-color);\n background: var(--header-bgcolor);\n border:1px solid transparent;\n border-right: var(--header-cell-border-vertical);\n border-bottom: var(--header-cell-border-horizontal);\n position: relative;\n }\n\n th.resizeable{\n border-right: var(--header-cell-border-vertical)\n }\n\n th.", " {\n border-right: var(--header-cell-border-vertical);\n border-bottom: none;\n }\n\n tr.", " th {\n border-top: var(--header-cell-border-horizontal);\n }\n th.", " {\n border-left: var(--header-cell-border-vertical);\n }\n\n td {\n padding: var(--cell-padding);\n background: var(--bgcolor);\n height: var(--row-height);\n border:1px solid transparent;\n border-right: var(--cell-border-vertical);\n border-bottom: var(--cell-border-horizontal);\n word-break: break-all;\n }\n td.", " {\n border-left: var(--cell-border-vertical);\n }\n tr.", " td {\n border-top: var(--cell-border-horizontal);\n }\n &.has-header tbody tr.", " td {\n border-top: none;\n }\n &.has-footer tbody tr.", " td {\n border-bottom: none;\n }\n\n .", ",\n .", " {\n z-index: ", ";\n }\n\n //#region \u9501\u5217\u9634\u5F71\n .", " {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: ", ";\n pointer-events: none;\n overflow: hidden;\n\n .", " {\n height: 100%;\n }\n\n .", " {\n margin-right: ", "px;\n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-right: var(--cell-border-vertical);\n }\n }\n\n .", " {\n margin-left: ", "px;\n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-left: var(--cell-border-vertical);\n }\n }\n }\n //#endregion\n\n //#region \u7A7A\u8868\u683C\u5C55\u73B0\n .", " {\n pointer-events: none;\n color: #99a3b3;\n font-size: 12px;\n text-align: center;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n .empty-image {\n width: 50px;\n height: 50px;\n }\n\n .empty-tips {\n margin-top: 16px;\n line-height: 1.5;\n }\n }\n //#endregion\n\n //#region sticky\u517C\u5BB9\n &.sticky-polyfill-wrapper{\n //\u9501\u5B9A\u5217\u517C\u5BB9 \u4EC5\u5728\u9501\u5B9A\u5217\u7684\u60C5\u51B5\u4E0B\u751F\u6548\n .", " {\n overflow-x: hidden;\n }\n .", ", .", " {\n position:relative;\n }\n .", " {\n overflow: hidden;\n display: flex;\n }\n .", " {\n position: relative;\n }\n\n .", " {\n display: flex;\n overflow: auto;\n overflow-x: hidden;\n overflow-anchor: none;\n }\n\n .", ", .", "{\n position: absolute;\n z-index: ", ";\n top: 0;\n }\n .", "{\n left:0;\n }\n .", "{\n right:0;\n }\n\n .", "{\n .", "{\n position: absolute;\n top: 0;\n width: 100%;\n z-index: ", ";\n }\n }\n\n tr:not(.no-hover).row-hover > td {\n background: var(--hover-bgcolor);\n }\n }\n //#endregion sticky\u517C\u5BB9\n\n //#region \u7C98\u6027\u6EDA\u52A8\u6761\n .", "{\n display:flex;\n background: var(--bgcolor);\n }\n .", "{\n height: 1px;\n flex-shrink: 0;\n border-top: 1px solid var(--border-color);\n }\n\n .", "{\n height: 1px;\n flex-shrink: 0;\n border-top: 1px solid var(--border-color);\n }\n .", " {\n overflow-y: hidden;\n overflow-x: auto;\n z-index: ", ";\n flex-shrink: 1;\n flex-grow: 0;\n border-top: 1px solid var(--border-color);\n }\n\n .", " {\n // \u5FC5\u987B\u6709\u9AD8\u5EA6\u624D\u80FD\u51FA\u73B0\u6EDA\u52A8\u6761\n height: 1px;\n visibility: hidden;\n }\n //#endregion\n\n //#region \u52A0\u8F7D\u6837\u5F0F\n .", " {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: auto;\n\n .", " {\n filter: none;\n width: 100%;\n height: 100%;\n overflow: hidden;//\u5217\u5168\u90E8\u56FA\u5B9A\u65F6\uFF0C\u5B58\u5728\u53CC\u6A2A\u5411\u6EDA\u52A8\u6761\n display: flex;\n position: relative;\n flex-direction: column;\n }\n\n .", " {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n }\n\n .", " {\n position: sticky;\n z-index: ", ";\n transform: translateY(-50%);\n }\n }\n //#endregion\n\n //#region \u8868\u683C\u8FC7\u6EE4\n .", " {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n padding: 6px 4px;\n &:hover{\n background-color: #e5e5e5;\n }\n &:focus {\n outline: none\n }\n }\n //#endregion\n\n //#region \u8868\u683C\u6392\u5E8F\n .", " {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n }\n .", " {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n }\n //#endregion\n\n //#region \u6EDA\u52A8\u6761\u5360\u4F4D\n .", " {\n visibility: hidden;\n flex-shrink: 0;\n }\n .", " .", " {\n border-top: var(--cell-border-horizontal);\n }\n //#endregion\n\n //#region \u62D6\u62FD\u5217\u5BBD\u5927\u5C0F\n .", "::after{\n background-color: var(--border-color);\n }\n //\u89E3\u51B3\u90E8\u5206\u6D4F\u89C8\u5668(chrome109)\u6700\u540E\u4E00\u4E2A\u5355\u5143\u683C\u7684\u5217\u5BBD\u62D6\u62FD\u533A\u57DF\u7EDD\u5BF9\u5B9A\u4F4D\u8D85\u51FA\u8868\u683C\uFF0C\u5BFC\u81F4\u8868\u683C\u7AD6\u5206\u5272\u7EBF\u65E0\u6CD5\u5BF9\u9F50\n .", " th.", " .", "{\n right: 0;\n width: 5px;\n &::after{\n left: 4px;\n }\n }\n //#endregion\n\n "])), variableConst, variableConst, outerBorderStyleMixin, Classes.artTableBordered, notBorderedStyleMixin, Classes.artTableBordered, borderedStyleMixin, Classes.artTable, Classes.tableHeader, Classes.tableHeaderCellContent, Classes.virtual, Classes.tableFooter, Classes.tableBody, Classes.tableFooter, Classes.tableRow, Classes.tableBody, Classes.tableFooter, Classes.tableCellRangeSelected, Classes.tableCellRangeTop, Classes.tableCellRangeLeft, Classes.tableCellRangeBottom, Classes.tableCellRangeRight, Classes.rangeSelection, Classes.rowDragging, Classes.tableBody, Classes.tableRow, Classes.tableFooter, Classes.tableRow, Classes.rowDragStart, Classes.rowDragEndParent, Classes.rowDragEndParent, Classes.rowDragEndParent, Classes.rowDragEndToTop, Classes.rowDragEndInto, Classes.rowDragEndInto, Classes.rowDragEndInto, Classes.rowDragEndToBottom, Classes.rowDragCell, Classes.tableHeader, Z.header, Classes.tableFooter, Z.footer, Classes.leaf, Classes.first, Classes.first, Classes.first, Classes.first, Classes.first, Classes.last, Classes.lockLeft, Classes.lockRight, Z.lock, Classes.lockShadowMask, Z.lockShadow, Classes.lockShadow, Classes.leftLockShadow, LOCK_SHADOW_PADDING, Classes.rightLockShadow, LOCK_SHADOW_PADDING, Classes.emptyWrapper, Classes.virtual, Classes.tableBody, Classes.tableFooter, Classes.tableHeaderMain, Classes.tableHeader, Classes.tableFooterMain, Classes.fixedLeft, Classes.fixedRight, Z.lock, Classes.fixedLeft, Classes.fixedRight, Classes.rowDetailContainer, Classes.rowDetailItem, Z.rowDetail, Classes.horizontalStickyScrollContainer, Classes.horizontalScrollLeftSpacer, Classes.horizontalScrollRightSpacer, Classes.stickyScroll, Z.scrollItem, Classes.stickyScrollItem, Classes.loadingWrapper, Classes.loadingContentWrapper, Classes.loadingIndicatorWrapper, Classes.loadingIndicator, Z.loadingIndicator, Classes.tableFilterTrigger, Classes.tableSortIcon, Classes.tableExtendIcon, Classes.verticalScrollPlaceholder, Classes.tableFooter, Classes.verticalScrollPlaceholder, Classes.tableHeaderCellResize, Classes.tableHeaderRow, Classes.last, Classes.tableHeaderCellResize);
|
|
49224
|
+
var ButtonCSS = Object(styled_components__WEBPACK_IMPORTED_MODULE_3__["css"])(_templateObject6 || (_templateObject6 = _babel_runtime_corejs3_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()(["\n ", "\n //#region \u6309\u94AE\n .", "{\n color: var(--color);\n background:#ffffff;\n border:1px solid var(--strong-border-color);\n border-radius: 2px;\n cursor: pointer;\n &:hover{\n color: var(--primary-color);\n border:1px solid var(--primary-color);\n }\n }\n .", " {\n color:#ffffff;\n background-color: var(--primary-color);\n border:none;\n &:hover{\n color:#ffffff;\n background-color: var(--primary-color-level2);\n border:none;\n }\n }\n//#endregion\n"])), variableConst, Classes.button, Classes.buttonPrimary);
|
|
49173
49225
|
function getCssVariableText(obj) {
|
|
49174
49226
|
return _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1___default()(obj).reduce(function (acc, key) {
|
|
49175
49227
|
var _context;
|
|
@@ -49235,9 +49287,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49235
49287
|
/* harmony import */ var _html_table__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./html-table */ "./node_modules/@kdcloudjs/table/es/table/base/html-table.js");
|
|
49236
49288
|
/* harmony import */ var _loading__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./loading */ "./node_modules/@kdcloudjs/table/es/table/base/loading.js");
|
|
49237
49289
|
/* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./styles */ "./node_modules/@kdcloudjs/table/es/table/base/styles.js");
|
|
49238
|
-
/* harmony import */ var
|
|
49239
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*!
|
|
49240
|
-
/* harmony import */ var
|
|
49290
|
+
/* harmony import */ var _globalStyleComponent__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./globalStyleComponent */ "./node_modules/@kdcloudjs/table/es/table/base/globalStyleComponent.js");
|
|
49291
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./utils */ "./node_modules/@kdcloudjs/table/es/table/base/utils.js");
|
|
49292
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../utils */ "./node_modules/@kdcloudjs/table/es/table/utils/index.js");
|
|
49293
|
+
/* harmony import */ var _renderTemplates__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./renderTemplates */ "./node_modules/@kdcloudjs/table/es/table/base/renderTemplates.js");
|
|
49241
49294
|
|
|
49242
49295
|
|
|
49243
49296
|
|
|
@@ -49274,11 +49327,12 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
49274
49327
|
|
|
49275
49328
|
|
|
49276
49329
|
|
|
49330
|
+
|
|
49277
49331
|
var propsDotEmptyContentDeprecatedWarned = false;
|
|
49278
49332
|
function warnPropsDotEmptyContentIsDeprecated() {
|
|
49279
49333
|
if (!propsDotEmptyContentDeprecatedWarned) {
|
|
49280
49334
|
propsDotEmptyContentDeprecatedWarned = true;
|
|
49281
|
-
|
|
49335
|
+
_utils__WEBPACK_IMPORTED_MODULE_30__["console"].warn('BaseTable props.emptyContent 已经过时,请使用 props.components.EmptyContent 来自定义数据为空时的表格表现');
|
|
49282
49336
|
}
|
|
49283
49337
|
}
|
|
49284
49338
|
var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -49313,7 +49367,7 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49313
49367
|
footerDataSource = _this$props.footerDataSource;
|
|
49314
49368
|
var tableBodyClassName = classnames__WEBPACK_IMPORTED_MODULE_15___default()(_styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].tableBody, _styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].horizontalScrollContainer);
|
|
49315
49369
|
// 低版本Edge浏览器下也会出现双滚动条,这里设置overflow: 'hidden',先去掉edge的方向键控制滚动条的功能
|
|
49316
|
-
var virtualStyle =
|
|
49370
|
+
var virtualStyle = _utils__WEBPACK_IMPORTED_MODULE_30__["browserType"].isIE || _utils__WEBPACK_IMPORTED_MODULE_30__["browserType"].isEdge ? {
|
|
49317
49371
|
overflow: 'hidden'
|
|
49318
49372
|
} : {};
|
|
49319
49373
|
if (dataSource.length === 0) {
|
|
@@ -49345,7 +49399,7 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49345
49399
|
bottomBlank = _info$verticalRenderR.bottomBlank,
|
|
49346
49400
|
topBlank = _info$verticalRenderR.topBlank,
|
|
49347
49401
|
bottomIndex = _info$verticalRenderR.bottomIndex;
|
|
49348
|
-
var renderBody = Object(
|
|
49402
|
+
var renderBody = Object(_renderTemplates__WEBPACK_IMPORTED_MODULE_31__["default"])('body');
|
|
49349
49403
|
if (typeof renderBody === 'function') {
|
|
49350
49404
|
return renderBody(info, _this.props, {
|
|
49351
49405
|
rowProps: {
|
|
@@ -49360,7 +49414,7 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49360
49414
|
className: _styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].virtual,
|
|
49361
49415
|
tabIndex: -1,
|
|
49362
49416
|
style: virtualStyle
|
|
49363
|
-
}, topBlank > 0 && (
|
|
49417
|
+
}, topBlank > 0 && (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div", {
|
|
49364
49418
|
key: "top-blank",
|
|
49365
49419
|
className: classnames__WEBPACK_IMPORTED_MODULE_15___default()(_styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].virtualBlank, 'top'),
|
|
49366
49420
|
style: {
|
|
@@ -49378,7 +49432,7 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49378
49432
|
limit: bottomIndex,
|
|
49379
49433
|
last: dataSource.length - 1
|
|
49380
49434
|
}
|
|
49381
|
-
}), bottomBlank > 0 && (
|
|
49435
|
+
}), bottomBlank > 0 && (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div", {
|
|
49382
49436
|
key: "bottom-blank",
|
|
49383
49437
|
className: classnames__WEBPACK_IMPORTED_MODULE_15___default()(_styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].virtualBlank, 'bottom'),
|
|
49384
49438
|
style: {
|
|
@@ -49405,7 +49459,7 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49405
49459
|
return _babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default()(BaseTable, [{
|
|
49406
49460
|
key: "getDoms",
|
|
49407
49461
|
value: function getDoms() {
|
|
49408
|
-
|
|
49462
|
+
_utils__WEBPACK_IMPORTED_MODULE_30__["console"].warn('[kd-table] BaseTable.getDoms() 已经过时');
|
|
49409
49463
|
return this.domHelper;
|
|
49410
49464
|
}
|
|
49411
49465
|
/** 自定义滚动条宽度为table宽度,使滚动条滑块宽度相同 */
|
|
@@ -49477,7 +49531,7 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49477
49531
|
var _this$props3 = this.props,
|
|
49478
49532
|
stickyTop = _this$props3.stickyTop,
|
|
49479
49533
|
hasHeader = _this$props3.hasHeader;
|
|
49480
|
-
var renderHeader = Object(
|
|
49534
|
+
var renderHeader = Object(_renderTemplates__WEBPACK_IMPORTED_MODULE_31__["default"])('header');
|
|
49481
49535
|
var stickyRightOffset = this.hasScrollY ? this.getScrollBarWidth() : 0;
|
|
49482
49536
|
if (typeof renderHeader === 'function') {
|
|
49483
49537
|
return renderHeader(info, this.props, {
|
|
@@ -49504,7 +49558,7 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49504
49558
|
key: "updateOffsetX",
|
|
49505
49559
|
value: function updateOffsetX(nextOffsetX) {
|
|
49506
49560
|
if (this.lastInfo.useVirtual.horizontal) {
|
|
49507
|
-
if (Math.abs(nextOffsetX - this.state.offsetX) >=
|
|
49561
|
+
if (Math.abs(nextOffsetX - this.state.offsetX) >= _utils__WEBPACK_IMPORTED_MODULE_29__["OVERSCAN_SIZE"] / 2) {
|
|
49508
49562
|
this.setState({
|
|
49509
49563
|
offsetX: nextOffsetX
|
|
49510
49564
|
});
|
|
@@ -49566,7 +49620,7 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49566
49620
|
primaryKey = _this$props4.primaryKey,
|
|
49567
49621
|
stickyBottom = _this$props4.stickyBottom;
|
|
49568
49622
|
var stickyRightOffset = this.hasScrollY ? this.getScrollBarWidth() : 0;
|
|
49569
|
-
var renderFooter = Object(
|
|
49623
|
+
var renderFooter = Object(_renderTemplates__WEBPACK_IMPORTED_MODULE_31__["default"])('footer');
|
|
49570
49624
|
if (typeof renderFooter === 'function') {
|
|
49571
49625
|
return renderFooter(info, this.props, {
|
|
49572
49626
|
rowProps: {
|
|
@@ -49663,7 +49717,7 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49663
49717
|
}, {
|
|
49664
49718
|
key: "getScrollBarWidth",
|
|
49665
49719
|
value: function getScrollBarWidth() {
|
|
49666
|
-
return this.props.scrollbarWidth || Object(
|
|
49720
|
+
return this.props.scrollbarWidth || Object(_utils__WEBPACK_IMPORTED_MODULE_29__["getScrollbarSize"])().width;
|
|
49667
49721
|
}
|
|
49668
49722
|
}, {
|
|
49669
49723
|
key: "getStickyScrollContainerStyle",
|
|
@@ -49709,19 +49763,19 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49709
49763
|
'sticky-header': isStickyHeader !== null && isStickyHeader !== void 0 ? isStickyHeader : isStickyHead,
|
|
49710
49764
|
'has-footer': footerDataSource.length > 0,
|
|
49711
49765
|
'sticky-footer': isStickyFooter
|
|
49712
|
-
}, _styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].artTableBordered, bordered), 'ie-polyfill-wrapper',
|
|
49766
|
+
}, _styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].artTableBordered, bordered), 'ie-polyfill-wrapper', _utils__WEBPACK_IMPORTED_MODULE_30__["browserType"].isIE), 'sticky-polyfill-wrapper', Object(_utils__WEBPACK_IMPORTED_MODULE_30__["isStickyUIDegrade"])()), className);
|
|
49713
49767
|
var artTableWrapperProps = _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default()({
|
|
49714
49768
|
className: artTableWrapperClassName,
|
|
49715
49769
|
style: style
|
|
49716
|
-
},
|
|
49770
|
+
}, _utils__WEBPACK_IMPORTED_MODULE_29__["STYLED_REF_PROP"], this.artTableWrapperRef);
|
|
49717
49771
|
var tableProps = getTableProps() || {};
|
|
49718
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_styles__WEBPACK_IMPORTED_MODULE_27__["StyledArtTableWrapper"], _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5___default()({}, artTableWrapperProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_loading__WEBPACK_IMPORTED_MODULE_26__["default"], {
|
|
49772
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_16___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_globalStyleComponent__WEBPACK_IMPORTED_MODULE_28__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_styles__WEBPACK_IMPORTED_MODULE_27__["StyledArtTableWrapper"], _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5___default()({}, artTableWrapperProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_loading__WEBPACK_IMPORTED_MODULE_26__["default"], {
|
|
49719
49773
|
visible: isLoading,
|
|
49720
49774
|
LoadingIcon: components.LoadingIcon,
|
|
49721
49775
|
LoadingContentWrapper: components.LoadingContentWrapper
|
|
49722
49776
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div", _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5___default()({}, tableProps, {
|
|
49723
49777
|
className: classnames__WEBPACK_IMPORTED_MODULE_15___default()(_styles__WEBPACK_IMPORTED_MODULE_27__["Classes"].artTable, tableProps.className)
|
|
49724
|
-
}), this.renderTableHeader(info), this.renderTableBody(info), this.renderTableFooter(info), this.renderLockShadows(info)), this.renderStickyScroll(info)));
|
|
49778
|
+
}), this.renderTableHeader(info), this.renderTableBody(info), this.renderTableFooter(info), this.renderLockShadows(info)), this.renderStickyScroll(info))));
|
|
49725
49779
|
}
|
|
49726
49780
|
}, {
|
|
49727
49781
|
key: "componentDidMount",
|
|
@@ -49738,7 +49792,7 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49738
49792
|
cssVariables = _this$props8.cssVariables,
|
|
49739
49793
|
enableCSSVariables = _this$props8.enableCSSVariables,
|
|
49740
49794
|
bordered = _this$props8.bordered;
|
|
49741
|
-
Object(
|
|
49795
|
+
Object(_utils__WEBPACK_IMPORTED_MODULE_29__["cssPolifill"])({
|
|
49742
49796
|
variables: cssVariables || {},
|
|
49743
49797
|
enableCSSVariables: enableCSSVariables,
|
|
49744
49798
|
bordered: bordered
|
|
@@ -49756,8 +49810,8 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49756
49810
|
cssVariables = _this$props9.cssVariables,
|
|
49757
49811
|
enableCSSVariables = _this$props9.enableCSSVariables,
|
|
49758
49812
|
bordered = _this$props9.bordered;
|
|
49759
|
-
if (!Object(
|
|
49760
|
-
Object(
|
|
49813
|
+
if (!Object(_utils__WEBPACK_IMPORTED_MODULE_29__["shallowEqual"])(prevProps === null || prevProps === void 0 ? void 0 : prevProps.cssVariables, (_a = this.props) === null || _a === void 0 ? void 0 : _a.cssVariables)) {
|
|
49814
|
+
Object(_utils__WEBPACK_IMPORTED_MODULE_29__["cssPolifill"])({
|
|
49761
49815
|
variables: cssVariables || {},
|
|
49762
49816
|
enableCSSVariables: enableCSSVariables,
|
|
49763
49817
|
bordered: bordered
|
|
@@ -49789,7 +49843,7 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49789
49843
|
var prevHasFooter = prevProps.footerDataSource.length > 0;
|
|
49790
49844
|
var currentHasFooter = this.props.footerDataSource.length > 0;
|
|
49791
49845
|
if (!prevHasFooter && currentHasFooter) {
|
|
49792
|
-
Object(
|
|
49846
|
+
Object(_utils__WEBPACK_IMPORTED_MODULE_29__["getTableScrollFooterDOM"])(this.domHelper).scrollLeft = this.domHelper.virtual.scrollLeft;
|
|
49793
49847
|
}
|
|
49794
49848
|
}
|
|
49795
49849
|
}
|
|
@@ -49800,7 +49854,7 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49800
49854
|
var _this$domHelper2 = this.domHelper,
|
|
49801
49855
|
virtual = _this$domHelper2.virtual,
|
|
49802
49856
|
stickyScroll = _this$domHelper2.stickyScroll;
|
|
49803
|
-
this.rootSubscription.add(
|
|
49857
|
+
this.rootSubscription.add(_utils__WEBPACK_IMPORTED_MODULE_29__["throttledWindowResize$"].subscribe(function () {
|
|
49804
49858
|
_this2.updateStickyScroll();
|
|
49805
49859
|
_this2.adjustNeedRenderLock();
|
|
49806
49860
|
}));
|
|
@@ -49811,16 +49865,16 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49811
49865
|
var handleTableWrapperResize = function handleTableWrapperResize() {
|
|
49812
49866
|
_this2.resizeSubject.next();
|
|
49813
49867
|
};
|
|
49814
|
-
this.resizeObserver = Object(
|
|
49868
|
+
this.resizeObserver = Object(_utils__WEBPACK_IMPORTED_MODULE_29__["addResizeObserver"])(this.domHelper.artTableWrapper, handleTableWrapperResize);
|
|
49815
49869
|
// 滚动同步
|
|
49816
|
-
this.rootSubscription.add(Object(
|
|
49870
|
+
this.rootSubscription.add(Object(_utils__WEBPACK_IMPORTED_MODULE_29__["syncScrollLeft"])([Object(_utils__WEBPACK_IMPORTED_MODULE_29__["getTableScrollHeaderDOM"])(this.domHelper), virtual, Object(_utils__WEBPACK_IMPORTED_MODULE_29__["getTableScrollFooterDOM"])(this.domHelper), stickyScroll], function (scrollLeft) {
|
|
49817
49871
|
_this2.syncHorizontalScroll(scrollLeft);
|
|
49818
49872
|
}));
|
|
49819
49873
|
var richVisibleRects$ = Object(_helpers_getRichVisibleRectsStream__WEBPACK_IMPORTED_MODULE_22__["getRichVisibleRectsStream"])(this.domHelper.virtual, this.props$.pipe(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__["skip"](1), rxjs_operators__WEBPACK_IMPORTED_MODULE_18__["mapTo"]('structure-may-change')), this.props.virtualDebugLabel).pipe(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__["shareReplay"]());
|
|
49820
49874
|
// 每当可见部分发生变化的时候,调整 loading icon 的未知(如果 loading icon 存在的话)
|
|
49821
49875
|
this.rootSubscription.add(Object(rxjs__WEBPACK_IMPORTED_MODULE_17__["combineLatest"])([richVisibleRects$.pipe(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__["map"](function (p) {
|
|
49822
49876
|
return p.clipRect;
|
|
49823
|
-
}), rxjs_operators__WEBPACK_IMPORTED_MODULE_18__["distinctUntilChanged"](
|
|
49877
|
+
}), rxjs_operators__WEBPACK_IMPORTED_MODULE_18__["distinctUntilChanged"](_utils__WEBPACK_IMPORTED_MODULE_29__["shallowEqual"])), this.props$.pipe(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__["startWith"](null), rxjs_operators__WEBPACK_IMPORTED_MODULE_18__["pairwise"](), rxjs_operators__WEBPACK_IMPORTED_MODULE_18__["filter"](function (_ref) {
|
|
49824
49878
|
var _ref2 = _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4___default()(_ref, 2),
|
|
49825
49879
|
prevProps = _ref2[0],
|
|
49826
49880
|
props = _ref2[1];
|
|
@@ -49857,7 +49911,7 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49857
49911
|
return true;
|
|
49858
49912
|
}
|
|
49859
49913
|
// 因为 overscan 的存在,滚动较小的距离时不需要触发组件重渲染
|
|
49860
|
-
return Math.abs(x.maxRenderWidth - y.maxRenderWidth) <
|
|
49914
|
+
return Math.abs(x.maxRenderWidth - y.maxRenderWidth) < _utils__WEBPACK_IMPORTED_MODULE_29__["OVERSCAN_SIZE"] / 2 && Math.abs(x.maxRenderHeight - y.maxRenderHeight) < _utils__WEBPACK_IMPORTED_MODULE_29__["OVERSCAN_SIZE"] / 2 && Math.abs(x.offsetY - y.offsetY) < _utils__WEBPACK_IMPORTED_MODULE_29__["OVERSCAN_SIZE"] / 2;
|
|
49861
49915
|
})).subscribe(function (sizeAndOffset) {
|
|
49862
49916
|
_this2.setState(sizeAndOffset);
|
|
49863
49917
|
}));
|
|
@@ -49971,7 +50025,7 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
|
|
|
49971
50025
|
hasLockColumn = _this$lastInfo2.hasLockColumn;
|
|
49972
50026
|
if (hasLockColumn) {
|
|
49973
50027
|
var _context;
|
|
49974
|
-
var sumOfColWidth = Object(
|
|
50028
|
+
var sumOfColWidth = Object(_utils__WEBPACK_IMPORTED_MODULE_29__["sum"])(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_14___default()(_context = flat.full).call(_context, function (col) {
|
|
49975
50029
|
return col.width;
|
|
49976
50030
|
}));
|
|
49977
50031
|
var nextNeedRenderLock = sumOfColWidth > this.domHelper.artTable.clientWidth;
|
|
@@ -50558,6 +50612,22 @@ var internals = {
|
|
|
50558
50612
|
|
|
50559
50613
|
/***/ }),
|
|
50560
50614
|
|
|
50615
|
+
/***/ "./node_modules/@kdcloudjs/table/es/table/pipeline/const.js":
|
|
50616
|
+
/*!******************************************************************!*\
|
|
50617
|
+
!*** ./node_modules/@kdcloudjs/table/es/table/pipeline/const.js ***!
|
|
50618
|
+
\******************************************************************/
|
|
50619
|
+
/*! exports provided: FeatureName */
|
|
50620
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
50621
|
+
|
|
50622
|
+
"use strict";
|
|
50623
|
+
__webpack_require__.r(__webpack_exports__);
|
|
50624
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FeatureName", function() { return FeatureName; });
|
|
50625
|
+
var FeatureName = {
|
|
50626
|
+
rowDrag: 'rowDrag'
|
|
50627
|
+
};
|
|
50628
|
+
|
|
50629
|
+
/***/ }),
|
|
50630
|
+
|
|
50561
50631
|
/***/ "./node_modules/@kdcloudjs/table/es/table/pipeline/features/autoFill.js":
|
|
50562
50632
|
/*!******************************************************************************!*\
|
|
50563
50633
|
!*** ./node_modules/@kdcloudjs/table/es/table/pipeline/features/autoFill.js ***!
|
|
@@ -51853,7 +51923,7 @@ function columnResize() {
|
|
|
51853
51923
|
width = col.width;
|
|
51854
51924
|
return _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, col), {
|
|
51855
51925
|
width: (_a = columnSize[code]) !== null && _a !== void 0 ? _a : width,
|
|
51856
|
-
title: (
|
|
51926
|
+
title: (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_5___default.a.Fragment, null, prevTitle, (features === null || features === void 0 ? void 0 : features.resizeable) !== false && (isGroup ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(TableHeaderGroupCellResize, {
|
|
51857
51927
|
className: _base_styles__WEBPACK_IMPORTED_MODULE_11__["Classes"].tableHeaderCellResize,
|
|
51858
51928
|
onDoubleClick: function onDoubleClick(e) {
|
|
51859
51929
|
return handleDoubleClick(e, col);
|
|
@@ -52248,6 +52318,116 @@ function getCopyItem(v) {
|
|
|
52248
52318
|
|
|
52249
52319
|
/***/ }),
|
|
52250
52320
|
|
|
52321
|
+
/***/ "./node_modules/@kdcloudjs/table/es/table/pipeline/features/featureApi/RowDragApi.js":
|
|
52322
|
+
/*!*******************************************************************************************!*\
|
|
52323
|
+
!*** ./node_modules/@kdcloudjs/table/es/table/pipeline/features/featureApi/RowDragApi.js ***!
|
|
52324
|
+
\*******************************************************************************************/
|
|
52325
|
+
/*! exports provided: default */
|
|
52326
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
52327
|
+
|
|
52328
|
+
"use strict";
|
|
52329
|
+
__webpack_require__.r(__webpack_exports__);
|
|
52330
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return RowDragApi; });
|
|
52331
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/classCallCheck */ "./node_modules/@babel/runtime-corejs3/helpers/classCallCheck.js");
|
|
52332
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
|
|
52333
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/createClass */ "./node_modules/@babel/runtime-corejs3/helpers/createClass.js");
|
|
52334
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);
|
|
52335
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ "./node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js");
|
|
52336
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);
|
|
52337
|
+
|
|
52338
|
+
|
|
52339
|
+
|
|
52340
|
+
var ROW_DRAG_STATUS = 'rowDragStatus';
|
|
52341
|
+
var RowDragApi = /*#__PURE__*/function () {
|
|
52342
|
+
function RowDragApi(pipeline) {
|
|
52343
|
+
_babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, RowDragApi);
|
|
52344
|
+
this.pipeline = pipeline;
|
|
52345
|
+
this.rowDropZoneParams = null;
|
|
52346
|
+
this.rowDropZones = [];
|
|
52347
|
+
this.dragStatus = 'finished';
|
|
52348
|
+
}
|
|
52349
|
+
return _babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(RowDragApi, [{
|
|
52350
|
+
key: "getRowDropZoneParams",
|
|
52351
|
+
value: function getRowDropZoneParams() {
|
|
52352
|
+
return this.rowDropZoneParams;
|
|
52353
|
+
}
|
|
52354
|
+
}, {
|
|
52355
|
+
key: "setRowDropZoneParams",
|
|
52356
|
+
value: function setRowDropZoneParams(params) {
|
|
52357
|
+
this.rowDropZoneParams = params;
|
|
52358
|
+
}
|
|
52359
|
+
}, {
|
|
52360
|
+
key: "addRowDropZone",
|
|
52361
|
+
value: function addRowDropZone(rowDropZone) {
|
|
52362
|
+
if (!rowDropZone || !(rowDropZone === null || rowDropZone === void 0 ? void 0 : rowDropZone.getContainer())) {
|
|
52363
|
+
return;
|
|
52364
|
+
}
|
|
52365
|
+
var isExist = this.rowDropZones.some(function (zone) {
|
|
52366
|
+
return zone.getContainer() === rowDropZone.getContainer();
|
|
52367
|
+
});
|
|
52368
|
+
if (isExist) {
|
|
52369
|
+
return;
|
|
52370
|
+
}
|
|
52371
|
+
this.rowDropZones.push(rowDropZone);
|
|
52372
|
+
}
|
|
52373
|
+
}, {
|
|
52374
|
+
key: "getRowDropZone",
|
|
52375
|
+
value: function getRowDropZone() {
|
|
52376
|
+
return this.rowDropZones;
|
|
52377
|
+
}
|
|
52378
|
+
}, {
|
|
52379
|
+
key: "removeRowDropZone",
|
|
52380
|
+
value: function removeRowDropZone(rowDropZone) {
|
|
52381
|
+
var _context;
|
|
52382
|
+
this.rowDropZones = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(_context = this.rowDropZones).call(_context, function (zone) {
|
|
52383
|
+
return zone.getContainer() !== rowDropZone.getContainer();
|
|
52384
|
+
});
|
|
52385
|
+
}
|
|
52386
|
+
}, {
|
|
52387
|
+
key: "setDragStatus",
|
|
52388
|
+
value: function setDragStatus(status) {
|
|
52389
|
+
var currentStatus = this.dragStatus;
|
|
52390
|
+
this.dragStatus = status;
|
|
52391
|
+
if (currentStatus !== status) {
|
|
52392
|
+
this.pipeline.setStateAtKey(ROW_DRAG_STATUS, status);
|
|
52393
|
+
}
|
|
52394
|
+
}
|
|
52395
|
+
}, {
|
|
52396
|
+
key: "getDragStatus",
|
|
52397
|
+
value: function getDragStatus() {
|
|
52398
|
+
return this.dragStatus;
|
|
52399
|
+
}
|
|
52400
|
+
}]);
|
|
52401
|
+
}();
|
|
52402
|
+
|
|
52403
|
+
|
|
52404
|
+
/***/ }),
|
|
52405
|
+
|
|
52406
|
+
/***/ "./node_modules/@kdcloudjs/table/es/table/pipeline/features/featureApi/utils.js":
|
|
52407
|
+
/*!**************************************************************************************!*\
|
|
52408
|
+
!*** ./node_modules/@kdcloudjs/table/es/table/pipeline/features/featureApi/utils.js ***!
|
|
52409
|
+
\**************************************************************************************/
|
|
52410
|
+
/*! exports provided: createFeatureApi */
|
|
52411
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
52412
|
+
|
|
52413
|
+
"use strict";
|
|
52414
|
+
__webpack_require__.r(__webpack_exports__);
|
|
52415
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createFeatureApi", function() { return createFeatureApi; });
|
|
52416
|
+
/* harmony import */ var _RowDragApi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RowDragApi */ "./node_modules/@kdcloudjs/table/es/table/pipeline/features/featureApi/RowDragApi.js");
|
|
52417
|
+
/* harmony import */ var _const__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../const */ "./node_modules/@kdcloudjs/table/es/table/pipeline/const.js");
|
|
52418
|
+
|
|
52419
|
+
|
|
52420
|
+
function createFeatureApi(type, pipeline) {
|
|
52421
|
+
switch (type) {
|
|
52422
|
+
case _const__WEBPACK_IMPORTED_MODULE_1__["FeatureName"].rowDrag:
|
|
52423
|
+
return new _RowDragApi__WEBPACK_IMPORTED_MODULE_0__["default"](pipeline);
|
|
52424
|
+
default:
|
|
52425
|
+
break;
|
|
52426
|
+
}
|
|
52427
|
+
}
|
|
52428
|
+
|
|
52429
|
+
/***/ }),
|
|
52430
|
+
|
|
52251
52431
|
/***/ "./node_modules/@kdcloudjs/table/es/table/pipeline/features/filter/DefaultFilterContent.js":
|
|
52252
52432
|
/*!*************************************************************************************************!*\
|
|
52253
52433
|
!*** ./node_modules/@kdcloudjs/table/es/table/pipeline/features/filter/DefaultFilterContent.js ***!
|
|
@@ -52351,7 +52531,7 @@ function DefaultFilterContent(_ref) {
|
|
|
52351
52531
|
}
|
|
52352
52532
|
}, (_a = localeText[option.key]) !== null && _a !== void 0 ? _a : option.title)
|
|
52353
52533
|
);
|
|
52354
|
-
}))), selectedValue !== 'notIsNull' && selectedValue !== 'isNull' && (
|
|
52534
|
+
}))), selectedValue !== 'notIsNull' && selectedValue !== 'isNull' && (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", {
|
|
52355
52535
|
className: 'filter-search'
|
|
52356
52536
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input", {
|
|
52357
52537
|
className: 'filter-search-inner',
|
|
@@ -52575,7 +52755,7 @@ function Filter(_ref2) {
|
|
|
52575
52755
|
}, displayFilterIcon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_DefaultFilterIcon__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
|
52576
52756
|
width: size,
|
|
52577
52757
|
height: size
|
|
52578
|
-
})), showPanel && /*#__PURE__*/Object(react_dom__WEBPACK_IMPORTED_MODULE_4__["createPortal"])(
|
|
52758
|
+
})), showPanel && /*#__PURE__*/Object(react_dom__WEBPACK_IMPORTED_MODULE_4__["createPortal"])(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Panel, {
|
|
52579
52759
|
ele: hideFilterPopupHeader ? iconWrapRef.current : iconRef.current,
|
|
52580
52760
|
filterIcon: displayFilterIcon,
|
|
52581
52761
|
hidePanel: hidePanel,
|
|
@@ -54012,7 +54192,7 @@ function rowDetail() {
|
|
|
54012
54192
|
}
|
|
54013
54193
|
});
|
|
54014
54194
|
tableColumns[expandColumnIndex] = _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, expandCol), {
|
|
54015
|
-
title: (
|
|
54195
|
+
title: (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
|
|
54016
54196
|
style: {
|
|
54017
54197
|
display: 'inline-block',
|
|
54018
54198
|
marginLeft: textOffset
|
|
@@ -54043,27 +54223,38 @@ function rowDetail() {
|
|
|
54043
54223
|
/*!*****************************************************************************!*\
|
|
54044
54224
|
!*** ./node_modules/@kdcloudjs/table/es/table/pipeline/features/rowDrag.js ***!
|
|
54045
54225
|
\*****************************************************************************/
|
|
54046
|
-
/*! exports provided: ROW_DRAG_COLUMN_CODE, rowDragKey, rowDrag */
|
|
54226
|
+
/*! exports provided: ROW_DRAG_COLUMN_CODE, rowDragKey, rowDragOptionsKey, rowDrag */
|
|
54047
54227
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
54048
54228
|
|
|
54049
54229
|
"use strict";
|
|
54050
54230
|
__webpack_require__.r(__webpack_exports__);
|
|
54051
54231
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ROW_DRAG_COLUMN_CODE", function() { return ROW_DRAG_COLUMN_CODE; });
|
|
54052
54232
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rowDragKey", function() { return rowDragKey; });
|
|
54233
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rowDragOptionsKey", function() { return rowDragOptionsKey; });
|
|
54053
54234
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rowDrag", function() { return rowDrag; });
|
|
54054
54235
|
/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ "./node_modules/@babel/runtime-corejs3/helpers/defineProperty.js");
|
|
54055
54236
|
/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
54056
|
-
/* harmony import */ var
|
|
54057
|
-
/* harmony import */ var
|
|
54058
|
-
/* harmony import */ var
|
|
54059
|
-
/* harmony import */ var
|
|
54060
|
-
/* harmony import */ var
|
|
54061
|
-
/* harmony import */ var
|
|
54062
|
-
/* harmony import */ var
|
|
54063
|
-
/* harmony import */ var
|
|
54064
|
-
/* harmony import */ var
|
|
54065
|
-
/* harmony import */ var
|
|
54066
|
-
/* harmony import */ var
|
|
54237
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ "./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js");
|
|
54238
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1__);
|
|
54239
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ "./node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js");
|
|
54240
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2__);
|
|
54241
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ "./node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js");
|
|
54242
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3__);
|
|
54243
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find-index */ "./node_modules/@babel/runtime-corejs3/core-js-stable/instance/find-index.js");
|
|
54244
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find_index__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find_index__WEBPACK_IMPORTED_MODULE_4__);
|
|
54245
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
|
54246
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
54247
|
+
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
|
|
54248
|
+
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
|
|
54249
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
54250
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__);
|
|
54251
|
+
/* harmony import */ var _base_styles__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../base/styles */ "./node_modules/@kdcloudjs/table/es/table/base/styles.js");
|
|
54252
|
+
/* harmony import */ var _const__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../const */ "./node_modules/@kdcloudjs/table/es/table/pipeline/const.js");
|
|
54253
|
+
/* harmony import */ var _internals__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../internals */ "./node_modules/@kdcloudjs/table/es/table/internals.js");
|
|
54254
|
+
|
|
54255
|
+
|
|
54256
|
+
|
|
54257
|
+
|
|
54067
54258
|
|
|
54068
54259
|
|
|
54069
54260
|
|
|
@@ -54074,7 +54265,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54074
54265
|
|
|
54075
54266
|
var ROW_DRAG_COLUMN_CODE = '$_row_drag_column_&';
|
|
54076
54267
|
var rowDragKey = 'rowDragKey';
|
|
54268
|
+
var rowDragOptionsKey = 'rowDragOptions';
|
|
54077
54269
|
var SCROLL_OFFSET = 30;
|
|
54270
|
+
var SCROLL_START_OFFSET = 20;
|
|
54078
54271
|
var defaultRowDragColumn = {
|
|
54079
54272
|
name: '拖拽列',
|
|
54080
54273
|
code: ROW_DRAG_COLUMN_CODE,
|
|
@@ -54084,18 +54277,18 @@ var defaultRowDragColumn = {
|
|
|
54084
54277
|
align: 'center',
|
|
54085
54278
|
getCellProps: function getCellProps(value, row, rowIndex) {
|
|
54086
54279
|
return {
|
|
54087
|
-
className:
|
|
54280
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()(_base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragCell)
|
|
54088
54281
|
};
|
|
54089
54282
|
},
|
|
54090
54283
|
render: function render(value, row, rowIndex) {
|
|
54091
|
-
return /*#__PURE__*/
|
|
54284
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("svg", {
|
|
54092
54285
|
viewBox: '0 0 1024 1024',
|
|
54093
54286
|
version: '1.1',
|
|
54094
54287
|
xmlns: 'http://www.w3.org/1999/xlink',
|
|
54095
54288
|
"data-icon": 'drag',
|
|
54096
54289
|
width: '16',
|
|
54097
54290
|
height: '16'
|
|
54098
|
-
}, /*#__PURE__*/
|
|
54291
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("path", {
|
|
54099
54292
|
d: 'M298.688 192a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m298.624 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0zM298.688 512a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m298.624 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m-298.624 320a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m298.624 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z',
|
|
54100
54293
|
"p-id": '4278'
|
|
54101
54294
|
}));
|
|
@@ -54106,164 +54299,251 @@ function rowDrag(opt) {
|
|
|
54106
54299
|
var _context;
|
|
54107
54300
|
var tableBody = pipeline.ref.current.domHelper && pipeline.ref.current.domHelper.tableBody;
|
|
54108
54301
|
var artTable = pipeline.ref.current.domHelper && pipeline.ref.current.domHelper.artTable;
|
|
54302
|
+
var rowDragApi = pipeline.addFeatureApi(_const__WEBPACK_IMPORTED_MODULE_10__["FeatureName"].rowDrag);
|
|
54303
|
+
pipeline.setFeatureOptions(rowDragOptionsKey, opt);
|
|
54109
54304
|
if (!tableBody) return pipeline;
|
|
54110
54305
|
var dataSource = pipeline.getDataSource();
|
|
54111
|
-
var
|
|
54112
|
-
|
|
54306
|
+
var getRowDragEvent = function getRowDragEvent(dropTargetEvent, isFinished) {
|
|
54307
|
+
var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'targetTable';
|
|
54308
|
+
var dragItem = dropTargetEvent.dragItem,
|
|
54309
|
+
x = dropTargetEvent.x,
|
|
54310
|
+
y = dropTargetEvent.y,
|
|
54311
|
+
dropZoneTarget = dropTargetEvent.dropZoneTarget,
|
|
54312
|
+
startDropZoneTagret = dropTargetEvent.startDropZoneTagret,
|
|
54313
|
+
event = dropTargetEvent.event,
|
|
54314
|
+
dropZoneTableParams = dropTargetEvent.dropZoneTableParams;
|
|
54315
|
+
var getDataSource = dropZoneTableParams.getDataSource,
|
|
54316
|
+
getTreeModeOptions = dropZoneTableParams.getTreeModeOptions,
|
|
54317
|
+
getRowDragOptions = dropZoneTableParams.getRowDragOptions;
|
|
54318
|
+
var dataSource = getDataSource();
|
|
54319
|
+
var treeModeOptions = getTreeModeOptions();
|
|
54320
|
+
var rowDragOptions = getRowDragOptions();
|
|
54321
|
+
var allowDragIntoRow = !!treeModeOptions && (rowDragOptions === null || rowDragOptions === void 0 ? void 0 : rowDragOptions.allowDragIntoRow);
|
|
54322
|
+
var isLeave = !isMouseOnDropTarget(event, dropZoneTarget);
|
|
54323
|
+
var overIndex = -1;
|
|
54324
|
+
var direction = 'bottom';
|
|
54325
|
+
if (!isLeave) {
|
|
54326
|
+
var overDragItem = getDragRowItem(event.target, dropZoneTarget, dataSource);
|
|
54327
|
+
if (overDragItem) {
|
|
54328
|
+
var rowIndex = overDragItem.rowIndex,
|
|
54329
|
+
cell = overDragItem.cell;
|
|
54330
|
+
overIndex = rowIndex;
|
|
54331
|
+
direction = getDirection(cell, event.clientY, allowDragIntoRow);
|
|
54332
|
+
}
|
|
54333
|
+
}
|
|
54334
|
+
var overRow = overIndex >= 0 ? dataSource[overIndex] : null;
|
|
54335
|
+
return {
|
|
54336
|
+
startRowIndex: dragItem.rowIndex,
|
|
54337
|
+
startRow: dragItem.row,
|
|
54338
|
+
endRowIndex: overIndex,
|
|
54339
|
+
endRow: overRow,
|
|
54340
|
+
startDropZoneTagret: startDropZoneTagret,
|
|
54341
|
+
dropZoneTarget: dropZoneTarget,
|
|
54342
|
+
event: event,
|
|
54343
|
+
dragPosition: direction,
|
|
54344
|
+
isFinished: isFinished,
|
|
54345
|
+
source: source,
|
|
54346
|
+
x: x,
|
|
54347
|
+
y: y
|
|
54348
|
+
};
|
|
54349
|
+
};
|
|
54350
|
+
var onDragging = function onDragging(event) {
|
|
54113
54351
|
var _a;
|
|
54114
|
-
|
|
54115
|
-
|
|
54116
|
-
|
|
54352
|
+
var rowDragEvent = getRowDragEvent(event, false, 'targetTable');
|
|
54353
|
+
(_a = opt === null || opt === void 0 ? void 0 : opt.onDragMove) === null || _a === void 0 ? void 0 : _a.call(opt, rowDragEvent);
|
|
54354
|
+
pipeline.setStateAtKey(rowDragKey, rowDragEvent);
|
|
54117
54355
|
};
|
|
54118
|
-
var
|
|
54356
|
+
var onDragStop = function onDragStop(event, source) {
|
|
54119
54357
|
var _a;
|
|
54120
|
-
|
|
54121
|
-
pipeline.setStateAtKey(rowDragKey,
|
|
54358
|
+
var rowDragEvent = getRowDragEvent(event, true, source);
|
|
54359
|
+
pipeline.setStateAtKey(rowDragKey, rowDragEvent);
|
|
54360
|
+
(_a = opt === null || opt === void 0 ? void 0 : opt.onDragEnd) === null || _a === void 0 ? void 0 : _a.call(opt, rowDragEvent);
|
|
54122
54361
|
};
|
|
54123
|
-
var
|
|
54362
|
+
var onDragStart = function onDragStart(event) {
|
|
54124
54363
|
var _a;
|
|
54125
|
-
|
|
54126
|
-
|
|
54127
|
-
// 超出拖拽范围不触发dragend事件
|
|
54128
|
-
if (isValid) {
|
|
54129
|
-
(_a = opt === null || opt === void 0 ? void 0 : opt.onDragEnd) === null || _a === void 0 ? void 0 : _a.call(opt, event);
|
|
54130
|
-
}
|
|
54364
|
+
var rowDragEvent = getRowDragEvent(event, false);
|
|
54365
|
+
(_a = opt === null || opt === void 0 ? void 0 : opt.onDragStart) === null || _a === void 0 ? void 0 : _a.call(opt, rowDragEvent);
|
|
54131
54366
|
};
|
|
54132
|
-
var
|
|
54133
|
-
var
|
|
54134
|
-
|
|
54135
|
-
|
|
54136
|
-
|
|
54137
|
-
startRowIndex: startRowInfo.rowIndex,
|
|
54138
|
-
startRow: startRowInfo.row,
|
|
54139
|
-
endRowIndex: endRowInfo.rowIndex,
|
|
54140
|
-
endRow: endRowInfo.row,
|
|
54141
|
-
dragPosition: dragPosition,
|
|
54142
|
-
isFinished: isFinished
|
|
54143
|
-
};
|
|
54367
|
+
var onDragLeave = function onDragLeave(event) {
|
|
54368
|
+
var _a;
|
|
54369
|
+
var rowDragEvent = getRowDragEvent(event, false);
|
|
54370
|
+
pipeline.setStateAtKey(rowDragKey, rowDragEvent);
|
|
54371
|
+
(_a = opt === null || opt === void 0 ? void 0 : opt.onDragLeave) === null || _a === void 0 ? void 0 : _a.call(opt, rowDragEvent);
|
|
54144
54372
|
};
|
|
54145
|
-
var
|
|
54146
|
-
|
|
54147
|
-
var
|
|
54148
|
-
|
|
54149
|
-
|
|
54150
|
-
|
|
54151
|
-
|
|
54152
|
-
|
|
54153
|
-
|
|
54154
|
-
|
|
54155
|
-
|
|
54373
|
+
var onDragEnter = function onDragEnter(event) {
|
|
54374
|
+
var _a;
|
|
54375
|
+
var rowDragEvent = getRowDragEvent(event, false);
|
|
54376
|
+
pipeline.setStateAtKey(rowDragKey, rowDragEvent);
|
|
54377
|
+
(_a = opt === null || opt === void 0 ? void 0 : opt.onDragEnter) === null || _a === void 0 ? void 0 : _a.call(opt, rowDragEvent);
|
|
54378
|
+
};
|
|
54379
|
+
var currentDropZone = {
|
|
54380
|
+
getContainer: function getContainer() {
|
|
54381
|
+
var lastPipeline = pipeline.getLastPipeline();
|
|
54382
|
+
return lastPipeline.ref.current.domHelper.tableBody;
|
|
54383
|
+
},
|
|
54384
|
+
onDragEnter: onDragEnter,
|
|
54385
|
+
onDragLeave: onDragLeave,
|
|
54386
|
+
onDragging: onDragging,
|
|
54387
|
+
onDragStop: onDragStop,
|
|
54388
|
+
isTable: true,
|
|
54389
|
+
tableParams: {
|
|
54390
|
+
getDataSource: function getDataSource() {
|
|
54391
|
+
var lastPipeline = pipeline.getLastPipeline();
|
|
54392
|
+
return lastPipeline.getDataSource();
|
|
54393
|
+
},
|
|
54394
|
+
getTreeModeOptions: function getTreeModeOptions() {
|
|
54395
|
+
var lastPipeline = pipeline.getLastPipeline();
|
|
54396
|
+
return lastPipeline.getFeatureOptions('treeModeOptions');
|
|
54397
|
+
},
|
|
54398
|
+
getRowDragOptions: function getRowDragOptions() {
|
|
54399
|
+
var lastPipeline = pipeline.getLastPipeline();
|
|
54400
|
+
return lastPipeline.getFeatureOptions('rowDragOptions');
|
|
54401
|
+
}
|
|
54156
54402
|
}
|
|
54157
54403
|
};
|
|
54158
|
-
var onMouseDown = function onMouseDown(
|
|
54404
|
+
var onMouseDown = function onMouseDown(event) {
|
|
54159
54405
|
var _a;
|
|
54160
|
-
var
|
|
54161
|
-
var
|
|
54162
|
-
if (!
|
|
54163
|
-
if ((_a = opt === null || opt === void 0 ? void 0 : opt.isDisabled) === null || _a === void 0 ? void 0 : _a.call(opt,
|
|
54164
|
-
// 默认拖拽插入的位置是向下
|
|
54165
|
-
var dragPosition = 'bottom';
|
|
54166
|
-
var isOutOfRange = false;
|
|
54406
|
+
var mouseDownEvent = event.nativeEvent;
|
|
54407
|
+
var startDataItem = getDragRowItem(mouseDownEvent.target, tableBody, dataSource);
|
|
54408
|
+
if (!startDataItem || startDataItem.code !== rowDragColumn.code) return;
|
|
54409
|
+
if ((_a = opt === null || opt === void 0 ? void 0 : opt.isDisabled) === null || _a === void 0 ? void 0 : _a.call(opt, startDataItem.row, startDataItem.rowIndex)) return;
|
|
54167
54410
|
var isValidDrag = false;
|
|
54168
|
-
var
|
|
54169
|
-
|
|
54170
|
-
|
|
54171
|
-
|
|
54172
|
-
|
|
54173
|
-
var
|
|
54174
|
-
var
|
|
54175
|
-
|
|
54176
|
-
|
|
54177
|
-
|
|
54178
|
-
|
|
54179
|
-
|
|
54180
|
-
|
|
54181
|
-
|
|
54182
|
-
|
|
54183
|
-
|
|
54184
|
-
|
|
54185
|
-
|
|
54186
|
-
|
|
54411
|
+
var isDragging = false;
|
|
54412
|
+
var dragElement = null;
|
|
54413
|
+
var dragLine = null;
|
|
54414
|
+
var lastDropTarget = null;
|
|
54415
|
+
var timeoutId = null;
|
|
54416
|
+
var intervalId = null;
|
|
54417
|
+
var updateScrollPosition = function updateScrollPosition(tableBody, mouseMoveEvent) {
|
|
54418
|
+
if (opt === null || opt === void 0 ? void 0 : opt.suppressScrollMove) return;
|
|
54419
|
+
if (timeoutId) {
|
|
54420
|
+
clearTimeout(timeoutId);
|
|
54421
|
+
}
|
|
54422
|
+
if (intervalId) {
|
|
54423
|
+
clearInterval(intervalId);
|
|
54424
|
+
}
|
|
54425
|
+
var moveOffset = getScrollMoveOffset(tableBody, mouseMoveEvent);
|
|
54426
|
+
if (moveOffset === 0) {
|
|
54427
|
+
return;
|
|
54428
|
+
}
|
|
54429
|
+
timeoutId = setTimeout(function () {
|
|
54430
|
+
intervalId = setInterval(function () {
|
|
54431
|
+
tableBody.scrollTop += moveOffset;
|
|
54432
|
+
}, 100);
|
|
54433
|
+
}, 500);
|
|
54434
|
+
};
|
|
54435
|
+
var handleDragStart = function handleDragStart(mouseDownEvent) {
|
|
54436
|
+
var _a;
|
|
54437
|
+
dragElement = createDragElement(mouseDownEvent, tableBody); // 创建拖拽悬浮框
|
|
54438
|
+
var isTreeTable = !!pipeline.getFeatureOptions('treeModeOptions');
|
|
54439
|
+
dragLine = createDragLine(isTreeTable); // 创建拖拽插入指示线
|
|
54440
|
+
var dragText = (opt === null || opt === void 0 ? void 0 : opt.rowDragText) ? (_a = opt === null || opt === void 0 ? void 0 : opt.rowDragText) === null || _a === void 0 ? void 0 : _a.call(opt, startDataItem.row, startDataItem.rowIndex) : "\u7B2C".concat(startDataItem.rowIndex, "\u884C\u5185\u5BB9");
|
|
54441
|
+
setDragText(dragElement, dragText); // 设置悬浮框显示文本
|
|
54442
|
+
artTable.classList.add(classnames__WEBPACK_IMPORTED_MODULE_8___default()(_base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragging));
|
|
54443
|
+
rowDragApi.setDragStatus('start');
|
|
54444
|
+
var dragEvent = createDropTargetEvent(currentDropZone, mouseDownEvent, startDataItem, tableBody);
|
|
54445
|
+
onDragStart(dragEvent);
|
|
54446
|
+
};
|
|
54447
|
+
var handleDragMove = function handleDragMove(mouseMoveEvent) {
|
|
54448
|
+
positionDragElemment(dragElement, mouseMoveEvent); // 更新拖拽悬浮框位置
|
|
54449
|
+
rowDragApi.setDragStatus('dragging');
|
|
54450
|
+
setDragElementIcon(dragElement, 'move');
|
|
54451
|
+
var rowDropZones = rowDragApi.getRowDropZone();
|
|
54452
|
+
var validDropZones = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1___default()(rowDropZones).call(rowDropZones, currentDropZone); // 可放置区域加上自身
|
|
54453
|
+
var dropTarget = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2___default()(validDropZones).call(validDropZones, function (zone) {
|
|
54454
|
+
return isMouseOnDropTarget(mouseMoveEvent, zone.getContainer());
|
|
54455
|
+
}) || null;
|
|
54456
|
+
if (dropTarget !== lastDropTarget) {
|
|
54457
|
+
// 拖拽离开表格
|
|
54458
|
+
if (lastDropTarget !== null && dropTarget === null) {
|
|
54459
|
+
if (lastDropTarget.onDragLeave) {
|
|
54460
|
+
setDragElementIcon(dragElement, 'notAllowed');
|
|
54461
|
+
hiddenDragLine(dragLine);
|
|
54462
|
+
var dragEvent = createDropTargetEvent(lastDropTarget, mouseMoveEvent, startDataItem, tableBody);
|
|
54463
|
+
lastDropTarget.onDragLeave(dragEvent);
|
|
54464
|
+
}
|
|
54465
|
+
}
|
|
54466
|
+
// 拖拽进入表格
|
|
54467
|
+
if (lastDropTarget === null && dropTarget !== null) {
|
|
54468
|
+
if (dropTarget.onDragEnter) {
|
|
54469
|
+
setDragElementIcon(dragElement, 'move');
|
|
54470
|
+
if (dropTarget.isTable) {
|
|
54471
|
+
showDragLine(dragLine);
|
|
54472
|
+
}
|
|
54473
|
+
var _dragEvent = createDropTargetEvent(dropTarget, mouseMoveEvent, startDataItem, tableBody);
|
|
54474
|
+
dropTarget.onDragEnter(_dragEvent);
|
|
54475
|
+
}
|
|
54476
|
+
}
|
|
54477
|
+
lastDropTarget = dropTarget;
|
|
54478
|
+
}
|
|
54479
|
+
if (dropTarget) {
|
|
54480
|
+
// 拖拽区域在表格中,更新拖拽插入指示线位置
|
|
54481
|
+
if (dropTarget.isTable) {
|
|
54482
|
+
positionDragLine({
|
|
54483
|
+
lineElement: dragLine,
|
|
54484
|
+
dragZone: dropTarget,
|
|
54485
|
+
event: mouseMoveEvent
|
|
54486
|
+
});
|
|
54487
|
+
updateScrollPosition(dropTarget.getContainer(), mouseMoveEvent); // 拖拽到底时让滚动条可以滚动
|
|
54488
|
+
}
|
|
54489
|
+
if (dropTarget.onDragging) {
|
|
54490
|
+
var _dragEvent2 = createDropTargetEvent(dropTarget, mouseMoveEvent, startDataItem, tableBody);
|
|
54491
|
+
dropTarget.onDragging(_dragEvent2);
|
|
54492
|
+
}
|
|
54493
|
+
}
|
|
54187
54494
|
};
|
|
54188
|
-
var
|
|
54189
|
-
|
|
54190
|
-
|
|
54191
|
-
|
|
54192
|
-
|
|
54193
|
-
|
|
54194
|
-
|
|
54195
|
-
|
|
54495
|
+
var handleDragStop = function handleDragStop(mouseUpEvent) {
|
|
54496
|
+
removeElement(dragElement);
|
|
54497
|
+
removeElement(dragLine);
|
|
54498
|
+
artTable.classList.remove(classnames__WEBPACK_IMPORTED_MODULE_8___default()(_base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragging));
|
|
54499
|
+
rowDragApi.setDragStatus('finished');
|
|
54500
|
+
clearTimeout(timeoutId);
|
|
54501
|
+
clearInterval(intervalId);
|
|
54502
|
+
var rowDropZones = rowDragApi.getRowDropZone();
|
|
54503
|
+
var validDropZones = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1___default()(rowDropZones).call(rowDropZones, currentDropZone);
|
|
54504
|
+
var dropTarget = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2___default()(validDropZones).call(validDropZones, function (zone) {
|
|
54505
|
+
return isMouseOnDropTarget(mouseUpEvent, zone.getContainer());
|
|
54196
54506
|
});
|
|
54197
|
-
|
|
54198
|
-
|
|
54507
|
+
if (dropTarget && dropTarget.onDragStop) {
|
|
54508
|
+
var dragEvent = createDropTargetEvent(dropTarget, mouseUpEvent, startDataItem, tableBody);
|
|
54509
|
+
dropTarget.onDragStop(dragEvent);
|
|
54510
|
+
// 原表也触发onDragStop, 方便上层调用
|
|
54511
|
+
if (dropTarget !== currentDropZone) {
|
|
54512
|
+
currentDropZone.onDragStop(dragEvent, 'startTable');
|
|
54513
|
+
}
|
|
54514
|
+
}
|
|
54199
54515
|
};
|
|
54200
|
-
|
|
54201
|
-
var
|
|
54516
|
+
var mousemove$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_6__["fromEvent"])(window, 'mousemove');
|
|
54517
|
+
var mouseup$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_6__["fromEvent"])(window, 'mouseup');
|
|
54518
|
+
var rowDragMove$ = mousemove$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["filter"])(function (mouseMoveEvent) {
|
|
54202
54519
|
var mouseMoveClientY = mouseMoveEvent.clientY;
|
|
54520
|
+
var mouseDownClientY = mouseDownEvent.clientY;
|
|
54203
54521
|
// 上下移动偏移量大于5才是有效的拖拽
|
|
54204
54522
|
if (Math.abs(mouseMoveClientY - mouseDownClientY) > 5) {
|
|
54205
54523
|
isValidDrag = true;
|
|
54206
54524
|
}
|
|
54207
54525
|
return isValidDrag;
|
|
54208
|
-
}), Object(
|
|
54209
|
-
|
|
54210
|
-
|
|
54211
|
-
|
|
54212
|
-
|
|
54213
|
-
|
|
54214
|
-
|
|
54215
|
-
|
|
54216
|
-
|
|
54217
|
-
|
|
54218
|
-
|
|
54219
|
-
|
|
54220
|
-
|
|
54221
|
-
|
|
54222
|
-
}, dragRange);
|
|
54223
|
-
mousePosition = {
|
|
54224
|
-
x: clientX,
|
|
54225
|
-
y: clientY
|
|
54226
|
-
};
|
|
54227
|
-
updateScrollPosition(mouseMoveEvent); // 拖拽到底时让滚动条可以滚动
|
|
54228
|
-
updateDragElementPosition(dragElement, dragRange, {
|
|
54229
|
-
x: clientX,
|
|
54230
|
-
y: clientY,
|
|
54231
|
-
startOffset: startOffset
|
|
54232
|
-
});
|
|
54233
|
-
updateCurSorStyle(isOutOfRange);
|
|
54234
|
-
return {
|
|
54235
|
-
startRowInfo: startRowInfo,
|
|
54236
|
-
endRowInfo: endRowInfo,
|
|
54237
|
-
dragPosition: dragPosition
|
|
54238
|
-
};
|
|
54239
|
-
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["takeUntil"])(mouseup$));
|
|
54240
|
-
rowDrag$.subscribe({
|
|
54241
|
-
next: function next(_ref2) {
|
|
54242
|
-
var startRowInfo = _ref2.startRowInfo,
|
|
54243
|
-
endRowInfo = _ref2.endRowInfo,
|
|
54244
|
-
dragPosition = _ref2.dragPosition;
|
|
54245
|
-
var dragMoveEvent = getDragEvent(startRowInfo, endRowInfo, {
|
|
54246
|
-
isFinished: false,
|
|
54247
|
-
dragPosition: dragPosition
|
|
54248
|
-
});
|
|
54249
|
-
handleDragMove(dragMoveEvent);
|
|
54250
|
-
},
|
|
54251
|
-
complete: function complete() {
|
|
54252
|
-
var dragEndEvent = getDragEvent(startRowInfo, endRowInfo, {
|
|
54253
|
-
isFinished: true,
|
|
54254
|
-
dragPosition: dragPosition
|
|
54255
|
-
});
|
|
54256
|
-
var isValid = isValidDrag && !isOutOfRange;
|
|
54257
|
-
handleDragEnd(dragEndEvent, isValid);
|
|
54258
|
-
removeDragElement(dragElement);
|
|
54259
|
-
removeCurSorStyle();
|
|
54260
|
-
document.removeEventListener('scroll', scrollCallback, true);
|
|
54526
|
+
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["map"])(function (mouseMoveEvent) {
|
|
54527
|
+
if (!isDragging) {
|
|
54528
|
+
isDragging = true;
|
|
54529
|
+
handleDragStart(mouseDownEvent);
|
|
54530
|
+
handleDragMove(mouseDownEvent);
|
|
54531
|
+
}
|
|
54532
|
+
handleDragMove(mouseMoveEvent);
|
|
54533
|
+
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["takeUntil"])(mouseup$));
|
|
54534
|
+
rowDragMove$.subscribe();
|
|
54535
|
+
var rowDragEnd$ = mouseup$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["map"])(function (mouseUpEvent) {
|
|
54536
|
+
handleDragStop(mouseUpEvent);
|
|
54537
|
+
})).subscribe({
|
|
54538
|
+
next: function next() {
|
|
54539
|
+
rowDragEnd$.unsubscribe();
|
|
54261
54540
|
}
|
|
54262
54541
|
});
|
|
54263
54542
|
};
|
|
54264
54543
|
var rowDragColumn = (opt === null || opt === void 0 ? void 0 : opt.rowDragColumn) || defaultRowDragColumn;
|
|
54265
54544
|
pipeline.setFeatureOptions('rowDragColumnKey', rowDragColumn.code);
|
|
54266
|
-
|
|
54545
|
+
rowDragApi.setRowDropZoneParams(currentDropZone);
|
|
54546
|
+
var nextColumns = _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3___default()(_context = pipeline.getColumns()).call(_context);
|
|
54267
54547
|
nextColumns.unshift(rowDragColumn);
|
|
54268
54548
|
pipeline.columns(nextColumns);
|
|
54269
54549
|
pipeline.addTableProps({
|
|
@@ -54271,13 +54551,27 @@ function rowDrag(opt) {
|
|
|
54271
54551
|
});
|
|
54272
54552
|
pipeline.appendRowPropsGetter(function (row, rowIndex) {
|
|
54273
54553
|
var rowDragEvent = pipeline.getStateAtKey(rowDragKey) || {};
|
|
54554
|
+
var dragStatus = rowDragApi.getDragStatus();
|
|
54274
54555
|
var startRowIndex = rowDragEvent.startRowIndex,
|
|
54275
54556
|
endRowIndex = rowDragEvent.endRowIndex,
|
|
54557
|
+
endRow = rowDragEvent.endRow,
|
|
54276
54558
|
isFinished = rowDragEvent.isFinished,
|
|
54277
54559
|
dragPosition = rowDragEvent.dragPosition;
|
|
54278
54560
|
var isFooterCell = row[pipeline.getFeatureOptions('footerRowMetaKey')];
|
|
54279
|
-
|
|
54280
|
-
var
|
|
54561
|
+
var treeModeOptions = pipeline.getFeatureOptions('treeModeOptions');
|
|
54562
|
+
var isTreeTable = !!treeModeOptions;
|
|
54563
|
+
if (isFooterCell || isFinished || !isTreeTable && rowIndex !== startRowIndex && rowIndex !== endRowIndex) return;
|
|
54564
|
+
var parentRowKeyIndex = -1;
|
|
54565
|
+
if (isTreeTable && endRow) {
|
|
54566
|
+
var _context2;
|
|
54567
|
+
var treeMetaKey = treeModeOptions.treeMetaKey;
|
|
54568
|
+
var parentRowKey = endRow[treeMetaKey].parentRowKey;
|
|
54569
|
+
var primaryKey = pipeline.ensurePrimaryKey('rowDrag');
|
|
54570
|
+
parentRowKeyIndex = _babel_runtime_corejs3_core_js_stable_instance_find_index__WEBPACK_IMPORTED_MODULE_4___default()(_context2 = pipeline.getDataSource()).call(_context2, function (row) {
|
|
54571
|
+
return _internals__WEBPACK_IMPORTED_MODULE_11__["internals"].safeGetRowKey(primaryKey, row, -1) === parentRowKey;
|
|
54572
|
+
});
|
|
54573
|
+
}
|
|
54574
|
+
var className = classnames__WEBPACK_IMPORTED_MODULE_8___default()(_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, _base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragStart, rowIndex === startRowIndex && dragStatus !== 'finished'), _base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragEnd, rowIndex === endRowIndex), _base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragEndParent, isTreeTable && rowIndex === parentRowKeyIndex), _base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragEndInto, rowIndex === endRowIndex && dragPosition === 'into'), _base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragEndToTop, rowIndex === endRowIndex && dragPosition === 'top'), _base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragEndToBottom, rowIndex === endRowIndex && dragPosition === 'bottom'));
|
|
54281
54575
|
return {
|
|
54282
54576
|
className: className
|
|
54283
54577
|
};
|
|
@@ -54285,7 +54579,7 @@ function rowDrag(opt) {
|
|
|
54285
54579
|
return pipeline;
|
|
54286
54580
|
};
|
|
54287
54581
|
}
|
|
54288
|
-
function
|
|
54582
|
+
function getDragRowItem(target, tableBody, record) {
|
|
54289
54583
|
while (target && tableBody.contains(target)) {
|
|
54290
54584
|
if (target.getAttribute('data-role') === 'table-cell') {
|
|
54291
54585
|
var code = target.getAttribute('data-code');
|
|
@@ -54304,86 +54598,273 @@ function getTargetRowInfo(target, tableBody, record) {
|
|
|
54304
54598
|
}
|
|
54305
54599
|
return null;
|
|
54306
54600
|
}
|
|
54601
|
+
function findTargetRow(target, tableBody) {
|
|
54602
|
+
while (target && tableBody.contains(target)) {
|
|
54603
|
+
if (target.getAttribute('data-role') === 'table-row') {
|
|
54604
|
+
return target;
|
|
54605
|
+
}
|
|
54606
|
+
target = target.parentElement;
|
|
54607
|
+
}
|
|
54608
|
+
return null;
|
|
54609
|
+
}
|
|
54307
54610
|
function isEleInFooter(target) {
|
|
54308
|
-
while (target && !target.classList.contains(
|
|
54309
|
-
if (target.classList.contains(
|
|
54611
|
+
while (target && !target.classList.contains(_base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].artTable)) {
|
|
54612
|
+
if (target.classList.contains(_base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].tableFooter)) {
|
|
54310
54613
|
return true;
|
|
54311
54614
|
}
|
|
54312
54615
|
target = target.parentElement;
|
|
54313
54616
|
}
|
|
54314
54617
|
return false;
|
|
54315
54618
|
}
|
|
54316
|
-
function createDragElement(
|
|
54317
|
-
var
|
|
54318
|
-
var
|
|
54319
|
-
|
|
54320
|
-
|
|
54321
|
-
|
|
54322
|
-
|
|
54323
|
-
|
|
54324
|
-
|
|
54325
|
-
|
|
54326
|
-
|
|
54327
|
-
var
|
|
54328
|
-
|
|
54329
|
-
|
|
54330
|
-
|
|
54331
|
-
|
|
54332
|
-
|
|
54333
|
-
|
|
54334
|
-
|
|
54335
|
-
|
|
54619
|
+
function createDragElement(mouseDownEvent, tableBody) {
|
|
54620
|
+
var _context3, _context4;
|
|
54621
|
+
var ELEMENT_TEMPLATE = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1___default()(_context3 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1___default()(_context4 = "<div class='".concat(_base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragElement, "'>\n <span class='")).call(_context4, _base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragElementIcon, "'></span>\n <div class='")).call(_context3, _base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragElementLabel, "'></div>\n </div>");
|
|
54622
|
+
var element = document.createElement('div');
|
|
54623
|
+
element.innerHTML = ELEMENT_TEMPLATE;
|
|
54624
|
+
var dragElement = element.firstChild;
|
|
54625
|
+
var targetRow = findTargetRow(mouseDownEvent.target, tableBody);
|
|
54626
|
+
if (targetRow) {
|
|
54627
|
+
var rect = targetRow.getBoundingClientRect();
|
|
54628
|
+
dragElement.style.height = rect.height + 'px';
|
|
54629
|
+
}
|
|
54630
|
+
var bodyRect = tableBody.getBoundingClientRect();
|
|
54631
|
+
dragElement.style.maxWidth = bodyRect.width + 'px';
|
|
54632
|
+
document.body.appendChild(dragElement);
|
|
54633
|
+
return dragElement;
|
|
54634
|
+
}
|
|
54635
|
+
function createDragLine(isTreeTable) {
|
|
54636
|
+
var dragLine = document.createElement('div');
|
|
54637
|
+
dragLine.classList.add(_base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragLine);
|
|
54638
|
+
if (isTreeTable) {
|
|
54639
|
+
dragLine.classList.add(_base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].treeTableRowDragLine);
|
|
54640
|
+
}
|
|
54641
|
+
document.body.appendChild(dragLine);
|
|
54642
|
+
return dragLine;
|
|
54643
|
+
}
|
|
54644
|
+
function positionDragLine(_ref) {
|
|
54645
|
+
var lineElement = _ref.lineElement,
|
|
54646
|
+
dragZone = _ref.dragZone,
|
|
54647
|
+
event = _ref.event;
|
|
54648
|
+
var tableContainer = dragZone.getContainer();
|
|
54649
|
+
var _dragZone$tableParams = dragZone.tableParams,
|
|
54650
|
+
getDataSource = _dragZone$tableParams.getDataSource,
|
|
54651
|
+
getTreeModeOptions = _dragZone$tableParams.getTreeModeOptions,
|
|
54652
|
+
getRowDragOptions = _dragZone$tableParams.getRowDragOptions;
|
|
54653
|
+
var dataSource = getDataSource();
|
|
54654
|
+
var treeModeOptions = getTreeModeOptions();
|
|
54655
|
+
var rowDragOptions = getRowDragOptions() || {};
|
|
54656
|
+
var allowDragIntoRow = rowDragOptions.allowDragIntoRow;
|
|
54657
|
+
// 鼠标悬停所在的拖拽行信息
|
|
54658
|
+
var dragItem = getDragRowItem(event.target, tableContainer, dataSource);
|
|
54659
|
+
if (!dragItem) return;
|
|
54660
|
+
var cell = dragItem.cell,
|
|
54661
|
+
rowIndex = dragItem.rowIndex,
|
|
54662
|
+
row = dragItem.row;
|
|
54663
|
+
var bodyRect = tableContainer.getBoundingClientRect();
|
|
54664
|
+
var offsetParentSize = getElementRectWithOffset(document.body);
|
|
54665
|
+
var isTreeTable = !!treeModeOptions;
|
|
54666
|
+
var allowDragInto = isTreeTable && allowDragIntoRow;
|
|
54667
|
+
var direction = getDirection(cell, event.clientY, allowDragInto);
|
|
54668
|
+
if (isTreeTable) {
|
|
54669
|
+
var _context5;
|
|
54670
|
+
var iconWidth = treeModeOptions.iconWidth,
|
|
54671
|
+
iconIndent = treeModeOptions.iconIndent,
|
|
54672
|
+
iconGap = treeModeOptions.iconGap,
|
|
54673
|
+
indentSize = treeModeOptions.indentSize,
|
|
54674
|
+
treeMetaKey = treeModeOptions.treeMetaKey;
|
|
54675
|
+
var expandCell = tableContainer.querySelector(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1___default()(_context5 = "tr[data-rowindex=\"".concat(rowIndex, "\"] .")).call(_context5, _base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].tableExtendCell));
|
|
54676
|
+
if (expandCell) {
|
|
54677
|
+
var _getElementSize2 = _getElementSize(expandCell),
|
|
54678
|
+
paddingLeft = _getElementSize2.paddingLeft;
|
|
54679
|
+
var expandCellRect = expandCell.getBoundingClientRect();
|
|
54680
|
+
var _row$treeMetaKey = row[treeMetaKey],
|
|
54681
|
+
rowKey = _row$treeMetaKey.rowKey,
|
|
54682
|
+
depth = _row$treeMetaKey.depth,
|
|
54683
|
+
isLeaf = _row$treeMetaKey.isLeaf,
|
|
54684
|
+
expanded = _row$treeMetaKey.expanded;
|
|
54685
|
+
var addWidth = isLeaf ? iconWidth + iconGap : 0;
|
|
54686
|
+
var indent = iconIndent + depth * indentSize + addWidth;
|
|
54687
|
+
var x = expandCellRect.x,
|
|
54688
|
+
_y = expandCellRect.y,
|
|
54689
|
+
_height = expandCellRect.height;
|
|
54690
|
+
var _top = direction === 'bottom' ? _y + _height - offsetParentSize.top : _y - offsetParentSize.top;
|
|
54691
|
+
var offsetX = Math.max(x + paddingLeft + indent - bodyRect.x, 0);
|
|
54692
|
+
var _left = bodyRect.x + offsetX - offsetParentSize.left;
|
|
54693
|
+
lineElement.style.left = "".concat(_left, "px");
|
|
54694
|
+
lineElement.style.top = "".concat(_top, "px");
|
|
54695
|
+
lineElement.style.width = "".concat(bodyRect.width - offsetX, "px");
|
|
54696
|
+
if (direction === 'into') {
|
|
54697
|
+
lineElement.style.display = 'none';
|
|
54698
|
+
} else {
|
|
54699
|
+
lineElement.style.display = 'block';
|
|
54700
|
+
}
|
|
54701
|
+
return;
|
|
54702
|
+
}
|
|
54703
|
+
}
|
|
54704
|
+
// 根据鼠标悬停位置所在单元格和显示位置计算拖拽线的位置
|
|
54705
|
+
var rect = cell.getBoundingClientRect();
|
|
54706
|
+
var y = rect.y,
|
|
54707
|
+
height = rect.height;
|
|
54708
|
+
var top = direction === 'bottom' ? y + height - offsetParentSize.top : y - offsetParentSize.top;
|
|
54709
|
+
var left = bodyRect.x - offsetParentSize.left;
|
|
54710
|
+
lineElement.style.left = "".concat(left, "px");
|
|
54711
|
+
lineElement.style.top = "".concat(top, "px");
|
|
54712
|
+
lineElement.style.width = "".concat(bodyRect.width, "px");
|
|
54713
|
+
}
|
|
54714
|
+
function showDragLine(lineElement) {
|
|
54715
|
+
lineElement.style.display = 'block';
|
|
54716
|
+
}
|
|
54717
|
+
function hiddenDragLine(lineElement) {
|
|
54718
|
+
lineElement.style.display = 'none';
|
|
54719
|
+
}
|
|
54720
|
+
function positionDragElemment(element, event) {
|
|
54721
|
+
var _a, _b, _c, _d, _e, _f;
|
|
54722
|
+
if (!element) return;
|
|
54723
|
+
var elementRect = element.getBoundingClientRect();
|
|
54724
|
+
var eleHeight = elementRect.height;
|
|
54725
|
+
var browserWidth = (_b = (_a = document.body) === null || _a === void 0 ? void 0 : _a.clientWidth) !== null && _b !== void 0 ? _b : window.innerHeight || ((_c = document.documentElement) === null || _c === void 0 ? void 0 : _c.clientWidth) || 0;
|
|
54726
|
+
var browserHeight = (_e = (_d = document.body) === null || _d === void 0 ? void 0 : _d.clientHeight) !== null && _e !== void 0 ? _e : window.innerHeight || ((_f = document.documentElement) === null || _f === void 0 ? void 0 : _f.clientHeight) || 0;
|
|
54727
|
+
var offsetParentSize = getElementRectWithOffset(element.offsetParent);
|
|
54728
|
+
var clientX = event.clientX,
|
|
54729
|
+
clientY = event.clientY;
|
|
54730
|
+
var top = clientY - offsetParentSize.top - eleHeight / 2;
|
|
54731
|
+
var left = clientX - offsetParentSize.left;
|
|
54732
|
+
var windowScrollX = window.pageXOffset;
|
|
54733
|
+
var windowScrollY = window.pageYOffset;
|
|
54734
|
+
if (browserWidth > 0 && left + element.clientWidth > browserWidth + windowScrollX) {
|
|
54735
|
+
left = Math.max(browserWidth + windowScrollX - element.clientWidth, 0);
|
|
54736
|
+
}
|
|
54737
|
+
if (browserHeight > 0 && top + element.clientHeight > browserHeight + windowScrollY) {
|
|
54738
|
+
top = Math.max(browserHeight + windowScrollY - element.clientHeight, 0);
|
|
54739
|
+
}
|
|
54740
|
+
element.style.left = "".concat(left, "px");
|
|
54741
|
+
element.style.top = "".concat(top, "px");
|
|
54742
|
+
}
|
|
54743
|
+
function getElementRectWithOffset(el) {
|
|
54744
|
+
var offsetElementRect = el.getBoundingClientRect();
|
|
54745
|
+
var _getElementSize3 = _getElementSize(el),
|
|
54746
|
+
borderTopWidth = _getElementSize3.borderTopWidth,
|
|
54747
|
+
borderLeftWidth = _getElementSize3.borderLeftWidth,
|
|
54748
|
+
borderRightWidth = _getElementSize3.borderRightWidth,
|
|
54749
|
+
borderBottomWidth = _getElementSize3.borderBottomWidth;
|
|
54750
|
+
return {
|
|
54751
|
+
top: offsetElementRect.top + (borderTopWidth || 0),
|
|
54752
|
+
left: offsetElementRect.left + (borderLeftWidth || 0),
|
|
54753
|
+
right: offsetElementRect.right + (borderRightWidth || 0),
|
|
54754
|
+
bottom: offsetElementRect.bottom + (borderBottomWidth || 0)
|
|
54755
|
+
};
|
|
54756
|
+
}
|
|
54757
|
+
function _getElementSize(el) {
|
|
54758
|
+
var _window$getComputedSt = window.getComputedStyle(el),
|
|
54759
|
+
height = _window$getComputedSt.height,
|
|
54760
|
+
width = _window$getComputedSt.width,
|
|
54761
|
+
borderTopWidth = _window$getComputedSt.borderTopWidth,
|
|
54762
|
+
borderRightWidth = _window$getComputedSt.borderRightWidth,
|
|
54763
|
+
borderBottomWidth = _window$getComputedSt.borderBottomWidth,
|
|
54764
|
+
borderLeftWidth = _window$getComputedSt.borderLeftWidth,
|
|
54765
|
+
paddingTop = _window$getComputedSt.paddingTop,
|
|
54766
|
+
paddingRight = _window$getComputedSt.paddingRight,
|
|
54767
|
+
paddingBottom = _window$getComputedSt.paddingBottom,
|
|
54768
|
+
paddingLeft = _window$getComputedSt.paddingLeft,
|
|
54769
|
+
marginTop = _window$getComputedSt.marginTop,
|
|
54770
|
+
marginRight = _window$getComputedSt.marginRight,
|
|
54771
|
+
marginBottom = _window$getComputedSt.marginBottom,
|
|
54772
|
+
marginLeft = _window$getComputedSt.marginLeft,
|
|
54773
|
+
boxSizing = _window$getComputedSt.boxSizing;
|
|
54774
|
+
return {
|
|
54775
|
+
height: parseFloat(height || '0'),
|
|
54776
|
+
width: parseFloat(width || '0'),
|
|
54777
|
+
borderTopWidth: parseFloat(borderTopWidth || '0'),
|
|
54778
|
+
borderRightWidth: parseFloat(borderRightWidth || '0'),
|
|
54779
|
+
borderBottomWidth: parseFloat(borderBottomWidth || '0'),
|
|
54780
|
+
borderLeftWidth: parseFloat(borderLeftWidth || '0'),
|
|
54781
|
+
paddingTop: parseFloat(paddingTop || '0'),
|
|
54782
|
+
paddingRight: parseFloat(paddingRight || '0'),
|
|
54783
|
+
paddingBottom: parseFloat(paddingBottom || '0'),
|
|
54784
|
+
paddingLeft: parseFloat(paddingLeft || '0'),
|
|
54785
|
+
marginTop: parseFloat(marginTop || '0'),
|
|
54786
|
+
marginRight: parseFloat(marginRight || '0'),
|
|
54787
|
+
marginBottom: parseFloat(marginBottom || '0'),
|
|
54788
|
+
marginLeft: parseFloat(marginLeft || '0'),
|
|
54789
|
+
boxSizing: boxSizing
|
|
54790
|
+
};
|
|
54336
54791
|
}
|
|
54337
|
-
function
|
|
54792
|
+
function removeElement(element) {
|
|
54338
54793
|
document.body.removeChild(element);
|
|
54339
54794
|
}
|
|
54340
|
-
function
|
|
54341
|
-
|
|
54342
|
-
|
|
54343
|
-
|
|
54344
|
-
|
|
54795
|
+
function setDragElementIcon(element, iconName) {
|
|
54796
|
+
var elementIcon = element.querySelector(".".concat(_base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragElementIcon));
|
|
54797
|
+
clearElementChildren(elementIcon);
|
|
54798
|
+
iconName = iconName || 'notAllowed';
|
|
54799
|
+
var iconElement = document.createElement('span');
|
|
54800
|
+
if (iconName === 'move') {
|
|
54801
|
+
iconElement.classList.add(_base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].iconMove);
|
|
54802
|
+
} else if (iconName === 'notAllowed') {
|
|
54803
|
+
iconElement.classList.add(_base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].iconNotAllowed);
|
|
54345
54804
|
}
|
|
54805
|
+
elementIcon.appendChild(iconElement);
|
|
54346
54806
|
}
|
|
54347
|
-
function
|
|
54348
|
-
|
|
54807
|
+
function clearElementChildren(element) {
|
|
54808
|
+
while (element && element.firstChild) {
|
|
54809
|
+
element.removeChild(element.firstChild);
|
|
54810
|
+
}
|
|
54349
54811
|
}
|
|
54350
|
-
function
|
|
54351
|
-
var
|
|
54352
|
-
rowHeight = _ref4.rowHeight;
|
|
54812
|
+
function getScrollMoveOffset(tableBody, mouseMoveEvent) {
|
|
54813
|
+
var clientY = mouseMoveEvent.clientY;
|
|
54353
54814
|
var tableBodyClientRect = tableBody.getBoundingClientRect();
|
|
54354
|
-
var
|
|
54355
|
-
|
|
54356
|
-
|
|
54357
|
-
|
|
54358
|
-
|
|
54359
|
-
|
|
54360
|
-
|
|
54361
|
-
|
|
54362
|
-
|
|
54363
|
-
|
|
54364
|
-
|
|
54365
|
-
|
|
54366
|
-
var
|
|
54367
|
-
|
|
54368
|
-
|
|
54369
|
-
|
|
54370
|
-
|
|
54371
|
-
|
|
54372
|
-
|
|
54373
|
-
|
|
54374
|
-
|
|
54375
|
-
|
|
54376
|
-
|
|
54815
|
+
var top = tableBodyClientRect.top,
|
|
54816
|
+
height = tableBodyClientRect.height;
|
|
54817
|
+
if (clientY >= top + height - SCROLL_START_OFFSET && clientY <= top + height) {
|
|
54818
|
+
return SCROLL_OFFSET;
|
|
54819
|
+
}
|
|
54820
|
+
if (clientY >= top && clientY <= top + SCROLL_START_OFFSET) {
|
|
54821
|
+
return -SCROLL_OFFSET;
|
|
54822
|
+
}
|
|
54823
|
+
return 0;
|
|
54824
|
+
}
|
|
54825
|
+
function setDragText(element, dragText) {
|
|
54826
|
+
var dragTextString = dragText.toString();
|
|
54827
|
+
var elementIcon = element.querySelector(".".concat(_base_styles__WEBPACK_IMPORTED_MODULE_9__["Classes"].rowDragElementLabel));
|
|
54828
|
+
var stringNode = document.createTextNode(dragTextString);
|
|
54829
|
+
elementIcon.appendChild(stringNode);
|
|
54830
|
+
}
|
|
54831
|
+
function isMouseOnDropTarget(mouseEvent, target) {
|
|
54832
|
+
return target.contains(mouseEvent.target);
|
|
54833
|
+
}
|
|
54834
|
+
function createDropTargetEvent(dropTarget, event, dragItem, startDropZoneTagret) {
|
|
54835
|
+
var dropZoneTarget = dropTarget.getContainer();
|
|
54836
|
+
var rect = dropZoneTarget.getBoundingClientRect();
|
|
54837
|
+
var x = event.clientX - rect.left;
|
|
54838
|
+
var y = event.clientY - rect.top;
|
|
54839
|
+
var targetEvent = {
|
|
54840
|
+
dragItem: dragItem,
|
|
54841
|
+
startDropZoneTagret: startDropZoneTagret,
|
|
54842
|
+
dropZoneTarget: dropZoneTarget,
|
|
54843
|
+
event: event,
|
|
54844
|
+
x: x,
|
|
54845
|
+
y: y
|
|
54377
54846
|
};
|
|
54847
|
+
if (dropTarget.isTable) {
|
|
54848
|
+
targetEvent.dropZoneTableParams = dropTarget.tableParams;
|
|
54849
|
+
}
|
|
54850
|
+
return targetEvent;
|
|
54378
54851
|
}
|
|
54379
|
-
function
|
|
54380
|
-
var
|
|
54381
|
-
|
|
54382
|
-
|
|
54383
|
-
|
|
54384
|
-
|
|
54385
|
-
|
|
54386
|
-
|
|
54852
|
+
function getDirection(cell, clientY) {
|
|
54853
|
+
var isTreeTable = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
54854
|
+
var _cell$getBoundingClie = cell.getBoundingClientRect(),
|
|
54855
|
+
height = _cell$getBoundingClie.height,
|
|
54856
|
+
y = _cell$getBoundingClie.y;
|
|
54857
|
+
var direction = 'bottom';
|
|
54858
|
+
if (isTreeTable) {
|
|
54859
|
+
if (y + height / 4 > clientY) {
|
|
54860
|
+
direction = 'top';
|
|
54861
|
+
} else if (y + height * 3 / 4 > clientY) {
|
|
54862
|
+
direction = 'into';
|
|
54863
|
+
}
|
|
54864
|
+
} else if (y + height / 2 > clientY) {
|
|
54865
|
+
direction = 'top';
|
|
54866
|
+
}
|
|
54867
|
+
return direction;
|
|
54387
54868
|
}
|
|
54388
54869
|
|
|
54389
54870
|
/***/ }),
|
|
@@ -54573,7 +55054,7 @@ function rowGrouping() {
|
|
|
54573
55054
|
});
|
|
54574
55055
|
};
|
|
54575
55056
|
return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(_context3 = [_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, firstCol), {
|
|
54576
|
-
title: (
|
|
55057
|
+
title: (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div", {
|
|
54577
55058
|
style: {
|
|
54578
55059
|
display: 'inline-block',
|
|
54579
55060
|
marginLeft: textOffset
|
|
@@ -54842,7 +55323,7 @@ function DefaultSortHeaderCell(_ref2) {
|
|
|
54842
55323
|
className: classnames__WEBPACK_IMPORTED_MODULE_14___default()(_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5___default()(_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5___default()({}, _base_styles__WEBPACK_IMPORTED_MODULE_17__["Classes"].tableSortIcon, true), "active", sortOrder === 'desc' || sortOrder === 'asc')),
|
|
54843
55324
|
size: 16,
|
|
54844
55325
|
order: sortOrder
|
|
54845
|
-
}), sortOptions.mode === 'multiple' && sortIndex !== -1 && (
|
|
55326
|
+
}), sortOptions.mode === 'multiple' && sortIndex !== -1 && (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
|
|
54846
55327
|
style: {
|
|
54847
55328
|
userSelect: 'none',
|
|
54848
55329
|
marginLeft: 2,
|
|
@@ -55113,7 +55594,7 @@ function tips() {
|
|
|
55113
55594
|
}
|
|
55114
55595
|
var justifyContent = col.align === 'right' ? 'flex-end' : col.align === 'center' ? 'center' : 'flex-start';
|
|
55115
55596
|
return _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, col), {
|
|
55116
|
-
title: (
|
|
55597
|
+
title: (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(HeaderCellWithTips, {
|
|
55117
55598
|
style: {
|
|
55118
55599
|
justifyContent: justifyContent
|
|
55119
55600
|
}
|
|
@@ -55148,12 +55629,13 @@ function tips() {
|
|
|
55148
55629
|
/*!******************************************************************************!*\
|
|
55149
55630
|
!*** ./node_modules/@kdcloudjs/table/es/table/pipeline/features/treeMode.js ***!
|
|
55150
55631
|
\******************************************************************************/
|
|
55151
|
-
/*! exports provided: treeMetaSymbol, treeMode */
|
|
55632
|
+
/*! exports provided: treeMetaSymbol, treeModeOptionsKey, treeMode */
|
|
55152
55633
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
55153
55634
|
|
|
55154
55635
|
"use strict";
|
|
55155
55636
|
__webpack_require__.r(__webpack_exports__);
|
|
55156
55637
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "treeMetaSymbol", function() { return treeMetaSymbol; });
|
|
55638
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "treeModeOptionsKey", function() { return treeModeOptionsKey; });
|
|
55157
55639
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "treeMode", function() { return treeMode; });
|
|
55158
55640
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ "./node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js");
|
|
55159
55641
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -55206,6 +55688,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
55206
55688
|
|
|
55207
55689
|
|
|
55208
55690
|
var treeMetaSymbol = _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_6___default()('treeMetaSymbol');
|
|
55691
|
+
var treeModeOptionsKey = 'treeModeOptions';
|
|
55209
55692
|
function treeMode() {
|
|
55210
55693
|
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
55211
55694
|
return function treeModeStep(pipeline) {
|
|
@@ -55243,16 +55726,24 @@ function treeMode() {
|
|
|
55243
55726
|
var iconIndent = (_g = opts.iconIndent) !== null && _g !== void 0 ? _g : ctx.indents.iconIndent;
|
|
55244
55727
|
var iconGap = (_h = opts.iconGap) !== null && _h !== void 0 ? _h : ctx.indents.iconGap;
|
|
55245
55728
|
var indentSize = (_j = opts.indentSize) !== null && _j !== void 0 ? _j : ctx.indents.indentSize;
|
|
55729
|
+
pipeline.setFeatureOptions(treeModeOptionsKey, {
|
|
55730
|
+
iconWidth: iconWidth,
|
|
55731
|
+
iconIndent: iconIndent,
|
|
55732
|
+
iconGap: iconGap,
|
|
55733
|
+
indentSize: indentSize,
|
|
55734
|
+
treeMetaKey: treeMetaKey
|
|
55735
|
+
});
|
|
55246
55736
|
var Icon = opts.icon;
|
|
55247
55737
|
return pipeline.mapDataSource(processDataSource).mapColumns(processColumns);
|
|
55248
55738
|
function processDataSource(input) {
|
|
55249
55739
|
if (pipeline.isSameInputDataSource() && openKeys === pipeline.getFeatureOptions('lastOpenKeys')) {
|
|
55250
55740
|
return pipeline.getFeatureOptions('lastTreeMode');
|
|
55251
55741
|
}
|
|
55252
|
-
pipeline.setFeatureOptions('lastOpenKeys', pipeline.getStateAtKey(stateKey));
|
|
55742
|
+
pipeline.setFeatureOptions('lastOpenKeys', pipeline.getStateAtKey(stateKey) || openKeys);
|
|
55253
55743
|
var result = [];
|
|
55254
55744
|
dfs(input, 0);
|
|
55255
55745
|
function dfs(nodes, depth) {
|
|
55746
|
+
var parentNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
55256
55747
|
if (nodes == null) {
|
|
55257
55748
|
return;
|
|
55258
55749
|
}
|
|
@@ -55262,6 +55753,7 @@ function treeMode() {
|
|
|
55262
55753
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
55263
55754
|
var node = _step.value;
|
|
55264
55755
|
var rowKey = _internals__WEBPACK_IMPORTED_MODULE_14__["internals"].safeGetRowKey(primaryKey, node, -1);
|
|
55756
|
+
var parentRowKey = parentNode ? _internals__WEBPACK_IMPORTED_MODULE_14__["internals"].safeGetRowKey(primaryKey, parentNode, -1) : null;
|
|
55265
55757
|
var expanded = openKeySet.has(rowKey);
|
|
55266
55758
|
var isLeaf = isLeafNode(node, {
|
|
55267
55759
|
depth: depth,
|
|
@@ -55272,11 +55764,12 @@ function treeMode() {
|
|
|
55272
55764
|
depth: depth,
|
|
55273
55765
|
isLeaf: isLeaf,
|
|
55274
55766
|
expanded: expanded,
|
|
55275
|
-
rowKey: rowKey
|
|
55767
|
+
rowKey: rowKey,
|
|
55768
|
+
parentRowKey: parentRowKey
|
|
55276
55769
|
};
|
|
55277
55770
|
result.push(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default()({}, treeMetaKey, treeMeta), node));
|
|
55278
55771
|
if (!isLeaf && expanded) {
|
|
55279
|
-
dfs(node.children, depth + 1);
|
|
55772
|
+
dfs(node.children, depth + 1, node);
|
|
55280
55773
|
}
|
|
55281
55774
|
}
|
|
55282
55775
|
} catch (err) {
|
|
@@ -55353,15 +55846,19 @@ function treeMode() {
|
|
|
55353
55846
|
};
|
|
55354
55847
|
var getCellProps = function getCellProps(value, record, rowIndex) {
|
|
55355
55848
|
var prevProps = _internals__WEBPACK_IMPORTED_MODULE_14__["internals"].safeGetCellProps(expandCol, record, rowIndex);
|
|
55356
|
-
if (record[treeMetaKey] == null) {
|
|
55849
|
+
if (record[treeMetaKey] == null || clickArea !== 'cell') {
|
|
55357
55850
|
// 没有 treeMeta 信息的话,就返回原先的 cellProps
|
|
55358
|
-
return prevProps
|
|
55851
|
+
return Object(_utils__WEBPACK_IMPORTED_MODULE_15__["mergeCellProps"])(prevProps, {
|
|
55852
|
+
className: _base_styles__WEBPACK_IMPORTED_MODULE_16__["Classes"].tableExtendCell
|
|
55853
|
+
});
|
|
55359
55854
|
}
|
|
55360
55855
|
var _record$treeMetaKey2 = record[treeMetaKey],
|
|
55361
55856
|
isLeaf = _record$treeMetaKey2.isLeaf,
|
|
55362
55857
|
rowKey = _record$treeMetaKey2.rowKey;
|
|
55363
55858
|
if (isLeaf) {
|
|
55364
|
-
return prevProps
|
|
55859
|
+
return Object(_utils__WEBPACK_IMPORTED_MODULE_15__["mergeCellProps"])(prevProps, {
|
|
55860
|
+
className: _base_styles__WEBPACK_IMPORTED_MODULE_16__["Classes"].tableExtendCell
|
|
55861
|
+
});
|
|
55365
55862
|
}
|
|
55366
55863
|
return Object(_utils__WEBPACK_IMPORTED_MODULE_15__["mergeCellProps"])(prevProps, {
|
|
55367
55864
|
onClick: function onClick(e) {
|
|
@@ -55372,18 +55869,19 @@ function treeMode() {
|
|
|
55372
55869
|
},
|
|
55373
55870
|
style: {
|
|
55374
55871
|
cursor: 'pointer'
|
|
55375
|
-
}
|
|
55872
|
+
},
|
|
55873
|
+
className: _base_styles__WEBPACK_IMPORTED_MODULE_16__["Classes"].tableExtendCell
|
|
55376
55874
|
});
|
|
55377
55875
|
};
|
|
55378
55876
|
columns[expandColIndex] = _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, expandCol), {
|
|
55379
|
-
title: (
|
|
55877
|
+
title: (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("span", {
|
|
55380
55878
|
style: {
|
|
55381
55879
|
marginLeft: iconIndent + iconWidth + iconGap,
|
|
55382
55880
|
display: 'flex'
|
|
55383
55881
|
}
|
|
55384
55882
|
}, _internals__WEBPACK_IMPORTED_MODULE_14__["internals"].safeRenderHeader(expandCol))),
|
|
55385
55883
|
render: render,
|
|
55386
|
-
getCellProps:
|
|
55884
|
+
getCellProps: getCellProps
|
|
55387
55885
|
});
|
|
55388
55886
|
return _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_5___default()(columns);
|
|
55389
55887
|
}
|
|
@@ -55595,6 +56093,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55595
56093
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
|
|
55596
56094
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils */ "./node_modules/@kdcloudjs/table/es/table/utils/index.js");
|
|
55597
56095
|
/* harmony import */ var _features_autoFill__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./features/autoFill */ "./node_modules/@kdcloudjs/table/es/table/pipeline/features/autoFill.js");
|
|
56096
|
+
/* harmony import */ var _features_featureApi_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./features/featureApi/utils */ "./node_modules/@kdcloudjs/table/es/table/pipeline/features/featureApi/utils.js");
|
|
56097
|
+
|
|
55598
56098
|
|
|
55599
56099
|
|
|
55600
56100
|
|
|
@@ -55721,6 +56221,7 @@ var TablePipeline = /*#__PURE__*/function () {
|
|
|
55721
56221
|
this._isSameInputDataSource = _input.dataSource === this.ref.current._lastInputDataSource;
|
|
55722
56222
|
this._dataSource = _input.dataSource;
|
|
55723
56223
|
this.ref.current._lastInputDataSource = _input.dataSource;
|
|
56224
|
+
this.ref.current.lastPipeline = this;
|
|
55724
56225
|
this._columns = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_5___default()(_context = _input.columns).call(_context, function (col) {
|
|
55725
56226
|
return _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, col), {
|
|
55726
56227
|
key: _this.guid()
|
|
@@ -55851,6 +56352,25 @@ var TablePipeline = /*#__PURE__*/function () {
|
|
|
55851
56352
|
};
|
|
55852
56353
|
return result;
|
|
55853
56354
|
}
|
|
56355
|
+
}, {
|
|
56356
|
+
key: "getFeatureApi",
|
|
56357
|
+
value: function getFeatureApi(featureName) {
|
|
56358
|
+
var _a;
|
|
56359
|
+
return (_a = this.ref.current.featureApi) === null || _a === void 0 ? void 0 : _a[featureName];
|
|
56360
|
+
}
|
|
56361
|
+
}, {
|
|
56362
|
+
key: "addFeatureApi",
|
|
56363
|
+
value: function addFeatureApi(featureName) {
|
|
56364
|
+
if (!this.getFeatureApi(featureName)) {
|
|
56365
|
+
this.ref.current.featureApi[featureName] = Object(_features_featureApi_utils__WEBPACK_IMPORTED_MODULE_10__["createFeatureApi"])(featureName, this);
|
|
56366
|
+
}
|
|
56367
|
+
return this.ref.current.featureApi[featureName];
|
|
56368
|
+
}
|
|
56369
|
+
}, {
|
|
56370
|
+
key: "getLastPipeline",
|
|
56371
|
+
value: function getLastPipeline() {
|
|
56372
|
+
return this.ref.current.lastPipeline;
|
|
56373
|
+
}
|
|
55854
56374
|
}]);
|
|
55855
56375
|
}();
|
|
55856
56376
|
TablePipeline.defaultIndents = {
|
|
@@ -55865,7 +56385,8 @@ function useTablePipeline(ctx) {
|
|
|
55865
56385
|
state = _useState2[0],
|
|
55866
56386
|
setState = _useState2[1];
|
|
55867
56387
|
var ref = Object(react__WEBPACK_IMPORTED_MODULE_7__["useRef"])({
|
|
55868
|
-
featureOptions: {}
|
|
56388
|
+
featureOptions: {},
|
|
56389
|
+
featureApi: {}
|
|
55869
56390
|
});
|
|
55870
56391
|
return new TablePipeline({
|
|
55871
56392
|
state: state,
|
|
@@ -56445,7 +56966,7 @@ function makeColumnResizeTransform(_ref) {
|
|
|
56445
56966
|
var prevTitle = _internals__WEBPACK_IMPORTED_MODULE_10__["internals"].safeRenderHeader(col);
|
|
56446
56967
|
return _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, col), {
|
|
56447
56968
|
width: sizes[range.start],
|
|
56448
|
-
title: (
|
|
56969
|
+
title: (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_6___default.a.Fragment, null, prevTitle, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(ResizeHandle, {
|
|
56449
56970
|
className: "resize-handle",
|
|
56450
56971
|
onMouseDown: function onMouseDown(e) {
|
|
56451
56972
|
return startResize(range.start, e);
|
|
@@ -56756,7 +57277,7 @@ function DefaultSortHeaderCell(_ref2) {
|
|
|
56756
57277
|
},
|
|
56757
57278
|
size: 16,
|
|
56758
57279
|
order: sortOrder
|
|
56759
|
-
}), sortOptions.mode === 'multiple' && sortIndex != -1 && (
|
|
57280
|
+
}), sortOptions.mode === 'multiple' && sortIndex != -1 && (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div", {
|
|
56760
57281
|
style: {
|
|
56761
57282
|
userSelect: 'none',
|
|
56762
57283
|
marginLeft: 2,
|
|
@@ -57003,7 +57524,7 @@ function makeTipsTransform(_ref) {
|
|
|
57003
57524
|
}
|
|
57004
57525
|
var justifyContent = col.align === 'right' ? 'flex-end' : col.align === 'center' ? 'center' : 'flex-start';
|
|
57005
57526
|
return _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, col), {
|
|
57006
|
-
title: (
|
|
57527
|
+
title: (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(HeaderCellWithTips, {
|
|
57007
57528
|
style: {
|
|
57008
57529
|
justifyContent: justifyContent
|
|
57009
57530
|
}
|
|
@@ -57264,7 +57785,7 @@ function makeTreeModeTransform(_ref) {
|
|
|
57264
57785
|
});
|
|
57265
57786
|
};
|
|
57266
57787
|
return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context2 = [_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_6___default()(_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_6___default()({}, firstCol), {
|
|
57267
|
-
title: (
|
|
57788
|
+
title: (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement("span", {
|
|
57268
57789
|
style: {
|
|
57269
57790
|
marginLeft: iconIndent + ICON_WIDTH + iconGap
|
|
57270
57791
|
}
|