@carbon/ibm-products 2.45.0 → 2.46.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/index-full-carbon.css +261 -124
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +3 -0
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +81 -86
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +182 -110
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/ActionBar/ActionBarItem.js +1 -1
- package/es/components/Coachmark/Coachmark.d.ts +6 -1
- package/es/components/Coachmark/Coachmark.js +37 -6
- package/es/components/Coachmark/CoachmarkOverlay.js +2 -4
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -7
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +20 -14
- package/es/components/ConditionBuilder/ConditionBuilder.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +8 -5
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +4 -2
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +4 -3
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +1 -3
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +26 -30
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +1 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +6 -1
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +4 -1
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +5 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +3 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +47 -23
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +3 -2
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +1 -3
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +62 -32
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +1 -0
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +52 -46
- package/es/components/ConditionBuilder/utils/util.d.ts +6 -5
- package/es/components/ConditionBuilder/utils/util.js +35 -17
- package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +6 -0
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +77 -38
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +4 -0
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +10 -1
- package/es/components/DataSpreadsheet/types/index.d.ts +1 -0
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +34 -10
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +33 -1
- package/es/components/Datagrid/types/index.d.ts +14 -2
- package/es/components/Datagrid/useDisableSelectRows.d.ts +2 -1
- package/es/components/Datagrid/useDisableSelectRows.js +27 -22
- package/es/components/StringFormatter/StringFormatter.js +14 -3
- package/es/components/StringFormatter/utils/enums.d.ts +20 -1
- package/es/components/StringFormatter/utils/enums.js +22 -2
- package/es/components/Tearsheet/TearsheetShell.d.ts +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +4 -2
- package/es/global/js/hooks/useFocus.d.ts +1 -0
- package/es/global/js/hooks/useFocus.js +5 -2
- package/es/node_modules/@carbon/icon-helpers/es/index.js +49 -62
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-2.js +1020 -1058
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +881 -758
- package/lib/components/ActionBar/ActionBarItem.js +1 -1
- package/lib/components/Coachmark/Coachmark.d.ts +6 -1
- package/lib/components/Coachmark/Coachmark.js +36 -5
- package/lib/components/Coachmark/CoachmarkOverlay.js +2 -4
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -7
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +19 -13
- package/lib/components/ConditionBuilder/ConditionBuilder.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +8 -5
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +4 -2
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +4 -3
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +1 -3
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +25 -29
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +1 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +6 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +4 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +5 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +3 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +46 -22
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +3 -2
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +1 -3
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +61 -31
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +1 -0
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +51 -44
- package/lib/components/ConditionBuilder/utils/util.d.ts +6 -5
- package/lib/components/ConditionBuilder/utils/util.js +36 -16
- package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +6 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +77 -38
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +4 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +10 -1
- package/lib/components/DataSpreadsheet/types/index.d.ts +1 -0
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +34 -10
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +32 -0
- package/lib/components/Datagrid/types/index.d.ts +14 -2
- package/lib/components/Datagrid/useDisableSelectRows.d.ts +2 -1
- package/lib/components/Datagrid/useDisableSelectRows.js +27 -22
- package/lib/components/StringFormatter/StringFormatter.js +13 -2
- package/lib/components/StringFormatter/utils/enums.d.ts +20 -1
- package/lib/components/StringFormatter/utils/enums.js +23 -1
- package/lib/components/Tearsheet/TearsheetShell.d.ts +1 -1
- package/lib/components/Tearsheet/TearsheetShell.js +3 -1
- package/lib/global/js/hooks/useFocus.d.ts +1 -0
- package/lib/global/js/hooks/useFocus.js +5 -1
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +49 -62
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-2.js +1036 -1074
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +946 -823
- package/package.json +6 -6
- package/scss/components/Coachmark/_coachmark-overlay.scss +6 -70
- package/scss/components/Coachmark/_coachmark.scss +5 -4
- package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +1 -3
- package/scss/components/ConditionBuilder/_condition-builder.scss +4 -0
- package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +6 -1
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +1 -1
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +7 -5
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +5 -4
- package/telemetry.yml +5 -14
@@ -12,14 +12,15 @@ import cx from 'classnames';
|
|
12
12
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
13
13
|
import { pkg } from '../../settings.js';
|
14
14
|
import { DefinitionTooltip } from '@carbon/react';
|
15
|
-
import { StringFormatterAlignment } from './utils/enums.js';
|
15
|
+
import { StringFormatterAlignment, deprecated_StringFormatterAlignment, propMappingFunction } from './utils/enums.js';
|
16
|
+
import { allPropTypes } from '../../global/js/utils/props-helper.js';
|
16
17
|
|
17
18
|
var _excluded = ["className", "lines", "tooltipDirection", "truncate", "width", "value"];
|
18
19
|
var blockClass = "".concat(pkg.prefix, "--string-formatter");
|
19
20
|
var componentName = 'StringFormatter';
|
20
21
|
var defaults = {
|
21
22
|
lines: 1,
|
22
|
-
tooltipDirection: StringFormatterAlignment.
|
23
|
+
tooltipDirection: StringFormatterAlignment.BOTTOM_START,
|
23
24
|
truncate: false,
|
24
25
|
width: null
|
25
26
|
};
|
@@ -59,6 +60,16 @@ var StringFormatter = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
|
|
59
60
|
});
|
60
61
|
StringFormatter = pkg.checkComponentEnabled(StringFormatter, componentName);
|
61
62
|
StringFormatter.displayName = componentName;
|
63
|
+
StringFormatter.validateAlignment = function () {
|
64
|
+
return function (props, propName, componentName) {
|
65
|
+
var prop = props[propName];
|
66
|
+
var deprecatedAlignValues = Object.values(deprecated_StringFormatterAlignment);
|
67
|
+
if (deprecatedAlignValues.includes(prop)) {
|
68
|
+
var mappedNewProp = propMappingFunction(prop);
|
69
|
+
console.warn("\"".concat(prop, "\" is a deprecated value for the \"").concat(propName, "\" prop on the \"").concat(componentName, "\" component. Use \"").concat(mappedNewProp, "\" instead. Allowable values are: ").concat(Object.values(StringFormatterAlignment).join(', '), "."));
|
70
|
+
}
|
71
|
+
};
|
72
|
+
};
|
62
73
|
StringFormatter.propTypes = {
|
63
74
|
/**
|
64
75
|
* Provide an optional class to be applied to the containing node.
|
@@ -67,7 +78,7 @@ StringFormatter.propTypes = {
|
|
67
78
|
/** Number of lines to clamp value. */
|
68
79
|
lines: PropTypes.number,
|
69
80
|
/** Specify the direction of the tooltip. Can be either top or bottom. */
|
70
|
-
tooltipDirection: PropTypes.oneOf(Object.values(StringFormatterAlignment)),
|
81
|
+
tooltipDirection: allPropTypes([StringFormatter.validateAlignment(), PropTypes.oneOf(Object.values(deprecated_StringFormatterAlignment), Object.values(StringFormatterAlignment))]),
|
71
82
|
/** Whether or not the value should be truncated. */
|
72
83
|
truncate: PropTypes.bool,
|
73
84
|
/** Value to format. */
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export namespace
|
1
|
+
export namespace deprecated_StringFormatterAlignment {
|
2
2
|
let TOP: string;
|
3
3
|
let TOP_LEFT: string;
|
4
4
|
let TOP_RIGHT: string;
|
@@ -12,3 +12,22 @@ export namespace StringFormatterAlignment {
|
|
12
12
|
let RIGHT_BOTTOM: string;
|
13
13
|
let RIGHT_TOP: string;
|
14
14
|
}
|
15
|
+
export namespace StringFormatterAlignment {
|
16
|
+
let TOP_1: string;
|
17
|
+
export { TOP_1 as TOP };
|
18
|
+
export let TOP_START: string;
|
19
|
+
export let TOP_END: string;
|
20
|
+
let BOTTOM_1: string;
|
21
|
+
export { BOTTOM_1 as BOTTOM };
|
22
|
+
export let BOTTOM_START: string;
|
23
|
+
export let BOTTOM_END: string;
|
24
|
+
let LEFT_1: string;
|
25
|
+
export { LEFT_1 as LEFT };
|
26
|
+
export let LEFT_END: string;
|
27
|
+
export let LEFT_START: string;
|
28
|
+
let RIGHT_1: string;
|
29
|
+
export { RIGHT_1 as RIGHT };
|
30
|
+
export let RIGHT_END: string;
|
31
|
+
export let RIGHT_START: string;
|
32
|
+
}
|
33
|
+
export function propMappingFunction(deprecatedValue: any): string;
|
@@ -5,7 +5,9 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
|
8
|
+
import { defineProperty as _defineProperty } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
+
|
10
|
+
var deprecated_StringFormatterAlignment = {
|
9
11
|
TOP: 'top',
|
10
12
|
TOP_LEFT: 'top-left',
|
11
13
|
TOP_RIGHT: 'top-right',
|
@@ -19,5 +21,23 @@ var StringFormatterAlignment = {
|
|
19
21
|
RIGHT_BOTTOM: 'right-bottom',
|
20
22
|
RIGHT_TOP: 'right-top'
|
21
23
|
};
|
24
|
+
var StringFormatterAlignment = {
|
25
|
+
TOP: 'top',
|
26
|
+
TOP_START: 'top-start',
|
27
|
+
TOP_END: 'top-end',
|
28
|
+
BOTTOM: 'bottom',
|
29
|
+
BOTTOM_START: 'bottom-start',
|
30
|
+
BOTTOM_END: 'bottom-end',
|
31
|
+
LEFT: 'left',
|
32
|
+
LEFT_END: 'left-end',
|
33
|
+
LEFT_START: 'left-start',
|
34
|
+
RIGHT: 'right',
|
35
|
+
RIGHT_END: 'right-end',
|
36
|
+
RIGHT_START: 'right-start'
|
37
|
+
};
|
38
|
+
var propMappingFunction = function propMappingFunction(deprecatedValue) {
|
39
|
+
var mapping = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, deprecated_StringFormatterAlignment.TOP_LEFT, StringFormatterAlignment.TOP_START), deprecated_StringFormatterAlignment.TOP_RIGHT, StringFormatterAlignment.TOP_END), deprecated_StringFormatterAlignment.BOTTOM_LEFT, StringFormatterAlignment.BOTTOM_START), deprecated_StringFormatterAlignment.BOTTOM_RIGHT, StringFormatterAlignment.BOTTOM_END), deprecated_StringFormatterAlignment.LEFT_BOTTOM, StringFormatterAlignment.LEFT_END), deprecated_StringFormatterAlignment.LEFT_TOP, StringFormatterAlignment.LEFT_START), deprecated_StringFormatterAlignment.RIGHT_BOTTOM, StringFormatterAlignment.RIGHT_END), deprecated_StringFormatterAlignment.RIGHT_START, StringFormatterAlignment.RIGHT_START);
|
40
|
+
return mapping[deprecatedValue];
|
41
|
+
};
|
22
42
|
|
23
|
-
export { StringFormatterAlignment };
|
43
|
+
export { StringFormatterAlignment, deprecated_StringFormatterAlignment, propMappingFunction };
|
@@ -9,7 +9,7 @@ import React, { PropsWithChildren, ReactNode, RefObject } from 'react';
|
|
9
9
|
import PropTypes from 'prop-types';
|
10
10
|
import { type ButtonProps } from '@carbon/react';
|
11
11
|
interface TearsheetShellProps extends PropsWithChildren {
|
12
|
-
actions?: ButtonProps[];
|
12
|
+
actions?: ButtonProps<any>[];
|
13
13
|
ariaLabel?: string;
|
14
14
|
/**
|
15
15
|
* An optional class or classes to be added to the outermost element.
|
@@ -16,7 +16,7 @@ import { getNodeTextContent } from '../../global/js/utils/getNodeTextContent.js'
|
|
16
16
|
import { Button, usePrefix, ComposedModal, ModalHeader, Layer } from '@carbon/react';
|
17
17
|
import { Wrap } from '../../global/js/utils/Wrap.js';
|
18
18
|
import { usePortalTarget } from '../../global/js/hooks/usePortalTarget.js';
|
19
|
-
import { useFocus } from '../../global/js/hooks/useFocus.js';
|
19
|
+
import { useFocus, getSpecificElement } from '../../global/js/hooks/useFocus.js';
|
20
20
|
import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
|
21
21
|
import { ActionSet } from '../ActionSet/ActionSet.js';
|
22
22
|
|
@@ -140,7 +140,8 @@ var TearsheetShell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
140
140
|
// Callback to give the tearsheet the opportunity to claim focus
|
141
141
|
handleStackChange.claimFocus = function () {
|
142
142
|
if (selectorPrimaryFocus) {
|
143
|
-
|
143
|
+
var _getSpecificElement;
|
144
|
+
return (_getSpecificElement = getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus)) === null || _getSpecificElement === void 0 ? void 0 : _getSpecificElement.focus();
|
144
145
|
}
|
145
146
|
firstElement === null || firstElement === void 0 || firstElement.focus();
|
146
147
|
};
|
@@ -358,6 +359,7 @@ TearsheetShell.propTypes = _objectSpread2({
|
|
358
359
|
label: PropTypes.string,
|
359
360
|
loading: PropTypes.bool,
|
360
361
|
// we duplicate this Button prop to improve the DocGen here
|
362
|
+
/**@ts-ignore*/
|
361
363
|
onClick: Button.propTypes.onClick
|
362
364
|
}))),
|
363
365
|
/**
|
@@ -9,6 +9,9 @@ import { usePrefix } from '@carbon/react';
|
|
9
9
|
import { pkg } from '../../../settings.js';
|
10
10
|
import { useCallback, useEffect } from 'react';
|
11
11
|
|
12
|
+
var getSpecificElement = function getSpecificElement(parentEl, elementId) {
|
13
|
+
return elementId ? parentEl === null || parentEl === void 0 ? void 0 : parentEl.querySelector(elementId) : null;
|
14
|
+
};
|
12
15
|
var useFocus = function useFocus(modalRef, selectorPrimaryFocus) {
|
13
16
|
var carbonPrefix = usePrefix();
|
14
17
|
var tearsheetBaseClass = "".concat(pkg.prefix, "--tearsheet");
|
@@ -39,7 +42,7 @@ var useFocus = function useFocus(modalRef, selectorPrimaryFocus) {
|
|
39
42
|
var first = (_focusableElements2 = focusableElements) === null || _focusableElements2 === void 0 ? void 0 : _focusableElements2[0];
|
40
43
|
var last = (_focusableElements3 = focusableElements) === null || _focusableElements3 === void 0 ? void 0 : _focusableElements3[((_focusableElements4 = focusableElements) === null || _focusableElements4 === void 0 ? void 0 : _focusableElements4.length) - 1];
|
41
44
|
var all = focusableElements;
|
42
|
-
var specifiedElement =
|
45
|
+
var specifiedElement = getSpecificElement(modalEl, selectorPrimaryFocus);
|
43
46
|
return {
|
44
47
|
first: first,
|
45
48
|
last: last,
|
@@ -84,4 +87,4 @@ var useFocus = function useFocus(modalRef, selectorPrimaryFocus) {
|
|
84
87
|
};
|
85
88
|
};
|
86
89
|
|
87
|
-
export { useFocus };
|
90
|
+
export { getSpecificElement, useFocus };
|
@@ -7,81 +7,68 @@
|
|
7
7
|
|
8
8
|
import { typeof as _typeof } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
|
10
|
-
function
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
}
|
18
|
-
return keys;
|
10
|
+
function _defineProperty(e, r, t) {
|
11
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
12
|
+
value: t,
|
13
|
+
enumerable: !0,
|
14
|
+
configurable: !0,
|
15
|
+
writable: !0
|
16
|
+
}) : e[r] = t, e;
|
19
17
|
}
|
20
|
-
function
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
});
|
18
|
+
function ownKeys(e, r) {
|
19
|
+
var t = Object.keys(e);
|
20
|
+
if (Object.getOwnPropertySymbols) {
|
21
|
+
var o = Object.getOwnPropertySymbols(e);
|
22
|
+
r && (o = o.filter(function (r) {
|
23
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
24
|
+
})), t.push.apply(t, o);
|
28
25
|
}
|
29
|
-
return
|
26
|
+
return t;
|
30
27
|
}
|
31
|
-
function
|
32
|
-
|
33
|
-
|
34
|
-
Object
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
writable: true
|
28
|
+
function _objectSpread2(e) {
|
29
|
+
for (var r = 1; r < arguments.length; r++) {
|
30
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
31
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
32
|
+
_defineProperty(e, r, t[r]);
|
33
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
34
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
39
35
|
});
|
40
|
-
} else {
|
41
|
-
obj[key] = value;
|
42
36
|
}
|
43
|
-
return
|
37
|
+
return e;
|
44
38
|
}
|
45
|
-
function
|
46
|
-
if (
|
47
|
-
var
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
target[key] = source[key];
|
39
|
+
function _objectWithoutProperties(e, t) {
|
40
|
+
if (null == e) return {};
|
41
|
+
var o,
|
42
|
+
r,
|
43
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
44
|
+
if (Object.getOwnPropertySymbols) {
|
45
|
+
var n = Object.getOwnPropertySymbols(e);
|
46
|
+
for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
54
47
|
}
|
55
|
-
return
|
48
|
+
return i;
|
56
49
|
}
|
57
|
-
function
|
58
|
-
if (
|
59
|
-
var
|
60
|
-
var
|
61
|
-
|
62
|
-
|
63
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
64
|
-
key = sourceSymbolKeys[i];
|
65
|
-
if (excluded.indexOf(key) >= 0) continue;
|
66
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
67
|
-
target[key] = source[key];
|
68
|
-
}
|
50
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
51
|
+
if (null == r) return {};
|
52
|
+
var t = {};
|
53
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
54
|
+
if (e.indexOf(n) >= 0) continue;
|
55
|
+
t[n] = r[n];
|
69
56
|
}
|
70
|
-
return
|
57
|
+
return t;
|
71
58
|
}
|
72
|
-
function _toPrimitive(
|
73
|
-
if (
|
74
|
-
var
|
75
|
-
if (
|
76
|
-
var
|
77
|
-
if (
|
59
|
+
function _toPrimitive(t, r) {
|
60
|
+
if ("object" != _typeof(t) || !t) return t;
|
61
|
+
var e = t[Symbol.toPrimitive];
|
62
|
+
if (void 0 !== e) {
|
63
|
+
var i = e.call(t, r || "default");
|
64
|
+
if ("object" != _typeof(i)) return i;
|
78
65
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
79
66
|
}
|
80
|
-
return (
|
67
|
+
return ("string" === r ? String : Number)(t);
|
81
68
|
}
|
82
|
-
function _toPropertyKey(
|
83
|
-
var
|
84
|
-
return _typeof(
|
69
|
+
function _toPropertyKey(t) {
|
70
|
+
var i = _toPrimitive(t, "string");
|
71
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
85
72
|
}
|
86
73
|
var _excluded = ["width", "height", "viewBox"],
|
87
74
|
_excluded2 = ["tabindex"];
|