shineout 1.8.1 → 1.8.5
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/css/AnimationList/AbsoluteList.js +1 -1
- package/css/Button/Button.js +1 -1
- package/css/Form/Field.js +11 -6
- package/css/Menu/Item.js +9 -1
- package/css/Modal/events.js +6 -3
- package/css/Scroll/Scroll.js +31 -11
- package/css/Select/Input.js +16 -3
- package/css/Table/SeperateTable.js +14 -8
- package/css/Table/SimpleTable.js +13 -7
- package/css/Table/Table.js +3 -1
- package/css/Table/resizable.js +1 -1
- package/css/Table/styles/table.css +8 -8
- package/css/Tooltip/styles/tooltip.css +31 -31
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/dist/shineout.js +138 -72
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/theme.antd.css +1 -1
- package/dist/theme.antd2.css +1 -1
- package/dist/theme.default.css +1 -1
- package/dist/theme.shineout.css +1 -1
- package/es/AnimationList/AbsoluteList.js +1 -1
- package/es/Button/Button.js +1 -1
- package/es/Form/Field.js +11 -6
- package/es/Menu/Item.js +9 -1
- package/es/Modal/events.js +6 -3
- package/es/Scroll/Scroll.js +31 -11
- package/es/Select/Input.js +16 -3
- package/es/Table/SeperateTable.js +14 -8
- package/es/Table/SimpleTable.js +13 -7
- package/es/Table/Table.js +3 -1
- package/es/Table/resizable.js +1 -1
- package/es/Table/styles/table.less +1 -1
- package/es/Tooltip/styles/tooltip.less +7 -5
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/styles/themes/base.less +1 -1
- package/es/styles/themes/shineout.less +1 -1
- package/lib/AnimationList/AbsoluteList.js +1 -1
- package/lib/Button/Button.js +1 -1
- package/lib/Form/Field.js +11 -6
- package/lib/Menu/Item.js +9 -1
- package/lib/Modal/events.js +6 -3
- package/lib/Scroll/Scroll.js +31 -11
- package/lib/Select/Input.js +16 -3
- package/lib/Table/SeperateTable.js +14 -8
- package/lib/Table/SimpleTable.js +13 -7
- package/lib/Table/Table.js +3 -1
- package/lib/Table/resizable.js +1 -1
- package/lib/Table/styles/table.less +1 -1
- package/lib/Tooltip/styles/tooltip.less +7 -5
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/styles/themes/base.less +1 -1
- package/lib/styles/themes/shineout.less +1 -1
- package/package.json +1 -1
|
@@ -115,8 +115,8 @@ function _default(List) {
|
|
|
115
115
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
116
116
|
var _this2 = this;
|
|
117
117
|
|
|
118
|
-
if ((0, _shallowEqual.default)(prevProps.value, this.props.value)) return;
|
|
119
118
|
if (!this.props.focus) this.ajustdoc = false;
|
|
119
|
+
if ((0, _shallowEqual.default)(prevProps.value, this.props.value)) return;
|
|
120
120
|
setTimeout(function () {
|
|
121
121
|
_this2.forceUpdate();
|
|
122
122
|
});
|
package/css/Button/Button.js
CHANGED
package/css/Form/Field.js
CHANGED
|
@@ -64,13 +64,18 @@ function (_Component) {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
var cloneProps = {
|
|
68
|
+
value: value,
|
|
69
|
+
error: error,
|
|
70
|
+
onChange: this.handleChange
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
if (disabled !== undefined) {
|
|
74
|
+
cloneProps.disabled = disabled;
|
|
75
|
+
}
|
|
76
|
+
|
|
67
77
|
if ((0, _react.isValidElement)(children)) {
|
|
68
|
-
return (0, _react.cloneElement)(children,
|
|
69
|
-
value: value,
|
|
70
|
-
error: error,
|
|
71
|
-
onChange: this.handleChange,
|
|
72
|
-
disabled: disabled
|
|
73
|
-
});
|
|
78
|
+
return (0, _react.cloneElement)(children, cloneProps);
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
console.error(new Error('Form.Field expect a single ReactElement or a function.'));
|
package/css/Menu/Item.js
CHANGED
|
@@ -57,7 +57,9 @@ function (_PureComponent) {
|
|
|
57
57
|
|
|
58
58
|
var key = _this.getKey(props);
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var noop = function noop() {};
|
|
61
|
+
|
|
62
|
+
var _props$bindItem = props.bindItem(_this.id, noop, noop, noop),
|
|
61
63
|
activeUpdate = _props$bindItem[0],
|
|
62
64
|
openUpdate = _props$bindItem[1],
|
|
63
65
|
inPathUpdate = _props$bindItem[2];
|
|
@@ -79,6 +81,12 @@ function (_PureComponent) {
|
|
|
79
81
|
|
|
80
82
|
var _proto = Item.prototype;
|
|
81
83
|
|
|
84
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
85
|
+
_PureComponent.prototype.componentDidMount.call(this);
|
|
86
|
+
|
|
87
|
+
this.props.bindItem(this.id, this.update.bind(this), this.updateOpen.bind(this), this.updateInPath.bind(this));
|
|
88
|
+
};
|
|
89
|
+
|
|
82
90
|
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
83
91
|
_PureComponent.prototype.componentWillUnmount.call(this);
|
|
84
92
|
|
package/css/Modal/events.js
CHANGED
|
@@ -129,10 +129,13 @@ function open(props, isPortal) {
|
|
|
129
129
|
div.style.display = 'block';
|
|
130
130
|
var parsed = parseInt(zIndex, 10);
|
|
131
131
|
if (!Number.isNaN(parsed)) div.style.zIndex = parsed;
|
|
132
|
-
var scrollWidth = window.innerWidth - _document.docSize.width;
|
|
133
132
|
var doc = document.body.parentNode;
|
|
134
|
-
|
|
135
|
-
doc.style.paddingRight
|
|
133
|
+
|
|
134
|
+
if (!doc.style.paddingRight) {
|
|
135
|
+
var scrollWidth = window.innerWidth - _document.docSize.width;
|
|
136
|
+
doc.style.overflow = 'hidden';
|
|
137
|
+
doc.style.paddingRight = scrollWidth + "px";
|
|
138
|
+
}
|
|
136
139
|
|
|
137
140
|
var handleClose = function handleClose() {
|
|
138
141
|
if (onClose) onClose();
|
package/css/Scroll/Scroll.js
CHANGED
|
@@ -67,6 +67,7 @@ function (_PureComponent) {
|
|
|
67
67
|
_this.handleTouchStart = _this.handleTouchStart.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
68
68
|
_this.handleTouchMove = _this.handleTouchMove.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
69
69
|
_this.setStartPoint = _this.setStartPoint.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
70
|
+
_this.handleInnerScroll = _this.handleInnerScroll.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
70
71
|
return _this;
|
|
71
72
|
}
|
|
72
73
|
|
|
@@ -85,6 +86,7 @@ function (_PureComponent) {
|
|
|
85
86
|
this.wheelElement.addEventListener('touchmove', this.handleTouchMove, {
|
|
86
87
|
passive: false
|
|
87
88
|
});
|
|
89
|
+
this.inner.addEventListener('scroll', this.handleInnerScroll);
|
|
88
90
|
};
|
|
89
91
|
|
|
90
92
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
@@ -101,6 +103,7 @@ function (_PureComponent) {
|
|
|
101
103
|
this.wheelElement.removeEventListener('wheel', this.handleWheel);
|
|
102
104
|
this.wheelElement.removeEventListener('touchstart', this.handleTouchStart);
|
|
103
105
|
this.wheelElement.removeEventListener('touchmove', this.handleTouchMove);
|
|
106
|
+
this.inner.removeEventListener('scroll', this.handleInnerScroll);
|
|
104
107
|
};
|
|
105
108
|
|
|
106
109
|
_proto.getWheelRect = function getWheelRect() {
|
|
@@ -280,22 +283,39 @@ function (_PureComponent) {
|
|
|
280
283
|
|
|
281
284
|
this.setStartPoint(position);
|
|
282
285
|
this.boundleScroll();
|
|
283
|
-
}
|
|
286
|
+
} // inner scroll
|
|
287
|
+
;
|
|
284
288
|
|
|
285
|
-
_proto.
|
|
289
|
+
_proto.handleInnerScroll = function handleInnerScroll(e) {
|
|
290
|
+
var target = e.target;
|
|
286
291
|
var _this$props6 = this.props,
|
|
287
|
-
children = _this$props6.children,
|
|
288
|
-
scrollWidth = _this$props6.scrollWidth,
|
|
289
|
-
scrollHeight = _this$props6.scrollHeight,
|
|
290
292
|
left = _this$props6.left,
|
|
291
|
-
|
|
292
|
-
scrollX = _this$props6.scrollX,
|
|
293
|
-
scrollY = _this$props6.scrollY,
|
|
294
|
-
style = _this$props6.style;
|
|
293
|
+
scrollWidth = _this$props6.scrollWidth;
|
|
295
294
|
|
|
296
295
|
var _this$getWheelRect2 = this.getWheelRect(),
|
|
297
|
-
width = _this$getWheelRect2.width
|
|
298
|
-
|
|
296
|
+
width = _this$getWheelRect2.width;
|
|
297
|
+
|
|
298
|
+
if (target.scrollLeft) {
|
|
299
|
+
this.handleScroll(left + target.scrollLeft / (scrollWidth - width), this.props.top, undefined, 0);
|
|
300
|
+
target.scrollLeft = 0;
|
|
301
|
+
target.scrollTop = 0;
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
_proto.render = function render() {
|
|
306
|
+
var _this$props7 = this.props,
|
|
307
|
+
children = _this$props7.children,
|
|
308
|
+
scrollWidth = _this$props7.scrollWidth,
|
|
309
|
+
scrollHeight = _this$props7.scrollHeight,
|
|
310
|
+
left = _this$props7.left,
|
|
311
|
+
top = _this$props7.top,
|
|
312
|
+
scrollX = _this$props7.scrollX,
|
|
313
|
+
scrollY = _this$props7.scrollY,
|
|
314
|
+
style = _this$props7.style;
|
|
315
|
+
|
|
316
|
+
var _this$getWheelRect3 = this.getWheelRect(),
|
|
317
|
+
width = _this$getWheelRect3.width,
|
|
318
|
+
height = _this$getWheelRect3.height;
|
|
299
319
|
|
|
300
320
|
var rtl = (0, _config.isRTL)();
|
|
301
321
|
var className = (0, _classnames.default)((0, _styles.scrollClass)('_', scrollX && 'show-x', scrollY && 'show-y', rtl && 'rtl'), this.props.className);
|
package/css/Select/Input.js
CHANGED
|
@@ -46,7 +46,9 @@ function (_Component) {
|
|
|
46
46
|
_this.handleBlur = _this.handleBlur.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
47
47
|
_this.geHandleMax = _this.geHandleMax.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
48
48
|
_this.handlePaste = _this.handlePaste.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
49
|
-
_this.focusInput = _this.focusInput.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
49
|
+
_this.focusInput = _this.focusInput.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
50
|
+
_this.handleCompositionStart = _this.handleCompositionStart.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)));
|
|
51
|
+
_this.handleCompositionEnd = _this.handleCompositionEnd.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this))); // for mutiple select
|
|
50
52
|
|
|
51
53
|
_this.props.setInputReset(_this.reset.bind((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)))); // set focus func to Select
|
|
52
54
|
|
|
@@ -98,7 +100,7 @@ function (_Component) {
|
|
|
98
100
|
_proto.geHandleMax = function geHandleMax(e) {
|
|
99
101
|
var maxLength = this.props.maxLength;
|
|
100
102
|
|
|
101
|
-
if (!maxLength) {
|
|
103
|
+
if (!maxLength || this.composition) {
|
|
102
104
|
return true;
|
|
103
105
|
}
|
|
104
106
|
|
|
@@ -219,6 +221,15 @@ function (_Component) {
|
|
|
219
221
|
this.props.onInputBlur(text);
|
|
220
222
|
};
|
|
221
223
|
|
|
224
|
+
_proto.handleCompositionStart = function handleCompositionStart() {
|
|
225
|
+
this.composition = true;
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
_proto.handleCompositionEnd = function handleCompositionEnd(e) {
|
|
229
|
+
this.composition = false;
|
|
230
|
+
this.handleInput(e);
|
|
231
|
+
};
|
|
232
|
+
|
|
222
233
|
_proto.render = function render() {
|
|
223
234
|
var _this$props = this.props,
|
|
224
235
|
text = _this$props.text,
|
|
@@ -233,7 +244,9 @@ function (_Component) {
|
|
|
233
244
|
contentEditable: focus || this.state.editable,
|
|
234
245
|
onFocus: handleFocus,
|
|
235
246
|
onBlur: this.handleBlur,
|
|
236
|
-
title: !focus && (0, _is.isString)(value) ? value : null
|
|
247
|
+
title: !focus && (0, _is.isString)(value) ? value : null,
|
|
248
|
+
onCompositionStart: this.handleCompositionStart,
|
|
249
|
+
onCompositionEnd: this.handleCompositionEnd
|
|
237
250
|
};
|
|
238
251
|
|
|
239
252
|
if ((0, _react.isValidElement)(value)) {
|
|
@@ -344,13 +344,17 @@ function (_PureComponent) {
|
|
|
344
344
|
|
|
345
345
|
|
|
346
346
|
if (treeColumnsName && changedByExpand) {
|
|
347
|
+
// Blank space may appear after clicking the top or bottom collapse button
|
|
347
348
|
if (fullHeight - this.lastScrollTop < (1 - this.lastScrollArgs[1]) * scrollHeight) {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
if (fullHeight <= scrollHeight) {
|
|
350
|
+
index = 0;
|
|
351
|
+
} else {
|
|
352
|
+
this.tbody.style.marginTop = scrollHeight + "px";
|
|
353
|
+
(0, _translate.setTranslate)(this.tbody, "-" + offsetLeft + "px", "-" + fullHeight + "px");
|
|
354
|
+
this.lastScrollTop = fullHeight;
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
351
357
|
}
|
|
352
|
-
|
|
353
|
-
return;
|
|
354
358
|
}
|
|
355
359
|
|
|
356
360
|
if (index === 0) {
|
|
@@ -631,7 +635,8 @@ function (_PureComponent) {
|
|
|
631
635
|
rowHeight = _this$props7.rowHeight,
|
|
632
636
|
columnResizable = _this$props7.columnResizable,
|
|
633
637
|
innerScrollAttr = _this$props7.innerScrollAttr,
|
|
634
|
-
|
|
638
|
+
bordered = _this$props7.bordered,
|
|
639
|
+
others = (0, _objectWithoutPropertiesLoose2.default)(_this$props7, ["data", "rowsInView", "columns", "width", "fixed", "rowHeight", "columnResizable", "innerScrollAttr", "bordered"]);
|
|
635
640
|
var _this$state3 = this.state,
|
|
636
641
|
colgroup = _this$state3.colgroup,
|
|
637
642
|
scrollTop = _this$state3.scrollTop,
|
|
@@ -677,7 +682,7 @@ function (_PureComponent) {
|
|
|
677
682
|
height: prevHeight
|
|
678
683
|
}
|
|
679
684
|
}), _react.default.createElement("table", {
|
|
680
|
-
className: (0, _styles.tableClass)(!colgroup && minWidthSup && 'init'),
|
|
685
|
+
className: (0, _styles.tableClass)(!colgroup && minWidthSup && 'init', bordered && 'table-bordered'),
|
|
681
686
|
style: {
|
|
682
687
|
width: width
|
|
683
688
|
},
|
|
@@ -720,7 +725,8 @@ function (_PureComponent) {
|
|
|
720
725
|
style: {
|
|
721
726
|
width: width
|
|
722
727
|
},
|
|
723
|
-
ref: this.bindThead
|
|
728
|
+
ref: this.bindThead,
|
|
729
|
+
className: (0, _styles.tableClass)('table-bordered')
|
|
724
730
|
}, _react.default.createElement(_Colgroup.default, {
|
|
725
731
|
colgroup: colgroup,
|
|
726
732
|
columns: columns,
|
package/css/Table/SimpleTable.js
CHANGED
|
@@ -166,7 +166,8 @@ function (_PureComponent) {
|
|
|
166
166
|
data = _this$props2.data,
|
|
167
167
|
onResize = _this$props2.onResize,
|
|
168
168
|
columnResizable = _this$props2.columnResizable,
|
|
169
|
-
sticky = _this$props2.sticky
|
|
169
|
+
sticky = _this$props2.sticky,
|
|
170
|
+
bordered = _this$props2.bordered;
|
|
170
171
|
var _this$state = this.state,
|
|
171
172
|
colgroup = _this$state.colgroup,
|
|
172
173
|
scrollAble = _this$state.scrollAble;
|
|
@@ -174,7 +175,8 @@ function (_PureComponent) {
|
|
|
174
175
|
var inner = _react.default.createElement("table", {
|
|
175
176
|
style: {
|
|
176
177
|
width: width
|
|
177
|
-
}
|
|
178
|
+
},
|
|
179
|
+
className: (0, _styles.tableClass)(bordered && 'table-bordered')
|
|
178
180
|
}, _react.default.createElement(_Colgroup.default, {
|
|
179
181
|
colgroup: colgroup,
|
|
180
182
|
columns: columns,
|
|
@@ -214,7 +216,8 @@ function (_PureComponent) {
|
|
|
214
216
|
width = _this$props3.width,
|
|
215
217
|
fixed = _this$props3.fixed,
|
|
216
218
|
columnResizable = _this$props3.columnResizable,
|
|
217
|
-
|
|
219
|
+
bordered = _this$props3.bordered,
|
|
220
|
+
others = (0, _objectWithoutPropertiesLoose2.default)(_this$props3, ["columns", "width", "fixed", "columnResizable", "bordered"]);
|
|
218
221
|
var _this$state2 = this.state,
|
|
219
222
|
colgroup = _this$state2.colgroup,
|
|
220
223
|
resize = _this$state2.resize;
|
|
@@ -230,7 +233,7 @@ function (_PureComponent) {
|
|
|
230
233
|
style: {
|
|
231
234
|
width: width
|
|
232
235
|
},
|
|
233
|
-
className: (0, _styles.tableClass)(!colgroup && minWidthSup && 'init')
|
|
236
|
+
className: (0, _styles.tableClass)(!colgroup && minWidthSup && 'init', bordered && 'table-bordered')
|
|
234
237
|
}, _react.default.createElement(_Colgroup.default, {
|
|
235
238
|
colgroup: colgroup,
|
|
236
239
|
columns: columns,
|
|
@@ -250,11 +253,13 @@ function (_PureComponent) {
|
|
|
250
253
|
columns = _this$props4.columns,
|
|
251
254
|
width = _this$props4.width,
|
|
252
255
|
children = _this$props4.children,
|
|
253
|
-
hideHeader = _this$props4.hideHeader
|
|
256
|
+
hideHeader = _this$props4.hideHeader,
|
|
257
|
+
bordered = _this$props4.bordered;
|
|
254
258
|
if (!columns || columns.length === 0) return _react.default.createElement("table", {
|
|
255
259
|
style: {
|
|
256
260
|
width: width
|
|
257
|
-
}
|
|
261
|
+
},
|
|
262
|
+
className: (0, _styles.tableClass)(bordered && 'table-bordered')
|
|
258
263
|
}, children);
|
|
259
264
|
return [hideHeader ? null : this.renderHeader(), this.renderBody(), children];
|
|
260
265
|
};
|
|
@@ -273,7 +278,8 @@ SimpleTable.propTypes = {
|
|
|
273
278
|
dataChangeResize: _propTypes.default.bool,
|
|
274
279
|
columnResizable: _propTypes.default.bool,
|
|
275
280
|
sticky: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.bool]),
|
|
276
|
-
hideHeader: _propTypes.default.bool
|
|
281
|
+
hideHeader: _propTypes.default.bool,
|
|
282
|
+
bordered: _propTypes.default.bool
|
|
277
283
|
};
|
|
278
284
|
SimpleTable.defaultProps = {
|
|
279
285
|
data: undefined,
|
package/css/Table/Table.js
CHANGED
|
@@ -163,7 +163,9 @@ function (_Component) {
|
|
|
163
163
|
className: className,
|
|
164
164
|
ref: this.bindTable,
|
|
165
165
|
style: newStyle
|
|
166
|
-
}, events), _react.default.createElement(RenderTable,
|
|
166
|
+
}, events), _react.default.createElement(RenderTable, (0, _extends2.default)({}, props, {
|
|
167
|
+
bordered: bordered
|
|
168
|
+
})), loading && _react.default.createElement("div", {
|
|
167
169
|
className: (0, _styles.tableClass)('loading')
|
|
168
170
|
}, typeof loading === 'boolean' ? _react.default.createElement(_Spin.default, {
|
|
169
171
|
size: 40
|
package/css/Table/resizable.js
CHANGED
|
@@ -79,7 +79,7 @@ var _default = function _default(Table) {
|
|
|
79
79
|
var onColumnResize = this.props.onColumnResize;
|
|
80
80
|
var changed = (0, _immer.default)(this.state, function (draft) {
|
|
81
81
|
var column = draft.columns[index];
|
|
82
|
-
draft.delta += parseFloat(width - (column.width || 0));
|
|
82
|
+
draft.delta += parseFloat(width - (column.width || colgroup[index] || 0));
|
|
83
83
|
colgroup[index] = width;
|
|
84
84
|
draft.columns.forEach(function (col, i) {
|
|
85
85
|
var w = colgroup[i];
|
|
@@ -237,19 +237,19 @@ table > thead > tr > th.so-table-condensed {
|
|
|
237
237
|
.so-table-bordered .so-table-head table {
|
|
238
238
|
border-bottom-width: 1px;
|
|
239
239
|
}
|
|
240
|
-
.so-table-bordered table > thead > tr > th,
|
|
241
|
-
.so-table-bordered table > tbody > tr > th,
|
|
242
|
-
.so-table-bordered table > tfoot > tr > th,
|
|
243
|
-
.so-table-bordered table > thead > tr > td,
|
|
244
|
-
.so-table-bordered table > tbody > tr > td,
|
|
245
|
-
.so-table-bordered table > tfoot > tr > td {
|
|
240
|
+
.so-table-bordered .so-table-table-bordered > thead > tr > th,
|
|
241
|
+
.so-table-bordered .so-table-table-bordered > tbody > tr > th,
|
|
242
|
+
.so-table-bordered .so-table-table-bordered > tfoot > tr > th,
|
|
243
|
+
.so-table-bordered .so-table-table-bordered > thead > tr > td,
|
|
244
|
+
.so-table-bordered .so-table-table-bordered > tbody > tr > td,
|
|
245
|
+
.so-table-bordered .so-table-table-bordered > tfoot > tr > td {
|
|
246
246
|
border-right: 1px solid var(--table-border-color, #ddd);
|
|
247
247
|
border-bottom-width: 1px;
|
|
248
248
|
}
|
|
249
|
-
.so-table-bordered table > tbody > tr > td.so-table-ignore-bottom-border {
|
|
249
|
+
.so-table-bordered .so-table-table-bordered > tbody > tr > td.so-table-ignore-bottom-border {
|
|
250
250
|
border-bottom: none;
|
|
251
251
|
}
|
|
252
|
-
.so-table-bordered table > thead + tbody > tr:first-child > td {
|
|
252
|
+
.so-table-bordered .so-table-table-bordered > thead + tbody > tr:first-child > td {
|
|
253
253
|
border-top-width: 1px;
|
|
254
254
|
}
|
|
255
255
|
.so-table-bordered .so-table-body table {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
margin-top: 0;
|
|
28
28
|
}
|
|
29
29
|
100% {
|
|
30
|
-
margin-top: -
|
|
30
|
+
margin-top: -9px;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
@keyframes so-tooltip-kf-top {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
margin-top: 0;
|
|
36
36
|
}
|
|
37
37
|
100% {
|
|
38
|
-
margin-top: -
|
|
38
|
+
margin-top: -9px;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
@-webkit-keyframes so-tooltip-kf-bottom {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
margin-top: 0;
|
|
44
44
|
}
|
|
45
45
|
100% {
|
|
46
|
-
margin-top:
|
|
46
|
+
margin-top: 9px;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
@keyframes so-tooltip-kf-bottom {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
margin-top: 0;
|
|
52
52
|
}
|
|
53
53
|
100% {
|
|
54
|
-
margin-top:
|
|
54
|
+
margin-top: 9px;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
@-webkit-keyframes so-tooltip-kf-left {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
margin-left: 0;
|
|
60
60
|
}
|
|
61
61
|
100% {
|
|
62
|
-
margin-left: -
|
|
62
|
+
margin-left: -9px;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
@keyframes so-tooltip-kf-left {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
margin-left: 0;
|
|
68
68
|
}
|
|
69
69
|
100% {
|
|
70
|
-
margin-left: -
|
|
70
|
+
margin-left: -9px;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
@-webkit-keyframes so-tooltip-kf-right {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
margin-left: 0;
|
|
76
76
|
}
|
|
77
77
|
100% {
|
|
78
|
-
margin-left:
|
|
78
|
+
margin-left: 9px;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
@keyframes so-tooltip-kf-right {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
margin-left: 0;
|
|
84
84
|
}
|
|
85
85
|
100% {
|
|
86
|
-
margin-left:
|
|
86
|
+
margin-left: 9px;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
.so-tooltip-animation {
|
|
@@ -113,17 +113,17 @@
|
|
|
113
113
|
text-align: center;
|
|
114
114
|
}
|
|
115
115
|
.so-tooltip-top {
|
|
116
|
-
margin-top: -
|
|
116
|
+
margin-top: -9px;
|
|
117
117
|
-webkit-transform: translate(-50%, -100%);
|
|
118
118
|
-ms-transform: translate(-50%, -100%);
|
|
119
119
|
transform: translate(-50%, -100%);
|
|
120
120
|
}
|
|
121
121
|
.so-tooltip-top .so-tooltip-arrow {
|
|
122
|
-
|
|
122
|
+
bottom: -5px;
|
|
123
123
|
left: 50%;
|
|
124
|
-
border-top:
|
|
125
|
-
border-right:
|
|
126
|
-
border-left:
|
|
124
|
+
border-top: 6px solid var(--tooltip-bg, #000);
|
|
125
|
+
border-right: 6px solid transparent;
|
|
126
|
+
border-left: 6px solid transparent;
|
|
127
127
|
-webkit-transform: translate(-50%, 0);
|
|
128
128
|
-ms-transform: translate(-50%, 0);
|
|
129
129
|
transform: translate(-50%, 0);
|
|
@@ -133,17 +133,17 @@
|
|
|
133
133
|
animation: so-tooltip-kf-opacity 0.3s ease, so-tooltip-kf-top 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
|
|
134
134
|
}
|
|
135
135
|
.so-tooltip-right {
|
|
136
|
-
margin-left:
|
|
136
|
+
margin-left: 9px;
|
|
137
137
|
-webkit-transform: translate(0, -50%);
|
|
138
138
|
-ms-transform: translate(0, -50%);
|
|
139
139
|
transform: translate(0, -50%);
|
|
140
140
|
}
|
|
141
141
|
.so-tooltip-right .so-tooltip-arrow {
|
|
142
142
|
top: 50%;
|
|
143
|
-
|
|
144
|
-
border-top:
|
|
145
|
-
border-right:
|
|
146
|
-
border-bottom:
|
|
143
|
+
left: -5px;
|
|
144
|
+
border-top: 6px solid transparent;
|
|
145
|
+
border-right: 6px solid var(--tooltip-bg, #000);
|
|
146
|
+
border-bottom: 6px solid transparent;
|
|
147
147
|
-webkit-transform: translateY(-50%);
|
|
148
148
|
-ms-transform: translateY(-50%);
|
|
149
149
|
transform: translateY(-50%);
|
|
@@ -153,17 +153,17 @@
|
|
|
153
153
|
animation: so-tooltip-kf-opacity 0.3s ease, so-tooltip-kf-right 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
|
|
154
154
|
}
|
|
155
155
|
.so-tooltip-left {
|
|
156
|
-
margin-left: -
|
|
156
|
+
margin-left: -9px;
|
|
157
157
|
-webkit-transform: translate(-100%, -50%);
|
|
158
158
|
-ms-transform: translate(-100%, -50%);
|
|
159
159
|
transform: translate(-100%, -50%);
|
|
160
160
|
}
|
|
161
161
|
.so-tooltip-left .so-tooltip-arrow {
|
|
162
162
|
top: 50%;
|
|
163
|
-
|
|
164
|
-
border-top:
|
|
165
|
-
border-bottom:
|
|
166
|
-
border-left:
|
|
163
|
+
right: -5px;
|
|
164
|
+
border-top: 6px solid transparent;
|
|
165
|
+
border-bottom: 6px solid transparent;
|
|
166
|
+
border-left: 6px solid var(--tooltip-bg, #000);
|
|
167
167
|
-webkit-transform: translateY(-50%);
|
|
168
168
|
-ms-transform: translateY(-50%);
|
|
169
169
|
transform: translateY(-50%);
|
|
@@ -173,20 +173,20 @@
|
|
|
173
173
|
animation: so-tooltip-kf-opacity 0.3s ease, so-tooltip-kf-left 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
|
|
174
174
|
}
|
|
175
175
|
.so-tooltip-bottom {
|
|
176
|
-
margin-top:
|
|
176
|
+
margin-top: 9px;
|
|
177
177
|
-webkit-transform: translateX(-50%);
|
|
178
178
|
-ms-transform: translateX(-50%);
|
|
179
179
|
transform: translateX(-50%);
|
|
180
180
|
}
|
|
181
181
|
.so-tooltip-bottom .so-tooltip-arrow {
|
|
182
|
-
top:
|
|
182
|
+
top: -5px;
|
|
183
183
|
left: 50%;
|
|
184
|
-
border-right:
|
|
185
|
-
border-bottom:
|
|
186
|
-
border-left:
|
|
187
|
-
-webkit-transform: translate(-50%,
|
|
188
|
-
-ms-transform: translate(-50%,
|
|
189
|
-
transform: translate(-50%,
|
|
184
|
+
border-right: 6px solid transparent;
|
|
185
|
+
border-bottom: 6px solid var(--tooltip-bg, #000);
|
|
186
|
+
border-left: 6px solid transparent;
|
|
187
|
+
-webkit-transform: translate(-50%, 0);
|
|
188
|
+
-ms-transform: translate(-50%, 0);
|
|
189
|
+
transform: translate(-50%, 0);
|
|
190
190
|
}
|
|
191
191
|
.so-tooltip-bottom.so-tooltip-animation {
|
|
192
192
|
-webkit-animation: so-tooltip-kf-opacity 0.3s ease, so-tooltip-kf-bottom 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
|
package/css/index.d.ts
CHANGED