@banyan_cloud/roots 1.0.347 → 2.0.0
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/esm/index.d.ts +4 -0
- package/dist/esm/index.js +525 -372
- package/dist/esm/index.js.map +1 -1
- package/package.json +11 -5
- package/{styles → src/styles}/main.scss +9 -9
- package/dist/cjs/index.js +0 -26583
- package/dist/cjs/index.js.map +0 -1
- package/dist/index.js +0 -26411
- /package/{styles → src/styles}/_colors.exports.module.scss +0 -0
- /package/{styles → src/styles}/_colors.scss +0 -0
- /package/{styles → src/styles}/_index.scss +0 -0
- /package/{styles → src/styles}/_responsive.scss +0 -0
- /package/{styles → src/styles}/_utils.scss +0 -0
- /package/{styles → src/styles}/index.js +0 -0
- /package/{styles → src/styles}/main.css +0 -0
- /package/{styles → src/styles}/style-system/ComponentsFormat.stories.mdx +0 -0
- /package/{styles → src/styles}/style-system/Design.stories.mdx +0 -0
- /package/{styles → src/styles}/style-system/Style.stories.mdx +0 -0
package/dist/esm/index.js
CHANGED
|
@@ -25,6 +25,105 @@ import { Chart, ArcElement, Tooltip as Tooltip$1, Legend, Title as Title$1, BarE
|
|
|
25
25
|
import { Pie, Bar, Line } from 'react-chartjs-2';
|
|
26
26
|
import ChartDataLabels from 'chartjs-plugin-datalabels';
|
|
27
27
|
|
|
28
|
+
function _arrayLikeToArray(r, a) {
|
|
29
|
+
(null == a || a > r.length) && (a = r.length);
|
|
30
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
31
|
+
return n;
|
|
32
|
+
}
|
|
33
|
+
function _arrayWithHoles(r) {
|
|
34
|
+
if (Array.isArray(r)) return r;
|
|
35
|
+
}
|
|
36
|
+
function _arrayWithoutHoles(r) {
|
|
37
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
38
|
+
}
|
|
39
|
+
function _classCallCheck(a, n) {
|
|
40
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
41
|
+
}
|
|
42
|
+
function _construct(t, e, r) {
|
|
43
|
+
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
44
|
+
var o = [null];
|
|
45
|
+
o.push.apply(o, e);
|
|
46
|
+
var p = new (t.bind.apply(t, o))();
|
|
47
|
+
return r && _setPrototypeOf(p, r.prototype), p;
|
|
48
|
+
}
|
|
49
|
+
function _defineProperties(e, r) {
|
|
50
|
+
for (var t = 0; t < r.length; t++) {
|
|
51
|
+
var o = r[t];
|
|
52
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function _createClass(e, r, t) {
|
|
56
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
57
|
+
writable: !1
|
|
58
|
+
}), e;
|
|
59
|
+
}
|
|
60
|
+
function _createForOfIteratorHelper(r, e) {
|
|
61
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
62
|
+
if (!t) {
|
|
63
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
64
|
+
t && (r = t);
|
|
65
|
+
var n = 0,
|
|
66
|
+
F = function () {};
|
|
67
|
+
return {
|
|
68
|
+
s: F,
|
|
69
|
+
n: function () {
|
|
70
|
+
return n >= r.length ? {
|
|
71
|
+
done: !0
|
|
72
|
+
} : {
|
|
73
|
+
done: !1,
|
|
74
|
+
value: r[n++]
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
e: function (r) {
|
|
78
|
+
throw r;
|
|
79
|
+
},
|
|
80
|
+
f: F
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
84
|
+
}
|
|
85
|
+
var o,
|
|
86
|
+
a = !0,
|
|
87
|
+
u = !1;
|
|
88
|
+
return {
|
|
89
|
+
s: function () {
|
|
90
|
+
t = t.call(r);
|
|
91
|
+
},
|
|
92
|
+
n: function () {
|
|
93
|
+
var r = t.next();
|
|
94
|
+
return a = r.done, r;
|
|
95
|
+
},
|
|
96
|
+
e: function (r) {
|
|
97
|
+
u = !0, o = r;
|
|
98
|
+
},
|
|
99
|
+
f: function () {
|
|
100
|
+
try {
|
|
101
|
+
a || null == t.return || t.return();
|
|
102
|
+
} finally {
|
|
103
|
+
if (u) throw o;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function _defineProperty(e, r, t) {
|
|
109
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
110
|
+
value: t,
|
|
111
|
+
enumerable: !0,
|
|
112
|
+
configurable: !0,
|
|
113
|
+
writable: !0
|
|
114
|
+
}) : e[r] = t, e;
|
|
115
|
+
}
|
|
116
|
+
function _isNativeReflectConstruct() {
|
|
117
|
+
try {
|
|
118
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
119
|
+
} catch (t) {}
|
|
120
|
+
return (_isNativeReflectConstruct = function () {
|
|
121
|
+
return !!t;
|
|
122
|
+
})();
|
|
123
|
+
}
|
|
124
|
+
function _iterableToArray(r) {
|
|
125
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
126
|
+
}
|
|
28
127
|
function _iterableToArrayLimit(r, l) {
|
|
29
128
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
30
129
|
if (null != t) {
|
|
@@ -52,6 +151,12 @@ function _iterableToArrayLimit(r, l) {
|
|
|
52
151
|
return a;
|
|
53
152
|
}
|
|
54
153
|
}
|
|
154
|
+
function _nonIterableRest() {
|
|
155
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
156
|
+
}
|
|
157
|
+
function _nonIterableSpread() {
|
|
158
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
159
|
+
}
|
|
55
160
|
function ownKeys(e, r) {
|
|
56
161
|
var t = Object.keys(e);
|
|
57
162
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -73,6 +178,37 @@ function _objectSpread2(e) {
|
|
|
73
178
|
}
|
|
74
179
|
return e;
|
|
75
180
|
}
|
|
181
|
+
function _objectWithoutProperties(e, t) {
|
|
182
|
+
if (null == e) return {};
|
|
183
|
+
var o,
|
|
184
|
+
r,
|
|
185
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
186
|
+
if (Object.getOwnPropertySymbols) {
|
|
187
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
188
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
189
|
+
}
|
|
190
|
+
return i;
|
|
191
|
+
}
|
|
192
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
193
|
+
if (null == r) return {};
|
|
194
|
+
var t = {};
|
|
195
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
196
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
197
|
+
t[n] = r[n];
|
|
198
|
+
}
|
|
199
|
+
return t;
|
|
200
|
+
}
|
|
201
|
+
function _setPrototypeOf(t, e) {
|
|
202
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
203
|
+
return t.__proto__ = e, t;
|
|
204
|
+
}, _setPrototypeOf(t, e);
|
|
205
|
+
}
|
|
206
|
+
function _slicedToArray(r, e) {
|
|
207
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
208
|
+
}
|
|
209
|
+
function _toConsumableArray(r) {
|
|
210
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
211
|
+
}
|
|
76
212
|
function _toPrimitive(t, r) {
|
|
77
213
|
if ("object" != typeof t || !t) return t;
|
|
78
214
|
var e = t[Symbol.toPrimitive];
|
|
@@ -85,7 +221,7 @@ function _toPrimitive(t, r) {
|
|
|
85
221
|
}
|
|
86
222
|
function _toPropertyKey(t) {
|
|
87
223
|
var i = _toPrimitive(t, "string");
|
|
88
|
-
return "symbol" == typeof i ? i :
|
|
224
|
+
return "symbol" == typeof i ? i : i + "";
|
|
89
225
|
}
|
|
90
226
|
function _typeof$1(o) {
|
|
91
227
|
"@babel/helpers - typeof";
|
|
@@ -96,186 +232,12 @@ function _typeof$1(o) {
|
|
|
96
232
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
97
233
|
}, _typeof$1(o);
|
|
98
234
|
}
|
|
99
|
-
function
|
|
100
|
-
if (
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
function _defineProperties(target, props) {
|
|
105
|
-
for (var i = 0; i < props.length; i++) {
|
|
106
|
-
var descriptor = props[i];
|
|
107
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
108
|
-
descriptor.configurable = true;
|
|
109
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
110
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
114
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
115
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
116
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
117
|
-
writable: false
|
|
118
|
-
});
|
|
119
|
-
return Constructor;
|
|
120
|
-
}
|
|
121
|
-
function _defineProperty(obj, key, value) {
|
|
122
|
-
key = _toPropertyKey(key);
|
|
123
|
-
if (key in obj) {
|
|
124
|
-
Object.defineProperty(obj, key, {
|
|
125
|
-
value: value,
|
|
126
|
-
enumerable: true,
|
|
127
|
-
configurable: true,
|
|
128
|
-
writable: true
|
|
129
|
-
});
|
|
130
|
-
} else {
|
|
131
|
-
obj[key] = value;
|
|
235
|
+
function _unsupportedIterableToArray(r, a) {
|
|
236
|
+
if (r) {
|
|
237
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
238
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
239
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
132
240
|
}
|
|
133
|
-
return obj;
|
|
134
|
-
}
|
|
135
|
-
function _setPrototypeOf(o, p) {
|
|
136
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
137
|
-
o.__proto__ = p;
|
|
138
|
-
return o;
|
|
139
|
-
};
|
|
140
|
-
return _setPrototypeOf(o, p);
|
|
141
|
-
}
|
|
142
|
-
function _isNativeReflectConstruct() {
|
|
143
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
144
|
-
if (Reflect.construct.sham) return false;
|
|
145
|
-
if (typeof Proxy === "function") return true;
|
|
146
|
-
try {
|
|
147
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
148
|
-
return true;
|
|
149
|
-
} catch (e) {
|
|
150
|
-
return false;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
function _construct(Parent, args, Class) {
|
|
154
|
-
if (_isNativeReflectConstruct()) {
|
|
155
|
-
_construct = Reflect.construct.bind();
|
|
156
|
-
} else {
|
|
157
|
-
_construct = function _construct(Parent, args, Class) {
|
|
158
|
-
var a = [null];
|
|
159
|
-
a.push.apply(a, args);
|
|
160
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
161
|
-
var instance = new Constructor();
|
|
162
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
163
|
-
return instance;
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
return _construct.apply(null, arguments);
|
|
167
|
-
}
|
|
168
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
169
|
-
if (source == null) return {};
|
|
170
|
-
var target = {};
|
|
171
|
-
var sourceKeys = Object.keys(source);
|
|
172
|
-
var key, i;
|
|
173
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
174
|
-
key = sourceKeys[i];
|
|
175
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
176
|
-
target[key] = source[key];
|
|
177
|
-
}
|
|
178
|
-
return target;
|
|
179
|
-
}
|
|
180
|
-
function _objectWithoutProperties(source, excluded) {
|
|
181
|
-
if (source == null) return {};
|
|
182
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
183
|
-
var key, i;
|
|
184
|
-
if (Object.getOwnPropertySymbols) {
|
|
185
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
186
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
187
|
-
key = sourceSymbolKeys[i];
|
|
188
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
189
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
190
|
-
target[key] = source[key];
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
return target;
|
|
194
|
-
}
|
|
195
|
-
function _slicedToArray(arr, i) {
|
|
196
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
197
|
-
}
|
|
198
|
-
function _toConsumableArray(arr) {
|
|
199
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
200
|
-
}
|
|
201
|
-
function _arrayWithoutHoles(arr) {
|
|
202
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
203
|
-
}
|
|
204
|
-
function _arrayWithHoles(arr) {
|
|
205
|
-
if (Array.isArray(arr)) return arr;
|
|
206
|
-
}
|
|
207
|
-
function _iterableToArray(iter) {
|
|
208
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
209
|
-
}
|
|
210
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
211
|
-
if (!o) return;
|
|
212
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
213
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
214
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
215
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
216
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
217
|
-
}
|
|
218
|
-
function _arrayLikeToArray(arr, len) {
|
|
219
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
220
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
221
|
-
return arr2;
|
|
222
|
-
}
|
|
223
|
-
function _nonIterableSpread() {
|
|
224
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
225
|
-
}
|
|
226
|
-
function _nonIterableRest() {
|
|
227
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
228
|
-
}
|
|
229
|
-
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
230
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
231
|
-
if (!it) {
|
|
232
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
233
|
-
if (it) o = it;
|
|
234
|
-
var i = 0;
|
|
235
|
-
var F = function () {};
|
|
236
|
-
return {
|
|
237
|
-
s: F,
|
|
238
|
-
n: function () {
|
|
239
|
-
if (i >= o.length) return {
|
|
240
|
-
done: true
|
|
241
|
-
};
|
|
242
|
-
return {
|
|
243
|
-
done: false,
|
|
244
|
-
value: o[i++]
|
|
245
|
-
};
|
|
246
|
-
},
|
|
247
|
-
e: function (e) {
|
|
248
|
-
throw e;
|
|
249
|
-
},
|
|
250
|
-
f: F
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
254
|
-
}
|
|
255
|
-
var normalCompletion = true,
|
|
256
|
-
didErr = false,
|
|
257
|
-
err;
|
|
258
|
-
return {
|
|
259
|
-
s: function () {
|
|
260
|
-
it = it.call(o);
|
|
261
|
-
},
|
|
262
|
-
n: function () {
|
|
263
|
-
var step = it.next();
|
|
264
|
-
normalCompletion = step.done;
|
|
265
|
-
return step;
|
|
266
|
-
},
|
|
267
|
-
e: function (e) {
|
|
268
|
-
didErr = true;
|
|
269
|
-
err = e;
|
|
270
|
-
},
|
|
271
|
-
f: function () {
|
|
272
|
-
try {
|
|
273
|
-
if (!normalCompletion && it.return != null) it.return();
|
|
274
|
-
} finally {
|
|
275
|
-
if (didErr) throw err;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
241
|
}
|
|
280
242
|
|
|
281
243
|
var propTypesExports = {};
|
|
@@ -4928,7 +4890,7 @@ var sanitizeJSON = function sanitizeJSON() {
|
|
|
4928
4890
|
return acc;
|
|
4929
4891
|
}, {});
|
|
4930
4892
|
};
|
|
4931
|
-
var
|
|
4893
|
+
var _areTwinObjects = function areTwinObjects(obj1, obj2) {
|
|
4932
4894
|
// Check if both are objects and not null
|
|
4933
4895
|
if (_typeof$1(obj1) !== 'object' || obj1 === null || _typeof$1(obj2) !== 'object' || obj2 === null) {
|
|
4934
4896
|
return obj1 === obj2;
|
|
@@ -4944,7 +4906,7 @@ var areTwinObjects = function areTwinObjects(obj1, obj2) {
|
|
|
4944
4906
|
// Check if all keys and values are equal
|
|
4945
4907
|
for (var _i = 0, _keys = keys1; _i < _keys.length; _i++) {
|
|
4946
4908
|
var key = _keys[_i];
|
|
4947
|
-
if (!keys2.includes(key) || !
|
|
4909
|
+
if (!keys2.includes(key) || !_areTwinObjects(obj1[key], obj2[key])) {
|
|
4948
4910
|
return false;
|
|
4949
4911
|
}
|
|
4950
4912
|
}
|
|
@@ -5180,7 +5142,7 @@ var BaseCell = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5180
5142
|
children: component3
|
|
5181
5143
|
})]
|
|
5182
5144
|
}));
|
|
5183
|
-
if (
|
|
5145
|
+
if (/*#__PURE__*/isValidElement(Component)) {
|
|
5184
5146
|
return Component;
|
|
5185
5147
|
}
|
|
5186
5148
|
return null;
|
|
@@ -7628,6 +7590,11 @@ Accordion.propTypes = {
|
|
|
7628
7590
|
onExpand: propTypesExports.func
|
|
7629
7591
|
};
|
|
7630
7592
|
|
|
7593
|
+
/**
|
|
7594
|
+
* Custom positioning reference element.
|
|
7595
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
|
7596
|
+
*/
|
|
7597
|
+
|
|
7631
7598
|
const min = Math.min;
|
|
7632
7599
|
const max = Math.max;
|
|
7633
7600
|
const round = Math.round;
|
|
@@ -7739,12 +7706,21 @@ function getPaddingObject(padding) {
|
|
|
7739
7706
|
};
|
|
7740
7707
|
}
|
|
7741
7708
|
function rectToClientRect(rect) {
|
|
7709
|
+
const {
|
|
7710
|
+
x,
|
|
7711
|
+
y,
|
|
7712
|
+
width,
|
|
7713
|
+
height
|
|
7714
|
+
} = rect;
|
|
7742
7715
|
return {
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7716
|
+
width,
|
|
7717
|
+
height,
|
|
7718
|
+
top: y,
|
|
7719
|
+
left: x,
|
|
7720
|
+
right: x + width,
|
|
7721
|
+
bottom: y + height,
|
|
7722
|
+
x,
|
|
7723
|
+
y
|
|
7748
7724
|
};
|
|
7749
7725
|
}
|
|
7750
7726
|
|
|
@@ -7806,7 +7782,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
7806
7782
|
|
|
7807
7783
|
/**
|
|
7808
7784
|
* Computes the `x` and `y` coordinates that will place the floating element
|
|
7809
|
-
* next to a reference element
|
|
7785
|
+
* next to a given reference element.
|
|
7810
7786
|
*
|
|
7811
7787
|
* This export does not have any `platform` interface logic. You will need to
|
|
7812
7788
|
* write one for the platform you are using Floating UI with.
|
|
@@ -7884,7 +7860,6 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
7884
7860
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
7885
7861
|
}
|
|
7886
7862
|
i = -1;
|
|
7887
|
-
continue;
|
|
7888
7863
|
}
|
|
7889
7864
|
}
|
|
7890
7865
|
return {
|
|
@@ -7934,9 +7909,10 @@ async function detectOverflow(state, options) {
|
|
|
7934
7909
|
strategy
|
|
7935
7910
|
}));
|
|
7936
7911
|
const rect = elementContext === 'floating' ? {
|
|
7937
|
-
...rects.floating,
|
|
7938
7912
|
x,
|
|
7939
|
-
y
|
|
7913
|
+
y,
|
|
7914
|
+
width: rects.floating.width,
|
|
7915
|
+
height: rects.floating.height
|
|
7940
7916
|
} : rects.reference;
|
|
7941
7917
|
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
7942
7918
|
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
@@ -7947,6 +7923,7 @@ async function detectOverflow(state, options) {
|
|
|
7947
7923
|
y: 1
|
|
7948
7924
|
};
|
|
7949
7925
|
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
7926
|
+
elements,
|
|
7950
7927
|
rect,
|
|
7951
7928
|
offsetParent,
|
|
7952
7929
|
strategy
|
|
@@ -7964,7 +7941,7 @@ async function detectOverflow(state, options) {
|
|
|
7964
7941
|
* appears centered to the reference element.
|
|
7965
7942
|
* @see https://floating-ui.com/docs/arrow
|
|
7966
7943
|
*/
|
|
7967
|
-
const arrow$
|
|
7944
|
+
const arrow$2 = options => ({
|
|
7968
7945
|
name: 'arrow',
|
|
7969
7946
|
options,
|
|
7970
7947
|
async fn(state) {
|
|
@@ -8025,7 +8002,7 @@ const arrow$1 = options => ({
|
|
|
8025
8002
|
// to point to nothing for an aligned placement, adjust the offset of the
|
|
8026
8003
|
// floating element itself. To ensure `shift()` continues to take action,
|
|
8027
8004
|
// a single reset is performed when this is true.
|
|
8028
|
-
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center
|
|
8005
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
8029
8006
|
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
|
8030
8007
|
return {
|
|
8031
8008
|
[axis]: coords[axis] + alignmentOffset,
|
|
@@ -8047,7 +8024,7 @@ const arrow$1 = options => ({
|
|
|
8047
8024
|
* clipping boundary. Alternative to `autoPlacement`.
|
|
8048
8025
|
* @see https://floating-ui.com/docs/flip
|
|
8049
8026
|
*/
|
|
8050
|
-
const flip = function (options) {
|
|
8027
|
+
const flip$1 = function (options) {
|
|
8051
8028
|
if (options === void 0) {
|
|
8052
8029
|
options = {};
|
|
8053
8030
|
}
|
|
@@ -8082,10 +8059,12 @@ const flip = function (options) {
|
|
|
8082
8059
|
return {};
|
|
8083
8060
|
}
|
|
8084
8061
|
const side = getSide(placement);
|
|
8062
|
+
const initialSideAxis = getSideAxis(initialPlacement);
|
|
8085
8063
|
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
8086
8064
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
8087
8065
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
8088
|
-
|
|
8066
|
+
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
8067
|
+
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
8089
8068
|
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
8090
8069
|
}
|
|
8091
8070
|
const placements = [initialPlacement, ...fallbackPlacements];
|
|
@@ -8110,16 +8089,21 @@ const flip = function (options) {
|
|
|
8110
8089
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
8111
8090
|
const nextPlacement = placements[nextIndex];
|
|
8112
8091
|
if (nextPlacement) {
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8092
|
+
var _overflowsData$;
|
|
8093
|
+
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
8094
|
+
const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
|
|
8095
|
+
if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
|
|
8096
|
+
// Try next placement and re-run the lifecycle.
|
|
8097
|
+
return {
|
|
8098
|
+
data: {
|
|
8099
|
+
index: nextIndex,
|
|
8100
|
+
overflows: overflowsData
|
|
8101
|
+
},
|
|
8102
|
+
reset: {
|
|
8103
|
+
placement: nextPlacement
|
|
8104
|
+
}
|
|
8105
|
+
};
|
|
8106
|
+
}
|
|
8123
8107
|
}
|
|
8124
8108
|
|
|
8125
8109
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
@@ -8131,8 +8115,17 @@ const flip = function (options) {
|
|
|
8131
8115
|
switch (fallbackStrategy) {
|
|
8132
8116
|
case 'bestFit':
|
|
8133
8117
|
{
|
|
8134
|
-
var _overflowsData$
|
|
8135
|
-
const placement = (_overflowsData$
|
|
8118
|
+
var _overflowsData$filter2;
|
|
8119
|
+
const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
|
|
8120
|
+
if (hasFallbackAxisSideDirection) {
|
|
8121
|
+
const currentSideAxis = getSideAxis(d.placement);
|
|
8122
|
+
return currentSideAxis === initialSideAxis ||
|
|
8123
|
+
// Create a bias to the `y` side axis due to horizontal
|
|
8124
|
+
// reading directions favoring greater width.
|
|
8125
|
+
currentSideAxis === 'y';
|
|
8126
|
+
}
|
|
8127
|
+
return true;
|
|
8128
|
+
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
8136
8129
|
if (placement) {
|
|
8137
8130
|
resetPlacement = placement;
|
|
8138
8131
|
}
|
|
@@ -8158,6 +8151,7 @@ const flip = function (options) {
|
|
|
8158
8151
|
|
|
8159
8152
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
8160
8153
|
// Derivable.
|
|
8154
|
+
|
|
8161
8155
|
async function convertValueToCoords(state, options) {
|
|
8162
8156
|
const {
|
|
8163
8157
|
placement,
|
|
@@ -8182,10 +8176,9 @@ async function convertValueToCoords(state, options) {
|
|
|
8182
8176
|
crossAxis: 0,
|
|
8183
8177
|
alignmentAxis: null
|
|
8184
8178
|
} : {
|
|
8185
|
-
mainAxis: 0,
|
|
8186
|
-
crossAxis: 0,
|
|
8187
|
-
alignmentAxis:
|
|
8188
|
-
...rawValue
|
|
8179
|
+
mainAxis: rawValue.mainAxis || 0,
|
|
8180
|
+
crossAxis: rawValue.crossAxis || 0,
|
|
8181
|
+
alignmentAxis: rawValue.alignmentAxis
|
|
8189
8182
|
};
|
|
8190
8183
|
if (alignment && typeof alignmentAxis === 'number') {
|
|
8191
8184
|
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
@@ -8206,7 +8199,7 @@ async function convertValueToCoords(state, options) {
|
|
|
8206
8199
|
* object may be passed.
|
|
8207
8200
|
* @see https://floating-ui.com/docs/offset
|
|
8208
8201
|
*/
|
|
8209
|
-
const offset = function (options) {
|
|
8202
|
+
const offset$1 = function (options) {
|
|
8210
8203
|
if (options === void 0) {
|
|
8211
8204
|
options = 0;
|
|
8212
8205
|
}
|
|
@@ -8245,7 +8238,7 @@ const offset = function (options) {
|
|
|
8245
8238
|
* keep it in view when it will overflow the clipping boundary.
|
|
8246
8239
|
* @see https://floating-ui.com/docs/shift
|
|
8247
8240
|
*/
|
|
8248
|
-
const shift = function (options) {
|
|
8241
|
+
const shift$1 = function (options) {
|
|
8249
8242
|
if (options === void 0) {
|
|
8250
8243
|
options = {};
|
|
8251
8244
|
}
|
|
@@ -8307,7 +8300,11 @@ const shift = function (options) {
|
|
|
8307
8300
|
...limitedCoords,
|
|
8308
8301
|
data: {
|
|
8309
8302
|
x: limitedCoords.x - x,
|
|
8310
|
-
y: limitedCoords.y - y
|
|
8303
|
+
y: limitedCoords.y - y,
|
|
8304
|
+
enabled: {
|
|
8305
|
+
[mainAxis]: checkMainAxis,
|
|
8306
|
+
[crossAxis]: checkCrossAxis
|
|
8307
|
+
}
|
|
8311
8308
|
}
|
|
8312
8309
|
};
|
|
8313
8310
|
}
|
|
@@ -8320,7 +8317,7 @@ const shift = function (options) {
|
|
|
8320
8317
|
* width of the reference element.
|
|
8321
8318
|
* @see https://floating-ui.com/docs/size
|
|
8322
8319
|
*/
|
|
8323
|
-
const size = function (options) {
|
|
8320
|
+
const size$1 = function (options) {
|
|
8324
8321
|
if (options === void 0) {
|
|
8325
8322
|
options = {};
|
|
8326
8323
|
}
|
|
@@ -8328,6 +8325,7 @@ const size = function (options) {
|
|
|
8328
8325
|
name: 'size',
|
|
8329
8326
|
options,
|
|
8330
8327
|
async fn(state) {
|
|
8328
|
+
var _state$middlewareData, _state$middlewareData2;
|
|
8331
8329
|
const {
|
|
8332
8330
|
placement,
|
|
8333
8331
|
rects,
|
|
@@ -8355,17 +8353,18 @@ const size = function (options) {
|
|
|
8355
8353
|
widthSide = side;
|
|
8356
8354
|
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
|
8357
8355
|
}
|
|
8358
|
-
const
|
|
8359
|
-
const
|
|
8356
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
8357
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
8358
|
+
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
|
8359
|
+
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
|
8360
8360
|
const noShift = !state.middlewareData.shift;
|
|
8361
8361
|
let availableHeight = overflowAvailableHeight;
|
|
8362
8362
|
let availableWidth = overflowAvailableWidth;
|
|
8363
|
-
if (
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
8363
|
+
if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
|
|
8364
|
+
availableWidth = maximumClippingWidth;
|
|
8365
|
+
}
|
|
8366
|
+
if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
|
|
8367
|
+
availableHeight = maximumClippingHeight;
|
|
8369
8368
|
}
|
|
8370
8369
|
if (noShift && !alignment) {
|
|
8371
8370
|
const xMin = max(overflow.left, 0);
|
|
@@ -8396,6 +8395,9 @@ const size = function (options) {
|
|
|
8396
8395
|
};
|
|
8397
8396
|
};
|
|
8398
8397
|
|
|
8398
|
+
function hasWindow() {
|
|
8399
|
+
return typeof window !== 'undefined';
|
|
8400
|
+
}
|
|
8399
8401
|
function getNodeName(node) {
|
|
8400
8402
|
if (isNode(node)) {
|
|
8401
8403
|
return (node.nodeName || '').toLowerCase();
|
|
@@ -8407,24 +8409,32 @@ function getNodeName(node) {
|
|
|
8407
8409
|
}
|
|
8408
8410
|
function getWindow$1(node) {
|
|
8409
8411
|
var _node$ownerDocument;
|
|
8410
|
-
return (node == null
|
|
8412
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
8411
8413
|
}
|
|
8412
8414
|
function getDocumentElement(node) {
|
|
8413
8415
|
var _ref;
|
|
8414
8416
|
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
8415
8417
|
}
|
|
8416
8418
|
function isNode(value) {
|
|
8419
|
+
if (!hasWindow()) {
|
|
8420
|
+
return false;
|
|
8421
|
+
}
|
|
8417
8422
|
return value instanceof Node || value instanceof getWindow$1(value).Node;
|
|
8418
8423
|
}
|
|
8419
8424
|
function isElement$1(value) {
|
|
8425
|
+
if (!hasWindow()) {
|
|
8426
|
+
return false;
|
|
8427
|
+
}
|
|
8420
8428
|
return value instanceof Element || value instanceof getWindow$1(value).Element;
|
|
8421
8429
|
}
|
|
8422
8430
|
function isHTMLElement$1(value) {
|
|
8431
|
+
if (!hasWindow()) {
|
|
8432
|
+
return false;
|
|
8433
|
+
}
|
|
8423
8434
|
return value instanceof HTMLElement || value instanceof getWindow$1(value).HTMLElement;
|
|
8424
8435
|
}
|
|
8425
8436
|
function isShadowRoot(value) {
|
|
8426
|
-
|
|
8427
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
8437
|
+
if (!hasWindow() || typeof ShadowRoot === 'undefined') {
|
|
8428
8438
|
return false;
|
|
8429
8439
|
}
|
|
8430
8440
|
return value instanceof ShadowRoot || value instanceof getWindow$1(value).ShadowRoot;
|
|
@@ -8441,21 +8451,32 @@ function isOverflowElement(element) {
|
|
|
8441
8451
|
function isTableElement(element) {
|
|
8442
8452
|
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
8443
8453
|
}
|
|
8444
|
-
function
|
|
8454
|
+
function isTopLayer(element) {
|
|
8455
|
+
return [':popover-open', ':modal'].some(selector => {
|
|
8456
|
+
try {
|
|
8457
|
+
return element.matches(selector);
|
|
8458
|
+
} catch (e) {
|
|
8459
|
+
return false;
|
|
8460
|
+
}
|
|
8461
|
+
});
|
|
8462
|
+
}
|
|
8463
|
+
function isContainingBlock(elementOrCss) {
|
|
8445
8464
|
const webkit = isWebKit();
|
|
8446
|
-
const css = getComputedStyle$1(
|
|
8465
|
+
const css = isElement$1(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
8447
8466
|
|
|
8448
8467
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
8449
|
-
|
|
8468
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
8469
|
+
return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
8450
8470
|
}
|
|
8451
8471
|
function getContainingBlock(element) {
|
|
8452
8472
|
let currentNode = getParentNode(element);
|
|
8453
8473
|
while (isHTMLElement$1(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
8454
8474
|
if (isContainingBlock(currentNode)) {
|
|
8455
8475
|
return currentNode;
|
|
8456
|
-
} else {
|
|
8457
|
-
|
|
8476
|
+
} else if (isTopLayer(currentNode)) {
|
|
8477
|
+
return null;
|
|
8458
8478
|
}
|
|
8479
|
+
currentNode = getParentNode(currentNode);
|
|
8459
8480
|
}
|
|
8460
8481
|
return null;
|
|
8461
8482
|
}
|
|
@@ -8477,8 +8498,8 @@ function getNodeScroll(element) {
|
|
|
8477
8498
|
};
|
|
8478
8499
|
}
|
|
8479
8500
|
return {
|
|
8480
|
-
scrollLeft: element.
|
|
8481
|
-
scrollTop: element.
|
|
8501
|
+
scrollLeft: element.scrollX,
|
|
8502
|
+
scrollTop: element.scrollY
|
|
8482
8503
|
};
|
|
8483
8504
|
}
|
|
8484
8505
|
function getParentNode(node) {
|
|
@@ -8518,10 +8539,14 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
8518
8539
|
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
8519
8540
|
const win = getWindow$1(scrollableAncestor);
|
|
8520
8541
|
if (isBody) {
|
|
8521
|
-
|
|
8542
|
+
const frameElement = getFrameElement(win);
|
|
8543
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
8522
8544
|
}
|
|
8523
8545
|
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
8524
8546
|
}
|
|
8547
|
+
function getFrameElement(win) {
|
|
8548
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
8549
|
+
}
|
|
8525
8550
|
|
|
8526
8551
|
function getCssDimensions(element) {
|
|
8527
8552
|
const css = getComputedStyle$1(element);
|
|
@@ -8624,8 +8649,9 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
8624
8649
|
if (domElement) {
|
|
8625
8650
|
const win = getWindow$1(domElement);
|
|
8626
8651
|
const offsetWin = offsetParent && isElement$1(offsetParent) ? getWindow$1(offsetParent) : offsetParent;
|
|
8627
|
-
let
|
|
8628
|
-
|
|
8652
|
+
let currentWin = win;
|
|
8653
|
+
let currentIFrame = getFrameElement(currentWin);
|
|
8654
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
8629
8655
|
const iframeScale = getScale(currentIFrame);
|
|
8630
8656
|
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
8631
8657
|
const css = getComputedStyle$1(currentIFrame);
|
|
@@ -8637,7 +8663,8 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
8637
8663
|
height *= iframeScale.y;
|
|
8638
8664
|
x += left;
|
|
8639
8665
|
y += top;
|
|
8640
|
-
|
|
8666
|
+
currentWin = getWindow$1(currentIFrame);
|
|
8667
|
+
currentIFrame = getFrameElement(currentWin);
|
|
8641
8668
|
}
|
|
8642
8669
|
}
|
|
8643
8670
|
return rectToClientRect({
|
|
@@ -8648,15 +8675,42 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
8648
8675
|
});
|
|
8649
8676
|
}
|
|
8650
8677
|
|
|
8678
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
8679
|
+
// incorrect for RTL.
|
|
8680
|
+
function getWindowScrollBarX(element, rect) {
|
|
8681
|
+
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
8682
|
+
if (!rect) {
|
|
8683
|
+
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
8684
|
+
}
|
|
8685
|
+
return rect.left + leftScroll;
|
|
8686
|
+
}
|
|
8687
|
+
|
|
8688
|
+
function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
|
|
8689
|
+
if (ignoreScrollbarX === void 0) {
|
|
8690
|
+
ignoreScrollbarX = false;
|
|
8691
|
+
}
|
|
8692
|
+
const htmlRect = documentElement.getBoundingClientRect();
|
|
8693
|
+
const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 :
|
|
8694
|
+
// RTL <body> scrollbar.
|
|
8695
|
+
getWindowScrollBarX(documentElement, htmlRect));
|
|
8696
|
+
const y = htmlRect.top + scroll.scrollTop;
|
|
8697
|
+
return {
|
|
8698
|
+
x,
|
|
8699
|
+
y
|
|
8700
|
+
};
|
|
8701
|
+
}
|
|
8702
|
+
|
|
8651
8703
|
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
8652
8704
|
let {
|
|
8705
|
+
elements,
|
|
8653
8706
|
rect,
|
|
8654
8707
|
offsetParent,
|
|
8655
8708
|
strategy
|
|
8656
8709
|
} = _ref;
|
|
8657
|
-
const
|
|
8710
|
+
const isFixed = strategy === 'fixed';
|
|
8658
8711
|
const documentElement = getDocumentElement(offsetParent);
|
|
8659
|
-
|
|
8712
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
|
8713
|
+
if (offsetParent === documentElement || topLayer && isFixed) {
|
|
8660
8714
|
return rect;
|
|
8661
8715
|
}
|
|
8662
8716
|
let scroll = {
|
|
@@ -8665,7 +8719,8 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
8665
8719
|
};
|
|
8666
8720
|
let scale = createCoords(1);
|
|
8667
8721
|
const offsets = createCoords(0);
|
|
8668
|
-
|
|
8722
|
+
const isOffsetParentAnElement = isHTMLElement$1(offsetParent);
|
|
8723
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
8669
8724
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
8670
8725
|
scroll = getNodeScroll(offsetParent);
|
|
8671
8726
|
}
|
|
@@ -8676,11 +8731,12 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
8676
8731
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
8677
8732
|
}
|
|
8678
8733
|
}
|
|
8734
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
|
|
8679
8735
|
return {
|
|
8680
8736
|
width: rect.width * scale.x,
|
|
8681
8737
|
height: rect.height * scale.y,
|
|
8682
|
-
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
|
8683
|
-
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
|
8738
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
|
|
8739
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
|
|
8684
8740
|
};
|
|
8685
8741
|
}
|
|
8686
8742
|
|
|
@@ -8688,12 +8744,6 @@ function getClientRects(element) {
|
|
|
8688
8744
|
return Array.from(element.getClientRects());
|
|
8689
8745
|
}
|
|
8690
8746
|
|
|
8691
|
-
function getWindowScrollBarX(element) {
|
|
8692
|
-
// If <html> has a CSS width greater than the viewport, then this will be
|
|
8693
|
-
// incorrect for RTL.
|
|
8694
|
-
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
8695
|
-
}
|
|
8696
|
-
|
|
8697
8747
|
// Gets the entire size of the scrollable document area, even extending outside
|
|
8698
8748
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
8699
8749
|
function getDocumentRect(element) {
|
|
@@ -8768,9 +8818,10 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
|
|
|
8768
8818
|
} else {
|
|
8769
8819
|
const visualOffsets = getVisualOffsets(element);
|
|
8770
8820
|
rect = {
|
|
8771
|
-
...clippingAncestor,
|
|
8772
8821
|
x: clippingAncestor.x - visualOffsets.x,
|
|
8773
|
-
y: clippingAncestor.y - visualOffsets.y
|
|
8822
|
+
y: clippingAncestor.y - visualOffsets.y,
|
|
8823
|
+
width: clippingAncestor.width,
|
|
8824
|
+
height: clippingAncestor.height
|
|
8774
8825
|
};
|
|
8775
8826
|
}
|
|
8776
8827
|
return rectToClientRect(rect);
|
|
@@ -8826,7 +8877,7 @@ function getClippingRect(_ref) {
|
|
|
8826
8877
|
rootBoundary,
|
|
8827
8878
|
strategy
|
|
8828
8879
|
} = _ref;
|
|
8829
|
-
const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
8880
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
8830
8881
|
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
8831
8882
|
const firstClippingAncestor = clippingAncestors[0];
|
|
8832
8883
|
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
@@ -8846,7 +8897,14 @@ function getClippingRect(_ref) {
|
|
|
8846
8897
|
}
|
|
8847
8898
|
|
|
8848
8899
|
function getDimensions(element) {
|
|
8849
|
-
|
|
8900
|
+
const {
|
|
8901
|
+
width,
|
|
8902
|
+
height
|
|
8903
|
+
} = getCssDimensions(element);
|
|
8904
|
+
return {
|
|
8905
|
+
width,
|
|
8906
|
+
height
|
|
8907
|
+
};
|
|
8850
8908
|
}
|
|
8851
8909
|
|
|
8852
8910
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
@@ -8859,6 +8917,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
8859
8917
|
scrollTop: 0
|
|
8860
8918
|
};
|
|
8861
8919
|
const offsets = createCoords(0);
|
|
8920
|
+
|
|
8921
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
8922
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
8923
|
+
function setLeftRTLScrollbarOffset() {
|
|
8924
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
8925
|
+
}
|
|
8862
8926
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
8863
8927
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
8864
8928
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -8868,17 +8932,27 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
8868
8932
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
8869
8933
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
8870
8934
|
} else if (documentElement) {
|
|
8871
|
-
|
|
8935
|
+
setLeftRTLScrollbarOffset();
|
|
8872
8936
|
}
|
|
8873
8937
|
}
|
|
8938
|
+
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
8939
|
+
setLeftRTLScrollbarOffset();
|
|
8940
|
+
}
|
|
8941
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
8942
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
8943
|
+
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
8874
8944
|
return {
|
|
8875
|
-
x
|
|
8876
|
-
y
|
|
8945
|
+
x,
|
|
8946
|
+
y,
|
|
8877
8947
|
width: rect.width,
|
|
8878
8948
|
height: rect.height
|
|
8879
8949
|
};
|
|
8880
8950
|
}
|
|
8881
8951
|
|
|
8952
|
+
function isStaticPositioned(element) {
|
|
8953
|
+
return getComputedStyle$1(element).position === 'static';
|
|
8954
|
+
}
|
|
8955
|
+
|
|
8882
8956
|
function getTrueOffsetParent(element, polyfill) {
|
|
8883
8957
|
if (!isHTMLElement$1(element) || getComputedStyle$1(element).position === 'fixed') {
|
|
8884
8958
|
return null;
|
|
@@ -8886,40 +8960,56 @@ function getTrueOffsetParent(element, polyfill) {
|
|
|
8886
8960
|
if (polyfill) {
|
|
8887
8961
|
return polyfill(element);
|
|
8888
8962
|
}
|
|
8889
|
-
|
|
8963
|
+
let rawOffsetParent = element.offsetParent;
|
|
8964
|
+
|
|
8965
|
+
// Firefox returns the <html> element as the offsetParent if it's non-static,
|
|
8966
|
+
// while Chrome and Safari return the <body> element. The <body> element must
|
|
8967
|
+
// be used to perform the correct calculations even if the <html> element is
|
|
8968
|
+
// non-static.
|
|
8969
|
+
if (getDocumentElement(element) === rawOffsetParent) {
|
|
8970
|
+
rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
|
8971
|
+
}
|
|
8972
|
+
return rawOffsetParent;
|
|
8890
8973
|
}
|
|
8891
8974
|
|
|
8892
8975
|
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
8893
8976
|
// such as table ancestors and cross browser bugs.
|
|
8894
8977
|
function getOffsetParent(element, polyfill) {
|
|
8895
|
-
const
|
|
8978
|
+
const win = getWindow$1(element);
|
|
8979
|
+
if (isTopLayer(element)) {
|
|
8980
|
+
return win;
|
|
8981
|
+
}
|
|
8896
8982
|
if (!isHTMLElement$1(element)) {
|
|
8897
|
-
|
|
8983
|
+
let svgOffsetParent = getParentNode(element);
|
|
8984
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
8985
|
+
if (isElement$1(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
8986
|
+
return svgOffsetParent;
|
|
8987
|
+
}
|
|
8988
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
8989
|
+
}
|
|
8990
|
+
return win;
|
|
8898
8991
|
}
|
|
8899
8992
|
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
8900
|
-
while (offsetParent && isTableElement(offsetParent) &&
|
|
8993
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
8901
8994
|
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
8902
8995
|
}
|
|
8903
|
-
if (offsetParent && (
|
|
8904
|
-
return
|
|
8996
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
8997
|
+
return win;
|
|
8905
8998
|
}
|
|
8906
|
-
return offsetParent || getContainingBlock(element) ||
|
|
8999
|
+
return offsetParent || getContainingBlock(element) || win;
|
|
8907
9000
|
}
|
|
8908
9001
|
|
|
8909
|
-
const getElementRects = async function (
|
|
8910
|
-
let {
|
|
8911
|
-
reference,
|
|
8912
|
-
floating,
|
|
8913
|
-
strategy
|
|
8914
|
-
} = _ref;
|
|
9002
|
+
const getElementRects = async function (data) {
|
|
8915
9003
|
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
8916
9004
|
const getDimensionsFn = this.getDimensions;
|
|
9005
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
8917
9006
|
return {
|
|
8918
|
-
reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),
|
|
9007
|
+
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
8919
9008
|
floating: {
|
|
8920
9009
|
x: 0,
|
|
8921
9010
|
y: 0,
|
|
8922
|
-
|
|
9011
|
+
width: floatingDimensions.width,
|
|
9012
|
+
height: floatingDimensions.height
|
|
8923
9013
|
}
|
|
8924
9014
|
};
|
|
8925
9015
|
};
|
|
@@ -8941,14 +9031,19 @@ const platform = {
|
|
|
8941
9031
|
isRTL
|
|
8942
9032
|
};
|
|
8943
9033
|
|
|
9034
|
+
function rectsAreEqual(a, b) {
|
|
9035
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
9036
|
+
}
|
|
9037
|
+
|
|
8944
9038
|
// https://samthor.au/2021/observing-dom/
|
|
8945
9039
|
function observeMove(element, onMove) {
|
|
8946
9040
|
let io = null;
|
|
8947
9041
|
let timeoutId;
|
|
8948
9042
|
const root = getDocumentElement(element);
|
|
8949
9043
|
function cleanup() {
|
|
9044
|
+
var _io;
|
|
8950
9045
|
clearTimeout(timeoutId);
|
|
8951
|
-
io
|
|
9046
|
+
(_io = io) == null || _io.disconnect();
|
|
8952
9047
|
io = null;
|
|
8953
9048
|
}
|
|
8954
9049
|
function refresh(skip, threshold) {
|
|
@@ -8959,12 +9054,13 @@ function observeMove(element, onMove) {
|
|
|
8959
9054
|
threshold = 1;
|
|
8960
9055
|
}
|
|
8961
9056
|
cleanup();
|
|
9057
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
8962
9058
|
const {
|
|
8963
9059
|
left,
|
|
8964
9060
|
top,
|
|
8965
9061
|
width,
|
|
8966
9062
|
height
|
|
8967
|
-
} =
|
|
9063
|
+
} = elementRectForRootMargin;
|
|
8968
9064
|
if (!skip) {
|
|
8969
9065
|
onMove();
|
|
8970
9066
|
}
|
|
@@ -8988,13 +9084,25 @@ function observeMove(element, onMove) {
|
|
|
8988
9084
|
return refresh();
|
|
8989
9085
|
}
|
|
8990
9086
|
if (!ratio) {
|
|
9087
|
+
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
|
9088
|
+
// to prevent an infinite loop of updates.
|
|
8991
9089
|
timeoutId = setTimeout(() => {
|
|
8992
9090
|
refresh(false, 1e-7);
|
|
8993
|
-
},
|
|
9091
|
+
}, 1000);
|
|
8994
9092
|
} else {
|
|
8995
9093
|
refresh(false, ratio);
|
|
8996
9094
|
}
|
|
8997
9095
|
}
|
|
9096
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
9097
|
+
// It's possible that even though the ratio is reported as 1, the
|
|
9098
|
+
// element is not actually fully within the IntersectionObserver's root
|
|
9099
|
+
// area anymore. This can happen under performance constraints. This may
|
|
9100
|
+
// be a bug in the browser's IntersectionObserver implementation. To
|
|
9101
|
+
// work around this, we compare the element's bounding rect now with
|
|
9102
|
+
// what it was at the time we created the IntersectionObserver. If they
|
|
9103
|
+
// are not equal then the element moved, so we refresh.
|
|
9104
|
+
refresh();
|
|
9105
|
+
}
|
|
8998
9106
|
isFirstUpdate = false;
|
|
8999
9107
|
}
|
|
9000
9108
|
|
|
@@ -9006,7 +9114,7 @@ function observeMove(element, onMove) {
|
|
|
9006
9114
|
// Handle <iframe>s
|
|
9007
9115
|
root: root.ownerDocument
|
|
9008
9116
|
});
|
|
9009
|
-
} catch (
|
|
9117
|
+
} catch (_e) {
|
|
9010
9118
|
io = new IntersectionObserver(handleObserve, options);
|
|
9011
9119
|
}
|
|
9012
9120
|
io.observe(element);
|
|
@@ -9054,7 +9162,8 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
9054
9162
|
resizeObserver.unobserve(floating);
|
|
9055
9163
|
cancelAnimationFrame(reobserveFrame);
|
|
9056
9164
|
reobserveFrame = requestAnimationFrame(() => {
|
|
9057
|
-
|
|
9165
|
+
var _resizeObserver;
|
|
9166
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
9058
9167
|
});
|
|
9059
9168
|
}
|
|
9060
9169
|
update();
|
|
@@ -9071,7 +9180,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
9071
9180
|
}
|
|
9072
9181
|
function frameLoop() {
|
|
9073
9182
|
const nextRefRect = getBoundingClientRect(reference);
|
|
9074
|
-
if (prevRefRect && (
|
|
9183
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
9075
9184
|
update();
|
|
9076
9185
|
}
|
|
9077
9186
|
prevRefRect = nextRefRect;
|
|
@@ -9079,12 +9188,13 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
9079
9188
|
}
|
|
9080
9189
|
update();
|
|
9081
9190
|
return () => {
|
|
9191
|
+
var _resizeObserver2;
|
|
9082
9192
|
ancestors.forEach(ancestor => {
|
|
9083
9193
|
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
9084
9194
|
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
9085
9195
|
});
|
|
9086
|
-
cleanupIo
|
|
9087
|
-
resizeObserver
|
|
9196
|
+
cleanupIo == null || cleanupIo();
|
|
9197
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
9088
9198
|
resizeObserver = null;
|
|
9089
9199
|
if (animationFrame) {
|
|
9090
9200
|
cancelAnimationFrame(frameId);
|
|
@@ -9092,10 +9202,48 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
9092
9202
|
};
|
|
9093
9203
|
}
|
|
9094
9204
|
|
|
9205
|
+
/**
|
|
9206
|
+
* Modifies the placement by translating the floating element along the
|
|
9207
|
+
* specified axes.
|
|
9208
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
9209
|
+
* object may be passed.
|
|
9210
|
+
* @see https://floating-ui.com/docs/offset
|
|
9211
|
+
*/
|
|
9212
|
+
const offset = offset$1;
|
|
9213
|
+
|
|
9214
|
+
/**
|
|
9215
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
9216
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
9217
|
+
* @see https://floating-ui.com/docs/shift
|
|
9218
|
+
*/
|
|
9219
|
+
const shift = shift$1;
|
|
9220
|
+
|
|
9221
|
+
/**
|
|
9222
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
9223
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
9224
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
9225
|
+
* @see https://floating-ui.com/docs/flip
|
|
9226
|
+
*/
|
|
9227
|
+
const flip = flip$1;
|
|
9228
|
+
|
|
9229
|
+
/**
|
|
9230
|
+
* Provides data that allows you to change the size of the floating element —
|
|
9231
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
9232
|
+
* width of the reference element.
|
|
9233
|
+
* @see https://floating-ui.com/docs/size
|
|
9234
|
+
*/
|
|
9235
|
+
const size = size$1;
|
|
9236
|
+
|
|
9237
|
+
/**
|
|
9238
|
+
* Provides data to position an inner element of the floating element so that it
|
|
9239
|
+
* appears centered to the reference element.
|
|
9240
|
+
* @see https://floating-ui.com/docs/arrow
|
|
9241
|
+
*/
|
|
9242
|
+
const arrow$1 = arrow$2;
|
|
9243
|
+
|
|
9095
9244
|
/**
|
|
9096
9245
|
* Computes the `x` and `y` coordinates that will place the floating element
|
|
9097
|
-
* next to a reference element
|
|
9098
|
-
* strategy.
|
|
9246
|
+
* next to a given reference element.
|
|
9099
9247
|
*/
|
|
9100
9248
|
const computePosition = (reference, floating, options) => {
|
|
9101
9249
|
// This caches the expensive `getClippingElementAncestors` function so that
|
|
@@ -9392,21 +9540,26 @@ var applyAttributeToOthers = function (originalTarget, parentNode, markerName, c
|
|
|
9392
9540
|
deep(node);
|
|
9393
9541
|
}
|
|
9394
9542
|
else {
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
|
|
9543
|
+
try {
|
|
9544
|
+
var attr = node.getAttribute(controlAttribute);
|
|
9545
|
+
var alreadyHidden = attr !== null && attr !== 'false';
|
|
9546
|
+
var counterValue = (counterMap.get(node) || 0) + 1;
|
|
9547
|
+
var markerValue = (markerCounter.get(node) || 0) + 1;
|
|
9548
|
+
counterMap.set(node, counterValue);
|
|
9549
|
+
markerCounter.set(node, markerValue);
|
|
9550
|
+
hiddenNodes.push(node);
|
|
9551
|
+
if (counterValue === 1 && alreadyHidden) {
|
|
9552
|
+
uncontrolledNodes.set(node, true);
|
|
9553
|
+
}
|
|
9554
|
+
if (markerValue === 1) {
|
|
9555
|
+
node.setAttribute(markerName, 'true');
|
|
9556
|
+
}
|
|
9557
|
+
if (!alreadyHidden) {
|
|
9558
|
+
node.setAttribute(controlAttribute, 'true');
|
|
9559
|
+
}
|
|
9407
9560
|
}
|
|
9408
|
-
|
|
9409
|
-
|
|
9561
|
+
catch (e) {
|
|
9562
|
+
console.error('aria-hidden: cannot operate on ', node, e);
|
|
9410
9563
|
}
|
|
9411
9564
|
}
|
|
9412
9565
|
});
|
|
@@ -12226,7 +12379,7 @@ var Text = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
12226
12379
|
}),
|
|
12227
12380
|
className: classes(modules_22fa3f10.root, modules_22fa3f10[variant], modules_22fa3f10["".concat(stroke, "-stroke")], className)
|
|
12228
12381
|
}, attrs), children);
|
|
12229
|
-
if (
|
|
12382
|
+
if (/*#__PURE__*/isValidElement(TextDOM)) {
|
|
12230
12383
|
return TextDOM;
|
|
12231
12384
|
}
|
|
12232
12385
|
return null;
|
|
@@ -12802,7 +12955,7 @@ var BaseAreaChart$1 = function BaseAreaChart(props) {
|
|
|
12802
12955
|
};
|
|
12803
12956
|
var generateSeries = function generateSeries() {
|
|
12804
12957
|
return Object.keys(seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData).map(function (objectData, index) {
|
|
12805
|
-
var _Object$keys$index, _Object$keys, _seriesData$chartData4, _seriesOption$index, _seriesOption$index$c, _seriesOption$index2, _seriesOption$index$c2, _seriesOption$index3, _seriesOption$index$c3, _seriesOption$index4, _seriesOptionObject$l, _seriesOption$index$l, _seriesOption$index5, _seriesOptionObject$l2, _seriesOption$index$l2, _seriesOption$index6, _seriesOption$index7, _seriesOption$index$l3, _seriesOption$index8, _seriesOption$index$l4, _seriesOption$index9, _seriesOption$index$l5, _seriesOption$
|
|
12958
|
+
var _Object$keys$index, _Object$keys, _seriesData$chartData4, _seriesOption$index, _seriesOption$index$c, _seriesOption$index2, _seriesOption$index$c2, _seriesOption$index3, _seriesOption$index$c3, _seriesOption$index4, _seriesOptionObject$l, _seriesOption$index$l, _seriesOption$index5, _seriesOptionObject$l2, _seriesOption$index$l2, _seriesOption$index6, _seriesOption$index7, _seriesOption$index$l3, _seriesOption$index8, _seriesOption$index$l4, _seriesOption$index9, _seriesOption$index$l5, _seriesOption$index0, _seriesOptionObject$a, _seriesOption$index$a, _seriesOption$index1, _seriesOption$index10, _seriesOption$index$a2, _seriesOption$index11, _seriesOptionObject$e, _seriesOption$index$e, _seriesOption$index12, _Object$values$index, _Object$values, _seriesData$chartData5;
|
|
12806
12959
|
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, seriesOptionObject), seriesOption[index]), {}, {
|
|
12807
12960
|
name: (_Object$keys$index = (_Object$keys = Object.keys((_seriesData$chartData4 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData4 !== void 0 ? _seriesData$chartData4 : {})) === null || _Object$keys === void 0 ? void 0 : _Object$keys[index]) !== null && _Object$keys$index !== void 0 ? _Object$keys$index : ''
|
|
12808
12961
|
}, ((_seriesOption$index = seriesOption[index]) === null || _seriesOption$index === void 0 ? void 0 : _seriesOption$index.color) && {
|
|
@@ -12810,12 +12963,12 @@ var BaseAreaChart$1 = function BaseAreaChart(props) {
|
|
|
12810
12963
|
}), {}, {
|
|
12811
12964
|
label: _objectSpread2(_objectSpread2({}, (_seriesOptionObject$l = seriesOptionObject === null || seriesOptionObject === void 0 ? void 0 : seriesOptionObject.label) !== null && _seriesOptionObject$l !== void 0 ? _seriesOptionObject$l : {}), (_seriesOption$index$l = (_seriesOption$index5 = seriesOption[index]) === null || _seriesOption$index5 === void 0 ? void 0 : _seriesOption$index5.label) !== null && _seriesOption$index$l !== void 0 ? _seriesOption$index$l : {}),
|
|
12812
12965
|
lineStyle: _objectSpread2(_objectSpread2(_objectSpread2({}, (_seriesOptionObject$l2 = seriesOptionObject === null || seriesOptionObject === void 0 ? void 0 : seriesOptionObject.lineStyle) !== null && _seriesOptionObject$l2 !== void 0 ? _seriesOptionObject$l2 : {}), (_seriesOption$index$l2 = (_seriesOption$index6 = seriesOption[index]) === null || _seriesOption$index6 === void 0 ? void 0 : _seriesOption$index6.lineStyle) !== null && _seriesOption$index$l2 !== void 0 ? _seriesOption$index$l2 : {}), ((_seriesOption$index7 = seriesOption[index]) === null || _seriesOption$index7 === void 0 || (_seriesOption$index7 = _seriesOption$index7.lineStyle) === null || _seriesOption$index7 === void 0 ? void 0 : _seriesOption$index7.color) && {
|
|
12813
|
-
color: typeof ((_seriesOption$index$l3 = (_seriesOption$index8 = seriesOption[index]) === null || _seriesOption$index8 === void 0 || (_seriesOption$index8 = _seriesOption$index8.lineStyle) === null || _seriesOption$index8 === void 0 ? void 0 : _seriesOption$index8.color) !== null && _seriesOption$index$l3 !== void 0 ? _seriesOption$index$l3 : {}) !== 'string' ? _construct(echarts.graphic.LinearGradient, _toConsumableArray((_seriesOption$index$l4 = (_seriesOption$index9 = seriesOption[index]) === null || _seriesOption$index9 === void 0 || (_seriesOption$index9 = _seriesOption$index9.lineStyle) === null || _seriesOption$index9 === void 0 ? void 0 : _seriesOption$index9.color) !== null && _seriesOption$index$l4 !== void 0 ? _seriesOption$index$l4 : {})) : (_seriesOption$index$l5 = (_seriesOption$
|
|
12966
|
+
color: typeof ((_seriesOption$index$l3 = (_seriesOption$index8 = seriesOption[index]) === null || _seriesOption$index8 === void 0 || (_seriesOption$index8 = _seriesOption$index8.lineStyle) === null || _seriesOption$index8 === void 0 ? void 0 : _seriesOption$index8.color) !== null && _seriesOption$index$l3 !== void 0 ? _seriesOption$index$l3 : {}) !== 'string' ? _construct(echarts.graphic.LinearGradient, _toConsumableArray((_seriesOption$index$l4 = (_seriesOption$index9 = seriesOption[index]) === null || _seriesOption$index9 === void 0 || (_seriesOption$index9 = _seriesOption$index9.lineStyle) === null || _seriesOption$index9 === void 0 ? void 0 : _seriesOption$index9.color) !== null && _seriesOption$index$l4 !== void 0 ? _seriesOption$index$l4 : {})) : (_seriesOption$index$l5 = (_seriesOption$index0 = seriesOption[index]) === null || _seriesOption$index0 === void 0 || (_seriesOption$index0 = _seriesOption$index0.lineStyle) === null || _seriesOption$index0 === void 0 ? void 0 : _seriesOption$index0.color) !== null && _seriesOption$index$l5 !== void 0 ? _seriesOption$index$l5 : {}
|
|
12814
12967
|
}),
|
|
12815
|
-
areaStyle: _objectSpread2(_objectSpread2(_objectSpread2({}, (_seriesOptionObject$a = seriesOptionObject === null || seriesOptionObject === void 0 ? void 0 : seriesOptionObject.areaStyle) !== null && _seriesOptionObject$a !== void 0 ? _seriesOptionObject$a : {}), (_seriesOption$index$a = (_seriesOption$
|
|
12816
|
-
color: (_seriesOption$index$a2 = (_seriesOption$
|
|
12968
|
+
areaStyle: _objectSpread2(_objectSpread2(_objectSpread2({}, (_seriesOptionObject$a = seriesOptionObject === null || seriesOptionObject === void 0 ? void 0 : seriesOptionObject.areaStyle) !== null && _seriesOptionObject$a !== void 0 ? _seriesOptionObject$a : {}), (_seriesOption$index$a = (_seriesOption$index1 = seriesOption[index]) === null || _seriesOption$index1 === void 0 ? void 0 : _seriesOption$index1.areaStyle) !== null && _seriesOption$index$a !== void 0 ? _seriesOption$index$a : {}), ((_seriesOption$index10 = seriesOption[index]) === null || _seriesOption$index10 === void 0 || (_seriesOption$index10 = _seriesOption$index10.areaStyle) === null || _seriesOption$index10 === void 0 ? void 0 : _seriesOption$index10.color) && {
|
|
12969
|
+
color: (_seriesOption$index$a2 = (_seriesOption$index11 = seriesOption[index]) === null || _seriesOption$index11 === void 0 || (_seriesOption$index11 = _seriesOption$index11.areaStyle) === null || _seriesOption$index11 === void 0 ? void 0 : _seriesOption$index11.color) !== null && _seriesOption$index$a2 !== void 0 ? _seriesOption$index$a2 : {}
|
|
12817
12970
|
}),
|
|
12818
|
-
emphasis: _objectSpread2(_objectSpread2({}, (_seriesOptionObject$e = seriesOptionObject === null || seriesOptionObject === void 0 ? void 0 : seriesOptionObject.emphasis) !== null && _seriesOptionObject$e !== void 0 ? _seriesOptionObject$e : {}), (_seriesOption$index$e = (_seriesOption$
|
|
12971
|
+
emphasis: _objectSpread2(_objectSpread2({}, (_seriesOptionObject$e = seriesOptionObject === null || seriesOptionObject === void 0 ? void 0 : seriesOptionObject.emphasis) !== null && _seriesOptionObject$e !== void 0 ? _seriesOptionObject$e : {}), (_seriesOption$index$e = (_seriesOption$index12 = seriesOption[index]) === null || _seriesOption$index12 === void 0 ? void 0 : _seriesOption$index12.emphasis) !== null && _seriesOption$index$e !== void 0 ? _seriesOption$index$e : {}),
|
|
12819
12972
|
data: (_Object$values$index = (_Object$values = Object.values((_seriesData$chartData5 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData5 !== void 0 ? _seriesData$chartData5 : {})) === null || _Object$values === void 0 ? void 0 : _Object$values[index]) !== null && _Object$values$index !== void 0 ? _Object$values$index : ''
|
|
12820
12973
|
});
|
|
12821
12974
|
});
|
|
@@ -13019,7 +13172,7 @@ var determineGradient$2 = function determineGradient(seriesData, objectData, ind
|
|
|
13019
13172
|
return '';
|
|
13020
13173
|
};
|
|
13021
13174
|
var CapsuleChart = function CapsuleChart(props) {
|
|
13022
|
-
var _Object$keys, _seriesData$chartData2, _seriesData$metaData$, _seriesData$metaData, _seriesData$chartData4, _seriesData$
|
|
13175
|
+
var _Object$keys, _seriesData$chartData2, _seriesData$metaData$, _seriesData$metaData, _seriesData$chartData4, _seriesData$chartData18;
|
|
13023
13176
|
var _props$title = props.title,
|
|
13024
13177
|
title = _props$title === void 0 ? '' : _props$title,
|
|
13025
13178
|
_props$gridContainLab = props.gridContainLabel,
|
|
@@ -13164,36 +13317,36 @@ var CapsuleChart = function CapsuleChart(props) {
|
|
|
13164
13317
|
})
|
|
13165
13318
|
};
|
|
13166
13319
|
var getChartValue = function getChartValue(key, index) {
|
|
13167
|
-
var _seriesData$chartData7, _seriesData$chartData8, _seriesData$chartData9, _seriesData$
|
|
13168
|
-
return index ? 0 - (((_seriesData$chartData7 = seriesData === null || seriesData === void 0 || (_seriesData$chartData8 = seriesData.chartData) === null || _seriesData$chartData8 === void 0 || (_seriesData$chartData8 = _seriesData$chartData8[key]) === null || _seriesData$chartData8 === void 0 ? void 0 : _seriesData$chartData8["x".concat(index + 1)]) !== null && _seriesData$chartData7 !== void 0 ? _seriesData$chartData7 : 0) === 0 ? 0.004 : (_seriesData$chartData9 = seriesData === null || seriesData === void 0 || (_seriesData$
|
|
13320
|
+
var _seriesData$chartData7, _seriesData$chartData8, _seriesData$chartData9, _seriesData$chartData0, _seriesData$chartData1, _seriesData$chartData10, _seriesData$chartData11, _seriesData$chartData12;
|
|
13321
|
+
return index ? 0 - (((_seriesData$chartData7 = seriesData === null || seriesData === void 0 || (_seriesData$chartData8 = seriesData.chartData) === null || _seriesData$chartData8 === void 0 || (_seriesData$chartData8 = _seriesData$chartData8[key]) === null || _seriesData$chartData8 === void 0 ? void 0 : _seriesData$chartData8["x".concat(index + 1)]) !== null && _seriesData$chartData7 !== void 0 ? _seriesData$chartData7 : 0) === 0 ? 0.004 : (_seriesData$chartData9 = seriesData === null || seriesData === void 0 || (_seriesData$chartData0 = seriesData.chartData) === null || _seriesData$chartData0 === void 0 || (_seriesData$chartData0 = _seriesData$chartData0[key]) === null || _seriesData$chartData0 === void 0 ? void 0 : _seriesData$chartData0["x".concat(index + 1)]) !== null && _seriesData$chartData9 !== void 0 ? _seriesData$chartData9 : 0) : ((_seriesData$chartData1 = seriesData === null || seriesData === void 0 || (_seriesData$chartData10 = seriesData.chartData) === null || _seriesData$chartData10 === void 0 || (_seriesData$chartData10 = _seriesData$chartData10[key]) === null || _seriesData$chartData10 === void 0 ? void 0 : _seriesData$chartData10["x".concat(index + 1)]) !== null && _seriesData$chartData1 !== void 0 ? _seriesData$chartData1 : 0) === 0 ? 0.004 : (_seriesData$chartData11 = seriesData === null || seriesData === void 0 || (_seriesData$chartData12 = seriesData.chartData) === null || _seriesData$chartData12 === void 0 || (_seriesData$chartData12 = _seriesData$chartData12[key]) === null || _seriesData$chartData12 === void 0 ? void 0 : _seriesData$chartData12["x".concat(index + 1)]) !== null && _seriesData$chartData11 !== void 0 ? _seriesData$chartData11 : 0;
|
|
13169
13322
|
};
|
|
13170
13323
|
var generateSeries = function generateSeries() {
|
|
13171
|
-
var _Object$keys2, _seriesData$
|
|
13172
|
-
var minHeight = (_Object$keys2 = Object.keys((_seriesData$
|
|
13324
|
+
var _Object$keys2, _seriesData$chartData13;
|
|
13325
|
+
var minHeight = (_Object$keys2 = Object.keys((_seriesData$chartData13 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData13 !== void 0 ? _seriesData$chartData13 : 0)) !== null && _Object$keys2 !== void 0 && _Object$keys2.some(function (obj1) {
|
|
13173
13326
|
return seriesOption.some(function (obj, index) {
|
|
13174
|
-
var _seriesData$
|
|
13175
|
-
return seriesData === null || seriesData === void 0 || (_seriesData$
|
|
13327
|
+
var _seriesData$chartData14;
|
|
13328
|
+
return seriesData === null || seriesData === void 0 || (_seriesData$chartData14 = seriesData.chartData) === null || _seriesData$chartData14 === void 0 || (_seriesData$chartData14 = _seriesData$chartData14[obj1]) === null || _seriesData$chartData14 === void 0 ? void 0 : _seriesData$chartData14["x".concat(index + 1)];
|
|
13176
13329
|
});
|
|
13177
13330
|
}) ? 0.004 : 0;
|
|
13178
13331
|
return seriesOption.map(function (objectData, index) {
|
|
13179
|
-
var _seriesOptionObject$l, _objectData$label, _seriesData$
|
|
13332
|
+
var _seriesOptionObject$l, _objectData$label, _seriesData$chartData15;
|
|
13180
13333
|
return _objectSpread2(_objectSpread2(_objectSpread2({}, seriesOptionObject), objectData), {}, {
|
|
13181
13334
|
label: _objectSpread2(_objectSpread2({}, (_seriesOptionObject$l = seriesOptionObject === null || seriesOptionObject === void 0 ? void 0 : seriesOptionObject.label) !== null && _seriesOptionObject$l !== void 0 ? _seriesOptionObject$l : {}), (_objectData$label = objectData === null || objectData === void 0 ? void 0 : objectData.label) !== null && _objectData$label !== void 0 ? _objectData$label : {}),
|
|
13182
13335
|
name: seriesName(index),
|
|
13183
|
-
data: Object.keys((_seriesData$
|
|
13336
|
+
data: Object.keys((_seriesData$chartData15 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData15 !== void 0 ? _seriesData$chartData15 : {}).map(function (key, subIndex) {
|
|
13184
13337
|
var _objectData$color4, _seriesOption$subInde, _seriesOption$subInde2;
|
|
13185
13338
|
var check = true;
|
|
13186
13339
|
if (stackCount <= 1) {
|
|
13187
13340
|
check = seriesOption.some(function (obj, checkIndex) {
|
|
13188
|
-
var _seriesData$
|
|
13189
|
-
return seriesData === null || seriesData === void 0 || (_seriesData$
|
|
13341
|
+
var _seriesData$chartData16;
|
|
13342
|
+
return seriesData === null || seriesData === void 0 || (_seriesData$chartData16 = seriesData.chartData) === null || _seriesData$chartData16 === void 0 || (_seriesData$chartData16 = _seriesData$chartData16[key]) === null || _seriesData$chartData16 === void 0 ? void 0 : _seriesData$chartData16["x".concat(checkIndex + 1)];
|
|
13190
13343
|
});
|
|
13191
13344
|
} else {
|
|
13192
13345
|
var stackCal = seriesOption[index].stack;
|
|
13193
13346
|
check = seriesOption.some(function (series, checkNewIndex) {
|
|
13194
13347
|
if (series.stack === stackCal) {
|
|
13195
|
-
var _seriesData$
|
|
13196
|
-
return seriesData === null || seriesData === void 0 || (_seriesData$
|
|
13348
|
+
var _seriesData$chartData17;
|
|
13349
|
+
return seriesData === null || seriesData === void 0 || (_seriesData$chartData17 = seriesData.chartData) === null || _seriesData$chartData17 === void 0 || (_seriesData$chartData17 = _seriesData$chartData17[key]) === null || _seriesData$chartData17 === void 0 ? void 0 : _seriesData$chartData17["x".concat(checkNewIndex + 1)];
|
|
13197
13350
|
}
|
|
13198
13351
|
return false;
|
|
13199
13352
|
});
|
|
@@ -13228,7 +13381,7 @@ var CapsuleChart = function CapsuleChart(props) {
|
|
|
13228
13381
|
containLabel: gridContainLabel
|
|
13229
13382
|
}, gridOptions),
|
|
13230
13383
|
xAxis: _objectSpread2({
|
|
13231
|
-
data: Object.keys((_seriesData$
|
|
13384
|
+
data: Object.keys((_seriesData$chartData18 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData18 !== void 0 ? _seriesData$chartData18 : {}),
|
|
13232
13385
|
show: xAxisShow,
|
|
13233
13386
|
type: 'category',
|
|
13234
13387
|
axisTick: _objectSpread2({
|
|
@@ -13616,7 +13769,7 @@ var ChartSkeleton$6 = function ChartSkeleton(_ref) {
|
|
|
13616
13769
|
|
|
13617
13770
|
echarts.use([TitleComponent, TooltipComponent, GridComponent, DatasetComponent, BarChart, CanvasRenderer]);
|
|
13618
13771
|
var BaseHorizontalBarChart = function BaseHorizontalBarChart(props) {
|
|
13619
|
-
var _seriesOption$length, _sortedSeriesData$met, _sortedSeriesData, _seriesData$metaData$, _seriesData$metaData, _sortedSeriesData$cha, _sortedSeriesData2, _seriesData$chartData, _seriesData$
|
|
13772
|
+
var _seriesOption$length, _sortedSeriesData$met, _sortedSeriesData, _seriesData$metaData$, _seriesData$metaData, _sortedSeriesData$cha, _sortedSeriesData2, _seriesData$chartData, _seriesData$chartData10;
|
|
13620
13773
|
var loading = props.loading,
|
|
13621
13774
|
title = props.title,
|
|
13622
13775
|
titleOptions = props.titleOptions,
|
|
@@ -13731,14 +13884,14 @@ var BaseHorizontalBarChart = function BaseHorizontalBarChart(props) {
|
|
|
13731
13884
|
tooltip: _objectSpread2({}, (_seriesOption$subInde = (_seriesOption$subInde2 = seriesOption[subIndex]) === null || _seriesOption$subInde2 === void 0 ? void 0 : _seriesOption$subInde2.tooltip) !== null && _seriesOption$subInde !== void 0 ? _seriesOption$subInde : {})
|
|
13732
13885
|
};
|
|
13733
13886
|
}))) : Object.keys((_sortedSeriesData$cha5 = (_sortedSeriesData6 = sortedSeriesData) === null || _sortedSeriesData6 === void 0 ? void 0 : _sortedSeriesData6.chartData) !== null && _sortedSeriesData$cha5 !== void 0 ? _sortedSeriesData$cha5 : {}).map(function (key, subIndex) {
|
|
13734
|
-
var _sortedSeriesData$cha6, _sortedSeriesData7, _sortedSeriesData$cha7, _sortedSeriesData8, _ref6, _objectData$color4, _objectData$barColor$3, _objectData$barColor3, _objectData$color5, _objectData$barColor$4, _objectData$barColor4, _objectData$color6, _sortedSeriesData$cha8, _sortedSeriesData9, _sortedSeriesData$cha9,
|
|
13887
|
+
var _sortedSeriesData$cha6, _sortedSeriesData7, _sortedSeriesData$cha7, _sortedSeriesData8, _ref6, _objectData$color4, _objectData$barColor$3, _objectData$barColor3, _objectData$color5, _objectData$barColor$4, _objectData$barColor4, _objectData$color6, _sortedSeriesData$cha8, _sortedSeriesData9, _sortedSeriesData$cha9, _sortedSeriesData0, _seriesOption$subInde3, _seriesOption$subInde4;
|
|
13735
13888
|
return {
|
|
13736
13889
|
value: minBarHeight ? calcHeight((_sortedSeriesData$cha6 = (_sortedSeriesData7 = sortedSeriesData) === null || _sortedSeriesData7 === void 0 || (_sortedSeriesData7 = _sortedSeriesData7.chartData) === null || _sortedSeriesData7 === void 0 || (_sortedSeriesData7 = _sortedSeriesData7[key]) === null || _sortedSeriesData7 === void 0 ? void 0 : _sortedSeriesData7["x".concat(index + 1)]) !== null && _sortedSeriesData$cha6 !== void 0 ? _sortedSeriesData$cha6 : 0) : (_sortedSeriesData$cha7 = (_sortedSeriesData8 = sortedSeriesData) === null || _sortedSeriesData8 === void 0 || (_sortedSeriesData8 = _sortedSeriesData8.chartData) === null || _sortedSeriesData8 === void 0 || (_sortedSeriesData8 = _sortedSeriesData8[key]) === null || _sortedSeriesData8 === void 0 ? void 0 : _sortedSeriesData8["x".concat(index + 1)]) !== null && _sortedSeriesData$cha7 !== void 0 ? _sortedSeriesData$cha7 : 0,
|
|
13737
13890
|
itemStyle: {
|
|
13738
13891
|
color: typeof ((_ref6 = (_objectData$color4 = objectData === null || objectData === void 0 ? void 0 : objectData.color) !== null && _objectData$color4 !== void 0 ? _objectData$color4 : '') !== null && _ref6 !== void 0 ? _ref6 : {}) !== 'string' ? _construct(echarts.graphic.LinearGradient, _toConsumableArray(((_objectData$barColor$3 = objectData === null || objectData === void 0 || (_objectData$barColor3 = objectData.barColor) === null || _objectData$barColor3 === void 0 ? void 0 : _objectData$barColor3[subIndex]) !== null && _objectData$barColor$3 !== void 0 ? _objectData$barColor$3 : '') || ((_objectData$color5 = objectData === null || objectData === void 0 ? void 0 : objectData.color) !== null && _objectData$color5 !== void 0 ? _objectData$color5 : ''))) : ((_objectData$barColor$4 = objectData === null || objectData === void 0 || (_objectData$barColor4 = objectData.barColor) === null || _objectData$barColor4 === void 0 ? void 0 : _objectData$barColor4[subIndex]) !== null && _objectData$barColor$4 !== void 0 ? _objectData$barColor$4 : '') || ((_objectData$color6 = objectData === null || objectData === void 0 ? void 0 : objectData.color) !== null && _objectData$color6 !== void 0 ? _objectData$color6 : ''),
|
|
13739
13892
|
borderRadius:
|
|
13740
13893
|
// eslint-disable-next-line no-nested-ternary
|
|
13741
|
-
index === 0 ? ((_sortedSeriesData$cha8 = (_sortedSeriesData9 = sortedSeriesData) === null || _sortedSeriesData9 === void 0 || (_sortedSeriesData9 = _sortedSeriesData9.chartData) === null || _sortedSeriesData9 === void 0 || (_sortedSeriesData9 = _sortedSeriesData9[key]) === null || _sortedSeriesData9 === void 0 ? void 0 : _sortedSeriesData9["x".concat(index + 2)]) !== null && _sortedSeriesData$cha8 !== void 0 ? _sortedSeriesData$cha8 : 0) === 0 ? [5, 5, 5, 5] : [5, 0, 0, 5] : ((_sortedSeriesData$cha9 = (
|
|
13894
|
+
index === 0 ? ((_sortedSeriesData$cha8 = (_sortedSeriesData9 = sortedSeriesData) === null || _sortedSeriesData9 === void 0 || (_sortedSeriesData9 = _sortedSeriesData9.chartData) === null || _sortedSeriesData9 === void 0 || (_sortedSeriesData9 = _sortedSeriesData9[key]) === null || _sortedSeriesData9 === void 0 ? void 0 : _sortedSeriesData9["x".concat(index + 2)]) !== null && _sortedSeriesData$cha8 !== void 0 ? _sortedSeriesData$cha8 : 0) === 0 ? [5, 5, 5, 5] : [5, 0, 0, 5] : ((_sortedSeriesData$cha9 = (_sortedSeriesData0 = sortedSeriesData) === null || _sortedSeriesData0 === void 0 || (_sortedSeriesData0 = _sortedSeriesData0.chartData) === null || _sortedSeriesData0 === void 0 || (_sortedSeriesData0 = _sortedSeriesData0[key]) === null || _sortedSeriesData0 === void 0 ? void 0 : _sortedSeriesData0["x".concat(index)]) !== null && _sortedSeriesData$cha9 !== void 0 ? _sortedSeriesData$cha9 : 0) === 0 ? [5, 5, 5, 5] : [0, 5, 5, 0]
|
|
13742
13895
|
},
|
|
13743
13896
|
tooltip: _objectSpread2({}, (_seriesOption$subInde3 = (_seriesOption$subInde4 = seriesOption[subIndex]) === null || _seriesOption$subInde4 === void 0 ? void 0 : _seriesOption$subInde4.tooltip) !== null && _seriesOption$subInde3 !== void 0 ? _seriesOption$subInde3 : {})
|
|
13744
13897
|
};
|
|
@@ -13759,11 +13912,11 @@ var BaseHorizontalBarChart = function BaseHorizontalBarChart(props) {
|
|
|
13759
13912
|
tooltip: _objectSpread2({}, (_seriesOption$subInde5 = (_seriesOption$subInde6 = seriesOption[subIndex]) === null || _seriesOption$subInde6 === void 0 ? void 0 : _seriesOption$subInde6.tooltip) !== null && _seriesOption$subInde5 !== void 0 ? _seriesOption$subInde5 : {})
|
|
13760
13913
|
};
|
|
13761
13914
|
}))) : Object.keys((_seriesData$chartData7 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData7 !== void 0 ? _seriesData$chartData7 : {}).map(function (key, subIndex) {
|
|
13762
|
-
var _seriesData$chartData8, _seriesData$chartData9, _seriesData$
|
|
13915
|
+
var _seriesData$chartData8, _seriesData$chartData9, _seriesData$chartData0, _seriesData$chartData1, _ref8, _objectData$color0, _objectData$barColor$7, _objectData$barColor7, _objectData$color1, _objectData$barColor$8, _objectData$barColor8, _objectData$color10, _seriesOption$subInde7, _seriesOption$subInde8;
|
|
13763
13916
|
return {
|
|
13764
|
-
value: minBarHeight ? calcHeight((_seriesData$chartData8 = seriesData === null || seriesData === void 0 || (_seriesData$chartData9 = seriesData.chartData) === null || _seriesData$chartData9 === void 0 || (_seriesData$chartData9 = _seriesData$chartData9[key]) === null || _seriesData$chartData9 === void 0 ? void 0 : _seriesData$chartData9["x".concat(index + 1)]) !== null && _seriesData$chartData8 !== void 0 ? _seriesData$chartData8 : 0) : (_seriesData$
|
|
13917
|
+
value: minBarHeight ? calcHeight((_seriesData$chartData8 = seriesData === null || seriesData === void 0 || (_seriesData$chartData9 = seriesData.chartData) === null || _seriesData$chartData9 === void 0 || (_seriesData$chartData9 = _seriesData$chartData9[key]) === null || _seriesData$chartData9 === void 0 ? void 0 : _seriesData$chartData9["x".concat(index + 1)]) !== null && _seriesData$chartData8 !== void 0 ? _seriesData$chartData8 : 0) : (_seriesData$chartData0 = seriesData === null || seriesData === void 0 || (_seriesData$chartData1 = seriesData.chartData) === null || _seriesData$chartData1 === void 0 || (_seriesData$chartData1 = _seriesData$chartData1[key]) === null || _seriesData$chartData1 === void 0 ? void 0 : _seriesData$chartData1["x".concat(index + 1)]) !== null && _seriesData$chartData0 !== void 0 ? _seriesData$chartData0 : 0,
|
|
13765
13918
|
itemStyle: {
|
|
13766
|
-
color: typeof ((_ref8 = (_objectData$
|
|
13919
|
+
color: typeof ((_ref8 = (_objectData$color0 = objectData === null || objectData === void 0 ? void 0 : objectData.color) !== null && _objectData$color0 !== void 0 ? _objectData$color0 : '') !== null && _ref8 !== void 0 ? _ref8 : {}) !== 'string' ? _construct(echarts.graphic.LinearGradient, _toConsumableArray(((_objectData$barColor$7 = objectData === null || objectData === void 0 || (_objectData$barColor7 = objectData.barColor) === null || _objectData$barColor7 === void 0 ? void 0 : _objectData$barColor7[subIndex]) !== null && _objectData$barColor$7 !== void 0 ? _objectData$barColor$7 : '') || ((_objectData$color1 = objectData === null || objectData === void 0 ? void 0 : objectData.color) !== null && _objectData$color1 !== void 0 ? _objectData$color1 : ''))) : ((_objectData$barColor$8 = objectData === null || objectData === void 0 || (_objectData$barColor8 = objectData.barColor) === null || _objectData$barColor8 === void 0 ? void 0 : _objectData$barColor8[subIndex]) !== null && _objectData$barColor$8 !== void 0 ? _objectData$barColor$8 : '') || ((_objectData$color10 = objectData === null || objectData === void 0 ? void 0 : objectData.color) !== null && _objectData$color10 !== void 0 ? _objectData$color10 : '')
|
|
13767
13920
|
},
|
|
13768
13921
|
tooltip: _objectSpread2({}, (_seriesOption$subInde7 = (_seriesOption$subInde8 = seriesOption[subIndex]) === null || _seriesOption$subInde8 === void 0 ? void 0 : _seriesOption$subInde8.tooltip) !== null && _seriesOption$subInde7 !== void 0 ? _seriesOption$subInde7 : {})
|
|
13769
13922
|
};
|
|
@@ -13787,7 +13940,7 @@ var BaseHorizontalBarChart = function BaseHorizontalBarChart(props) {
|
|
|
13787
13940
|
legend: _objectSpread2({}, legend),
|
|
13788
13941
|
tooltip: _objectSpread2({}, tooltip),
|
|
13789
13942
|
yAxis: {
|
|
13790
|
-
data: Object.keys((_seriesData$
|
|
13943
|
+
data: Object.keys((_seriesData$chartData10 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData10 !== void 0 ? _seriesData$chartData10 : {}),
|
|
13791
13944
|
type: 'category',
|
|
13792
13945
|
axisLabel: {
|
|
13793
13946
|
show: yAxisLabelShow
|
|
@@ -13979,7 +14132,7 @@ var NestedPieChart = function NestedPieChart(props) {
|
|
|
13979
14132
|
};
|
|
13980
14133
|
var generateSeries = function generateSeries() {
|
|
13981
14134
|
return pieSeries.map(function (objectData) {
|
|
13982
|
-
var _objectData$complete, _objectData$seriesDat, _objectData$seriesDat2, _objectData$seriesDat9, _objectData$
|
|
14135
|
+
var _objectData$complete, _objectData$seriesDat, _objectData$seriesDat2, _objectData$seriesDat9, _objectData$seriesDat0;
|
|
13983
14136
|
var completionValue = objectData === null || objectData === void 0 ? void 0 : objectData.complete;
|
|
13984
14137
|
var semiDoughnutValue = 0;
|
|
13985
14138
|
return _objectSpread2(_objectSpread2(_objectSpread2({}, seriesOptionObject), objectData), {}, {
|
|
@@ -14014,12 +14167,12 @@ var NestedPieChart = function NestedPieChart(props) {
|
|
|
14014
14167
|
tooltip: {
|
|
14015
14168
|
show: false
|
|
14016
14169
|
}
|
|
14017
|
-
} : {}]) : [].concat(_toConsumableArray(Object.keys((_objectData$seriesDat9 = objectData === null || objectData === void 0 || (_objectData$
|
|
14018
|
-
var _objectData$
|
|
14019
|
-
semiDoughnutValue += (_objectData$
|
|
14170
|
+
} : {}]) : [].concat(_toConsumableArray(Object.keys((_objectData$seriesDat9 = objectData === null || objectData === void 0 || (_objectData$seriesDat0 = objectData.seriesData) === null || _objectData$seriesDat0 === void 0 ? void 0 : _objectData$seriesDat0.chartData) !== null && _objectData$seriesDat9 !== void 0 ? _objectData$seriesDat9 : {}).map(function (key, subIndex) {
|
|
14171
|
+
var _objectData$seriesDat1, _objectData$seriesDat10, _objectData$seriesDat11, _objectData$seriesDat12, _objectData$seriesOpt5, _objectData$seriesOpt6, _objectData$seriesOpt7, _objectData$seriesOpt8;
|
|
14172
|
+
semiDoughnutValue += (_objectData$seriesDat1 = objectData === null || objectData === void 0 || (_objectData$seriesDat10 = objectData.seriesData) === null || _objectData$seriesDat10 === void 0 || (_objectData$seriesDat10 = _objectData$seriesDat10.chartData) === null || _objectData$seriesDat10 === void 0 ? void 0 : _objectData$seriesDat10[key]) !== null && _objectData$seriesDat1 !== void 0 ? _objectData$seriesDat1 : 0;
|
|
14020
14173
|
return {
|
|
14021
|
-
value: objectData === null || objectData === void 0 || (_objectData$
|
|
14022
|
-
name: objectData === null || objectData === void 0 || (_objectData$
|
|
14174
|
+
value: objectData === null || objectData === void 0 || (_objectData$seriesDat11 = objectData.seriesData) === null || _objectData$seriesDat11 === void 0 || (_objectData$seriesDat11 = _objectData$seriesDat11.chartData) === null || _objectData$seriesDat11 === void 0 ? void 0 : _objectData$seriesDat11[key],
|
|
14175
|
+
name: objectData === null || objectData === void 0 || (_objectData$seriesDat12 = objectData.seriesData) === null || _objectData$seriesDat12 === void 0 || (_objectData$seriesDat12 = _objectData$seriesDat12.metaData) === null || _objectData$seriesDat12 === void 0 || (_objectData$seriesDat12 = _objectData$seriesDat12.keyData) === null || _objectData$seriesDat12 === void 0 ? void 0 : _objectData$seriesDat12[key],
|
|
14023
14176
|
itemStyle: _objectSpread2({}, objectData === null || objectData === void 0 || (_objectData$seriesOpt5 = objectData.seriesOption) === null || _objectData$seriesOpt5 === void 0 || (_objectData$seriesOpt5 = _objectData$seriesOpt5[subIndex]) === null || _objectData$seriesOpt5 === void 0 ? void 0 : _objectData$seriesOpt5.itemStyle),
|
|
14024
14177
|
label: _objectSpread2({}, objectData === null || objectData === void 0 || (_objectData$seriesOpt6 = objectData.seriesOption) === null || _objectData$seriesOpt6 === void 0 || (_objectData$seriesOpt6 = _objectData$seriesOpt6[subIndex]) === null || _objectData$seriesOpt6 === void 0 ? void 0 : _objectData$seriesOpt6.label),
|
|
14025
14178
|
tooltip: _objectSpread2({}, objectData === null || objectData === void 0 || (_objectData$seriesOpt7 = objectData.seriesOption) === null || _objectData$seriesOpt7 === void 0 || (_objectData$seriesOpt7 = _objectData$seriesOpt7[subIndex]) === null || _objectData$seriesOpt7 === void 0 ? void 0 : _objectData$seriesOpt7.tooltip),
|
|
@@ -14678,7 +14831,7 @@ var determineGradient = function determineGradient(seriesData, objectData, index
|
|
|
14678
14831
|
return '';
|
|
14679
14832
|
};
|
|
14680
14833
|
var BaseVerticalBarChart$1 = function BaseVerticalBarChart(props) {
|
|
14681
|
-
var _Object$keys, _seriesData$chartData2, _seriesData$metaData$, _seriesData$metaData, _seriesData$chartData4, _seriesData$
|
|
14834
|
+
var _Object$keys, _seriesData$chartData2, _seriesData$metaData$, _seriesData$metaData, _seriesData$chartData4, _seriesData$chartData12;
|
|
14682
14835
|
var title = props.title,
|
|
14683
14836
|
gridContainLabel = props.gridContainLabel,
|
|
14684
14837
|
gridOptions = props.gridOptions,
|
|
@@ -14788,25 +14941,25 @@ var BaseVerticalBarChart$1 = function BaseVerticalBarChart(props) {
|
|
|
14788
14941
|
label: _objectSpread2(_objectSpread2({}, (_seriesOptionObject$l = seriesOptionObject === null || seriesOptionObject === void 0 ? void 0 : seriesOptionObject.label) !== null && _seriesOptionObject$l !== void 0 ? _seriesOptionObject$l : {}), (_objectData$label = objectData === null || objectData === void 0 ? void 0 : objectData.label) !== null && _objectData$label !== void 0 ? _objectData$label : {}),
|
|
14789
14942
|
name: seriesName(index),
|
|
14790
14943
|
data: Object.keys((_seriesData$chartData9 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData9 !== void 0 ? _seriesData$chartData9 : {}).map(function (key, subIndex) {
|
|
14791
|
-
var _seriesData$
|
|
14944
|
+
var _seriesData$chartData10, _seriesData$chartData11, _objectData$color4, _seriesOption$subInde, _seriesOption$subInde2;
|
|
14792
14945
|
var check = true;
|
|
14793
14946
|
if (stackCount <= 1) {
|
|
14794
14947
|
check = seriesOption.some(function (obj, checkIndex) {
|
|
14795
|
-
var _seriesData$
|
|
14796
|
-
return seriesData === null || seriesData === void 0 || (_seriesData$
|
|
14948
|
+
var _seriesData$chartData0;
|
|
14949
|
+
return seriesData === null || seriesData === void 0 || (_seriesData$chartData0 = seriesData.chartData) === null || _seriesData$chartData0 === void 0 || (_seriesData$chartData0 = _seriesData$chartData0[key]) === null || _seriesData$chartData0 === void 0 ? void 0 : _seriesData$chartData0["x".concat(checkIndex + 1)];
|
|
14797
14950
|
});
|
|
14798
14951
|
} else {
|
|
14799
14952
|
var stackCal = seriesOption[index].stack;
|
|
14800
14953
|
check = seriesOption.some(function (series, checkNewIndex) {
|
|
14801
14954
|
if (series.stack === stackCal) {
|
|
14802
|
-
var _seriesData$
|
|
14803
|
-
return seriesData === null || seriesData === void 0 || (_seriesData$
|
|
14955
|
+
var _seriesData$chartData1;
|
|
14956
|
+
return seriesData === null || seriesData === void 0 || (_seriesData$chartData1 = seriesData.chartData) === null || _seriesData$chartData1 === void 0 || (_seriesData$chartData1 = _seriesData$chartData1[key]) === null || _seriesData$chartData1 === void 0 ? void 0 : _seriesData$chartData1["x".concat(checkNewIndex + 1)];
|
|
14804
14957
|
}
|
|
14805
14958
|
return false;
|
|
14806
14959
|
});
|
|
14807
14960
|
}
|
|
14808
14961
|
return _objectSpread2(_objectSpread2({
|
|
14809
|
-
value: check ? (_seriesData$
|
|
14962
|
+
value: check ? (_seriesData$chartData10 = seriesData === null || seriesData === void 0 || (_seriesData$chartData11 = seriesData.chartData) === null || _seriesData$chartData11 === void 0 || (_seriesData$chartData11 = _seriesData$chartData11[key]) === null || _seriesData$chartData11 === void 0 ? void 0 : _seriesData$chartData11["x".concat(index + 1)]) !== null && _seriesData$chartData10 !== void 0 ? _seriesData$chartData10 : '' : minHeight
|
|
14810
14963
|
}, ((_objectData$color4 = objectData === null || objectData === void 0 ? void 0 : objectData.color) !== null && _objectData$color4 !== void 0 ? _objectData$color4 : '') && {
|
|
14811
14964
|
itemStyle: {
|
|
14812
14965
|
color: determineGradient(seriesData, objectData, index, subIndex, key)
|
|
@@ -14835,7 +14988,7 @@ var BaseVerticalBarChart$1 = function BaseVerticalBarChart(props) {
|
|
|
14835
14988
|
containLabel: gridContainLabel
|
|
14836
14989
|
}, gridOptions),
|
|
14837
14990
|
xAxis: _objectSpread2({
|
|
14838
|
-
data: Object.keys((_seriesData$
|
|
14991
|
+
data: Object.keys((_seriesData$chartData12 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData12 !== void 0 ? _seriesData$chartData12 : {}),
|
|
14839
14992
|
show: xAxisShow,
|
|
14840
14993
|
type: 'category',
|
|
14841
14994
|
axisTick: _objectSpread2({
|
|
@@ -16799,23 +16952,23 @@ var DatePicker = function DatePicker(props) {
|
|
|
16799
16952
|
var _useState9 = useState(function () {
|
|
16800
16953
|
return '';
|
|
16801
16954
|
}),
|
|
16802
|
-
|
|
16803
|
-
selectedDate =
|
|
16804
|
-
setSelectedDate =
|
|
16805
|
-
var
|
|
16806
|
-
|
|
16807
|
-
selectedMonth =
|
|
16808
|
-
setSelectedMonth =
|
|
16809
|
-
var
|
|
16955
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
16956
|
+
selectedDate = _useState0[0],
|
|
16957
|
+
setSelectedDate = _useState0[1];
|
|
16958
|
+
var _useState1 = useState(),
|
|
16959
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
16960
|
+
selectedMonth = _useState10[0],
|
|
16961
|
+
setSelectedMonth = _useState10[1];
|
|
16962
|
+
var _useState11 = useState(function () {
|
|
16810
16963
|
return '';
|
|
16811
16964
|
}),
|
|
16965
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
16966
|
+
error = _useState12[0],
|
|
16967
|
+
setError = _useState12[1];
|
|
16968
|
+
var _useState13 = useState({}),
|
|
16812
16969
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
16813
|
-
|
|
16814
|
-
|
|
16815
|
-
var _useState15 = useState({}),
|
|
16816
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
16817
|
-
timeRangeSelection = _useState16[0],
|
|
16818
|
-
setTimeRangeSelection = _useState16[1];
|
|
16970
|
+
timeRangeSelection = _useState14[0],
|
|
16971
|
+
setTimeRangeSelection = _useState14[1];
|
|
16819
16972
|
var datePickerRef = useRef();
|
|
16820
16973
|
var displayValue = getDatePickerDisplayValue({
|
|
16821
16974
|
value: value,
|
|
@@ -16854,7 +17007,7 @@ var DatePicker = function DatePicker(props) {
|
|
|
16854
17007
|
onApply === null || onApply === void 0 || onApply(rangeSelected.unix, fixedRange, getDateRangeTag(rangeSelected.unix));
|
|
16855
17008
|
setOpenDatePicker(false);
|
|
16856
17009
|
} else {
|
|
16857
|
-
var _timeRangeSelection$n7, _timeRangeSelection$n8, _timeRangeSelection$n9, _timeRangeSelection$
|
|
17010
|
+
var _timeRangeSelection$n7, _timeRangeSelection$n8, _timeRangeSelection$n9, _timeRangeSelection$n0, _timeRangeSelection$n1;
|
|
16858
17011
|
if (valueAsRange) {
|
|
16859
17012
|
var _timeRangeSelection$p, _timeRangeSelection$p2, _timeRangeSelection$p3, _timeRangeSelection$p4, _timeRangeSelection$p5, _timeRangeSelection$p6, _timeRangeSelection$n, _timeRangeSelection$n2, _timeRangeSelection$n3, _timeRangeSelection$n4, _timeRangeSelection$n5, _timeRangeSelection$n6;
|
|
16860
17013
|
var fromUnix = getUnixTime(new Date(selectedDate.year, selectedMonth === null || selectedMonth === void 0 ? void 0 : selectedMonth.monthAsNumber, selectedDate.date, ((_timeRangeSelection$p = timeRangeSelection.previous) === null || _timeRangeSelection$p === void 0 ? void 0 : _timeRangeSelection$p.MER) === 'PM' && ((_timeRangeSelection$p2 = timeRangeSelection.previous) === null || _timeRangeSelection$p2 === void 0 ? void 0 : _timeRangeSelection$p2.HOURS) < 12 ? ((_timeRangeSelection$p3 = timeRangeSelection.previous) === null || _timeRangeSelection$p3 === void 0 ? void 0 : _timeRangeSelection$p3.HOURS) + 12 : calculateZeroHours((_timeRangeSelection$p4 = timeRangeSelection.previous) === null || _timeRangeSelection$p4 === void 0 ? void 0 : _timeRangeSelection$p4.HOURS, (_timeRangeSelection$p5 = timeRangeSelection.previous) === null || _timeRangeSelection$p5 === void 0 ? void 0 : _timeRangeSelection$p5.MER), (_timeRangeSelection$p6 = timeRangeSelection.previous) === null || _timeRangeSelection$p6 === void 0 ? void 0 : _timeRangeSelection$p6.MINS));
|
|
@@ -16863,7 +17016,7 @@ var DatePicker = function DatePicker(props) {
|
|
|
16863
17016
|
setOpenDatePicker(false);
|
|
16864
17017
|
return;
|
|
16865
17018
|
}
|
|
16866
|
-
var singleDateUnix = getUnixTime(new Date(selectedDate.year, selectedMonth === null || selectedMonth === void 0 ? void 0 : selectedMonth.monthAsNumber, selectedDate.date, ((_timeRangeSelection$n7 = timeRangeSelection.next) === null || _timeRangeSelection$n7 === void 0 ? void 0 : _timeRangeSelection$n7.MER) === 'PM' && ((_timeRangeSelection$n8 = timeRangeSelection.next) === null || _timeRangeSelection$n8 === void 0 ? void 0 : _timeRangeSelection$n8.HOURS) < 12 ? ((_timeRangeSelection$n9 = timeRangeSelection.next) === null || _timeRangeSelection$n9 === void 0 ? void 0 : _timeRangeSelection$n9.HOURS) + 12 : (_timeRangeSelection$
|
|
17019
|
+
var singleDateUnix = getUnixTime(new Date(selectedDate.year, selectedMonth === null || selectedMonth === void 0 ? void 0 : selectedMonth.monthAsNumber, selectedDate.date, ((_timeRangeSelection$n7 = timeRangeSelection.next) === null || _timeRangeSelection$n7 === void 0 ? void 0 : _timeRangeSelection$n7.MER) === 'PM' && ((_timeRangeSelection$n8 = timeRangeSelection.next) === null || _timeRangeSelection$n8 === void 0 ? void 0 : _timeRangeSelection$n8.HOURS) < 12 ? ((_timeRangeSelection$n9 = timeRangeSelection.next) === null || _timeRangeSelection$n9 === void 0 ? void 0 : _timeRangeSelection$n9.HOURS) + 12 : (_timeRangeSelection$n0 = timeRangeSelection.next) === null || _timeRangeSelection$n0 === void 0 ? void 0 : _timeRangeSelection$n0.HOURS, (_timeRangeSelection$n1 = timeRangeSelection.next) === null || _timeRangeSelection$n1 === void 0 ? void 0 : _timeRangeSelection$n1.MINS));
|
|
16867
17020
|
onApply === null || onApply === void 0 || onApply(singleDateUnix);
|
|
16868
17021
|
setOpenDatePicker(false);
|
|
16869
17022
|
}
|
|
@@ -17255,7 +17408,7 @@ var HierarchyBrowser = function HierarchyBrowser(props) {
|
|
|
17255
17408
|
onItemDoubleClick(item, pathString, open);
|
|
17256
17409
|
};
|
|
17257
17410
|
};
|
|
17258
|
-
var
|
|
17411
|
+
var _renderTree = function renderTree(data) {
|
|
17259
17412
|
var _data$list$map, _data$list, _data$list$map2;
|
|
17260
17413
|
var pathString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
17261
17414
|
if (data == null) {
|
|
@@ -17271,7 +17424,7 @@ var HierarchyBrowser = function HierarchyBrowser(props) {
|
|
|
17271
17424
|
onDoubleClick: handleItemDoubleClick(data, pathString)
|
|
17272
17425
|
}, setItemProps(data, pathString)), {}, {
|
|
17273
17426
|
children: hasChildren && ((_data$list$map = (_data$list = data.list) === null || _data$list === void 0 || (_data$list$map2 = _data$list.map) === null || _data$list$map2 === void 0 ? void 0 : _data$list$map2.call(_data$list, function (item, idx) {
|
|
17274
|
-
return
|
|
17427
|
+
return _renderTree(item, "".concat(pathString).concat(pathString.length > 0 ? '.' : '', "list[").concat(idx, "]"));
|
|
17275
17428
|
})) !== null && _data$list$map !== void 0 ? _data$list$map : [])
|
|
17276
17429
|
}));
|
|
17277
17430
|
};
|
|
@@ -17285,7 +17438,7 @@ var HierarchyBrowser = function HierarchyBrowser(props) {
|
|
|
17285
17438
|
}), /*#__PURE__*/jsx("div", {
|
|
17286
17439
|
className: modules_5e29d515.body,
|
|
17287
17440
|
"data-elem": "body",
|
|
17288
|
-
children:
|
|
17441
|
+
children: _renderTree(metadata)
|
|
17289
17442
|
})]
|
|
17290
17443
|
});
|
|
17291
17444
|
};
|
|
@@ -17583,9 +17736,9 @@ var Dropdown$1 = /*#__PURE__*/forwardRef(function Dropdown(props, inputRef) {
|
|
|
17583
17736
|
})));
|
|
17584
17737
|
});
|
|
17585
17738
|
var _useState9 = useState(false),
|
|
17586
|
-
|
|
17587
|
-
pointer =
|
|
17588
|
-
setPointer =
|
|
17739
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
17740
|
+
pointer = _useState0[0],
|
|
17741
|
+
setPointer = _useState0[1];
|
|
17589
17742
|
if (!open && pointer) {
|
|
17590
17743
|
setPointer(false);
|
|
17591
17744
|
}
|
|
@@ -18150,9 +18303,9 @@ var Dropdown = /*#__PURE__*/forwardRef(function Dropdown(props, inputRef) {
|
|
|
18150
18303
|
uncontrolledValue = _useState8[0],
|
|
18151
18304
|
setUncontrolledValue = _useState8[1];
|
|
18152
18305
|
var _useState9 = useState(null),
|
|
18153
|
-
|
|
18154
|
-
appliedMultiUncontrolledValue =
|
|
18155
|
-
setAppliedMultiUncontrolledValue =
|
|
18306
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
18307
|
+
appliedMultiUncontrolledValue = _useState0[0],
|
|
18308
|
+
setAppliedMultiUncontrolledValue = _useState0[1];
|
|
18156
18309
|
var _useFloating = useFloating({
|
|
18157
18310
|
open: open,
|
|
18158
18311
|
onOpenChange: setOpen,
|
|
@@ -18307,10 +18460,10 @@ var Dropdown = /*#__PURE__*/forwardRef(function Dropdown(props, inputRef) {
|
|
|
18307
18460
|
}
|
|
18308
18461
|
})));
|
|
18309
18462
|
});
|
|
18310
|
-
var
|
|
18311
|
-
|
|
18312
|
-
pointer =
|
|
18313
|
-
setPointer =
|
|
18463
|
+
var _useState1 = useState(false),
|
|
18464
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
18465
|
+
pointer = _useState10[0],
|
|
18466
|
+
setPointer = _useState10[1];
|
|
18314
18467
|
if (!open && pointer) {
|
|
18315
18468
|
setPointer(false);
|
|
18316
18469
|
}
|
|
@@ -23581,7 +23734,7 @@ var PageLabelDisplay = function PageLabelDisplay(_ref2) {
|
|
|
23581
23734
|
children: /*#__PURE__*/jsx(Text, {
|
|
23582
23735
|
children: customLabel !== null && customLabel !== void 0 ? customLabel : ''
|
|
23583
23736
|
})
|
|
23584
|
-
}) : (totalData || totalPages) && (isDisplayLabelVisible || fallback) && /*#__PURE__*/jsxs(Text, {
|
|
23737
|
+
}) : (totalData > 0 || totalPages > 0) && (isDisplayLabelVisible || fallback) && /*#__PURE__*/jsxs(Text, {
|
|
23585
23738
|
variant: "b1",
|
|
23586
23739
|
stroke: "medium",
|
|
23587
23740
|
className: modules_4c812c2d['total-data'],
|
|
@@ -23590,7 +23743,7 @@ var PageLabelDisplay = function PageLabelDisplay(_ref2) {
|
|
|
23590
23743
|
},
|
|
23591
23744
|
children: [/*#__PURE__*/jsx(Text, {
|
|
23592
23745
|
children: "Displaying"
|
|
23593
|
-
}), " ", ((currentPage === 0 ? 1 : currentPage) - 1) * step + 1, "-", currentPage === totalPages
|
|
23746
|
+
}), " ", ((currentPage === 0 ? 1 : currentPage) - 1) * step + 1, "-", currentPage === totalPages ? totalData : (currentPage === 0 ? 1 : currentPage) * step, ' ', "of ", totalData !== null && totalData !== void 0 ? totalData : 'total', " ", /*#__PURE__*/jsx(Text, {
|
|
23594
23747
|
children: dataLabel !== null && dataLabel !== void 0 ? dataLabel : 'records'
|
|
23595
23748
|
})]
|
|
23596
23749
|
});
|
|
@@ -24420,7 +24573,7 @@ var Table = function Table(props) {
|
|
|
24420
24573
|
toggleTableDrawer: toggleTableDrawer,
|
|
24421
24574
|
setToggleTableDrawer: setToggleTableDrawer,
|
|
24422
24575
|
className: classes(modules_2e8406c7.drawer, hasSingleBody && modules_2e8406c7.standalone, drawerProps.className),
|
|
24423
|
-
children: Body && /*#__PURE__*/isValidElement(
|
|
24576
|
+
children: Body && /*#__PURE__*/isValidElement(/*#__PURE__*/jsx(Body, {
|
|
24424
24577
|
datum: toggleTableDrawer.data
|
|
24425
24578
|
})) && /*#__PURE__*/jsx(Body, {
|
|
24426
24579
|
datum: toggleTableDrawer.data,
|
|
@@ -25159,7 +25312,7 @@ var BaseWidget$1 = /*#__PURE__*/forwardRef(function BaseWidget(props, ref) {
|
|
|
25159
25312
|
className: classes(modules_d563b0a9.drawer, drawerClassName),
|
|
25160
25313
|
"data-elem": "panel",
|
|
25161
25314
|
animation: true,
|
|
25162
|
-
children: /*#__PURE__*/isValidElement(
|
|
25315
|
+
children: /*#__PURE__*/isValidElement(/*#__PURE__*/jsx(Body, {})) && /*#__PURE__*/jsx(Body, {
|
|
25163
25316
|
toggle: toggleDrawer
|
|
25164
25317
|
})
|
|
25165
25318
|
}), toggleTableDrawer.open && /*#__PURE__*/jsx("div", {
|
|
@@ -25173,7 +25326,7 @@ var BaseWidget$1 = /*#__PURE__*/forwardRef(function BaseWidget(props, ref) {
|
|
|
25173
25326
|
children: [showFallback && !loading && emptyChartData && /*#__PURE__*/jsx(WidgetFallback, _objectSpread2(_objectSpread2({}, fallbackProps), {}, {
|
|
25174
25327
|
onReload: onReload
|
|
25175
25328
|
})), Children.map(children, function (child) {
|
|
25176
|
-
if (
|
|
25329
|
+
if (/*#__PURE__*/isValidElement(child)) {
|
|
25177
25330
|
return /*#__PURE__*/cloneElement(child, {
|
|
25178
25331
|
fallback: !loading && emptyChartData,
|
|
25179
25332
|
toggleDrawer: toggleDrawer
|
|
@@ -25412,7 +25565,7 @@ var BaseWidget = /*#__PURE__*/forwardRef(function BaseWidget(props, ref) {
|
|
|
25412
25565
|
onReload: onReload,
|
|
25413
25566
|
theme: theme
|
|
25414
25567
|
})), Children.map(children, function (child) {
|
|
25415
|
-
if (
|
|
25568
|
+
if (/*#__PURE__*/isValidElement(child)) {
|
|
25416
25569
|
return /*#__PURE__*/cloneElement(child, {
|
|
25417
25570
|
fallback: !loading && emptyChartData
|
|
25418
25571
|
});
|
|
@@ -26408,5 +26561,5 @@ var BaseAreaChart = function BaseAreaChart(props) {
|
|
|
26408
26561
|
});
|
|
26409
26562
|
};
|
|
26410
26563
|
|
|
26411
|
-
export { Accordion, Alert$1 as Alert, AlertIcon, Alert as AlertV2, AngleDouble as AngleDoubleIcon, AreaChartIcon, Arrow as ArrowIcon, BarChartIcon, BaseAreaChart$1 as BaseAreaChart, BaseAreaChart as BaseAreaChartV2, BaseButton, BaseCell, BaseHorizontalBarChart, BaseModal, BasePieChart$1 as BasePieChart, BasePieChart as BasePieChartV2, BaseRegionChart, BaseSidePanel, BaseTable$1 as BaseTable, BaseTable as BaseTableV2, BaseVerticalBarChart$1 as BaseVerticalBarChart, BaseVerticalBarChart as BaseVerticalBarChartV2, BaseWidget, BreadCrumbs$1 as BreadCrumbs, BreadCrumbs as BreadCrumbsv2, BreadcrumbSeparator as BreadcrumbSeperatorIcon, Button, COLORS, Calender$1 as CalenderIcon, Callout, CapsuleChart, CapsuleChartIcon, Caret as CaretIcon, Checkbox, CheckboxIcon, Chevron as ChevronIcon, Chip, Clock as ClockIcon, Close as CloseIcon, CodeSnippet, ColumnFilter, Columns as ColumnsIcon, Copy as CopyIcon, Cross as CrossIcon, CustomPaginationList$1 as CustomPaginationList, DatePicker, Delete as DeleteIcon, DialogBox, DisplayPicture, Download as DownloadIcon, Dropdown$1 as Dropdown, DropdownIcon, DropdownItem$1 as DropdownItem, DropdownItem as DropdownItemv2, Dropdown as Dropdownv2, Edit as EditIcon, Email as EmailIcon, ExpandArrowAlt as ExpandArrowAltIcon, Filter as FilterIcon, FlowChart as FlowChartIcon, FullScreen as FullScreenIcon, HalfShade as HalfShadeIcon, HeatMapChart, HidePassword as HidePasswordIcon, HierarchyBrowser, HierarchyItem, Home as HomeIcon, Info as InfoIcon, LineChartIcon, Link, MagnifyingGlass as MagnifyingGlassIcon, MarkerIcon, Maximize as MaximizeIcon, NestedPieChart, FilterIcon as NewFilterIcon, Nut as NutIcon, PageHeader, Pagination$1 as Pagination, PaginationList$1 as PaginationList, Password as PasswordIcon, PieChartIcon, Plus as PlusIcon, Popover, Popper, Radio, RadioIcon, Refresh as RefreshIcon, Reset as ResetIcon, RichEditor as RichTextEditor, SearchIcon, Server as ServerIcon, Settings as SettingsIcon, Skeleton, Slider, Sort as SortIcon, StackedPieChart, StackedPieChartIcon, Step, Stepper, Switch, Table$1 as Table, TableCell$1 as TableCell, TableCell as TableCellV2, TableColumn, TableColumnV2, TableFilters$1 as TableFilters, Table as TableV2, Tabs, Text, TextField, TextField$1 as TextFieldv2, Tick as TickIcon, Toggle, Tooltip, Trash as TrashIcon, UnlockPassword as UnlockPasswordIcon, View as ViewIcon, ViewPasswordIcon, areTwinObjects, classes, cloneDeep, defaultProps, doubleDigitted, epochToFormattedDate, generateColors, get, getCSSVariableValue, getCurrentSearchParams, getCustomPagination$1 as getCustomPagination, getDateFromEpoch, getDatesInAMonth, getDatesInStringFormat, getDayInfo, getDuplicatesSansArray, getInitialsOfName, getJSDateFromEpoch, getPagination$1 as getPagination, getSpacedDisplayName, getTimeFromEpoch, inputHelper, isEmptyHtmlString, propTypes, safeJSONParse, sanitizeJSON, stringToPath, sumArrayOfObjects, uniqueArray, uniqueArrayOfObjects, useOutsideClickListener, usePagination, useResize };
|
|
26564
|
+
export { Accordion, Alert$1 as Alert, AlertIcon, Alert as AlertV2, AngleDouble as AngleDoubleIcon, AreaChartIcon, Arrow as ArrowIcon, BarChartIcon, BaseAreaChart$1 as BaseAreaChart, BaseAreaChart as BaseAreaChartV2, BaseButton, BaseCell, BaseHorizontalBarChart, BaseModal, BasePieChart$1 as BasePieChart, BasePieChart as BasePieChartV2, BaseRegionChart, BaseSidePanel, BaseTable$1 as BaseTable, BaseTable as BaseTableV2, BaseVerticalBarChart$1 as BaseVerticalBarChart, BaseVerticalBarChart as BaseVerticalBarChartV2, BaseWidget, BreadCrumbs$1 as BreadCrumbs, BreadCrumbs as BreadCrumbsv2, BreadcrumbSeparator as BreadcrumbSeperatorIcon, Button, COLORS, Calender$1 as CalenderIcon, Callout, CapsuleChart, CapsuleChartIcon, Caret as CaretIcon, Checkbox, CheckboxIcon, Chevron as ChevronIcon, Chip, Clock as ClockIcon, Close as CloseIcon, CodeSnippet, ColumnFilter, Columns as ColumnsIcon, Copy as CopyIcon, Cross as CrossIcon, CustomPaginationList$1 as CustomPaginationList, DatePicker, Delete as DeleteIcon, DialogBox, DisplayPicture, Download as DownloadIcon, Dropdown$1 as Dropdown, DropdownIcon, DropdownItem$1 as DropdownItem, DropdownItem as DropdownItemv2, Dropdown as Dropdownv2, Edit as EditIcon, Email as EmailIcon, ExpandArrowAlt as ExpandArrowAltIcon, Filter as FilterIcon, FlowChart as FlowChartIcon, FullScreen as FullScreenIcon, HalfShade as HalfShadeIcon, HeatMapChart, HidePassword as HidePasswordIcon, HierarchyBrowser, HierarchyItem, Home as HomeIcon, Info as InfoIcon, LineChartIcon, Link, MagnifyingGlass as MagnifyingGlassIcon, MarkerIcon, Maximize as MaximizeIcon, NestedPieChart, FilterIcon as NewFilterIcon, Nut as NutIcon, PageHeader, Pagination$1 as Pagination, PaginationList$1 as PaginationList, Password as PasswordIcon, PieChartIcon, Plus as PlusIcon, Popover, Popper, Radio, RadioIcon, Refresh as RefreshIcon, Reset as ResetIcon, RichEditor as RichTextEditor, SearchIcon, Server as ServerIcon, Settings as SettingsIcon, Skeleton, Slider, Sort as SortIcon, StackedPieChart, StackedPieChartIcon, Step, Stepper, Switch, Table$1 as Table, TableCell$1 as TableCell, TableCell as TableCellV2, TableColumn, TableColumnV2, TableFilters$1 as TableFilters, Table as TableV2, Tabs, Text, TextField, TextField$1 as TextFieldv2, Tick as TickIcon, Toggle, Tooltip, Trash as TrashIcon, UnlockPassword as UnlockPasswordIcon, View as ViewIcon, ViewPasswordIcon, _areTwinObjects as areTwinObjects, classes, cloneDeep, defaultProps, doubleDigitted, epochToFormattedDate, generateColors, get, getCSSVariableValue, getCurrentSearchParams, getCustomPagination$1 as getCustomPagination, getDateFromEpoch, getDatesInAMonth, getDatesInStringFormat, getDayInfo, getDuplicatesSansArray, getInitialsOfName, getJSDateFromEpoch, getPagination$1 as getPagination, getSpacedDisplayName, getTimeFromEpoch, inputHelper, isEmptyHtmlString, propTypes, safeJSONParse, sanitizeJSON, stringToPath, sumArrayOfObjects, uniqueArray, uniqueArrayOfObjects, useOutsideClickListener, usePagination, useResize };
|
|
26412
26565
|
//# sourceMappingURL=index.js.map
|