victory-shared-events 36.3.2 → 36.5.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.
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["VictorySharedEvents"] = factory(require("react"));
|
|
8
8
|
else
|
|
9
9
|
root["VictorySharedEvents"] = factory(root["React"]);
|
|
10
|
-
})(self,
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE_react__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -38,16 +38,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38
38
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_6__);
|
|
39
39
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "react");
|
|
40
40
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
|
|
41
|
-
/* harmony import */ var
|
|
42
|
-
/* harmony import */ var
|
|
43
|
-
/* harmony import */ var
|
|
44
|
-
/* harmony import */ var
|
|
41
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
42
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
|
|
43
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
|
|
44
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
45
45
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/prop-types.js");
|
|
46
46
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/timer-context.js");
|
|
47
|
-
/* harmony import */ var
|
|
48
|
-
/* harmony import */ var
|
|
49
|
-
/* harmony import */ var
|
|
50
|
-
/* harmony import */ var
|
|
47
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
48
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_8__);
|
|
49
|
+
/* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! json-stringify-safe */ "../../../node_modules/json-stringify-safe/stringify.js");
|
|
50
|
+
/* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(json_stringify_safe__WEBPACK_IMPORTED_MODULE_9__);
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
@@ -56,54 +56,69 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
59
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
60
60
|
|
|
61
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
61
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
62
62
|
|
|
63
|
-
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e
|
|
63
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
64
64
|
|
|
65
65
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
66
66
|
|
|
67
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
67
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
68
68
|
|
|
69
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
69
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
70
70
|
|
|
71
|
-
function
|
|
71
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
72
72
|
|
|
73
|
-
function
|
|
73
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
74
|
+
|
|
75
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
76
|
+
|
|
77
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
74
78
|
|
|
75
79
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
76
80
|
|
|
77
81
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
78
82
|
|
|
79
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
83
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
84
|
+
|
|
85
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
86
|
+
|
|
87
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
80
88
|
|
|
81
|
-
function
|
|
89
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
82
90
|
|
|
83
|
-
function
|
|
91
|
+
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
84
92
|
|
|
85
93
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
86
94
|
|
|
95
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
87
96
|
|
|
97
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
88
98
|
|
|
89
99
|
|
|
90
100
|
|
|
91
101
|
|
|
92
102
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
103
|
+
// DISCLAIMER:
|
|
104
|
+
// This file is not currently tested, and it is first on the list of files
|
|
105
|
+
// to refactor in our current refactoring effort. Please do not make changes
|
|
106
|
+
// to this file without manual testing and/or refactoring and adding tests.
|
|
107
|
+
|
|
108
|
+
var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
96
109
|
_inherits(VictorySharedEvents, _React$Component);
|
|
97
110
|
|
|
111
|
+
var _super = _createSuper(VictorySharedEvents);
|
|
112
|
+
|
|
98
113
|
function VictorySharedEvents(props) {
|
|
99
114
|
var _this;
|
|
100
115
|
|
|
101
116
|
_classCallCheck(this, VictorySharedEvents);
|
|
102
117
|
|
|
103
|
-
_this =
|
|
118
|
+
_this = _super.call(this, props);
|
|
104
119
|
_this.state = _this.state || {};
|
|
105
|
-
_this.getScopedEvents =
|
|
106
|
-
_this.getEventState =
|
|
120
|
+
_this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
121
|
+
_this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_10__.getEventState.bind(_assertThisInitialized(_this));
|
|
107
122
|
_this.baseProps = _this.getBaseProps(props);
|
|
108
123
|
_this.sharedEventsCache = {};
|
|
109
124
|
_this.globalEvents = {};
|
|
@@ -115,7 +130,7 @@ function (_React$Component) {
|
|
|
115
130
|
_createClass(VictorySharedEvents, [{
|
|
116
131
|
key: "shouldComponentUpdate",
|
|
117
132
|
value: function shouldComponentUpdate(nextProps) {
|
|
118
|
-
if (!
|
|
133
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(this.props, nextProps)) {
|
|
119
134
|
this.baseProps = this.getBaseProps(nextProps);
|
|
120
135
|
var externalMutations = this.getExternalMutations(nextProps, this.baseProps);
|
|
121
136
|
this.applyExternalMutations(nextProps, externalMutations);
|
|
@@ -171,22 +186,22 @@ function (_React$Component) {
|
|
|
171
186
|
|
|
172
187
|
var boundListener = function (event) {
|
|
173
188
|
var listener = _this5.globalEvents[key];
|
|
174
|
-
return listener && listener(
|
|
189
|
+
return listener && listener(victory_core__WEBPACK_IMPORTED_MODULE_10__.emulateReactEvent(event));
|
|
175
190
|
};
|
|
176
191
|
|
|
177
192
|
this.boundGlobalEvents[key] = boundListener;
|
|
178
|
-
window.addEventListener(
|
|
193
|
+
window.addEventListener(victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEventNameFromKey(key), boundListener);
|
|
179
194
|
}
|
|
180
195
|
}, {
|
|
181
196
|
key: "removeGlobalListener",
|
|
182
197
|
value: function removeGlobalListener(key) {
|
|
183
|
-
window.removeEventListener(
|
|
198
|
+
window.removeEventListener(victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
|
|
184
199
|
}
|
|
185
200
|
}, {
|
|
186
201
|
key: "getAllEvents",
|
|
187
202
|
value: function getAllEvents(props) {
|
|
188
203
|
var components = ["container", "groupComponent"];
|
|
189
|
-
var componentEvents =
|
|
204
|
+
var componentEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getComponentEvents(props, components);
|
|
190
205
|
|
|
191
206
|
if (Array.isArray(componentEvents)) {
|
|
192
207
|
return Array.isArray(props.events) ? componentEvents.concat.apply(componentEvents, _toConsumableArray(props.events)) : componentEvents;
|
|
@@ -213,7 +228,7 @@ function (_React$Component) {
|
|
|
213
228
|
}, {
|
|
214
229
|
key: "getExternalMutations",
|
|
215
230
|
value: function getExternalMutations(props, baseProps) {
|
|
216
|
-
return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(props.externalEventMutations) ?
|
|
231
|
+
return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(props.externalEventMutations) ? victory_core__WEBPACK_IMPORTED_MODULE_10__.getExternalMutationsWithChildren(props.externalEventMutations, baseProps, this.state, lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(baseProps)) : undefined;
|
|
217
232
|
}
|
|
218
233
|
}, {
|
|
219
234
|
key: "cacheSharedEvents",
|
|
@@ -228,7 +243,7 @@ function (_React$Component) {
|
|
|
228
243
|
sharedEvents = _ref2[0],
|
|
229
244
|
prevCacheValues = _ref2[1];
|
|
230
245
|
|
|
231
|
-
if (sharedEvents &&
|
|
246
|
+
if (sharedEvents && react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(cacheValues, prevCacheValues)) {
|
|
232
247
|
return sharedEvents;
|
|
233
248
|
}
|
|
234
249
|
|
|
@@ -258,7 +273,7 @@ function (_React$Component) {
|
|
|
258
273
|
}
|
|
259
274
|
};
|
|
260
275
|
|
|
261
|
-
var baseProps =
|
|
276
|
+
var baseProps = victory_core__WEBPACK_IMPORTED_MODULE_11__.reduceChildren(childComponents, iteratee);
|
|
262
277
|
return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_2___default()(baseProps);
|
|
263
278
|
}
|
|
264
279
|
}, {
|
|
@@ -274,7 +289,7 @@ function (_React$Component) {
|
|
|
274
289
|
if (child.props.children) {
|
|
275
290
|
var newChildren = react__WEBPACK_IMPORTED_MODULE_7___default().Children.toArray(child.props.children);
|
|
276
291
|
var names = childNames.slice(index, index + newChildren.length);
|
|
277
|
-
var results = react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(child, child.props, alterChildren(newChildren, names));
|
|
292
|
+
var results = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(child, child.props, alterChildren(newChildren, names));
|
|
278
293
|
return memo.concat(results);
|
|
279
294
|
} else if (childNames[index] !== "parent" && child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(child.type.getBaseProps)) {
|
|
280
295
|
var name = child.props.name || childNames[index];
|
|
@@ -285,7 +300,7 @@ function (_React$Component) {
|
|
|
285
300
|
|
|
286
301
|
return Array.isArray(event.childName) ? event.childName.indexOf(name) > -1 : event.childName === name || event.childName === "all";
|
|
287
302
|
});
|
|
288
|
-
var sharedEventsCacheValues = [name, baseProps, childEvents,
|
|
303
|
+
var sharedEventsCacheValues = [name, baseProps, childEvents, json_stringify_safe__WEBPACK_IMPORTED_MODULE_9___default()(_this6.state[name])];
|
|
289
304
|
var sharedEvents = _this6.getCachedSharedEvents(name, sharedEventsCacheValues) || {
|
|
290
305
|
events: childEvents,
|
|
291
306
|
// partially apply child name and baseProps,
|
|
@@ -300,7 +315,7 @@ function (_React$Component) {
|
|
|
300
315
|
|
|
301
316
|
_this6.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);
|
|
302
317
|
|
|
303
|
-
return memo.concat(react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(child, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({
|
|
318
|
+
return memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(child, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({
|
|
304
319
|
key: "events-".concat(name),
|
|
305
320
|
sharedEvents: sharedEvents,
|
|
306
321
|
eventKey: eventKey,
|
|
@@ -337,7 +352,7 @@ function (_React$Component) {
|
|
|
337
352
|
var container = props.container || props.groupComponent;
|
|
338
353
|
var role = container.type && container.type.role;
|
|
339
354
|
var containerProps = container.props || {};
|
|
340
|
-
var boundGetEvents =
|
|
355
|
+
var boundGetEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getEvents.bind(this);
|
|
341
356
|
var parentEvents = sharedEvents && boundGetEvents({
|
|
342
357
|
sharedEvents: sharedEvents
|
|
343
358
|
}, "parent");
|
|
@@ -346,13 +361,13 @@ function (_React$Component) {
|
|
|
346
361
|
children: children
|
|
347
362
|
});
|
|
348
363
|
|
|
349
|
-
var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({},
|
|
364
|
+
var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_10__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);
|
|
350
365
|
|
|
351
|
-
this.globalEvents =
|
|
352
|
-
var localEvents =
|
|
353
|
-
return role === "container" ? react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(container, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({}, parentProps, {
|
|
366
|
+
this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEvents(containerEvents);
|
|
367
|
+
var localEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.omitGlobalEvents(containerEvents);
|
|
368
|
+
return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(container, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({}, parentProps, {
|
|
354
369
|
events: localEvents
|
|
355
|
-
})) : react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(container, localEvents, children);
|
|
370
|
+
})) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(container, localEvents, children);
|
|
356
371
|
}
|
|
357
372
|
}, {
|
|
358
373
|
key: "render",
|
|
@@ -363,7 +378,7 @@ function (_React$Component) {
|
|
|
363
378
|
return this.getContainer(this.props, this.baseProps, events);
|
|
364
379
|
}
|
|
365
380
|
|
|
366
|
-
return react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(this.props.container, {
|
|
381
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(this.props.container, {
|
|
367
382
|
children: this.props.children
|
|
368
383
|
});
|
|
369
384
|
}
|
|
@@ -372,184 +387,31 @@ function (_React$Component) {
|
|
|
372
387
|
return VictorySharedEvents;
|
|
373
388
|
}((react__WEBPACK_IMPORTED_MODULE_7___default().Component));
|
|
374
389
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
})
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
events: prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({
|
|
396
|
-
childName: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array)]),
|
|
397
|
-
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
398
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
|
|
399
|
-
target: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)
|
|
400
|
-
})),
|
|
401
|
-
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({
|
|
402
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_8___default()["function"]),
|
|
403
|
-
childName: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array)]),
|
|
404
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().array), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
|
|
405
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_8___default()["function"]),
|
|
406
|
-
target: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array)])
|
|
407
|
-
})),
|
|
408
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)
|
|
409
|
-
}
|
|
410
|
-
});
|
|
411
|
-
Object.defineProperty(VictorySharedEvents, "defaultProps", {
|
|
412
|
-
configurable: true,
|
|
413
|
-
enumerable: true,
|
|
414
|
-
writable: true,
|
|
415
|
-
value: {
|
|
416
|
-
groupComponent: react__WEBPACK_IMPORTED_MODULE_7___default().createElement("g", null)
|
|
417
|
-
}
|
|
418
|
-
});
|
|
419
|
-
Object.defineProperty(VictorySharedEvents, "contextType", {
|
|
420
|
-
configurable: true,
|
|
421
|
-
enumerable: true,
|
|
422
|
-
writable: true,
|
|
423
|
-
value: victory_core__WEBPACK_IMPORTED_MODULE_14__["default"]
|
|
424
|
-
});
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
/***/ }),
|
|
428
|
-
|
|
429
|
-
/***/ "../../../node_modules/d3-timer/src/timer.js":
|
|
430
|
-
/*!***************************************************!*\
|
|
431
|
-
!*** ../../../node_modules/d3-timer/src/timer.js ***!
|
|
432
|
-
\***************************************************/
|
|
433
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
434
|
-
|
|
435
|
-
"use strict";
|
|
436
|
-
__webpack_require__.r(__webpack_exports__);
|
|
437
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
438
|
-
/* harmony export */ "now": () => (/* binding */ now),
|
|
439
|
-
/* harmony export */ "Timer": () => (/* binding */ Timer),
|
|
440
|
-
/* harmony export */ "timer": () => (/* binding */ timer),
|
|
441
|
-
/* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
|
|
442
|
-
/* harmony export */ });
|
|
443
|
-
var frame = 0, // is an animation frame pending?
|
|
444
|
-
timeout = 0, // is a timeout pending?
|
|
445
|
-
interval = 0, // are any timers active?
|
|
446
|
-
pokeDelay = 1000, // how frequently we check for clock skew
|
|
447
|
-
taskHead,
|
|
448
|
-
taskTail,
|
|
449
|
-
clockLast = 0,
|
|
450
|
-
clockNow = 0,
|
|
451
|
-
clockSkew = 0,
|
|
452
|
-
clock = typeof performance === "object" && performance.now ? performance : Date,
|
|
453
|
-
setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };
|
|
454
|
-
|
|
455
|
-
function now() {
|
|
456
|
-
return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
function clearNow() {
|
|
460
|
-
clockNow = 0;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
function Timer() {
|
|
464
|
-
this._call =
|
|
465
|
-
this._time =
|
|
466
|
-
this._next = null;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
Timer.prototype = timer.prototype = {
|
|
470
|
-
constructor: Timer,
|
|
471
|
-
restart: function(callback, delay, time) {
|
|
472
|
-
if (typeof callback !== "function") throw new TypeError("callback is not a function");
|
|
473
|
-
time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);
|
|
474
|
-
if (!this._next && taskTail !== this) {
|
|
475
|
-
if (taskTail) taskTail._next = this;
|
|
476
|
-
else taskHead = this;
|
|
477
|
-
taskTail = this;
|
|
478
|
-
}
|
|
479
|
-
this._call = callback;
|
|
480
|
-
this._time = time;
|
|
481
|
-
sleep();
|
|
482
|
-
},
|
|
483
|
-
stop: function() {
|
|
484
|
-
if (this._call) {
|
|
485
|
-
this._call = null;
|
|
486
|
-
this._time = Infinity;
|
|
487
|
-
sleep();
|
|
488
|
-
}
|
|
489
|
-
}
|
|
390
|
+
VictorySharedEvents.displayName = "VictorySharedEvents";
|
|
391
|
+
VictorySharedEvents.role = "shared-event-wrapper";
|
|
392
|
+
VictorySharedEvents.propTypes = {
|
|
393
|
+
children: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)]),
|
|
394
|
+
container: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node),
|
|
395
|
+
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)]),
|
|
396
|
+
events: prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({
|
|
397
|
+
childName: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array)]),
|
|
398
|
+
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().object),
|
|
399
|
+
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)]),
|
|
400
|
+
target: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)
|
|
401
|
+
})),
|
|
402
|
+
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({
|
|
403
|
+
callback: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),
|
|
404
|
+
childName: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array)]),
|
|
405
|
+
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().array), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)]),
|
|
406
|
+
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),
|
|
407
|
+
target: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array)])
|
|
408
|
+
})),
|
|
409
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)
|
|
490
410
|
};
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
return t;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
function timerFlush() {
|
|
499
|
-
now(); // Get the current time, if not already set.
|
|
500
|
-
++frame; // Pretend we’ve set an alarm, if we haven’t already.
|
|
501
|
-
var t = taskHead, e;
|
|
502
|
-
while (t) {
|
|
503
|
-
if ((e = clockNow - t._time) >= 0) t._call.call(null, e);
|
|
504
|
-
t = t._next;
|
|
505
|
-
}
|
|
506
|
-
--frame;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
function wake() {
|
|
510
|
-
clockNow = (clockLast = clock.now()) + clockSkew;
|
|
511
|
-
frame = timeout = 0;
|
|
512
|
-
try {
|
|
513
|
-
timerFlush();
|
|
514
|
-
} finally {
|
|
515
|
-
frame = 0;
|
|
516
|
-
nap();
|
|
517
|
-
clockNow = 0;
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
function poke() {
|
|
522
|
-
var now = clock.now(), delay = now - clockLast;
|
|
523
|
-
if (delay > pokeDelay) clockSkew -= delay, clockLast = now;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
function nap() {
|
|
527
|
-
var t0, t1 = taskHead, t2, time = Infinity;
|
|
528
|
-
while (t1) {
|
|
529
|
-
if (t1._call) {
|
|
530
|
-
if (time > t1._time) time = t1._time;
|
|
531
|
-
t0 = t1, t1 = t1._next;
|
|
532
|
-
} else {
|
|
533
|
-
t2 = t1._next, t1._next = null;
|
|
534
|
-
t1 = t0 ? t0._next = t2 : taskHead = t2;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
taskTail = t0;
|
|
538
|
-
sleep(time);
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
function sleep(time) {
|
|
542
|
-
if (frame) return; // Soonest alarm already set, or will be.
|
|
543
|
-
if (timeout) timeout = clearTimeout(timeout);
|
|
544
|
-
var delay = time - clockNow; // Strictly less than if we recomputed clockNow.
|
|
545
|
-
if (delay > 24) {
|
|
546
|
-
if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);
|
|
547
|
-
if (interval) interval = clearInterval(interval);
|
|
548
|
-
} else {
|
|
549
|
-
if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);
|
|
550
|
-
frame = 1, setFrame(wake);
|
|
551
|
-
}
|
|
552
|
-
}
|
|
411
|
+
VictorySharedEvents.defaultProps = {
|
|
412
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().createElement("g", null)
|
|
413
|
+
};
|
|
414
|
+
VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_14__["default"];
|
|
553
415
|
|
|
554
416
|
|
|
555
417
|
/***/ }),
|
|
@@ -5185,7 +5047,7 @@ var printWarning = function() {};
|
|
|
5185
5047
|
if (true) {
|
|
5186
5048
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
5187
5049
|
var loggedTypeFailures = {};
|
|
5188
|
-
var has =
|
|
5050
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
5189
5051
|
|
|
5190
5052
|
printWarning = function(text) {
|
|
5191
5053
|
var message = 'Warning: ' + text;
|
|
@@ -5197,7 +5059,7 @@ if (true) {
|
|
|
5197
5059
|
// This error was thrown as a convenience so that you can use this stack
|
|
5198
5060
|
// to find the callsite that caused this warning to fire.
|
|
5199
5061
|
throw new Error(message);
|
|
5200
|
-
} catch (x) {}
|
|
5062
|
+
} catch (x) { /**/ }
|
|
5201
5063
|
};
|
|
5202
5064
|
}
|
|
5203
5065
|
|
|
@@ -5226,7 +5088,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
5226
5088
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
5227
5089
|
var err = Error(
|
|
5228
5090
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
5229
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
5091
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
5092
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
5230
5093
|
);
|
|
5231
5094
|
err.name = 'Invariant Violation';
|
|
5232
5095
|
throw err;
|
|
@@ -5293,13 +5156,13 @@ module.exports = checkPropTypes;
|
|
|
5293
5156
|
|
|
5294
5157
|
|
|
5295
5158
|
|
|
5296
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
5159
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
5297
5160
|
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
|
|
5298
5161
|
|
|
5299
5162
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
5163
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
5300
5164
|
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/prop-types/checkPropTypes.js");
|
|
5301
5165
|
|
|
5302
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
5303
5166
|
var printWarning = function() {};
|
|
5304
5167
|
|
|
5305
5168
|
if (true) {
|
|
@@ -5400,6 +5263,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5400
5263
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
5401
5264
|
var ReactPropTypes = {
|
|
5402
5265
|
array: createPrimitiveTypeChecker('array'),
|
|
5266
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
5403
5267
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
5404
5268
|
func: createPrimitiveTypeChecker('function'),
|
|
5405
5269
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -5445,8 +5309,9 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5445
5309
|
* is prohibitively expensive if they are created too often, such as what
|
|
5446
5310
|
* happens in oneOfType() for any type before the one that matched.
|
|
5447
5311
|
*/
|
|
5448
|
-
function PropTypeError(message) {
|
|
5312
|
+
function PropTypeError(message, data) {
|
|
5449
5313
|
this.message = message;
|
|
5314
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
5450
5315
|
this.stack = '';
|
|
5451
5316
|
}
|
|
5452
5317
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -5481,7 +5346,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5481
5346
|
) {
|
|
5482
5347
|
printWarning(
|
|
5483
5348
|
'You are manually calling a React.PropTypes validation ' +
|
|
5484
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
5349
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
5485
5350
|
'and will throw in the standalone `prop-types` package. ' +
|
|
5486
5351
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
5487
5352
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -5520,7 +5385,10 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5520
5385
|
// 'of type `object`'.
|
|
5521
5386
|
var preciseType = getPreciseType(propValue);
|
|
5522
5387
|
|
|
5523
|
-
return new PropTypeError(
|
|
5388
|
+
return new PropTypeError(
|
|
5389
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
5390
|
+
{expectedType: expectedType}
|
|
5391
|
+
);
|
|
5524
5392
|
}
|
|
5525
5393
|
return null;
|
|
5526
5394
|
}
|
|
@@ -5664,14 +5532,19 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5664
5532
|
}
|
|
5665
5533
|
|
|
5666
5534
|
function validate(props, propName, componentName, location, propFullName) {
|
|
5535
|
+
var expectedTypes = [];
|
|
5667
5536
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
5668
5537
|
var checker = arrayOfTypeCheckers[i];
|
|
5669
|
-
|
|
5538
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
5539
|
+
if (checkerResult == null) {
|
|
5670
5540
|
return null;
|
|
5671
5541
|
}
|
|
5542
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
5543
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
5544
|
+
}
|
|
5672
5545
|
}
|
|
5673
|
-
|
|
5674
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
5546
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
5547
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
5675
5548
|
}
|
|
5676
5549
|
return createChainableTypeChecker(validate);
|
|
5677
5550
|
}
|
|
@@ -5686,6 +5559,13 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5686
5559
|
return createChainableTypeChecker(validate);
|
|
5687
5560
|
}
|
|
5688
5561
|
|
|
5562
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
5563
|
+
return new PropTypeError(
|
|
5564
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
5565
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
5566
|
+
);
|
|
5567
|
+
}
|
|
5568
|
+
|
|
5689
5569
|
function createShapeTypeChecker(shapeTypes) {
|
|
5690
5570
|
function validate(props, propName, componentName, location, propFullName) {
|
|
5691
5571
|
var propValue = props[propName];
|
|
@@ -5695,8 +5575,8 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5695
5575
|
}
|
|
5696
5576
|
for (var key in shapeTypes) {
|
|
5697
5577
|
var checker = shapeTypes[key];
|
|
5698
|
-
if (
|
|
5699
|
-
|
|
5578
|
+
if (typeof checker !== 'function') {
|
|
5579
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
5700
5580
|
}
|
|
5701
5581
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
5702
5582
|
if (error) {
|
|
@@ -5715,16 +5595,18 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5715
5595
|
if (propType !== 'object') {
|
|
5716
5596
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
5717
5597
|
}
|
|
5718
|
-
// We need to check all keys in case some are required but missing from
|
|
5719
|
-
// props.
|
|
5598
|
+
// We need to check all keys in case some are required but missing from props.
|
|
5720
5599
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
5721
5600
|
for (var key in allKeys) {
|
|
5722
5601
|
var checker = shapeTypes[key];
|
|
5602
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
5603
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
5604
|
+
}
|
|
5723
5605
|
if (!checker) {
|
|
5724
5606
|
return new PropTypeError(
|
|
5725
5607
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
5726
5608
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
5727
|
-
'\nValid keys: ' +
|
|
5609
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
5728
5610
|
);
|
|
5729
5611
|
}
|
|
5730
5612
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
@@ -5893,7 +5775,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
5893
5775
|
*/
|
|
5894
5776
|
|
|
5895
5777
|
if (true) {
|
|
5896
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
5778
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
5897
5779
|
|
|
5898
5780
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
5899
5781
|
// http://fb.me/prop-types-in-prod
|
|
@@ -5927,115 +5809,21 @@ module.exports = ReactPropTypesSecret;
|
|
|
5927
5809
|
|
|
5928
5810
|
/***/ }),
|
|
5929
5811
|
|
|
5930
|
-
/***/ "../../../node_modules/
|
|
5931
|
-
|
|
5932
|
-
!*** ../../../node_modules/
|
|
5933
|
-
|
|
5812
|
+
/***/ "../../../node_modules/prop-types/lib/has.js":
|
|
5813
|
+
/*!***************************************************!*\
|
|
5814
|
+
!*** ../../../node_modules/prop-types/lib/has.js ***!
|
|
5815
|
+
\***************************************************/
|
|
5934
5816
|
/***/ ((module) => {
|
|
5935
5817
|
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
var isArray = Array.isArray;
|
|
5940
|
-
var keyList = Object.keys;
|
|
5941
|
-
var hasProp = Object.prototype.hasOwnProperty;
|
|
5942
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
5943
|
-
|
|
5944
|
-
function equal(a, b) {
|
|
5945
|
-
// fast-deep-equal index.js 2.0.1
|
|
5946
|
-
if (a === b) return true;
|
|
5947
|
-
|
|
5948
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
5949
|
-
var arrA = isArray(a)
|
|
5950
|
-
, arrB = isArray(b)
|
|
5951
|
-
, i
|
|
5952
|
-
, length
|
|
5953
|
-
, key;
|
|
5954
|
-
|
|
5955
|
-
if (arrA && arrB) {
|
|
5956
|
-
length = a.length;
|
|
5957
|
-
if (length != b.length) return false;
|
|
5958
|
-
for (i = length; i-- !== 0;)
|
|
5959
|
-
if (!equal(a[i], b[i])) return false;
|
|
5960
|
-
return true;
|
|
5961
|
-
}
|
|
5962
|
-
|
|
5963
|
-
if (arrA != arrB) return false;
|
|
5964
|
-
|
|
5965
|
-
var dateA = a instanceof Date
|
|
5966
|
-
, dateB = b instanceof Date;
|
|
5967
|
-
if (dateA != dateB) return false;
|
|
5968
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
5969
|
-
|
|
5970
|
-
var regexpA = a instanceof RegExp
|
|
5971
|
-
, regexpB = b instanceof RegExp;
|
|
5972
|
-
if (regexpA != regexpB) return false;
|
|
5973
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
5974
|
-
|
|
5975
|
-
var keys = keyList(a);
|
|
5976
|
-
length = keys.length;
|
|
5977
|
-
|
|
5978
|
-
if (length !== keyList(b).length)
|
|
5979
|
-
return false;
|
|
5980
|
-
|
|
5981
|
-
for (i = length; i-- !== 0;)
|
|
5982
|
-
if (!hasProp.call(b, keys[i])) return false;
|
|
5983
|
-
// end fast-deep-equal
|
|
5984
|
-
|
|
5985
|
-
// start react-fast-compare
|
|
5986
|
-
// custom handling for DOM elements
|
|
5987
|
-
if (hasElementType && a instanceof Element && b instanceof Element)
|
|
5988
|
-
return a === b;
|
|
5989
|
-
|
|
5990
|
-
// custom handling for React
|
|
5991
|
-
for (i = length; i-- !== 0;) {
|
|
5992
|
-
key = keys[i];
|
|
5993
|
-
if (key === '_owner' && a.$$typeof) {
|
|
5994
|
-
// React-specific: avoid traversing React elements' _owner.
|
|
5995
|
-
// _owner contains circular references
|
|
5996
|
-
// and is not needed when comparing the actual elements (and not their owners)
|
|
5997
|
-
// .$$typeof and ._store on just reasonable markers of a react element
|
|
5998
|
-
continue;
|
|
5999
|
-
} else {
|
|
6000
|
-
// all other properties should be traversed as usual
|
|
6001
|
-
if (!equal(a[key], b[key])) return false;
|
|
6002
|
-
}
|
|
6003
|
-
}
|
|
6004
|
-
// end react-fast-compare
|
|
6005
|
-
|
|
6006
|
-
// fast-deep-equal index.js 2.0.1
|
|
6007
|
-
return true;
|
|
6008
|
-
}
|
|
6009
|
-
|
|
6010
|
-
return a !== a && b !== b;
|
|
6011
|
-
}
|
|
6012
|
-
// end fast-deep-equal
|
|
6013
|
-
|
|
6014
|
-
module.exports = function exportedEqual(a, b) {
|
|
6015
|
-
try {
|
|
6016
|
-
return equal(a, b);
|
|
6017
|
-
} catch (error) {
|
|
6018
|
-
if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
|
|
6019
|
-
// warn on circular references, don't crash
|
|
6020
|
-
// browsers give this different errors name and messages:
|
|
6021
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
6022
|
-
// firefox: "InternalError", too much recursion"
|
|
6023
|
-
// edge: "Error", "Out of stack space"
|
|
6024
|
-
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
|
6025
|
-
return false;
|
|
6026
|
-
}
|
|
6027
|
-
// some other error. we should definitely know about these
|
|
6028
|
-
throw error;
|
|
6029
|
-
}
|
|
6030
|
-
};
|
|
5818
|
+
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6031
5819
|
|
|
6032
5820
|
|
|
6033
5821
|
/***/ }),
|
|
6034
5822
|
|
|
6035
|
-
/***/ "../../../node_modules/react-is/cjs/react-is.development.js":
|
|
6036
|
-
|
|
6037
|
-
!*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
|
|
6038
|
-
|
|
5823
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
|
|
5824
|
+
/*!******************************************************************************************!*\
|
|
5825
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
|
|
5826
|
+
\******************************************************************************************/
|
|
6039
5827
|
/***/ ((__unused_webpack_module, exports) => {
|
|
6040
5828
|
|
|
6041
5829
|
"use strict";
|
|
@@ -6224,18 +6012,162 @@ exports.typeOf = typeOf;
|
|
|
6224
6012
|
|
|
6225
6013
|
/***/ }),
|
|
6226
6014
|
|
|
6227
|
-
/***/ "../../../node_modules/react-is/index.js":
|
|
6228
|
-
|
|
6229
|
-
!*** ../../../node_modules/react-is/index.js ***!
|
|
6230
|
-
|
|
6015
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
|
|
6016
|
+
/*!***********************************************************************!*\
|
|
6017
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
|
|
6018
|
+
\***********************************************************************/
|
|
6231
6019
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6232
6020
|
|
|
6233
6021
|
"use strict";
|
|
6234
6022
|
|
|
6235
6023
|
|
|
6236
6024
|
if (false) {} else {
|
|
6237
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
|
|
6025
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
|
|
6026
|
+
}
|
|
6027
|
+
|
|
6028
|
+
|
|
6029
|
+
/***/ }),
|
|
6030
|
+
|
|
6031
|
+
/***/ "../../../node_modules/react-fast-compare/index.js":
|
|
6032
|
+
/*!*********************************************************!*\
|
|
6033
|
+
!*** ../../../node_modules/react-fast-compare/index.js ***!
|
|
6034
|
+
\*********************************************************/
|
|
6035
|
+
/***/ ((module) => {
|
|
6036
|
+
|
|
6037
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
6038
|
+
|
|
6039
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
6040
|
+
var hasMap = typeof Map === 'function';
|
|
6041
|
+
var hasSet = typeof Set === 'function';
|
|
6042
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
6043
|
+
|
|
6044
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
6045
|
+
|
|
6046
|
+
function equal(a, b) {
|
|
6047
|
+
// START: fast-deep-equal es6/index.js 3.1.1
|
|
6048
|
+
if (a === b) return true;
|
|
6049
|
+
|
|
6050
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
6051
|
+
if (a.constructor !== b.constructor) return false;
|
|
6052
|
+
|
|
6053
|
+
var length, i, keys;
|
|
6054
|
+
if (Array.isArray(a)) {
|
|
6055
|
+
length = a.length;
|
|
6056
|
+
if (length != b.length) return false;
|
|
6057
|
+
for (i = length; i-- !== 0;)
|
|
6058
|
+
if (!equal(a[i], b[i])) return false;
|
|
6059
|
+
return true;
|
|
6060
|
+
}
|
|
6061
|
+
|
|
6062
|
+
// START: Modifications:
|
|
6063
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
6064
|
+
// to co-exist with es5.
|
|
6065
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
6066
|
+
// Basically, take:
|
|
6067
|
+
//
|
|
6068
|
+
// ```js
|
|
6069
|
+
// for (i of a.entries())
|
|
6070
|
+
// if (!b.has(i[0])) return false;
|
|
6071
|
+
// ```
|
|
6072
|
+
//
|
|
6073
|
+
// ... and convert to:
|
|
6074
|
+
//
|
|
6075
|
+
// ```js
|
|
6076
|
+
// it = a.entries();
|
|
6077
|
+
// while (!(i = it.next()).done)
|
|
6078
|
+
// if (!b.has(i.value[0])) return false;
|
|
6079
|
+
// ```
|
|
6080
|
+
//
|
|
6081
|
+
// **Note**: `i` access switches to `i.value`.
|
|
6082
|
+
var it;
|
|
6083
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
6084
|
+
if (a.size !== b.size) return false;
|
|
6085
|
+
it = a.entries();
|
|
6086
|
+
while (!(i = it.next()).done)
|
|
6087
|
+
if (!b.has(i.value[0])) return false;
|
|
6088
|
+
it = a.entries();
|
|
6089
|
+
while (!(i = it.next()).done)
|
|
6090
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
6091
|
+
return true;
|
|
6092
|
+
}
|
|
6093
|
+
|
|
6094
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
6095
|
+
if (a.size !== b.size) return false;
|
|
6096
|
+
it = a.entries();
|
|
6097
|
+
while (!(i = it.next()).done)
|
|
6098
|
+
if (!b.has(i.value[0])) return false;
|
|
6099
|
+
return true;
|
|
6100
|
+
}
|
|
6101
|
+
// END: Modifications
|
|
6102
|
+
|
|
6103
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
6104
|
+
length = a.length;
|
|
6105
|
+
if (length != b.length) return false;
|
|
6106
|
+
for (i = length; i-- !== 0;)
|
|
6107
|
+
if (a[i] !== b[i]) return false;
|
|
6108
|
+
return true;
|
|
6109
|
+
}
|
|
6110
|
+
|
|
6111
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
6112
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
6113
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
6114
|
+
|
|
6115
|
+
keys = Object.keys(a);
|
|
6116
|
+
length = keys.length;
|
|
6117
|
+
if (length !== Object.keys(b).length) return false;
|
|
6118
|
+
|
|
6119
|
+
for (i = length; i-- !== 0;)
|
|
6120
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
6121
|
+
// END: fast-deep-equal
|
|
6122
|
+
|
|
6123
|
+
// START: react-fast-compare
|
|
6124
|
+
// custom handling for DOM elements
|
|
6125
|
+
if (hasElementType && a instanceof Element) return false;
|
|
6126
|
+
|
|
6127
|
+
// custom handling for React/Preact
|
|
6128
|
+
for (i = length; i-- !== 0;) {
|
|
6129
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
6130
|
+
// React-specific: avoid traversing React elements' _owner
|
|
6131
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
6132
|
+
// __v = $_original / $_vnode
|
|
6133
|
+
// __o = $_owner
|
|
6134
|
+
// These properties contain circular references and are not needed when
|
|
6135
|
+
// comparing the actual elements (and not their owners)
|
|
6136
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
6137
|
+
|
|
6138
|
+
continue;
|
|
6139
|
+
}
|
|
6140
|
+
|
|
6141
|
+
// all other properties should be traversed as usual
|
|
6142
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
6143
|
+
}
|
|
6144
|
+
// END: react-fast-compare
|
|
6145
|
+
|
|
6146
|
+
// START: fast-deep-equal
|
|
6147
|
+
return true;
|
|
6148
|
+
}
|
|
6149
|
+
|
|
6150
|
+
return a !== a && b !== b;
|
|
6238
6151
|
}
|
|
6152
|
+
// end fast-deep-equal
|
|
6153
|
+
|
|
6154
|
+
module.exports = function isEqual(a, b) {
|
|
6155
|
+
try {
|
|
6156
|
+
return equal(a, b);
|
|
6157
|
+
} catch (error) {
|
|
6158
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
6159
|
+
// warn on circular references, don't crash
|
|
6160
|
+
// browsers give this different errors name and messages:
|
|
6161
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
6162
|
+
// firefox: "InternalError", too much recursion"
|
|
6163
|
+
// edge: "Error", "Out of stack space"
|
|
6164
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
6165
|
+
return false;
|
|
6166
|
+
}
|
|
6167
|
+
// some other error. we should definitely know about these
|
|
6168
|
+
throw error;
|
|
6169
|
+
}
|
|
6170
|
+
};
|
|
6239
6171
|
|
|
6240
6172
|
|
|
6241
6173
|
/***/ }),
|
|
@@ -6249,18 +6181,18 @@ if (false) {} else {
|
|
|
6249
6181
|
"use strict";
|
|
6250
6182
|
__webpack_require__.r(__webpack_exports__);
|
|
6251
6183
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6252
|
-
/* harmony export */ "
|
|
6253
|
-
/* harmony export */ "
|
|
6254
|
-
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
6184
|
+
/* harmony export */ "emulateReactEvent": () => (/* binding */ emulateReactEvent),
|
|
6185
|
+
/* harmony export */ "getComponentEvents": () => (/* binding */ getComponentEvents),
|
|
6255
6186
|
/* harmony export */ "getEventState": () => (/* binding */ getEventState),
|
|
6256
|
-
/* harmony export */ "
|
|
6257
|
-
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
6187
|
+
/* harmony export */ "getEvents": () => (/* binding */ getEvents),
|
|
6258
6188
|
/* harmony export */ "getExternalMutation": () => (/* binding */ getExternalMutation),
|
|
6259
|
-
/* harmony export */ "
|
|
6189
|
+
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
6190
|
+
/* harmony export */ "getExternalMutationsWithChildren": () => (/* binding */ getExternalMutationsWithChildren),
|
|
6260
6191
|
/* harmony export */ "getGlobalEventNameFromKey": () => (/* binding */ getGlobalEventNameFromKey),
|
|
6261
6192
|
/* harmony export */ "getGlobalEvents": () => (/* binding */ getGlobalEvents),
|
|
6262
|
-
/* harmony export */ "
|
|
6263
|
-
/* harmony export */ "
|
|
6193
|
+
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
6194
|
+
/* harmony export */ "getScopedEvents": () => (/* binding */ getScopedEvents),
|
|
6195
|
+
/* harmony export */ "omitGlobalEvents": () => (/* binding */ omitGlobalEvents)
|
|
6264
6196
|
/* harmony export */ });
|
|
6265
6197
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
6266
6198
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -6292,13 +6224,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6292
6224
|
|
|
6293
6225
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6294
6226
|
|
|
6295
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6227
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6296
6228
|
|
|
6297
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6229
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6298
6230
|
|
|
6299
|
-
function
|
|
6231
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6300
6232
|
|
|
6301
|
-
function
|
|
6233
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
6234
|
+
|
|
6235
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6236
|
+
|
|
6237
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6302
6238
|
|
|
6303
6239
|
var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
|
|
6304
6240
|
/* Returns all own and shared events that should be attached to a single target element,
|
|
@@ -6746,25 +6682,25 @@ var emulateReactEvent = function (event) {
|
|
|
6746
6682
|
"use strict";
|
|
6747
6683
|
__webpack_require__.r(__webpack_exports__);
|
|
6748
6684
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6749
|
-
/* harmony export */ "
|
|
6750
|
-
/* harmony export */ "
|
|
6751
|
-
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint),
|
|
6752
|
-
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
6753
|
-
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
6754
|
-
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
6755
|
-
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
6685
|
+
/* harmony export */ "createAccessor": () => (/* binding */ createAccessor),
|
|
6686
|
+
/* harmony export */ "degreesToRadians": () => (/* binding */ degreesToRadians),
|
|
6756
6687
|
/* harmony export */ "evaluateProp": () => (/* binding */ evaluateProp),
|
|
6757
6688
|
/* harmony export */ "evaluateStyle": () => (/* binding */ evaluateStyle),
|
|
6758
|
-
/* harmony export */ "
|
|
6759
|
-
/* harmony export */ "
|
|
6760
|
-
/* harmony export */ "
|
|
6689
|
+
/* harmony export */ "getCurrentAxis": () => (/* binding */ getCurrentAxis),
|
|
6690
|
+
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
6691
|
+
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
6692
|
+
/* harmony export */ "getPoint": () => (/* binding */ getPoint),
|
|
6761
6693
|
/* harmony export */ "getPolarOrigin": () => (/* binding */ getPolarOrigin),
|
|
6694
|
+
/* harmony export */ "getRadius": () => (/* binding */ getRadius),
|
|
6762
6695
|
/* harmony export */ "getRange": () => (/* binding */ getRange),
|
|
6763
|
-
/* harmony export */ "
|
|
6696
|
+
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
6697
|
+
/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
|
|
6698
|
+
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
6764
6699
|
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
6765
|
-
/* harmony export */ "
|
|
6700
|
+
/* harmony export */ "omit": () => (/* binding */ omit),
|
|
6701
|
+
/* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
|
|
6766
6702
|
/* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
|
|
6767
|
-
/* harmony export */ "
|
|
6703
|
+
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
|
|
6768
6704
|
/* harmony export */ });
|
|
6769
6705
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
6770
6706
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -6787,8 +6723,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6787
6723
|
|
|
6788
6724
|
|
|
6789
6725
|
|
|
6790
|
-
/* eslint-disable func-style */
|
|
6791
|
-
|
|
6792
6726
|
/* eslint-disable no-use-before-define */
|
|
6793
6727
|
|
|
6794
6728
|
|
|
@@ -7077,7 +7011,7 @@ function reduceChildren(children, iteratee) {
|
|
|
7077
7011
|
var nestedChildren = child.type && child.type.role === "stack" && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(child.type.getChildren) ? child.type.getChildren(childProps) : react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(child.props.children).map(function (c) {
|
|
7078
7012
|
var nestedChildProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(childProps, sharedProps));
|
|
7079
7013
|
|
|
7080
|
-
return react__WEBPACK_IMPORTED_MODULE_6___default().cloneElement(c, nestedChildProps);
|
|
7014
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default().cloneElement(c, nestedChildProps);
|
|
7081
7015
|
});
|
|
7082
7016
|
|
|
7083
7017
|
var _childNames = nestedChildren.map(function (c, i) {
|
|
@@ -7147,7 +7081,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7147
7081
|
|
|
7148
7082
|
/* eslint-disable no-console */
|
|
7149
7083
|
// TODO: Use "warning" npm module like React is switching to.
|
|
7150
|
-
// eslint-disable-next-line func-style
|
|
7151
7084
|
function warn(message) {
|
|
7152
7085
|
if (true) {
|
|
7153
7086
|
if (console && console.warn) {
|
|
@@ -7167,16 +7100,16 @@ function warn(message) {
|
|
|
7167
7100
|
"use strict";
|
|
7168
7101
|
__webpack_require__.r(__webpack_exports__);
|
|
7169
7102
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7170
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
7171
7103
|
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
7172
|
-
/* harmony export */ "
|
|
7173
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
7174
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
7104
|
+
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
7175
7105
|
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
7176
|
-
/* harmony export */ "
|
|
7106
|
+
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
7177
7107
|
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
7108
|
+
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
7178
7109
|
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
7179
|
-
/* harmony export */ "
|
|
7110
|
+
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
7111
|
+
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
7112
|
+
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
7180
7113
|
/* harmony export */ });
|
|
7181
7114
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/lodash/isRegExp.js");
|
|
7182
7115
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7184,9 +7117,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7184
7117
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
7185
7118
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
7186
7119
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
|
|
7187
|
-
/* harmony import */ var
|
|
7188
|
-
/* harmony import */ var
|
|
7189
|
-
/* harmony import */ var
|
|
7120
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
7121
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7122
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
7190
7123
|
|
|
7191
7124
|
|
|
7192
7125
|
|
|
@@ -7285,10 +7218,10 @@ function deprecated(propType, explanation) {
|
|
|
7285
7218
|
var value = props[propName];
|
|
7286
7219
|
|
|
7287
7220
|
if (value !== null && value !== undefined) {
|
|
7288
|
-
|
|
7221
|
+
_log__WEBPACK_IMPORTED_MODULE_3__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
7289
7222
|
}
|
|
7290
7223
|
|
|
7291
|
-
return
|
|
7224
|
+
return prop_types__WEBPACK_IMPORTED_MODULE_4___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
7292
7225
|
};
|
|
7293
7226
|
}
|
|
7294
7227
|
/**
|
|
@@ -7462,7 +7395,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7462
7395
|
* timer.
|
|
7463
7396
|
*/
|
|
7464
7397
|
|
|
7465
|
-
var TimerContext = react__WEBPACK_IMPORTED_MODULE_0___default().createContext({
|
|
7398
|
+
var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({
|
|
7466
7399
|
transitionTimer: new _timer__WEBPACK_IMPORTED_MODULE_1__["default"](),
|
|
7467
7400
|
animationTimer: new _timer__WEBPACK_IMPORTED_MODULE_1__["default"]()
|
|
7468
7401
|
});
|
|
@@ -7482,24 +7415,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7482
7415
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7483
7416
|
/* harmony export */ "default": () => (/* binding */ Timer)
|
|
7484
7417
|
/* harmony export */ });
|
|
7485
|
-
/* harmony import */ var
|
|
7418
|
+
/* harmony import */ var victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! victory-vendor/d3-timer */ "../../victory-vendor/node_modules/d3-timer/src/timer.js");
|
|
7486
7419
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7487
7420
|
|
|
7488
7421
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7489
7422
|
|
|
7490
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
7423
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7491
7424
|
|
|
7492
7425
|
|
|
7493
7426
|
|
|
7494
|
-
var Timer =
|
|
7495
|
-
/*#__PURE__*/
|
|
7496
|
-
function () {
|
|
7427
|
+
var Timer = /*#__PURE__*/function () {
|
|
7497
7428
|
function Timer() {
|
|
7429
|
+
var _this = this;
|
|
7430
|
+
|
|
7498
7431
|
_classCallCheck(this, Timer);
|
|
7499
7432
|
|
|
7433
|
+
this.shouldAnimate = void 0;
|
|
7434
|
+
this.subscribers = void 0;
|
|
7435
|
+
this.activeSubscriptions = void 0;
|
|
7436
|
+
this.timer = void 0;
|
|
7437
|
+
|
|
7438
|
+
this.loop = function () {
|
|
7439
|
+
_this.subscribers.forEach(function (s) {
|
|
7440
|
+
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
7441
|
+
});
|
|
7442
|
+
};
|
|
7443
|
+
|
|
7500
7444
|
this.shouldAnimate = true;
|
|
7501
7445
|
this.subscribers = [];
|
|
7502
|
-
this.loop = this.loop.bind(this);
|
|
7503
7446
|
this.timer = null;
|
|
7504
7447
|
this.activeSubscriptions = 0;
|
|
7505
7448
|
}
|
|
@@ -7514,18 +7457,11 @@ function () {
|
|
|
7514
7457
|
value: function resumeAnimation() {
|
|
7515
7458
|
this.shouldAnimate = true;
|
|
7516
7459
|
}
|
|
7517
|
-
}, {
|
|
7518
|
-
key: "loop",
|
|
7519
|
-
value: function loop() {
|
|
7520
|
-
this.subscribers.forEach(function (s) {
|
|
7521
|
-
s.callback((0,d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
7522
|
-
});
|
|
7523
|
-
}
|
|
7524
7460
|
}, {
|
|
7525
7461
|
key: "start",
|
|
7526
7462
|
value: function start() {
|
|
7527
7463
|
if (!this.timer) {
|
|
7528
|
-
this.timer = (0,
|
|
7464
|
+
this.timer = (0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.timer)(this.loop);
|
|
7529
7465
|
}
|
|
7530
7466
|
}
|
|
7531
7467
|
}, {
|
|
@@ -7541,7 +7477,7 @@ function () {
|
|
|
7541
7477
|
value: function subscribe(callback, duration) {
|
|
7542
7478
|
duration = this.shouldAnimate ? duration : 0;
|
|
7543
7479
|
var subscriptionID = this.subscribers.push({
|
|
7544
|
-
startTime: (0,
|
|
7480
|
+
startTime: (0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)(),
|
|
7545
7481
|
callback: callback,
|
|
7546
7482
|
duration: duration
|
|
7547
7483
|
});
|
|
@@ -7579,6 +7515,134 @@ function () {
|
|
|
7579
7515
|
"use strict";
|
|
7580
7516
|
module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
|
|
7581
7517
|
|
|
7518
|
+
/***/ }),
|
|
7519
|
+
|
|
7520
|
+
/***/ "../../victory-vendor/node_modules/d3-timer/src/timer.js":
|
|
7521
|
+
/*!***************************************************************!*\
|
|
7522
|
+
!*** ../../victory-vendor/node_modules/d3-timer/src/timer.js ***!
|
|
7523
|
+
\***************************************************************/
|
|
7524
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
7525
|
+
|
|
7526
|
+
"use strict";
|
|
7527
|
+
__webpack_require__.r(__webpack_exports__);
|
|
7528
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7529
|
+
/* harmony export */ "Timer": () => (/* binding */ Timer),
|
|
7530
|
+
/* harmony export */ "now": () => (/* binding */ now),
|
|
7531
|
+
/* harmony export */ "timer": () => (/* binding */ timer),
|
|
7532
|
+
/* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
|
|
7533
|
+
/* harmony export */ });
|
|
7534
|
+
var frame = 0, // is an animation frame pending?
|
|
7535
|
+
timeout = 0, // is a timeout pending?
|
|
7536
|
+
interval = 0, // are any timers active?
|
|
7537
|
+
pokeDelay = 1000, // how frequently we check for clock skew
|
|
7538
|
+
taskHead,
|
|
7539
|
+
taskTail,
|
|
7540
|
+
clockLast = 0,
|
|
7541
|
+
clockNow = 0,
|
|
7542
|
+
clockSkew = 0,
|
|
7543
|
+
clock = typeof performance === "object" && performance.now ? performance : Date,
|
|
7544
|
+
setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };
|
|
7545
|
+
|
|
7546
|
+
function now() {
|
|
7547
|
+
return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);
|
|
7548
|
+
}
|
|
7549
|
+
|
|
7550
|
+
function clearNow() {
|
|
7551
|
+
clockNow = 0;
|
|
7552
|
+
}
|
|
7553
|
+
|
|
7554
|
+
function Timer() {
|
|
7555
|
+
this._call =
|
|
7556
|
+
this._time =
|
|
7557
|
+
this._next = null;
|
|
7558
|
+
}
|
|
7559
|
+
|
|
7560
|
+
Timer.prototype = timer.prototype = {
|
|
7561
|
+
constructor: Timer,
|
|
7562
|
+
restart: function(callback, delay, time) {
|
|
7563
|
+
if (typeof callback !== "function") throw new TypeError("callback is not a function");
|
|
7564
|
+
time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);
|
|
7565
|
+
if (!this._next && taskTail !== this) {
|
|
7566
|
+
if (taskTail) taskTail._next = this;
|
|
7567
|
+
else taskHead = this;
|
|
7568
|
+
taskTail = this;
|
|
7569
|
+
}
|
|
7570
|
+
this._call = callback;
|
|
7571
|
+
this._time = time;
|
|
7572
|
+
sleep();
|
|
7573
|
+
},
|
|
7574
|
+
stop: function() {
|
|
7575
|
+
if (this._call) {
|
|
7576
|
+
this._call = null;
|
|
7577
|
+
this._time = Infinity;
|
|
7578
|
+
sleep();
|
|
7579
|
+
}
|
|
7580
|
+
}
|
|
7581
|
+
};
|
|
7582
|
+
|
|
7583
|
+
function timer(callback, delay, time) {
|
|
7584
|
+
var t = new Timer;
|
|
7585
|
+
t.restart(callback, delay, time);
|
|
7586
|
+
return t;
|
|
7587
|
+
}
|
|
7588
|
+
|
|
7589
|
+
function timerFlush() {
|
|
7590
|
+
now(); // Get the current time, if not already set.
|
|
7591
|
+
++frame; // Pretend we’ve set an alarm, if we haven’t already.
|
|
7592
|
+
var t = taskHead, e;
|
|
7593
|
+
while (t) {
|
|
7594
|
+
if ((e = clockNow - t._time) >= 0) t._call.call(undefined, e);
|
|
7595
|
+
t = t._next;
|
|
7596
|
+
}
|
|
7597
|
+
--frame;
|
|
7598
|
+
}
|
|
7599
|
+
|
|
7600
|
+
function wake() {
|
|
7601
|
+
clockNow = (clockLast = clock.now()) + clockSkew;
|
|
7602
|
+
frame = timeout = 0;
|
|
7603
|
+
try {
|
|
7604
|
+
timerFlush();
|
|
7605
|
+
} finally {
|
|
7606
|
+
frame = 0;
|
|
7607
|
+
nap();
|
|
7608
|
+
clockNow = 0;
|
|
7609
|
+
}
|
|
7610
|
+
}
|
|
7611
|
+
|
|
7612
|
+
function poke() {
|
|
7613
|
+
var now = clock.now(), delay = now - clockLast;
|
|
7614
|
+
if (delay > pokeDelay) clockSkew -= delay, clockLast = now;
|
|
7615
|
+
}
|
|
7616
|
+
|
|
7617
|
+
function nap() {
|
|
7618
|
+
var t0, t1 = taskHead, t2, time = Infinity;
|
|
7619
|
+
while (t1) {
|
|
7620
|
+
if (t1._call) {
|
|
7621
|
+
if (time > t1._time) time = t1._time;
|
|
7622
|
+
t0 = t1, t1 = t1._next;
|
|
7623
|
+
} else {
|
|
7624
|
+
t2 = t1._next, t1._next = null;
|
|
7625
|
+
t1 = t0 ? t0._next = t2 : taskHead = t2;
|
|
7626
|
+
}
|
|
7627
|
+
}
|
|
7628
|
+
taskTail = t0;
|
|
7629
|
+
sleep(time);
|
|
7630
|
+
}
|
|
7631
|
+
|
|
7632
|
+
function sleep(time) {
|
|
7633
|
+
if (frame) return; // Soonest alarm already set, or will be.
|
|
7634
|
+
if (timeout) timeout = clearTimeout(timeout);
|
|
7635
|
+
var delay = time - clockNow; // Strictly less than if we recomputed clockNow.
|
|
7636
|
+
if (delay > 24) {
|
|
7637
|
+
if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);
|
|
7638
|
+
if (interval) interval = clearInterval(interval);
|
|
7639
|
+
} else {
|
|
7640
|
+
if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);
|
|
7641
|
+
frame = 1, setFrame(wake);
|
|
7642
|
+
}
|
|
7643
|
+
}
|
|
7644
|
+
|
|
7645
|
+
|
|
7582
7646
|
/***/ })
|
|
7583
7647
|
|
|
7584
7648
|
/******/ });
|