@widergy/energy-ui 1.141.1 → 1.141.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/UTCheckbox/index.js +1 -1
- package/dist/components/UTDatePicker/index.js +2 -1
- package/dist/components/UTEmojiPicker/constants.js +13 -9
- package/dist/components/UTFileInput/layout.js +0 -4
- package/dist/components/UTProductItem/constants.js +8 -4
- package/dist/components/UTRating/components/Faces/constants.js +20 -10
- package/dist/components/UTTable/components/TableFooter/components/Pagination/index.js +6 -2
- package/dist/components/UTTable/components/TableHeader/index.js +1 -0
- package/dist/components/UTTable/index.js +3 -3
- package/dist/components/UTTable/utils.js +2 -2
- package/package.json +1 -1
|
@@ -23,7 +23,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
23
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
24
|
var Checked = function Checked(props) {
|
|
25
25
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
26
|
-
d: "M10
|
|
26
|
+
d: "M10 14zm0 3l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
27
27
|
}));
|
|
28
28
|
};
|
|
29
29
|
Checked.defaultProps = {
|
|
@@ -30,7 +30,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
30
30
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
31
31
|
var CalendarIcon = function CalendarIcon(props) {
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("path", {
|
|
33
|
-
d: "M8 15c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-
|
|
33
|
+
d: "M8 15c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 0c.55 0 1 .45 1 1s-.45 1-1 1h-4c-.55 0-1-.45-1-1s.45-1 1-1zm2 5H6c-.551 0-1-.449-1-1v-6h14v6c0 .551-.449 1-1 1M6 6h1v1c0 .55.45 1 1 1s1-.45 1-1V6h6v1c0 .55.45 1 1 1s1-.45 1-1V6h1c.551 0 1 .449 1 1v4H5V7c0-.551.449-1 1-1m12-2h-1V3c0-.55-.45-1-1-1s-1 .45-1 1v1H9V3c0-.55-.45-1-1-1s-1 .45-1 1v1H6C4.346 4 3 5.346 3 7v12c0 1.654 1.346 3 3 3h12c1.654 0 3-1.346 3-3V7c0-1.654-1.346-3-3-3",
|
|
34
34
|
id: "a"
|
|
35
35
|
})), /*#__PURE__*/_react.default.createElement("use", {
|
|
36
36
|
fillRule: "nonzero",
|
|
@@ -42,6 +42,7 @@ var CalendarIcon = function CalendarIcon(props) {
|
|
|
42
42
|
CalendarIcon.defaultProps = {
|
|
43
43
|
width: "18",
|
|
44
44
|
height: "20",
|
|
45
|
+
viewBox: "0 0 18 20",
|
|
45
46
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46
47
|
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
47
48
|
};
|
|
@@ -20,6 +20,7 @@ Faces.defaultProps = {
|
|
|
20
20
|
className: "icon icon-tabler icon-tabler-mood-smile",
|
|
21
21
|
width: "24",
|
|
22
22
|
height: "24",
|
|
23
|
+
viewBox: "0 0 24 24",
|
|
23
24
|
strokeWidth: "2",
|
|
24
25
|
stroke: "#677489",
|
|
25
26
|
fill: "none",
|
|
@@ -28,9 +29,7 @@ Faces.defaultProps = {
|
|
|
28
29
|
};
|
|
29
30
|
var Nature = function Nature(props) {
|
|
30
31
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
31
|
-
d: "M5 21c.5-4.5 2.5-8 7-10"
|
|
32
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
33
|
-
d: "M9 18c6.218 0 10.5-3.288 11-12V4h-4.014c-9 0-11.986 4-12 9 0 1 0 3 2 5h3z"
|
|
32
|
+
d: "M5 21c.5-4.5 2.5-8 7-10M9 18c6.218 0 10.5-3.288 11-12V4h-4.014c-9 0-11.986 4-12 9 0 1 0 3 2 5h3z"
|
|
34
33
|
}));
|
|
35
34
|
};
|
|
36
35
|
Nature.defaultProps = {
|
|
@@ -38,6 +37,7 @@ Nature.defaultProps = {
|
|
|
38
37
|
className: "icon icon-tabler icon-tabler-leaf",
|
|
39
38
|
width: "24",
|
|
40
39
|
height: "24",
|
|
40
|
+
viewBox: "0 0 24 24",
|
|
41
41
|
strokeWidth: "2",
|
|
42
42
|
stroke: "#677489",
|
|
43
43
|
fill: "none",
|
|
@@ -46,7 +46,7 @@ Nature.defaultProps = {
|
|
|
46
46
|
};
|
|
47
47
|
var Language = function Language(props) {
|
|
48
48
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
49
|
-
d: "M19.5 13.
|
|
49
|
+
d: "M19.5 13.572L12 21l-7.5-7.428m0 0A5 5 0 1 1 12 7.006a5 5 0 1 1 7.5 6.572"
|
|
50
50
|
}));
|
|
51
51
|
};
|
|
52
52
|
Language.defaultProps = {
|
|
@@ -54,6 +54,7 @@ Language.defaultProps = {
|
|
|
54
54
|
className: "icon icon-tabler icon-tabler-heart",
|
|
55
55
|
width: "24",
|
|
56
56
|
height: "24",
|
|
57
|
+
viewBox: "0 0 24 24",
|
|
57
58
|
strokeWidth: "2",
|
|
58
59
|
stroke: "#677489",
|
|
59
60
|
fill: "none",
|
|
@@ -62,11 +63,9 @@ Language.defaultProps = {
|
|
|
62
63
|
};
|
|
63
64
|
var Sports = function Sports(props) {
|
|
64
65
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
65
|
-
d: "
|
|
66
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
67
|
-
d: "M16 3C8.82 3 3 8.82 3 16a5 5 0 0 0 5 5c7.18 0 13-5.82 13-13a5 5 0 0 0-5-5"
|
|
66
|
+
d: "M15 9l-6 6M10 12l2 2M12 10l2 2M8 21a5 5 0 0 0-5-5"
|
|
68
67
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
69
|
-
d: "M16 3a5 5 0 0 0 5 5"
|
|
68
|
+
d: "M16 3C8.82 3 3 8.82 3 16a5 5 0 0 0 5 5c7.18 0 13-5.82 13-13a5 5 0 0 0-5-5M16 3a5 5 0 0 0 5 5"
|
|
70
69
|
}));
|
|
71
70
|
};
|
|
72
71
|
Sports.defaultProps = {
|
|
@@ -74,6 +73,7 @@ Sports.defaultProps = {
|
|
|
74
73
|
className: "icon icon-tabler icon-tabler-ball-american-football",
|
|
75
74
|
width: "24",
|
|
76
75
|
height: "24",
|
|
76
|
+
viewBox: "0 0 24 24",
|
|
77
77
|
strokeWidth: "2",
|
|
78
78
|
stroke: "#677489",
|
|
79
79
|
fill: "none",
|
|
@@ -92,6 +92,7 @@ Food.defaultProps = {
|
|
|
92
92
|
className: "icon icon-tabler icon-tabler-pizza",
|
|
93
93
|
width: "24",
|
|
94
94
|
height: "24",
|
|
95
|
+
viewBox: "0 0 24 24",
|
|
95
96
|
strokeWidth: "2",
|
|
96
97
|
stroke: "#677489",
|
|
97
98
|
fill: "none",
|
|
@@ -108,6 +109,7 @@ Travel.defaultProps = {
|
|
|
108
109
|
className: "icon icon-tabler icon-tabler-plane",
|
|
109
110
|
width: "24",
|
|
110
111
|
height: "24",
|
|
112
|
+
viewBox: "0 0 24 24",
|
|
111
113
|
strokeWidth: "2",
|
|
112
114
|
stroke: "#677489",
|
|
113
115
|
fill: "none",
|
|
@@ -116,7 +118,7 @@ Travel.defaultProps = {
|
|
|
116
118
|
};
|
|
117
119
|
var Creative = function Creative(props) {
|
|
118
120
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
119
|
-
d: "M3 12h1m8-9v1m8 8h1M5.6 5.6l.7.7m12.1-.
|
|
121
|
+
d: "M3 12h1m8-9v1m8 8h1M5.6 5.6l.7.7m12.1-.7l-.7.7M9 16a5 5 0 1 1 6 0 3.5 3.5 0 0 0-1 3 2 2 0 0 1-4 0 3.5 3.5 0 0 0-1-3M9.7 17h4.6"
|
|
120
122
|
}));
|
|
121
123
|
};
|
|
122
124
|
Creative.defaultProps = {
|
|
@@ -124,6 +126,7 @@ Creative.defaultProps = {
|
|
|
124
126
|
className: "icon icon-tabler icon-tabler-bulb",
|
|
125
127
|
width: "24",
|
|
126
128
|
height: "24",
|
|
129
|
+
viewBox: "0 0 24 24",
|
|
127
130
|
strokeWidth: "2",
|
|
128
131
|
stroke: "#677489",
|
|
129
132
|
fill: "none",
|
|
@@ -140,6 +143,7 @@ Flags.defaultProps = {
|
|
|
140
143
|
className: "icon icon-tabler icon-tabler-flag",
|
|
141
144
|
width: "24",
|
|
142
145
|
height: "24",
|
|
146
|
+
viewBox: "0 0 24 24",
|
|
143
147
|
strokeWidth: "2",
|
|
144
148
|
stroke: "#677489",
|
|
145
149
|
fill: "none",
|
|
@@ -25,10 +25,6 @@ var uploadIcon = function uploadIcon(props) {
|
|
|
25
25
|
uploadIcon.defaultProps = {
|
|
26
26
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27
27
|
viewBox: "0 0 414.165 414.165",
|
|
28
|
-
style: {
|
|
29
|
-
enableBackground: "new 0 0 414.165 414.165"
|
|
30
|
-
},
|
|
31
|
-
xmlSpace: "preserve",
|
|
32
28
|
width: "512",
|
|
33
29
|
height: "512"
|
|
34
30
|
};
|
|
@@ -10,13 +10,14 @@ var Add = function Add(props) {
|
|
|
10
10
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
11
11
|
fillRule: "evenodd",
|
|
12
12
|
clipRule: "evenodd",
|
|
13
|
-
d: "M8 0a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2H9v6a1 1 0 1 1-2 0V9H1a1 1 0 0 1 0-2h6V1a1 1 0 0 1 1-
|
|
13
|
+
d: "M8 0a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2H9v6a1 1 0 1 1-2 0V9H1a1 1 0 0 1 0-2h6V1a1 1 0 0 1 1-1z",
|
|
14
14
|
fill: "#091E42"
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
17
|
Add.defaultProps = {
|
|
18
18
|
width: "16",
|
|
19
19
|
height: "16",
|
|
20
|
+
viewBox: "0 0 16 16",
|
|
20
21
|
fill: "none",
|
|
21
22
|
xmlns: "http://www.w3.org/2000/svg"
|
|
22
23
|
};
|
|
@@ -24,13 +25,14 @@ var Edit = function Edit(props) {
|
|
|
24
25
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
25
26
|
fillRule: "evenodd",
|
|
26
27
|
clipRule: "evenodd",
|
|
27
|
-
d: "M12.019 6.
|
|
28
|
+
d: "M12.019 6.679L9.324 3.984l1.948-1.95 2.694 2.695-1.947 1.95zm-6.94 6.946l-2.976.27.264-2.955 5.617-5.617 2.696 2.696-5.6 5.606zM15.405 3.338l-.001-.001L12.665.599c-.741-.74-2.014-.774-2.716-.07L.953 9.527a1.973 1.973 0 0 0-.57 1.214l-.38 4.17a1.002 1.002 0 0 0 1.088 1.086l4.17-.38a1.974 1.974 0 0 0 1.214-.567l8.997-8.997c.728-.73.697-1.948-.068-2.714z",
|
|
28
29
|
fill: "#091E42"
|
|
29
30
|
}));
|
|
30
31
|
};
|
|
31
32
|
Edit.defaultProps = {
|
|
32
33
|
width: "16",
|
|
33
34
|
height: "16",
|
|
35
|
+
viewBox: "0 0 16 16",
|
|
34
36
|
fill: "none",
|
|
35
37
|
xmlns: "http://www.w3.org/2000/svg"
|
|
36
38
|
};
|
|
@@ -38,13 +40,14 @@ var Detail = function Detail(props) {
|
|
|
38
40
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
39
41
|
fillRule: "evenodd",
|
|
40
42
|
clipRule: "evenodd",
|
|
41
|
-
d: "M.293.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414-1.414L5.586 7 .293 1.707a1 1 0 0 1 0-1.
|
|
43
|
+
d: "M.293.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414-1.414L5.586 7 .293 1.707a1 1 0 0 1 0-1.414z",
|
|
42
44
|
fill: "#fff"
|
|
43
45
|
}));
|
|
44
46
|
};
|
|
45
47
|
Detail.defaultProps = {
|
|
46
48
|
width: "8",
|
|
47
49
|
height: "14",
|
|
50
|
+
viewBox: "0 0 8 14",
|
|
48
51
|
fill: "none",
|
|
49
52
|
xmlns: "http://www.w3.org/2000/svg"
|
|
50
53
|
};
|
|
@@ -52,13 +55,14 @@ var ModifyDetail = function ModifyDetail(props) {
|
|
|
52
55
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
53
56
|
fillRule: "evenodd",
|
|
54
57
|
clipRule: "evenodd",
|
|
55
|
-
d: "M12.019 6.
|
|
58
|
+
d: "M12.019 6.679L9.324 3.984l1.948-1.95 2.694 2.695-1.947 1.95zm-6.94 6.946l-2.976.27.264-2.955 5.617-5.617 2.696 2.696-5.6 5.606zM15.405 3.338l-.001-.001L12.665.599c-.741-.74-2.014-.774-2.716-.07L.953 9.527a1.973 1.973 0 0 0-.57 1.214l-.38 4.17a1.002 1.002 0 0 0 1.088 1.086l4.17-.38a1.974 1.974 0 0 0 1.214-.567l8.997-8.997c.728-.73.697-1.948-.068-2.714z",
|
|
56
59
|
fill: "#fff"
|
|
57
60
|
}));
|
|
58
61
|
};
|
|
59
62
|
ModifyDetail.defaultProps = {
|
|
60
63
|
width: "16",
|
|
61
64
|
height: "16",
|
|
65
|
+
viewBox: "0 0 16 16",
|
|
62
66
|
fill: "none",
|
|
63
67
|
xmlns: "http://www.w3.org/2000/svg"
|
|
64
68
|
};
|
|
@@ -10,13 +10,14 @@ var MoodConfuzed = function MoodConfuzed(props) {
|
|
|
10
10
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
11
11
|
fillRule: "evenodd",
|
|
12
12
|
clipRule: "evenodd",
|
|
13
|
-
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24
|
|
13
|
+
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24 8zM4 24C4 12.954 12.954 4 24 4s20 8.954 20 20-8.954 20-20 20S4 35.046 4 24zm12-4a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H30a2 2 0 0 1-2-2zm2.861 10.995a18 18 0 0 0-10.8 2.7 2 2 0 0 1-2.122-3.39 22 22 0 0 1 13.2-3.3 2 2 0 0 1-.278 3.99z",
|
|
14
14
|
fill: "#677489"
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
17
|
MoodConfuzed.defaultProps = {
|
|
18
18
|
width: "48",
|
|
19
19
|
height: "48",
|
|
20
|
+
viewBox: "0 0 48 48",
|
|
20
21
|
fill: "none",
|
|
21
22
|
xmlns: "http://www.w3.org/2000/svg"
|
|
22
23
|
};
|
|
@@ -24,13 +25,14 @@ var MoodEmpty = function MoodEmpty(props) {
|
|
|
24
25
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
25
26
|
fillRule: "evenodd",
|
|
26
27
|
clipRule: "evenodd",
|
|
27
|
-
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24
|
|
28
|
+
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24 8zM4 24C4 12.954 12.954 4 24 4s20 8.954 20 20-8.954 20-20 20S4 35.046 4 24zm12-4a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H30a2 2 0 0 1-2-2zM16 30a2 2 0 0 1 2-2h12a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2z",
|
|
28
29
|
fill: "#677489"
|
|
29
30
|
}));
|
|
30
31
|
};
|
|
31
32
|
MoodEmpty.defaultProps = {
|
|
32
33
|
width: "48",
|
|
33
34
|
height: "48",
|
|
35
|
+
viewBox: "0 0 48 48",
|
|
34
36
|
fill: "none",
|
|
35
37
|
xmlns: "http://www.w3.org/2000/svg"
|
|
36
38
|
};
|
|
@@ -38,13 +40,14 @@ var MoodHappy = function MoodHappy(props) {
|
|
|
38
40
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
39
41
|
fillRule: "evenodd",
|
|
40
42
|
clipRule: "evenodd",
|
|
41
|
-
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24
|
|
43
|
+
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24 8zM4 24C4 12.954 12.954 4 24 4s20 8.954 20 20-8.954 20-20 20S4 35.046 4 24zm12-6a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H30a2 2 0 0 1-2-2zm-13.414 6.586A2 2 0 0 1 16 24h16a2 2 0 0 1 2 2 10 10 0 0 1-20 0 2 2 0 0 1 .586-1.414zM18.343 28a6 6 0 0 0 11.314 0H18.343z",
|
|
42
44
|
fill: "#677489"
|
|
43
45
|
}));
|
|
44
46
|
};
|
|
45
47
|
MoodHappy.defaultProps = {
|
|
46
48
|
width: "48",
|
|
47
49
|
height: "48",
|
|
50
|
+
viewBox: "0 0 48 48",
|
|
48
51
|
fill: "none",
|
|
49
52
|
xmlns: "http://www.w3.org/2000/svg"
|
|
50
53
|
};
|
|
@@ -52,13 +55,14 @@ var MoodSad = function MoodSad(props) {
|
|
|
52
55
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
53
56
|
fillRule: "evenodd",
|
|
54
57
|
clipRule: "evenodd",
|
|
55
|
-
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24
|
|
58
|
+
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24 8zM4 24C4 12.954 12.954 4 24 4s20 8.954 20 20-8.954 20-20 20S4 35.046 4 24zm12-4a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H30a2 2 0 0 1-2-2zm-4 10.4a5 5 0 0 0-3.571 1.5 2 2 0 0 1-2.858-2.8 9 9 0 0 1 12.858 0 2 2 0 0 1-2.858 2.8A5 5 0 0 0 24 30.4z",
|
|
56
59
|
fill: "#677489"
|
|
57
60
|
}));
|
|
58
61
|
};
|
|
59
62
|
MoodSad.defaultProps = {
|
|
60
63
|
width: "48",
|
|
61
64
|
height: "48",
|
|
65
|
+
viewBox: "0 0 48 48",
|
|
62
66
|
fill: "none",
|
|
63
67
|
xmlns: "http://www.w3.org/2000/svg"
|
|
64
68
|
};
|
|
@@ -66,13 +70,14 @@ var MoodSmile = function MoodSmile(props) {
|
|
|
66
70
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
67
71
|
fillRule: "evenodd",
|
|
68
72
|
clipRule: "evenodd",
|
|
69
|
-
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24
|
|
73
|
+
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24 8zM4 24C4 12.954 12.954 4 24 4s20 8.954 20 20-8.954 20-20 20S4 35.046 4 24zm12-4a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H30a2 2 0 0 1-2-2zm-10.4 8.571a2 2 0 0 1 2.829.03 5 5 0 0 0 7.142 0A2 2 0 0 1 30.43 31.4a9 9 0 0 1-12.858 0 2 2 0 0 1 .03-2.829z",
|
|
70
74
|
fill: "#677489"
|
|
71
75
|
}));
|
|
72
76
|
};
|
|
73
77
|
MoodSmile.defaultProps = {
|
|
74
78
|
width: "48",
|
|
75
79
|
height: "48",
|
|
80
|
+
viewBox: "0 0 48 48",
|
|
76
81
|
fill: "none",
|
|
77
82
|
xmlns: "http://www.w3.org/2000/svg"
|
|
78
83
|
};
|
|
@@ -85,13 +90,14 @@ var MoodConfuzedSelected = function MoodConfuzedSelected(props) {
|
|
|
85
90
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
86
91
|
fillRule: "evenodd",
|
|
87
92
|
clipRule: "evenodd",
|
|
88
|
-
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24
|
|
93
|
+
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24 8zM4 24C4 12.954 12.954 4 24 4s20 8.954 20 20-8.954 20-20 20S4 35.046 4 24zm12-4a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H30a2 2 0 0 1-2-2zm2.861 10.995a18 18 0 0 0-10.8 2.7 2 2 0 0 1-2.122-3.39 22 22 0 0 1 13.2-3.3 2 2 0 0 1-.278 3.99z",
|
|
89
94
|
fill: "#E00002"
|
|
90
95
|
}));
|
|
91
96
|
};
|
|
92
97
|
MoodConfuzedSelected.defaultProps = {
|
|
93
98
|
width: "48",
|
|
94
99
|
height: "48",
|
|
100
|
+
viewBox: "0 0 48 48",
|
|
95
101
|
fill: "none",
|
|
96
102
|
xmlns: "http://www.w3.org/2000/svg"
|
|
97
103
|
};
|
|
@@ -104,13 +110,14 @@ var MoodEmptySelected = function MoodEmptySelected(props) {
|
|
|
104
110
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
105
111
|
fillRule: "evenodd",
|
|
106
112
|
clipRule: "evenodd",
|
|
107
|
-
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24
|
|
113
|
+
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24 8zM4 24C4 12.954 12.954 4 24 4s20 8.954 20 20-8.954 20-20 20S4 35.046 4 24zm12-4a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H30a2 2 0 0 1-2-2zM16 30a2 2 0 0 1 2-2h12a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2z",
|
|
108
114
|
fill: "#C29400"
|
|
109
115
|
}));
|
|
110
116
|
};
|
|
111
117
|
MoodEmptySelected.defaultProps = {
|
|
112
118
|
width: "48",
|
|
113
119
|
height: "48",
|
|
120
|
+
viewBox: "0 0 48 48",
|
|
114
121
|
fill: "none",
|
|
115
122
|
xmlns: "http://www.w3.org/2000/svg"
|
|
116
123
|
};
|
|
@@ -123,13 +130,14 @@ var MoodHappySelected = function MoodHappySelected(props) {
|
|
|
123
130
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
124
131
|
fillRule: "evenodd",
|
|
125
132
|
clipRule: "evenodd",
|
|
126
|
-
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24
|
|
133
|
+
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24 8zM4 24C4 12.954 12.954 4 24 4s20 8.954 20 20-8.954 20-20 20S4 35.046 4 24zm12-6a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H30a2 2 0 0 1-2-2zm-13.414 6.586A2 2 0 0 1 16 24h16a2 2 0 0 1 2 2 10 10 0 0 1-20 0 2 2 0 0 1 .586-1.414zM18.343 28a6 6 0 0 0 11.314 0H18.343z",
|
|
127
134
|
fill: "#285D45"
|
|
128
135
|
}));
|
|
129
136
|
};
|
|
130
137
|
MoodHappySelected.defaultProps = {
|
|
131
138
|
width: "48",
|
|
132
139
|
height: "48",
|
|
140
|
+
viewBox: "0 0 48 48",
|
|
133
141
|
fill: "none",
|
|
134
142
|
xmlns: "http://www.w3.org/2000/svg"
|
|
135
143
|
};
|
|
@@ -142,13 +150,14 @@ var MoodSadSelected = function MoodSadSelected(props) {
|
|
|
142
150
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
143
151
|
fillRule: "evenodd",
|
|
144
152
|
clipRule: "evenodd",
|
|
145
|
-
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24
|
|
153
|
+
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24 8zM4 24C4 12.954 12.954 4 24 4s20 8.954 20 20-8.954 20-20 20S4 35.046 4 24zm12-4a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H30a2 2 0 0 1-2-2zm-4 10.4a5 5 0 0 0-3.571 1.5 2 2 0 0 1-2.858-2.8 9 9 0 0 1 12.858 0 2 2 0 0 1-2.858 2.8A5 5 0 0 0 24 30.4z",
|
|
146
154
|
fill: "#EA6001"
|
|
147
155
|
}));
|
|
148
156
|
};
|
|
149
157
|
MoodSadSelected.defaultProps = {
|
|
150
158
|
width: "48",
|
|
151
159
|
height: "48",
|
|
160
|
+
viewBox: "0 0 48 48",
|
|
152
161
|
fill: "none",
|
|
153
162
|
xmlns: "http://www.w3.org/2000/svg"
|
|
154
163
|
};
|
|
@@ -161,13 +170,14 @@ var MoodSmileSelected = function MoodSmileSelected(props) {
|
|
|
161
170
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
162
171
|
fillRule: "evenodd",
|
|
163
172
|
clipRule: "evenodd",
|
|
164
|
-
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24
|
|
173
|
+
d: "M24 8C15.163 8 8 15.163 8 24s7.163 16 16 16 16-7.163 16-16S32.837 8 24 8zM4 24C4 12.954 12.954 4 24 4s20 8.954 20 20-8.954 20-20 20S4 35.046 4 24zm12-4a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h.02a2 2 0 1 1 0 4H30a2 2 0 0 1-2-2zm-10.4 8.571a2 2 0 0 1 2.829.03 5 5 0 0 0 7.142 0A2 2 0 0 1 30.43 31.4a9 9 0 0 1-12.858 0 2 2 0 0 1 .03-2.829z",
|
|
165
174
|
fill: "#04A928"
|
|
166
175
|
}));
|
|
167
176
|
};
|
|
168
177
|
MoodSmileSelected.defaultProps = {
|
|
169
178
|
width: "48",
|
|
170
179
|
height: "48",
|
|
180
|
+
viewBox: "0 0 48 48",
|
|
171
181
|
fill: "none",
|
|
172
182
|
xmlns: "http://www.w3.org/2000/svg"
|
|
173
183
|
};
|
|
@@ -23,6 +23,7 @@ var NavigateBeforeIcon = function NavigateBeforeIcon(props) {
|
|
|
23
23
|
NavigateBeforeIcon.defaultProps = {
|
|
24
24
|
width: "7",
|
|
25
25
|
height: "14",
|
|
26
|
+
viewBox: "0 0 7 14",
|
|
26
27
|
xmlns: "http://www.w3.org/2000/svg"
|
|
27
28
|
};
|
|
28
29
|
var NavigateNextIcon = function NavigateNextIcon(props) {
|
|
@@ -35,30 +36,33 @@ var NavigateNextIcon = function NavigateNextIcon(props) {
|
|
|
35
36
|
NavigateNextIcon.defaultProps = {
|
|
36
37
|
width: "7",
|
|
37
38
|
height: "14",
|
|
39
|
+
viewBox: "0 0 7 14",
|
|
38
40
|
xmlns: "http://www.w3.org/2000/svg"
|
|
39
41
|
};
|
|
40
42
|
var NavigateHeaderBeforeIcon = function NavigateHeaderBeforeIcon(props) {
|
|
41
43
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
42
44
|
fill: "#FFF",
|
|
43
|
-
d: "M5.232.36a1 1 0 0 1 1.536 1.28L2.292 7.01l4.315 5.363a1 1 0 0 1-1.558 1.254l-4.828-6A1 1 0 0 1 .232 6.
|
|
45
|
+
d: "M5.232.36a1 1 0 0 1 1.536 1.28L2.292 7.01l4.315 5.363a1 1 0 0 1-1.558 1.254l-4.828-6A1 1 0 0 1 .232 6.36zm7 0a1 1 0 0 1 1.537 1.28L9.293 7.011l4.315 5.362a1 1 0 0 1-1.56 1.254l-4.828-6a1 1 0 0 1 .012-1.267z",
|
|
44
46
|
fillRule: "evenodd"
|
|
45
47
|
}));
|
|
46
48
|
};
|
|
47
49
|
NavigateHeaderBeforeIcon.defaultProps = {
|
|
48
50
|
width: "14",
|
|
49
51
|
height: "14",
|
|
52
|
+
viewBox: "0 0 14 14",
|
|
50
53
|
xmlns: "http://www.w3.org/2000/svg"
|
|
51
54
|
};
|
|
52
55
|
var NavigateHeaderNextIcon = function NavigateHeaderNextIcon(props) {
|
|
53
56
|
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
54
57
|
fill: "#FFF",
|
|
55
|
-
d: "M7.545.221a1 1 0 0 1 1.406.152l4.828 6a1 1 0 0 1-.01 1.267l-5 6a1 1 0 1 1-1.537-1.28l4.476-5.371-4.316-5.362A1 1 0 0 1 7.545.
|
|
58
|
+
d: "M7.545.221a1 1 0 0 1 1.406.152l4.828 6a1 1 0 0 1-.01 1.267l-5 6a1 1 0 1 1-1.537-1.28l4.476-5.371-4.316-5.362A1 1 0 0 1 7.545.221zm-7 0a1 1 0 0 1 1.406.152l4.828 6a1 1 0 0 1-.01 1.267l-5 6a1 1 0 1 1-1.537-1.28l4.475-5.371L.392 1.627A1 1 0 0 1 .545.221z",
|
|
56
59
|
fillRule: "evenodd"
|
|
57
60
|
}));
|
|
58
61
|
};
|
|
59
62
|
NavigateHeaderNextIcon.defaultProps = {
|
|
60
63
|
width: "14",
|
|
61
64
|
height: "14",
|
|
65
|
+
viewBox: "0 0 14 14",
|
|
62
66
|
xmlns: "http://www.w3.org/2000/svg"
|
|
63
67
|
};
|
|
64
68
|
const Pagination = _ref => {
|
|
@@ -78,7 +78,7 @@ const UTTable = _ref => {
|
|
|
78
78
|
totalRows,
|
|
79
79
|
totalRowsLabel
|
|
80
80
|
} = _ref;
|
|
81
|
-
const initialValidRowsPerPageOption = (0, _utils.getInitialValidRowsPerPage)(externalRowsPerPage, rowsPerPageOptions, data);
|
|
81
|
+
const initialValidRowsPerPageOption = (0, _utils.getInitialValidRowsPerPage)(externalRowsPerPage, rowsPerPageOptions, data, integrationType, totalRows);
|
|
82
82
|
const initialValidPage = (0, _utils.getInitialValidPage)(externalPage, initialValidRowsPerPageOption, data, integrationType);
|
|
83
83
|
const [order, setOrder] = (0, _react.useState)(initialOrder || {});
|
|
84
84
|
const [rows, setRows] = (0, _react.useState)([]);
|
|
@@ -103,8 +103,8 @@ const UTTable = _ref => {
|
|
|
103
103
|
setSelectedRows(selectable ? initialSelectedRows : []);
|
|
104
104
|
setRows((0, _utils.orderRows)(data, order, data, columns));
|
|
105
105
|
if (externalRowsPerPage) setRowsPerPage(initialValidRowsPerPageOption);
|
|
106
|
-
const validPage = data.length / rowsPerPage > page
|
|
107
|
-
if (!validPage) setPage(initialValidPage);
|
|
106
|
+
const validPage = data.length / rowsPerPage > page;
|
|
107
|
+
if (!validPage || integrationType === _constants.INTEGRATION_TYPES.EXTERNAL) setPage(initialValidPage);
|
|
108
108
|
}, [data]);
|
|
109
109
|
const currentRows = (0, _react.useMemo)(() => disablePagination || integrationType === _constants.INTEGRATION_TYPES.EXTERNAL ? rows : (0, _utils.getCurrentRows)(rows, page, rowsPerPage), [page, rowsPerPage, rows]);
|
|
110
110
|
const handleOrder = newOrder => {
|
|
@@ -135,9 +135,9 @@ const createRowStyles = (rowPadding, rowSpacing, headerPadding, isResponsive) =>
|
|
|
135
135
|
exports.createRowStyles = createRowStyles;
|
|
136
136
|
const getSelectableRowIds = (rows, rowKey, disableRowSelection) => (disableRowSelection ? rows.filter(_row => !disableRowSelection(_row)) : rows).map(_row => _row[rowKey]);
|
|
137
137
|
exports.getSelectableRowIds = getSelectableRowIds;
|
|
138
|
-
const getInitialValidRowsPerPage = (externalOption, originalOptions, data) => {
|
|
138
|
+
const getInitialValidRowsPerPage = (externalOption, originalOptions, data, integrationType, totalRows) => {
|
|
139
139
|
if (externalOption === undefined) return originalOptions[0];
|
|
140
|
-
const options = (0, _utils.getPageSizeOptions)(originalOptions, data.length).map(_ref2 => {
|
|
140
|
+
const options = (0, _utils.getPageSizeOptions)(originalOptions, integrationType === _constants.INTEGRATION_TYPES.EXTERNAL ? totalRows : data.length).map(_ref2 => {
|
|
141
141
|
let {
|
|
142
142
|
value
|
|
143
143
|
} = _ref2;
|