tntd 3.0.50 → 3.0.51
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/es/_util/hooks/useScrollLock.js +68 -0
- package/es/_util/hooks/useScrollLock.js.map +1 -0
- package/es/anchor/anchor.js +96 -0
- package/es/anchor/anchor.js.map +1 -0
- package/es/anchor/anchor.less +79 -0
- package/es/anchor/index.js +7 -9
- package/es/anchor/index.js.map +1 -1
- package/es/array-input/icon.js +36 -0
- package/es/array-input/icon.js.map +1 -0
- package/es/checkbox/checkbox-group.js +16 -0
- package/es/checkbox/checkbox-group.js.map +1 -0
- package/es/ellipsis/index.js +11 -1
- package/es/ellipsis/index.js.map +1 -1
- package/es/page-loading/index.less +4 -4
- package/es/page-loading/loading.gif +0 -0
- package/es/page-loading/loading1.gif +0 -0
- package/es/query-form/Field/Composition/FieldPopover.js +31 -24
- package/es/query-form/Field/Composition/Select.js +31 -24
- package/es/query-form/Field/Composition/SelectInput.js +18 -17
- package/es/query-form/Field/Composition/ValueTag.js +18 -17
- package/es/query-form/Field/Composition/index.js +37 -30
- package/es/query-form/Field/Composition/utils.js +3 -3
- package/es/radio/radio-group.js +16 -0
- package/es/radio/radio-group.js.map +1 -0
- package/es/scroll-bar/Bar.js +18 -17
- package/es/scroll-bar/Context.js +3 -3
- package/es/scroll-bar/ScrollBar.js +3 -3
- package/es/scroll-bar/Thumb.js +18 -17
- package/es/scroll-bar/index.js +3 -3
- package/es/scroll-bar/util.js +13 -7
- package/es/steps/stepStyle/small.less +5 -0
- package/es/table/total-shower.js +20 -0
- package/es/table/total-shower.js.map +1 -0
- package/es/tntd-rc-select/style/index.less +20 -2
- package/es/tooltip/tooltip.js +19 -5
- package/es/tooltip/tooltip.js.map +1 -1
- package/es/utils/simple-template.js +19 -0
- package/es/utils/simple-template.js.map +1 -0
- package/lib/_util/hooks/useScrollLock.d.ts +9 -0
- package/lib/_util/hooks/useScrollLock.d.ts.map +1 -0
- package/lib/_util/hooks/useScrollLock.js +114 -0
- package/lib/_util/hooks/useScrollLock.js.map +1 -0
- package/lib/anchor/anchor.d.ts +15 -0
- package/lib/anchor/anchor.d.ts.map +1 -0
- package/lib/anchor/anchor.js +131 -0
- package/lib/anchor/anchor.js.map +1 -0
- package/lib/anchor/anchor.less +79 -0
- package/lib/anchor/index.d.ts +3 -2
- package/lib/anchor/index.d.ts.map +1 -1
- package/lib/anchor/index.js +7 -40
- package/lib/anchor/index.js.map +1 -1
- package/lib/array-input/icon.d.ts +4 -0
- package/lib/array-input/icon.d.ts.map +1 -0
- package/lib/array-input/icon.js +36 -0
- package/lib/array-input/icon.js.map +1 -0
- package/lib/checkbox/checkbox-group.d.ts +8 -0
- package/lib/checkbox/checkbox-group.d.ts.map +1 -0
- package/lib/checkbox/checkbox-group.js +16 -0
- package/lib/checkbox/checkbox-group.js.map +1 -0
- package/lib/ellipsis/index.d.ts.map +1 -1
- package/lib/ellipsis/index.js +11 -1
- package/lib/ellipsis/index.js.map +1 -1
- package/lib/notification/assets/svg-error-tip.d.ts +1 -1
- package/lib/notification/assets/svg-success-tip.d.ts +1 -1
- package/lib/page-loading/index.less +4 -4
- package/lib/page-loading/loading.gif +0 -0
- package/lib/page-loading/loading1.gif +0 -0
- package/lib/query-form/Field/Composition/FieldPopover.js +31 -24
- package/lib/query-form/Field/Composition/Select.js +31 -24
- package/lib/query-form/Field/Composition/SelectInput.js +18 -17
- package/lib/query-form/Field/Composition/ValueTag.js +18 -17
- package/lib/query-form/Field/Composition/index.js +37 -30
- package/lib/query-form/Field/Composition/utils.js +3 -3
- package/lib/radio/radio-group.d.ts +8 -0
- package/lib/radio/radio-group.d.ts.map +1 -0
- package/lib/radio/radio-group.js +16 -0
- package/lib/radio/radio-group.js.map +1 -0
- package/lib/scroll-bar/Bar.js +18 -17
- package/lib/scroll-bar/Context.js +3 -3
- package/lib/scroll-bar/ScrollBar.js +3 -3
- package/lib/scroll-bar/Thumb.js +18 -17
- package/lib/scroll-bar/index.js +3 -3
- package/lib/scroll-bar/util.js +13 -7
- package/lib/segmented/index.d.ts +1 -1
- package/lib/steps/stepStyle/small.less +5 -0
- package/lib/svg-components/illustration-403.d.ts +1 -1
- package/lib/svg-components/illustration-404.d.ts +1 -1
- package/lib/svg-components/illustration-500.d.ts +1 -1
- package/lib/svg-components/illustration-empty.d.ts +1 -1
- package/lib/svg-components/illustration-failure.d.ts +1 -1
- package/lib/svg-components/illustration-no-access.d.ts +1 -1
- package/lib/svg-components/illustration-no-chart.d.ts +1 -1
- package/lib/svg-components/illustration-no-result.d.ts +1 -1
- package/lib/svg-components/illustration-offline.d.ts +1 -1
- package/lib/svg-components/illustration-success.d.ts +1 -1
- package/lib/table/assets/image-loading-background.d.ts +1 -1
- package/lib/table/assets/image-loading.d.ts +1 -1
- package/lib/table/total-shower.d.ts +9 -0
- package/lib/table/total-shower.d.ts.map +1 -0
- package/lib/table/total-shower.js +20 -0
- package/lib/table/total-shower.js.map +1 -0
- package/lib/tntd-rc-select/style/index.less +20 -2
- package/lib/tooltip/tooltip.d.ts +1 -0
- package/lib/tooltip/tooltip.d.ts.map +1 -1
- package/lib/tooltip/tooltip.js +23 -9
- package/lib/tooltip/tooltip.js.map +1 -1
- package/lib/utils/simple-template.d.ts +9 -0
- package/lib/utils/simple-template.d.ts.map +1 -0
- package/lib/utils/simple-template.js +19 -0
- package/lib/utils/simple-template.js.map +1 -0
- package/package.json +1 -1
|
@@ -46,18 +46,24 @@ function _interopRequireWildcard(e, r) {
|
|
|
46
46
|
}
|
|
47
47
|
return n["default"] = e, t && t.set(e, n), n;
|
|
48
48
|
}
|
|
49
|
-
function _interopRequireDefault(
|
|
50
|
-
return
|
|
51
|
-
"default":
|
|
49
|
+
function _interopRequireDefault(obj) {
|
|
50
|
+
return obj && obj.__esModule ? obj : {
|
|
51
|
+
"default": obj
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
function _defineProperty(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
function _defineProperty(obj, key, value) {
|
|
55
|
+
key = _toPropertyKey(key);
|
|
56
|
+
if (key in obj) {
|
|
57
|
+
Object.defineProperty(obj, key, {
|
|
58
|
+
value: value,
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
writable: true
|
|
62
|
+
});
|
|
63
|
+
} else {
|
|
64
|
+
obj[key] = value;
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
61
67
|
}
|
|
62
68
|
function _toPropertyKey(t) {
|
|
63
69
|
var i = _toPrimitive(t, "string");
|
|
@@ -73,23 +79,24 @@ function _toPrimitive(t, r) {
|
|
|
73
79
|
}
|
|
74
80
|
return ("string" === r ? String : Number)(t);
|
|
75
81
|
}
|
|
76
|
-
function _slicedToArray(
|
|
77
|
-
return _arrayWithHoles(
|
|
82
|
+
function _slicedToArray(arr, i) {
|
|
83
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
78
84
|
}
|
|
79
85
|
function _nonIterableRest() {
|
|
80
86
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
81
87
|
}
|
|
82
|
-
function _unsupportedIterableToArray(
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
89
|
+
if (!o) return;
|
|
90
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
91
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
92
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
93
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
94
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
88
95
|
}
|
|
89
|
-
function _arrayLikeToArray(
|
|
90
|
-
(
|
|
91
|
-
for (var
|
|
92
|
-
return
|
|
96
|
+
function _arrayLikeToArray(arr, len) {
|
|
97
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
98
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
99
|
+
return arr2;
|
|
93
100
|
}
|
|
94
101
|
function _iterableToArrayLimit(r, l) {
|
|
95
102
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -118,8 +125,8 @@ function _iterableToArrayLimit(r, l) {
|
|
|
118
125
|
return a;
|
|
119
126
|
}
|
|
120
127
|
}
|
|
121
|
-
function _arrayWithHoles(
|
|
122
|
-
if (Array.isArray(
|
|
128
|
+
function _arrayWithHoles(arr) {
|
|
129
|
+
if (Array.isArray(arr)) return arr;
|
|
123
130
|
}
|
|
124
131
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
125
132
|
var t = {};
|
|
@@ -15,9 +15,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
15
15
|
exports["default"] = SelectInput;
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
var _SelectInput = _interopRequireDefault(require("../SelectInput"));
|
|
18
|
-
function _interopRequireDefault(
|
|
19
|
-
return
|
|
20
|
-
"default":
|
|
18
|
+
function _interopRequireDefault(obj) {
|
|
19
|
+
return obj && obj.__esModule ? obj : {
|
|
20
|
+
"default": obj
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
function _getRequireWildcardCache(e) {
|
|
@@ -45,23 +45,24 @@ function _interopRequireWildcard(e, r) {
|
|
|
45
45
|
}
|
|
46
46
|
return n["default"] = e, t && t.set(e, n), n;
|
|
47
47
|
}
|
|
48
|
-
function _slicedToArray(
|
|
49
|
-
return _arrayWithHoles(
|
|
48
|
+
function _slicedToArray(arr, i) {
|
|
49
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
50
50
|
}
|
|
51
51
|
function _nonIterableRest() {
|
|
52
52
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
53
53
|
}
|
|
54
|
-
function _unsupportedIterableToArray(
|
|
55
|
-
if (
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
55
|
+
if (!o) return;
|
|
56
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
57
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
58
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
59
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
60
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
60
61
|
}
|
|
61
|
-
function _arrayLikeToArray(
|
|
62
|
-
(
|
|
63
|
-
for (var
|
|
64
|
-
return
|
|
62
|
+
function _arrayLikeToArray(arr, len) {
|
|
63
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
64
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
65
|
+
return arr2;
|
|
65
66
|
}
|
|
66
67
|
function _iterableToArrayLimit(r, l) {
|
|
67
68
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -90,8 +91,8 @@ function _iterableToArrayLimit(r, l) {
|
|
|
90
91
|
return a;
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
|
-
function _arrayWithHoles(
|
|
94
|
-
if (Array.isArray(
|
|
94
|
+
function _arrayWithHoles(arr) {
|
|
95
|
+
if (Array.isArray(arr)) return arr;
|
|
95
96
|
}
|
|
96
97
|
function SelectInput(props) {
|
|
97
98
|
var value = props.value,
|
|
@@ -48,28 +48,29 @@ function _interopRequireWildcard(e, r) {
|
|
|
48
48
|
}
|
|
49
49
|
return n["default"] = e, t && t.set(e, n), n;
|
|
50
50
|
}
|
|
51
|
-
function _interopRequireDefault(
|
|
52
|
-
return
|
|
53
|
-
"default":
|
|
51
|
+
function _interopRequireDefault(obj) {
|
|
52
|
+
return obj && obj.__esModule ? obj : {
|
|
53
|
+
"default": obj
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
function _slicedToArray(
|
|
57
|
-
return _arrayWithHoles(
|
|
56
|
+
function _slicedToArray(arr, i) {
|
|
57
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
58
58
|
}
|
|
59
59
|
function _nonIterableRest() {
|
|
60
60
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
61
61
|
}
|
|
62
|
-
function _unsupportedIterableToArray(
|
|
63
|
-
if (
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
63
|
+
if (!o) return;
|
|
64
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
65
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
66
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
67
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
68
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
68
69
|
}
|
|
69
|
-
function _arrayLikeToArray(
|
|
70
|
-
(
|
|
71
|
-
for (var
|
|
72
|
-
return
|
|
70
|
+
function _arrayLikeToArray(arr, len) {
|
|
71
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
72
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
73
|
+
return arr2;
|
|
73
74
|
}
|
|
74
75
|
function _iterableToArrayLimit(r, l) {
|
|
75
76
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -98,8 +99,8 @@ function _iterableToArrayLimit(r, l) {
|
|
|
98
99
|
return a;
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
function _arrayWithHoles(
|
|
102
|
-
if (Array.isArray(
|
|
102
|
+
function _arrayWithHoles(arr) {
|
|
103
|
+
if (Array.isArray(arr)) return arr;
|
|
103
104
|
}
|
|
104
105
|
function ValueTag(_ref) {
|
|
105
106
|
var item = _ref.item,
|
|
@@ -48,30 +48,36 @@ function _interopRequireWildcard(e, r) {
|
|
|
48
48
|
}
|
|
49
49
|
return n["default"] = e, t && t.set(e, n), n;
|
|
50
50
|
}
|
|
51
|
-
function _interopRequireDefault(
|
|
52
|
-
return
|
|
53
|
-
"default":
|
|
51
|
+
function _interopRequireDefault(obj) {
|
|
52
|
+
return obj && obj.__esModule ? obj : {
|
|
53
|
+
"default": obj
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
function _toConsumableArray(
|
|
57
|
-
return _arrayWithoutHoles(
|
|
56
|
+
function _toConsumableArray(arr) {
|
|
57
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
58
58
|
}
|
|
59
59
|
function _nonIterableSpread() {
|
|
60
60
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
61
61
|
}
|
|
62
|
-
function _iterableToArray(
|
|
63
|
-
if (
|
|
62
|
+
function _iterableToArray(iter) {
|
|
63
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
64
64
|
}
|
|
65
|
-
function _arrayWithoutHoles(
|
|
66
|
-
if (Array.isArray(
|
|
65
|
+
function _arrayWithoutHoles(arr) {
|
|
66
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
67
67
|
}
|
|
68
|
-
function _defineProperty(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
function _defineProperty(obj, key, value) {
|
|
69
|
+
key = _toPropertyKey(key);
|
|
70
|
+
if (key in obj) {
|
|
71
|
+
Object.defineProperty(obj, key, {
|
|
72
|
+
value: value,
|
|
73
|
+
enumerable: true,
|
|
74
|
+
configurable: true,
|
|
75
|
+
writable: true
|
|
76
|
+
});
|
|
77
|
+
} else {
|
|
78
|
+
obj[key] = value;
|
|
79
|
+
}
|
|
80
|
+
return obj;
|
|
75
81
|
}
|
|
76
82
|
function _toPropertyKey(t) {
|
|
77
83
|
var i = _toPrimitive(t, "string");
|
|
@@ -87,23 +93,24 @@ function _toPrimitive(t, r) {
|
|
|
87
93
|
}
|
|
88
94
|
return ("string" === r ? String : Number)(t);
|
|
89
95
|
}
|
|
90
|
-
function _slicedToArray(
|
|
91
|
-
return _arrayWithHoles(
|
|
96
|
+
function _slicedToArray(arr, i) {
|
|
97
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
92
98
|
}
|
|
93
99
|
function _nonIterableRest() {
|
|
94
100
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
95
101
|
}
|
|
96
|
-
function _unsupportedIterableToArray(
|
|
97
|
-
if (
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
103
|
+
if (!o) return;
|
|
104
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
105
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
106
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
107
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
108
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
102
109
|
}
|
|
103
|
-
function _arrayLikeToArray(
|
|
104
|
-
(
|
|
105
|
-
for (var
|
|
106
|
-
return
|
|
110
|
+
function _arrayLikeToArray(arr, len) {
|
|
111
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
112
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
113
|
+
return arr2;
|
|
107
114
|
}
|
|
108
115
|
function _iterableToArrayLimit(r, l) {
|
|
109
116
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -132,8 +139,8 @@ function _iterableToArrayLimit(r, l) {
|
|
|
132
139
|
return a;
|
|
133
140
|
}
|
|
134
141
|
}
|
|
135
|
-
function _arrayWithHoles(
|
|
136
|
-
if (Array.isArray(
|
|
142
|
+
function _arrayWithHoles(arr) {
|
|
143
|
+
if (Array.isArray(arr)) return arr;
|
|
137
144
|
}
|
|
138
145
|
/**
|
|
139
146
|
* @param value: [{
|
|
@@ -15,9 +15,9 @@ var _isString2 = _interopRequireDefault(require("lodash/isString"));
|
|
|
15
15
|
var _isArray2 = _interopRequireDefault(require("lodash/isArray"));
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
|
17
17
|
var _moment = _interopRequireDefault(require("moment"));
|
|
18
|
-
function _interopRequireDefault(
|
|
19
|
-
return
|
|
20
|
-
"default":
|
|
18
|
+
function _interopRequireDefault(obj) {
|
|
19
|
+
return obj && obj.__esModule ? obj : {
|
|
20
|
+
"default": obj
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
function highlightSubstring(str, substring) {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
require("react");
|
|
8
|
+
var _radio = _interopRequireDefault(require("antd/es/radio"));
|
|
9
|
+
var _connect = require("../connect");
|
|
10
|
+
var _previewText = _interopRequireDefault(require("../preview-text"));
|
|
11
|
+
function _interopRequireDefault(e) {
|
|
12
|
+
return e && e.__esModule ? e : {
|
|
13
|
+
"default": e
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
var _default = exports["default"] = (0, _connect.connectReadonlyComponent)(_radio["default"].Group, _previewText["default"].Select);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../src/radio/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAkB,OAAO,CAAA;AAEzB,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,WAAW,MAAM,iBAAiB,CAAA;AAMzC,eAAe,wBAAwB,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA","sourcesContent":["import React from 'react'\nimport type { RadioGroupProps as AntdRadioGroupProps } from 'antd/es/radio'\nimport Radio from 'antd/es/radio'\nimport { connectReadonlyComponent } from '../connect'\nimport PreviewText from '../preview-text'\n\nexport type RadioGroupProps = AntdRadioGroupProps & {\n readonly?: boolean\n}\n\nexport default connectReadonlyComponent(Radio.Group, PreviewText.Select)\n"]}
|
package/es/scroll-bar/Bar.js
CHANGED
|
@@ -17,9 +17,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
17
17
|
var _Context = _interopRequireDefault(require("./Context"));
|
|
18
18
|
var _Thumb = _interopRequireDefault(require("./Thumb"));
|
|
19
19
|
var _util = require("./util");
|
|
20
|
-
function _interopRequireDefault(
|
|
21
|
-
return
|
|
22
|
-
"default":
|
|
20
|
+
function _interopRequireDefault(obj) {
|
|
21
|
+
return obj && obj.__esModule ? obj : {
|
|
22
|
+
"default": obj
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
function _getRequireWildcardCache(e) {
|
|
@@ -47,23 +47,24 @@ function _interopRequireWildcard(e, r) {
|
|
|
47
47
|
}
|
|
48
48
|
return n["default"] = e, t && t.set(e, n), n;
|
|
49
49
|
}
|
|
50
|
-
function _slicedToArray(
|
|
51
|
-
return _arrayWithHoles(
|
|
50
|
+
function _slicedToArray(arr, i) {
|
|
51
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
52
52
|
}
|
|
53
53
|
function _nonIterableRest() {
|
|
54
54
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
55
55
|
}
|
|
56
|
-
function _unsupportedIterableToArray(
|
|
57
|
-
if (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
57
|
+
if (!o) return;
|
|
58
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
59
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
60
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
61
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
62
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
62
63
|
}
|
|
63
|
-
function _arrayLikeToArray(
|
|
64
|
-
(
|
|
65
|
-
for (var
|
|
66
|
-
return
|
|
64
|
+
function _arrayLikeToArray(arr, len) {
|
|
65
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
66
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
67
|
+
return arr2;
|
|
67
68
|
}
|
|
68
69
|
function _iterableToArrayLimit(r, l) {
|
|
69
70
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -92,8 +93,8 @@ function _iterableToArrayLimit(r, l) {
|
|
|
92
93
|
return a;
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
|
-
function _arrayWithHoles(
|
|
96
|
-
if (Array.isArray(
|
|
96
|
+
function _arrayWithHoles(arr) {
|
|
97
|
+
if (Array.isArray(arr)) return arr;
|
|
97
98
|
}
|
|
98
99
|
var _default = exports["default"] = (0, _react.forwardRef)(function (props, ref) {
|
|
99
100
|
var _useContext = (0, _react.useContext)(_Context["default"]),
|
package/es/scroll-bar/Context.js
CHANGED
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
function _interopRequireDefault(
|
|
9
|
-
return
|
|
10
|
-
"default":
|
|
8
|
+
function _interopRequireDefault(obj) {
|
|
9
|
+
return obj && obj.__esModule ? obj : {
|
|
10
|
+
"default": obj
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
var Context = _react["default"].createContext({
|
|
@@ -42,9 +42,9 @@ function _interopRequireWildcard(e, r) {
|
|
|
42
42
|
}
|
|
43
43
|
return n["default"] = e, t && t.set(e, n), n;
|
|
44
44
|
}
|
|
45
|
-
function _interopRequireDefault(
|
|
46
|
-
return
|
|
47
|
-
"default":
|
|
45
|
+
function _interopRequireDefault(obj) {
|
|
46
|
+
return obj && obj.__esModule ? obj : {
|
|
47
|
+
"default": obj
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
package/es/scroll-bar/Thumb.js
CHANGED
|
@@ -42,28 +42,29 @@ function _interopRequireWildcard(e, r) {
|
|
|
42
42
|
}
|
|
43
43
|
return n["default"] = e, t && t.set(e, n), n;
|
|
44
44
|
}
|
|
45
|
-
function _interopRequireDefault(
|
|
46
|
-
return
|
|
47
|
-
"default":
|
|
45
|
+
function _interopRequireDefault(obj) {
|
|
46
|
+
return obj && obj.__esModule ? obj : {
|
|
47
|
+
"default": obj
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
function _slicedToArray(
|
|
51
|
-
return _arrayWithHoles(
|
|
50
|
+
function _slicedToArray(arr, i) {
|
|
51
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
52
52
|
}
|
|
53
53
|
function _nonIterableRest() {
|
|
54
54
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
55
55
|
}
|
|
56
|
-
function _unsupportedIterableToArray(
|
|
57
|
-
if (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
57
|
+
if (!o) return;
|
|
58
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
59
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
60
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
61
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
62
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
62
63
|
}
|
|
63
|
-
function _arrayLikeToArray(
|
|
64
|
-
(
|
|
65
|
-
for (var
|
|
66
|
-
return
|
|
64
|
+
function _arrayLikeToArray(arr, len) {
|
|
65
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
66
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
67
|
+
return arr2;
|
|
67
68
|
}
|
|
68
69
|
function _iterableToArrayLimit(r, l) {
|
|
69
70
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -92,8 +93,8 @@ function _iterableToArrayLimit(r, l) {
|
|
|
92
93
|
return a;
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
|
-
function _arrayWithHoles(
|
|
96
|
-
if (Array.isArray(
|
|
96
|
+
function _arrayWithHoles(arr) {
|
|
97
|
+
if (Array.isArray(arr)) return arr;
|
|
97
98
|
}
|
|
98
99
|
function Thumb(props) {
|
|
99
100
|
var _useContext = (0, _react.useContext)(_Context["default"]),
|
package/es/scroll-bar/index.js
CHANGED
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ScrollBar = _interopRequireDefault(require("./ScrollBar"));
|
|
8
8
|
require("./scrollBar.less");
|
|
9
|
-
function _interopRequireDefault(
|
|
10
|
-
return
|
|
11
|
-
"default":
|
|
9
|
+
function _interopRequireDefault(obj) {
|
|
10
|
+
return obj && obj.__esModule ? obj : {
|
|
11
|
+
"default": obj
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
var _default = exports["default"] = _ScrollBar["default"];
|
package/es/scroll-bar/util.js
CHANGED
|
@@ -13,13 +13,19 @@ function _typeof(o) {
|
|
|
13
13
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
14
14
|
}, _typeof(o);
|
|
15
15
|
}
|
|
16
|
-
function _defineProperty(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
function _defineProperty(obj, key, value) {
|
|
17
|
+
key = _toPropertyKey(key);
|
|
18
|
+
if (key in obj) {
|
|
19
|
+
Object.defineProperty(obj, key, {
|
|
20
|
+
value: value,
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
writable: true
|
|
24
|
+
});
|
|
25
|
+
} else {
|
|
26
|
+
obj[key] = value;
|
|
27
|
+
}
|
|
28
|
+
return obj;
|
|
23
29
|
}
|
|
24
30
|
function _toPropertyKey(t) {
|
|
25
31
|
var i = _toPrimitive(t, "string");
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TotalShower = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _utils = require("../utils");
|
|
9
|
+
function _interopRequireDefault(e) {
|
|
10
|
+
return e && e.__esModule ? e : {
|
|
11
|
+
"default": e
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
var TotalShower = exports.TotalShower = function TotalShower(_ref) {
|
|
15
|
+
var total = _ref.total,
|
|
16
|
+
locale = _ref.locale;
|
|
17
|
+
return _react["default"].createElement(_react["default"].Fragment, null, (0, _utils.simpleTemplate)(locale.total, {
|
|
18
|
+
total: total
|
|
19
|
+
}));
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"total-shower.js","sourceRoot":"","sources":["../../src/table/total-shower.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC1B,KAAK,EACL,MAAM,GAMP,EAAE,EAAE;IACH,OAAO,0CAAG,cAAc,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAI,CAAA;AACvD,CAAC,CAAA","sourcesContent":["import React from 'react'\n\nimport type { TableProps as AntdTableProps } from 'antd/es/table'\nimport { simpleTemplate } from '../utils'\n\nexport const TotalShower = ({\n total,\n locale,\n}: {\n total: number\n locale: AntdTableProps<unknown>['locale'] & {\n total?: string\n }\n}) => {\n return <>{simpleTemplate(locale.total, { total })}</>\n}\n"]}
|
|
@@ -1338,7 +1338,7 @@
|
|
|
1338
1338
|
.tntd-rc-select:not(.tntd-rc-select-customize-input) .tntd-rc-select-selector {
|
|
1339
1339
|
position: relative;
|
|
1340
1340
|
background-color: #fff;
|
|
1341
|
-
border: 1px solid
|
|
1341
|
+
border: 1px solid #e1e6ee;
|
|
1342
1342
|
border-radius: 2px;
|
|
1343
1343
|
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
1344
1344
|
}
|
|
@@ -1446,7 +1446,7 @@
|
|
|
1446
1446
|
align-items: center;
|
|
1447
1447
|
height: 12px;
|
|
1448
1448
|
margin-top: -6px;
|
|
1449
|
-
color: rgba(
|
|
1449
|
+
color: rgba(23, 35, 61, 0.3);
|
|
1450
1450
|
font-size: 12px;
|
|
1451
1451
|
line-height: 1;
|
|
1452
1452
|
text-align: center;
|
|
@@ -1775,3 +1775,21 @@
|
|
|
1775
1775
|
}
|
|
1776
1776
|
}
|
|
1777
1777
|
}
|
|
1778
|
+
|
|
1779
|
+
.has-error{
|
|
1780
|
+
.tntd-rc-select:not(.tntd-rc-select-customize-input) .tntd-rc-select-selector {
|
|
1781
|
+
border-color: @red-6;
|
|
1782
|
+
box-shadow: none ;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
.tntd-rc-select-focused:not(.tntd-rc-select-disabled).tntd-rc-select:not(
|
|
1786
|
+
.tntd-rc-select-customize-input
|
|
1787
|
+
) .tntd-rc-select-selector {
|
|
1788
|
+
border-color: @red-6;
|
|
1789
|
+
box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
.tntd-rc-select-arrow{
|
|
1794
|
+
color: #17233d;
|
|
1795
|
+
}
|