@vitessce/feature-list 3.0.0 → 3.0.1
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/index.js +2697 -313
- package/dist-tsc/FeatureList.d.ts.map +1 -1
- package/dist-tsc/FeatureList.js +34 -19
- package/dist-tsc/FeatureListOptions.d.ts +2 -0
- package/dist-tsc/FeatureListOptions.d.ts.map +1 -0
- package/dist-tsc/FeatureListOptions.js +23 -0
- package/dist-tsc/FeatureListSubscriber.d.ts +4 -2
- package/dist-tsc/FeatureListSubscriber.d.ts.map +1 -1
- package/dist-tsc/FeatureListSubscriber.js +18 -7
- package/dist-tsc/constants.d.ts +3 -0
- package/dist-tsc/constants.d.ts.map +1 -0
- package/dist-tsc/constants.js +5 -0
- package/dist-tsc/selectable-table/SelectableTable.js +1 -1
- package/dist-tsc/selectable-table/SelectableTable.test.js +1 -1
- package/dist-tsc/selectable-table/styles.d.ts +1 -1
- package/dist-tsc/selectable-table/styles.d.ts.map +1 -1
- package/dist-tsc/selectable-table/styles.js +2 -2
- package/package.json +9 -9
- package/src/FeatureList.js +44 -24
- package/src/FeatureListOptions.js +101 -0
- package/src/FeatureListSubscriber.js +37 -10
- package/src/constants.js +6 -0
- package/src/selectable-table/SelectableTable.js +1 -1
- package/src/selectable-table/SelectableTable.test.jsx +1 -1
- package/src/selectable-table/styles.js +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React__default, { Children, isValidElement, cloneElement, useState, useEffect, useCallback, useMemo } from "react";
|
|
3
|
+
import { usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useCoordination, useFeatureLabelsData, useObsFeatureMatrixIndices, useReady, useUrls, TitleInfo } from "@vitessce/vit-s";
|
|
4
|
+
import * as ReactDOM from "react-dom";
|
|
5
|
+
import ReactDOM__default from "react-dom";
|
|
4
6
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
5
7
|
function getDefaultExportFromCjs(x) {
|
|
6
8
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -47,7 +49,7 @@ var reactJsxRuntime_development = {};
|
|
|
47
49
|
*/
|
|
48
50
|
{
|
|
49
51
|
(function() {
|
|
50
|
-
var
|
|
52
|
+
var React2 = React__default;
|
|
51
53
|
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
52
54
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
53
55
|
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
@@ -73,7 +75,7 @@ var reactJsxRuntime_development = {};
|
|
|
73
75
|
}
|
|
74
76
|
return null;
|
|
75
77
|
}
|
|
76
|
-
var ReactSharedInternals =
|
|
78
|
+
var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
77
79
|
function error(format) {
|
|
78
80
|
{
|
|
79
81
|
{
|
|
@@ -459,7 +461,7 @@ var reactJsxRuntime_development = {};
|
|
|
459
461
|
}
|
|
460
462
|
}
|
|
461
463
|
}
|
|
462
|
-
function checkPropTypes2(typeSpecs,
|
|
464
|
+
function checkPropTypes2(typeSpecs, values2, location, componentName, element) {
|
|
463
465
|
{
|
|
464
466
|
var has2 = Function.call.bind(hasOwnProperty2);
|
|
465
467
|
for (var typeSpecName in typeSpecs) {
|
|
@@ -471,7 +473,7 @@ var reactJsxRuntime_development = {};
|
|
|
471
473
|
err.name = "Invariant Violation";
|
|
472
474
|
throw err;
|
|
473
475
|
}
|
|
474
|
-
error$1 = typeSpecs[typeSpecName](
|
|
476
|
+
error$1 = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
475
477
|
} catch (ex) {
|
|
476
478
|
error$1 = ex;
|
|
477
479
|
}
|
|
@@ -665,10 +667,10 @@ var reactJsxRuntime_development = {};
|
|
|
665
667
|
}
|
|
666
668
|
}
|
|
667
669
|
if (type && type.defaultProps) {
|
|
668
|
-
var
|
|
669
|
-
for (propName in
|
|
670
|
+
var defaultProps2 = type.defaultProps;
|
|
671
|
+
for (propName in defaultProps2) {
|
|
670
672
|
if (props[propName] === void 0) {
|
|
671
|
-
props[propName] =
|
|
673
|
+
props[propName] = defaultProps2[propName];
|
|
672
674
|
}
|
|
673
675
|
}
|
|
674
676
|
}
|
|
@@ -701,7 +703,7 @@ var reactJsxRuntime_development = {};
|
|
|
701
703
|
{
|
|
702
704
|
propTypesMisspellWarningShown = false;
|
|
703
705
|
}
|
|
704
|
-
function
|
|
706
|
+
function isValidElement2(object) {
|
|
705
707
|
{
|
|
706
708
|
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
707
709
|
}
|
|
@@ -768,11 +770,11 @@ var reactJsxRuntime_development = {};
|
|
|
768
770
|
if (isArray2(node)) {
|
|
769
771
|
for (var i = 0; i < node.length; i++) {
|
|
770
772
|
var child2 = node[i];
|
|
771
|
-
if (
|
|
773
|
+
if (isValidElement2(child2)) {
|
|
772
774
|
validateExplicitKey(child2, parentType);
|
|
773
775
|
}
|
|
774
776
|
}
|
|
775
|
-
} else if (
|
|
777
|
+
} else if (isValidElement2(node)) {
|
|
776
778
|
if (node._store) {
|
|
777
779
|
node._store.validated = true;
|
|
778
780
|
}
|
|
@@ -783,7 +785,7 @@ var reactJsxRuntime_development = {};
|
|
|
783
785
|
var iterator2 = iteratorFn.call(node);
|
|
784
786
|
var step;
|
|
785
787
|
while (!(step = iterator2.next()).done) {
|
|
786
|
-
if (
|
|
788
|
+
if (isValidElement2(step.value)) {
|
|
787
789
|
validateExplicitKey(step.value, parentType);
|
|
788
790
|
}
|
|
789
791
|
}
|
|
@@ -1252,7 +1254,7 @@ function commaNumber(n) {
|
|
|
1252
1254
|
const nf = new Intl.NumberFormat("en-US");
|
|
1253
1255
|
return nf.format(n);
|
|
1254
1256
|
}
|
|
1255
|
-
function capitalize(word) {
|
|
1257
|
+
function capitalize$1(word) {
|
|
1256
1258
|
return word ? word.charAt(0).toUpperCase() + word.slice(1) : "";
|
|
1257
1259
|
}
|
|
1258
1260
|
function getNextScope(prevScopes) {
|
|
@@ -1521,7 +1523,7 @@ function constant(value) {
|
|
|
1521
1523
|
return value;
|
|
1522
1524
|
};
|
|
1523
1525
|
}
|
|
1524
|
-
var defineProperty$
|
|
1526
|
+
var defineProperty$2 = function() {
|
|
1525
1527
|
try {
|
|
1526
1528
|
var func = getNative(Object, "defineProperty");
|
|
1527
1529
|
func({}, "", {});
|
|
@@ -1529,9 +1531,9 @@ var defineProperty$1 = function() {
|
|
|
1529
1531
|
} catch (e) {
|
|
1530
1532
|
}
|
|
1531
1533
|
}();
|
|
1532
|
-
const defineProperty$
|
|
1533
|
-
var baseSetToString = !defineProperty$
|
|
1534
|
-
return defineProperty$
|
|
1534
|
+
const defineProperty$3 = defineProperty$2;
|
|
1535
|
+
var baseSetToString = !defineProperty$3 ? identity : function(func, string) {
|
|
1536
|
+
return defineProperty$3(func, "toString", {
|
|
1535
1537
|
"configurable": true,
|
|
1536
1538
|
"enumerable": false,
|
|
1537
1539
|
"value": constant(string),
|
|
@@ -1586,8 +1588,8 @@ function isIndex(value, length) {
|
|
|
1586
1588
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
1587
1589
|
}
|
|
1588
1590
|
function baseAssignValue(object, key, value) {
|
|
1589
|
-
if (key == "__proto__" && defineProperty$
|
|
1590
|
-
defineProperty$
|
|
1591
|
+
if (key == "__proto__" && defineProperty$3) {
|
|
1592
|
+
defineProperty$3(object, key, {
|
|
1591
1593
|
"configurable": true,
|
|
1592
1594
|
"enumerable": true,
|
|
1593
1595
|
"value": value,
|
|
@@ -2031,10 +2033,10 @@ function get$1(object, path, defaultValue) {
|
|
|
2031
2033
|
var result = object == null ? void 0 : baseGet(object, path);
|
|
2032
2034
|
return result === void 0 ? defaultValue : result;
|
|
2033
2035
|
}
|
|
2034
|
-
function arrayPush(array,
|
|
2035
|
-
var index2 = -1, length =
|
|
2036
|
+
function arrayPush(array, values2) {
|
|
2037
|
+
var index2 = -1, length = values2.length, offset = array.length;
|
|
2036
2038
|
while (++index2 < length) {
|
|
2037
|
-
array[offset + index2] =
|
|
2039
|
+
array[offset + index2] = values2[index2];
|
|
2038
2040
|
}
|
|
2039
2041
|
return array;
|
|
2040
2042
|
}
|
|
@@ -2368,11 +2370,11 @@ function setCacheAdd(value) {
|
|
|
2368
2370
|
function setCacheHas(value) {
|
|
2369
2371
|
return this.__data__.has(value);
|
|
2370
2372
|
}
|
|
2371
|
-
function SetCache(
|
|
2372
|
-
var index2 = -1, length =
|
|
2373
|
+
function SetCache(values2) {
|
|
2374
|
+
var index2 = -1, length = values2 == null ? 0 : values2.length;
|
|
2373
2375
|
this.__data__ = new MapCache();
|
|
2374
2376
|
while (++index2 < length) {
|
|
2375
|
-
this.add(
|
|
2377
|
+
this.add(values2[index2]);
|
|
2376
2378
|
}
|
|
2377
2379
|
}
|
|
2378
2380
|
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
@@ -2752,21 +2754,21 @@ function arrayIncludesWith(array, value, comparator2) {
|
|
|
2752
2754
|
return false;
|
|
2753
2755
|
}
|
|
2754
2756
|
var LARGE_ARRAY_SIZE$1 = 200;
|
|
2755
|
-
function baseDifference(array,
|
|
2756
|
-
var index2 = -1, includes = arrayIncludes, isCommon = true, length = array.length, result = [], valuesLength =
|
|
2757
|
+
function baseDifference(array, values2, iteratee, comparator2) {
|
|
2758
|
+
var index2 = -1, includes = arrayIncludes, isCommon = true, length = array.length, result = [], valuesLength = values2.length;
|
|
2757
2759
|
if (!length) {
|
|
2758
2760
|
return result;
|
|
2759
2761
|
}
|
|
2760
2762
|
if (iteratee) {
|
|
2761
|
-
|
|
2763
|
+
values2 = arrayMap(values2, baseUnary(iteratee));
|
|
2762
2764
|
}
|
|
2763
2765
|
if (comparator2) {
|
|
2764
2766
|
includes = arrayIncludesWith;
|
|
2765
2767
|
isCommon = false;
|
|
2766
|
-
} else if (
|
|
2768
|
+
} else if (values2.length >= LARGE_ARRAY_SIZE$1) {
|
|
2767
2769
|
includes = cacheHas;
|
|
2768
2770
|
isCommon = false;
|
|
2769
|
-
|
|
2771
|
+
values2 = new SetCache(values2);
|
|
2770
2772
|
}
|
|
2771
2773
|
outer:
|
|
2772
2774
|
while (++index2 < length) {
|
|
@@ -2775,19 +2777,19 @@ function baseDifference(array, values, iteratee, comparator2) {
|
|
|
2775
2777
|
if (isCommon && computed === computed) {
|
|
2776
2778
|
var valuesIndex = valuesLength;
|
|
2777
2779
|
while (valuesIndex--) {
|
|
2778
|
-
if (
|
|
2780
|
+
if (values2[valuesIndex] === computed) {
|
|
2779
2781
|
continue outer;
|
|
2780
2782
|
}
|
|
2781
2783
|
}
|
|
2782
2784
|
result.push(value);
|
|
2783
|
-
} else if (!includes(
|
|
2785
|
+
} else if (!includes(values2, computed, comparator2)) {
|
|
2784
2786
|
result.push(value);
|
|
2785
2787
|
}
|
|
2786
2788
|
}
|
|
2787
2789
|
return result;
|
|
2788
2790
|
}
|
|
2789
|
-
var difference = baseRest(function(array,
|
|
2790
|
-
return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(
|
|
2791
|
+
var difference = baseRest(function(array, values2) {
|
|
2792
|
+
return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true)) : [];
|
|
2791
2793
|
});
|
|
2792
2794
|
const difference$1 = difference;
|
|
2793
2795
|
function arrayEvery(array, predicate) {
|
|
@@ -2818,8 +2820,8 @@ function isEqual(value, other) {
|
|
|
2818
2820
|
return baseIsEqual(value, other);
|
|
2819
2821
|
}
|
|
2820
2822
|
var INFINITY = 1 / 0;
|
|
2821
|
-
var createSet = !(Set$2 && 1 / setToArray(new Set$2([, -0]))[1] == INFINITY) ? noop : function(
|
|
2822
|
-
return new Set$2(
|
|
2823
|
+
var createSet = !(Set$2 && 1 / setToArray(new Set$2([, -0]))[1] == INFINITY) ? noop : function(values2) {
|
|
2824
|
+
return new Set$2(values2);
|
|
2823
2825
|
};
|
|
2824
2826
|
const createSet$1 = createSet;
|
|
2825
2827
|
var LARGE_ARRAY_SIZE = 200;
|
|
@@ -6584,9 +6586,9 @@ ZodLiteral.create = (value, params) => {
|
|
|
6584
6586
|
...processCreateParams(params)
|
|
6585
6587
|
});
|
|
6586
6588
|
};
|
|
6587
|
-
function createZodEnum(
|
|
6589
|
+
function createZodEnum(values2, params) {
|
|
6588
6590
|
return new ZodEnum({
|
|
6589
|
-
values,
|
|
6591
|
+
values: values2,
|
|
6590
6592
|
typeName: ZodFirstPartyTypeKind.ZodEnum,
|
|
6591
6593
|
...processCreateParams(params)
|
|
6592
6594
|
});
|
|
@@ -6639,11 +6641,11 @@ class ZodEnum extends ZodType {
|
|
|
6639
6641
|
}
|
|
6640
6642
|
return enumValues;
|
|
6641
6643
|
}
|
|
6642
|
-
extract(
|
|
6643
|
-
return ZodEnum.create(
|
|
6644
|
+
extract(values2) {
|
|
6645
|
+
return ZodEnum.create(values2);
|
|
6644
6646
|
}
|
|
6645
|
-
exclude(
|
|
6646
|
-
return ZodEnum.create(this.options.filter((opt) => !
|
|
6647
|
+
exclude(values2) {
|
|
6648
|
+
return ZodEnum.create(this.options.filter((opt) => !values2.includes(opt)));
|
|
6647
6649
|
}
|
|
6648
6650
|
}
|
|
6649
6651
|
ZodEnum.create = createZodEnum;
|
|
@@ -6675,9 +6677,9 @@ class ZodNativeEnum extends ZodType {
|
|
|
6675
6677
|
return this._def.values;
|
|
6676
6678
|
}
|
|
6677
6679
|
}
|
|
6678
|
-
ZodNativeEnum.create = (
|
|
6680
|
+
ZodNativeEnum.create = (values2, params) => {
|
|
6679
6681
|
return new ZodNativeEnum({
|
|
6680
|
-
values,
|
|
6682
|
+
values: values2,
|
|
6681
6683
|
typeName: ZodFirstPartyTypeKind.ZodNativeEnum,
|
|
6682
6684
|
...processCreateParams(params)
|
|
6683
6685
|
});
|
|
@@ -7605,7 +7607,7 @@ function upgradeFrom1_0_0(config) {
|
|
|
7605
7607
|
const { coordinationSpace } = newConfig;
|
|
7606
7608
|
function replaceLayerType(layerType, cSpace) {
|
|
7607
7609
|
const isRaster = layerType === "raster";
|
|
7608
|
-
cSpace[`spatial${capitalize(layerType)}Layer${isRaster ? "s" : ""}`] = {};
|
|
7610
|
+
cSpace[`spatial${capitalize$1(layerType)}Layer${isRaster ? "s" : ""}`] = {};
|
|
7609
7611
|
Object.entries(cSpace.spatialLayers).forEach(([scope, layers]) => {
|
|
7610
7612
|
if (Array.isArray(layers) && layers.find((layer) => layer.type === layerType)) {
|
|
7611
7613
|
const typedLayers = layers.filter((layer) => layer.type === layerType).map((layer) => {
|
|
@@ -7613,9 +7615,9 @@ function upgradeFrom1_0_0(config) {
|
|
|
7613
7615
|
delete newLayer.type;
|
|
7614
7616
|
return newLayer;
|
|
7615
7617
|
});
|
|
7616
|
-
cSpace[`spatial${capitalize(layerType)}Layer${isRaster ? "s" : ""}`][scope] = isRaster ? typedLayers : typedLayers[0];
|
|
7618
|
+
cSpace[`spatial${capitalize$1(layerType)}Layer${isRaster ? "s" : ""}`][scope] = isRaster ? typedLayers : typedLayers[0];
|
|
7617
7619
|
} else {
|
|
7618
|
-
cSpace[`spatial${capitalize(layerType)}Layer${isRaster ? "s" : ""}`][scope] = null;
|
|
7620
|
+
cSpace[`spatial${capitalize$1(layerType)}Layer${isRaster ? "s" : ""}`][scope] = null;
|
|
7619
7621
|
}
|
|
7620
7622
|
});
|
|
7621
7623
|
}
|
|
@@ -7631,7 +7633,7 @@ function upgradeFrom1_0_0(config) {
|
|
|
7631
7633
|
function replaceCoordinationScope(layerType, cScopes) {
|
|
7632
7634
|
const isRaster = layerType === "raster";
|
|
7633
7635
|
if (["spatial", "layerController"].includes(newComponent.component) || newComponent.component === "description" && isRaster) {
|
|
7634
|
-
cScopes[`spatial${capitalize(layerType)}Layer${isRaster ? "s" : ""}`] = cScopes.spatialLayers;
|
|
7636
|
+
cScopes[`spatial${capitalize$1(layerType)}Layer${isRaster ? "s" : ""}`] = cScopes.spatialLayers;
|
|
7635
7637
|
}
|
|
7636
7638
|
}
|
|
7637
7639
|
if (newComponent.coordinationScopes && newComponent.coordinationScopes.spatialLayers) {
|
|
@@ -15796,7 +15798,7 @@ var json2csv_umd = { exports: {} };
|
|
|
15796
15798
|
return _assertThisInitialized2(self2);
|
|
15797
15799
|
}
|
|
15798
15800
|
function _toArray(arr) {
|
|
15799
|
-
return
|
|
15801
|
+
return _arrayWithHoles2(arr) || _iterableToArray2(arr) || _nonIterableRest2();
|
|
15800
15802
|
}
|
|
15801
15803
|
function _toConsumableArray2(arr) {
|
|
15802
15804
|
return _arrayWithoutHoles2(arr) || _iterableToArray2(arr) || _nonIterableSpread2();
|
|
@@ -15808,7 +15810,7 @@ var json2csv_umd = { exports: {} };
|
|
|
15808
15810
|
return arr2;
|
|
15809
15811
|
}
|
|
15810
15812
|
}
|
|
15811
|
-
function
|
|
15813
|
+
function _arrayWithHoles2(arr) {
|
|
15812
15814
|
if (Array.isArray(arr))
|
|
15813
15815
|
return arr;
|
|
15814
15816
|
}
|
|
@@ -15819,7 +15821,7 @@ var json2csv_umd = { exports: {} };
|
|
|
15819
15821
|
function _nonIterableSpread2() {
|
|
15820
15822
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
15821
15823
|
}
|
|
15822
|
-
function
|
|
15824
|
+
function _nonIterableRest2() {
|
|
15823
15825
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
15824
15826
|
}
|
|
15825
15827
|
var _endianness;
|
|
@@ -16185,7 +16187,7 @@ var json2csv_umd = { exports: {} };
|
|
|
16185
16187
|
return result === void 0 ? defaultValue : result;
|
|
16186
16188
|
}
|
|
16187
16189
|
var lodash_get = get3;
|
|
16188
|
-
function
|
|
16190
|
+
function getProp2(obj, path, defaultValue) {
|
|
16189
16191
|
return obj[path] === void 0 ? defaultValue : obj[path];
|
|
16190
16192
|
}
|
|
16191
16193
|
function setProp(obj, path, value) {
|
|
@@ -16232,7 +16234,7 @@ var json2csv_umd = { exports: {} };
|
|
|
16232
16234
|
}, "");
|
|
16233
16235
|
}
|
|
16234
16236
|
var utils = {
|
|
16235
|
-
getProp,
|
|
16237
|
+
getProp: getProp2,
|
|
16236
16238
|
setProp,
|
|
16237
16239
|
unsetProp,
|
|
16238
16240
|
fastJoin,
|
|
@@ -17339,19 +17341,19 @@ function rgbSpline(spline) {
|
|
|
17339
17341
|
return (t2) => [r2(t2), g(t2), b(t2)];
|
|
17340
17342
|
};
|
|
17341
17343
|
}
|
|
17342
|
-
function basis(
|
|
17344
|
+
function basis(values2) {
|
|
17343
17345
|
function innerBasis(t1, v0, v1, v2, v3) {
|
|
17344
17346
|
const t2 = t1 * t1;
|
|
17345
17347
|
const t3 = t2 * t1;
|
|
17346
17348
|
return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + (4 - 6 * t2 + 3 * t3) * v1 + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + t3 * v3) / 6;
|
|
17347
17349
|
}
|
|
17348
|
-
const n =
|
|
17350
|
+
const n = values2.length - 1;
|
|
17349
17351
|
return (t2) => {
|
|
17350
17352
|
const i = t2 <= 0 ? t2 = 0 : t2 >= 1 ? (t2 = 1, n - 1) : Math.floor(t2 * n);
|
|
17351
|
-
const v1 =
|
|
17352
|
-
const v2 =
|
|
17353
|
-
const v0 = i > 0 ?
|
|
17354
|
-
const v3 = i < n - 1 ?
|
|
17353
|
+
const v1 = values2[i];
|
|
17354
|
+
const v2 = values2[i + 1];
|
|
17355
|
+
const v0 = i > 0 ? values2[i - 1] : 2 * v1 - v2;
|
|
17356
|
+
const v3 = i < n - 1 ? values2[i + 2] : 2 * v2 - v1;
|
|
17355
17357
|
return innerBasis((t2 - i / n) * n, v0, v1, v2, v3);
|
|
17356
17358
|
};
|
|
17357
17359
|
}
|
|
@@ -17486,6 +17488,11 @@ var grey = {
|
|
|
17486
17488
|
A700: "#616161"
|
|
17487
17489
|
};
|
|
17488
17490
|
const grey$1 = grey;
|
|
17491
|
+
function chainPropTypes(propType1, propType2) {
|
|
17492
|
+
return function validate() {
|
|
17493
|
+
return propType1.apply(void 0, arguments) || propType2.apply(void 0, arguments);
|
|
17494
|
+
};
|
|
17495
|
+
}
|
|
17489
17496
|
function _extends$2() {
|
|
17490
17497
|
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
17491
17498
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -17531,7 +17538,7 @@ function deepmerge(target, source) {
|
|
|
17531
17538
|
return output;
|
|
17532
17539
|
}
|
|
17533
17540
|
var propTypes = { exports: {} };
|
|
17534
|
-
var reactIs$
|
|
17541
|
+
var reactIs$2 = { exports: {} };
|
|
17535
17542
|
var reactIs_development$1 = {};
|
|
17536
17543
|
/** @license React v16.13.1
|
|
17537
17544
|
* react-is.development.js
|
|
@@ -17689,15 +17696,15 @@ var reactIs_development$1 = {};
|
|
|
17689
17696
|
})();
|
|
17690
17697
|
}
|
|
17691
17698
|
{
|
|
17692
|
-
reactIs$
|
|
17699
|
+
reactIs$2.exports = reactIs_development$1;
|
|
17693
17700
|
}
|
|
17694
|
-
var reactIsExports$1 = reactIs$
|
|
17701
|
+
var reactIsExports$1 = reactIs$2.exports;
|
|
17695
17702
|
/*
|
|
17696
17703
|
object-assign
|
|
17697
17704
|
(c) Sindre Sorhus
|
|
17698
17705
|
@license MIT
|
|
17699
17706
|
*/
|
|
17700
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
17707
|
+
var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
|
|
17701
17708
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
17702
17709
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
17703
17710
|
function toObject(val) {
|
|
@@ -17749,8 +17756,8 @@ var objectAssign = shouldUseNative() ? Object.assign : function(target, source)
|
|
|
17749
17756
|
to[key] = from[key];
|
|
17750
17757
|
}
|
|
17751
17758
|
}
|
|
17752
|
-
if (getOwnPropertySymbols) {
|
|
17753
|
-
symbols = getOwnPropertySymbols(from);
|
|
17759
|
+
if (getOwnPropertySymbols$1) {
|
|
17760
|
+
symbols = getOwnPropertySymbols$1(from);
|
|
17754
17761
|
for (var i = 0; i < symbols.length; i++) {
|
|
17755
17762
|
if (propIsEnumerable.call(from, symbols[i])) {
|
|
17756
17763
|
to[symbols[i]] = from[symbols[i]];
|
|
@@ -17780,7 +17787,7 @@ var printWarning$1 = function() {
|
|
|
17780
17787
|
}
|
|
17781
17788
|
};
|
|
17782
17789
|
}
|
|
17783
|
-
function checkPropTypes$1(typeSpecs,
|
|
17790
|
+
function checkPropTypes$1(typeSpecs, values2, location, componentName, getStack) {
|
|
17784
17791
|
{
|
|
17785
17792
|
for (var typeSpecName in typeSpecs) {
|
|
17786
17793
|
if (has$1(typeSpecs, typeSpecName)) {
|
|
@@ -17793,7 +17800,7 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
|
|
|
17793
17800
|
err.name = "Invariant Violation";
|
|
17794
17801
|
throw err;
|
|
17795
17802
|
}
|
|
17796
|
-
error = typeSpecs[typeSpecName](
|
|
17803
|
+
error = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
|
|
17797
17804
|
} catch (ex) {
|
|
17798
17805
|
error = ex;
|
|
17799
17806
|
}
|
|
@@ -17841,7 +17848,7 @@ var printWarning = function() {
|
|
|
17841
17848
|
function emptyFunctionThatReturnsNull() {
|
|
17842
17849
|
return null;
|
|
17843
17850
|
}
|
|
17844
|
-
var factoryWithTypeCheckers = function(
|
|
17851
|
+
var factoryWithTypeCheckers = function(isValidElement2, throwOnDirectAccess) {
|
|
17845
17852
|
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
17846
17853
|
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
17847
17854
|
function getIteratorFn(maybeIterable) {
|
|
@@ -17969,7 +17976,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
17969
17976
|
function createElementTypeChecker() {
|
|
17970
17977
|
function validate(props, propName, componentName, location, propFullName) {
|
|
17971
17978
|
var propValue = props[propName];
|
|
17972
|
-
if (!
|
|
17979
|
+
if (!isValidElement2(propValue)) {
|
|
17973
17980
|
var propType = getPropType(propValue);
|
|
17974
17981
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
|
17975
17982
|
}
|
|
@@ -18157,7 +18164,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
18157
18164
|
if (Array.isArray(propValue)) {
|
|
18158
18165
|
return propValue.every(isNode);
|
|
18159
18166
|
}
|
|
18160
|
-
if (propValue === null ||
|
|
18167
|
+
if (propValue === null || isValidElement2(propValue)) {
|
|
18161
18168
|
return true;
|
|
18162
18169
|
}
|
|
18163
18170
|
var iteratorFn = getIteratorFn(propValue);
|
|
@@ -18262,6 +18269,26 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
18262
18269
|
}
|
|
18263
18270
|
var propTypesExports = propTypes.exports;
|
|
18264
18271
|
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
18272
|
+
function isClassComponent(elementType) {
|
|
18273
|
+
var _elementType$prototyp = elementType.prototype, prototype = _elementType$prototyp === void 0 ? {} : _elementType$prototyp;
|
|
18274
|
+
return Boolean(prototype.isReactComponent);
|
|
18275
|
+
}
|
|
18276
|
+
function elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {
|
|
18277
|
+
var propValue = props[propName];
|
|
18278
|
+
var safePropName = propFullName || propName;
|
|
18279
|
+
if (propValue == null) {
|
|
18280
|
+
return null;
|
|
18281
|
+
}
|
|
18282
|
+
var warningHint;
|
|
18283
|
+
if (typeof propValue === "function" && !isClassComponent(propValue)) {
|
|
18284
|
+
warningHint = "Did you accidentally provide a plain function component instead?";
|
|
18285
|
+
}
|
|
18286
|
+
if (warningHint !== void 0) {
|
|
18287
|
+
return new Error("Invalid ".concat(location, " `").concat(safePropName, "` supplied to `").concat(componentName, "`. ") + "Expected an element type that can hold a ref. ".concat(warningHint, " ") + "For more information see https://mui.com/r/caveat-with-refs-guide");
|
|
18288
|
+
}
|
|
18289
|
+
return null;
|
|
18290
|
+
}
|
|
18291
|
+
const elementTypeAcceptingRef$1 = chainPropTypes(propTypesExports.elementType, elementTypeAcceptingRef);
|
|
18265
18292
|
function _defineProperty(obj, key, value) {
|
|
18266
18293
|
if (key in obj) {
|
|
18267
18294
|
Object.defineProperty(obj, key, {
|
|
@@ -18289,7 +18316,7 @@ function exactProp(propTypes2) {
|
|
|
18289
18316
|
return null;
|
|
18290
18317
|
}));
|
|
18291
18318
|
}
|
|
18292
|
-
var reactIs = { exports: {} };
|
|
18319
|
+
var reactIs$1 = { exports: {} };
|
|
18293
18320
|
var reactIs_development = {};
|
|
18294
18321
|
/** @license React v17.0.2
|
|
18295
18322
|
* react-is.development.js
|
|
@@ -18481,9 +18508,9 @@ var reactIs_development = {};
|
|
|
18481
18508
|
})();
|
|
18482
18509
|
}
|
|
18483
18510
|
{
|
|
18484
|
-
reactIs.exports = reactIs_development;
|
|
18511
|
+
reactIs$1.exports = reactIs_development;
|
|
18485
18512
|
}
|
|
18486
|
-
var reactIsExports = reactIs.exports;
|
|
18513
|
+
var reactIsExports = reactIs$1.exports;
|
|
18487
18514
|
var fnNameMatchRegex = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
|
|
18488
18515
|
function getFunctionName(fn) {
|
|
18489
18516
|
var match = "".concat(fn).match(fnNameMatchRegex);
|
|
@@ -18520,6 +18547,8 @@ function getDisplayName(Component) {
|
|
|
18520
18547
|
}
|
|
18521
18548
|
return void 0;
|
|
18522
18549
|
}
|
|
18550
|
+
var refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);
|
|
18551
|
+
const refType$1 = refType;
|
|
18523
18552
|
function clamp(value) {
|
|
18524
18553
|
var min = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
18525
18554
|
var max = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
|
|
@@ -18545,10 +18574,10 @@ function hexToRgb(color) {
|
|
|
18545
18574
|
}
|
|
18546
18575
|
function hslToRgb(color) {
|
|
18547
18576
|
color = decomposeColor(color);
|
|
18548
|
-
var _color = color,
|
|
18549
|
-
var h =
|
|
18550
|
-
var s =
|
|
18551
|
-
var l =
|
|
18577
|
+
var _color = color, values2 = _color.values;
|
|
18578
|
+
var h = values2[0];
|
|
18579
|
+
var s = values2[1] / 100;
|
|
18580
|
+
var l = values2[2] / 100;
|
|
18552
18581
|
var a = s * Math.min(l, 1 - l);
|
|
18553
18582
|
var f = function f2(n) {
|
|
18554
18583
|
var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : (n + h / 30) % 12;
|
|
@@ -18558,7 +18587,7 @@ function hslToRgb(color) {
|
|
|
18558
18587
|
var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
|
|
18559
18588
|
if (color.type === "hsla") {
|
|
18560
18589
|
type += "a";
|
|
18561
|
-
rgb.push(
|
|
18590
|
+
rgb.push(values2[3]);
|
|
18562
18591
|
}
|
|
18563
18592
|
return recomposeColor({
|
|
18564
18593
|
type,
|
|
@@ -18577,27 +18606,27 @@ function decomposeColor(color) {
|
|
|
18577
18606
|
if (["rgb", "rgba", "hsl", "hsla"].indexOf(type) === -1) {
|
|
18578
18607
|
throw new Error("Material-UI: Unsupported `".concat(color, "` color.\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."));
|
|
18579
18608
|
}
|
|
18580
|
-
var
|
|
18581
|
-
|
|
18609
|
+
var values2 = color.substring(marker + 1, color.length - 1).split(",");
|
|
18610
|
+
values2 = values2.map(function(value) {
|
|
18582
18611
|
return parseFloat(value);
|
|
18583
18612
|
});
|
|
18584
18613
|
return {
|
|
18585
18614
|
type,
|
|
18586
|
-
values
|
|
18615
|
+
values: values2
|
|
18587
18616
|
};
|
|
18588
18617
|
}
|
|
18589
18618
|
function recomposeColor(color) {
|
|
18590
18619
|
var type = color.type;
|
|
18591
|
-
var
|
|
18620
|
+
var values2 = color.values;
|
|
18592
18621
|
if (type.indexOf("rgb") !== -1) {
|
|
18593
|
-
|
|
18622
|
+
values2 = values2.map(function(n, i) {
|
|
18594
18623
|
return i < 3 ? parseInt(n, 10) : n;
|
|
18595
18624
|
});
|
|
18596
18625
|
} else if (type.indexOf("hsl") !== -1) {
|
|
18597
|
-
|
|
18598
|
-
|
|
18626
|
+
values2[1] = "".concat(values2[1], "%");
|
|
18627
|
+
values2[2] = "".concat(values2[2], "%");
|
|
18599
18628
|
}
|
|
18600
|
-
return "".concat(type, "(").concat(
|
|
18629
|
+
return "".concat(type, "(").concat(values2.join(", "), ")");
|
|
18601
18630
|
}
|
|
18602
18631
|
function getContrastRatio(foreground, background) {
|
|
18603
18632
|
var lumA = getLuminance(foreground);
|
|
@@ -18613,6 +18642,15 @@ function getLuminance(color) {
|
|
|
18613
18642
|
});
|
|
18614
18643
|
return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
|
|
18615
18644
|
}
|
|
18645
|
+
function alpha(color, value) {
|
|
18646
|
+
color = decomposeColor(color);
|
|
18647
|
+
value = clamp(value);
|
|
18648
|
+
if (color.type === "rgb" || color.type === "hsl") {
|
|
18649
|
+
color.type += "a";
|
|
18650
|
+
}
|
|
18651
|
+
color.values[3] = value;
|
|
18652
|
+
return recomposeColor(color);
|
|
18653
|
+
}
|
|
18616
18654
|
function darken(color, coefficient) {
|
|
18617
18655
|
color = decomposeColor(color);
|
|
18618
18656
|
coefficient = clamp(coefficient);
|
|
@@ -18671,7 +18709,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
18671
18709
|
}
|
|
18672
18710
|
var keys = ["xs", "sm", "md", "lg", "xl"];
|
|
18673
18711
|
function createBreakpoints(breakpoints) {
|
|
18674
|
-
var _breakpoints$values = breakpoints.values,
|
|
18712
|
+
var _breakpoints$values = breakpoints.values, values2 = _breakpoints$values === void 0 ? {
|
|
18675
18713
|
xs: 0,
|
|
18676
18714
|
sm: 600,
|
|
18677
18715
|
md: 960,
|
|
@@ -18679,12 +18717,12 @@ function createBreakpoints(breakpoints) {
|
|
|
18679
18717
|
xl: 1920
|
|
18680
18718
|
} : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties(breakpoints, ["values", "unit", "step"]);
|
|
18681
18719
|
function up(key) {
|
|
18682
|
-
var value = typeof
|
|
18720
|
+
var value = typeof values2[key] === "number" ? values2[key] : key;
|
|
18683
18721
|
return "@media (min-width:".concat(value).concat(unit, ")");
|
|
18684
18722
|
}
|
|
18685
18723
|
function down(key) {
|
|
18686
18724
|
var endIndex = keys.indexOf(key) + 1;
|
|
18687
|
-
var upperbound =
|
|
18725
|
+
var upperbound = values2[keys[endIndex]];
|
|
18688
18726
|
if (endIndex === keys.length) {
|
|
18689
18727
|
return up("xs");
|
|
18690
18728
|
}
|
|
@@ -18696,7 +18734,7 @@ function createBreakpoints(breakpoints) {
|
|
|
18696
18734
|
if (endIndex === keys.length - 1) {
|
|
18697
18735
|
return up(start);
|
|
18698
18736
|
}
|
|
18699
|
-
return "@media (min-width:".concat(typeof
|
|
18737
|
+
return "@media (min-width:".concat(typeof values2[start] === "number" ? values2[start] : start).concat(unit, ") and ") + "(max-width:".concat((endIndex !== -1 && typeof values2[keys[endIndex + 1]] === "number" ? values2[keys[endIndex + 1]] : end) - step / 100).concat(unit, ")");
|
|
18700
18738
|
}
|
|
18701
18739
|
function only(key) {
|
|
18702
18740
|
return between(key, key);
|
|
@@ -18709,11 +18747,11 @@ function createBreakpoints(breakpoints) {
|
|
|
18709
18747
|
console.warn(["Material-UI: The `theme.breakpoints.width` utility is deprecated because it's redundant.", "Use the `theme.breakpoints.values` instead."].join("\n"));
|
|
18710
18748
|
}
|
|
18711
18749
|
}
|
|
18712
|
-
return
|
|
18750
|
+
return values2[key];
|
|
18713
18751
|
}
|
|
18714
18752
|
return _extends$2({
|
|
18715
18753
|
keys,
|
|
18716
|
-
values,
|
|
18754
|
+
values: values2,
|
|
18717
18755
|
up,
|
|
18718
18756
|
down,
|
|
18719
18757
|
between,
|
|
@@ -18725,15 +18763,15 @@ function createMixins(breakpoints, spacing, mixins) {
|
|
|
18725
18763
|
var _toolbar;
|
|
18726
18764
|
return _extends$2({
|
|
18727
18765
|
gutters: function gutters() {
|
|
18728
|
-
var
|
|
18766
|
+
var styles8 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
18729
18767
|
console.warn(["Material-UI: theme.mixins.gutters() is deprecated.", "You can use the source of the mixin directly:", "\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n"));
|
|
18730
18768
|
return _extends$2({
|
|
18731
18769
|
paddingLeft: spacing(2),
|
|
18732
18770
|
paddingRight: spacing(2)
|
|
18733
|
-
},
|
|
18771
|
+
}, styles8, _defineProperty({}, breakpoints.up("sm"), _extends$2({
|
|
18734
18772
|
paddingLeft: spacing(3),
|
|
18735
18773
|
paddingRight: spacing(3)
|
|
18736
|
-
},
|
|
18774
|
+
}, styles8[breakpoints.up("sm")])));
|
|
18737
18775
|
},
|
|
18738
18776
|
toolbar: (_toolbar = {
|
|
18739
18777
|
minHeight: 56
|
|
@@ -19010,6 +19048,79 @@ var shape = {
|
|
|
19010
19048
|
const shape$1 = shape;
|
|
19011
19049
|
var responsivePropType = PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]);
|
|
19012
19050
|
const responsivePropType$1 = responsivePropType;
|
|
19051
|
+
function _arrayLikeToArray$1(arr, len) {
|
|
19052
|
+
if (len == null || len > arr.length)
|
|
19053
|
+
len = arr.length;
|
|
19054
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
19055
|
+
arr2[i] = arr[i];
|
|
19056
|
+
}
|
|
19057
|
+
return arr2;
|
|
19058
|
+
}
|
|
19059
|
+
function _arrayWithoutHoles$1(arr) {
|
|
19060
|
+
if (Array.isArray(arr))
|
|
19061
|
+
return _arrayLikeToArray$1(arr);
|
|
19062
|
+
}
|
|
19063
|
+
function _iterableToArray$1(iter) {
|
|
19064
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
19065
|
+
return Array.from(iter);
|
|
19066
|
+
}
|
|
19067
|
+
function _unsupportedIterableToArray$1(o, minLen) {
|
|
19068
|
+
if (!o)
|
|
19069
|
+
return;
|
|
19070
|
+
if (typeof o === "string")
|
|
19071
|
+
return _arrayLikeToArray$1(o, minLen);
|
|
19072
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
19073
|
+
if (n === "Object" && o.constructor)
|
|
19074
|
+
n = o.constructor.name;
|
|
19075
|
+
if (n === "Map" || n === "Set")
|
|
19076
|
+
return Array.from(o);
|
|
19077
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
19078
|
+
return _arrayLikeToArray$1(o, minLen);
|
|
19079
|
+
}
|
|
19080
|
+
function _nonIterableSpread$1() {
|
|
19081
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19082
|
+
}
|
|
19083
|
+
function _toConsumableArray$1(arr) {
|
|
19084
|
+
return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1();
|
|
19085
|
+
}
|
|
19086
|
+
function _arrayWithHoles(arr) {
|
|
19087
|
+
if (Array.isArray(arr))
|
|
19088
|
+
return arr;
|
|
19089
|
+
}
|
|
19090
|
+
function _iterableToArrayLimit(arr, i) {
|
|
19091
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
19092
|
+
if (_i == null)
|
|
19093
|
+
return;
|
|
19094
|
+
var _arr = [];
|
|
19095
|
+
var _n = true;
|
|
19096
|
+
var _d = false;
|
|
19097
|
+
var _s, _e;
|
|
19098
|
+
try {
|
|
19099
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
19100
|
+
_arr.push(_s.value);
|
|
19101
|
+
if (i && _arr.length === i)
|
|
19102
|
+
break;
|
|
19103
|
+
}
|
|
19104
|
+
} catch (err) {
|
|
19105
|
+
_d = true;
|
|
19106
|
+
_e = err;
|
|
19107
|
+
} finally {
|
|
19108
|
+
try {
|
|
19109
|
+
if (!_n && _i["return"] != null)
|
|
19110
|
+
_i["return"]();
|
|
19111
|
+
} finally {
|
|
19112
|
+
if (_d)
|
|
19113
|
+
throw _e;
|
|
19114
|
+
}
|
|
19115
|
+
}
|
|
19116
|
+
return _arr;
|
|
19117
|
+
}
|
|
19118
|
+
function _nonIterableRest() {
|
|
19119
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19120
|
+
}
|
|
19121
|
+
function _slicedToArray(arr, i) {
|
|
19122
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
|
|
19123
|
+
}
|
|
19013
19124
|
var spacingKeys = ["m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY"];
|
|
19014
19125
|
function createUnarySpacing(theme) {
|
|
19015
19126
|
var themeSpacing = theme.spacing || 8;
|
|
@@ -19263,6 +19374,20 @@ function createGenerateClassName() {
|
|
|
19263
19374
|
return "".concat(seedPrefix).concat(suffix);
|
|
19264
19375
|
};
|
|
19265
19376
|
}
|
|
19377
|
+
function getThemeProps(params) {
|
|
19378
|
+
var theme = params.theme, name = params.name, props = params.props;
|
|
19379
|
+
if (!theme || !theme.props || !theme.props[name]) {
|
|
19380
|
+
return props;
|
|
19381
|
+
}
|
|
19382
|
+
var defaultProps2 = theme.props[name];
|
|
19383
|
+
var propName;
|
|
19384
|
+
for (propName in defaultProps2) {
|
|
19385
|
+
if (props[propName] === void 0) {
|
|
19386
|
+
props[propName] = defaultProps2[propName];
|
|
19387
|
+
}
|
|
19388
|
+
}
|
|
19389
|
+
return props;
|
|
19390
|
+
}
|
|
19266
19391
|
var isProduction = false;
|
|
19267
19392
|
function warning(condition, message) {
|
|
19268
19393
|
if (!isProduction) {
|
|
@@ -19343,19 +19468,19 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
19343
19468
|
});
|
|
19344
19469
|
return Constructor;
|
|
19345
19470
|
}
|
|
19346
|
-
function _setPrototypeOf(o, p) {
|
|
19347
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
19471
|
+
function _setPrototypeOf$1(o, p) {
|
|
19472
|
+
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
19348
19473
|
o2.__proto__ = p2;
|
|
19349
19474
|
return o2;
|
|
19350
19475
|
};
|
|
19351
|
-
return _setPrototypeOf(o, p);
|
|
19476
|
+
return _setPrototypeOf$1(o, p);
|
|
19352
19477
|
}
|
|
19353
|
-
function _inheritsLoose(subClass, superClass) {
|
|
19478
|
+
function _inheritsLoose$1(subClass, superClass) {
|
|
19354
19479
|
subClass.prototype = Object.create(superClass.prototype);
|
|
19355
19480
|
subClass.prototype.constructor = subClass;
|
|
19356
|
-
_setPrototypeOf(subClass, superClass);
|
|
19481
|
+
_setPrototypeOf$1(subClass, superClass);
|
|
19357
19482
|
}
|
|
19358
|
-
function _assertThisInitialized(self2) {
|
|
19483
|
+
function _assertThisInitialized$1(self2) {
|
|
19359
19484
|
if (self2 === void 0) {
|
|
19360
19485
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
19361
19486
|
}
|
|
@@ -19562,7 +19687,7 @@ var BaseStyleRule = /* @__PURE__ */ function() {
|
|
|
19562
19687
|
return BaseStyleRule2;
|
|
19563
19688
|
}();
|
|
19564
19689
|
var StyleRule = /* @__PURE__ */ function(_BaseStyleRule) {
|
|
19565
|
-
_inheritsLoose(StyleRule2, _BaseStyleRule);
|
|
19690
|
+
_inheritsLoose$1(StyleRule2, _BaseStyleRule);
|
|
19566
19691
|
function StyleRule2(key, style, options) {
|
|
19567
19692
|
var _this;
|
|
19568
19693
|
_this = _BaseStyleRule.call(this, key, style, options) || this;
|
|
@@ -19570,7 +19695,7 @@ var StyleRule = /* @__PURE__ */ function(_BaseStyleRule) {
|
|
|
19570
19695
|
if (selector) {
|
|
19571
19696
|
_this.selectorText = selector;
|
|
19572
19697
|
} else if (scoped !== false) {
|
|
19573
|
-
_this.id = generateId(_assertThisInitialized(_assertThisInitialized(_this)), sheet);
|
|
19698
|
+
_this.id = generateId(_assertThisInitialized$1(_assertThisInitialized$1(_this)), sheet);
|
|
19574
19699
|
_this.selectorText = "." + escape(_this.id);
|
|
19575
19700
|
}
|
|
19576
19701
|
return _this;
|
|
@@ -19639,7 +19764,7 @@ var defaultToStringOptions = {
|
|
|
19639
19764
|
};
|
|
19640
19765
|
var atRegExp = /@([\w-]+)/;
|
|
19641
19766
|
var ConditionalRule = /* @__PURE__ */ function() {
|
|
19642
|
-
function ConditionalRule2(key,
|
|
19767
|
+
function ConditionalRule2(key, styles8, options) {
|
|
19643
19768
|
this.type = "conditional";
|
|
19644
19769
|
this.isProcessed = false;
|
|
19645
19770
|
this.key = key;
|
|
@@ -19650,8 +19775,8 @@ var ConditionalRule = /* @__PURE__ */ function() {
|
|
|
19650
19775
|
this.rules = new RuleList(_extends$1({}, options, {
|
|
19651
19776
|
parent: this
|
|
19652
19777
|
}));
|
|
19653
|
-
for (var name in
|
|
19654
|
-
this.rules.add(name,
|
|
19778
|
+
for (var name in styles8) {
|
|
19779
|
+
this.rules.add(name, styles8[name]);
|
|
19655
19780
|
}
|
|
19656
19781
|
this.rules.process();
|
|
19657
19782
|
}
|
|
@@ -19694,8 +19819,8 @@ var ConditionalRule = /* @__PURE__ */ function() {
|
|
|
19694
19819
|
}();
|
|
19695
19820
|
var keyRegExp = /@media|@supports\s+/;
|
|
19696
19821
|
var pluginConditionalRule = {
|
|
19697
|
-
onCreateRule: function onCreateRule2(key,
|
|
19698
|
-
return keyRegExp.test(key) ? new ConditionalRule(key,
|
|
19822
|
+
onCreateRule: function onCreateRule2(key, styles8, options) {
|
|
19823
|
+
return keyRegExp.test(key) ? new ConditionalRule(key, styles8, options) : null;
|
|
19699
19824
|
}
|
|
19700
19825
|
};
|
|
19701
19826
|
var defaultToStringOptions$1 = {
|
|
@@ -19800,7 +19925,7 @@ var pluginKeyframesRule = {
|
|
|
19800
19925
|
}
|
|
19801
19926
|
};
|
|
19802
19927
|
var KeyframeRule = /* @__PURE__ */ function(_BaseStyleRule) {
|
|
19803
|
-
_inheritsLoose(KeyframeRule2, _BaseStyleRule);
|
|
19928
|
+
_inheritsLoose$1(KeyframeRule2, _BaseStyleRule);
|
|
19804
19929
|
function KeyframeRule2() {
|
|
19805
19930
|
return _BaseStyleRule.apply(this, arguments) || this;
|
|
19806
19931
|
}
|
|
@@ -20076,7 +20201,7 @@ var RuleList = /* @__PURE__ */ function() {
|
|
|
20076
20201
|
return RuleList2;
|
|
20077
20202
|
}();
|
|
20078
20203
|
var StyleSheet = /* @__PURE__ */ function() {
|
|
20079
|
-
function StyleSheet2(
|
|
20204
|
+
function StyleSheet2(styles8, options) {
|
|
20080
20205
|
this.attached = false;
|
|
20081
20206
|
this.deployed = false;
|
|
20082
20207
|
this.classes = {};
|
|
@@ -20091,8 +20216,8 @@ var StyleSheet = /* @__PURE__ */ function() {
|
|
|
20091
20216
|
this.renderer = new options.Renderer(this);
|
|
20092
20217
|
}
|
|
20093
20218
|
this.rules = new RuleList(this.options);
|
|
20094
|
-
for (var name in
|
|
20095
|
-
this.rules.add(name,
|
|
20219
|
+
for (var name in styles8) {
|
|
20220
|
+
this.rules.add(name, styles8[name]);
|
|
20096
20221
|
}
|
|
20097
20222
|
this.rules.process();
|
|
20098
20223
|
}
|
|
@@ -20168,10 +20293,10 @@ var StyleSheet = /* @__PURE__ */ function() {
|
|
|
20168
20293
|
this.renderer.insertRule(rule);
|
|
20169
20294
|
}
|
|
20170
20295
|
};
|
|
20171
|
-
_proto.addRules = function addRules(
|
|
20296
|
+
_proto.addRules = function addRules(styles8, options) {
|
|
20172
20297
|
var added = [];
|
|
20173
|
-
for (var name in
|
|
20174
|
-
var rule = this.addRule(name,
|
|
20298
|
+
for (var name in styles8) {
|
|
20299
|
+
var rule = this.addRule(name, styles8[name], options);
|
|
20175
20300
|
if (rule)
|
|
20176
20301
|
added.push(rule);
|
|
20177
20302
|
}
|
|
@@ -20714,7 +20839,7 @@ var Jss = /* @__PURE__ */ function() {
|
|
|
20714
20839
|
this.use.apply(this, options.plugins);
|
|
20715
20840
|
return this;
|
|
20716
20841
|
};
|
|
20717
|
-
_proto.createStyleSheet = function createStyleSheet(
|
|
20842
|
+
_proto.createStyleSheet = function createStyleSheet(styles8, options) {
|
|
20718
20843
|
if (options === void 0) {
|
|
20719
20844
|
options = {};
|
|
20720
20845
|
}
|
|
@@ -20722,7 +20847,7 @@ var Jss = /* @__PURE__ */ function() {
|
|
|
20722
20847
|
if (typeof index2 !== "number") {
|
|
20723
20848
|
index2 = sheets.index === 0 ? 0 : sheets.index + 1;
|
|
20724
20849
|
}
|
|
20725
|
-
var sheet = new StyleSheet(
|
|
20850
|
+
var sheet = new StyleSheet(styles8, _extends$1({}, options, {
|
|
20726
20851
|
jss: this,
|
|
20727
20852
|
generateId: options.generateId || this.generateId,
|
|
20728
20853
|
insertionPoint: this.options.insertionPoint,
|
|
@@ -20779,10 +20904,10 @@ var createJss = function createJss2(options) {
|
|
|
20779
20904
|
return new Jss(options);
|
|
20780
20905
|
};
|
|
20781
20906
|
var hasCSSTOMSupport = typeof CSS === "object" && CSS != null && "number" in CSS;
|
|
20782
|
-
function getDynamicStyles(
|
|
20907
|
+
function getDynamicStyles(styles8) {
|
|
20783
20908
|
var to = null;
|
|
20784
|
-
for (var key in
|
|
20785
|
-
var value =
|
|
20909
|
+
for (var key in styles8) {
|
|
20910
|
+
var value = styles8[key];
|
|
20786
20911
|
var type = typeof value;
|
|
20787
20912
|
if (type === "function") {
|
|
20788
20913
|
if (!to)
|
|
@@ -20852,7 +20977,7 @@ const functions = functionPlugin;
|
|
|
20852
20977
|
var at = "@global";
|
|
20853
20978
|
var atPrefix = "@global ";
|
|
20854
20979
|
var GlobalContainerRule = /* @__PURE__ */ function() {
|
|
20855
|
-
function GlobalContainerRule2(key,
|
|
20980
|
+
function GlobalContainerRule2(key, styles8, options) {
|
|
20856
20981
|
this.type = "global";
|
|
20857
20982
|
this.at = at;
|
|
20858
20983
|
this.isProcessed = false;
|
|
@@ -20861,8 +20986,8 @@ var GlobalContainerRule = /* @__PURE__ */ function() {
|
|
|
20861
20986
|
this.rules = new RuleList(_extends$2({}, options, {
|
|
20862
20987
|
parent: this
|
|
20863
20988
|
}));
|
|
20864
|
-
for (var selector in
|
|
20865
|
-
this.rules.add(selector,
|
|
20989
|
+
for (var selector in styles8) {
|
|
20990
|
+
this.rules.add(selector, styles8[selector]);
|
|
20866
20991
|
}
|
|
20867
20992
|
this.rules.process();
|
|
20868
20993
|
}
|
|
@@ -20944,14 +21069,14 @@ function handlePrefixedGlobalRule(rule, sheet) {
|
|
|
20944
21069
|
}
|
|
20945
21070
|
}
|
|
20946
21071
|
function jssGlobal() {
|
|
20947
|
-
function onCreateRule8(name,
|
|
21072
|
+
function onCreateRule8(name, styles8, options) {
|
|
20948
21073
|
if (!name)
|
|
20949
21074
|
return null;
|
|
20950
21075
|
if (name === at) {
|
|
20951
|
-
return new GlobalContainerRule(name,
|
|
21076
|
+
return new GlobalContainerRule(name, styles8, options);
|
|
20952
21077
|
}
|
|
20953
21078
|
if (name[0] === "@" && name.substr(0, atPrefix.length) === atPrefix) {
|
|
20954
|
-
return new GlobalPrefixedRule(name,
|
|
21079
|
+
return new GlobalPrefixedRule(name, styles8, options);
|
|
20955
21080
|
}
|
|
20956
21081
|
var parent = options.parent;
|
|
20957
21082
|
if (parent) {
|
|
@@ -21854,15 +21979,15 @@ var multiKeyStore = {
|
|
|
21854
21979
|
}
|
|
21855
21980
|
};
|
|
21856
21981
|
const multiKeyStore$1 = multiKeyStore;
|
|
21857
|
-
var ThemeContext =
|
|
21982
|
+
var ThemeContext = React__default.createContext(null);
|
|
21858
21983
|
{
|
|
21859
21984
|
ThemeContext.displayName = "ThemeContext";
|
|
21860
21985
|
}
|
|
21861
21986
|
const ThemeContext$1 = ThemeContext;
|
|
21862
21987
|
function useTheme() {
|
|
21863
|
-
var theme =
|
|
21988
|
+
var theme = React__default.useContext(ThemeContext$1);
|
|
21864
21989
|
{
|
|
21865
|
-
|
|
21990
|
+
React__default.useDebugValue(theme);
|
|
21866
21991
|
}
|
|
21867
21992
|
return theme;
|
|
21868
21993
|
}
|
|
@@ -21877,14 +22002,14 @@ var defaultOptions = {
|
|
|
21877
22002
|
sheetsManager,
|
|
21878
22003
|
sheetsRegistry: null
|
|
21879
22004
|
};
|
|
21880
|
-
var StylesContext =
|
|
22005
|
+
var StylesContext = React__default.createContext(defaultOptions);
|
|
21881
22006
|
{
|
|
21882
22007
|
StylesContext.displayName = "StylesContext";
|
|
21883
22008
|
}
|
|
21884
22009
|
var injectFirstNode;
|
|
21885
22010
|
function StylesProvider(props) {
|
|
21886
22011
|
var children = props.children, _props$injectFirst = props.injectFirst, injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst, _props$disableGenerat = props.disableGeneration, disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat, localOptions = _objectWithoutProperties(props, ["children", "injectFirst", "disableGeneration"]);
|
|
21887
|
-
var outerOptions =
|
|
22012
|
+
var outerOptions = React__default.useContext(StylesContext);
|
|
21888
22013
|
var context = _extends$2({}, outerOptions, {
|
|
21889
22014
|
disableGeneration
|
|
21890
22015
|
}, localOptions);
|
|
@@ -21914,7 +22039,7 @@ function StylesProvider(props) {
|
|
|
21914
22039
|
insertionPoint: injectFirstNode
|
|
21915
22040
|
});
|
|
21916
22041
|
}
|
|
21917
|
-
return /* @__PURE__ */
|
|
22042
|
+
return /* @__PURE__ */ React__default.createElement(StylesContext.Provider, {
|
|
21918
22043
|
value: context
|
|
21919
22044
|
}, children);
|
|
21920
22045
|
}
|
|
@@ -21996,9 +22121,9 @@ function getStylesCreator(stylesOrCreator) {
|
|
|
21996
22121
|
}
|
|
21997
22122
|
return {
|
|
21998
22123
|
create: function create2(theme, name) {
|
|
21999
|
-
var
|
|
22124
|
+
var styles8;
|
|
22000
22125
|
try {
|
|
22001
|
-
|
|
22126
|
+
styles8 = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator;
|
|
22002
22127
|
} catch (err) {
|
|
22003
22128
|
{
|
|
22004
22129
|
if (themingEnabled === true && theme === noopTheme$1) {
|
|
@@ -22008,10 +22133,10 @@ function getStylesCreator(stylesOrCreator) {
|
|
|
22008
22133
|
throw err;
|
|
22009
22134
|
}
|
|
22010
22135
|
if (!name || !theme.overrides || !theme.overrides[name]) {
|
|
22011
|
-
return
|
|
22136
|
+
return styles8;
|
|
22012
22137
|
}
|
|
22013
22138
|
var overrides = theme.overrides[name];
|
|
22014
|
-
var stylesWithOverrides = _extends$2({},
|
|
22139
|
+
var stylesWithOverrides = _extends$2({}, styles8);
|
|
22015
22140
|
Object.keys(overrides).forEach(function(key) {
|
|
22016
22141
|
{
|
|
22017
22142
|
if (!stylesWithOverrides[key]) {
|
|
@@ -22083,9 +22208,9 @@ function attach(_ref2, props) {
|
|
|
22083
22208
|
if (stylesOptions.sheetsCache) {
|
|
22084
22209
|
staticSheet = multiKeyStore$1.get(stylesOptions.sheetsCache, stylesCreator, theme);
|
|
22085
22210
|
}
|
|
22086
|
-
var
|
|
22211
|
+
var styles8 = stylesCreator.create(theme, name);
|
|
22087
22212
|
if (!staticSheet) {
|
|
22088
|
-
staticSheet = stylesOptions.jss.createStyleSheet(
|
|
22213
|
+
staticSheet = stylesOptions.jss.createStyleSheet(styles8, _extends$2({
|
|
22089
22214
|
link: false
|
|
22090
22215
|
}, options));
|
|
22091
22216
|
staticSheet.attach();
|
|
@@ -22097,7 +22222,7 @@ function attach(_ref2, props) {
|
|
|
22097
22222
|
sheetsRegistry.add(staticSheet);
|
|
22098
22223
|
}
|
|
22099
22224
|
sheetManager.staticSheet = staticSheet;
|
|
22100
|
-
sheetManager.dynamicStyles = getDynamicStyles(
|
|
22225
|
+
sheetManager.dynamicStyles = getDynamicStyles(styles8);
|
|
22101
22226
|
}
|
|
22102
22227
|
if (sheetManager.dynamicStyles) {
|
|
22103
22228
|
var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends$2({
|
|
@@ -22146,17 +22271,17 @@ function detach(_ref4) {
|
|
|
22146
22271
|
}
|
|
22147
22272
|
}
|
|
22148
22273
|
}
|
|
22149
|
-
function useSynchronousEffect(func,
|
|
22150
|
-
var key =
|
|
22274
|
+
function useSynchronousEffect(func, values2) {
|
|
22275
|
+
var key = React__default.useRef([]);
|
|
22151
22276
|
var output;
|
|
22152
|
-
var currentKey =
|
|
22277
|
+
var currentKey = React__default.useMemo(function() {
|
|
22153
22278
|
return {};
|
|
22154
|
-
},
|
|
22279
|
+
}, values2);
|
|
22155
22280
|
if (key.current !== currentKey) {
|
|
22156
22281
|
key.current = currentKey;
|
|
22157
22282
|
output = func();
|
|
22158
22283
|
}
|
|
22159
|
-
|
|
22284
|
+
React__default.useEffect(
|
|
22160
22285
|
function() {
|
|
22161
22286
|
return function() {
|
|
22162
22287
|
if (output) {
|
|
@@ -22182,9 +22307,9 @@ function makeStyles$1(stylesOrCreator) {
|
|
|
22182
22307
|
var useStyles2 = function useStyles3() {
|
|
22183
22308
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
22184
22309
|
var theme = useTheme() || defaultTheme2;
|
|
22185
|
-
var stylesOptions = _extends$2({},
|
|
22186
|
-
var instance =
|
|
22187
|
-
var shouldUpdate =
|
|
22310
|
+
var stylesOptions = _extends$2({}, React__default.useContext(StylesContext), stylesOptions2);
|
|
22311
|
+
var instance = React__default.useRef();
|
|
22312
|
+
var shouldUpdate = React__default.useRef();
|
|
22188
22313
|
useSynchronousEffect(function() {
|
|
22189
22314
|
var current = {
|
|
22190
22315
|
name,
|
|
@@ -22200,7 +22325,7 @@ function makeStyles$1(stylesOrCreator) {
|
|
|
22200
22325
|
detach(current);
|
|
22201
22326
|
};
|
|
22202
22327
|
}, [theme, stylesCreator]);
|
|
22203
|
-
|
|
22328
|
+
React__default.useEffect(function() {
|
|
22204
22329
|
if (shouldUpdate.current) {
|
|
22205
22330
|
update(instance.current, props);
|
|
22206
22331
|
}
|
|
@@ -22208,7 +22333,7 @@ function makeStyles$1(stylesOrCreator) {
|
|
|
22208
22333
|
});
|
|
22209
22334
|
var classes = getClasses(instance.current, props.classes, Component);
|
|
22210
22335
|
{
|
|
22211
|
-
|
|
22336
|
+
React__default.useDebugValue(classes);
|
|
22212
22337
|
}
|
|
22213
22338
|
return classes;
|
|
22214
22339
|
};
|
|
@@ -22237,6 +22362,165 @@ const clsx_m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
22237
22362
|
clsx,
|
|
22238
22363
|
default: clsx
|
|
22239
22364
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
22365
|
+
var reactIs = reactIsExports$1;
|
|
22366
|
+
var REACT_STATICS = {
|
|
22367
|
+
childContextTypes: true,
|
|
22368
|
+
contextType: true,
|
|
22369
|
+
contextTypes: true,
|
|
22370
|
+
defaultProps: true,
|
|
22371
|
+
displayName: true,
|
|
22372
|
+
getDefaultProps: true,
|
|
22373
|
+
getDerivedStateFromError: true,
|
|
22374
|
+
getDerivedStateFromProps: true,
|
|
22375
|
+
mixins: true,
|
|
22376
|
+
propTypes: true,
|
|
22377
|
+
type: true
|
|
22378
|
+
};
|
|
22379
|
+
var KNOWN_STATICS = {
|
|
22380
|
+
name: true,
|
|
22381
|
+
length: true,
|
|
22382
|
+
prototype: true,
|
|
22383
|
+
caller: true,
|
|
22384
|
+
callee: true,
|
|
22385
|
+
arguments: true,
|
|
22386
|
+
arity: true
|
|
22387
|
+
};
|
|
22388
|
+
var FORWARD_REF_STATICS = {
|
|
22389
|
+
"$$typeof": true,
|
|
22390
|
+
render: true,
|
|
22391
|
+
defaultProps: true,
|
|
22392
|
+
displayName: true,
|
|
22393
|
+
propTypes: true
|
|
22394
|
+
};
|
|
22395
|
+
var MEMO_STATICS = {
|
|
22396
|
+
"$$typeof": true,
|
|
22397
|
+
compare: true,
|
|
22398
|
+
defaultProps: true,
|
|
22399
|
+
displayName: true,
|
|
22400
|
+
propTypes: true,
|
|
22401
|
+
type: true
|
|
22402
|
+
};
|
|
22403
|
+
var TYPE_STATICS = {};
|
|
22404
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
22405
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
22406
|
+
function getStatics(component) {
|
|
22407
|
+
if (reactIs.isMemo(component)) {
|
|
22408
|
+
return MEMO_STATICS;
|
|
22409
|
+
}
|
|
22410
|
+
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
|
22411
|
+
}
|
|
22412
|
+
var defineProperty$1 = Object.defineProperty;
|
|
22413
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
22414
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
22415
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22416
|
+
var getPrototypeOf$1 = Object.getPrototypeOf;
|
|
22417
|
+
var objectPrototype = Object.prototype;
|
|
22418
|
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
22419
|
+
if (typeof sourceComponent !== "string") {
|
|
22420
|
+
if (objectPrototype) {
|
|
22421
|
+
var inheritedComponent = getPrototypeOf$1(sourceComponent);
|
|
22422
|
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
22423
|
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
22424
|
+
}
|
|
22425
|
+
}
|
|
22426
|
+
var keys2 = getOwnPropertyNames(sourceComponent);
|
|
22427
|
+
if (getOwnPropertySymbols) {
|
|
22428
|
+
keys2 = keys2.concat(getOwnPropertySymbols(sourceComponent));
|
|
22429
|
+
}
|
|
22430
|
+
var targetStatics = getStatics(targetComponent);
|
|
22431
|
+
var sourceStatics = getStatics(sourceComponent);
|
|
22432
|
+
for (var i = 0; i < keys2.length; ++i) {
|
|
22433
|
+
var key = keys2[i];
|
|
22434
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
22435
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
22436
|
+
try {
|
|
22437
|
+
defineProperty$1(targetComponent, key, descriptor);
|
|
22438
|
+
} catch (e) {
|
|
22439
|
+
}
|
|
22440
|
+
}
|
|
22441
|
+
}
|
|
22442
|
+
}
|
|
22443
|
+
return targetComponent;
|
|
22444
|
+
}
|
|
22445
|
+
var hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
22446
|
+
const hoistNonReactStatics$1 = /* @__PURE__ */ getDefaultExportFromCjs(hoistNonReactStatics_cjs);
|
|
22447
|
+
var withStyles$1 = function withStyles(stylesOrCreator) {
|
|
22448
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
22449
|
+
return function(Component) {
|
|
22450
|
+
var defaultTheme2 = options.defaultTheme, _options$withTheme = options.withTheme, withTheme = _options$withTheme === void 0 ? false : _options$withTheme, name = options.name, stylesOptions = _objectWithoutProperties(options, ["defaultTheme", "withTheme", "name"]);
|
|
22451
|
+
{
|
|
22452
|
+
if (Component === void 0) {
|
|
22453
|
+
throw new Error(["You are calling withStyles(styles)(Component) with an undefined component.", "You may have forgotten to import it."].join("\n"));
|
|
22454
|
+
}
|
|
22455
|
+
}
|
|
22456
|
+
var classNamePrefix = name;
|
|
22457
|
+
{
|
|
22458
|
+
if (!name) {
|
|
22459
|
+
var displayName = getDisplayName(Component);
|
|
22460
|
+
if (displayName !== void 0) {
|
|
22461
|
+
classNamePrefix = displayName;
|
|
22462
|
+
}
|
|
22463
|
+
}
|
|
22464
|
+
}
|
|
22465
|
+
var useStyles2 = makeStyles$1(stylesOrCreator, _extends$2({
|
|
22466
|
+
defaultTheme: defaultTheme2,
|
|
22467
|
+
Component,
|
|
22468
|
+
name: name || Component.displayName,
|
|
22469
|
+
classNamePrefix
|
|
22470
|
+
}, stylesOptions));
|
|
22471
|
+
var WithStyles = /* @__PURE__ */ React__default.forwardRef(function WithStyles2(props, ref) {
|
|
22472
|
+
props.classes;
|
|
22473
|
+
var innerRef = props.innerRef, other = _objectWithoutProperties(props, ["classes", "innerRef"]);
|
|
22474
|
+
var classes = useStyles2(_extends$2({}, Component.defaultProps, props));
|
|
22475
|
+
var theme;
|
|
22476
|
+
var more = other;
|
|
22477
|
+
if (typeof name === "string" || withTheme) {
|
|
22478
|
+
theme = useTheme() || defaultTheme2;
|
|
22479
|
+
if (name) {
|
|
22480
|
+
more = getThemeProps({
|
|
22481
|
+
theme,
|
|
22482
|
+
name,
|
|
22483
|
+
props: other
|
|
22484
|
+
});
|
|
22485
|
+
}
|
|
22486
|
+
if (withTheme && !more.theme) {
|
|
22487
|
+
more.theme = theme;
|
|
22488
|
+
}
|
|
22489
|
+
}
|
|
22490
|
+
return /* @__PURE__ */ React__default.createElement(Component, _extends$2({
|
|
22491
|
+
ref: innerRef || ref,
|
|
22492
|
+
classes
|
|
22493
|
+
}, more));
|
|
22494
|
+
});
|
|
22495
|
+
WithStyles.propTypes = {
|
|
22496
|
+
/**
|
|
22497
|
+
* Override or extend the styles applied to the component.
|
|
22498
|
+
*/
|
|
22499
|
+
classes: PropTypes.object,
|
|
22500
|
+
/**
|
|
22501
|
+
* Use that prop to pass a ref to the decorated component.
|
|
22502
|
+
* @deprecated
|
|
22503
|
+
*/
|
|
22504
|
+
innerRef: chainPropTypes(PropTypes.oneOfType([PropTypes.func, PropTypes.object]), function(props) {
|
|
22505
|
+
if (props.innerRef == null) {
|
|
22506
|
+
return null;
|
|
22507
|
+
}
|
|
22508
|
+
return null;
|
|
22509
|
+
})
|
|
22510
|
+
};
|
|
22511
|
+
{
|
|
22512
|
+
WithStyles.displayName = "WithStyles(".concat(getDisplayName(Component), ")");
|
|
22513
|
+
}
|
|
22514
|
+
hoistNonReactStatics$1(WithStyles, Component);
|
|
22515
|
+
{
|
|
22516
|
+
WithStyles.Naked = Component;
|
|
22517
|
+
WithStyles.options = options;
|
|
22518
|
+
WithStyles.useStyles = useStyles2;
|
|
22519
|
+
}
|
|
22520
|
+
return WithStyles;
|
|
22521
|
+
};
|
|
22522
|
+
};
|
|
22523
|
+
const withStylesWithoutDefault = withStyles$1;
|
|
22240
22524
|
var defaultTheme = createTheme();
|
|
22241
22525
|
const defaultTheme$1 = defaultTheme;
|
|
22242
22526
|
function makeStyles(stylesOrCreator) {
|
|
@@ -22245,111 +22529,2086 @@ function makeStyles(stylesOrCreator) {
|
|
|
22245
22529
|
defaultTheme: defaultTheme$1
|
|
22246
22530
|
}, options));
|
|
22247
22531
|
}
|
|
22248
|
-
|
|
22249
|
-
|
|
22250
|
-
|
|
22251
|
-
|
|
22252
|
-
|
|
22253
|
-
|
|
22254
|
-
|
|
22532
|
+
function withStyles2(stylesOrCreator, options) {
|
|
22533
|
+
return withStylesWithoutDefault(stylesOrCreator, _extends$2({
|
|
22534
|
+
defaultTheme: defaultTheme$1
|
|
22535
|
+
}, options));
|
|
22536
|
+
}
|
|
22537
|
+
function capitalize(string) {
|
|
22538
|
+
if (typeof string !== "string") {
|
|
22539
|
+
throw new Error("Material-UI: capitalize(string) expects a string argument.");
|
|
22255
22540
|
}
|
|
22256
|
-
|
|
22257
|
-
}
|
|
22258
|
-
var
|
|
22259
|
-
|
|
22260
|
-
|
|
22261
|
-
|
|
22262
|
-
|
|
22263
|
-
|
|
22264
|
-
|
|
22265
|
-
|
|
22266
|
-
|
|
22267
|
-
|
|
22268
|
-
|
|
22269
|
-
"
|
|
22270
|
-
|
|
22271
|
-
|
|
22272
|
-
|
|
22273
|
-
|
|
22274
|
-
|
|
22541
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
22542
|
+
}
|
|
22543
|
+
var styles$7 = function styles(theme) {
|
|
22544
|
+
return {
|
|
22545
|
+
/* Styles applied to the root element. */
|
|
22546
|
+
root: {
|
|
22547
|
+
userSelect: "none",
|
|
22548
|
+
width: "1em",
|
|
22549
|
+
height: "1em",
|
|
22550
|
+
display: "inline-block",
|
|
22551
|
+
fill: "currentColor",
|
|
22552
|
+
flexShrink: 0,
|
|
22553
|
+
fontSize: theme.typography.pxToRem(24),
|
|
22554
|
+
transition: theme.transitions.create("fill", {
|
|
22555
|
+
duration: theme.transitions.duration.shorter
|
|
22556
|
+
})
|
|
22557
|
+
},
|
|
22558
|
+
/* Styles applied to the root element if `color="primary"`. */
|
|
22559
|
+
colorPrimary: {
|
|
22560
|
+
color: theme.palette.primary.main
|
|
22561
|
+
},
|
|
22562
|
+
/* Styles applied to the root element if `color="secondary"`. */
|
|
22563
|
+
colorSecondary: {
|
|
22564
|
+
color: theme.palette.secondary.main
|
|
22565
|
+
},
|
|
22566
|
+
/* Styles applied to the root element if `color="action"`. */
|
|
22567
|
+
colorAction: {
|
|
22568
|
+
color: theme.palette.action.active
|
|
22569
|
+
},
|
|
22570
|
+
/* Styles applied to the root element if `color="error"`. */
|
|
22571
|
+
colorError: {
|
|
22572
|
+
color: theme.palette.error.main
|
|
22573
|
+
},
|
|
22574
|
+
/* Styles applied to the root element if `color="disabled"`. */
|
|
22575
|
+
colorDisabled: {
|
|
22576
|
+
color: theme.palette.action.disabled
|
|
22577
|
+
},
|
|
22578
|
+
/* Styles applied to the root element if `fontSize="inherit"`. */
|
|
22579
|
+
fontSizeInherit: {
|
|
22580
|
+
fontSize: "inherit"
|
|
22581
|
+
},
|
|
22582
|
+
/* Styles applied to the root element if `fontSize="small"`. */
|
|
22583
|
+
fontSizeSmall: {
|
|
22584
|
+
fontSize: theme.typography.pxToRem(20)
|
|
22585
|
+
},
|
|
22586
|
+
/* Styles applied to the root element if `fontSize="large"`. */
|
|
22587
|
+
fontSizeLarge: {
|
|
22588
|
+
fontSize: theme.typography.pxToRem(35)
|
|
22275
22589
|
}
|
|
22276
|
-
|
|
22277
|
-
|
|
22278
|
-
|
|
22590
|
+
};
|
|
22591
|
+
};
|
|
22592
|
+
var SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(props, ref) {
|
|
22593
|
+
var children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color = _props$color === void 0 ? "inherit" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "svg" : _props$component, _props$fontSize = props.fontSize, fontSize = _props$fontSize === void 0 ? "medium" : _props$fontSize, htmlColor = props.htmlColor, titleAccess = props.titleAccess, _props$viewBox = props.viewBox, viewBox = _props$viewBox === void 0 ? "0 0 24 24" : _props$viewBox, other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]);
|
|
22594
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
22595
|
+
className: clsx(classes.root, className, color !== "inherit" && classes["color".concat(capitalize(color))], fontSize !== "default" && fontSize !== "medium" && classes["fontSize".concat(capitalize(fontSize))]),
|
|
22596
|
+
focusable: "false",
|
|
22597
|
+
viewBox,
|
|
22598
|
+
color: htmlColor,
|
|
22599
|
+
"aria-hidden": titleAccess ? void 0 : true,
|
|
22600
|
+
role: titleAccess ? "img" : void 0,
|
|
22601
|
+
ref
|
|
22602
|
+
}, other), children, titleAccess ? /* @__PURE__ */ React.createElement("title", null, titleAccess) : null);
|
|
22603
|
+
});
|
|
22604
|
+
SvgIcon.propTypes = {
|
|
22605
|
+
// ----------------------------- Warning --------------------------------
|
|
22606
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
22607
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
22608
|
+
// ----------------------------------------------------------------------
|
|
22609
|
+
/**
|
|
22610
|
+
* Node passed into the SVG element.
|
|
22611
|
+
*/
|
|
22612
|
+
children: PropTypes.node,
|
|
22613
|
+
/**
|
|
22614
|
+
* Override or extend the styles applied to the component.
|
|
22615
|
+
* See [CSS API](#css) below for more details.
|
|
22616
|
+
*/
|
|
22617
|
+
classes: PropTypes.object,
|
|
22618
|
+
/**
|
|
22619
|
+
* @ignore
|
|
22620
|
+
*/
|
|
22621
|
+
className: PropTypes.string,
|
|
22622
|
+
/**
|
|
22623
|
+
* The color of the component. It supports those theme colors that make sense for this component.
|
|
22624
|
+
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
22625
|
+
*/
|
|
22626
|
+
color: PropTypes.oneOf(["action", "disabled", "error", "inherit", "primary", "secondary"]),
|
|
22627
|
+
/**
|
|
22628
|
+
* The component used for the root node.
|
|
22629
|
+
* Either a string to use a HTML element or a component.
|
|
22630
|
+
*/
|
|
22631
|
+
component: PropTypes.elementType,
|
|
22632
|
+
/**
|
|
22633
|
+
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
22634
|
+
*/
|
|
22635
|
+
fontSize: chainPropTypes(PropTypes.oneOf(["default", "inherit", "large", "medium", "small"]), function(props) {
|
|
22636
|
+
var fontSize = props.fontSize;
|
|
22637
|
+
if (fontSize === "default") {
|
|
22638
|
+
throw new Error('Material-UI: `fontSize="default"` is deprecated. Use `fontSize="medium"` instead.');
|
|
22639
|
+
}
|
|
22640
|
+
return null;
|
|
22641
|
+
}),
|
|
22642
|
+
/**
|
|
22643
|
+
* Applies a color attribute to the SVG element.
|
|
22644
|
+
*/
|
|
22645
|
+
htmlColor: PropTypes.string,
|
|
22646
|
+
/**
|
|
22647
|
+
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
22648
|
+
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
|
|
22649
|
+
* If you are having issues with blurry icons you should investigate this property.
|
|
22650
|
+
*/
|
|
22651
|
+
shapeRendering: PropTypes.string,
|
|
22652
|
+
/**
|
|
22653
|
+
* Provides a human-readable title for the element that contains it.
|
|
22654
|
+
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
22655
|
+
*/
|
|
22656
|
+
titleAccess: PropTypes.string,
|
|
22657
|
+
/**
|
|
22658
|
+
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
22659
|
+
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
22660
|
+
* and you pass viewBox="0 0 50 20",
|
|
22661
|
+
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
|
22662
|
+
* to bottom right (50,20) and each unit will be worth 10px.
|
|
22663
|
+
*/
|
|
22664
|
+
viewBox: PropTypes.string
|
|
22665
|
+
};
|
|
22666
|
+
SvgIcon.muiName = "SvgIcon";
|
|
22667
|
+
const SvgIcon$1 = withStyles2(styles$7, {
|
|
22668
|
+
name: "MuiSvgIcon"
|
|
22669
|
+
})(SvgIcon);
|
|
22670
|
+
function createSvgIcon(path, displayName) {
|
|
22671
|
+
var Component = function Component2(props, ref) {
|
|
22672
|
+
return /* @__PURE__ */ React__default.createElement(SvgIcon$1, _extends$2({
|
|
22673
|
+
ref
|
|
22674
|
+
}, props), path);
|
|
22675
|
+
};
|
|
22676
|
+
{
|
|
22677
|
+
Component.displayName = "".concat(displayName, "Icon");
|
|
22678
|
+
}
|
|
22679
|
+
Component.muiName = SvgIcon$1.muiName;
|
|
22680
|
+
return /* @__PURE__ */ React__default.memo(/* @__PURE__ */ React__default.forwardRef(Component));
|
|
22279
22681
|
}
|
|
22280
|
-
|
|
22281
|
-
function
|
|
22282
|
-
|
|
22283
|
-
|
|
22284
|
-
|
|
22285
|
-
|
|
22286
|
-
var _typeof2 = require_typeof()["default"];
|
|
22287
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
22288
|
-
if (typeof WeakMap !== "function")
|
|
22289
|
-
return null;
|
|
22290
|
-
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
22291
|
-
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
22292
|
-
return (_getRequireWildcardCache = function _getRequireWildcardCache2(nodeInterop2) {
|
|
22293
|
-
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
22294
|
-
})(nodeInterop);
|
|
22682
|
+
function deprecatedPropType(validator, reason) {
|
|
22683
|
+
return function(props, propName, componentName, location, propFullName) {
|
|
22684
|
+
var componentNameSafe = componentName || "<<anonymous>>";
|
|
22685
|
+
var propFullNameSafe = propFullName || propName;
|
|
22686
|
+
if (typeof props[propName] !== "undefined") {
|
|
22687
|
+
return new Error("The ".concat(location, " `").concat(propFullNameSafe, "` of ") + "`".concat(componentNameSafe, "` is deprecated. ").concat(reason));
|
|
22295
22688
|
}
|
|
22296
|
-
|
|
22297
|
-
|
|
22298
|
-
|
|
22299
|
-
|
|
22300
|
-
|
|
22301
|
-
|
|
22302
|
-
|
|
22303
|
-
|
|
22304
|
-
|
|
22305
|
-
|
|
22306
|
-
|
|
22307
|
-
|
|
22308
|
-
|
|
22309
|
-
|
|
22310
|
-
|
|
22311
|
-
|
|
22312
|
-
|
|
22313
|
-
|
|
22314
|
-
|
|
22315
|
-
Object.defineProperty(newObj, key, desc);
|
|
22316
|
-
} else {
|
|
22317
|
-
newObj[key] = obj[key];
|
|
22318
|
-
}
|
|
22319
|
-
}
|
|
22689
|
+
return null;
|
|
22690
|
+
};
|
|
22691
|
+
}
|
|
22692
|
+
function setRef(ref, value) {
|
|
22693
|
+
if (typeof ref === "function") {
|
|
22694
|
+
ref(value);
|
|
22695
|
+
} else if (ref) {
|
|
22696
|
+
ref.current = value;
|
|
22697
|
+
}
|
|
22698
|
+
}
|
|
22699
|
+
function useControlled(_ref) {
|
|
22700
|
+
var controlled = _ref.controlled, defaultProp = _ref.default, name = _ref.name, _ref$state = _ref.state, state = _ref$state === void 0 ? "value" : _ref$state;
|
|
22701
|
+
var _React$useRef = React.useRef(controlled !== void 0), isControlled = _React$useRef.current;
|
|
22702
|
+
var _React$useState = React.useState(defaultProp), valueState = _React$useState[0], setValue = _React$useState[1];
|
|
22703
|
+
var value = isControlled ? controlled : valueState;
|
|
22704
|
+
{
|
|
22705
|
+
React.useEffect(function() {
|
|
22706
|
+
if (isControlled !== (controlled !== void 0)) {
|
|
22707
|
+
console.error(["Material-UI: A component is changing the ".concat(isControlled ? "" : "un", "controlled ").concat(state, " state of ").concat(name, " to be ").concat(isControlled ? "un" : "", "controlled."), "Elements should not switch from uncontrolled to controlled (or vice versa).", "Decide between using a controlled or uncontrolled ".concat(name, " ") + "element for the lifetime of the component.", "The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join("\n"));
|
|
22320
22708
|
}
|
|
22321
|
-
|
|
22322
|
-
|
|
22323
|
-
|
|
22709
|
+
}, [controlled]);
|
|
22710
|
+
var _React$useRef2 = React.useRef(defaultProp), defaultValue = _React$useRef2.current;
|
|
22711
|
+
React.useEffect(function() {
|
|
22712
|
+
if (!isControlled && defaultValue !== defaultProp) {
|
|
22713
|
+
console.error(["Material-UI: A component is changing the default ".concat(state, " state of an uncontrolled ").concat(name, " after being initialized. ") + "To suppress this warning opt to use a controlled ".concat(name, ".")].join("\n"));
|
|
22324
22714
|
}
|
|
22325
|
-
|
|
22715
|
+
}, [JSON.stringify(defaultProp)]);
|
|
22716
|
+
}
|
|
22717
|
+
var setValueIfUncontrolled = React.useCallback(function(newValue) {
|
|
22718
|
+
if (!isControlled) {
|
|
22719
|
+
setValue(newValue);
|
|
22326
22720
|
}
|
|
22327
|
-
|
|
22328
|
-
|
|
22329
|
-
return interopRequireWildcard.exports;
|
|
22721
|
+
}, []);
|
|
22722
|
+
return [value, setValueIfUncontrolled];
|
|
22330
22723
|
}
|
|
22331
|
-
var
|
|
22332
|
-
|
|
22333
|
-
|
|
22334
|
-
|
|
22335
|
-
|
|
22336
|
-
|
|
22337
|
-
(function(
|
|
22338
|
-
|
|
22339
|
-
|
|
22340
|
-
throw new TypeError("Cannot call a class as a function");
|
|
22341
|
-
}
|
|
22342
|
-
}
|
|
22343
|
-
module2.exports = _classCallCheck, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
22344
|
-
})(classCallCheck);
|
|
22345
|
-
return classCallCheck.exports;
|
|
22724
|
+
var useEnhancedEffect$1 = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
22725
|
+
function useEventCallback(fn) {
|
|
22726
|
+
var ref = React.useRef(fn);
|
|
22727
|
+
useEnhancedEffect$1(function() {
|
|
22728
|
+
ref.current = fn;
|
|
22729
|
+
});
|
|
22730
|
+
return React.useCallback(function() {
|
|
22731
|
+
return ref.current.apply(void 0, arguments);
|
|
22732
|
+
}, []);
|
|
22346
22733
|
}
|
|
22347
|
-
|
|
22348
|
-
|
|
22349
|
-
|
|
22350
|
-
|
|
22351
|
-
|
|
22352
|
-
|
|
22734
|
+
function useForkRef(refA, refB) {
|
|
22735
|
+
return React.useMemo(function() {
|
|
22736
|
+
if (refA == null && refB == null) {
|
|
22737
|
+
return null;
|
|
22738
|
+
}
|
|
22739
|
+
return function(refValue) {
|
|
22740
|
+
setRef(refA, refValue);
|
|
22741
|
+
setRef(refB, refValue);
|
|
22742
|
+
};
|
|
22743
|
+
}, [refA, refB]);
|
|
22744
|
+
}
|
|
22745
|
+
var hadKeyboardEvent = true;
|
|
22746
|
+
var hadFocusVisibleRecently = false;
|
|
22747
|
+
var hadFocusVisibleRecentlyTimeout = null;
|
|
22748
|
+
var inputTypesWhitelist = {
|
|
22749
|
+
text: true,
|
|
22750
|
+
search: true,
|
|
22751
|
+
url: true,
|
|
22752
|
+
tel: true,
|
|
22753
|
+
email: true,
|
|
22754
|
+
password: true,
|
|
22755
|
+
number: true,
|
|
22756
|
+
date: true,
|
|
22757
|
+
month: true,
|
|
22758
|
+
week: true,
|
|
22759
|
+
time: true,
|
|
22760
|
+
datetime: true,
|
|
22761
|
+
"datetime-local": true
|
|
22762
|
+
};
|
|
22763
|
+
function focusTriggersKeyboardModality(node) {
|
|
22764
|
+
var type = node.type, tagName = node.tagName;
|
|
22765
|
+
if (tagName === "INPUT" && inputTypesWhitelist[type] && !node.readOnly) {
|
|
22766
|
+
return true;
|
|
22767
|
+
}
|
|
22768
|
+
if (tagName === "TEXTAREA" && !node.readOnly) {
|
|
22769
|
+
return true;
|
|
22770
|
+
}
|
|
22771
|
+
if (node.isContentEditable) {
|
|
22772
|
+
return true;
|
|
22773
|
+
}
|
|
22774
|
+
return false;
|
|
22775
|
+
}
|
|
22776
|
+
function handleKeyDown(event) {
|
|
22777
|
+
if (event.metaKey || event.altKey || event.ctrlKey) {
|
|
22778
|
+
return;
|
|
22779
|
+
}
|
|
22780
|
+
hadKeyboardEvent = true;
|
|
22781
|
+
}
|
|
22782
|
+
function handlePointerDown() {
|
|
22783
|
+
hadKeyboardEvent = false;
|
|
22784
|
+
}
|
|
22785
|
+
function handleVisibilityChange() {
|
|
22786
|
+
if (this.visibilityState === "hidden") {
|
|
22787
|
+
if (hadFocusVisibleRecently) {
|
|
22788
|
+
hadKeyboardEvent = true;
|
|
22789
|
+
}
|
|
22790
|
+
}
|
|
22791
|
+
}
|
|
22792
|
+
function prepare(doc) {
|
|
22793
|
+
doc.addEventListener("keydown", handleKeyDown, true);
|
|
22794
|
+
doc.addEventListener("mousedown", handlePointerDown, true);
|
|
22795
|
+
doc.addEventListener("pointerdown", handlePointerDown, true);
|
|
22796
|
+
doc.addEventListener("touchstart", handlePointerDown, true);
|
|
22797
|
+
doc.addEventListener("visibilitychange", handleVisibilityChange, true);
|
|
22798
|
+
}
|
|
22799
|
+
function isFocusVisible(event) {
|
|
22800
|
+
var target = event.target;
|
|
22801
|
+
try {
|
|
22802
|
+
return target.matches(":focus-visible");
|
|
22803
|
+
} catch (error) {
|
|
22804
|
+
}
|
|
22805
|
+
return hadKeyboardEvent || focusTriggersKeyboardModality(target);
|
|
22806
|
+
}
|
|
22807
|
+
function handleBlurVisible() {
|
|
22808
|
+
hadFocusVisibleRecently = true;
|
|
22809
|
+
window.clearTimeout(hadFocusVisibleRecentlyTimeout);
|
|
22810
|
+
hadFocusVisibleRecentlyTimeout = window.setTimeout(function() {
|
|
22811
|
+
hadFocusVisibleRecently = false;
|
|
22812
|
+
}, 100);
|
|
22813
|
+
}
|
|
22814
|
+
function useIsFocusVisible() {
|
|
22815
|
+
var ref = React.useCallback(function(instance) {
|
|
22816
|
+
var node = ReactDOM.findDOMNode(instance);
|
|
22817
|
+
if (node != null) {
|
|
22818
|
+
prepare(node.ownerDocument);
|
|
22819
|
+
}
|
|
22820
|
+
}, []);
|
|
22821
|
+
{
|
|
22822
|
+
React.useDebugValue(isFocusVisible);
|
|
22823
|
+
}
|
|
22824
|
+
return {
|
|
22825
|
+
isFocusVisible,
|
|
22826
|
+
onBlurVisible: handleBlurVisible,
|
|
22827
|
+
ref
|
|
22828
|
+
};
|
|
22829
|
+
}
|
|
22830
|
+
function _setPrototypeOf(o, p) {
|
|
22831
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
22832
|
+
o2.__proto__ = p2;
|
|
22833
|
+
return o2;
|
|
22834
|
+
};
|
|
22835
|
+
return _setPrototypeOf(o, p);
|
|
22836
|
+
}
|
|
22837
|
+
function _inheritsLoose(subClass, superClass) {
|
|
22838
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
22839
|
+
subClass.prototype.constructor = subClass;
|
|
22840
|
+
_setPrototypeOf(subClass, superClass);
|
|
22841
|
+
}
|
|
22842
|
+
const TransitionGroupContext = React__default.createContext(null);
|
|
22843
|
+
function _assertThisInitialized(self2) {
|
|
22844
|
+
if (self2 === void 0) {
|
|
22845
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
22846
|
+
}
|
|
22847
|
+
return self2;
|
|
22848
|
+
}
|
|
22849
|
+
function getChildMapping(children, mapFn) {
|
|
22850
|
+
var mapper = function mapper2(child2) {
|
|
22851
|
+
return mapFn && isValidElement(child2) ? mapFn(child2) : child2;
|
|
22852
|
+
};
|
|
22853
|
+
var result = /* @__PURE__ */ Object.create(null);
|
|
22854
|
+
if (children)
|
|
22855
|
+
Children.map(children, function(c) {
|
|
22856
|
+
return c;
|
|
22857
|
+
}).forEach(function(child2) {
|
|
22858
|
+
result[child2.key] = mapper(child2);
|
|
22859
|
+
});
|
|
22860
|
+
return result;
|
|
22861
|
+
}
|
|
22862
|
+
function mergeChildMappings(prev, next) {
|
|
22863
|
+
prev = prev || {};
|
|
22864
|
+
next = next || {};
|
|
22865
|
+
function getValueForKey(key) {
|
|
22866
|
+
return key in next ? next[key] : prev[key];
|
|
22867
|
+
}
|
|
22868
|
+
var nextKeysPending = /* @__PURE__ */ Object.create(null);
|
|
22869
|
+
var pendingKeys = [];
|
|
22870
|
+
for (var prevKey in prev) {
|
|
22871
|
+
if (prevKey in next) {
|
|
22872
|
+
if (pendingKeys.length) {
|
|
22873
|
+
nextKeysPending[prevKey] = pendingKeys;
|
|
22874
|
+
pendingKeys = [];
|
|
22875
|
+
}
|
|
22876
|
+
} else {
|
|
22877
|
+
pendingKeys.push(prevKey);
|
|
22878
|
+
}
|
|
22879
|
+
}
|
|
22880
|
+
var i;
|
|
22881
|
+
var childMapping = {};
|
|
22882
|
+
for (var nextKey in next) {
|
|
22883
|
+
if (nextKeysPending[nextKey]) {
|
|
22884
|
+
for (i = 0; i < nextKeysPending[nextKey].length; i++) {
|
|
22885
|
+
var pendingNextKey = nextKeysPending[nextKey][i];
|
|
22886
|
+
childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);
|
|
22887
|
+
}
|
|
22888
|
+
}
|
|
22889
|
+
childMapping[nextKey] = getValueForKey(nextKey);
|
|
22890
|
+
}
|
|
22891
|
+
for (i = 0; i < pendingKeys.length; i++) {
|
|
22892
|
+
childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);
|
|
22893
|
+
}
|
|
22894
|
+
return childMapping;
|
|
22895
|
+
}
|
|
22896
|
+
function getProp(child2, prop, props) {
|
|
22897
|
+
return props[prop] != null ? props[prop] : child2.props[prop];
|
|
22898
|
+
}
|
|
22899
|
+
function getInitialChildMapping(props, onExited) {
|
|
22900
|
+
return getChildMapping(props.children, function(child2) {
|
|
22901
|
+
return cloneElement(child2, {
|
|
22902
|
+
onExited: onExited.bind(null, child2),
|
|
22903
|
+
in: true,
|
|
22904
|
+
appear: getProp(child2, "appear", props),
|
|
22905
|
+
enter: getProp(child2, "enter", props),
|
|
22906
|
+
exit: getProp(child2, "exit", props)
|
|
22907
|
+
});
|
|
22908
|
+
});
|
|
22909
|
+
}
|
|
22910
|
+
function getNextChildMapping(nextProps, prevChildMapping, onExited) {
|
|
22911
|
+
var nextChildMapping = getChildMapping(nextProps.children);
|
|
22912
|
+
var children = mergeChildMappings(prevChildMapping, nextChildMapping);
|
|
22913
|
+
Object.keys(children).forEach(function(key) {
|
|
22914
|
+
var child2 = children[key];
|
|
22915
|
+
if (!isValidElement(child2))
|
|
22916
|
+
return;
|
|
22917
|
+
var hasPrev = key in prevChildMapping;
|
|
22918
|
+
var hasNext = key in nextChildMapping;
|
|
22919
|
+
var prevChild = prevChildMapping[key];
|
|
22920
|
+
var isLeaving = isValidElement(prevChild) && !prevChild.props.in;
|
|
22921
|
+
if (hasNext && (!hasPrev || isLeaving)) {
|
|
22922
|
+
children[key] = cloneElement(child2, {
|
|
22923
|
+
onExited: onExited.bind(null, child2),
|
|
22924
|
+
in: true,
|
|
22925
|
+
exit: getProp(child2, "exit", nextProps),
|
|
22926
|
+
enter: getProp(child2, "enter", nextProps)
|
|
22927
|
+
});
|
|
22928
|
+
} else if (!hasNext && hasPrev && !isLeaving) {
|
|
22929
|
+
children[key] = cloneElement(child2, {
|
|
22930
|
+
in: false
|
|
22931
|
+
});
|
|
22932
|
+
} else if (hasNext && hasPrev && isValidElement(prevChild)) {
|
|
22933
|
+
children[key] = cloneElement(child2, {
|
|
22934
|
+
onExited: onExited.bind(null, child2),
|
|
22935
|
+
in: prevChild.props.in,
|
|
22936
|
+
exit: getProp(child2, "exit", nextProps),
|
|
22937
|
+
enter: getProp(child2, "enter", nextProps)
|
|
22938
|
+
});
|
|
22939
|
+
}
|
|
22940
|
+
});
|
|
22941
|
+
return children;
|
|
22942
|
+
}
|
|
22943
|
+
var values = Object.values || function(obj) {
|
|
22944
|
+
return Object.keys(obj).map(function(k) {
|
|
22945
|
+
return obj[k];
|
|
22946
|
+
});
|
|
22947
|
+
};
|
|
22948
|
+
var defaultProps = {
|
|
22949
|
+
component: "div",
|
|
22950
|
+
childFactory: function childFactory(child2) {
|
|
22951
|
+
return child2;
|
|
22952
|
+
}
|
|
22953
|
+
};
|
|
22954
|
+
var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
22955
|
+
_inheritsLoose(TransitionGroup2, _React$Component);
|
|
22956
|
+
function TransitionGroup2(props, context) {
|
|
22957
|
+
var _this;
|
|
22958
|
+
_this = _React$Component.call(this, props, context) || this;
|
|
22959
|
+
var handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
|
|
22960
|
+
_this.state = {
|
|
22961
|
+
contextValue: {
|
|
22962
|
+
isMounting: true
|
|
22963
|
+
},
|
|
22964
|
+
handleExited,
|
|
22965
|
+
firstRender: true
|
|
22966
|
+
};
|
|
22967
|
+
return _this;
|
|
22968
|
+
}
|
|
22969
|
+
var _proto = TransitionGroup2.prototype;
|
|
22970
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
22971
|
+
this.mounted = true;
|
|
22972
|
+
this.setState({
|
|
22973
|
+
contextValue: {
|
|
22974
|
+
isMounting: false
|
|
22975
|
+
}
|
|
22976
|
+
});
|
|
22977
|
+
};
|
|
22978
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
22979
|
+
this.mounted = false;
|
|
22980
|
+
};
|
|
22981
|
+
TransitionGroup2.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
|
|
22982
|
+
var prevChildMapping = _ref.children, handleExited = _ref.handleExited, firstRender = _ref.firstRender;
|
|
22983
|
+
return {
|
|
22984
|
+
children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),
|
|
22985
|
+
firstRender: false
|
|
22986
|
+
};
|
|
22987
|
+
};
|
|
22988
|
+
_proto.handleExited = function handleExited(child2, node) {
|
|
22989
|
+
var currentChildMapping = getChildMapping(this.props.children);
|
|
22990
|
+
if (child2.key in currentChildMapping)
|
|
22991
|
+
return;
|
|
22992
|
+
if (child2.props.onExited) {
|
|
22993
|
+
child2.props.onExited(node);
|
|
22994
|
+
}
|
|
22995
|
+
if (this.mounted) {
|
|
22996
|
+
this.setState(function(state) {
|
|
22997
|
+
var children = _extends$2({}, state.children);
|
|
22998
|
+
delete children[child2.key];
|
|
22999
|
+
return {
|
|
23000
|
+
children
|
|
23001
|
+
};
|
|
23002
|
+
});
|
|
23003
|
+
}
|
|
23004
|
+
};
|
|
23005
|
+
_proto.render = function render() {
|
|
23006
|
+
var _this$props = this.props, Component = _this$props.component, childFactory2 = _this$props.childFactory, props = _objectWithoutPropertiesLoose$1(_this$props, ["component", "childFactory"]);
|
|
23007
|
+
var contextValue = this.state.contextValue;
|
|
23008
|
+
var children = values(this.state.children).map(childFactory2);
|
|
23009
|
+
delete props.appear;
|
|
23010
|
+
delete props.enter;
|
|
23011
|
+
delete props.exit;
|
|
23012
|
+
if (Component === null) {
|
|
23013
|
+
return /* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
|
|
23014
|
+
value: contextValue
|
|
23015
|
+
}, children);
|
|
23016
|
+
}
|
|
23017
|
+
return /* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
|
|
23018
|
+
value: contextValue
|
|
23019
|
+
}, /* @__PURE__ */ React__default.createElement(Component, props, children));
|
|
23020
|
+
};
|
|
23021
|
+
return TransitionGroup2;
|
|
23022
|
+
}(React__default.Component);
|
|
23023
|
+
TransitionGroup.propTypes = {
|
|
23024
|
+
/**
|
|
23025
|
+
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
23026
|
+
* behavior by providing a `component` prop.
|
|
23027
|
+
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
|
23028
|
+
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
23029
|
+
* borks your css styles.
|
|
23030
|
+
*/
|
|
23031
|
+
component: PropTypes.any,
|
|
23032
|
+
/**
|
|
23033
|
+
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
23034
|
+
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
23035
|
+
* remember to spread them through if you are wrapping the `<Transition>` as
|
|
23036
|
+
* with our `<Fade>` example.
|
|
23037
|
+
*
|
|
23038
|
+
* While this component is meant for multiple `Transition` or `CSSTransition`
|
|
23039
|
+
* children, sometimes you may want to have a single transition child with
|
|
23040
|
+
* content that you want to be transitioned out and in when you change it
|
|
23041
|
+
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
|
23042
|
+
* the transition child as you change its content, this will cause
|
|
23043
|
+
* `TransitionGroup` to transition the child out and back in.
|
|
23044
|
+
*/
|
|
23045
|
+
children: PropTypes.node,
|
|
23046
|
+
/**
|
|
23047
|
+
* A convenience prop that enables or disables appear animations
|
|
23048
|
+
* for all children. Note that specifying this will override any defaults set
|
|
23049
|
+
* on individual children Transitions.
|
|
23050
|
+
*/
|
|
23051
|
+
appear: PropTypes.bool,
|
|
23052
|
+
/**
|
|
23053
|
+
* A convenience prop that enables or disables enter animations
|
|
23054
|
+
* for all children. Note that specifying this will override any defaults set
|
|
23055
|
+
* on individual children Transitions.
|
|
23056
|
+
*/
|
|
23057
|
+
enter: PropTypes.bool,
|
|
23058
|
+
/**
|
|
23059
|
+
* A convenience prop that enables or disables exit animations
|
|
23060
|
+
* for all children. Note that specifying this will override any defaults set
|
|
23061
|
+
* on individual children Transitions.
|
|
23062
|
+
*/
|
|
23063
|
+
exit: PropTypes.bool,
|
|
23064
|
+
/**
|
|
23065
|
+
* You may need to apply reactive updates to a child as it is exiting.
|
|
23066
|
+
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
23067
|
+
* child the element has already been removed and not accessible to the consumer.
|
|
23068
|
+
*
|
|
23069
|
+
* If you do need to update a child as it leaves you can provide a `childFactory`
|
|
23070
|
+
* to wrap every child, even the ones that are leaving.
|
|
23071
|
+
*
|
|
23072
|
+
* @type Function(child: ReactElement) -> ReactElement
|
|
23073
|
+
*/
|
|
23074
|
+
childFactory: PropTypes.func
|
|
23075
|
+
};
|
|
23076
|
+
TransitionGroup.defaultProps = defaultProps;
|
|
23077
|
+
const TransitionGroup$1 = TransitionGroup;
|
|
23078
|
+
var useEnhancedEffect = typeof window === "undefined" ? React.useEffect : React.useLayoutEffect;
|
|
23079
|
+
function Ripple(props) {
|
|
23080
|
+
var classes = props.classes, _props$pulsate = props.pulsate, pulsate = _props$pulsate === void 0 ? false : _props$pulsate, rippleX = props.rippleX, rippleY = props.rippleY, rippleSize = props.rippleSize, inProp = props.in, _props$onExited = props.onExited, onExited = _props$onExited === void 0 ? function() {
|
|
23081
|
+
} : _props$onExited, timeout = props.timeout;
|
|
23082
|
+
var _React$useState = React.useState(false), leaving = _React$useState[0], setLeaving = _React$useState[1];
|
|
23083
|
+
var rippleClassName = clsx(classes.ripple, classes.rippleVisible, pulsate && classes.ripplePulsate);
|
|
23084
|
+
var rippleStyles = {
|
|
23085
|
+
width: rippleSize,
|
|
23086
|
+
height: rippleSize,
|
|
23087
|
+
top: -(rippleSize / 2) + rippleY,
|
|
23088
|
+
left: -(rippleSize / 2) + rippleX
|
|
23089
|
+
};
|
|
23090
|
+
var childClassName = clsx(classes.child, leaving && classes.childLeaving, pulsate && classes.childPulsate);
|
|
23091
|
+
var handleExited = useEventCallback(onExited);
|
|
23092
|
+
useEnhancedEffect(function() {
|
|
23093
|
+
if (!inProp) {
|
|
23094
|
+
setLeaving(true);
|
|
23095
|
+
var timeoutId = setTimeout(handleExited, timeout);
|
|
23096
|
+
return function() {
|
|
23097
|
+
clearTimeout(timeoutId);
|
|
23098
|
+
};
|
|
23099
|
+
}
|
|
23100
|
+
return void 0;
|
|
23101
|
+
}, [handleExited, inProp, timeout]);
|
|
23102
|
+
return /* @__PURE__ */ React.createElement("span", {
|
|
23103
|
+
className: rippleClassName,
|
|
23104
|
+
style: rippleStyles
|
|
23105
|
+
}, /* @__PURE__ */ React.createElement("span", {
|
|
23106
|
+
className: childClassName
|
|
23107
|
+
}));
|
|
23108
|
+
}
|
|
23109
|
+
Ripple.propTypes = {
|
|
23110
|
+
/**
|
|
23111
|
+
* Override or extend the styles applied to the component.
|
|
23112
|
+
* See [CSS API](#css) below for more details.
|
|
23113
|
+
*/
|
|
23114
|
+
classes: PropTypes.object.isRequired,
|
|
23115
|
+
/**
|
|
23116
|
+
* @ignore - injected from TransitionGroup
|
|
23117
|
+
*/
|
|
23118
|
+
in: PropTypes.bool,
|
|
23119
|
+
/**
|
|
23120
|
+
* @ignore - injected from TransitionGroup
|
|
23121
|
+
*/
|
|
23122
|
+
onExited: PropTypes.func,
|
|
23123
|
+
/**
|
|
23124
|
+
* If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
|
|
23125
|
+
*/
|
|
23126
|
+
pulsate: PropTypes.bool,
|
|
23127
|
+
/**
|
|
23128
|
+
* Diameter of the ripple.
|
|
23129
|
+
*/
|
|
23130
|
+
rippleSize: PropTypes.number,
|
|
23131
|
+
/**
|
|
23132
|
+
* Horizontal position of the ripple center.
|
|
23133
|
+
*/
|
|
23134
|
+
rippleX: PropTypes.number,
|
|
23135
|
+
/**
|
|
23136
|
+
* Vertical position of the ripple center.
|
|
23137
|
+
*/
|
|
23138
|
+
rippleY: PropTypes.number,
|
|
23139
|
+
/**
|
|
23140
|
+
* exit delay
|
|
23141
|
+
*/
|
|
23142
|
+
timeout: PropTypes.number.isRequired
|
|
23143
|
+
};
|
|
23144
|
+
var DURATION = 550;
|
|
23145
|
+
var DELAY_RIPPLE = 80;
|
|
23146
|
+
var styles$6 = function styles2(theme) {
|
|
23147
|
+
return {
|
|
23148
|
+
/* Styles applied to the root element. */
|
|
23149
|
+
root: {
|
|
23150
|
+
overflow: "hidden",
|
|
23151
|
+
pointerEvents: "none",
|
|
23152
|
+
position: "absolute",
|
|
23153
|
+
zIndex: 0,
|
|
23154
|
+
top: 0,
|
|
23155
|
+
right: 0,
|
|
23156
|
+
bottom: 0,
|
|
23157
|
+
left: 0,
|
|
23158
|
+
borderRadius: "inherit"
|
|
23159
|
+
},
|
|
23160
|
+
/* Styles applied to the internal `Ripple` components `ripple` class. */
|
|
23161
|
+
ripple: {
|
|
23162
|
+
opacity: 0,
|
|
23163
|
+
position: "absolute"
|
|
23164
|
+
},
|
|
23165
|
+
/* Styles applied to the internal `Ripple` components `rippleVisible` class. */
|
|
23166
|
+
rippleVisible: {
|
|
23167
|
+
opacity: 0.3,
|
|
23168
|
+
transform: "scale(1)",
|
|
23169
|
+
animation: "$enter ".concat(DURATION, "ms ").concat(theme.transitions.easing.easeInOut)
|
|
23170
|
+
},
|
|
23171
|
+
/* Styles applied to the internal `Ripple` components `ripplePulsate` class. */
|
|
23172
|
+
ripplePulsate: {
|
|
23173
|
+
animationDuration: "".concat(theme.transitions.duration.shorter, "ms")
|
|
23174
|
+
},
|
|
23175
|
+
/* Styles applied to the internal `Ripple` components `child` class. */
|
|
23176
|
+
child: {
|
|
23177
|
+
opacity: 1,
|
|
23178
|
+
display: "block",
|
|
23179
|
+
width: "100%",
|
|
23180
|
+
height: "100%",
|
|
23181
|
+
borderRadius: "50%",
|
|
23182
|
+
backgroundColor: "currentColor"
|
|
23183
|
+
},
|
|
23184
|
+
/* Styles applied to the internal `Ripple` components `childLeaving` class. */
|
|
23185
|
+
childLeaving: {
|
|
23186
|
+
opacity: 0,
|
|
23187
|
+
animation: "$exit ".concat(DURATION, "ms ").concat(theme.transitions.easing.easeInOut)
|
|
23188
|
+
},
|
|
23189
|
+
/* Styles applied to the internal `Ripple` components `childPulsate` class. */
|
|
23190
|
+
childPulsate: {
|
|
23191
|
+
position: "absolute",
|
|
23192
|
+
left: 0,
|
|
23193
|
+
top: 0,
|
|
23194
|
+
animation: "$pulsate 2500ms ".concat(theme.transitions.easing.easeInOut, " 200ms infinite")
|
|
23195
|
+
},
|
|
23196
|
+
"@keyframes enter": {
|
|
23197
|
+
"0%": {
|
|
23198
|
+
transform: "scale(0)",
|
|
23199
|
+
opacity: 0.1
|
|
23200
|
+
},
|
|
23201
|
+
"100%": {
|
|
23202
|
+
transform: "scale(1)",
|
|
23203
|
+
opacity: 0.3
|
|
23204
|
+
}
|
|
23205
|
+
},
|
|
23206
|
+
"@keyframes exit": {
|
|
23207
|
+
"0%": {
|
|
23208
|
+
opacity: 1
|
|
23209
|
+
},
|
|
23210
|
+
"100%": {
|
|
23211
|
+
opacity: 0
|
|
23212
|
+
}
|
|
23213
|
+
},
|
|
23214
|
+
"@keyframes pulsate": {
|
|
23215
|
+
"0%": {
|
|
23216
|
+
transform: "scale(1)"
|
|
23217
|
+
},
|
|
23218
|
+
"50%": {
|
|
23219
|
+
transform: "scale(0.92)"
|
|
23220
|
+
},
|
|
23221
|
+
"100%": {
|
|
23222
|
+
transform: "scale(1)"
|
|
23223
|
+
}
|
|
23224
|
+
}
|
|
23225
|
+
};
|
|
23226
|
+
};
|
|
23227
|
+
var TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(props, ref) {
|
|
23228
|
+
var _props$center = props.center, centerProp = _props$center === void 0 ? false : _props$center, classes = props.classes, className = props.className, other = _objectWithoutProperties(props, ["center", "classes", "className"]);
|
|
23229
|
+
var _React$useState = React.useState([]), ripples = _React$useState[0], setRipples = _React$useState[1];
|
|
23230
|
+
var nextKey = React.useRef(0);
|
|
23231
|
+
var rippleCallback = React.useRef(null);
|
|
23232
|
+
React.useEffect(function() {
|
|
23233
|
+
if (rippleCallback.current) {
|
|
23234
|
+
rippleCallback.current();
|
|
23235
|
+
rippleCallback.current = null;
|
|
23236
|
+
}
|
|
23237
|
+
}, [ripples]);
|
|
23238
|
+
var ignoringMouseDown = React.useRef(false);
|
|
23239
|
+
var startTimer = React.useRef(null);
|
|
23240
|
+
var startTimerCommit = React.useRef(null);
|
|
23241
|
+
var container = React.useRef(null);
|
|
23242
|
+
React.useEffect(function() {
|
|
23243
|
+
return function() {
|
|
23244
|
+
clearTimeout(startTimer.current);
|
|
23245
|
+
};
|
|
23246
|
+
}, []);
|
|
23247
|
+
var startCommit = React.useCallback(function(params) {
|
|
23248
|
+
var pulsate2 = params.pulsate, rippleX = params.rippleX, rippleY = params.rippleY, rippleSize = params.rippleSize, cb = params.cb;
|
|
23249
|
+
setRipples(function(oldRipples) {
|
|
23250
|
+
return [].concat(_toConsumableArray$1(oldRipples), [/* @__PURE__ */ React.createElement(Ripple, {
|
|
23251
|
+
key: nextKey.current,
|
|
23252
|
+
classes,
|
|
23253
|
+
timeout: DURATION,
|
|
23254
|
+
pulsate: pulsate2,
|
|
23255
|
+
rippleX,
|
|
23256
|
+
rippleY,
|
|
23257
|
+
rippleSize
|
|
23258
|
+
})]);
|
|
23259
|
+
});
|
|
23260
|
+
nextKey.current += 1;
|
|
23261
|
+
rippleCallback.current = cb;
|
|
23262
|
+
}, [classes]);
|
|
23263
|
+
var start = React.useCallback(function() {
|
|
23264
|
+
var event = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
23265
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
23266
|
+
var cb = arguments.length > 2 ? arguments[2] : void 0;
|
|
23267
|
+
var _options$pulsate = options.pulsate, pulsate2 = _options$pulsate === void 0 ? false : _options$pulsate, _options$center = options.center, center = _options$center === void 0 ? centerProp || options.pulsate : _options$center, _options$fakeElement = options.fakeElement, fakeElement = _options$fakeElement === void 0 ? false : _options$fakeElement;
|
|
23268
|
+
if (event.type === "mousedown" && ignoringMouseDown.current) {
|
|
23269
|
+
ignoringMouseDown.current = false;
|
|
23270
|
+
return;
|
|
23271
|
+
}
|
|
23272
|
+
if (event.type === "touchstart") {
|
|
23273
|
+
ignoringMouseDown.current = true;
|
|
23274
|
+
}
|
|
23275
|
+
var element = fakeElement ? null : container.current;
|
|
23276
|
+
var rect = element ? element.getBoundingClientRect() : {
|
|
23277
|
+
width: 0,
|
|
23278
|
+
height: 0,
|
|
23279
|
+
left: 0,
|
|
23280
|
+
top: 0
|
|
23281
|
+
};
|
|
23282
|
+
var rippleX;
|
|
23283
|
+
var rippleY;
|
|
23284
|
+
var rippleSize;
|
|
23285
|
+
if (center || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
|
|
23286
|
+
rippleX = Math.round(rect.width / 2);
|
|
23287
|
+
rippleY = Math.round(rect.height / 2);
|
|
23288
|
+
} else {
|
|
23289
|
+
var _ref = event.touches ? event.touches[0] : event, clientX = _ref.clientX, clientY = _ref.clientY;
|
|
23290
|
+
rippleX = Math.round(clientX - rect.left);
|
|
23291
|
+
rippleY = Math.round(clientY - rect.top);
|
|
23292
|
+
}
|
|
23293
|
+
if (center) {
|
|
23294
|
+
rippleSize = Math.sqrt((2 * Math.pow(rect.width, 2) + Math.pow(rect.height, 2)) / 3);
|
|
23295
|
+
if (rippleSize % 2 === 0) {
|
|
23296
|
+
rippleSize += 1;
|
|
23297
|
+
}
|
|
23298
|
+
} else {
|
|
23299
|
+
var sizeX = Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) * 2 + 2;
|
|
23300
|
+
var sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2;
|
|
23301
|
+
rippleSize = Math.sqrt(Math.pow(sizeX, 2) + Math.pow(sizeY, 2));
|
|
23302
|
+
}
|
|
23303
|
+
if (event.touches) {
|
|
23304
|
+
if (startTimerCommit.current === null) {
|
|
23305
|
+
startTimerCommit.current = function() {
|
|
23306
|
+
startCommit({
|
|
23307
|
+
pulsate: pulsate2,
|
|
23308
|
+
rippleX,
|
|
23309
|
+
rippleY,
|
|
23310
|
+
rippleSize,
|
|
23311
|
+
cb
|
|
23312
|
+
});
|
|
23313
|
+
};
|
|
23314
|
+
startTimer.current = setTimeout(function() {
|
|
23315
|
+
if (startTimerCommit.current) {
|
|
23316
|
+
startTimerCommit.current();
|
|
23317
|
+
startTimerCommit.current = null;
|
|
23318
|
+
}
|
|
23319
|
+
}, DELAY_RIPPLE);
|
|
23320
|
+
}
|
|
23321
|
+
} else {
|
|
23322
|
+
startCommit({
|
|
23323
|
+
pulsate: pulsate2,
|
|
23324
|
+
rippleX,
|
|
23325
|
+
rippleY,
|
|
23326
|
+
rippleSize,
|
|
23327
|
+
cb
|
|
23328
|
+
});
|
|
23329
|
+
}
|
|
23330
|
+
}, [centerProp, startCommit]);
|
|
23331
|
+
var pulsate = React.useCallback(function() {
|
|
23332
|
+
start({}, {
|
|
23333
|
+
pulsate: true
|
|
23334
|
+
});
|
|
23335
|
+
}, [start]);
|
|
23336
|
+
var stop = React.useCallback(function(event, cb) {
|
|
23337
|
+
clearTimeout(startTimer.current);
|
|
23338
|
+
if (event.type === "touchend" && startTimerCommit.current) {
|
|
23339
|
+
event.persist();
|
|
23340
|
+
startTimerCommit.current();
|
|
23341
|
+
startTimerCommit.current = null;
|
|
23342
|
+
startTimer.current = setTimeout(function() {
|
|
23343
|
+
stop(event, cb);
|
|
23344
|
+
});
|
|
23345
|
+
return;
|
|
23346
|
+
}
|
|
23347
|
+
startTimerCommit.current = null;
|
|
23348
|
+
setRipples(function(oldRipples) {
|
|
23349
|
+
if (oldRipples.length > 0) {
|
|
23350
|
+
return oldRipples.slice(1);
|
|
23351
|
+
}
|
|
23352
|
+
return oldRipples;
|
|
23353
|
+
});
|
|
23354
|
+
rippleCallback.current = cb;
|
|
23355
|
+
}, []);
|
|
23356
|
+
React.useImperativeHandle(ref, function() {
|
|
23357
|
+
return {
|
|
23358
|
+
pulsate,
|
|
23359
|
+
start,
|
|
23360
|
+
stop
|
|
23361
|
+
};
|
|
23362
|
+
}, [pulsate, start, stop]);
|
|
23363
|
+
return /* @__PURE__ */ React.createElement("span", _extends$2({
|
|
23364
|
+
className: clsx(classes.root, className),
|
|
23365
|
+
ref: container
|
|
23366
|
+
}, other), /* @__PURE__ */ React.createElement(TransitionGroup$1, {
|
|
23367
|
+
component: null,
|
|
23368
|
+
exit: true
|
|
23369
|
+
}, ripples));
|
|
23370
|
+
});
|
|
23371
|
+
TouchRipple.propTypes = {
|
|
23372
|
+
/**
|
|
23373
|
+
* If `true`, the ripple starts at the center of the component
|
|
23374
|
+
* rather than at the point of interaction.
|
|
23375
|
+
*/
|
|
23376
|
+
center: PropTypes.bool,
|
|
23377
|
+
/**
|
|
23378
|
+
* Override or extend the styles applied to the component.
|
|
23379
|
+
* See [CSS API](#css) below for more details.
|
|
23380
|
+
*/
|
|
23381
|
+
classes: PropTypes.object.isRequired,
|
|
23382
|
+
/**
|
|
23383
|
+
* @ignore
|
|
23384
|
+
*/
|
|
23385
|
+
className: PropTypes.string
|
|
23386
|
+
};
|
|
23387
|
+
const TouchRipple$1 = withStyles2(styles$6, {
|
|
23388
|
+
flip: false,
|
|
23389
|
+
name: "MuiTouchRipple"
|
|
23390
|
+
})(/* @__PURE__ */ React.memo(TouchRipple));
|
|
23391
|
+
var styles$5 = {
|
|
23392
|
+
/* Styles applied to the root element. */
|
|
23393
|
+
root: {
|
|
23394
|
+
display: "inline-flex",
|
|
23395
|
+
alignItems: "center",
|
|
23396
|
+
justifyContent: "center",
|
|
23397
|
+
position: "relative",
|
|
23398
|
+
WebkitTapHighlightColor: "transparent",
|
|
23399
|
+
backgroundColor: "transparent",
|
|
23400
|
+
// Reset default value
|
|
23401
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
|
23402
|
+
outline: 0,
|
|
23403
|
+
border: 0,
|
|
23404
|
+
margin: 0,
|
|
23405
|
+
// Remove the margin in Safari
|
|
23406
|
+
borderRadius: 0,
|
|
23407
|
+
padding: 0,
|
|
23408
|
+
// Remove the padding in Firefox
|
|
23409
|
+
cursor: "pointer",
|
|
23410
|
+
userSelect: "none",
|
|
23411
|
+
verticalAlign: "middle",
|
|
23412
|
+
"-moz-appearance": "none",
|
|
23413
|
+
// Reset
|
|
23414
|
+
"-webkit-appearance": "none",
|
|
23415
|
+
// Reset
|
|
23416
|
+
textDecoration: "none",
|
|
23417
|
+
// So we take precedent over the style of a native <a /> element.
|
|
23418
|
+
color: "inherit",
|
|
23419
|
+
"&::-moz-focus-inner": {
|
|
23420
|
+
borderStyle: "none"
|
|
23421
|
+
// Remove Firefox dotted outline.
|
|
23422
|
+
},
|
|
23423
|
+
"&$disabled": {
|
|
23424
|
+
pointerEvents: "none",
|
|
23425
|
+
// Disable link interactions
|
|
23426
|
+
cursor: "default"
|
|
23427
|
+
},
|
|
23428
|
+
"@media print": {
|
|
23429
|
+
colorAdjust: "exact"
|
|
23430
|
+
}
|
|
23431
|
+
},
|
|
23432
|
+
/* Pseudo-class applied to the root element if `disabled={true}`. */
|
|
23433
|
+
disabled: {},
|
|
23434
|
+
/* Pseudo-class applied to the root element if keyboard focused. */
|
|
23435
|
+
focusVisible: {}
|
|
23436
|
+
};
|
|
23437
|
+
var ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(props, ref) {
|
|
23438
|
+
var action = props.action, buttonRefProp = props.buttonRef, _props$centerRipple = props.centerRipple, centerRipple = _props$centerRipple === void 0 ? false : _props$centerRipple, children = props.children, classes = props.classes, className = props.className, _props$component = props.component, component = _props$component === void 0 ? "button" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableRipple = props.disableRipple, disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple, _props$disableTouchRi = props.disableTouchRipple, disableTouchRipple = _props$disableTouchRi === void 0 ? false : _props$disableTouchRi, _props$focusRipple = props.focusRipple, focusRipple = _props$focusRipple === void 0 ? false : _props$focusRipple, focusVisibleClassName = props.focusVisibleClassName, onBlur = props.onBlur, onClick = props.onClick, onFocus = props.onFocus, onFocusVisible = props.onFocusVisible, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, onMouseDown = props.onMouseDown, onMouseLeave = props.onMouseLeave, onMouseUp = props.onMouseUp, onTouchEnd = props.onTouchEnd, onTouchMove = props.onTouchMove, onTouchStart = props.onTouchStart, onDragLeave = props.onDragLeave, _props$tabIndex = props.tabIndex, tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex, TouchRippleProps = props.TouchRippleProps, _props$type = props.type, type = _props$type === void 0 ? "button" : _props$type, other = _objectWithoutProperties(props, ["action", "buttonRef", "centerRipple", "children", "classes", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "onBlur", "onClick", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "onDragLeave", "tabIndex", "TouchRippleProps", "type"]);
|
|
23439
|
+
var buttonRef = React.useRef(null);
|
|
23440
|
+
function getButtonNode() {
|
|
23441
|
+
return ReactDOM.findDOMNode(buttonRef.current);
|
|
23442
|
+
}
|
|
23443
|
+
var rippleRef = React.useRef(null);
|
|
23444
|
+
var _React$useState = React.useState(false), focusVisible = _React$useState[0], setFocusVisible = _React$useState[1];
|
|
23445
|
+
if (disabled && focusVisible) {
|
|
23446
|
+
setFocusVisible(false);
|
|
23447
|
+
}
|
|
23448
|
+
var _useIsFocusVisible = useIsFocusVisible(), isFocusVisible2 = _useIsFocusVisible.isFocusVisible, onBlurVisible = _useIsFocusVisible.onBlurVisible, focusVisibleRef = _useIsFocusVisible.ref;
|
|
23449
|
+
React.useImperativeHandle(action, function() {
|
|
23450
|
+
return {
|
|
23451
|
+
focusVisible: function focusVisible2() {
|
|
23452
|
+
setFocusVisible(true);
|
|
23453
|
+
buttonRef.current.focus();
|
|
23454
|
+
}
|
|
23455
|
+
};
|
|
23456
|
+
}, []);
|
|
23457
|
+
React.useEffect(function() {
|
|
23458
|
+
if (focusVisible && focusRipple && !disableRipple) {
|
|
23459
|
+
rippleRef.current.pulsate();
|
|
23460
|
+
}
|
|
23461
|
+
}, [disableRipple, focusRipple, focusVisible]);
|
|
23462
|
+
function useRippleHandler(rippleAction, eventCallback) {
|
|
23463
|
+
var skipRippleAction = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : disableTouchRipple;
|
|
23464
|
+
return useEventCallback(function(event) {
|
|
23465
|
+
if (eventCallback) {
|
|
23466
|
+
eventCallback(event);
|
|
23467
|
+
}
|
|
23468
|
+
var ignore = skipRippleAction;
|
|
23469
|
+
if (!ignore && rippleRef.current) {
|
|
23470
|
+
rippleRef.current[rippleAction](event);
|
|
23471
|
+
}
|
|
23472
|
+
return true;
|
|
23473
|
+
});
|
|
23474
|
+
}
|
|
23475
|
+
var handleMouseDown = useRippleHandler("start", onMouseDown);
|
|
23476
|
+
var handleDragLeave = useRippleHandler("stop", onDragLeave);
|
|
23477
|
+
var handleMouseUp = useRippleHandler("stop", onMouseUp);
|
|
23478
|
+
var handleMouseLeave = useRippleHandler("stop", function(event) {
|
|
23479
|
+
if (focusVisible) {
|
|
23480
|
+
event.preventDefault();
|
|
23481
|
+
}
|
|
23482
|
+
if (onMouseLeave) {
|
|
23483
|
+
onMouseLeave(event);
|
|
23484
|
+
}
|
|
23485
|
+
});
|
|
23486
|
+
var handleTouchStart = useRippleHandler("start", onTouchStart);
|
|
23487
|
+
var handleTouchEnd = useRippleHandler("stop", onTouchEnd);
|
|
23488
|
+
var handleTouchMove = useRippleHandler("stop", onTouchMove);
|
|
23489
|
+
var handleBlur = useRippleHandler("stop", function(event) {
|
|
23490
|
+
if (focusVisible) {
|
|
23491
|
+
onBlurVisible(event);
|
|
23492
|
+
setFocusVisible(false);
|
|
23493
|
+
}
|
|
23494
|
+
if (onBlur) {
|
|
23495
|
+
onBlur(event);
|
|
23496
|
+
}
|
|
23497
|
+
}, false);
|
|
23498
|
+
var handleFocus = useEventCallback(function(event) {
|
|
23499
|
+
if (!buttonRef.current) {
|
|
23500
|
+
buttonRef.current = event.currentTarget;
|
|
23501
|
+
}
|
|
23502
|
+
if (isFocusVisible2(event)) {
|
|
23503
|
+
setFocusVisible(true);
|
|
23504
|
+
if (onFocusVisible) {
|
|
23505
|
+
onFocusVisible(event);
|
|
23506
|
+
}
|
|
23507
|
+
}
|
|
23508
|
+
if (onFocus) {
|
|
23509
|
+
onFocus(event);
|
|
23510
|
+
}
|
|
23511
|
+
});
|
|
23512
|
+
var isNonNativeButton = function isNonNativeButton2() {
|
|
23513
|
+
var button = getButtonNode();
|
|
23514
|
+
return component && component !== "button" && !(button.tagName === "A" && button.href);
|
|
23515
|
+
};
|
|
23516
|
+
var keydownRef = React.useRef(false);
|
|
23517
|
+
var handleKeyDown2 = useEventCallback(function(event) {
|
|
23518
|
+
if (focusRipple && !keydownRef.current && focusVisible && rippleRef.current && event.key === " ") {
|
|
23519
|
+
keydownRef.current = true;
|
|
23520
|
+
event.persist();
|
|
23521
|
+
rippleRef.current.stop(event, function() {
|
|
23522
|
+
rippleRef.current.start(event);
|
|
23523
|
+
});
|
|
23524
|
+
}
|
|
23525
|
+
if (event.target === event.currentTarget && isNonNativeButton() && event.key === " ") {
|
|
23526
|
+
event.preventDefault();
|
|
23527
|
+
}
|
|
23528
|
+
if (onKeyDown) {
|
|
23529
|
+
onKeyDown(event);
|
|
23530
|
+
}
|
|
23531
|
+
if (event.target === event.currentTarget && isNonNativeButton() && event.key === "Enter" && !disabled) {
|
|
23532
|
+
event.preventDefault();
|
|
23533
|
+
if (onClick) {
|
|
23534
|
+
onClick(event);
|
|
23535
|
+
}
|
|
23536
|
+
}
|
|
23537
|
+
});
|
|
23538
|
+
var handleKeyUp = useEventCallback(function(event) {
|
|
23539
|
+
if (focusRipple && event.key === " " && rippleRef.current && focusVisible && !event.defaultPrevented) {
|
|
23540
|
+
keydownRef.current = false;
|
|
23541
|
+
event.persist();
|
|
23542
|
+
rippleRef.current.stop(event, function() {
|
|
23543
|
+
rippleRef.current.pulsate(event);
|
|
23544
|
+
});
|
|
23545
|
+
}
|
|
23546
|
+
if (onKeyUp) {
|
|
23547
|
+
onKeyUp(event);
|
|
23548
|
+
}
|
|
23549
|
+
if (onClick && event.target === event.currentTarget && isNonNativeButton() && event.key === " " && !event.defaultPrevented) {
|
|
23550
|
+
onClick(event);
|
|
23551
|
+
}
|
|
23552
|
+
});
|
|
23553
|
+
var ComponentProp = component;
|
|
23554
|
+
if (ComponentProp === "button" && other.href) {
|
|
23555
|
+
ComponentProp = "a";
|
|
23556
|
+
}
|
|
23557
|
+
var buttonProps = {};
|
|
23558
|
+
if (ComponentProp === "button") {
|
|
23559
|
+
buttonProps.type = type;
|
|
23560
|
+
buttonProps.disabled = disabled;
|
|
23561
|
+
} else {
|
|
23562
|
+
if (ComponentProp !== "a" || !other.href) {
|
|
23563
|
+
buttonProps.role = "button";
|
|
23564
|
+
}
|
|
23565
|
+
buttonProps["aria-disabled"] = disabled;
|
|
23566
|
+
}
|
|
23567
|
+
var handleUserRef = useForkRef(buttonRefProp, ref);
|
|
23568
|
+
var handleOwnRef = useForkRef(focusVisibleRef, buttonRef);
|
|
23569
|
+
var handleRef = useForkRef(handleUserRef, handleOwnRef);
|
|
23570
|
+
var _React$useState2 = React.useState(false), mountedState = _React$useState2[0], setMountedState = _React$useState2[1];
|
|
23571
|
+
React.useEffect(function() {
|
|
23572
|
+
setMountedState(true);
|
|
23573
|
+
}, []);
|
|
23574
|
+
var enableTouchRipple = mountedState && !disableRipple && !disabled;
|
|
23575
|
+
{
|
|
23576
|
+
React.useEffect(function() {
|
|
23577
|
+
if (enableTouchRipple && !rippleRef.current) {
|
|
23578
|
+
console.error(["Material-UI: The `component` prop provided to ButtonBase is invalid.", "Please make sure the children prop is rendered in this custom component."].join("\n"));
|
|
23579
|
+
}
|
|
23580
|
+
}, [enableTouchRipple]);
|
|
23581
|
+
}
|
|
23582
|
+
return /* @__PURE__ */ React.createElement(ComponentProp, _extends$2({
|
|
23583
|
+
className: clsx(classes.root, className, focusVisible && [classes.focusVisible, focusVisibleClassName], disabled && classes.disabled),
|
|
23584
|
+
onBlur: handleBlur,
|
|
23585
|
+
onClick,
|
|
23586
|
+
onFocus: handleFocus,
|
|
23587
|
+
onKeyDown: handleKeyDown2,
|
|
23588
|
+
onKeyUp: handleKeyUp,
|
|
23589
|
+
onMouseDown: handleMouseDown,
|
|
23590
|
+
onMouseLeave: handleMouseLeave,
|
|
23591
|
+
onMouseUp: handleMouseUp,
|
|
23592
|
+
onDragLeave: handleDragLeave,
|
|
23593
|
+
onTouchEnd: handleTouchEnd,
|
|
23594
|
+
onTouchMove: handleTouchMove,
|
|
23595
|
+
onTouchStart: handleTouchStart,
|
|
23596
|
+
ref: handleRef,
|
|
23597
|
+
tabIndex: disabled ? -1 : tabIndex
|
|
23598
|
+
}, buttonProps, other), children, enableTouchRipple ? (
|
|
23599
|
+
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
|
23600
|
+
/* @__PURE__ */ React.createElement(TouchRipple$1, _extends$2({
|
|
23601
|
+
ref: rippleRef,
|
|
23602
|
+
center: centerRipple
|
|
23603
|
+
}, TouchRippleProps))
|
|
23604
|
+
) : null);
|
|
23605
|
+
});
|
|
23606
|
+
ButtonBase.propTypes = {
|
|
23607
|
+
// ----------------------------- Warning --------------------------------
|
|
23608
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
23609
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
23610
|
+
// ----------------------------------------------------------------------
|
|
23611
|
+
/**
|
|
23612
|
+
* A ref for imperative actions.
|
|
23613
|
+
* It currently only supports `focusVisible()` action.
|
|
23614
|
+
*/
|
|
23615
|
+
action: refType$1,
|
|
23616
|
+
/**
|
|
23617
|
+
* @ignore
|
|
23618
|
+
*
|
|
23619
|
+
* Use that prop to pass a ref to the native button component.
|
|
23620
|
+
* @deprecated Use `ref` instead.
|
|
23621
|
+
*/
|
|
23622
|
+
buttonRef: deprecatedPropType(refType$1, "Use `ref` instead."),
|
|
23623
|
+
/**
|
|
23624
|
+
* If `true`, the ripples will be centered.
|
|
23625
|
+
* They won't start at the cursor interaction position.
|
|
23626
|
+
*/
|
|
23627
|
+
centerRipple: PropTypes.bool,
|
|
23628
|
+
/**
|
|
23629
|
+
* The content of the component.
|
|
23630
|
+
*/
|
|
23631
|
+
children: PropTypes.node,
|
|
23632
|
+
/**
|
|
23633
|
+
* Override or extend the styles applied to the component.
|
|
23634
|
+
* See [CSS API](#css) below for more details.
|
|
23635
|
+
*/
|
|
23636
|
+
classes: PropTypes.object,
|
|
23637
|
+
/**
|
|
23638
|
+
* @ignore
|
|
23639
|
+
*/
|
|
23640
|
+
className: PropTypes.string,
|
|
23641
|
+
/**
|
|
23642
|
+
* The component used for the root node.
|
|
23643
|
+
* Either a string to use a HTML element or a component.
|
|
23644
|
+
*/
|
|
23645
|
+
component: elementTypeAcceptingRef$1,
|
|
23646
|
+
/**
|
|
23647
|
+
* If `true`, the base button will be disabled.
|
|
23648
|
+
*/
|
|
23649
|
+
disabled: PropTypes.bool,
|
|
23650
|
+
/**
|
|
23651
|
+
* If `true`, the ripple effect will be disabled.
|
|
23652
|
+
*
|
|
23653
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
23654
|
+
* to highlight the element by applying separate styles with the `focusVisibleClassName`.
|
|
23655
|
+
*/
|
|
23656
|
+
disableRipple: PropTypes.bool,
|
|
23657
|
+
/**
|
|
23658
|
+
* If `true`, the touch ripple effect will be disabled.
|
|
23659
|
+
*/
|
|
23660
|
+
disableTouchRipple: PropTypes.bool,
|
|
23661
|
+
/**
|
|
23662
|
+
* If `true`, the base button will have a keyboard focus ripple.
|
|
23663
|
+
*/
|
|
23664
|
+
focusRipple: PropTypes.bool,
|
|
23665
|
+
/**
|
|
23666
|
+
* This prop can help identify which element has keyboard focus.
|
|
23667
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
23668
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
23669
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/master/explainer.md).
|
|
23670
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
23671
|
+
* if needed.
|
|
23672
|
+
*/
|
|
23673
|
+
focusVisibleClassName: PropTypes.string,
|
|
23674
|
+
/**
|
|
23675
|
+
* @ignore
|
|
23676
|
+
*/
|
|
23677
|
+
href: PropTypes.string,
|
|
23678
|
+
/**
|
|
23679
|
+
* @ignore
|
|
23680
|
+
*/
|
|
23681
|
+
onBlur: PropTypes.func,
|
|
23682
|
+
/**
|
|
23683
|
+
* @ignore
|
|
23684
|
+
*/
|
|
23685
|
+
onClick: PropTypes.func,
|
|
23686
|
+
/**
|
|
23687
|
+
* @ignore
|
|
23688
|
+
*/
|
|
23689
|
+
onDragLeave: PropTypes.func,
|
|
23690
|
+
/**
|
|
23691
|
+
* @ignore
|
|
23692
|
+
*/
|
|
23693
|
+
onFocus: PropTypes.func,
|
|
23694
|
+
/**
|
|
23695
|
+
* Callback fired when the component is focused with a keyboard.
|
|
23696
|
+
* We trigger a `onFocus` callback too.
|
|
23697
|
+
*/
|
|
23698
|
+
onFocusVisible: PropTypes.func,
|
|
23699
|
+
/**
|
|
23700
|
+
* @ignore
|
|
23701
|
+
*/
|
|
23702
|
+
onKeyDown: PropTypes.func,
|
|
23703
|
+
/**
|
|
23704
|
+
* @ignore
|
|
23705
|
+
*/
|
|
23706
|
+
onKeyUp: PropTypes.func,
|
|
23707
|
+
/**
|
|
23708
|
+
* @ignore
|
|
23709
|
+
*/
|
|
23710
|
+
onMouseDown: PropTypes.func,
|
|
23711
|
+
/**
|
|
23712
|
+
* @ignore
|
|
23713
|
+
*/
|
|
23714
|
+
onMouseLeave: PropTypes.func,
|
|
23715
|
+
/**
|
|
23716
|
+
* @ignore
|
|
23717
|
+
*/
|
|
23718
|
+
onMouseUp: PropTypes.func,
|
|
23719
|
+
/**
|
|
23720
|
+
* @ignore
|
|
23721
|
+
*/
|
|
23722
|
+
onTouchEnd: PropTypes.func,
|
|
23723
|
+
/**
|
|
23724
|
+
* @ignore
|
|
23725
|
+
*/
|
|
23726
|
+
onTouchMove: PropTypes.func,
|
|
23727
|
+
/**
|
|
23728
|
+
* @ignore
|
|
23729
|
+
*/
|
|
23730
|
+
onTouchStart: PropTypes.func,
|
|
23731
|
+
/**
|
|
23732
|
+
* @ignore
|
|
23733
|
+
*/
|
|
23734
|
+
tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
23735
|
+
/**
|
|
23736
|
+
* Props applied to the `TouchRipple` element.
|
|
23737
|
+
*/
|
|
23738
|
+
TouchRippleProps: PropTypes.object,
|
|
23739
|
+
/**
|
|
23740
|
+
* @ignore
|
|
23741
|
+
*/
|
|
23742
|
+
type: PropTypes.oneOfType([PropTypes.oneOf(["button", "reset", "submit"]), PropTypes.string])
|
|
23743
|
+
};
|
|
23744
|
+
const ButtonBase$1 = withStyles2(styles$5, {
|
|
23745
|
+
name: "MuiButtonBase"
|
|
23746
|
+
})(ButtonBase);
|
|
23747
|
+
var styles$4 = function styles3(theme) {
|
|
23748
|
+
return {
|
|
23749
|
+
/* Styles applied to the root element. */
|
|
23750
|
+
root: {
|
|
23751
|
+
textAlign: "center",
|
|
23752
|
+
flex: "0 0 auto",
|
|
23753
|
+
fontSize: theme.typography.pxToRem(24),
|
|
23754
|
+
padding: 12,
|
|
23755
|
+
borderRadius: "50%",
|
|
23756
|
+
overflow: "visible",
|
|
23757
|
+
// Explicitly set the default value to solve a bug on IE 11.
|
|
23758
|
+
color: theme.palette.action.active,
|
|
23759
|
+
transition: theme.transitions.create("background-color", {
|
|
23760
|
+
duration: theme.transitions.duration.shortest
|
|
23761
|
+
}),
|
|
23762
|
+
"&:hover": {
|
|
23763
|
+
backgroundColor: alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
|
|
23764
|
+
// Reset on touch devices, it doesn't add specificity
|
|
23765
|
+
"@media (hover: none)": {
|
|
23766
|
+
backgroundColor: "transparent"
|
|
23767
|
+
}
|
|
23768
|
+
},
|
|
23769
|
+
"&$disabled": {
|
|
23770
|
+
backgroundColor: "transparent",
|
|
23771
|
+
color: theme.palette.action.disabled
|
|
23772
|
+
}
|
|
23773
|
+
},
|
|
23774
|
+
/* Styles applied to the root element if `edge="start"`. */
|
|
23775
|
+
edgeStart: {
|
|
23776
|
+
marginLeft: -12,
|
|
23777
|
+
"$sizeSmall&": {
|
|
23778
|
+
marginLeft: -3
|
|
23779
|
+
}
|
|
23780
|
+
},
|
|
23781
|
+
/* Styles applied to the root element if `edge="end"`. */
|
|
23782
|
+
edgeEnd: {
|
|
23783
|
+
marginRight: -12,
|
|
23784
|
+
"$sizeSmall&": {
|
|
23785
|
+
marginRight: -3
|
|
23786
|
+
}
|
|
23787
|
+
},
|
|
23788
|
+
/* Styles applied to the root element if `color="inherit"`. */
|
|
23789
|
+
colorInherit: {
|
|
23790
|
+
color: "inherit"
|
|
23791
|
+
},
|
|
23792
|
+
/* Styles applied to the root element if `color="primary"`. */
|
|
23793
|
+
colorPrimary: {
|
|
23794
|
+
color: theme.palette.primary.main,
|
|
23795
|
+
"&:hover": {
|
|
23796
|
+
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),
|
|
23797
|
+
// Reset on touch devices, it doesn't add specificity
|
|
23798
|
+
"@media (hover: none)": {
|
|
23799
|
+
backgroundColor: "transparent"
|
|
23800
|
+
}
|
|
23801
|
+
}
|
|
23802
|
+
},
|
|
23803
|
+
/* Styles applied to the root element if `color="secondary"`. */
|
|
23804
|
+
colorSecondary: {
|
|
23805
|
+
color: theme.palette.secondary.main,
|
|
23806
|
+
"&:hover": {
|
|
23807
|
+
backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.hoverOpacity),
|
|
23808
|
+
// Reset on touch devices, it doesn't add specificity
|
|
23809
|
+
"@media (hover: none)": {
|
|
23810
|
+
backgroundColor: "transparent"
|
|
23811
|
+
}
|
|
23812
|
+
}
|
|
23813
|
+
},
|
|
23814
|
+
/* Pseudo-class applied to the root element if `disabled={true}`. */
|
|
23815
|
+
disabled: {},
|
|
23816
|
+
/* Styles applied to the root element if `size="small"`. */
|
|
23817
|
+
sizeSmall: {
|
|
23818
|
+
padding: 3,
|
|
23819
|
+
fontSize: theme.typography.pxToRem(18)
|
|
23820
|
+
},
|
|
23821
|
+
/* Styles applied to the children container element. */
|
|
23822
|
+
label: {
|
|
23823
|
+
width: "100%",
|
|
23824
|
+
display: "flex",
|
|
23825
|
+
alignItems: "inherit",
|
|
23826
|
+
justifyContent: "inherit"
|
|
23827
|
+
}
|
|
23828
|
+
};
|
|
23829
|
+
};
|
|
23830
|
+
var IconButton = /* @__PURE__ */ React.forwardRef(function IconButton2(props, ref) {
|
|
23831
|
+
var _props$edge = props.edge, edge = _props$edge === void 0 ? false : _props$edge, children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color = _props$color === void 0 ? "default" : _props$color, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableFocusRi = props.disableFocusRipple, disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties(props, ["edge", "children", "classes", "className", "color", "disabled", "disableFocusRipple", "size"]);
|
|
23832
|
+
return /* @__PURE__ */ React.createElement(ButtonBase$1, _extends$2({
|
|
23833
|
+
className: clsx(classes.root, className, color !== "default" && classes["color".concat(capitalize(color))], disabled && classes.disabled, size2 === "small" && classes["size".concat(capitalize(size2))], {
|
|
23834
|
+
"start": classes.edgeStart,
|
|
23835
|
+
"end": classes.edgeEnd
|
|
23836
|
+
}[edge]),
|
|
23837
|
+
centerRipple: true,
|
|
23838
|
+
focusRipple: !disableFocusRipple,
|
|
23839
|
+
disabled,
|
|
23840
|
+
ref
|
|
23841
|
+
}, other), /* @__PURE__ */ React.createElement("span", {
|
|
23842
|
+
className: classes.label
|
|
23843
|
+
}, children));
|
|
23844
|
+
});
|
|
23845
|
+
IconButton.propTypes = {
|
|
23846
|
+
/**
|
|
23847
|
+
* The icon element.
|
|
23848
|
+
*/
|
|
23849
|
+
children: chainPropTypes(PropTypes.node, function(props) {
|
|
23850
|
+
var found = React.Children.toArray(props.children).some(function(child2) {
|
|
23851
|
+
return /* @__PURE__ */ React.isValidElement(child2) && child2.props.onClick;
|
|
23852
|
+
});
|
|
23853
|
+
if (found) {
|
|
23854
|
+
return new Error(["Material-UI: You are providing an onClick event listener to a child of a button element.", "Firefox will never trigger the event.", "You should move the onClick listener to the parent button element.", "https://github.com/mui-org/material-ui/issues/13957"].join("\n"));
|
|
23855
|
+
}
|
|
23856
|
+
return null;
|
|
23857
|
+
}),
|
|
23858
|
+
/**
|
|
23859
|
+
* Override or extend the styles applied to the component.
|
|
23860
|
+
* See [CSS API](#css) below for more details.
|
|
23861
|
+
*/
|
|
23862
|
+
classes: PropTypes.object.isRequired,
|
|
23863
|
+
/**
|
|
23864
|
+
* @ignore
|
|
23865
|
+
*/
|
|
23866
|
+
className: PropTypes.string,
|
|
23867
|
+
/**
|
|
23868
|
+
* The color of the component. It supports those theme colors that make sense for this component.
|
|
23869
|
+
*/
|
|
23870
|
+
color: PropTypes.oneOf(["default", "inherit", "primary", "secondary"]),
|
|
23871
|
+
/**
|
|
23872
|
+
* If `true`, the button will be disabled.
|
|
23873
|
+
*/
|
|
23874
|
+
disabled: PropTypes.bool,
|
|
23875
|
+
/**
|
|
23876
|
+
* If `true`, the keyboard focus ripple will be disabled.
|
|
23877
|
+
*/
|
|
23878
|
+
disableFocusRipple: PropTypes.bool,
|
|
23879
|
+
/**
|
|
23880
|
+
* If `true`, the ripple effect will be disabled.
|
|
23881
|
+
*/
|
|
23882
|
+
disableRipple: PropTypes.bool,
|
|
23883
|
+
/**
|
|
23884
|
+
* If given, uses a negative margin to counteract the padding on one
|
|
23885
|
+
* side (this is often helpful for aligning the left or right
|
|
23886
|
+
* side of the icon with content above or below, without ruining the border
|
|
23887
|
+
* size and shape).
|
|
23888
|
+
*/
|
|
23889
|
+
edge: PropTypes.oneOf(["start", "end", false]),
|
|
23890
|
+
/**
|
|
23891
|
+
* The size of the button.
|
|
23892
|
+
* `small` is equivalent to the dense button styling.
|
|
23893
|
+
*/
|
|
23894
|
+
size: PropTypes.oneOf(["small", "medium"])
|
|
23895
|
+
};
|
|
23896
|
+
const IconButton$1 = withStyles2(styles$4, {
|
|
23897
|
+
name: "MuiIconButton"
|
|
23898
|
+
})(IconButton);
|
|
23899
|
+
var FormControlContext = React.createContext();
|
|
23900
|
+
{
|
|
23901
|
+
FormControlContext.displayName = "FormControlContext";
|
|
23902
|
+
}
|
|
23903
|
+
const FormControlContext$1 = FormControlContext;
|
|
23904
|
+
function useFormControl() {
|
|
23905
|
+
return React.useContext(FormControlContext$1);
|
|
23906
|
+
}
|
|
23907
|
+
var styles$3 = {
|
|
23908
|
+
root: {
|
|
23909
|
+
padding: 9
|
|
23910
|
+
},
|
|
23911
|
+
checked: {},
|
|
23912
|
+
disabled: {},
|
|
23913
|
+
input: {
|
|
23914
|
+
cursor: "inherit",
|
|
23915
|
+
position: "absolute",
|
|
23916
|
+
opacity: 0,
|
|
23917
|
+
width: "100%",
|
|
23918
|
+
height: "100%",
|
|
23919
|
+
top: 0,
|
|
23920
|
+
left: 0,
|
|
23921
|
+
margin: 0,
|
|
23922
|
+
padding: 0,
|
|
23923
|
+
zIndex: 1
|
|
23924
|
+
}
|
|
23925
|
+
};
|
|
23926
|
+
var SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props, ref) {
|
|
23927
|
+
var autoFocus = props.autoFocus, checkedProp = props.checked, checkedIcon = props.checkedIcon, classes = props.classes, className = props.className, defaultChecked = props.defaultChecked, disabledProp = props.disabled, icon = props.icon, id = props.id, inputProps = props.inputProps, inputRef = props.inputRef, name = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, readOnly = props.readOnly, required = props.required, tabIndex = props.tabIndex, type = props.type, value = props.value, other = _objectWithoutProperties(props, ["autoFocus", "checked", "checkedIcon", "classes", "className", "defaultChecked", "disabled", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"]);
|
|
23928
|
+
var _useControlled = useControlled({
|
|
23929
|
+
controlled: checkedProp,
|
|
23930
|
+
default: Boolean(defaultChecked),
|
|
23931
|
+
name: "SwitchBase",
|
|
23932
|
+
state: "checked"
|
|
23933
|
+
}), _useControlled2 = _slicedToArray(_useControlled, 2), checked = _useControlled2[0], setCheckedState = _useControlled2[1];
|
|
23934
|
+
var muiFormControl = useFormControl();
|
|
23935
|
+
var handleFocus = function handleFocus2(event) {
|
|
23936
|
+
if (onFocus) {
|
|
23937
|
+
onFocus(event);
|
|
23938
|
+
}
|
|
23939
|
+
if (muiFormControl && muiFormControl.onFocus) {
|
|
23940
|
+
muiFormControl.onFocus(event);
|
|
23941
|
+
}
|
|
23942
|
+
};
|
|
23943
|
+
var handleBlur = function handleBlur2(event) {
|
|
23944
|
+
if (onBlur) {
|
|
23945
|
+
onBlur(event);
|
|
23946
|
+
}
|
|
23947
|
+
if (muiFormControl && muiFormControl.onBlur) {
|
|
23948
|
+
muiFormControl.onBlur(event);
|
|
23949
|
+
}
|
|
23950
|
+
};
|
|
23951
|
+
var handleInputChange = function handleInputChange2(event) {
|
|
23952
|
+
var newChecked = event.target.checked;
|
|
23953
|
+
setCheckedState(newChecked);
|
|
23954
|
+
if (onChange) {
|
|
23955
|
+
onChange(event, newChecked);
|
|
23956
|
+
}
|
|
23957
|
+
};
|
|
23958
|
+
var disabled = disabledProp;
|
|
23959
|
+
if (muiFormControl) {
|
|
23960
|
+
if (typeof disabled === "undefined") {
|
|
23961
|
+
disabled = muiFormControl.disabled;
|
|
23962
|
+
}
|
|
23963
|
+
}
|
|
23964
|
+
var hasLabelFor = type === "checkbox" || type === "radio";
|
|
23965
|
+
return /* @__PURE__ */ React.createElement(IconButton$1, _extends$2({
|
|
23966
|
+
component: "span",
|
|
23967
|
+
className: clsx(classes.root, className, checked && classes.checked, disabled && classes.disabled),
|
|
23968
|
+
disabled,
|
|
23969
|
+
tabIndex: null,
|
|
23970
|
+
role: void 0,
|
|
23971
|
+
onFocus: handleFocus,
|
|
23972
|
+
onBlur: handleBlur,
|
|
23973
|
+
ref
|
|
23974
|
+
}, other), /* @__PURE__ */ React.createElement("input", _extends$2({
|
|
23975
|
+
autoFocus,
|
|
23976
|
+
checked: checkedProp,
|
|
23977
|
+
defaultChecked,
|
|
23978
|
+
className: classes.input,
|
|
23979
|
+
disabled,
|
|
23980
|
+
id: hasLabelFor && id,
|
|
23981
|
+
name,
|
|
23982
|
+
onChange: handleInputChange,
|
|
23983
|
+
readOnly,
|
|
23984
|
+
ref: inputRef,
|
|
23985
|
+
required,
|
|
23986
|
+
tabIndex,
|
|
23987
|
+
type,
|
|
23988
|
+
value
|
|
23989
|
+
}, inputProps)), checked ? checkedIcon : icon);
|
|
23990
|
+
});
|
|
23991
|
+
SwitchBase.propTypes = {
|
|
23992
|
+
/**
|
|
23993
|
+
* If `true`, the `input` element will be focused during the first mount.
|
|
23994
|
+
*/
|
|
23995
|
+
autoFocus: PropTypes.bool,
|
|
23996
|
+
/**
|
|
23997
|
+
* If `true`, the component is checked.
|
|
23998
|
+
*/
|
|
23999
|
+
checked: PropTypes.bool,
|
|
24000
|
+
/**
|
|
24001
|
+
* The icon to display when the component is checked.
|
|
24002
|
+
*/
|
|
24003
|
+
checkedIcon: PropTypes.node.isRequired,
|
|
24004
|
+
/**
|
|
24005
|
+
* Override or extend the styles applied to the component.
|
|
24006
|
+
* See [CSS API](#css) below for more details.
|
|
24007
|
+
*/
|
|
24008
|
+
classes: PropTypes.object.isRequired,
|
|
24009
|
+
/**
|
|
24010
|
+
* @ignore
|
|
24011
|
+
*/
|
|
24012
|
+
className: PropTypes.string,
|
|
24013
|
+
/**
|
|
24014
|
+
* @ignore
|
|
24015
|
+
*/
|
|
24016
|
+
defaultChecked: PropTypes.bool,
|
|
24017
|
+
/**
|
|
24018
|
+
* If `true`, the switch will be disabled.
|
|
24019
|
+
*/
|
|
24020
|
+
disabled: PropTypes.bool,
|
|
24021
|
+
/**
|
|
24022
|
+
* The icon to display when the component is unchecked.
|
|
24023
|
+
*/
|
|
24024
|
+
icon: PropTypes.node.isRequired,
|
|
24025
|
+
/**
|
|
24026
|
+
* The id of the `input` element.
|
|
24027
|
+
*/
|
|
24028
|
+
id: PropTypes.string,
|
|
24029
|
+
/**
|
|
24030
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
24031
|
+
*/
|
|
24032
|
+
inputProps: PropTypes.object,
|
|
24033
|
+
/**
|
|
24034
|
+
* Pass a ref to the `input` element.
|
|
24035
|
+
*/
|
|
24036
|
+
inputRef: refType$1,
|
|
24037
|
+
/*
|
|
24038
|
+
* @ignore
|
|
24039
|
+
*/
|
|
24040
|
+
name: PropTypes.string,
|
|
24041
|
+
/**
|
|
24042
|
+
* @ignore
|
|
24043
|
+
*/
|
|
24044
|
+
onBlur: PropTypes.func,
|
|
24045
|
+
/**
|
|
24046
|
+
* Callback fired when the state is changed.
|
|
24047
|
+
*
|
|
24048
|
+
* @param {object} event The event source of the callback.
|
|
24049
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
24050
|
+
*/
|
|
24051
|
+
onChange: PropTypes.func,
|
|
24052
|
+
/**
|
|
24053
|
+
* @ignore
|
|
24054
|
+
*/
|
|
24055
|
+
onFocus: PropTypes.func,
|
|
24056
|
+
/**
|
|
24057
|
+
* It prevents the user from changing the value of the field
|
|
24058
|
+
* (not from interacting with the field).
|
|
24059
|
+
*/
|
|
24060
|
+
readOnly: PropTypes.bool,
|
|
24061
|
+
/**
|
|
24062
|
+
* If `true`, the `input` element will be required.
|
|
24063
|
+
*/
|
|
24064
|
+
required: PropTypes.bool,
|
|
24065
|
+
/**
|
|
24066
|
+
* @ignore
|
|
24067
|
+
*/
|
|
24068
|
+
tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
24069
|
+
/**
|
|
24070
|
+
* The input component prop `type`.
|
|
24071
|
+
*/
|
|
24072
|
+
type: PropTypes.string.isRequired,
|
|
24073
|
+
/**
|
|
24074
|
+
* The value of the component.
|
|
24075
|
+
*/
|
|
24076
|
+
value: PropTypes.any
|
|
24077
|
+
};
|
|
24078
|
+
const SwitchBase$1 = withStyles2(styles$3, {
|
|
24079
|
+
name: "PrivateSwitchBase"
|
|
24080
|
+
})(SwitchBase);
|
|
24081
|
+
const CheckBoxOutlineBlankIcon = createSvgIcon(/* @__PURE__ */ React.createElement("path", {
|
|
24082
|
+
d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
|
|
24083
|
+
}), "CheckBoxOutlineBlank");
|
|
24084
|
+
const CheckBoxIcon = createSvgIcon(/* @__PURE__ */ React.createElement("path", {
|
|
24085
|
+
d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
24086
|
+
}), "CheckBox");
|
|
24087
|
+
const IndeterminateCheckBoxIcon = createSvgIcon(/* @__PURE__ */ React.createElement("path", {
|
|
24088
|
+
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
|
|
24089
|
+
}), "IndeterminateCheckBox");
|
|
24090
|
+
var styles$2 = function styles4(theme) {
|
|
24091
|
+
return {
|
|
24092
|
+
/* Styles applied to the root element. */
|
|
24093
|
+
root: {
|
|
24094
|
+
color: theme.palette.text.secondary
|
|
24095
|
+
},
|
|
24096
|
+
/* Pseudo-class applied to the root element if `checked={true}`. */
|
|
24097
|
+
checked: {},
|
|
24098
|
+
/* Pseudo-class applied to the root element if `disabled={true}`. */
|
|
24099
|
+
disabled: {},
|
|
24100
|
+
/* Pseudo-class applied to the root element if `indeterminate={true}`. */
|
|
24101
|
+
indeterminate: {},
|
|
24102
|
+
/* Styles applied to the root element if `color="primary"`. */
|
|
24103
|
+
colorPrimary: {
|
|
24104
|
+
"&$checked": {
|
|
24105
|
+
color: theme.palette.primary.main,
|
|
24106
|
+
"&:hover": {
|
|
24107
|
+
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),
|
|
24108
|
+
// Reset on touch devices, it doesn't add specificity
|
|
24109
|
+
"@media (hover: none)": {
|
|
24110
|
+
backgroundColor: "transparent"
|
|
24111
|
+
}
|
|
24112
|
+
}
|
|
24113
|
+
},
|
|
24114
|
+
"&$disabled": {
|
|
24115
|
+
color: theme.palette.action.disabled
|
|
24116
|
+
}
|
|
24117
|
+
},
|
|
24118
|
+
/* Styles applied to the root element if `color="secondary"`. */
|
|
24119
|
+
colorSecondary: {
|
|
24120
|
+
"&$checked": {
|
|
24121
|
+
color: theme.palette.secondary.main,
|
|
24122
|
+
"&:hover": {
|
|
24123
|
+
backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.hoverOpacity),
|
|
24124
|
+
// Reset on touch devices, it doesn't add specificity
|
|
24125
|
+
"@media (hover: none)": {
|
|
24126
|
+
backgroundColor: "transparent"
|
|
24127
|
+
}
|
|
24128
|
+
}
|
|
24129
|
+
},
|
|
24130
|
+
"&$disabled": {
|
|
24131
|
+
color: theme.palette.action.disabled
|
|
24132
|
+
}
|
|
24133
|
+
}
|
|
24134
|
+
};
|
|
24135
|
+
};
|
|
24136
|
+
var defaultCheckedIcon = /* @__PURE__ */ React.createElement(CheckBoxIcon, null);
|
|
24137
|
+
var defaultIcon = /* @__PURE__ */ React.createElement(CheckBoxOutlineBlankIcon, null);
|
|
24138
|
+
var defaultIndeterminateIcon = /* @__PURE__ */ React.createElement(IndeterminateCheckBoxIcon, null);
|
|
24139
|
+
var Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(props, ref) {
|
|
24140
|
+
var _props$checkedIcon = props.checkedIcon, checkedIcon = _props$checkedIcon === void 0 ? defaultCheckedIcon : _props$checkedIcon, classes = props.classes, _props$color = props.color, color = _props$color === void 0 ? "secondary" : _props$color, _props$icon = props.icon, iconProp = _props$icon === void 0 ? defaultIcon : _props$icon, _props$indeterminate = props.indeterminate, indeterminate = _props$indeterminate === void 0 ? false : _props$indeterminate, _props$indeterminateI = props.indeterminateIcon, indeterminateIconProp = _props$indeterminateI === void 0 ? defaultIndeterminateIcon : _props$indeterminateI, inputProps = props.inputProps, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties(props, ["checkedIcon", "classes", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size"]);
|
|
24141
|
+
var icon = indeterminate ? indeterminateIconProp : iconProp;
|
|
24142
|
+
var indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;
|
|
24143
|
+
return /* @__PURE__ */ React.createElement(SwitchBase$1, _extends$2({
|
|
24144
|
+
type: "checkbox",
|
|
24145
|
+
classes: {
|
|
24146
|
+
root: clsx(classes.root, classes["color".concat(capitalize(color))], indeterminate && classes.indeterminate),
|
|
24147
|
+
checked: classes.checked,
|
|
24148
|
+
disabled: classes.disabled
|
|
24149
|
+
},
|
|
24150
|
+
color,
|
|
24151
|
+
inputProps: _extends$2({
|
|
24152
|
+
"data-indeterminate": indeterminate
|
|
24153
|
+
}, inputProps),
|
|
24154
|
+
icon: /* @__PURE__ */ React.cloneElement(icon, {
|
|
24155
|
+
fontSize: icon.props.fontSize === void 0 && size2 === "small" ? size2 : icon.props.fontSize
|
|
24156
|
+
}),
|
|
24157
|
+
checkedIcon: /* @__PURE__ */ React.cloneElement(indeterminateIcon, {
|
|
24158
|
+
fontSize: indeterminateIcon.props.fontSize === void 0 && size2 === "small" ? size2 : indeterminateIcon.props.fontSize
|
|
24159
|
+
}),
|
|
24160
|
+
ref
|
|
24161
|
+
}, other));
|
|
24162
|
+
});
|
|
24163
|
+
Checkbox.propTypes = {
|
|
24164
|
+
// ----------------------------- Warning --------------------------------
|
|
24165
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
24166
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
24167
|
+
// ----------------------------------------------------------------------
|
|
24168
|
+
/**
|
|
24169
|
+
* If `true`, the component is checked.
|
|
24170
|
+
*/
|
|
24171
|
+
checked: PropTypes.bool,
|
|
24172
|
+
/**
|
|
24173
|
+
* The icon to display when the component is checked.
|
|
24174
|
+
*/
|
|
24175
|
+
checkedIcon: PropTypes.node,
|
|
24176
|
+
/**
|
|
24177
|
+
* Override or extend the styles applied to the component.
|
|
24178
|
+
* See [CSS API](#css) below for more details.
|
|
24179
|
+
*/
|
|
24180
|
+
classes: PropTypes.object,
|
|
24181
|
+
/**
|
|
24182
|
+
* The color of the component. It supports those theme colors that make sense for this component.
|
|
24183
|
+
*/
|
|
24184
|
+
color: PropTypes.oneOf(["default", "primary", "secondary"]),
|
|
24185
|
+
/**
|
|
24186
|
+
* If `true`, the checkbox will be disabled.
|
|
24187
|
+
*/
|
|
24188
|
+
disabled: PropTypes.bool,
|
|
24189
|
+
/**
|
|
24190
|
+
* If `true`, the ripple effect will be disabled.
|
|
24191
|
+
*/
|
|
24192
|
+
disableRipple: PropTypes.bool,
|
|
24193
|
+
/**
|
|
24194
|
+
* The icon to display when the component is unchecked.
|
|
24195
|
+
*/
|
|
24196
|
+
icon: PropTypes.node,
|
|
24197
|
+
/**
|
|
24198
|
+
* The id of the `input` element.
|
|
24199
|
+
*/
|
|
24200
|
+
id: PropTypes.string,
|
|
24201
|
+
/**
|
|
24202
|
+
* If `true`, the component appears indeterminate.
|
|
24203
|
+
* This does not set the native input element to indeterminate due
|
|
24204
|
+
* to inconsistent behavior across browsers.
|
|
24205
|
+
* However, we set a `data-indeterminate` attribute on the input.
|
|
24206
|
+
*/
|
|
24207
|
+
indeterminate: PropTypes.bool,
|
|
24208
|
+
/**
|
|
24209
|
+
* The icon to display when the component is indeterminate.
|
|
24210
|
+
*/
|
|
24211
|
+
indeterminateIcon: PropTypes.node,
|
|
24212
|
+
/**
|
|
24213
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
24214
|
+
*/
|
|
24215
|
+
inputProps: PropTypes.object,
|
|
24216
|
+
/**
|
|
24217
|
+
* Pass a ref to the `input` element.
|
|
24218
|
+
*/
|
|
24219
|
+
inputRef: refType$1,
|
|
24220
|
+
/**
|
|
24221
|
+
* Callback fired when the state is changed.
|
|
24222
|
+
*
|
|
24223
|
+
* @param {object} event The event source of the callback.
|
|
24224
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
24225
|
+
*/
|
|
24226
|
+
onChange: PropTypes.func,
|
|
24227
|
+
/**
|
|
24228
|
+
* If `true`, the `input` element will be required.
|
|
24229
|
+
*/
|
|
24230
|
+
required: PropTypes.bool,
|
|
24231
|
+
/**
|
|
24232
|
+
* The size of the checkbox.
|
|
24233
|
+
* `small` is equivalent to the dense checkbox styling.
|
|
24234
|
+
*/
|
|
24235
|
+
size: PropTypes.oneOf(["medium", "small"]),
|
|
24236
|
+
/**
|
|
24237
|
+
* The value of the component. The DOM API casts this to a string.
|
|
24238
|
+
* The browser uses "on" as the default value.
|
|
24239
|
+
*/
|
|
24240
|
+
value: PropTypes.any
|
|
24241
|
+
};
|
|
24242
|
+
const Checkbox$1 = withStyles2(styles$2, {
|
|
24243
|
+
name: "MuiCheckbox"
|
|
24244
|
+
})(Checkbox);
|
|
24245
|
+
var TableContext = React.createContext();
|
|
24246
|
+
{
|
|
24247
|
+
TableContext.displayName = "TableContext";
|
|
24248
|
+
}
|
|
24249
|
+
const TableContext$1 = TableContext;
|
|
24250
|
+
var Tablelvl2Context = React.createContext();
|
|
24251
|
+
{
|
|
24252
|
+
Tablelvl2Context.displayName = "Tablelvl2Context";
|
|
24253
|
+
}
|
|
24254
|
+
const Tablelvl2Context$1 = Tablelvl2Context;
|
|
24255
|
+
var styles$1 = function styles5(theme) {
|
|
24256
|
+
return {
|
|
24257
|
+
/* Styles applied to the root element. */
|
|
24258
|
+
root: _extends$2({}, theme.typography.body2, {
|
|
24259
|
+
display: "table-cell",
|
|
24260
|
+
verticalAlign: "inherit",
|
|
24261
|
+
// Workaround for a rendering bug with spanned columns in Chrome 62.0.
|
|
24262
|
+
// Removes the alpha (sets it to 1), and lightens or darkens the theme color.
|
|
24263
|
+
borderBottom: "1px solid\n ".concat(theme.palette.type === "light" ? lighten(alpha(theme.palette.divider, 1), 0.88) : darken(alpha(theme.palette.divider, 1), 0.68)),
|
|
24264
|
+
textAlign: "left",
|
|
24265
|
+
padding: 16
|
|
24266
|
+
}),
|
|
24267
|
+
/* Styles applied to the root element if `variant="head"` or `context.table.head`. */
|
|
24268
|
+
head: {
|
|
24269
|
+
color: theme.palette.text.primary,
|
|
24270
|
+
lineHeight: theme.typography.pxToRem(24),
|
|
24271
|
+
fontWeight: theme.typography.fontWeightMedium
|
|
24272
|
+
},
|
|
24273
|
+
/* Styles applied to the root element if `variant="body"` or `context.table.body`. */
|
|
24274
|
+
body: {
|
|
24275
|
+
color: theme.palette.text.primary
|
|
24276
|
+
},
|
|
24277
|
+
/* Styles applied to the root element if `variant="footer"` or `context.table.footer`. */
|
|
24278
|
+
footer: {
|
|
24279
|
+
color: theme.palette.text.secondary,
|
|
24280
|
+
lineHeight: theme.typography.pxToRem(21),
|
|
24281
|
+
fontSize: theme.typography.pxToRem(12)
|
|
24282
|
+
},
|
|
24283
|
+
/* Styles applied to the root element if `size="small"`. */
|
|
24284
|
+
sizeSmall: {
|
|
24285
|
+
padding: "6px 24px 6px 16px",
|
|
24286
|
+
"&:last-child": {
|
|
24287
|
+
paddingRight: 16
|
|
24288
|
+
},
|
|
24289
|
+
"&$paddingCheckbox": {
|
|
24290
|
+
width: 24,
|
|
24291
|
+
// prevent the checkbox column from growing
|
|
24292
|
+
padding: "0 12px 0 16px",
|
|
24293
|
+
"&:last-child": {
|
|
24294
|
+
paddingLeft: 12,
|
|
24295
|
+
paddingRight: 16
|
|
24296
|
+
},
|
|
24297
|
+
"& > *": {
|
|
24298
|
+
padding: 0
|
|
24299
|
+
}
|
|
24300
|
+
}
|
|
24301
|
+
},
|
|
24302
|
+
/* Styles applied to the root element if `padding="checkbox"`. */
|
|
24303
|
+
paddingCheckbox: {
|
|
24304
|
+
width: 48,
|
|
24305
|
+
// prevent the checkbox column from growing
|
|
24306
|
+
padding: "0 0 0 4px",
|
|
24307
|
+
"&:last-child": {
|
|
24308
|
+
paddingLeft: 0,
|
|
24309
|
+
paddingRight: 4
|
|
24310
|
+
}
|
|
24311
|
+
},
|
|
24312
|
+
/* Styles applied to the root element if `padding="none"`. */
|
|
24313
|
+
paddingNone: {
|
|
24314
|
+
padding: 0,
|
|
24315
|
+
"&:last-child": {
|
|
24316
|
+
padding: 0
|
|
24317
|
+
}
|
|
24318
|
+
},
|
|
24319
|
+
/* Styles applied to the root element if `align="left"`. */
|
|
24320
|
+
alignLeft: {
|
|
24321
|
+
textAlign: "left"
|
|
24322
|
+
},
|
|
24323
|
+
/* Styles applied to the root element if `align="center"`. */
|
|
24324
|
+
alignCenter: {
|
|
24325
|
+
textAlign: "center"
|
|
24326
|
+
},
|
|
24327
|
+
/* Styles applied to the root element if `align="right"`. */
|
|
24328
|
+
alignRight: {
|
|
24329
|
+
textAlign: "right",
|
|
24330
|
+
flexDirection: "row-reverse"
|
|
24331
|
+
},
|
|
24332
|
+
/* Styles applied to the root element if `align="justify"`. */
|
|
24333
|
+
alignJustify: {
|
|
24334
|
+
textAlign: "justify"
|
|
24335
|
+
},
|
|
24336
|
+
/* Styles applied to the root element if `context.table.stickyHeader={true}`. */
|
|
24337
|
+
stickyHeader: {
|
|
24338
|
+
position: "sticky",
|
|
24339
|
+
top: 0,
|
|
24340
|
+
left: 0,
|
|
24341
|
+
zIndex: 2,
|
|
24342
|
+
backgroundColor: theme.palette.background.default
|
|
24343
|
+
}
|
|
24344
|
+
};
|
|
24345
|
+
};
|
|
24346
|
+
var TableCell = /* @__PURE__ */ React.forwardRef(function TableCell2(props, ref) {
|
|
24347
|
+
var _props$align = props.align, align = _props$align === void 0 ? "inherit" : _props$align, classes = props.classes, className = props.className, component = props.component, paddingProp = props.padding, scopeProp = props.scope, sizeProp = props.size, sortDirection = props.sortDirection, variantProp = props.variant, other = _objectWithoutProperties(props, ["align", "classes", "className", "component", "padding", "scope", "size", "sortDirection", "variant"]);
|
|
24348
|
+
var table = React.useContext(TableContext$1);
|
|
24349
|
+
var tablelvl2 = React.useContext(Tablelvl2Context$1);
|
|
24350
|
+
var isHeadCell = tablelvl2 && tablelvl2.variant === "head";
|
|
24351
|
+
var role;
|
|
24352
|
+
var Component;
|
|
24353
|
+
if (component) {
|
|
24354
|
+
Component = component;
|
|
24355
|
+
role = isHeadCell ? "columnheader" : "cell";
|
|
24356
|
+
} else {
|
|
24357
|
+
Component = isHeadCell ? "th" : "td";
|
|
24358
|
+
}
|
|
24359
|
+
var scope = scopeProp;
|
|
24360
|
+
if (!scope && isHeadCell) {
|
|
24361
|
+
scope = "col";
|
|
24362
|
+
}
|
|
24363
|
+
var padding = paddingProp || (table && table.padding ? table.padding : "normal");
|
|
24364
|
+
var size2 = sizeProp || (table && table.size ? table.size : "medium");
|
|
24365
|
+
var variant = variantProp || tablelvl2 && tablelvl2.variant;
|
|
24366
|
+
var ariaSort = null;
|
|
24367
|
+
if (sortDirection) {
|
|
24368
|
+
ariaSort = sortDirection === "asc" ? "ascending" : "descending";
|
|
24369
|
+
}
|
|
24370
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
24371
|
+
ref,
|
|
24372
|
+
className: clsx(classes.root, classes[variant], className, align !== "inherit" && classes["align".concat(capitalize(align))], padding !== "normal" && classes["padding".concat(capitalize(padding))], size2 !== "medium" && classes["size".concat(capitalize(size2))], variant === "head" && table && table.stickyHeader && classes.stickyHeader),
|
|
24373
|
+
"aria-sort": ariaSort,
|
|
24374
|
+
role,
|
|
24375
|
+
scope
|
|
24376
|
+
}, other));
|
|
24377
|
+
});
|
|
24378
|
+
TableCell.propTypes = {
|
|
24379
|
+
/**
|
|
24380
|
+
* Set the text-align on the table cell content.
|
|
24381
|
+
*
|
|
24382
|
+
* Monetary or generally number fields **should be right aligned** as that allows
|
|
24383
|
+
* you to add them up quickly in your head without having to worry about decimals.
|
|
24384
|
+
*/
|
|
24385
|
+
align: PropTypes.oneOf(["center", "inherit", "justify", "left", "right"]),
|
|
24386
|
+
/**
|
|
24387
|
+
* The table cell contents.
|
|
24388
|
+
*/
|
|
24389
|
+
children: PropTypes.node,
|
|
24390
|
+
/**
|
|
24391
|
+
* Override or extend the styles applied to the component.
|
|
24392
|
+
* See [CSS API](#css) below for more details.
|
|
24393
|
+
*/
|
|
24394
|
+
classes: PropTypes.object,
|
|
24395
|
+
/**
|
|
24396
|
+
* @ignore
|
|
24397
|
+
*/
|
|
24398
|
+
className: PropTypes.string,
|
|
24399
|
+
/**
|
|
24400
|
+
* The component used for the root node.
|
|
24401
|
+
* Either a string to use a HTML element or a component.
|
|
24402
|
+
*/
|
|
24403
|
+
component: PropTypes.elementType,
|
|
24404
|
+
/**
|
|
24405
|
+
* Sets the padding applied to the cell.
|
|
24406
|
+
* By default, the Table parent component set the value (`normal`).
|
|
24407
|
+
* `default` is deprecated, use `normal` instead.
|
|
24408
|
+
*/
|
|
24409
|
+
padding: chainPropTypes(PropTypes.oneOf(["normal", "checkbox", "none", "default"]), function(props) {
|
|
24410
|
+
if (props.padding === "default") {
|
|
24411
|
+
return new Error('Material-UI: padding="default" was renamed to padding="normal" for consistency.');
|
|
24412
|
+
}
|
|
24413
|
+
return null;
|
|
24414
|
+
}),
|
|
24415
|
+
/**
|
|
24416
|
+
* Set scope attribute.
|
|
24417
|
+
*/
|
|
24418
|
+
scope: PropTypes.string,
|
|
24419
|
+
/**
|
|
24420
|
+
* Specify the size of the cell.
|
|
24421
|
+
* By default, the Table parent component set the value (`medium`).
|
|
24422
|
+
*/
|
|
24423
|
+
size: PropTypes.oneOf(["medium", "small"]),
|
|
24424
|
+
/**
|
|
24425
|
+
* Set aria-sort direction.
|
|
24426
|
+
*/
|
|
24427
|
+
sortDirection: PropTypes.oneOf(["asc", "desc", false]),
|
|
24428
|
+
/**
|
|
24429
|
+
* Specify the cell type.
|
|
24430
|
+
* By default, the TableHead, TableBody or TableFooter parent component set the value.
|
|
24431
|
+
*/
|
|
24432
|
+
variant: PropTypes.oneOf(["body", "footer", "head"])
|
|
24433
|
+
};
|
|
24434
|
+
const TableCell$1 = withStyles2(styles$1, {
|
|
24435
|
+
name: "MuiTableCell"
|
|
24436
|
+
})(TableCell);
|
|
24437
|
+
var styles6 = function styles7(theme) {
|
|
24438
|
+
return {
|
|
24439
|
+
/* Styles applied to the root element. */
|
|
24440
|
+
root: {
|
|
24441
|
+
color: "inherit",
|
|
24442
|
+
display: "table-row",
|
|
24443
|
+
verticalAlign: "middle",
|
|
24444
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
|
24445
|
+
outline: 0,
|
|
24446
|
+
"&$hover:hover": {
|
|
24447
|
+
backgroundColor: theme.palette.action.hover
|
|
24448
|
+
},
|
|
24449
|
+
"&$selected, &$selected:hover": {
|
|
24450
|
+
backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.selectedOpacity)
|
|
24451
|
+
}
|
|
24452
|
+
},
|
|
24453
|
+
/* Pseudo-class applied to the root element if `selected={true}`. */
|
|
24454
|
+
selected: {},
|
|
24455
|
+
/* Pseudo-class applied to the root element if `hover={true}`. */
|
|
24456
|
+
hover: {},
|
|
24457
|
+
/* Styles applied to the root element if table variant="head". */
|
|
24458
|
+
head: {},
|
|
24459
|
+
/* Styles applied to the root element if table variant="footer". */
|
|
24460
|
+
footer: {}
|
|
24461
|
+
};
|
|
24462
|
+
};
|
|
24463
|
+
var defaultComponent = "tr";
|
|
24464
|
+
var TableRow = /* @__PURE__ */ React.forwardRef(function TableRow2(props, ref) {
|
|
24465
|
+
var classes = props.classes, className = props.className, _props$component = props.component, Component = _props$component === void 0 ? defaultComponent : _props$component, _props$hover = props.hover, hover = _props$hover === void 0 ? false : _props$hover, _props$selected = props.selected, selected = _props$selected === void 0 ? false : _props$selected, other = _objectWithoutProperties(props, ["classes", "className", "component", "hover", "selected"]);
|
|
24466
|
+
var tablelvl2 = React.useContext(Tablelvl2Context$1);
|
|
24467
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
24468
|
+
ref,
|
|
24469
|
+
className: clsx(classes.root, className, tablelvl2 && {
|
|
24470
|
+
"head": classes.head,
|
|
24471
|
+
"footer": classes.footer
|
|
24472
|
+
}[tablelvl2.variant], hover && classes.hover, selected && classes.selected),
|
|
24473
|
+
role: Component === defaultComponent ? null : "row"
|
|
24474
|
+
}, other));
|
|
24475
|
+
});
|
|
24476
|
+
TableRow.propTypes = {
|
|
24477
|
+
/**
|
|
24478
|
+
* Should be valid <tr> children such as `TableCell`.
|
|
24479
|
+
*/
|
|
24480
|
+
children: PropTypes.node,
|
|
24481
|
+
/**
|
|
24482
|
+
* Override or extend the styles applied to the component.
|
|
24483
|
+
* See [CSS API](#css) below for more details.
|
|
24484
|
+
*/
|
|
24485
|
+
classes: PropTypes.object.isRequired,
|
|
24486
|
+
/**
|
|
24487
|
+
* @ignore
|
|
24488
|
+
*/
|
|
24489
|
+
className: PropTypes.string,
|
|
24490
|
+
/**
|
|
24491
|
+
* The component used for the root node.
|
|
24492
|
+
* Either a string to use a HTML element or a component.
|
|
24493
|
+
*/
|
|
24494
|
+
component: PropTypes.elementType,
|
|
24495
|
+
/**
|
|
24496
|
+
* If `true`, the table row will shade on hover.
|
|
24497
|
+
*/
|
|
24498
|
+
hover: PropTypes.bool,
|
|
24499
|
+
/**
|
|
24500
|
+
* If `true`, the table row will have the selected shading.
|
|
24501
|
+
*/
|
|
24502
|
+
selected: PropTypes.bool
|
|
24503
|
+
};
|
|
24504
|
+
const TableRow$1 = withStyles2(styles6, {
|
|
24505
|
+
name: "MuiTableRow"
|
|
24506
|
+
})(TableRow);
|
|
24507
|
+
var AutoSizer$1 = {};
|
|
24508
|
+
var interopRequireDefault = { exports: {} };
|
|
24509
|
+
(function(module2) {
|
|
24510
|
+
function _interopRequireDefault(obj) {
|
|
24511
|
+
return obj && obj.__esModule ? obj : {
|
|
24512
|
+
"default": obj
|
|
24513
|
+
};
|
|
24514
|
+
}
|
|
24515
|
+
module2.exports = _interopRequireDefault, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
24516
|
+
})(interopRequireDefault);
|
|
24517
|
+
var interopRequireDefaultExports = interopRequireDefault.exports;
|
|
24518
|
+
var AutoSizer = {};
|
|
24519
|
+
var interopRequireWildcard = { exports: {} };
|
|
24520
|
+
var _typeof = { exports: {} };
|
|
24521
|
+
var hasRequired_typeof;
|
|
24522
|
+
function require_typeof() {
|
|
24523
|
+
if (hasRequired_typeof)
|
|
24524
|
+
return _typeof.exports;
|
|
24525
|
+
hasRequired_typeof = 1;
|
|
24526
|
+
(function(module2) {
|
|
24527
|
+
function _typeof2(obj) {
|
|
24528
|
+
"@babel/helpers - typeof";
|
|
24529
|
+
return module2.exports = _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
24530
|
+
return typeof obj2;
|
|
24531
|
+
} : function(obj2) {
|
|
24532
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
24533
|
+
}, module2.exports.__esModule = true, module2.exports["default"] = module2.exports, _typeof2(obj);
|
|
24534
|
+
}
|
|
24535
|
+
module2.exports = _typeof2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
24536
|
+
})(_typeof);
|
|
24537
|
+
return _typeof.exports;
|
|
24538
|
+
}
|
|
24539
|
+
var hasRequiredInteropRequireWildcard;
|
|
24540
|
+
function requireInteropRequireWildcard() {
|
|
24541
|
+
if (hasRequiredInteropRequireWildcard)
|
|
24542
|
+
return interopRequireWildcard.exports;
|
|
24543
|
+
hasRequiredInteropRequireWildcard = 1;
|
|
24544
|
+
(function(module2) {
|
|
24545
|
+
var _typeof2 = require_typeof()["default"];
|
|
24546
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
24547
|
+
if (typeof WeakMap !== "function")
|
|
24548
|
+
return null;
|
|
24549
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
24550
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
24551
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache2(nodeInterop2) {
|
|
24552
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
24553
|
+
})(nodeInterop);
|
|
24554
|
+
}
|
|
24555
|
+
function _interopRequireWildcard(obj, nodeInterop) {
|
|
24556
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
24557
|
+
return obj;
|
|
24558
|
+
}
|
|
24559
|
+
if (obj === null || _typeof2(obj) !== "object" && typeof obj !== "function") {
|
|
24560
|
+
return {
|
|
24561
|
+
"default": obj
|
|
24562
|
+
};
|
|
24563
|
+
}
|
|
24564
|
+
var cache2 = _getRequireWildcardCache(nodeInterop);
|
|
24565
|
+
if (cache2 && cache2.has(obj)) {
|
|
24566
|
+
return cache2.get(obj);
|
|
24567
|
+
}
|
|
24568
|
+
var newObj = {};
|
|
24569
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
24570
|
+
for (var key in obj) {
|
|
24571
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
24572
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
24573
|
+
if (desc && (desc.get || desc.set)) {
|
|
24574
|
+
Object.defineProperty(newObj, key, desc);
|
|
24575
|
+
} else {
|
|
24576
|
+
newObj[key] = obj[key];
|
|
24577
|
+
}
|
|
24578
|
+
}
|
|
24579
|
+
}
|
|
24580
|
+
newObj["default"] = obj;
|
|
24581
|
+
if (cache2) {
|
|
24582
|
+
cache2.set(obj, newObj);
|
|
24583
|
+
}
|
|
24584
|
+
return newObj;
|
|
24585
|
+
}
|
|
24586
|
+
module2.exports = _interopRequireWildcard, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
24587
|
+
})(interopRequireWildcard);
|
|
24588
|
+
return interopRequireWildcard.exports;
|
|
24589
|
+
}
|
|
24590
|
+
var classCallCheck = { exports: {} };
|
|
24591
|
+
var hasRequiredClassCallCheck;
|
|
24592
|
+
function requireClassCallCheck() {
|
|
24593
|
+
if (hasRequiredClassCallCheck)
|
|
24594
|
+
return classCallCheck.exports;
|
|
24595
|
+
hasRequiredClassCallCheck = 1;
|
|
24596
|
+
(function(module2) {
|
|
24597
|
+
function _classCallCheck(instance, Constructor) {
|
|
24598
|
+
if (!(instance instanceof Constructor)) {
|
|
24599
|
+
throw new TypeError("Cannot call a class as a function");
|
|
24600
|
+
}
|
|
24601
|
+
}
|
|
24602
|
+
module2.exports = _classCallCheck, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
24603
|
+
})(classCallCheck);
|
|
24604
|
+
return classCallCheck.exports;
|
|
24605
|
+
}
|
|
24606
|
+
var createClass = { exports: {} };
|
|
24607
|
+
var hasRequiredCreateClass;
|
|
24608
|
+
function requireCreateClass() {
|
|
24609
|
+
if (hasRequiredCreateClass)
|
|
24610
|
+
return createClass.exports;
|
|
24611
|
+
hasRequiredCreateClass = 1;
|
|
22353
24612
|
(function(module2) {
|
|
22354
24613
|
function _defineProperties2(target, props) {
|
|
22355
24614
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -22693,7 +24952,7 @@ function requireAutoSizer() {
|
|
|
22693
24952
|
var _assertThisInitialized2 = _interopRequireDefault(requireAssertThisInitialized());
|
|
22694
24953
|
var _inherits2 = _interopRequireDefault(requireInherits());
|
|
22695
24954
|
var _defineProperty2 = _interopRequireDefault(requireDefineProperty());
|
|
22696
|
-
var
|
|
24955
|
+
var React2 = _interopRequireWildcard(React__default);
|
|
22697
24956
|
var _detectElementResize = _interopRequireDefault(requireDetectElementResize());
|
|
22698
24957
|
var _propTypes = _interopRequireDefault(propTypesExports);
|
|
22699
24958
|
var _class, _temp;
|
|
@@ -22810,7 +25069,7 @@ function requireAutoSizer() {
|
|
|
22810
25069
|
outerStyle.width = 0;
|
|
22811
25070
|
childParams.width = width;
|
|
22812
25071
|
}
|
|
22813
|
-
return
|
|
25072
|
+
return React2.createElement("div", {
|
|
22814
25073
|
className,
|
|
22815
25074
|
ref: this._setRef,
|
|
22816
25075
|
style: _objectSpread({}, outerStyle, {}, style)
|
|
@@ -22818,7 +25077,7 @@ function requireAutoSizer() {
|
|
|
22818
25077
|
}
|
|
22819
25078
|
}]);
|
|
22820
25079
|
return AutoSizer3;
|
|
22821
|
-
}(
|
|
25080
|
+
}(React2.Component), (0, _defineProperty2["default"])(_class, "propTypes", {
|
|
22822
25081
|
/** Function responsible for rendering children.*/
|
|
22823
25082
|
"children": _propTypes["default"].func.isRequired,
|
|
22824
25083
|
/** Optional custom CSS class name to attach to root AutoSizer element. */
|
|
@@ -23077,12 +25336,12 @@ function requireDefaultHeaderRowRenderer() {
|
|
|
23077
25336
|
value: true
|
|
23078
25337
|
});
|
|
23079
25338
|
exports2["default"] = defaultHeaderRowRenderer2;
|
|
23080
|
-
var
|
|
25339
|
+
var React2 = _interopRequireWildcard(React__default);
|
|
23081
25340
|
var _types = requireTypes$1();
|
|
23082
25341
|
var _propTypes = _interopRequireDefault(propTypesExports);
|
|
23083
25342
|
function defaultHeaderRowRenderer2(_ref) {
|
|
23084
25343
|
var className = _ref.className, columns = _ref.columns, style = _ref.style;
|
|
23085
|
-
return
|
|
25344
|
+
return React2.createElement("div", {
|
|
23086
25345
|
className,
|
|
23087
25346
|
role: "row",
|
|
23088
25347
|
style
|
|
@@ -23137,7 +25396,7 @@ function requireSortIndicator() {
|
|
|
23137
25396
|
exports2["default"] = SortIndicator2;
|
|
23138
25397
|
var _clsx = _interopRequireDefault(require$$10);
|
|
23139
25398
|
var _propTypes = _interopRequireDefault(propTypesExports);
|
|
23140
|
-
var
|
|
25399
|
+
var React2 = _interopRequireWildcard(React__default);
|
|
23141
25400
|
var _SortDirection = _interopRequireDefault(requireSortDirection());
|
|
23142
25401
|
function SortIndicator2(_ref) {
|
|
23143
25402
|
var sortDirection = _ref.sortDirection;
|
|
@@ -23145,16 +25404,16 @@ function requireSortIndicator() {
|
|
|
23145
25404
|
"ReactVirtualized__Table__sortableHeaderIcon--ASC": sortDirection === _SortDirection["default"].ASC,
|
|
23146
25405
|
"ReactVirtualized__Table__sortableHeaderIcon--DESC": sortDirection === _SortDirection["default"].DESC
|
|
23147
25406
|
});
|
|
23148
|
-
return
|
|
25407
|
+
return React2.createElement("svg", {
|
|
23149
25408
|
className: classNames,
|
|
23150
25409
|
width: 18,
|
|
23151
25410
|
height: 18,
|
|
23152
25411
|
viewBox: "0 0 24 24"
|
|
23153
|
-
}, sortDirection === _SortDirection["default"].ASC ?
|
|
25412
|
+
}, sortDirection === _SortDirection["default"].ASC ? React2.createElement("path", {
|
|
23154
25413
|
d: "M7 14l5-5 5 5z"
|
|
23155
|
-
}) :
|
|
25414
|
+
}) : React2.createElement("path", {
|
|
23156
25415
|
d: "M7 10l5 5 5-5z"
|
|
23157
|
-
}),
|
|
25416
|
+
}), React2.createElement("path", {
|
|
23158
25417
|
d: "M0 0h24v24H0z",
|
|
23159
25418
|
fill: "none"
|
|
23160
25419
|
}));
|
|
@@ -23177,20 +25436,20 @@ function requireDefaultHeaderRenderer() {
|
|
|
23177
25436
|
value: true
|
|
23178
25437
|
});
|
|
23179
25438
|
exports2["default"] = defaultHeaderRenderer2;
|
|
23180
|
-
var
|
|
25439
|
+
var React2 = _interopRequireWildcard(React__default);
|
|
23181
25440
|
var _SortIndicator = _interopRequireDefault(requireSortIndicator());
|
|
23182
25441
|
var _types = requireTypes$1();
|
|
23183
25442
|
var _propTypes = _interopRequireDefault(propTypesExports);
|
|
23184
25443
|
function defaultHeaderRenderer2(_ref) {
|
|
23185
25444
|
var dataKey = _ref.dataKey, label = _ref.label, sortBy = _ref.sortBy, sortDirection = _ref.sortDirection;
|
|
23186
25445
|
var showSortIndicator = sortBy === dataKey;
|
|
23187
|
-
var children = [
|
|
25446
|
+
var children = [React2.createElement("span", {
|
|
23188
25447
|
className: "ReactVirtualized__Table__headerTruncatedText",
|
|
23189
25448
|
key: "label",
|
|
23190
25449
|
title: typeof label === "string" ? label : null
|
|
23191
25450
|
}, label)];
|
|
23192
25451
|
if (showSortIndicator) {
|
|
23193
|
-
children.push(
|
|
25452
|
+
children.push(React2.createElement(_SortIndicator["default"], {
|
|
23194
25453
|
key: "SortIndicator",
|
|
23195
25454
|
sortDirection
|
|
23196
25455
|
}));
|
|
@@ -23240,7 +25499,7 @@ function requireDefaultRowRenderer() {
|
|
|
23240
25499
|
});
|
|
23241
25500
|
exports2["default"] = defaultRowRenderer2;
|
|
23242
25501
|
var _extends2 = _interopRequireDefault(require_extends());
|
|
23243
|
-
var
|
|
25502
|
+
var React2 = _interopRequireWildcard(React__default);
|
|
23244
25503
|
var _types = requireTypes$1();
|
|
23245
25504
|
var _propTypes = _interopRequireDefault(propTypesExports);
|
|
23246
25505
|
function defaultRowRenderer2(_ref) {
|
|
@@ -23297,7 +25556,7 @@ function requireDefaultRowRenderer() {
|
|
|
23297
25556
|
};
|
|
23298
25557
|
}
|
|
23299
25558
|
}
|
|
23300
|
-
return
|
|
25559
|
+
return React2.createElement("div", (0, _extends2["default"])({}, a11yProps, {
|
|
23301
25560
|
className,
|
|
23302
25561
|
key,
|
|
23303
25562
|
role: "row",
|
|
@@ -23327,7 +25586,7 @@ function requireColumn() {
|
|
|
23327
25586
|
var _inherits2 = _interopRequireDefault(requireInherits());
|
|
23328
25587
|
var _defineProperty2 = _interopRequireDefault(requireDefineProperty());
|
|
23329
25588
|
var _propTypes = _interopRequireDefault(propTypesExports);
|
|
23330
|
-
var
|
|
25589
|
+
var React2 = _interopRequireWildcard(React__default);
|
|
23331
25590
|
var _defaultHeaderRenderer = _interopRequireDefault(requireDefaultHeaderRenderer());
|
|
23332
25591
|
var _defaultCellRenderer = _interopRequireDefault(requireDefaultCellRenderer());
|
|
23333
25592
|
var _defaultCellDataGetter = _interopRequireDefault(requireDefaultCellDataGetter());
|
|
@@ -23339,7 +25598,7 @@ function requireColumn() {
|
|
|
23339
25598
|
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(Column3).apply(this, arguments));
|
|
23340
25599
|
}
|
|
23341
25600
|
return Column3;
|
|
23342
|
-
}(
|
|
25601
|
+
}(React2.Component);
|
|
23343
25602
|
exports2["default"] = Column2;
|
|
23344
25603
|
(0, _defineProperty2["default"])(Column2, "defaultProps", {
|
|
23345
25604
|
cellDataGetter: _defaultCellDataGetter["default"],
|
|
@@ -23497,7 +25756,7 @@ function requireTypes() {
|
|
|
23497
25756
|
value: true
|
|
23498
25757
|
});
|
|
23499
25758
|
types.bpfrpt_proptype_VisibleCellRange = types.bpfrpt_proptype_Alignment = types.bpfrpt_proptype_OverscanIndicesGetter = types.bpfrpt_proptype_OverscanIndices = types.bpfrpt_proptype_OverscanIndicesGetterParams = types.bpfrpt_proptype_RenderedSection = types.bpfrpt_proptype_ScrollbarPresenceChange = types.bpfrpt_proptype_Scroll = types.bpfrpt_proptype_NoContentRenderer = types.bpfrpt_proptype_CellSize = types.bpfrpt_proptype_CellSizeGetter = types.bpfrpt_proptype_CellRangeRenderer = types.bpfrpt_proptype_CellRangeRendererParams = types.bpfrpt_proptype_StyleCache = types.bpfrpt_proptype_CellCache = types.bpfrpt_proptype_CellRenderer = types.bpfrpt_proptype_CellRendererParams = types.bpfrpt_proptype_CellPosition = void 0;
|
|
23500
|
-
_interopRequireWildcard(
|
|
25759
|
+
_interopRequireWildcard(React__default);
|
|
23501
25760
|
var _ScalingCellSizeAndPositionManager = _interopRequireDefault(requireScalingCellSizeAndPositionManager());
|
|
23502
25761
|
var _propTypes = _interopRequireDefault(propTypesExports);
|
|
23503
25762
|
var bpfrpt_proptype_CellPosition = {
|
|
@@ -24459,7 +26718,7 @@ function requireGrid$1() {
|
|
|
24459
26718
|
var _assertThisInitialized2 = _interopRequireDefault(requireAssertThisInitialized());
|
|
24460
26719
|
var _inherits2 = _interopRequireDefault(requireInherits());
|
|
24461
26720
|
var _defineProperty2 = _interopRequireDefault(requireDefineProperty());
|
|
24462
|
-
var
|
|
26721
|
+
var React2 = _interopRequireWildcard(React__default);
|
|
24463
26722
|
var _clsx = _interopRequireDefault(require$$10);
|
|
24464
26723
|
var _calculateSizeAndPositionDataAndUpdateScrollOffset = _interopRequireDefault(requireCalculateSizeAndPositionDataAndUpdateScrollOffset());
|
|
24465
26724
|
var _ScalingCellSizeAndPositionManager = _interopRequireDefault(requireScalingCellSizeAndPositionManager());
|
|
@@ -24934,7 +27193,7 @@ function requireGrid$1() {
|
|
|
24934
27193
|
gridStyle.overflowY = totalRowsHeight + horizontalScrollBarSize <= height ? "hidden" : "auto";
|
|
24935
27194
|
var childrenToDisplay = this._childrenToDisplay;
|
|
24936
27195
|
var showNoContentRenderer = childrenToDisplay.length === 0 && height > 0 && width > 0;
|
|
24937
|
-
return
|
|
27196
|
+
return React2.createElement("div", (0, _extends2["default"])({
|
|
24938
27197
|
ref: this._setScrollingContainerRef
|
|
24939
27198
|
}, containerProps, {
|
|
24940
27199
|
"aria-label": this.props["aria-label"],
|
|
@@ -24945,7 +27204,7 @@ function requireGrid$1() {
|
|
|
24945
27204
|
role,
|
|
24946
27205
|
style: _objectSpread({}, gridStyle, {}, style),
|
|
24947
27206
|
tabIndex
|
|
24948
|
-
}), childrenToDisplay.length > 0 &&
|
|
27207
|
+
}), childrenToDisplay.length > 0 && React2.createElement("div", {
|
|
24949
27208
|
className: "ReactVirtualized__Grid__innerScrollContainer",
|
|
24950
27209
|
role: containerRole,
|
|
24951
27210
|
style: _objectSpread({
|
|
@@ -25403,7 +27662,7 @@ function requireGrid$1() {
|
|
|
25403
27662
|
}
|
|
25404
27663
|
}]);
|
|
25405
27664
|
return Grid3;
|
|
25406
|
-
}(
|
|
27665
|
+
}(React2.PureComponent), (0, _defineProperty2["default"])(_class, "propTypes", {
|
|
25407
27666
|
"aria-label": _propTypes["default"].string.isRequired,
|
|
25408
27667
|
"aria-readonly": _propTypes["default"].bool,
|
|
25409
27668
|
/**
|
|
@@ -25739,8 +27998,8 @@ function requireTable() {
|
|
|
25739
27998
|
var _clsx = _interopRequireDefault(require$$10);
|
|
25740
27999
|
var _Column = _interopRequireDefault(requireColumn());
|
|
25741
28000
|
var _propTypes = _interopRequireDefault(propTypesExports);
|
|
25742
|
-
var
|
|
25743
|
-
var _reactDom =
|
|
28001
|
+
var React2 = _interopRequireWildcard(React__default);
|
|
28002
|
+
var _reactDom = ReactDOM__default;
|
|
25744
28003
|
var _Grid2 = _interopRequireWildcard(requireGrid());
|
|
25745
28004
|
var _defaultRowRenderer = _interopRequireDefault(requireDefaultRowRenderer());
|
|
25746
28005
|
var _defaultHeaderRowRenderer = _interopRequireDefault(requireDefaultHeaderRowRenderer());
|
|
@@ -25912,16 +28171,16 @@ function requireTable() {
|
|
|
25912
28171
|
index: -1
|
|
25913
28172
|
}) : rowStyle;
|
|
25914
28173
|
this._cachedColumnStyles = [];
|
|
25915
|
-
|
|
28174
|
+
React2.Children.toArray(children).forEach(function(column, index2) {
|
|
25916
28175
|
var flexStyles = _this2._getFlexStyleForColumn(column, column.props.style);
|
|
25917
28176
|
_this2._cachedColumnStyles[index2] = _objectSpread({
|
|
25918
28177
|
overflow: "hidden"
|
|
25919
28178
|
}, flexStyles);
|
|
25920
28179
|
});
|
|
25921
|
-
return
|
|
28180
|
+
return React2.createElement("div", {
|
|
25922
28181
|
"aria-label": this.props["aria-label"],
|
|
25923
28182
|
"aria-labelledby": this.props["aria-labelledby"],
|
|
25924
|
-
"aria-colcount":
|
|
28183
|
+
"aria-colcount": React2.Children.toArray(children).length,
|
|
25925
28184
|
"aria-rowcount": this.props.rowCount,
|
|
25926
28185
|
className: (0, _clsx["default"])("ReactVirtualized__Table", className),
|
|
25927
28186
|
id,
|
|
@@ -25936,7 +28195,7 @@ function requireTable() {
|
|
|
25936
28195
|
paddingRight: scrollbarWidth,
|
|
25937
28196
|
width
|
|
25938
28197
|
}, rowStyleObject)
|
|
25939
|
-
}),
|
|
28198
|
+
}), React2.createElement(_Grid2["default"], (0, _extends2["default"])({}, this.props, {
|
|
25940
28199
|
"aria-readonly": null,
|
|
25941
28200
|
autoContainerWidth: true,
|
|
25942
28201
|
className: (0, _clsx["default"])("ReactVirtualized__Table__Grid", gridClassName),
|
|
@@ -25987,7 +28246,7 @@ function requireTable() {
|
|
|
25987
28246
|
};
|
|
25988
28247
|
var style = this._cachedColumnStyles[columnIndex];
|
|
25989
28248
|
var title = typeof renderedCell === "string" ? renderedCell : null;
|
|
25990
|
-
return
|
|
28249
|
+
return React2.createElement("div", {
|
|
25991
28250
|
"aria-colindex": columnIndex + 1,
|
|
25992
28251
|
"aria-describedby": id,
|
|
25993
28252
|
className: (0, _clsx["default"])("ReactVirtualized__Table__rowColumn", className),
|
|
@@ -26048,7 +28307,7 @@ function requireTable() {
|
|
|
26048
28307
|
if (sortBy === dataKey) {
|
|
26049
28308
|
headerAriaSort = sortDirection === _SortDirection["default"].ASC ? "ascending" : "descending";
|
|
26050
28309
|
}
|
|
26051
|
-
return
|
|
28310
|
+
return React2.createElement("div", {
|
|
26052
28311
|
"aria-label": headerAriaLabel,
|
|
26053
28312
|
"aria-sort": headerAriaSort,
|
|
26054
28313
|
className: classNames,
|
|
@@ -26077,7 +28336,7 @@ function requireTable() {
|
|
|
26077
28336
|
var rowData = rowGetter({
|
|
26078
28337
|
index: index2
|
|
26079
28338
|
});
|
|
26080
|
-
var columns =
|
|
28339
|
+
var columns = React2.Children.toArray(children).map(function(column, columnIndex) {
|
|
26081
28340
|
return _this3._createColumn({
|
|
26082
28341
|
column,
|
|
26083
28342
|
columnIndex,
|
|
@@ -26135,7 +28394,7 @@ function requireTable() {
|
|
|
26135
28394
|
value: function _getHeaderColumns() {
|
|
26136
28395
|
var _this4 = this;
|
|
26137
28396
|
var _this$props4 = this.props, children = _this$props4.children, disableHeader = _this$props4.disableHeader;
|
|
26138
|
-
var items = disableHeader ? [] :
|
|
28397
|
+
var items = disableHeader ? [] : React2.Children.toArray(children);
|
|
26139
28398
|
return items.map(function(column, index2) {
|
|
26140
28399
|
return _this4._createHeader({
|
|
26141
28400
|
column,
|
|
@@ -26189,7 +28448,7 @@ function requireTable() {
|
|
|
26189
28448
|
}
|
|
26190
28449
|
}]);
|
|
26191
28450
|
return Table3;
|
|
26192
|
-
}(
|
|
28451
|
+
}(React2.PureComponent);
|
|
26193
28452
|
exports2["default"] = Table2;
|
|
26194
28453
|
(0, _defineProperty2["default"])(Table2, "defaultProps", {
|
|
26195
28454
|
disableHeader: false,
|
|
@@ -26226,7 +28485,7 @@ function requireTable() {
|
|
|
26226
28485
|
autoHeight: _propTypes["default"].bool,
|
|
26227
28486
|
/** One or more Columns describing the data displayed in this row */
|
|
26228
28487
|
children: function children(props) {
|
|
26229
|
-
var children2 =
|
|
28488
|
+
var children2 = React2.Children.toArray(props.children);
|
|
26230
28489
|
for (var i = 0; i < children2.length; i++) {
|
|
26231
28490
|
var childType = children2[i].type;
|
|
26232
28491
|
if (childType !== _Column["default"] && !(childType.prototype instanceof _Column["default"])) {
|
|
@@ -26534,10 +28793,10 @@ const useStyles$1 = makeStyles((theme) => ({
|
|
|
26534
28793
|
backgroundClip: "unset"
|
|
26535
28794
|
}
|
|
26536
28795
|
},
|
|
26537
|
-
|
|
28796
|
+
tableRadio: {
|
|
26538
28797
|
borderRadius: "50%"
|
|
26539
28798
|
},
|
|
26540
|
-
|
|
28799
|
+
tableCheckbox: {
|
|
26541
28800
|
borderRadius: "2px"
|
|
26542
28801
|
}
|
|
26543
28802
|
}));
|
|
@@ -26650,7 +28909,7 @@ function SelectableTable(props) {
|
|
|
26650
28909
|
{
|
|
26651
28910
|
id: `${inputUuid}_${data[index2][idKey]}`,
|
|
26652
28911
|
type: "checkbox",
|
|
26653
|
-
className: clsx(classes.radioOrCheckbox, isCheckingMultiple ? classes.
|
|
28912
|
+
className: clsx(classes.radioOrCheckbox, isCheckingMultiple ? classes.tableCheckbox : classes.tableRadio),
|
|
26654
28913
|
name: inputUuid,
|
|
26655
28914
|
value: data[index2][idKey],
|
|
26656
28915
|
onChange: handleInputChange,
|
|
@@ -26686,6 +28945,11 @@ function SelectableTable(props) {
|
|
|
26686
28945
|
}
|
|
26687
28946
|
) }) });
|
|
26688
28947
|
}
|
|
28948
|
+
const FEATURELIST_SORT_OPTIONS = [
|
|
28949
|
+
"alphabetical",
|
|
28950
|
+
"original"
|
|
28951
|
+
];
|
|
28952
|
+
const ALT_COLNAME = "Alternate ID";
|
|
26689
28953
|
const useStyles = makeStyles(() => ({
|
|
26690
28954
|
searchBar: {
|
|
26691
28955
|
marginBottom: "4px",
|
|
@@ -26699,17 +28963,20 @@ function FeatureList(props) {
|
|
|
26699
28963
|
hasColorEncoding,
|
|
26700
28964
|
geneList = [],
|
|
26701
28965
|
featureLabelsMap,
|
|
26702
|
-
featureType,
|
|
26703
28966
|
geneSelection = [],
|
|
26704
28967
|
geneFilter = null,
|
|
26705
28968
|
setGeneSelection,
|
|
26706
28969
|
enableMultiSelect,
|
|
26707
|
-
|
|
26708
|
-
|
|
28970
|
+
showFeatureTable,
|
|
28971
|
+
featureListSort,
|
|
28972
|
+
featureListSortKey,
|
|
28973
|
+
hasFeatureLabels,
|
|
28974
|
+
primaryColumnName
|
|
26709
28975
|
} = props;
|
|
26710
28976
|
const classes = useStyles();
|
|
26711
28977
|
const [searchTerm, setSearchTerm] = useState("");
|
|
26712
28978
|
const [searchResults, setSearchResults] = useState(geneList);
|
|
28979
|
+
const selectableTableSortKey = featureListSortKey === "featureIndex" ? "key" : "name";
|
|
26713
28980
|
useEffect(() => {
|
|
26714
28981
|
const results = geneList.filter((gene) => {
|
|
26715
28982
|
var _a;
|
|
@@ -26730,25 +28997,43 @@ function FeatureList(props) {
|
|
|
26730
28997
|
}
|
|
26731
28998
|
}
|
|
26732
28999
|
}
|
|
26733
|
-
|
|
26734
|
-
(gene) => (
|
|
26735
|
-
|
|
26736
|
-
|
|
26737
|
-
|
|
26738
|
-
|
|
26739
|
-
|
|
26740
|
-
|
|
26741
|
-
|
|
26742
|
-
|
|
29000
|
+
const data = useMemo(() => {
|
|
29001
|
+
const preSortedData = searchResults.filter((gene) => geneFilter ? geneFilter.includes(gene) : true).map(
|
|
29002
|
+
(gene) => ({
|
|
29003
|
+
key: gene,
|
|
29004
|
+
name: (featureLabelsMap == null ? void 0 : featureLabelsMap.get(gene)) || gene,
|
|
29005
|
+
value: geneSelection ? geneSelection.includes(gene) : false
|
|
29006
|
+
})
|
|
29007
|
+
);
|
|
29008
|
+
if (preSortedData && featureListSort === "alphabetical" && preSortedData.length > 0) {
|
|
29009
|
+
return preSortedData.sort(
|
|
29010
|
+
(a, b) => a[selectableTableSortKey].localeCompare(b[selectableTableSortKey])
|
|
29011
|
+
);
|
|
29012
|
+
}
|
|
29013
|
+
return preSortedData;
|
|
29014
|
+
}, [
|
|
29015
|
+
featureListSort,
|
|
29016
|
+
selectableTableSortKey,
|
|
29017
|
+
searchResults,
|
|
29018
|
+
geneFilter,
|
|
29019
|
+
featureLabelsMap,
|
|
29020
|
+
geneSelection
|
|
29021
|
+
]);
|
|
26743
29022
|
const handleChange = (event) => {
|
|
26744
29023
|
setSearchTerm(event.target.value);
|
|
26745
29024
|
};
|
|
26746
|
-
const columns =
|
|
26747
|
-
|
|
26748
|
-
|
|
26749
|
-
|
|
26750
|
-
|
|
26751
|
-
|
|
29025
|
+
const [columns, columnLabels] = useMemo(() => {
|
|
29026
|
+
if (showFeatureTable && hasFeatureLabels) {
|
|
29027
|
+
return [
|
|
29028
|
+
["name", "key"],
|
|
29029
|
+
[primaryColumnName, ALT_COLNAME]
|
|
29030
|
+
];
|
|
29031
|
+
}
|
|
29032
|
+
return [
|
|
29033
|
+
["name"],
|
|
29034
|
+
[primaryColumnName]
|
|
29035
|
+
];
|
|
29036
|
+
}, [showFeatureTable, primaryColumnName, hasFeatureLabels]);
|
|
26752
29037
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
26753
29038
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
26754
29039
|
"input",
|
|
@@ -26777,6 +29062,81 @@ function FeatureList(props) {
|
|
|
26777
29062
|
)
|
|
26778
29063
|
] });
|
|
26779
29064
|
}
|
|
29065
|
+
function FeatureListOptions(props) {
|
|
29066
|
+
const {
|
|
29067
|
+
children,
|
|
29068
|
+
featureListSort,
|
|
29069
|
+
setFeatureListSort,
|
|
29070
|
+
featureListSortKey,
|
|
29071
|
+
setFeatureListSortKey,
|
|
29072
|
+
showFeatureTable,
|
|
29073
|
+
setShowFeatureTable,
|
|
29074
|
+
hasFeatureLabels,
|
|
29075
|
+
primaryColumnName
|
|
29076
|
+
} = props;
|
|
29077
|
+
function handleFeatureListSortChange(event) {
|
|
29078
|
+
setFeatureListSort(event.target.value);
|
|
29079
|
+
}
|
|
29080
|
+
function handleFeatureListSortKeyChange(event) {
|
|
29081
|
+
setFeatureListSortKey(event.target.value);
|
|
29082
|
+
}
|
|
29083
|
+
function handleShowTableChange(event) {
|
|
29084
|
+
setShowFeatureTable(event.target.checked);
|
|
29085
|
+
}
|
|
29086
|
+
const classes = usePlotOptionsStyles();
|
|
29087
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(OptionsContainer, { children: [
|
|
29088
|
+
children,
|
|
29089
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow$1, { children: [
|
|
29090
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, htmlFor: "feature-list-sort-option-select", children: "Sort Ordering" }),
|
|
29091
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29092
|
+
OptionSelect,
|
|
29093
|
+
{
|
|
29094
|
+
className: classes.select,
|
|
29095
|
+
value: featureListSort,
|
|
29096
|
+
onChange: handleFeatureListSortChange,
|
|
29097
|
+
inputProps: {
|
|
29098
|
+
id: "feature-list-sort-option-select"
|
|
29099
|
+
},
|
|
29100
|
+
children: FEATURELIST_SORT_OPTIONS.map((option) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: option, children: option }, option))
|
|
29101
|
+
}
|
|
29102
|
+
) })
|
|
29103
|
+
] }),
|
|
29104
|
+
hasFeatureLabels ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
29105
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow$1, { children: [
|
|
29106
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, htmlFor: "feature-list-sort-key-select", children: "Sort Key" }),
|
|
29107
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29108
|
+
OptionSelect,
|
|
29109
|
+
{
|
|
29110
|
+
className: classes.select,
|
|
29111
|
+
disabled: featureListSort === "original",
|
|
29112
|
+
value: featureListSortKey,
|
|
29113
|
+
onChange: handleFeatureListSortKeyChange,
|
|
29114
|
+
inputProps: {
|
|
29115
|
+
id: "feature-list-sort-key-select"
|
|
29116
|
+
},
|
|
29117
|
+
children: hasFeatureLabels ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
29118
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "featureLabels", children: primaryColumnName }),
|
|
29119
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "featureIndex", children: ALT_COLNAME })
|
|
29120
|
+
] }) : /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "featureIndex", children: primaryColumnName })
|
|
29121
|
+
}
|
|
29122
|
+
) })
|
|
29123
|
+
] }),
|
|
29124
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow$1, { children: [
|
|
29125
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, children: "Show Alternate IDs" }),
|
|
29126
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29127
|
+
Checkbox$1,
|
|
29128
|
+
{
|
|
29129
|
+
className: classes.tableCheckbox,
|
|
29130
|
+
checked: showFeatureTable,
|
|
29131
|
+
onChange: handleShowTableChange,
|
|
29132
|
+
name: "feature-list-show-table",
|
|
29133
|
+
color: "default"
|
|
29134
|
+
}
|
|
29135
|
+
) })
|
|
29136
|
+
] })
|
|
29137
|
+
] }) : null
|
|
29138
|
+
] });
|
|
29139
|
+
}
|
|
26780
29140
|
function FeatureListSubscriber(props) {
|
|
26781
29141
|
const {
|
|
26782
29142
|
coordinationScopes,
|
|
@@ -26786,7 +29146,8 @@ function FeatureListSubscriber(props) {
|
|
|
26786
29146
|
title: titleOverride,
|
|
26787
29147
|
enableMultiSelect = false,
|
|
26788
29148
|
showTable = false,
|
|
26789
|
-
sort: sort2 = "alphabetical"
|
|
29149
|
+
sort: sort2 = "alphabetical",
|
|
29150
|
+
sortKey = null
|
|
26790
29151
|
} = props;
|
|
26791
29152
|
const loaders = useLoaders();
|
|
26792
29153
|
const [{
|
|
@@ -26802,21 +29163,18 @@ function FeatureListSubscriber(props) {
|
|
|
26802
29163
|
setObsColorEncoding: setCellColorEncoding
|
|
26803
29164
|
}] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$1.FEATURE_LIST], coordinationScopes);
|
|
26804
29165
|
const variablesLabel = variablesLabelOverride || featureType;
|
|
26805
|
-
const title = titleOverride || `${capitalize(variablesLabel)} List`;
|
|
26806
|
-
const [
|
|
26807
|
-
const [{ featureLabelsMap }, featureLabelsStatus] = useFeatureLabelsData(
|
|
29166
|
+
const title = titleOverride || `${capitalize$1(variablesLabel)} List`;
|
|
29167
|
+
const [{ featureLabelsMap }, featureLabelsStatus, featureLabelsUrls] = useFeatureLabelsData(
|
|
26808
29168
|
loaders,
|
|
26809
29169
|
dataset,
|
|
26810
|
-
addUrl,
|
|
26811
29170
|
false,
|
|
26812
29171
|
{},
|
|
26813
29172
|
{},
|
|
26814
29173
|
{ featureType }
|
|
26815
29174
|
);
|
|
26816
|
-
const [{ featureIndex }, matrixIndicesStatus] = useObsFeatureMatrixIndices(
|
|
29175
|
+
const [{ featureIndex }, matrixIndicesStatus, obsFeatureMatrixUrls] = useObsFeatureMatrixIndices(
|
|
26817
29176
|
loaders,
|
|
26818
29177
|
dataset,
|
|
26819
|
-
addUrl,
|
|
26820
29178
|
true,
|
|
26821
29179
|
{ featureType }
|
|
26822
29180
|
);
|
|
@@ -26824,12 +29182,22 @@ function FeatureListSubscriber(props) {
|
|
|
26824
29182
|
featureLabelsStatus,
|
|
26825
29183
|
matrixIndicesStatus
|
|
26826
29184
|
]);
|
|
29185
|
+
const urls = useUrls([
|
|
29186
|
+
featureLabelsUrls,
|
|
29187
|
+
obsFeatureMatrixUrls
|
|
29188
|
+
]);
|
|
26827
29189
|
const geneList = featureIndex || [];
|
|
26828
29190
|
const numGenes = geneList.length;
|
|
29191
|
+
const hasFeatureLabels = Boolean(featureLabelsMap);
|
|
26829
29192
|
function setGeneSelectionAndColorEncoding(newSelection) {
|
|
26830
29193
|
setGeneSelection(newSelection);
|
|
26831
29194
|
setCellColorEncoding("geneSelection");
|
|
26832
29195
|
}
|
|
29196
|
+
const [showFeatureTable, setShowFeatureTable] = useState(showTable);
|
|
29197
|
+
const [featureListSort, setFeatureListSort] = useState(sort2);
|
|
29198
|
+
const [featureListSortKey, setFeatureListSortKey] = useState(null);
|
|
29199
|
+
const initialSortKey = sortKey || (hasFeatureLabels ? "featureLabels" : "featureIndex");
|
|
29200
|
+
const primaryColumnName = `${capitalize$1(featureType)} ID`;
|
|
26833
29201
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
26834
29202
|
TitleInfo,
|
|
26835
29203
|
{
|
|
@@ -26840,13 +29208,27 @@ function FeatureListSubscriber(props) {
|
|
|
26840
29208
|
removeGridComponent,
|
|
26841
29209
|
isReady,
|
|
26842
29210
|
urls,
|
|
29211
|
+
options: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29212
|
+
FeatureListOptions,
|
|
29213
|
+
{
|
|
29214
|
+
featureListSort,
|
|
29215
|
+
setFeatureListSort,
|
|
29216
|
+
featureListSortKey: featureListSortKey || initialSortKey,
|
|
29217
|
+
setFeatureListSortKey,
|
|
29218
|
+
showFeatureTable,
|
|
29219
|
+
setShowFeatureTable,
|
|
29220
|
+
hasFeatureLabels: Boolean(featureLabelsMap),
|
|
29221
|
+
primaryColumnName
|
|
29222
|
+
}
|
|
29223
|
+
),
|
|
26843
29224
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
26844
29225
|
FeatureList,
|
|
26845
29226
|
{
|
|
26846
29227
|
hasColorEncoding: cellColorEncoding === "geneSelection",
|
|
26847
|
-
|
|
29228
|
+
showFeatureTable,
|
|
26848
29229
|
geneList,
|
|
26849
|
-
|
|
29230
|
+
featureListSort,
|
|
29231
|
+
featureListSortKey: featureListSortKey || initialSortKey,
|
|
26850
29232
|
featureLabelsMap,
|
|
26851
29233
|
featureType,
|
|
26852
29234
|
geneSelection,
|
|
@@ -26854,7 +29236,9 @@ function FeatureListSubscriber(props) {
|
|
|
26854
29236
|
setGeneSelection: setGeneSelectionAndColorEncoding,
|
|
26855
29237
|
setGeneFilter,
|
|
26856
29238
|
setGeneHighlight,
|
|
26857
|
-
enableMultiSelect
|
|
29239
|
+
enableMultiSelect,
|
|
29240
|
+
hasFeatureLabels: Boolean(featureLabelsMap),
|
|
29241
|
+
primaryColumnName
|
|
26858
29242
|
}
|
|
26859
29243
|
)
|
|
26860
29244
|
}
|