@patternfly/react-core 4.203.2 → 4.204.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/CHANGELOG.md +11 -0
- package/dist/esm/components/ProgressStepper/ProgressStep.d.ts +3 -5
- package/dist/esm/components/ProgressStepper/ProgressStep.d.ts.map +1 -1
- package/dist/esm/components/ProgressStepper/ProgressStep.js +6 -6
- package/dist/esm/components/ProgressStepper/ProgressStep.js.map +1 -1
- package/dist/js/components/ProgressStepper/ProgressStep.d.ts +3 -5
- package/dist/js/components/ProgressStepper/ProgressStep.d.ts.map +1 -1
- package/dist/js/components/ProgressStepper/ProgressStep.js +7 -6
- package/dist/js/components/ProgressStepper/ProgressStep.js.map +1 -1
- package/dist/umd/react-core.js +6 -6
- package/dist/umd/react-core.min.js +4 -4
- package/package.json +5 -5
- package/src/components/ProgressStepper/ProgressStep.tsx +10 -15
- package/src/components/ProgressStepper/__tests__/ProgressStepper.test.tsx +1 -1
- package/src/components/ProgressStepper/examples/ProgressStepper.md +13 -20
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 4.204.0 (2022-04-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **Progress stepper:** Updated to use render prop for popover ([#7190](https://github.com/patternfly/patternfly-react/issues/7190)) ([5eb8243](https://github.com/patternfly/patternfly-react/commit/5eb8243d63d1168d9b425a5322c08e04659ed843))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 4.203.2 (2022-04-18)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @patternfly/react-core
|
|
@@ -14,13 +14,11 @@ export interface ProgressStepProps extends React.DetailedHTMLProps<React.LiHTMLA
|
|
|
14
14
|
description?: string;
|
|
15
15
|
/** ID of the title of the progress step. */
|
|
16
16
|
titleId?: string;
|
|
17
|
-
/** Popover for a progress step. */
|
|
18
|
-
popover?: React.ReactNode;
|
|
19
|
-
/** @hide Forwarded reference to title container */
|
|
20
|
-
innerRef?: React.Ref<any>;
|
|
21
17
|
/** Accessible label for the progress step. Should communicate all information being communicated by the progress
|
|
22
18
|
* step's icon, including the variant and the completed status. */
|
|
23
19
|
'aria-label'?: string;
|
|
20
|
+
/** Forwards the step ref to rendered function. Use this prop to add a popover to the step.*/
|
|
21
|
+
popoverRender?: (stepRef: React.RefObject<any>) => React.ReactNode;
|
|
24
22
|
}
|
|
25
|
-
export declare const ProgressStep: React.
|
|
23
|
+
export declare const ProgressStep: React.FunctionComponent<ProgressStepProps>;
|
|
26
24
|
//# sourceMappingURL=ProgressStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressStep.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressStepper/ProgressStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC;IACrF,iDAAiD;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC5E,6DAA6D;IAC7D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2FAA2F;IAC3F,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB
|
|
1
|
+
{"version":3,"file":"ProgressStep.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressStepper/ProgressStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC;IACrF,iDAAiD;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC5E,6DAA6D;IAC7D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2FAA2F;IAC3F,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;sEACkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8FAA8F;IAC9F,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;CACpE;AAoBD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAqDnE,CAAC"}
|
|
@@ -22,10 +22,11 @@ const variantStyle = {
|
|
|
22
22
|
warning: styles.modifiers.warning,
|
|
23
23
|
danger: styles.modifiers.danger
|
|
24
24
|
};
|
|
25
|
-
const
|
|
26
|
-
var { children, className, variant, isCurrent, description, icon, titleId,
|
|
25
|
+
export const ProgressStep = (_a) => {
|
|
26
|
+
var { children, className, variant, isCurrent, description, icon, titleId, 'aria-label': ariaLabel, popoverRender } = _a, props = __rest(_a, ["children", "className", "variant", "isCurrent", "description", "icon", "titleId", 'aria-label', "popoverRender"]);
|
|
27
27
|
const _icon = icon !== undefined ? icon : variantIcons[variant];
|
|
28
|
-
const Component =
|
|
28
|
+
const Component = popoverRender !== undefined ? 'span' : 'div';
|
|
29
|
+
const stepRef = React.useRef();
|
|
29
30
|
if (props.id === undefined || titleId === undefined) {
|
|
30
31
|
/* eslint-disable no-console */
|
|
31
32
|
console.warn('ProgressStep: The titleId and id properties are required to make this component accessible, and one or both of these properties are missing.');
|
|
@@ -34,11 +35,10 @@ const ProgressStepBase = (_a) => {
|
|
|
34
35
|
React.createElement("div", { className: css(styles.progressStepperStepConnector) },
|
|
35
36
|
React.createElement("span", { className: css(styles.progressStepperStepIcon) }, _icon && _icon)),
|
|
36
37
|
React.createElement("div", { className: css(styles.progressStepperStepMain) },
|
|
37
|
-
React.createElement(Component, Object.assign({ className: css(styles.progressStepperStepTitle,
|
|
38
|
+
React.createElement(Component, Object.assign({ className: css(styles.progressStepperStepTitle, popoverRender && styles.modifiers.helpText), id: titleId, ref: stepRef }, (popoverRender && { tabIndex: 0, role: 'button', type: 'button' }), (props.id !== undefined && titleId !== undefined && { 'aria-labelledby': `${props.id} ${titleId}` })),
|
|
38
39
|
children,
|
|
39
|
-
|
|
40
|
+
popoverRender && popoverRender(stepRef)),
|
|
40
41
|
description && React.createElement("div", { className: css(styles.progressStepperStepDescription) }, description))));
|
|
41
42
|
};
|
|
42
|
-
export const ProgressStep = React.forwardRef((props, ref) => (React.createElement(ProgressStepBase, Object.assign({ innerRef: ref }, props))));
|
|
43
43
|
ProgressStep.displayName = 'ProgressStep';
|
|
44
44
|
//# sourceMappingURL=ProgressStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressStep.js","sourceRoot":"","sources":["../../../../src/components/ProgressStepper/ProgressStep.tsx"],"names":[],"mappings":";AAA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C,EAC3F,EAAE,EAAE,OAAO,EACX,GAAG,EAAE,OAAO,IACR,CAAC,aAAa,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAClE,CAAC,KAAK,CAAC,EAAE,KAAK,SAAS,IAAI,OAAO,KAAK,SAAS,IAAI,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,OAAO,EAAE,EAAE,CAAC;gBAEvG,QAAQ;gBACR,aAAa,IAAI,aAAa,CAAC,OAAO,CAAC,CAC9B;YACX,WAAW,IAAI,6BAAK,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,8BAA8B,CAAC,IAAG,WAAW,CAAO,CAC3F,CACH,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC"}
|
|
@@ -14,13 +14,11 @@ export interface ProgressStepProps extends React.DetailedHTMLProps<React.LiHTMLA
|
|
|
14
14
|
description?: string;
|
|
15
15
|
/** ID of the title of the progress step. */
|
|
16
16
|
titleId?: string;
|
|
17
|
-
/** Popover for a progress step. */
|
|
18
|
-
popover?: React.ReactNode;
|
|
19
|
-
/** @hide Forwarded reference to title container */
|
|
20
|
-
innerRef?: React.Ref<any>;
|
|
21
17
|
/** Accessible label for the progress step. Should communicate all information being communicated by the progress
|
|
22
18
|
* step's icon, including the variant and the completed status. */
|
|
23
19
|
'aria-label'?: string;
|
|
20
|
+
/** Forwards the step ref to rendered function. Use this prop to add a popover to the step.*/
|
|
21
|
+
popoverRender?: (stepRef: React.RefObject<any>) => React.ReactNode;
|
|
24
22
|
}
|
|
25
|
-
export declare const ProgressStep: React.
|
|
23
|
+
export declare const ProgressStep: React.FunctionComponent<ProgressStepProps>;
|
|
26
24
|
//# sourceMappingURL=ProgressStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressStep.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressStepper/ProgressStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC;IACrF,iDAAiD;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC5E,6DAA6D;IAC7D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2FAA2F;IAC3F,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB
|
|
1
|
+
{"version":3,"file":"ProgressStep.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressStepper/ProgressStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC;IACrF,iDAAiD;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC5E,6DAA6D;IAC7D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2FAA2F;IAC3F,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;sEACkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8FAA8F;IAC9F,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;CACpE;AAoBD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAqDnE,CAAC"}
|
|
@@ -25,10 +25,11 @@ const variantStyle = {
|
|
|
25
25
|
warning: progress_stepper_1.default.modifiers.warning,
|
|
26
26
|
danger: progress_stepper_1.default.modifiers.danger
|
|
27
27
|
};
|
|
28
|
-
const
|
|
29
|
-
var { children, className, variant, isCurrent, description, icon, titleId,
|
|
28
|
+
const ProgressStep = (_a) => {
|
|
29
|
+
var { children, className, variant, isCurrent, description, icon, titleId, 'aria-label': ariaLabel, popoverRender } = _a, props = tslib_1.__rest(_a, ["children", "className", "variant", "isCurrent", "description", "icon", "titleId", 'aria-label', "popoverRender"]);
|
|
30
30
|
const _icon = icon !== undefined ? icon : variantIcons[variant];
|
|
31
|
-
const Component =
|
|
31
|
+
const Component = popoverRender !== undefined ? 'span' : 'div';
|
|
32
|
+
const stepRef = React.useRef();
|
|
32
33
|
if (props.id === undefined || titleId === undefined) {
|
|
33
34
|
/* eslint-disable no-console */
|
|
34
35
|
console.warn('ProgressStep: The titleId and id properties are required to make this component accessible, and one or both of these properties are missing.');
|
|
@@ -37,11 +38,11 @@ const ProgressStepBase = (_a) => {
|
|
|
37
38
|
React.createElement("div", { className: react_styles_1.css(progress_stepper_1.default.progressStepperStepConnector) },
|
|
38
39
|
React.createElement("span", { className: react_styles_1.css(progress_stepper_1.default.progressStepperStepIcon) }, _icon && _icon)),
|
|
39
40
|
React.createElement("div", { className: react_styles_1.css(progress_stepper_1.default.progressStepperStepMain) },
|
|
40
|
-
React.createElement(Component, Object.assign({ className: react_styles_1.css(progress_stepper_1.default.progressStepperStepTitle,
|
|
41
|
+
React.createElement(Component, Object.assign({ className: react_styles_1.css(progress_stepper_1.default.progressStepperStepTitle, popoverRender && progress_stepper_1.default.modifiers.helpText), id: titleId, ref: stepRef }, (popoverRender && { tabIndex: 0, role: 'button', type: 'button' }), (props.id !== undefined && titleId !== undefined && { 'aria-labelledby': `${props.id} ${titleId}` })),
|
|
41
42
|
children,
|
|
42
|
-
|
|
43
|
+
popoverRender && popoverRender(stepRef)),
|
|
43
44
|
description && React.createElement("div", { className: react_styles_1.css(progress_stepper_1.default.progressStepperStepDescription) }, description))));
|
|
44
45
|
};
|
|
45
|
-
exports.ProgressStep =
|
|
46
|
+
exports.ProgressStep = ProgressStep;
|
|
46
47
|
exports.ProgressStep.displayName = 'ProgressStep';
|
|
47
48
|
//# sourceMappingURL=ProgressStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressStep.js","sourceRoot":"","sources":["../../../../src/components/ProgressStepper/ProgressStep.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,wIAA8F;AAC9F,2DAA+C;AAC/C,wHAAuF;AACvF,4HAA2F;AAC3F,wIAAuG;AACvG,oIAAmG;
|
|
1
|
+
{"version":3,"file":"ProgressStep.js","sourceRoot":"","sources":["../../../../src/components/ProgressStepper/ProgressStep.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,wIAA8F;AAC9F,2DAA+C;AAC/C,wHAAuF;AACvF,4HAA2F;AAC3F,wIAAuG;AACvG,oIAAmG;AAyBnG,MAAM,YAAY,GAAG;IACnB,OAAO,EAAE,SAAgB;IACzB,OAAO,EAAE,SAAgB;IACzB,OAAO,EAAE,oBAAC,2BAAe,OAAG;IAC5B,IAAI,EAAE,oBAAC,6BAAiB,OAAG;IAC3B,OAAO,EAAE,oBAAC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EACzC,KAAK;QAET,6BAAK,SAAS,EAAE,kBAAG,CAAC,0BAAM,CAAC,4BAA4B,CAAC;YACtD,8BAAM,SAAS,EAAE,kBAAG,CAAC,0BAAM,CAAC,uBAAuB,CAAC,IAAG,KAAK,IAAI,KAAK,CAAQ,CACzE;QACN,6BAAK,SAAS,EAAE,kBAAG,CAAC,0BAAM,CAAC,uBAAuB,CAAC;YACjD,oBAAC,SAAS,kBACR,SAAS,EAAE,kBAAG,CAAC,0BAAM,CAAC,wBAAwB,EAAE,aAAa,IAAI,0BAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,EAC3F,EAAE,EAAE,OAAO,EACX,GAAG,EAAE,OAAO,IACR,CAAC,aAAa,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAClE,CAAC,KAAK,CAAC,EAAE,KAAK,SAAS,IAAI,OAAO,KAAK,SAAS,IAAI,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,OAAO,EAAE,EAAE,CAAC;gBAEvG,QAAQ;gBACR,aAAa,IAAI,aAAa,CAAC,OAAO,CAAC,CAC9B;YACX,WAAW,IAAI,6BAAK,SAAS,EAAE,kBAAG,CAAC,0BAAM,CAAC,8BAA8B,CAAC,IAAG,WAAW,CAAO,CAC3F,CACH,CACN,CAAC;AACJ,CAAC,CAAC;AArDW,QAAA,YAAY,gBAqDvB;AAEF,oBAAY,CAAC,WAAW,GAAG,cAAc,CAAC"}
|
package/dist/umd/react-core.js
CHANGED
|
@@ -17327,10 +17327,11 @@
|
|
|
17327
17327
|
warning: styles$p.modifiers.warning,
|
|
17328
17328
|
danger: styles$p.modifiers.danger
|
|
17329
17329
|
};
|
|
17330
|
-
const
|
|
17331
|
-
var { children, className, variant, isCurrent, description, icon, titleId,
|
|
17330
|
+
const ProgressStep = (_a) => {
|
|
17331
|
+
var { children, className, variant, isCurrent, description, icon, titleId, 'aria-label': ariaLabel, popoverRender } = _a, props = __rest$1(_a, ["children", "className", "variant", "isCurrent", "description", "icon", "titleId", 'aria-label', "popoverRender"]);
|
|
17332
17332
|
const _icon = icon !== undefined ? icon : variantIcons[variant];
|
|
17333
|
-
const Component =
|
|
17333
|
+
const Component = popoverRender !== undefined ? 'span' : 'div';
|
|
17334
|
+
const stepRef = React__namespace.useRef();
|
|
17334
17335
|
if (props.id === undefined || titleId === undefined) {
|
|
17335
17336
|
/* eslint-disable no-console */
|
|
17336
17337
|
console.warn('ProgressStep: The titleId and id properties are required to make this component accessible, and one or both of these properties are missing.');
|
|
@@ -17339,12 +17340,11 @@
|
|
|
17339
17340
|
React__namespace.createElement("div", { className: css(styles$p.progressStepperStepConnector) },
|
|
17340
17341
|
React__namespace.createElement("span", { className: css(styles$p.progressStepperStepIcon) }, _icon && _icon)),
|
|
17341
17342
|
React__namespace.createElement("div", { className: css(styles$p.progressStepperStepMain) },
|
|
17342
|
-
React__namespace.createElement(Component, Object.assign({ className: css(styles$p.progressStepperStepTitle,
|
|
17343
|
+
React__namespace.createElement(Component, Object.assign({ className: css(styles$p.progressStepperStepTitle, popoverRender && styles$p.modifiers.helpText), id: titleId, ref: stepRef }, (popoverRender && { tabIndex: 0, role: 'button', type: 'button' }), (props.id !== undefined && titleId !== undefined && { 'aria-labelledby': `${props.id} ${titleId}` })),
|
|
17343
17344
|
children,
|
|
17344
|
-
|
|
17345
|
+
popoverRender && popoverRender(stepRef)),
|
|
17345
17346
|
description && React__namespace.createElement("div", { className: css(styles$p.progressStepperStepDescription) }, description))));
|
|
17346
17347
|
};
|
|
17347
|
-
const ProgressStep = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(ProgressStepBase, Object.assign({ innerRef: ref }, props))));
|
|
17348
17348
|
ProgressStep.displayName = 'ProgressStep';
|
|
17349
17349
|
|
|
17350
17350
|
Promise.resolve().then(function () { return radio; });
|