@patternfly/react-table 4.71.21 → 4.71.24
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 +30 -0
- package/dist/umd/react-table.js +340 -234
- package/dist/umd/react-table.min.js +4 -4
- package/package.json +6 -6
package/dist/umd/react-table.js
CHANGED
|
@@ -109,8 +109,6 @@
|
|
|
109
109
|
return classes.join(' ');
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
113
|
-
|
|
114
112
|
const KEY_CODES = { ARROW_UP: 38, ARROW_DOWN: 40, ESCAPE_KEY: 27, TAB: 9, ENTER: 13, SPACE: 32 };
|
|
115
113
|
const KEYHANDLER_DIRECTION = { UP: 'up', DOWN: 'down', RIGHT: 'right', LEFT: 'left' };
|
|
116
114
|
var ValidatedOptions;
|
|
@@ -3385,11 +3383,13 @@
|
|
|
3385
3383
|
};
|
|
3386
3384
|
};
|
|
3387
3385
|
|
|
3388
|
-
|
|
3386
|
+
Promise.resolve().then(function () { return bullseye; });
|
|
3387
|
+
var styles$c = {
|
|
3389
3388
|
"bullseye": "pf-l-bullseye"
|
|
3390
3389
|
};
|
|
3391
3390
|
|
|
3392
|
-
|
|
3391
|
+
Promise.resolve().then(function () { return title; });
|
|
3392
|
+
var styles$b = {
|
|
3393
3393
|
"modifiers": {
|
|
3394
3394
|
"4xl": "pf-m-4xl",
|
|
3395
3395
|
"3xl": "pf-m-3xl",
|
|
@@ -3423,11 +3423,12 @@
|
|
|
3423
3423
|
const Title = (_a) => {
|
|
3424
3424
|
var { className = '', children = '', headingLevel: HeadingLevel, size = headingLevelSizeMap[HeadingLevel], ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["className", "children", "headingLevel", "size", "ouiaId", "ouiaSafe"]);
|
|
3425
3425
|
const ouiaProps = useOUIAProps(Title.displayName, ouiaId, ouiaSafe);
|
|
3426
|
-
return (React__namespace.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(
|
|
3426
|
+
return (React__namespace.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(styles$b.title, size && styles$b.modifiers[size], className) }), children));
|
|
3427
3427
|
};
|
|
3428
3428
|
Title.displayName = 'Title';
|
|
3429
3429
|
|
|
3430
|
-
|
|
3430
|
+
Promise.resolve().then(function () { return button; });
|
|
3431
|
+
var buttonStyles = {
|
|
3431
3432
|
"button": "pf-c-button",
|
|
3432
3433
|
"buttonIcon": "pf-c-button__icon",
|
|
3433
3434
|
"buttonProgress": "pf-c-button__progress",
|
|
@@ -3457,7 +3458,8 @@
|
|
|
3457
3458
|
"spinner": "pf-c-spinner"
|
|
3458
3459
|
};
|
|
3459
3460
|
|
|
3460
|
-
|
|
3461
|
+
Promise.resolve().then(function () { return spinner; });
|
|
3462
|
+
var styles$a = {
|
|
3461
3463
|
"modifiers": {
|
|
3462
3464
|
"sm": "pf-m-sm",
|
|
3463
3465
|
"md": "pf-m-md",
|
|
@@ -3483,10 +3485,10 @@
|
|
|
3483
3485
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3484
3486
|
className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', isSVG = false, diameter, 'aria-label': ariaLabel, 'aria-labelledBy': ariaLabelledBy } = _a, props = __rest$1(_a, ["className", "size", 'aria-valuetext', "isSVG", "diameter", 'aria-label', 'aria-labelledBy']);
|
|
3485
3487
|
const Component = isSVG ? 'svg' : 'span';
|
|
3486
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(
|
|
3487
|
-
React__namespace.createElement("span", { className: css(
|
|
3488
|
-
React__namespace.createElement("span", { className: css(
|
|
3489
|
-
React__namespace.createElement("span", { className: css(
|
|
3488
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$a.spinner, styles$a.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText }, (isSVG && { viewBox: '0 0 100 100' }), (diameter && { style: { '--pf-c-spinner--diameter': diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props), isSVG ? (React__namespace.createElement("circle", { className: styles$a.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3489
|
+
React__namespace.createElement("span", { className: css(styles$a.spinnerClipper) }),
|
|
3490
|
+
React__namespace.createElement("span", { className: css(styles$a.spinnerLeadBall) }),
|
|
3491
|
+
React__namespace.createElement("span", { className: css(styles$a.spinnerTailBall) })))));
|
|
3490
3492
|
};
|
|
3491
3493
|
Spinner.displayName = 'Spinner';
|
|
3492
3494
|
|
|
@@ -3527,13 +3529,13 @@
|
|
|
3527
3529
|
return 0;
|
|
3528
3530
|
}
|
|
3529
3531
|
};
|
|
3530
|
-
return (React__namespace.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isDisabled || isAriaDisabled, "aria-label": ariaLabel, className: css(
|
|
3531
|
-
isLoading && (React__namespace.createElement("span", { className: css(
|
|
3532
|
+
return (React__namespace.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isDisabled || isAriaDisabled, "aria-label": ariaLabel, className: css(buttonStyles.button, buttonStyles.modifiers[variant], isBlock && buttonStyles.modifiers.block, isDisabled && buttonStyles.modifiers.disabled, isAriaDisabled && buttonStyles.modifiers.ariaDisabled, isActive && buttonStyles.modifiers.active, isInline && variant === ButtonVariant.link && buttonStyles.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && buttonStyles.modifiers.danger, isLoading !== null && children !== null && buttonStyles.modifiers.progress, isLoading && buttonStyles.modifiers.inProgress, isSmall && buttonStyles.modifiers.small, isLarge && buttonStyles.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : null, ref: innerRef }, ouiaProps),
|
|
3533
|
+
isLoading && (React__namespace.createElement("span", { className: css(buttonStyles.buttonProgress) },
|
|
3532
3534
|
React__namespace.createElement(Spinner, { size: spinnerSize.md, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }))),
|
|
3533
3535
|
variant === ButtonVariant.plain && children === null && icon ? icon : null,
|
|
3534
|
-
variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React__namespace.createElement("span", { className: css(
|
|
3536
|
+
variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React__namespace.createElement("span", { className: css(buttonStyles.buttonIcon, buttonStyles.modifiers.start) }, icon)),
|
|
3535
3537
|
children,
|
|
3536
|
-
variant !== ButtonVariant.plain && icon && iconPosition === 'right' && (React__namespace.createElement("span", { className: css(
|
|
3538
|
+
variant !== ButtonVariant.plain && icon && iconPosition === 'right' && (React__namespace.createElement("span", { className: css(buttonStyles.buttonIcon, buttonStyles.modifiers.end) }, icon))));
|
|
3537
3539
|
};
|
|
3538
3540
|
const Button = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(ButtonBase, Object.assign({ innerRef: ref }, props))));
|
|
3539
3541
|
Button.displayName = 'Button';
|
|
@@ -3670,7 +3672,8 @@
|
|
|
3670
3672
|
|
|
3671
3673
|
var ExclamationTriangleIcon$1 = ExclamationTriangleIcon;
|
|
3672
3674
|
|
|
3673
|
-
|
|
3675
|
+
Promise.resolve().then(function () { return tooltip; });
|
|
3676
|
+
var styles$9 = {
|
|
3674
3677
|
"modifiers": {
|
|
3675
3678
|
"top": "pf-m-top",
|
|
3676
3679
|
"topLeft": "pf-m-top-left",
|
|
@@ -3693,13 +3696,13 @@
|
|
|
3693
3696
|
|
|
3694
3697
|
const TooltipContent = (_a) => {
|
|
3695
3698
|
var { className, children, isLeftAligned } = _a, props = __rest$1(_a, ["className", "children", "isLeftAligned"]);
|
|
3696
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(
|
|
3699
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$9.tooltipContent, isLeftAligned && styles$9.modifiers.textAlignLeft, className) }, props), children));
|
|
3697
3700
|
};
|
|
3698
3701
|
TooltipContent.displayName = 'TooltipContent';
|
|
3699
3702
|
|
|
3700
3703
|
const TooltipArrow = (_a) => {
|
|
3701
3704
|
var { className } = _a, props = __rest$1(_a, ["className"]);
|
|
3702
|
-
return React__namespace.createElement("div", Object.assign({ className: css(
|
|
3705
|
+
return React__namespace.createElement("div", Object.assign({ className: css(styles$9.tooltipArrow, className) }, props));
|
|
3703
3706
|
};
|
|
3704
3707
|
TooltipArrow.displayName = 'TooltipArrow';
|
|
3705
3708
|
|
|
@@ -3799,21 +3802,21 @@
|
|
|
3799
3802
|
}, exitDelay);
|
|
3800
3803
|
};
|
|
3801
3804
|
const positionModifiers = {
|
|
3802
|
-
top:
|
|
3803
|
-
bottom:
|
|
3804
|
-
left:
|
|
3805
|
-
right:
|
|
3806
|
-
'top-start':
|
|
3807
|
-
'top-end':
|
|
3808
|
-
'bottom-start':
|
|
3809
|
-
'bottom-end':
|
|
3810
|
-
'left-start':
|
|
3811
|
-
'left-end':
|
|
3812
|
-
'right-start':
|
|
3813
|
-
'right-end':
|
|
3805
|
+
top: styles$9.modifiers.top,
|
|
3806
|
+
bottom: styles$9.modifiers.bottom,
|
|
3807
|
+
left: styles$9.modifiers.left,
|
|
3808
|
+
right: styles$9.modifiers.right,
|
|
3809
|
+
'top-start': styles$9.modifiers.topLeft,
|
|
3810
|
+
'top-end': styles$9.modifiers.topRight,
|
|
3811
|
+
'bottom-start': styles$9.modifiers.bottomLeft,
|
|
3812
|
+
'bottom-end': styles$9.modifiers.bottomRight,
|
|
3813
|
+
'left-start': styles$9.modifiers.leftTop,
|
|
3814
|
+
'left-end': styles$9.modifiers.leftBottom,
|
|
3815
|
+
'right-start': styles$9.modifiers.rightTop,
|
|
3816
|
+
'right-end': styles$9.modifiers.rightBottom
|
|
3814
3817
|
};
|
|
3815
3818
|
const hasCustomMaxWidth = maxWidth !== tooltipMaxWidth.value;
|
|
3816
|
-
const content = (React__namespace.createElement("div", Object.assign({ className: css(
|
|
3819
|
+
const content = (React__namespace.createElement("div", Object.assign({ className: css(styles$9.tooltip, className), role: "tooltip", id: id, style: {
|
|
3817
3820
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
3818
3821
|
opacity,
|
|
3819
3822
|
transition: getOpacityTransition(animationDuration)
|
|
@@ -3846,7 +3849,8 @@
|
|
|
3846
3849
|
};
|
|
3847
3850
|
Tooltip.displayName = 'Tooltip';
|
|
3848
3851
|
|
|
3849
|
-
|
|
3852
|
+
Promise.resolve().then(function () { return formControl; });
|
|
3853
|
+
var formStyles$1 = {
|
|
3850
3854
|
"formControl": "pf-c-form-control",
|
|
3851
3855
|
"modifiers": {
|
|
3852
3856
|
"success": "pf-m-success",
|
|
@@ -3863,7 +3867,8 @@
|
|
|
3863
3867
|
}
|
|
3864
3868
|
};
|
|
3865
3869
|
|
|
3866
|
-
|
|
3870
|
+
Promise.resolve().then(function () { return dropdown; });
|
|
3871
|
+
var styles$8 = {
|
|
3867
3872
|
"badge": "pf-c-badge",
|
|
3868
3873
|
"check": "pf-c-check",
|
|
3869
3874
|
"divider": "pf-c-divider",
|
|
@@ -4044,12 +4049,12 @@
|
|
|
4044
4049
|
return (React__namespace.createElement(DropdownArrowContext.Provider, { value: {
|
|
4045
4050
|
keyHandler: this.childKeyHandler,
|
|
4046
4051
|
sendRef: this.sendRef
|
|
4047
|
-
} }, component === 'div' ? (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React__namespace.createElement("div", { className: css(menuClass, position === DropdownPosition.right &&
|
|
4052
|
+
} }, component === 'div' ? (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React__namespace.createElement("div", { className: css(menuClass, position === DropdownPosition.right && styles$8.modifiers.alignRight, formatBreakpointMods(alignments, styles$8, 'align-'), className), hidden: !isOpen, onClick: event => onSelect && onSelect(event), ref: setMenuComponentRef }, children)))) : ((isGrouped && (React__namespace.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
4048
4053
|
const MenuComponent = (menuComponent || 'div');
|
|
4049
|
-
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === DropdownPosition.right &&
|
|
4054
|
+
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === DropdownPosition.right && styles$8.modifiers.alignRight, formatBreakpointMods(alignments, styles$8, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
4050
4055
|
}))) || (React__namespace.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
4051
4056
|
const MenuComponent = (menuComponent || component);
|
|
4052
|
-
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === DropdownPosition.right &&
|
|
4057
|
+
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === DropdownPosition.right && styles$8.modifiers.alignRight, formatBreakpointMods(alignments, styles$8, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
4053
4058
|
})))));
|
|
4054
4059
|
}
|
|
4055
4060
|
}
|
|
@@ -4064,7 +4069,7 @@
|
|
|
4064
4069
|
isGrouped: false,
|
|
4065
4070
|
setMenuComponentRef: null
|
|
4066
4071
|
};
|
|
4067
|
-
DropdownMenu.validToggleClasses = [
|
|
4072
|
+
DropdownMenu.validToggleClasses = [styles$8.dropdownToggle, styles$8.dropdownToggleButton];
|
|
4068
4073
|
DropdownMenu.focusFirstRef = (refCollection) => {
|
|
4069
4074
|
if (refCollection && refCollection[0] && refCollection[0].focus) {
|
|
4070
4075
|
setTimeout(() => refCollection[0].focus());
|
|
@@ -4116,8 +4121,8 @@
|
|
|
4116
4121
|
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ baseClass, baseComponent, id: contextId, ouiaId, ouiaComponentType, ouiaSafe, alignments }) => {
|
|
4117
4122
|
const BaseComponent = baseComponent;
|
|
4118
4123
|
const menuContainer = (React__namespace.createElement(DropdownMenu, { setMenuComponentRef: this.setMenuComponentRef, component: component, isOpen: isOpen, position: position, "aria-labelledby": contextId ? `${contextId}-toggle` : id, isGrouped: isGrouped, autoFocus: openedOnEnter && autoFocus, alignments: alignments }, renderedContent));
|
|
4119
|
-
const popperContainer = (React__namespace.createElement("div", { className: css(baseClass, direction === DropdownDirection.up &&
|
|
4120
|
-
const mainContainer = (React__namespace.createElement(BaseComponent, Object.assign({}, props, { className: css(baseClass, direction === DropdownDirection.up &&
|
|
4124
|
+
const popperContainer = (React__namespace.createElement("div", { className: css(baseClass, direction === DropdownDirection.up && styles$8.modifiers.top, position === DropdownPosition.right && styles$8.modifiers.alignRight, isOpen && styles$8.modifiers.expanded, className) }, isOpen && menuContainer));
|
|
4125
|
+
const mainContainer = (React__namespace.createElement(BaseComponent, Object.assign({}, props, { className: css(baseClass, direction === DropdownDirection.up && styles$8.modifiers.top, position === DropdownPosition.right && styles$8.modifiers.alignRight, isOpen && styles$8.modifiers.expanded, isFullHeight && styles$8.modifiers.fullHeight, className), ref: this.baseComponentRef }, getOUIAProps(ouiaComponentType, ouiaId, ouiaSafe)),
|
|
4121
4126
|
React__namespace.Children.map(toggle, oneToggle => React__namespace.cloneElement(oneToggle, {
|
|
4122
4127
|
parentRef: this.baseComponentRef,
|
|
4123
4128
|
getMenuRef: this.getMenuComponentRef,
|
|
@@ -4162,9 +4167,9 @@
|
|
|
4162
4167
|
const Dropdown = (_a) => {
|
|
4163
4168
|
var { onSelect,
|
|
4164
4169
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4165
|
-
ref, // Types of Ref are different for React.
|
|
4170
|
+
ref, // Types of Ref are different for React.FunctionComponent vs React.Component
|
|
4166
4171
|
ouiaId, ouiaSafe, alignments, contextProps } = _a, props = __rest$1(_a, ["onSelect", "ref", "ouiaId", "ouiaSafe", "alignments", "contextProps"]);
|
|
4167
|
-
return (React__namespace.createElement(DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass:
|
|
4172
|
+
return (React__namespace.createElement(DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass: styles$8.dropdownToggleText, toggleIconClass: styles$8.dropdownToggleImage, toggleIndicatorClass: styles$8.dropdownToggleIcon, menuClass: styles$8.dropdownMenu, itemClass: styles$8.dropdownMenuItem, toggleClass: styles$8.dropdownToggle, baseClass: styles$8.dropdown, baseComponent: 'div', sectionClass: styles$8.dropdownGroup, sectionTitleClass: styles$8.dropdownGroupTitle, sectionComponent: 'section', disabledClass: styles$8.modifiers.disabled, plainTextClass: styles$8.modifiers.text, ouiaId: useOUIAId(Dropdown.displayName, ouiaId), ouiaSafe, ouiaComponentType: Dropdown.displayName, alignments }, contextProps) },
|
|
4168
4173
|
React__namespace.createElement(DropdownWithContext, Object.assign({}, props))));
|
|
4169
4174
|
};
|
|
4170
4175
|
Dropdown.displayName = 'Dropdown';
|
|
@@ -4238,7 +4243,7 @@
|
|
|
4238
4243
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4239
4244
|
const _a = this.props, { className, children, isHovered, context, onClick, component, role, isDisabled, isAriaDisabled, isPlainText, index, href, tooltip, tooltipProps, id, componentID, listItemClassName, additionalChild, customChild, enterTriggersArrowDown, icon, autoFocus, styleChildren, description, inoperableEvents } = _a, additionalProps = __rest$1(_a, ["className", "children", "isHovered", "context", "onClick", "component", "role", "isDisabled", "isAriaDisabled", "isPlainText", "index", "href", "tooltip", "tooltipProps", "id", "componentID", "listItemClassName", "additionalChild", "customChild", "enterTriggersArrowDown", "icon", "autoFocus", "styleChildren", "description", "inoperableEvents"]);
|
|
4240
4245
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
4241
|
-
let classes = css(icon &&
|
|
4246
|
+
let classes = css(icon && styles$8.modifiers.icon, isAriaDisabled && styles$8.modifiers.ariaDisabled, className);
|
|
4242
4247
|
if (component === 'a') {
|
|
4243
4248
|
additionalProps['aria-disabled'] = isDisabled || isAriaDisabled;
|
|
4244
4249
|
}
|
|
@@ -4253,17 +4258,17 @@
|
|
|
4253
4258
|
const renderDefaultComponent = (tag) => {
|
|
4254
4259
|
const Component = tag;
|
|
4255
4260
|
const componentContent = description ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4256
|
-
React__namespace.createElement("div", { className:
|
|
4257
|
-
icon && React__namespace.createElement("span", { className: css(
|
|
4261
|
+
React__namespace.createElement("div", { className: styles$8.dropdownMenuItemMain },
|
|
4262
|
+
icon && React__namespace.createElement("span", { className: css(styles$8.dropdownMenuItemIcon) }, icon),
|
|
4258
4263
|
children),
|
|
4259
|
-
React__namespace.createElement("div", { className:
|
|
4260
|
-
icon && React__namespace.createElement("span", { className: css(
|
|
4264
|
+
React__namespace.createElement("div", { className: styles$8.dropdownMenuItemDescription }, description))) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4265
|
+
icon && React__namespace.createElement("span", { className: css(styles$8.dropdownMenuItemIcon) }, icon),
|
|
4261
4266
|
children));
|
|
4262
4267
|
return (React__namespace.createElement(Component, Object.assign({}, additionalProps, (isDisabled || isAriaDisabled ? preventedEvents(inoperableEvents) : null), { href: href, ref: this.ref, className: classes, id: componentID }), componentContent));
|
|
4263
4268
|
};
|
|
4264
4269
|
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, itemClass, disabledClass, plainTextClass }) => {
|
|
4265
4270
|
if (this.props.role !== 'separator') {
|
|
4266
|
-
classes = css(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description &&
|
|
4271
|
+
classes = css(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description && styles$8.modifiers.description);
|
|
4267
4272
|
}
|
|
4268
4273
|
if (customChild) {
|
|
4269
4274
|
return React__namespace.cloneElement(customChild, {
|
|
@@ -4310,14 +4315,15 @@
|
|
|
4310
4315
|
const DropdownItem = (_a) => {
|
|
4311
4316
|
var { children, className, component = 'a', isDisabled = false, isAriaDisabled = false, isPlainText = false, isHovered = false, href, tooltip, tooltipProps = {}, listItemClassName, onClick,
|
|
4312
4317
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4313
|
-
ref, // Types of Ref are different for React.
|
|
4318
|
+
ref, // Types of Ref are different for React.FunctionComponent vs React.Component
|
|
4314
4319
|
additionalChild, customChild, tabIndex = -1, icon = null, autoFocus, description = null, styleChildren, ouiaId, ouiaSafe } = _a, props = __rest$1(_a, ["children", "className", "component", "isDisabled", "isAriaDisabled", "isPlainText", "isHovered", "href", "tooltip", "tooltipProps", "listItemClassName", "onClick", "ref", "additionalChild", "customChild", "tabIndex", "icon", "autoFocus", "description", "styleChildren", "ouiaId", "ouiaSafe"]);
|
|
4315
4320
|
const ouiaProps = useOUIAProps(DropdownItem.displayName, ouiaId, ouiaSafe);
|
|
4316
4321
|
return (React__namespace.createElement(DropdownArrowContext.Consumer, null, context => (React__namespace.createElement(InternalDropdownItem, Object.assign({ context: context, role: "menuitem", tabIndex: tabIndex, className: className, component: component, isDisabled: isDisabled, isAriaDisabled: isAriaDisabled, isPlainText: isPlainText, isHovered: isHovered, href: href, tooltip: tooltip, tooltipProps: tooltipProps, listItemClassName: listItemClassName, onClick: onClick, additionalChild: additionalChild, customChild: customChild, icon: icon, autoFocus: autoFocus, styleChildren: styleChildren, description: description }, ouiaProps, props), children))));
|
|
4317
4322
|
};
|
|
4318
4323
|
DropdownItem.displayName = 'DropdownItem';
|
|
4319
4324
|
|
|
4320
|
-
|
|
4325
|
+
Promise.resolve().then(function () { return divider; });
|
|
4326
|
+
var styles$7 = {
|
|
4321
4327
|
"divider": "pf-c-divider",
|
|
4322
4328
|
"modifiers": {
|
|
4323
4329
|
"hidden": "pf-m-hidden",
|
|
@@ -4392,14 +4398,14 @@
|
|
|
4392
4398
|
const Divider = (_a) => {
|
|
4393
4399
|
var { className, component = DividerVariant.hr, isVertical = false, inset } = _a, props = __rest$1(_a, ["className", "component", "isVertical", "inset"]);
|
|
4394
4400
|
const Component = component;
|
|
4395
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(
|
|
4401
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$7.divider, isVertical && styles$7.modifiers.vertical, formatBreakpointMods(inset, styles$7), className) }, (component !== 'hr' && { role: 'separator' }), props)));
|
|
4396
4402
|
};
|
|
4397
4403
|
Divider.displayName = 'Divider';
|
|
4398
4404
|
|
|
4399
4405
|
const DropdownSeparator = (_a) => {
|
|
4400
4406
|
var { className = '',
|
|
4401
4407
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4402
|
-
ref, // Types of Ref are different for React.
|
|
4408
|
+
ref, // Types of Ref are different for React.FunctionComponent vs React.Component
|
|
4403
4409
|
ouiaId, ouiaSafe } = _a, props = __rest$1(_a, ["className", "ref", "ouiaId", "ouiaSafe"]);
|
|
4404
4410
|
const ouiaProps = useOUIAProps(DropdownSeparator.displayName, ouiaId, ouiaSafe);
|
|
4405
4411
|
return (React__namespace.createElement(DropdownArrowContext.Consumer, null, context => (React__namespace.createElement(InternalDropdownItem, Object.assign({}, props, { context: context, component: React__namespace.createElement(Divider, { component: DividerVariant.div }), className: className, role: "separator" }, ouiaProps)))));
|
|
@@ -4421,8 +4427,8 @@
|
|
|
4421
4427
|
|
|
4422
4428
|
const buttonVariantStyles = {
|
|
4423
4429
|
default: '',
|
|
4424
|
-
primary:
|
|
4425
|
-
secondary:
|
|
4430
|
+
primary: styles$8.modifiers.primary,
|
|
4431
|
+
secondary: styles$8.modifiers.secondary
|
|
4426
4432
|
};
|
|
4427
4433
|
class Toggle extends React__namespace.Component {
|
|
4428
4434
|
constructor() {
|
|
@@ -4487,7 +4493,7 @@
|
|
|
4487
4493
|
isActive, bubbleEvent, onEnter, parentRef, getMenuRef,
|
|
4488
4494
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
4489
4495
|
id, type } = _a, props = __rest$1(_a, ["className", "children", "isOpen", "isDisabled", "isPlain", "isText", "isPrimary", "isSplitButton", "toggleVariant", "onToggle", 'aria-haspopup', "isActive", "bubbleEvent", "onEnter", "parentRef", "getMenuRef", "id", "type"]);
|
|
4490
|
-
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ?
|
|
4496
|
+
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? styles$8.dropdownToggleButton : toggleClass || styles$8.dropdownToggle, isActive && styles$8.modifiers.active, isPlain && styles$8.modifiers.plain, isText && styles$8.modifiers.text, isPrimary && styles$8.modifiers.primary, buttonVariantStyles[toggleVariant], className), type: type || 'button', onClick: event => onToggle(!isOpen, event), "aria-expanded": isOpen, "aria-haspopup": ariaHasPopup, onKeyDown: event => this.onKeyDown(event), disabled: isDisabled }), children))));
|
|
4491
4497
|
}
|
|
4492
4498
|
}
|
|
4493
4499
|
Toggle.displayName = 'Toggle';
|
|
@@ -4505,7 +4511,8 @@
|
|
|
4505
4511
|
bubbleEvent: false
|
|
4506
4512
|
};
|
|
4507
4513
|
|
|
4508
|
-
|
|
4514
|
+
Promise.resolve().then(function () { return badge; });
|
|
4515
|
+
var badgeStyles = {
|
|
4509
4516
|
"badge": "pf-c-badge",
|
|
4510
4517
|
"modifiers": {
|
|
4511
4518
|
"read": "pf-m-read",
|
|
@@ -4531,7 +4538,7 @@
|
|
|
4531
4538
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4532
4539
|
children = null, className = '', isOpen = false, 'aria-label': ariaLabel = 'Actions', parentRef = null, getMenuRef = null, isActive = false, isPlain = false, isDisabled = false, bubbleEvent = false, onToggle = () => undefined,
|
|
4533
4540
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4534
|
-
ref } = _a, // Types of Ref are different for React.
|
|
4541
|
+
ref } = _a, // Types of Ref are different for React.FunctionComponent vs React.Component
|
|
4535
4542
|
props = __rest$1(_a, ["id", "children", "className", "isOpen", 'aria-label', "parentRef", "getMenuRef", "isActive", "isPlain", "isDisabled", "bubbleEvent", "onToggle", "ref"]);
|
|
4536
4543
|
return (React__namespace.createElement(Toggle, Object.assign({ id: id, className: className, isOpen: isOpen, "aria-label": ariaLabel, parentRef: parentRef, getMenuRef: getMenuRef, isActive: isActive, isPlain: isPlain, isDisabled: isDisabled, onToggle: onToggle, bubbleEvent: bubbleEvent }, props),
|
|
4537
4544
|
React__namespace.createElement(EllipsisVIcon$1, null)));
|
|
@@ -4703,7 +4710,7 @@
|
|
|
4703
4710
|
if (customIconDimensions) {
|
|
4704
4711
|
customIconStyle.backgroundSize = customIconDimensions;
|
|
4705
4712
|
}
|
|
4706
|
-
return (React__namespace.createElement("input", Object.assign({}, props, { onFocus: this.onFocus, onBlur: this.onBlur, className: css(
|
|
4713
|
+
return (React__namespace.createElement("input", Object.assign({}, props, { onFocus: this.onFocus, onBlur: this.onBlur, className: css(formStyles$1.formControl, isIconSprite && formStyles$1.modifiers.iconSprite, validated === ValidatedOptions.success && formStyles$1.modifiers.success, validated === ValidatedOptions.warning && formStyles$1.modifiers.warning, ((iconVariant && iconVariant !== 'search') || customIconUrl) && formStyles$1.modifiers.icon, iconVariant && formStyles$1.modifiers[iconVariant], className), onChange: this.handleChange, type: type, value: this.sanitizeInputValue(value), "aria-invalid": props['aria-invalid'] ? props['aria-invalid'] : validated === ValidatedOptions.error, required: isRequired, disabled: isDisabled, readOnly: isReadOnly, ref: innerRef || this.inputRef }, ((customIconUrl || customIconDimensions) && { style: customIconStyle }), getOUIAProps(TextInput.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))));
|
|
4707
4714
|
}
|
|
4708
4715
|
}
|
|
4709
4716
|
TextInputBase.displayName = 'TextInputBase';
|
|
@@ -4723,7 +4730,8 @@
|
|
|
4723
4730
|
const TextInput = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TextInputBase, Object.assign({}, props, { innerRef: ref }))));
|
|
4724
4731
|
TextInput.displayName = 'TextInput';
|
|
4725
4732
|
|
|
4726
|
-
|
|
4733
|
+
Promise.resolve().then(function () { return select; });
|
|
4734
|
+
var styles$6 = {
|
|
4727
4735
|
"check": "pf-c-check",
|
|
4728
4736
|
"checkLabel": "pf-c-check__label",
|
|
4729
4737
|
"chipGroup": "pf-c-chip-group",
|
|
@@ -4794,7 +4802,8 @@
|
|
|
4794
4802
|
|
|
4795
4803
|
var TimesCircleIcon$1 = TimesCircleIcon;
|
|
4796
4804
|
|
|
4797
|
-
|
|
4805
|
+
Promise.resolve().then(function () { return form; });
|
|
4806
|
+
var formStyles = {
|
|
4798
4807
|
"form": "pf-c-form",
|
|
4799
4808
|
"formActions": "pf-c-form__actions",
|
|
4800
4809
|
"formFieldGroup": "pf-c-form__field-group",
|
|
@@ -4847,7 +4856,8 @@
|
|
|
4847
4856
|
}
|
|
4848
4857
|
};
|
|
4849
4858
|
|
|
4850
|
-
|
|
4859
|
+
Promise.resolve().then(function () { return check; });
|
|
4860
|
+
var checkStyles = {
|
|
4851
4861
|
"check": "pf-c-check",
|
|
4852
4862
|
"checkBody": "pf-c-check__body",
|
|
4853
4863
|
"checkDescription": "pf-c-check__description",
|
|
@@ -4967,16 +4977,16 @@
|
|
|
4967
4977
|
console.error('Please provide an id to use the favorites feature.');
|
|
4968
4978
|
}
|
|
4969
4979
|
const generatedId = id || getUniqueId('select-option');
|
|
4970
|
-
const favoriteButton = (onFavorite) => (React__namespace.createElement("button", { className: css(
|
|
4980
|
+
const favoriteButton = (onFavorite) => (React__namespace.createElement("button", { className: css(styles$6.selectMenuItem, styles$6.modifiers.action, styles$6.modifiers.favoriteAction), "aria-label": isFavorite ? ariaIsFavoriteLabel : ariaIsNotFavoriteLabel, onClick: () => {
|
|
4971
4981
|
onFavorite(generatedId.replace('favorite-', ''), isFavorite);
|
|
4972
4982
|
}, onKeyDown: event => {
|
|
4973
4983
|
this.onKeyDown(event, 1, () => onFavorite(generatedId.replace('favorite-', ''), isFavorite));
|
|
4974
4984
|
}, ref: this.favoriteRef },
|
|
4975
|
-
React__namespace.createElement("span", { className: css(
|
|
4985
|
+
React__namespace.createElement("span", { className: css(styles$6.selectMenuItemActionIcon) },
|
|
4976
4986
|
React__namespace.createElement(StarIcon$1, null))));
|
|
4977
|
-
const itemDisplay = itemCount ? (React__namespace.createElement("span", { className: css(
|
|
4978
|
-
React__namespace.createElement("span", { className: css(
|
|
4979
|
-
React__namespace.createElement("span", { className: css(
|
|
4987
|
+
const itemDisplay = itemCount ? (React__namespace.createElement("span", { className: css(styles$6.selectMenuItemRow) },
|
|
4988
|
+
React__namespace.createElement("span", { className: css(styles$6.selectMenuItemText) }, children || (value && value.toString && value.toString())),
|
|
4989
|
+
React__namespace.createElement("span", { className: css(styles$6.selectMenuItemCount) }, itemCount))) : (children || value.toString());
|
|
4980
4990
|
const onViewMoreClick = (event) => {
|
|
4981
4991
|
// Set the index for the next item to focus after view more clicked, then call view more callback
|
|
4982
4992
|
setViewMoreNextIndex();
|
|
@@ -4984,26 +4994,26 @@
|
|
|
4984
4994
|
};
|
|
4985
4995
|
const renderOption = (onSelect, onClose, variant, inputIdPrefix, onFavorite, shouldResetOnSelect) => {
|
|
4986
4996
|
if (variant !== SelectVariant.checkbox && isLoading && isGrouped) {
|
|
4987
|
-
return (React__namespace.createElement("div", { role: "presentation", className: css(
|
|
4997
|
+
return (React__namespace.createElement("div", { role: "presentation", className: css(styles$6.selectListItem, isLoading && styles$6.modifiers.loading, className) }, children));
|
|
4988
4998
|
}
|
|
4989
4999
|
else if (variant !== SelectVariant.checkbox && isLoad && isGrouped) {
|
|
4990
5000
|
return (React__namespace.createElement("div", null,
|
|
4991
|
-
React__namespace.createElement("button", Object.assign({}, props, { role: "presentation", className: css(
|
|
5001
|
+
React__namespace.createElement("button", Object.assign({}, props, { role: "presentation", className: css(styles$6.selectMenuItem, styles$6.modifiers.load, className), onClick: (event) => {
|
|
4992
5002
|
onViewMoreClick(event);
|
|
4993
5003
|
event.stopPropagation();
|
|
4994
5004
|
}, ref: this.ref, type: "button" }), children || value.toString())));
|
|
4995
5005
|
}
|
|
4996
5006
|
else if (variant !== SelectVariant.checkbox) {
|
|
4997
|
-
return (React__namespace.createElement("li", { id: generatedId, role: "presentation", className: css(isLoading &&
|
|
5007
|
+
return (React__namespace.createElement("li", { id: generatedId, role: "presentation", className: css(isLoading && styles$6.selectListItem, !isLoading && styles$6.selectMenuWrapper, isFavorite && styles$6.modifiers.favorite, isFocused && styles$6.modifiers.focus, isLoading && styles$6.modifiers.loading), ref: this.liRef },
|
|
4998
5008
|
isLoading && children,
|
|
4999
|
-
isLoad && !isGrouped && (React__namespace.createElement("button", Object.assign({}, props, { className: css(
|
|
5009
|
+
isLoad && !isGrouped && (React__namespace.createElement("button", Object.assign({}, props, { className: css(styles$6.selectMenuItem, styles$6.modifiers.load, className), onClick: (event) => {
|
|
5000
5010
|
onViewMoreClick(event);
|
|
5001
5011
|
event.stopPropagation();
|
|
5002
5012
|
}, ref: this.ref, onKeyDown: (event) => {
|
|
5003
5013
|
this.onKeyDown(event, 0);
|
|
5004
5014
|
}, type: "button" }), itemDisplay)),
|
|
5005
5015
|
!isLoading && !isLoad && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5006
|
-
React__namespace.createElement(Component, Object.assign({}, props, { className: css(
|
|
5016
|
+
React__namespace.createElement(Component, Object.assign({}, props, { className: css(styles$6.selectMenuItem, isLoad && styles$6.modifiers.load, isSelected && styles$6.modifiers.selected, isDisabled && styles$6.modifiers.disabled, description && styles$6.modifiers.description, isFavorite !== null && styles$6.modifiers.link, className), onClick: (event) => {
|
|
5007
5017
|
if (!isDisabled) {
|
|
5008
5018
|
onClick(event);
|
|
5009
5019
|
onSelect(event, value, isPlaceholder);
|
|
@@ -5013,19 +5023,19 @@
|
|
|
5013
5023
|
this.onKeyDown(event, 0);
|
|
5014
5024
|
}, type: "button" }),
|
|
5015
5025
|
description && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5016
|
-
React__namespace.createElement("span", { className: css(
|
|
5026
|
+
React__namespace.createElement("span", { className: css(styles$6.selectMenuItemMain) },
|
|
5017
5027
|
itemDisplay,
|
|
5018
|
-
isSelected && (React__namespace.createElement("span", { className: css(
|
|
5028
|
+
isSelected && (React__namespace.createElement("span", { className: css(styles$6.selectMenuItemIcon) },
|
|
5019
5029
|
React__namespace.createElement(CheckIcon$1, { "aria-hidden": true })))),
|
|
5020
|
-
React__namespace.createElement("span", { className: css(
|
|
5030
|
+
React__namespace.createElement("span", { className: css(styles$6.selectMenuItemDescription) }, description))),
|
|
5021
5031
|
!description && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5022
5032
|
itemDisplay,
|
|
5023
|
-
isSelected && (React__namespace.createElement("span", { className: css(
|
|
5033
|
+
isSelected && (React__namespace.createElement("span", { className: css(styles$6.selectMenuItemIcon) },
|
|
5024
5034
|
React__namespace.createElement(CheckIcon$1, { "aria-hidden": true })))))),
|
|
5025
5035
|
isFavorite !== null && id && favoriteButton(onFavorite)))));
|
|
5026
5036
|
}
|
|
5027
5037
|
else if (variant === SelectVariant.checkbox && isLoad) {
|
|
5028
|
-
return (React__namespace.createElement("button", { className: css(
|
|
5038
|
+
return (React__namespace.createElement("button", { className: css(styles$6.selectMenuItem, styles$6.modifiers.load, isFocused && styles$6.modifiers.focus, className), onKeyDown: (event) => {
|
|
5029
5039
|
this.onKeyDown(event, 0, undefined, true);
|
|
5030
5040
|
}, onClick: (event) => {
|
|
5031
5041
|
onViewMoreClick(event);
|
|
@@ -5033,24 +5043,24 @@
|
|
|
5033
5043
|
}, ref: this.ref }, children || (value && value.toString && value.toString())));
|
|
5034
5044
|
}
|
|
5035
5045
|
else if (variant === SelectVariant.checkbox && isLoading) {
|
|
5036
|
-
return (React__namespace.createElement("div", { className: css(
|
|
5046
|
+
return (React__namespace.createElement("div", { className: css(styles$6.selectListItem, isLoading && styles$6.modifiers.loading, className) }, children));
|
|
5037
5047
|
}
|
|
5038
5048
|
else if (variant === SelectVariant.checkbox && !isNoResultsOption && !isLoading && !isLoad) {
|
|
5039
|
-
return (React__namespace.createElement("label", Object.assign({}, props, { className: css(
|
|
5049
|
+
return (React__namespace.createElement("label", Object.assign({}, props, { className: css(checkStyles.check, styles$6.selectMenuItem, isDisabled && styles$6.modifiers.disabled, description && styles$6.modifiers.description, className), onKeyDown: (event) => {
|
|
5040
5050
|
this.onKeyDown(event, 0, undefined, true);
|
|
5041
5051
|
} }),
|
|
5042
|
-
React__namespace.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css(
|
|
5052
|
+
React__namespace.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css(checkStyles.checkInput), type: "checkbox", onChange: event => {
|
|
5043
5053
|
if (!isDisabled) {
|
|
5044
5054
|
onClick(event);
|
|
5045
5055
|
onSelect(event, value);
|
|
5046
5056
|
}
|
|
5047
5057
|
}, ref: this.ref, checked: isChecked || false, disabled: isDisabled }),
|
|
5048
|
-
React__namespace.createElement("span", { className: css(
|
|
5049
|
-
description && React__namespace.createElement("div", { className: css(
|
|
5058
|
+
React__namespace.createElement("span", { className: css(checkStyles.checkLabel, isDisabled && styles$6.modifiers.disabled) }, itemDisplay),
|
|
5059
|
+
description && React__namespace.createElement("div", { className: css(checkStyles.checkDescription) }, description)));
|
|
5050
5060
|
}
|
|
5051
5061
|
else if (variant === SelectVariant.checkbox && isNoResultsOption && !isLoading && !isLoad) {
|
|
5052
5062
|
return (React__namespace.createElement("div", null,
|
|
5053
|
-
React__namespace.createElement(Component, Object.assign({}, props, { className: css(
|
|
5063
|
+
React__namespace.createElement(Component, Object.assign({}, props, { className: css(styles$6.selectMenuItem, isSelected && styles$6.modifiers.selected, isDisabled && styles$6.modifiers.disabled, className), role: "option", "aria-selected": isSelected || null, ref: this.ref, onKeyDown: (event) => {
|
|
5054
5064
|
this.onKeyDown(event, 0, undefined, true);
|
|
5055
5065
|
}, type: "button" }), itemDisplay)));
|
|
5056
5066
|
}
|
|
@@ -5082,8 +5092,8 @@
|
|
|
5082
5092
|
|
|
5083
5093
|
const SelectGroup = (_a) => {
|
|
5084
5094
|
var { children = [], className = '', label = '', titleId = '' } = _a, props = __rest$1(_a, ["children", "className", "label", "titleId"]);
|
|
5085
|
-
return (React__namespace.createElement(SelectConsumer, null, ({ variant }) => (React__namespace.createElement("div", Object.assign({}, props, { className: css(
|
|
5086
|
-
React__namespace.createElement("div", { className: css(
|
|
5095
|
+
return (React__namespace.createElement(SelectConsumer, null, ({ variant }) => (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$6.selectMenuGroup, className) }),
|
|
5096
|
+
React__namespace.createElement("div", { className: css(styles$6.selectMenuGroupTitle), id: titleId, "aria-hidden": true }, label),
|
|
5087
5097
|
variant === SelectVariant.checkbox ? children : React__namespace.createElement("ul", { role: "listbox" }, children)))));
|
|
5088
5098
|
};
|
|
5089
5099
|
SelectGroup.displayName = 'SelectGroup';
|
|
@@ -5165,7 +5175,7 @@
|
|
|
5165
5175
|
}
|
|
5166
5176
|
return React__namespace.cloneElement(group, {
|
|
5167
5177
|
titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
|
|
5168
|
-
children: group.props.children ? (React__namespace.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: css(
|
|
5178
|
+
children: group.props.children ? (React__namespace.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: css(styles$6.selectMenuFieldset) }, React__namespace.Children.map(group.props.children, (option) => option.type === Divider
|
|
5169
5179
|
? option
|
|
5170
5180
|
: React__namespace.cloneElement(option, {
|
|
5171
5181
|
isChecked: this.checkForValue(option.props.value, checked),
|
|
@@ -5192,7 +5202,7 @@
|
|
|
5192
5202
|
const _a = this.props, { children, isCustomContent, className, isExpanded, openedOnEnter, selected, checked, isGrouped, position, sendRef, keyHandler, maxHeight, noResultsFoundText, createText, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, hasInlineFilter, innerRef, footer, footerRef, isLastOptionBeforeFooter } = _a, props = __rest$1(_a, ["children", "isCustomContent", "className", "isExpanded", "openedOnEnter", "selected", "checked", "isGrouped", "position", "sendRef", "keyHandler", "maxHeight", "noResultsFoundText", "createText", 'aria-label', 'aria-labelledby', "hasInlineFilter", "innerRef", "footer", "footerRef", "isLastOptionBeforeFooter"]);
|
|
5193
5203
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5194
5204
|
let Component = 'div';
|
|
5195
|
-
const variantProps = Object.assign({ ref: innerRef, className: css(!footer ?
|
|
5205
|
+
const variantProps = Object.assign({ ref: innerRef, className: css(!footer ? styles$6.selectMenu : 'pf-c-select__menu-list', position === SelectPosition.right && styles$6.modifiers.alignRight, className) }, (maxHeight && { style: { maxHeight, overflow: 'auto' } }));
|
|
5196
5206
|
const extendedChildren = () => variant === SelectVariant.checkbox
|
|
5197
5207
|
? this.extendCheckboxChildren(children)
|
|
5198
5208
|
: this.extendChildren(inputIdPrefix);
|
|
@@ -5201,10 +5211,10 @@
|
|
|
5201
5211
|
}
|
|
5202
5212
|
else if (hasInlineFilter) {
|
|
5203
5213
|
if (React__namespace.Children.count(children) === 0) {
|
|
5204
|
-
variantProps.children = React__namespace.createElement("fieldset", { className: css(
|
|
5214
|
+
variantProps.children = React__namespace.createElement("fieldset", { className: css(styles$6.selectMenuFieldset) });
|
|
5205
5215
|
}
|
|
5206
5216
|
else {
|
|
5207
|
-
variantProps.children = (React__namespace.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: css(
|
|
5217
|
+
variantProps.children = (React__namespace.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: css(formStyles.formFieldset) },
|
|
5208
5218
|
children.shift(),
|
|
5209
5219
|
extendedChildren()));
|
|
5210
5220
|
}
|
|
@@ -5220,7 +5230,7 @@
|
|
|
5220
5230
|
}
|
|
5221
5231
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5222
5232
|
React__namespace.createElement(Component, Object.assign({}, variantProps, props)),
|
|
5223
|
-
footer && (React__namespace.createElement("div", { className: css(
|
|
5233
|
+
footer && (React__namespace.createElement("div", { className: css(styles$6.selectMenuFooter), ref: footerRef }, footer))));
|
|
5224
5234
|
}
|
|
5225
5235
|
render() {
|
|
5226
5236
|
return React__namespace.createElement(SelectConsumer, null, context => this.renderSelectMenu(context));
|
|
@@ -5247,10 +5257,11 @@
|
|
|
5247
5257
|
constructor(props) {
|
|
5248
5258
|
super(props);
|
|
5249
5259
|
this.onDocClick = (event) => {
|
|
5250
|
-
const { parentRef, menuRef, isOpen, onToggle, onClose } = this.props;
|
|
5260
|
+
const { parentRef, menuRef, footerRef, isOpen, onToggle, onClose } = this.props;
|
|
5251
5261
|
const clickedOnToggle = parentRef && parentRef.current && parentRef.current.contains(event.target);
|
|
5252
5262
|
const clickedWithinMenu = menuRef && menuRef.current && menuRef.current.contains && menuRef.current.contains(event.target);
|
|
5253
|
-
|
|
5263
|
+
const clickedWithinFooter = footerRef && footerRef.current && footerRef.current.contains && footerRef.current.contains(event.target);
|
|
5264
|
+
if (isOpen && !(clickedOnToggle || clickedWithinMenu || clickedWithinFooter)) {
|
|
5254
5265
|
onToggle(false, event);
|
|
5255
5266
|
onClose();
|
|
5256
5267
|
}
|
|
@@ -5383,7 +5394,7 @@
|
|
|
5383
5394
|
'aria-haspopup': (variant !== SelectVariant.checkbox && 'listbox') || null
|
|
5384
5395
|
};
|
|
5385
5396
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5386
|
-
!isTypeahead && (React__namespace.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: css(
|
|
5397
|
+
!isTypeahead && (React__namespace.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: css(styles$6.selectToggle, hasPlaceholderStyle && styles$6.modifiers.placeholder, isDisabled && styles$6.modifiers.disabled, isPlain && styles$6.modifiers.plain, isActive && styles$6.modifiers.active, className), "aria-label": ariaLabel,
|
|
5387
5398
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5388
5399
|
onClick: event => {
|
|
5389
5400
|
onToggle(!isOpen, event);
|
|
@@ -5392,9 +5403,9 @@
|
|
|
5392
5403
|
}
|
|
5393
5404
|
}, onKeyDown: this.onKeyDown, disabled: isDisabled }),
|
|
5394
5405
|
children,
|
|
5395
|
-
React__namespace.createElement("span", { className: css(
|
|
5406
|
+
React__namespace.createElement("span", { className: css(styles$6.selectToggleArrow) },
|
|
5396
5407
|
React__namespace.createElement(CaretDownIcon$1, null)))),
|
|
5397
|
-
isTypeahead && (React__namespace.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css(
|
|
5408
|
+
isTypeahead && (React__namespace.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css(styles$6.selectToggle, hasPlaceholderStyle && styles$6.modifiers.placeholder, isDisabled && styles$6.modifiers.disabled, isPlain && styles$6.modifiers.plain, isTypeahead && styles$6.modifiers.typeahead, className),
|
|
5398
5409
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5399
5410
|
onClick: event => {
|
|
5400
5411
|
if (!isDisabled) {
|
|
@@ -5405,7 +5416,7 @@
|
|
|
5405
5416
|
}
|
|
5406
5417
|
}, onKeyDown: this.onKeyDown }),
|
|
5407
5418
|
children,
|
|
5408
|
-
React__namespace.createElement("button", Object.assign({}, toggleProps, { type: type, className: css(
|
|
5419
|
+
React__namespace.createElement("button", Object.assign({}, toggleProps, { type: type, className: css(buttonStyles.button, styles$6.selectToggleButton, styles$6.modifiers.plain), "aria-label": ariaLabel, onClick: event => {
|
|
5409
5420
|
onToggle(!isOpen, event);
|
|
5410
5421
|
if (isOpen) {
|
|
5411
5422
|
onClose();
|
|
@@ -5414,7 +5425,7 @@
|
|
|
5414
5425
|
} }, ((variant === SelectVariant.typeahead || variant === SelectVariant.typeaheadMulti) && {
|
|
5415
5426
|
tabIndex: -1
|
|
5416
5427
|
}), { disabled: isDisabled }),
|
|
5417
|
-
React__namespace.createElement(CaretDownIcon$1, { className: css(
|
|
5428
|
+
React__namespace.createElement(CaretDownIcon$1, { className: css(styles$6.selectToggleArrow) }))))));
|
|
5418
5429
|
}
|
|
5419
5430
|
}
|
|
5420
5431
|
SelectToggle.displayName = 'SelectToggle';
|
|
@@ -5437,7 +5448,8 @@
|
|
|
5437
5448
|
onClickTypeaheadToggleButton: () => { }
|
|
5438
5449
|
};
|
|
5439
5450
|
|
|
5440
|
-
|
|
5451
|
+
Promise.resolve().then(function () { return chipGroup; });
|
|
5452
|
+
var styles$5 = {
|
|
5441
5453
|
"chipGroup": "pf-c-chip-group",
|
|
5442
5454
|
"chipGroupClose": "pf-c-chip-group__close",
|
|
5443
5455
|
"chipGroupLabel": "pf-c-chip-group__label",
|
|
@@ -5449,7 +5461,8 @@
|
|
|
5449
5461
|
}
|
|
5450
5462
|
};
|
|
5451
5463
|
|
|
5452
|
-
|
|
5464
|
+
Promise.resolve().then(function () { return chip; });
|
|
5465
|
+
var styles$4 = {
|
|
5453
5466
|
"badge": "pf-c-badge",
|
|
5454
5467
|
"button": "pf-c-button",
|
|
5455
5468
|
"chip": "pf-c-chip",
|
|
@@ -5468,8 +5481,8 @@
|
|
|
5468
5481
|
this.renderOverflowChip = () => {
|
|
5469
5482
|
const { children, className, onClick, ouiaId } = this.props;
|
|
5470
5483
|
const Component = this.props.component;
|
|
5471
|
-
return (React__namespace.createElement(Component, Object.assign({ onClick: onClick, className: css(
|
|
5472
|
-
React__namespace.createElement("span", { className: css(
|
|
5484
|
+
return (React__namespace.createElement(Component, Object.assign({ onClick: onClick, className: css(styles$4.chip, styles$4.modifiers.overflow, className) }, (this.props.component === 'button' ? { type: 'button' } : {}), getOUIAProps('OverflowChip', ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
5485
|
+
React__namespace.createElement("span", { className: css(styles$4.chipText) }, children)));
|
|
5473
5486
|
};
|
|
5474
5487
|
this.renderChip = (randomId) => {
|
|
5475
5488
|
const { children, tooltipPosition } = this.props;
|
|
@@ -5491,8 +5504,8 @@
|
|
|
5491
5504
|
renderInnerChip(id) {
|
|
5492
5505
|
const { children, className, onClick, closeBtnAriaLabel, isReadOnly, component, ouiaId } = this.props;
|
|
5493
5506
|
const Component = component;
|
|
5494
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(
|
|
5495
|
-
React__namespace.createElement("span", { ref: this.span, className: css(
|
|
5507
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$4.chip, className) }, (this.state.isTooltipVisible && { tabIndex: 0 }), getOUIAProps(Chip.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
5508
|
+
React__namespace.createElement("span", { ref: this.span, className: css(styles$4.chipText), id: id }, children),
|
|
5496
5509
|
!isReadOnly && (React__namespace.createElement(Button, { onClick: onClick, variant: "plain", "aria-label": closeBtnAriaLabel, id: `remove_${id}`, "aria-labelledby": `remove_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
5497
5510
|
React__namespace.createElement(TimesIcon$1, { "aria-hidden": "true" })))));
|
|
5498
5511
|
}
|
|
@@ -5537,8 +5550,8 @@
|
|
|
5537
5550
|
const { categoryName, tooltipPosition } = this.props;
|
|
5538
5551
|
const { isTooltipVisible } = this.state;
|
|
5539
5552
|
return isTooltipVisible ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: categoryName },
|
|
5540
|
-
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(
|
|
5541
|
-
React__namespace.createElement("span", { id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(
|
|
5553
|
+
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$5.chipGroupLabel) },
|
|
5554
|
+
React__namespace.createElement("span", { id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(styles$5.chipGroupLabel), id: id }, categoryName));
|
|
5542
5555
|
}
|
|
5543
5556
|
render() {
|
|
5544
5557
|
const _a = this.props, { categoryName, children, className, isClosable, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, onOverflowChipClick, numChips, expandedText, collapsedText, ouiaId,
|
|
@@ -5555,17 +5568,17 @@
|
|
|
5555
5568
|
const chipArray = !isOpen
|
|
5556
5569
|
? React__namespace.Children.toArray(children).slice(0, numChips)
|
|
5557
5570
|
: React__namespace.Children.toArray(children);
|
|
5558
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(
|
|
5559
|
-
React__namespace.createElement("div", { className: css(
|
|
5571
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$5.chipGroup, className, categoryName && styles$5.modifiers.category), role: "group" }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), getOUIAProps(ChipGroup.displayName, ouiaId)),
|
|
5572
|
+
React__namespace.createElement("div", { className: css(styles$5.chipGroupMain) },
|
|
5560
5573
|
categoryName && this.renderLabel(id),
|
|
5561
|
-
React__namespace.createElement("ul", Object.assign({ className: css(
|
|
5562
|
-
chipArray.map((child, i) => (React__namespace.createElement("li", { className: css(
|
|
5563
|
-
numChildren > numChips && (React__namespace.createElement("li", { className: css(
|
|
5574
|
+
React__namespace.createElement("ul", Object.assign({ className: css(styles$5.chipGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
|
|
5575
|
+
chipArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$5.chipGroupListItem), key: i }, child))),
|
|
5576
|
+
numChildren > numChips && (React__namespace.createElement("li", { className: css(styles$5.chipGroupListItem) },
|
|
5564
5577
|
React__namespace.createElement(Chip, { isOverflowChip: true, onClick: event => {
|
|
5565
5578
|
this.toggleCollapse();
|
|
5566
5579
|
onOverflowChipClick(event);
|
|
5567
5580
|
}, component: "button" }, isOpen ? expandedText : collapsedTextResult))))),
|
|
5568
|
-
isClosable && (React__namespace.createElement("div", { className: css(
|
|
5581
|
+
isClosable && (React__namespace.createElement("div", { className: css(styles$5.chipGroupClose) },
|
|
5569
5582
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
5570
5583
|
React__namespace.createElement(TimesCircleIcon$1, { "aria-hidden": "true" }))))));
|
|
5571
5584
|
};
|
|
@@ -6249,7 +6262,7 @@
|
|
|
6249
6262
|
}
|
|
6250
6263
|
}
|
|
6251
6264
|
const hasOnClear = onClear !== Select.defaultProps.onClear;
|
|
6252
|
-
const clearBtn = (React__namespace.createElement("button", { className: css(
|
|
6265
|
+
const clearBtn = (React__namespace.createElement("button", { className: css(buttonStyles.button, buttonStyles.modifiers.plain, styles$6.selectToggleClear), onClick: e => {
|
|
6253
6266
|
this.clearSelection(e);
|
|
6254
6267
|
onClear(e);
|
|
6255
6268
|
e.stopPropagation();
|
|
@@ -6266,8 +6279,8 @@
|
|
|
6266
6279
|
}
|
|
6267
6280
|
if (hasInlineFilter) {
|
|
6268
6281
|
const filterBox = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6269
|
-
React__namespace.createElement("div", { key: "inline-filter", className: css(
|
|
6270
|
-
React__namespace.createElement("input", { key: "inline-filter-input", type: "search", className: css(
|
|
6282
|
+
React__namespace.createElement("div", { key: "inline-filter", className: css(styles$6.selectMenuSearch) },
|
|
6283
|
+
React__namespace.createElement("input", { key: "inline-filter-input", type: "search", className: css(formStyles$1.formControl, formStyles$1.modifiers.search), onChange: this.onChange, placeholder: inlineFilterPlaceholderText, onKeyDown: event => {
|
|
6271
6284
|
if (event.key === KeyTypes.ArrowUp) {
|
|
6272
6285
|
this.handleMenuKeys(0, 0, 'up');
|
|
6273
6286
|
event.preventDefault();
|
|
@@ -6369,46 +6382,46 @@
|
|
|
6369
6382
|
}
|
|
6370
6383
|
}
|
|
6371
6384
|
const innerMenu = (React__namespace.createElement(SelectMenu, Object.assign({}, props, { isGrouped: isGrouped, selected: selections }, variantProps, { openedOnEnter: openedOnEnter, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, sendRef: this.sendRef, keyHandler: this.handleMenuKeys, maxHeight: maxHeight, ref: this.menuComponentRef, footer: footer, footerRef: this.footerRef, isLastOptionBeforeFooter: this.isLastOptionBeforeFooter }), variantChildren));
|
|
6372
|
-
const menuContainer = footer ? React__namespace.createElement("div", { className: css(
|
|
6385
|
+
const menuContainer = footer ? React__namespace.createElement("div", { className: css(styles$6.selectMenu) },
|
|
6373
6386
|
" ",
|
|
6374
6387
|
innerMenu,
|
|
6375
6388
|
" ") : innerMenu;
|
|
6376
|
-
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(
|
|
6377
|
-
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(
|
|
6389
|
+
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$6.select, isOpen && styles$6.modifiers.expanded, validated === ValidatedOptions.success && styles$6.modifiers.success, validated === ValidatedOptions.warning && styles$6.modifiers.warning, validated === ValidatedOptions.error && styles$6.modifiers.invalid, direction === SelectDirection.up && styles$6.modifiers.top, className) }, (width && { style: { width } }), (validated !== ValidatedOptions.default && { 'aria-describedby': ariaDescribedby }), (validated !== ValidatedOptions.default && { 'aria-invalid': ariaInvalid })), isOpen && menuContainer));
|
|
6390
|
+
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$6.select, isOpen && styles$6.modifiers.expanded, validated === ValidatedOptions.success && styles$6.modifiers.success, validated === ValidatedOptions.warning && styles$6.modifiers.warning, validated === ValidatedOptions.error && styles$6.modifiers.invalid, direction === SelectDirection.up && styles$6.modifiers.top, className), ref: this.parentRef }, getOUIAProps(Select.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), (width && { style: { width } }), (validated !== ValidatedOptions.default && { 'aria-describedby': ariaDescribedby }), (validated !== ValidatedOptions.default && { 'aria-invalid': ariaInvalid })),
|
|
6378
6391
|
React__namespace.createElement(SelectToggle, Object.assign({ id: selectToggleId, parentRef: this.parentRef, menuRef: this.menuComponentRef }, (footer && { footerRef: this.footerRef }), { isOpen: isOpen, isPlain: isPlain, hasPlaceholderStyle: hasPlaceholderStyle && (!selections.length || selections[0] === null || isSelectedPlaceholder), onToggle: this.onToggle, onEnter: this.onEnter, onClose: this.onClose, variant: variant, "aria-labelledby": `${ariaLabelledBy || ''} ${selectToggleId}`, "aria-label": toggleAriaLabel, handleTypeaheadKeys: this.handleTypeaheadKeys, moveFocusToLastMenuItem: this.moveFocusToLastMenuItem, isDisabled: isDisabled, hasClearButton: hasOnClear, hasFooter: footer !== undefined, onClickTypeaheadToggleButton: this.onClickTypeaheadToggleButton }),
|
|
6379
|
-
customContent && (React__namespace.createElement("div", { className: css(
|
|
6380
|
-
toggleIcon && React__namespace.createElement("span", { className: css(
|
|
6381
|
-
React__namespace.createElement("span", { className: css(
|
|
6392
|
+
customContent && (React__namespace.createElement("div", { className: css(styles$6.selectToggleWrapper) },
|
|
6393
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$6.selectToggleIcon) }, toggleIcon),
|
|
6394
|
+
React__namespace.createElement("span", { className: css(styles$6.selectToggleText) }, placeholderText))),
|
|
6382
6395
|
variant === SelectVariant.single && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6383
|
-
React__namespace.createElement("div", { className: css(
|
|
6384
|
-
toggleIcon && React__namespace.createElement("span", { className: css(
|
|
6385
|
-
React__namespace.createElement("span", { className: css(
|
|
6396
|
+
React__namespace.createElement("div", { className: css(styles$6.selectToggleWrapper) },
|
|
6397
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$6.selectToggleIcon) }, toggleIcon),
|
|
6398
|
+
React__namespace.createElement("span", { className: css(styles$6.selectToggleText) }, this.getDisplay(selections[0], 'node') || placeholderText || childPlaceholderText)),
|
|
6386
6399
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
6387
6400
|
variant === SelectVariant.checkbox && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6388
|
-
React__namespace.createElement("div", { className: css(
|
|
6389
|
-
toggleIcon && React__namespace.createElement("span", { className: css(
|
|
6390
|
-
React__namespace.createElement("span", { className: css(
|
|
6391
|
-
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React__namespace.createElement("div", { className: css(
|
|
6392
|
-
React__namespace.createElement("span", { className: css(
|
|
6401
|
+
React__namespace.createElement("div", { className: css(styles$6.selectToggleWrapper) },
|
|
6402
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$6.selectToggleIcon) }, toggleIcon),
|
|
6403
|
+
React__namespace.createElement("span", { className: css(styles$6.selectToggleText) }, placeholderText),
|
|
6404
|
+
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React__namespace.createElement("div", { className: css(styles$6.selectToggleBadge) },
|
|
6405
|
+
React__namespace.createElement("span", { className: css(badgeStyles.badge, badgeStyles.modifiers.read) }, this.generateSelectedBadge())))),
|
|
6393
6406
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
6394
6407
|
variant === SelectVariant.typeahead && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6395
|
-
React__namespace.createElement("div", { className: css(
|
|
6396
|
-
toggleIcon && React__namespace.createElement("span", { className: css(
|
|
6397
|
-
React__namespace.createElement("input", { className: css(
|
|
6408
|
+
React__namespace.createElement("div", { className: css(styles$6.selectToggleWrapper) },
|
|
6409
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$6.selectToggleIcon) }, toggleIcon),
|
|
6410
|
+
React__namespace.createElement("input", { className: css(formStyles$1.formControl, styles$6.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-typeahead`, "aria-label": typeAheadAriaLabel, placeholder: placeholderText, value: typeaheadInputValue !== null
|
|
6398
6411
|
? typeaheadInputValue
|
|
6399
6412
|
: this.getDisplay(selections[0], 'text') || '', type: "text", onClick: this.onClick, onChange: this.onChange, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef })),
|
|
6400
6413
|
hasOnClear && (selections[0] || typeaheadInputValue) && clearBtn)),
|
|
6401
6414
|
variant === SelectVariant.typeaheadMulti && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6402
|
-
React__namespace.createElement("div", { className: css(
|
|
6403
|
-
toggleIcon && React__namespace.createElement("span", { className: css(
|
|
6415
|
+
React__namespace.createElement("div", { className: css(styles$6.selectToggleWrapper) },
|
|
6416
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$6.selectToggleIcon) }, toggleIcon),
|
|
6404
6417
|
selections && Array.isArray(selections) && selections.length > 0 && selectedChips,
|
|
6405
|
-
React__namespace.createElement("input", { className: css(
|
|
6418
|
+
React__namespace.createElement("input", { className: css(formStyles$1.formControl, styles$6.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-multi-typeahead-typeahead`, "aria-label": typeAheadAriaLabel, "aria-invalid": validated === ValidatedOptions.error, placeholder: placeholderText, value: typeaheadInputValue !== null ? typeaheadInputValue : '', type: "text", onChange: this.onChange, onClick: this.onClick, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef })),
|
|
6406
6419
|
hasOnClear && ((selections && selections.length > 0) || typeaheadInputValue) && clearBtn)),
|
|
6407
|
-
validated === ValidatedOptions.success && (React__namespace.createElement("span", { className: css(
|
|
6420
|
+
validated === ValidatedOptions.success && (React__namespace.createElement("span", { className: css(styles$6.selectToggleStatusIcon) },
|
|
6408
6421
|
React__namespace.createElement(CheckCircleIcon$1, { "aria-hidden": "true" }))),
|
|
6409
|
-
validated === ValidatedOptions.error && (React__namespace.createElement("span", { className: css(
|
|
6422
|
+
validated === ValidatedOptions.error && (React__namespace.createElement("span", { className: css(styles$6.selectToggleStatusIcon) },
|
|
6410
6423
|
React__namespace.createElement(ExclamationCircleIcon$1, { "aria-hidden": "true" }))),
|
|
6411
|
-
validated === ValidatedOptions.warning && (React__namespace.createElement("span", { className: css(
|
|
6424
|
+
validated === ValidatedOptions.warning && (React__namespace.createElement("span", { className: css(styles$6.selectToggleStatusIcon) },
|
|
6412
6425
|
React__namespace.createElement(ExclamationTriangleIcon$1, { "aria-hidden": "true" })))),
|
|
6413
6426
|
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
6414
6427
|
const getParentElement = () => {
|
|
@@ -6506,11 +6519,11 @@
|
|
|
6506
6519
|
checkedProps.defaultChecked = defaultChecked;
|
|
6507
6520
|
}
|
|
6508
6521
|
checkedProps.checked = checkedProps.checked === null ? false : checkedProps.checked;
|
|
6509
|
-
return (React__namespace.createElement("div", { className: css(
|
|
6510
|
-
React__namespace.createElement("input", Object.assign({}, props, { className: css(
|
|
6511
|
-
label && (React__namespace.createElement("label", { className: css(
|
|
6512
|
-
description && React__namespace.createElement("span", { className: css(
|
|
6513
|
-
body && React__namespace.createElement("span", { className: css(
|
|
6522
|
+
return (React__namespace.createElement("div", { className: css(checkStyles.check, !label && checkStyles.modifiers.standalone, className) },
|
|
6523
|
+
React__namespace.createElement("input", Object.assign({}, props, { className: css(checkStyles.checkInput), type: "checkbox", onChange: this.handleChange, "aria-invalid": !isValid, "aria-label": ariaLabel, disabled: isDisabled, ref: elem => elem && (elem.indeterminate = isChecked === null) }, checkedProps, getOUIAProps(Checkbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))),
|
|
6524
|
+
label && (React__namespace.createElement("label", { className: css(checkStyles.checkLabel, isDisabled && checkStyles.modifiers.disabled), htmlFor: props.id }, label)),
|
|
6525
|
+
description && React__namespace.createElement("span", { className: css(checkStyles.checkDescription) }, description),
|
|
6526
|
+
body && React__namespace.createElement("span", { className: css(checkStyles.checkBody) }, body)));
|
|
6514
6527
|
}
|
|
6515
6528
|
}
|
|
6516
6529
|
Checkbox.displayName = 'Checkbox';
|
|
@@ -6523,7 +6536,8 @@
|
|
|
6523
6536
|
ouiaSafe: true
|
|
6524
6537
|
};
|
|
6525
6538
|
|
|
6526
|
-
|
|
6539
|
+
Promise.resolve().then(function () { return popover; });
|
|
6540
|
+
var styles$3 = {
|
|
6527
6541
|
"button": "pf-c-button",
|
|
6528
6542
|
"modifiers": {
|
|
6529
6543
|
"noPadding": "pf-m-no-padding",
|
|
@@ -6562,25 +6576,25 @@
|
|
|
6562
6576
|
|
|
6563
6577
|
const PopoverContent = (_a) => {
|
|
6564
6578
|
var { className = null, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
6565
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(
|
|
6579
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$3.popoverContent, className) }, props), children));
|
|
6566
6580
|
};
|
|
6567
6581
|
PopoverContent.displayName = 'PopoverContent';
|
|
6568
6582
|
|
|
6569
6583
|
const PopoverBody = (_a) => {
|
|
6570
6584
|
var { children, id, className } = _a, props = __rest$1(_a, ["children", "id", "className"]);
|
|
6571
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(
|
|
6585
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$3.popoverBody, className), id: id }, props), children));
|
|
6572
6586
|
};
|
|
6573
6587
|
PopoverBody.displayName = 'PopoverBody';
|
|
6574
6588
|
|
|
6575
6589
|
const PopoverHeaderIcon = (_a) => {
|
|
6576
6590
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6577
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(
|
|
6591
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$3.popoverTitleIcon, className) }, props), children));
|
|
6578
6592
|
};
|
|
6579
6593
|
PopoverHeaderIcon.displayName = 'PopoverHeaderIcon';
|
|
6580
6594
|
|
|
6581
6595
|
const PopoverHeaderText = (_a) => {
|
|
6582
6596
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6583
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(
|
|
6597
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$3.popoverTitleText, className) }, props), children));
|
|
6584
6598
|
};
|
|
6585
6599
|
PopoverHeaderText.displayName = 'PopoverHeaderText';
|
|
6586
6600
|
|
|
@@ -6588,7 +6602,7 @@
|
|
|
6588
6602
|
var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = __rest$1(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
|
|
6589
6603
|
const HeadingLevel = titleHeadingLevel;
|
|
6590
6604
|
return icon || alertSeverityVariant ? (React__namespace.createElement("header", Object.assign({ className: css('pf-c-popover__header', className), id: id }, props),
|
|
6591
|
-
React__namespace.createElement(HeadingLevel, { className: css(
|
|
6605
|
+
React__namespace.createElement(HeadingLevel, { className: css(styles$3.popoverTitle, icon && styles$3.modifiers.icon) },
|
|
6592
6606
|
icon && React__namespace.createElement(PopoverHeaderIcon, null, icon),
|
|
6593
6607
|
alertSeverityVariant && alertSeverityScreenReaderText && (React__namespace.createElement("span", { className: "pf-u-screen-reader" }, alertSeverityScreenReaderText)),
|
|
6594
6608
|
React__namespace.createElement(PopoverHeaderText, null, children)))) : (React__namespace.createElement(Title, Object.assign({ headingLevel: titleHeadingLevel, size: TitleSizes.md, id: id, className: className }, props), children));
|
|
@@ -6597,7 +6611,7 @@
|
|
|
6597
6611
|
|
|
6598
6612
|
const PopoverFooter = (_a) => {
|
|
6599
6613
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6600
|
-
return (React__namespace.createElement("footer", Object.assign({ className: css(
|
|
6614
|
+
return (React__namespace.createElement("footer", Object.assign({ className: css(styles$3.popoverFooter, className) }, props), children));
|
|
6601
6615
|
};
|
|
6602
6616
|
PopoverFooter.displayName = 'PopoverFooter';
|
|
6603
6617
|
|
|
@@ -6618,7 +6632,7 @@
|
|
|
6618
6632
|
|
|
6619
6633
|
const PopoverArrow = (_a) => {
|
|
6620
6634
|
var { className = '' } = _a, props = __rest$1(_a, ["className"]);
|
|
6621
|
-
return React__namespace.createElement("div", Object.assign({ className: css(
|
|
6635
|
+
return React__namespace.createElement("div", Object.assign({ className: css(styles$3.popoverArrow, className) }, props));
|
|
6622
6636
|
};
|
|
6623
6637
|
PopoverArrow.displayName = 'PopoverArrow';
|
|
6624
6638
|
|
|
@@ -6653,11 +6667,11 @@
|
|
|
6653
6667
|
PopoverPosition["rightEnd"] = "right-end";
|
|
6654
6668
|
})(PopoverPosition || (PopoverPosition = {}));
|
|
6655
6669
|
const alertStyle = {
|
|
6656
|
-
default:
|
|
6657
|
-
info:
|
|
6658
|
-
success:
|
|
6659
|
-
warning:
|
|
6660
|
-
danger:
|
|
6670
|
+
default: styles$3.modifiers.default,
|
|
6671
|
+
info: styles$3.modifiers.info,
|
|
6672
|
+
success: styles$3.modifiers.success,
|
|
6673
|
+
warning: styles$3.modifiers.warning,
|
|
6674
|
+
danger: styles$3.modifiers.danger
|
|
6661
6675
|
};
|
|
6662
6676
|
const Popover = (_a) => {
|
|
6663
6677
|
var { children, position = 'top', enableFlip = true, className = '', isVisible = null, shouldClose = () => null, shouldOpen = () => null, 'aria-label': ariaLabel = '', bodyContent, headerContent = null, headerComponent = 'h6', headerIcon = null, alertSeverityVariant, alertSeverityScreenReaderText, footerContent = null, appendTo = () => document.body, hideOnOutsideClick = true, onHide = () => null, onHidden = () => null, onShow = () => null, onShown = () => null, onMount = () => null, zIndex = 9999, minWidth = popoverMinWidth && popoverMinWidth.value, maxWidth = popoverMaxWidth && popoverMaxWidth.value, closeBtnAriaLabel = 'Close', showClose = true, distance = 25,
|
|
@@ -6721,18 +6735,18 @@
|
|
|
6721
6735
|
}, 0);
|
|
6722
6736
|
};
|
|
6723
6737
|
const positionModifiers = {
|
|
6724
|
-
top:
|
|
6725
|
-
bottom:
|
|
6726
|
-
left:
|
|
6727
|
-
right:
|
|
6728
|
-
'top-start':
|
|
6729
|
-
'top-end':
|
|
6730
|
-
'bottom-start':
|
|
6731
|
-
'bottom-end':
|
|
6732
|
-
'left-start':
|
|
6733
|
-
'left-end':
|
|
6734
|
-
'right-start':
|
|
6735
|
-
'right-end':
|
|
6738
|
+
top: styles$3.modifiers.top,
|
|
6739
|
+
bottom: styles$3.modifiers.bottom,
|
|
6740
|
+
left: styles$3.modifiers.left,
|
|
6741
|
+
right: styles$3.modifiers.right,
|
|
6742
|
+
'top-start': styles$3.modifiers.topLeft,
|
|
6743
|
+
'top-end': styles$3.modifiers.topRight,
|
|
6744
|
+
'bottom-start': styles$3.modifiers.bottomLeft,
|
|
6745
|
+
'bottom-end': styles$3.modifiers.bottomRight,
|
|
6746
|
+
'left-start': styles$3.modifiers.leftTop,
|
|
6747
|
+
'left-end': styles$3.modifiers.leftBottom,
|
|
6748
|
+
'right-start': styles$3.modifiers.rightTop,
|
|
6749
|
+
'right-end': styles$3.modifiers.rightBottom
|
|
6736
6750
|
};
|
|
6737
6751
|
const hasCustomMinWidth = minWidth !== popoverMinWidth.value;
|
|
6738
6752
|
const hasCustomMaxWidth = maxWidth !== popoverMaxWidth.value;
|
|
@@ -6808,7 +6822,7 @@
|
|
|
6808
6822
|
}
|
|
6809
6823
|
return node;
|
|
6810
6824
|
}
|
|
6811
|
-
}, preventScrollOnDeactivate: true, className: css(
|
|
6825
|
+
}, preventScrollOnDeactivate: true, className: css(styles$3.popover, alertSeverityVariant && alertStyle[alertSeverityVariant], hasNoPadding && styles$3.modifiers.noPadding, hasAutoWidth && styles$3.modifiers.widthAuto, className), role: "dialog", "aria-modal": "true", "aria-label": headerContent ? undefined : ariaLabel, "aria-labelledby": headerContent ? `popover-${uniqueId}-header` : undefined, "aria-describedby": `popover-${uniqueId}-body`, onMouseDown: onContentMouseDown, style: {
|
|
6812
6826
|
minWidth: hasCustomMinWidth ? minWidth : null,
|
|
6813
6827
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
6814
6828
|
opacity,
|
|
@@ -6851,7 +6865,8 @@
|
|
|
6851
6865
|
|
|
6852
6866
|
var GripVerticalIcon$1 = GripVerticalIcon;
|
|
6853
6867
|
|
|
6854
|
-
|
|
6868
|
+
Promise.resolve().then(function () { return emptyState; });
|
|
6869
|
+
var styles$2 = {
|
|
6855
6870
|
"button": "pf-c-button",
|
|
6856
6871
|
"emptyState": "pf-c-empty-state",
|
|
6857
6872
|
"emptyStateBody": "pf-c-empty-state__body",
|
|
@@ -6881,19 +6896,22 @@
|
|
|
6881
6896
|
})(EmptyStateVariant || (EmptyStateVariant = {}));
|
|
6882
6897
|
const EmptyState = (_a) => {
|
|
6883
6898
|
var { children, className = '', variant = EmptyStateVariant.full, isFullHeight } = _a, props = __rest$1(_a, ["children", "className", "variant", "isFullHeight"]);
|
|
6884
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(
|
|
6885
|
-
React__namespace.createElement("div", { className: css(
|
|
6899
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$2.emptyState, variant === 'xs' && styles$2.modifiers.xs, variant === 'small' && styles$2.modifiers.sm, variant === 'large' && styles$2.modifiers.lg, variant === 'xl' && styles$2.modifiers.xl, isFullHeight && styles$2.modifiers.fullHeight, className) }, props),
|
|
6900
|
+
React__namespace.createElement("div", { className: css(styles$2.emptyStateContent) }, children)));
|
|
6886
6901
|
};
|
|
6887
6902
|
EmptyState.displayName = 'EmptyState';
|
|
6888
6903
|
|
|
6904
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6905
|
+
|
|
6889
6906
|
const Bullseye = (_a) => {
|
|
6890
6907
|
var { children = null, className = '', component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
6891
6908
|
const Component = component;
|
|
6892
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(
|
|
6909
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$c.bullseye, className) }, props), children));
|
|
6893
6910
|
};
|
|
6894
6911
|
Bullseye.displayName = 'Bullseye';
|
|
6895
6912
|
|
|
6896
|
-
|
|
6913
|
+
Promise.resolve().then(function () { return inlineEdit; });
|
|
6914
|
+
var inlineStyles = {
|
|
6897
6915
|
"button": "pf-c-button",
|
|
6898
6916
|
"inlineEdit": "pf-c-inline-edit",
|
|
6899
6917
|
"inlineEditAction": "pf-c-inline-edit__action",
|
|
@@ -6916,7 +6934,8 @@
|
|
|
6916
6934
|
}
|
|
6917
6935
|
};
|
|
6918
6936
|
|
|
6919
|
-
|
|
6937
|
+
Promise.resolve().then(function () { return table; });
|
|
6938
|
+
var styles$1 = {
|
|
6920
6939
|
"button": "pf-c-button",
|
|
6921
6940
|
"modifiers": {
|
|
6922
6941
|
"hidden": "pf-m-hidden",
|
|
@@ -6995,7 +7014,8 @@
|
|
|
6995
7014
|
"tableToggleIcon": "pf-c-table__toggle-icon"
|
|
6996
7015
|
};
|
|
6997
7016
|
|
|
6998
|
-
|
|
7017
|
+
Promise.resolve().then(function () { return tableGrid; });
|
|
7018
|
+
var stylesGrid = {
|
|
6999
7019
|
"button": "pf-c-button",
|
|
7000
7020
|
"modifiers": {
|
|
7001
7021
|
"grid": "pf-m-grid",
|
|
@@ -7027,7 +7047,8 @@
|
|
|
7027
7047
|
"tableToggleIcon": "pf-c-table__toggle-icon"
|
|
7028
7048
|
};
|
|
7029
7049
|
|
|
7030
|
-
|
|
7050
|
+
Promise.resolve().then(function () { return tableTreeView; });
|
|
7051
|
+
var stylesTreeView = {
|
|
7031
7052
|
"dropdown": "pf-c-dropdown",
|
|
7032
7053
|
"modifiers": {
|
|
7033
7054
|
"treeView": "pf-m-tree-view",
|
|
@@ -7197,9 +7218,9 @@
|
|
|
7197
7218
|
};
|
|
7198
7219
|
}, [tableRef, tableRef.current]);
|
|
7199
7220
|
const ouiaProps = useOUIAProps('Table', ouiaId, ouiaSafe);
|
|
7200
|
-
const grid = (_b =
|
|
7221
|
+
const grid = (_b = stylesGrid.modifiers) === null || _b === void 0 ? void 0 : _b[toCamel(gridBreakPoint || '').replace(/-?2xl/, '_2xl')];
|
|
7201
7222
|
const breakPointPrefix = `treeView${gridBreakPoint.charAt(0).toUpperCase() + gridBreakPoint.slice(1)}`;
|
|
7202
|
-
const treeGrid = (_c =
|
|
7223
|
+
const treeGrid = (_c = stylesTreeView.modifiers) === null || _c === void 0 ? void 0 : _c[toCamel(breakPointPrefix || '').replace(/-?2xl/, '_2xl')];
|
|
7203
7224
|
const handleKeys = (event) => {
|
|
7204
7225
|
if (isNested ||
|
|
7205
7226
|
!(tableRef && tableRef.current && tableRef.current.classList.contains('pf-m-tree-view')) || // implements roving tab-index to tree tables only
|
|
@@ -7216,21 +7237,21 @@
|
|
|
7216
7237
|
const getFocusableElement = (element) => element.querySelectorAll('button:not(:disabled), input:not(:disabled), a:not(:disabled)')[0];
|
|
7217
7238
|
handleArrows(event, rows, (element) => element === activeElement.closest('tr'), getFocusableElement, ['button', 'input', 'a'], undefined, false, true, false);
|
|
7218
7239
|
};
|
|
7219
|
-
return (React__namespace.createElement("table", Object.assign({ "aria-label": ariaLabel, role: role, className: css(className,
|
|
7240
|
+
return (React__namespace.createElement("table", Object.assign({ "aria-label": ariaLabel, role: role, className: css(className, styles$1.table, isTreeTable ? treeGrid : grid, styles$1.modifiers[variant], !borders && styles$1.modifiers.noBorderRows, isStickyHeader && styles$1.modifiers.stickyHeader, isTreeTable && stylesTreeView.modifiers.treeView, isStriped && styles$1.modifiers.striped, isExpandable && styles$1.modifiers.expandable, isNested && 'pf-m-nested'), ref: tableRef }, (isTreeTable && { role: 'treegrid' }), ouiaProps, props), children));
|
|
7220
7241
|
};
|
|
7221
7242
|
const TableComposable = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TableComposableBase, Object.assign({}, props, { innerRef: ref }))));
|
|
7222
7243
|
TableComposable.displayName = 'TableComposable';
|
|
7223
7244
|
|
|
7224
7245
|
const TheadBase = (_a) => {
|
|
7225
7246
|
var { children, className, noWrap = false, innerRef, hasNestedHeader } = _a, props = __rest$2(_a, ["children", "className", "noWrap", "innerRef", "hasNestedHeader"]);
|
|
7226
|
-
return (React__namespace.createElement("thead", Object.assign({ className: css(className, noWrap &&
|
|
7247
|
+
return (React__namespace.createElement("thead", Object.assign({ className: css(className, noWrap && styles$1.modifiers.nowrap, hasNestedHeader && styles$1.modifiers.nestedColumnHeader), ref: innerRef }, props), children));
|
|
7227
7248
|
};
|
|
7228
7249
|
const Thead = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TheadBase, Object.assign({}, props, { innerRef: ref }))));
|
|
7229
7250
|
Thead.displayName = 'Thead';
|
|
7230
7251
|
|
|
7231
7252
|
const TbodyBase = (_a) => {
|
|
7232
7253
|
var { children, className, isExpanded, innerRef, isEvenStriped = false, isOddStriped = false } = _a, props = __rest$2(_a, ["children", "className", "isExpanded", "innerRef", "isEvenStriped", "isOddStriped"]);
|
|
7233
|
-
return (React__namespace.createElement("tbody", Object.assign({ role: "rowgroup", className: css(className, isExpanded &&
|
|
7254
|
+
return (React__namespace.createElement("tbody", Object.assign({ role: "rowgroup", className: css(className, isExpanded && styles$1.modifiers.expanded, isOddStriped && styles$1.modifiers.striped, isEvenStriped && styles$1.modifiers.stripedEven), ref: innerRef }, props), children));
|
|
7234
7255
|
};
|
|
7235
7256
|
const Tbody = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TbodyBase, Object.assign({}, props, { innerRef: ref }))));
|
|
7236
7257
|
Tbody.displayName = 'Tbody';
|
|
@@ -7247,12 +7268,13 @@
|
|
|
7247
7268
|
}
|
|
7248
7269
|
};
|
|
7249
7270
|
}
|
|
7250
|
-
return (React__namespace.createElement("tr", Object.assign({ className: css(className, isExpanded !== undefined &&
|
|
7271
|
+
return (React__namespace.createElement("tr", Object.assign({ className: css(className, isExpanded !== undefined && styles$1.tableExpandableRow, isExpanded && styles$1.modifiers.expanded, isEditable && inlineStyles.modifiers.inlineEditable, isHoverable && styles$1.modifiers.hoverable, isRowSelected && styles$1.modifiers.selected, isStriped && styles$1.modifiers.striped, resetOffset && styles$1.modifiers.firstCellOffsetReset), hidden: isHidden || (isExpanded !== undefined && !isExpanded) }, (isHoverable && { tabIndex: 0 }), { ref: innerRef }, (onRowClick && { onClick: onRowClick, onKeyDown }), ouiaProps, props), children));
|
|
7251
7272
|
};
|
|
7252
7273
|
const Tr = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TrBase, Object.assign({}, props, { innerRef: ref }))));
|
|
7253
7274
|
Tr.displayName = 'Tr';
|
|
7254
7275
|
|
|
7255
|
-
|
|
7276
|
+
Promise.resolve().then(function () { return tableScrollable; });
|
|
7277
|
+
var styles = {
|
|
7256
7278
|
"modifiers": {
|
|
7257
7279
|
"borderRight": "pf-m-border-right",
|
|
7258
7280
|
"borderLeft": "pf-m-border-left",
|
|
@@ -7303,14 +7325,14 @@
|
|
|
7303
7325
|
}
|
|
7304
7326
|
onMouseEnterProp(event);
|
|
7305
7327
|
};
|
|
7306
|
-
const text = (React__namespace.createElement(Component, Object.assign({ onMouseEnter: onMouseEnter, className: css(className, wrapModifier &&
|
|
7328
|
+
const text = (React__namespace.createElement(Component, Object.assign({ onMouseEnter: onMouseEnter, className: css(className, wrapModifier && styles$1.modifiers[wrapModifier], styles$1.tableText) }, props), children));
|
|
7307
7329
|
return tooltip !== '' ? (React__namespace.createElement(Tooltip, Object.assign({ content: tooltip, isVisible: true }, tooltipProps), text)) : (text);
|
|
7308
7330
|
};
|
|
7309
7331
|
TableText.displayName = 'TableText';
|
|
7310
7332
|
|
|
7311
|
-
const HeaderCellInfoWrapper = ({ children, info, className, variant = 'tooltip', popoverProps, tooltipProps, ariaLabel }) => (React__namespace.createElement("div", { className: css(
|
|
7333
|
+
const HeaderCellInfoWrapper = ({ children, info, className, variant = 'tooltip', popoverProps, tooltipProps, ariaLabel }) => (React__namespace.createElement("div", { className: css(styles$1.tableColumnHelp, className) },
|
|
7312
7334
|
typeof children === 'string' ? React__namespace.createElement(TableText, null, children) : children,
|
|
7313
|
-
React__namespace.createElement("span", { className: css(
|
|
7335
|
+
React__namespace.createElement("span", { className: css(styles$1.tableColumnHelpAction) }, variant === 'tooltip' ? (React__namespace.createElement(Tooltip, Object.assign({ content: info }, tooltipProps),
|
|
7314
7336
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": ariaLabel || (typeof info === 'string' && info) || 'More info' },
|
|
7315
7337
|
React__namespace.createElement(HelpIcon$1, { noVerticalAlign: true })))) : (React__namespace.createElement(Popover, Object.assign({ bodyContent: info }, popoverProps),
|
|
7316
7338
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": ariaLabel || (typeof info === 'string' && info) || 'More info' },
|
|
@@ -7319,7 +7341,7 @@
|
|
|
7319
7341
|
|
|
7320
7342
|
const info = ({ tooltip, tooltipProps, popover, popoverProps, className, ariaLabel }) => {
|
|
7321
7343
|
const infoObj = (value) => ({
|
|
7322
|
-
className:
|
|
7344
|
+
className: styles$1.modifiers.help,
|
|
7323
7345
|
children: tooltip ? (React__namespace.createElement(HeaderCellInfoWrapper, { variant: "tooltip", info: tooltip, tooltipProps: tooltipProps, ariaLabel: ariaLabel, className: className }, value)) : (React__namespace.createElement(HeaderCellInfoWrapper, { variant: "popover", info: popover, popoverProps: popoverProps, ariaLabel: ariaLabel, className: className }, value))
|
|
7324
7346
|
});
|
|
7325
7347
|
return infoObj;
|
|
@@ -7378,17 +7400,17 @@
|
|
|
7378
7400
|
else {
|
|
7379
7401
|
SortedByIcon = ArrowsAltVIcon$1;
|
|
7380
7402
|
}
|
|
7381
|
-
return (React__namespace.createElement("button", Object.assign({}, props, { type: type, className: css(className,
|
|
7382
|
-
React__namespace.createElement("div", { className: css(className,
|
|
7403
|
+
return (React__namespace.createElement("button", Object.assign({}, props, { type: type, className: css(className, styles$1.tableButton), onClick: event => onSort && onSort(event) }),
|
|
7404
|
+
React__namespace.createElement("div", { className: css(className, styles$1.tableButtonContent) },
|
|
7383
7405
|
React__namespace.createElement(TableText, null, children),
|
|
7384
|
-
React__namespace.createElement("span", { className: css(
|
|
7406
|
+
React__namespace.createElement("span", { className: css(styles$1.tableSortIndicator) },
|
|
7385
7407
|
React__namespace.createElement(SortedByIcon, null)))));
|
|
7386
7408
|
};
|
|
7387
7409
|
SortColumn.displayName = 'SortColumn';
|
|
7388
7410
|
|
|
7389
7411
|
const sortableFavorites = (sort) => () => sortable(React__namespace.createElement(StarIcon$1, { "aria-hidden": true }), {
|
|
7390
7412
|
columnIndex: sort.columnIndex,
|
|
7391
|
-
className:
|
|
7413
|
+
className: styles$1.modifiers.favorite,
|
|
7392
7414
|
ariaLabel: 'Sort favorites',
|
|
7393
7415
|
column: {
|
|
7394
7416
|
extraParams: {
|
|
@@ -7420,7 +7442,7 @@
|
|
|
7420
7442
|
onSort && onSort(event, columnIndex, reversedDirection, extraData);
|
|
7421
7443
|
}
|
|
7422
7444
|
return {
|
|
7423
|
-
className: css(
|
|
7445
|
+
className: css(styles$1.tableSort, isSortedBy && styles$1.modifiers.selected, className),
|
|
7424
7446
|
'aria-sort': isSortedBy ? `${sortBy.direction}ending` : 'none',
|
|
7425
7447
|
children: (React__namespace.createElement(SortColumn, { isSortedBy: isSortedBy, sortDirection: isSortedBy ? sortBy.direction : '', onSort: sortClicked, "aria-label": ariaLabel }, label))
|
|
7426
7448
|
};
|
|
@@ -7476,7 +7498,7 @@
|
|
|
7476
7498
|
})), (rowData &&
|
|
7477
7499
|
(rowData.disableCheckbox || rowData.disableSelection) && {
|
|
7478
7500
|
disabled: true,
|
|
7479
|
-
className:
|
|
7501
|
+
className: checkStyles.checkInput
|
|
7480
7502
|
})), (!rowData && isHeaderSelectDisabled && { disabled: true }));
|
|
7481
7503
|
let selectName = 'check-all';
|
|
7482
7504
|
if (rowId !== -1 && selectVariant === exports.RowSelectVariant.checkbox) {
|
|
@@ -7486,7 +7508,7 @@
|
|
|
7486
7508
|
selectName = 'radioGroup';
|
|
7487
7509
|
}
|
|
7488
7510
|
return {
|
|
7489
|
-
className: css(
|
|
7511
|
+
className: css(styles$1.tableCheck),
|
|
7490
7512
|
component: 'td',
|
|
7491
7513
|
isVisible: !rowData || !rowData.fullWidth,
|
|
7492
7514
|
children: (React__namespace.createElement(SelectColumn, Object.assign({}, customProps, { selectVariant: selectVariant, onSelect: selectClick, name: selectName }), label))
|
|
@@ -7496,8 +7518,8 @@
|
|
|
7496
7518
|
const CollapseColumn = (_a) => {
|
|
7497
7519
|
var { className = '', children = null, isOpen, onToggle } = _a, props = __rest$2(_a, ["className", "children", "isOpen", "onToggle"]);
|
|
7498
7520
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
7499
|
-
isOpen !== undefined && (React__namespace.createElement(Button, Object.assign({ className: css(className, isOpen &&
|
|
7500
|
-
React__namespace.createElement("div", { className: css(
|
|
7521
|
+
isOpen !== undefined && (React__namespace.createElement(Button, Object.assign({ className: css(className, isOpen && styles$1.modifiers.expanded) }, props, { variant: "plain", "aria-label": props['aria-label'] || 'Details', onClick: onToggle, "aria-expanded": isOpen }),
|
|
7522
|
+
React__namespace.createElement("div", { className: css(styles$1.tableToggleIcon) },
|
|
7501
7523
|
React__namespace.createElement(AngleDownIcon$1, null)))),
|
|
7502
7524
|
children));
|
|
7503
7525
|
};
|
|
@@ -7505,7 +7527,7 @@
|
|
|
7505
7527
|
|
|
7506
7528
|
const ExpandableRowContent = (_a) => {
|
|
7507
7529
|
var { children = null } = _a, props = __rest$2(_a, ["children"]);
|
|
7508
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(
|
|
7530
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$1.tableExpandableRowContent) }), children));
|
|
7509
7531
|
};
|
|
7510
7532
|
ExpandableRowContent.displayName = 'ExpandableRowContent';
|
|
7511
7533
|
|
|
@@ -7536,7 +7558,7 @@
|
|
|
7536
7558
|
onCollapse && onCollapse(event, rowIndex, open, rowData, extraData);
|
|
7537
7559
|
}
|
|
7538
7560
|
return {
|
|
7539
|
-
className: ((rowData === null || rowData === void 0 ? void 0 : rowData.isOpen) !== undefined || rowId === -1) && css(
|
|
7561
|
+
className: ((rowData === null || rowData === void 0 ? void 0 : rowData.isOpen) !== undefined || rowId === -1) && css(styles$1.tableToggle),
|
|
7540
7562
|
isVisible: !(rowData === null || rowData === void 0 ? void 0 : rowData.fullWidth),
|
|
7541
7563
|
children: (React__namespace.createElement(CollapseColumn, Object.assign({ "aria-labelledby": `${rowLabeledBy}${rowId} ${expandId}${rowId}`, onToggle: onToggle, id: expandId + rowId }, customProps), value))
|
|
7542
7564
|
};
|
|
@@ -7548,13 +7570,13 @@
|
|
|
7548
7570
|
// todo: rewrite this logic, it is not type safe
|
|
7549
7571
|
colSpan: !rowData.cells || rowData.cells.length === 1 ? colSpan + !!rowData.fullWidth : 1,
|
|
7550
7572
|
id: contentId + rowIndex + (columnIndex ? '-' + columnIndex : ''),
|
|
7551
|
-
className: rowData.noPadding && css(
|
|
7573
|
+
className: rowData.noPadding && css(styles$1.modifiers.noPadding)
|
|
7552
7574
|
};
|
|
7553
7575
|
return expandedRowFormatter;
|
|
7554
7576
|
};
|
|
7555
7577
|
|
|
7556
7578
|
const cellWidth = (width) => () => ({
|
|
7557
|
-
className: css(
|
|
7579
|
+
className: css(styles$1.modifiers[typeof width === 'number' ? `width_${width}` : `width${capitalize(width)}`])
|
|
7558
7580
|
});
|
|
7559
7581
|
|
|
7560
7582
|
const visibilityModifiers = [
|
|
@@ -7571,10 +7593,10 @@
|
|
|
7571
7593
|
'visibleOn_2xl'
|
|
7572
7594
|
];
|
|
7573
7595
|
const Visibility = visibilityModifiers
|
|
7574
|
-
.filter(key =>
|
|
7596
|
+
.filter(key => styles$1.modifiers[key])
|
|
7575
7597
|
.reduce((acc, curr) => {
|
|
7576
7598
|
const key2 = curr.replace('_2xl', '2Xl');
|
|
7577
|
-
acc[key2] =
|
|
7599
|
+
acc[key2] = styles$1.modifiers[curr];
|
|
7578
7600
|
return acc;
|
|
7579
7601
|
}, {});
|
|
7580
7602
|
const classNames = (...classes) => () => ({
|
|
@@ -10248,7 +10270,7 @@
|
|
|
10248
10270
|
// selectable adds this but we don't want it
|
|
10249
10271
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10250
10272
|
isVisible = null, className: mergedClassName = '', component: MergedComponent = component } = merged, mergedProps = __rest$2(merged, ["children", "isVisible", "className", "component"]);
|
|
10251
|
-
const cell = (React__namespace.createElement(MergedComponent, Object.assign({ "data-label": dataLabel, onMouseEnter: tooltip !== null ? onMouseEnter : onMouseEnterProp, scope: component === 'th' && children ? scope : null, ref: innerRef, className: css(className, textCenter &&
|
|
10273
|
+
const cell = (React__namespace.createElement(MergedComponent, Object.assign({ "data-label": dataLabel, onMouseEnter: tooltip !== null ? onMouseEnter : onMouseEnterProp, scope: component === 'th' && children ? scope : null, ref: innerRef, className: css(className, textCenter && styles$1.modifiers.center, isSubheader && styles$1.tableSubhead, isStickyColumn && styles.tableStickyColumn, hasRightBorder && styles.modifiers.borderRight, modifier && styles$1.modifiers[modifier], mergedClassName) }, mergedProps, props, (isStickyColumn && {
|
|
10252
10274
|
style: Object.assign({ '--pf-c-table__sticky-column--MinWidth': stickyMinWidth ? stickyMinWidth : undefined, '--pf-c-table__sticky-column--Left': stickyLeftOffset ? stickyLeftOffset : undefined }, props.style)
|
|
10253
10275
|
})), transformedChildren));
|
|
10254
10276
|
const canDefault = tooltip === '' ? typeof children === 'string' : true;
|
|
@@ -10328,7 +10350,7 @@
|
|
|
10328
10350
|
children: (React__namespace.createElement(ActionsColumn, { items: resolvedActions, dropdownPosition: dropdownPosition, dropdownDirection: dropdownDirection, isDisabled: resolvedIsDisabled, rowData: rowData, extraData: extraData, actionsToggle: actionsToggle }, label))
|
|
10329
10351
|
}
|
|
10330
10352
|
: {};
|
|
10331
|
-
return Object.assign({ className: css(
|
|
10353
|
+
return Object.assign({ className: css(styles$1.tableAction), style: { paddingRight: 0 }, isVisible: true }, renderProps);
|
|
10332
10354
|
};
|
|
10333
10355
|
|
|
10334
10356
|
const compoundExpand = (value, { rowIndex, columnIndex, rowData, column, property }) => {
|
|
@@ -10351,8 +10373,8 @@
|
|
|
10351
10373
|
onExpand && onExpand(event, rowIndex, columnIndex, props.isOpen, rowData, extraData);
|
|
10352
10374
|
}
|
|
10353
10375
|
return {
|
|
10354
|
-
className: css(
|
|
10355
|
-
children: props.isOpen !== undefined && (React__namespace.createElement("button", { type: "button", className: css(
|
|
10376
|
+
className: css(styles$1.tableCompoundExpansionToggle, props.isOpen && styles$1.modifiers.expanded),
|
|
10377
|
+
children: props.isOpen !== undefined && (React__namespace.createElement("button", { type: "button", className: css(styles$1.tableButton), onClick: onToggle, "aria-expanded": props.isOpen, "aria-controls": props.ariaControls },
|
|
10356
10378
|
React__namespace.createElement(TableText, null, title)))
|
|
10357
10379
|
};
|
|
10358
10380
|
};
|
|
@@ -10394,7 +10416,7 @@
|
|
|
10394
10416
|
}
|
|
10395
10417
|
const additionalProps = rowData.favoritesProps || {};
|
|
10396
10418
|
return {
|
|
10397
|
-
className: css(
|
|
10419
|
+
className: css(styles$1.tableFavorite, rowData && rowData.favorited && styles$1.modifiers.favorited),
|
|
10398
10420
|
isVisible: !rowData || !rowData.fullWidth,
|
|
10399
10421
|
children: (React__namespace.createElement(FavoritesCell, Object.assign({ rowIndex: rowIndex, onFavorite: favoritesClick, isFavorited: rowData && rowData.favorited }, additionalProps)))
|
|
10400
10422
|
};
|
|
@@ -10431,8 +10453,8 @@
|
|
|
10431
10453
|
const treeRow = (onCollapse, onCheckChange, onToggleRowDetails) => (value, { rowIndex, rowData }) => {
|
|
10432
10454
|
const { isExpanded, isDetailsExpanded, 'aria-level': level, 'aria-setsize': setsize, toggleAriaLabel, checkAriaLabel, showDetailsAriaLabel, isChecked, checkboxId, icon } = rowData.props;
|
|
10433
10455
|
const content = value.title || value;
|
|
10434
|
-
const text = (React__namespace.createElement("div", { className: css(
|
|
10435
|
-
icon && (React__namespace.createElement("span", { className: css(
|
|
10456
|
+
const text = (React__namespace.createElement("div", { className: css(stylesTreeView.tableTreeViewText), key: "tree-view-text" },
|
|
10457
|
+
icon && (React__namespace.createElement("span", { className: css(stylesTreeView.tableTreeViewIcon), key: "tree-view-text-icon" }, icon)),
|
|
10436
10458
|
React__namespace.createElement("span", { className: "pf-c-table__text", key: "table-text" }, content)));
|
|
10437
10459
|
const onChange = (isChecked, event) => {
|
|
10438
10460
|
onCheckChange(event, isChecked, rowIndex, content, rowData);
|
|
@@ -10440,15 +10462,15 @@
|
|
|
10440
10462
|
return {
|
|
10441
10463
|
component: 'th',
|
|
10442
10464
|
className: 'pf-c-table__tree-view-title-cell',
|
|
10443
|
-
children: level !== undefined ? (React__namespace.createElement("div", { className: css(
|
|
10444
|
-
setsize > 0 && (React__namespace.createElement("span", { className: css(
|
|
10445
|
-
React__namespace.createElement(Button, { variant: "plain", onClick: event => onCollapse && onCollapse(event, rowIndex, content, rowData), className: css(isExpanded &&
|
|
10446
|
-
React__namespace.createElement("div", { className: css(
|
|
10465
|
+
children: level !== undefined ? (React__namespace.createElement("div", { className: css(stylesTreeView.tableTreeViewMain) },
|
|
10466
|
+
setsize > 0 && (React__namespace.createElement("span", { className: css(stylesTreeView.tableToggle), key: "table-toggle" },
|
|
10467
|
+
React__namespace.createElement(Button, { variant: "plain", onClick: event => onCollapse && onCollapse(event, rowIndex, content, rowData), className: css(isExpanded && styles$1.modifiers.expanded), "aria-expanded": isExpanded, "aria-label": toggleAriaLabel || `${isExpanded ? 'Collapse' : 'Expand'} row ${rowIndex}` },
|
|
10468
|
+
React__namespace.createElement("div", { className: css(stylesTreeView.tableToggleIcon) },
|
|
10447
10469
|
React__namespace.createElement(AngleDownIcon$1, { "aria-hidden": "true" }))))),
|
|
10448
|
-
!!onCheckChange && (React__namespace.createElement("span", { className: css(
|
|
10470
|
+
!!onCheckChange && (React__namespace.createElement("span", { className: css(stylesTreeView.tableCheck), key: "table-check" },
|
|
10449
10471
|
React__namespace.createElement(Checkbox, { id: checkboxId || `checkbox_${rowIndex}`, "aria-label": checkAriaLabel || `Row ${rowIndex} checkbox`, isChecked: isChecked, onChange: onChange }))),
|
|
10450
10472
|
text,
|
|
10451
|
-
!!onToggleRowDetails && (React__namespace.createElement("span", { className: css(
|
|
10473
|
+
!!onToggleRowDetails && (React__namespace.createElement("span", { className: css(stylesTreeView.tableTreeViewDetailsToggle), key: "view-details-toggle" },
|
|
10452
10474
|
React__namespace.createElement(Button, { variant: "plain", "aria-expanded": isDetailsExpanded, "aria-label": showDetailsAriaLabel || 'Show row details', onClick: event => onToggleRowDetails && onToggleRowDetails(event, rowIndex, content, rowData) },
|
|
10453
10475
|
React__namespace.createElement("span", { className: "pf-c-table__details-toggle-icon" },
|
|
10454
10476
|
React__namespace.createElement(EllipsisHIcon$1, { "aria-hidden": true }))))))) : (text)
|
|
@@ -10559,7 +10581,7 @@
|
|
|
10559
10581
|
isVisible = null, children: mergedChildren = null, className: mergedClassName = '', component: MergedComponent = component } = merged, mergedProps = __rest$2(merged, ["isVisible", "children", "className", "component"]);
|
|
10560
10582
|
const treeTableTitleCell = (className && className.includes('pf-c-table__tree-view-title-cell')) ||
|
|
10561
10583
|
(mergedClassName && mergedClassName.includes('pf-c-table__tree-view-title-cell'));
|
|
10562
|
-
return (React__namespace.createElement(MergedComponent, Object.assign({}, (!treeTableTitleCell && { 'data-label': dataLabel }), { className: css(className, isActionCell &&
|
|
10584
|
+
return (React__namespace.createElement(MergedComponent, Object.assign({}, (!treeTableTitleCell && { 'data-label': dataLabel }), { className: css(className, isActionCell && styles$1.tableAction, textCenter && styles$1.modifiers.center, noPadding && styles$1.modifiers.noPadding, styles$1.modifiers[modifier], draggableParams && styles$1.tableDraggable, mergedClassName), ref: innerRef }, mergedProps, props), mergedChildren || children));
|
|
10563
10585
|
};
|
|
10564
10586
|
const Td = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TdBase, Object.assign({}, props, { innerRef: ref }))));
|
|
10565
10587
|
Td.displayName = 'Td';
|
|
@@ -11953,14 +11975,14 @@
|
|
|
11953
11975
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
11954
11976
|
saveAriaLabel, cancelAriaLabel, editAriaLabel } = _a, props = __rest$2(_a, ["onClick", "className", "editing", "valid", "saveAriaLabel", "cancelAriaLabel", "editAriaLabel"]);
|
|
11955
11977
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
11956
|
-
React__namespace.createElement("div", { className: css(
|
|
11957
|
-
React__namespace.createElement("div", { className: css(
|
|
11978
|
+
React__namespace.createElement("div", { className: css(inlineStyles.inlineEditGroup, inlineStyles.modifiers.iconGroup, 'pf-m-action-group') },
|
|
11979
|
+
React__namespace.createElement("div", { className: css(inlineStyles.inlineEditAction) },
|
|
11958
11980
|
React__namespace.createElement(Button, Object.assign({ "aria-label": saveAriaLabel }, props, { onClick: e => onClick(e, 'save'), variant: "plain" }),
|
|
11959
11981
|
React__namespace.createElement(CheckIcon$1, null))),
|
|
11960
|
-
React__namespace.createElement("div", { className: css(
|
|
11982
|
+
React__namespace.createElement("div", { className: css(inlineStyles.inlineEditAction) },
|
|
11961
11983
|
React__namespace.createElement(Button, Object.assign({ "aria-label": cancelAriaLabel }, props, { onClick: e => onClick(e, 'cancel'), variant: "plain" }),
|
|
11962
11984
|
React__namespace.createElement(TimesIcon$1, null)))),
|
|
11963
|
-
React__namespace.createElement("div", { className: css(
|
|
11985
|
+
React__namespace.createElement("div", { className: css(inlineStyles.inlineEditAction, inlineStyles.modifiers.enableEditable) },
|
|
11964
11986
|
React__namespace.createElement(Button, Object.assign({ "aria-label": editAriaLabel }, props, { onClick: e => onClick(e, 'edit'), variant: "plain" }),
|
|
11965
11987
|
React__namespace.createElement(PencilAltIcon$1, null)))));
|
|
11966
11988
|
};
|
|
@@ -12028,7 +12050,7 @@
|
|
|
12028
12050
|
return result;
|
|
12029
12051
|
}
|
|
12030
12052
|
return {
|
|
12031
|
-
className:
|
|
12053
|
+
className: styles$1.tableInlineEditAction,
|
|
12032
12054
|
component: 'td',
|
|
12033
12055
|
isVisible: true,
|
|
12034
12056
|
children: (React__namespace.createElement(EditColumn, { saveAriaLabel: (rowData && rowData.rowSaveBtnAriaLabel && rowData.rowSaveBtnAriaLabel(rowIndex)) ||
|
|
@@ -12039,19 +12061,19 @@
|
|
|
12039
12061
|
};
|
|
12040
12062
|
|
|
12041
12063
|
const breakWord = () => ({
|
|
12042
|
-
className:
|
|
12064
|
+
className: styles$1.modifiers.breakWord
|
|
12043
12065
|
});
|
|
12044
12066
|
const fitContent = () => ({
|
|
12045
|
-
className:
|
|
12067
|
+
className: styles$1.modifiers.fitContent
|
|
12046
12068
|
});
|
|
12047
12069
|
const nowrap = () => ({
|
|
12048
|
-
className:
|
|
12070
|
+
className: styles$1.modifiers.nowrap
|
|
12049
12071
|
});
|
|
12050
12072
|
const truncate = () => ({
|
|
12051
|
-
className:
|
|
12073
|
+
className: styles$1.modifiers.truncate
|
|
12052
12074
|
});
|
|
12053
12075
|
const wrappable = () => ({
|
|
12054
|
-
className:
|
|
12076
|
+
className: styles$1.modifiers.wrap
|
|
12055
12077
|
});
|
|
12056
12078
|
|
|
12057
12079
|
const textCenter = () => ({ textCenter: true });
|
|
@@ -12313,13 +12335,13 @@
|
|
|
12313
12335
|
|
|
12314
12336
|
const OuterScrollContainer = (_a) => {
|
|
12315
12337
|
var { children, className } = _a, props = __rest$2(_a, ["children", "className"]);
|
|
12316
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(className,
|
|
12338
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(className, styles.scrollOuterWrapper) }, props), children));
|
|
12317
12339
|
};
|
|
12318
12340
|
OuterScrollContainer.displayName = 'OuterScrollContainer';
|
|
12319
12341
|
|
|
12320
12342
|
const InnerScrollContainer = (_a) => {
|
|
12321
12343
|
var { children, className } = _a, props = __rest$2(_a, ["children", "className"]);
|
|
12322
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(className,
|
|
12344
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(className, styles.scrollInnerWrapper) }, props), children));
|
|
12323
12345
|
};
|
|
12324
12346
|
InnerScrollContainer.displayName = 'InnerScrollContainer';
|
|
12325
12347
|
|
|
@@ -12328,7 +12350,7 @@
|
|
|
12328
12350
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12329
12351
|
rowProps, row } = _a, props = __rest$2(_a, ["className", "rowProps", "row"]);
|
|
12330
12352
|
const { 'aria-level': level, 'aria-posinset': posinset, 'aria-setsize': setsize, isExpanded, isDetailsExpanded, isHidden } = row.props;
|
|
12331
|
-
return (React__namespace.createElement(Tr, Object.assign({ "aria-level": level, "aria-posinset": posinset, "aria-setsize": setsize, "aria-expanded": !!isExpanded, isHidden: isHidden, className: css(className, isExpanded &&
|
|
12353
|
+
return (React__namespace.createElement(Tr, Object.assign({ "aria-level": level, "aria-posinset": posinset, "aria-setsize": setsize, "aria-expanded": !!isExpanded, isHidden: isHidden, className: css(className, isExpanded && styles$1.modifiers.expanded, isDetailsExpanded && stylesTreeView.modifiers.treeViewDetailsExpanded) }, props)));
|
|
12332
12354
|
};
|
|
12333
12355
|
TreeRowWrapper.displayName = 'TreeRowWrapper';
|
|
12334
12356
|
|
|
@@ -12405,7 +12427,7 @@
|
|
|
12405
12427
|
caption && React__namespace.createElement("caption", null, caption),
|
|
12406
12428
|
children)));
|
|
12407
12429
|
if (onRowEdit) {
|
|
12408
|
-
return React__namespace.createElement("form", { className: css(
|
|
12430
|
+
return React__namespace.createElement("form", { className: css(inlineStyles.inlineEdit) }, table);
|
|
12409
12431
|
}
|
|
12410
12432
|
return table;
|
|
12411
12433
|
}
|
|
@@ -12558,20 +12580,20 @@
|
|
|
12558
12580
|
};
|
|
12559
12581
|
const select = (React__namespace.createElement(Select, Object.assign({}, props.editableSelectProps, { onSelect: onSelectHandler }, (clearSelection && { onClear }), { isOpen: isOpen, onToggle: onToggle, selections: selections }), options));
|
|
12560
12582
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
12561
|
-
React__namespace.createElement("div", { className:
|
|
12562
|
-
React__namespace.createElement("div", { className:
|
|
12583
|
+
React__namespace.createElement("div", { className: inlineStyles.inlineEditValue }, Array.isArray(value) ? value.join(', ') : value),
|
|
12584
|
+
React__namespace.createElement("div", { className: inlineStyles.inlineEditInput },
|
|
12563
12585
|
select,
|
|
12564
|
-
React__namespace.createElement("div", { className: css(
|
|
12586
|
+
React__namespace.createElement("div", { className: css(formStyles.formHelperText, formStyles.modifiers.error), "aria-live": "polite" }, props.errorText))));
|
|
12565
12587
|
};
|
|
12566
12588
|
EditableSelectInputCell.displayName = 'EditableSelectInputCell';
|
|
12567
12589
|
|
|
12568
12590
|
const EditableTextCell = ({ value, rowIndex, cellIndex, props, handleTextInputChange, inputAriaLabel, isDisabled = false }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
12569
|
-
React__namespace.createElement("div", { className:
|
|
12570
|
-
React__namespace.createElement("div", { className:
|
|
12591
|
+
React__namespace.createElement("div", { className: inlineStyles.inlineEditValue }, value),
|
|
12592
|
+
React__namespace.createElement("div", { className: inlineStyles.inlineEditInput },
|
|
12571
12593
|
React__namespace.createElement(TextInput, { isDisabled: isDisabled, value: props.editableValue !== undefined ? props.editableValue : value, validated: props.isValid !== false ? 'default' : 'error', type: "text", onChange: (newValue, event) => {
|
|
12572
12594
|
handleTextInputChange(newValue, event, rowIndex, cellIndex);
|
|
12573
12595
|
}, "aria-label": inputAriaLabel }),
|
|
12574
|
-
React__namespace.createElement("div", { className: css(
|
|
12596
|
+
React__namespace.createElement("div", { className: css(formStyles.formHelperText, formStyles.modifiers.error), "aria-live": "polite" }, props.errorText))));
|
|
12575
12597
|
EditableTextCell.displayName = 'EditableTextCell';
|
|
12576
12598
|
|
|
12577
12599
|
const ContextHeader = (_a) => {
|
|
@@ -12584,6 +12606,90 @@
|
|
|
12584
12606
|
};
|
|
12585
12607
|
TableHeader.displayName = 'TableHeader';
|
|
12586
12608
|
|
|
12609
|
+
var bullseye = /*#__PURE__*/Object.freeze({
|
|
12610
|
+
__proto__: null
|
|
12611
|
+
});
|
|
12612
|
+
|
|
12613
|
+
var title = /*#__PURE__*/Object.freeze({
|
|
12614
|
+
__proto__: null
|
|
12615
|
+
});
|
|
12616
|
+
|
|
12617
|
+
var button = /*#__PURE__*/Object.freeze({
|
|
12618
|
+
__proto__: null
|
|
12619
|
+
});
|
|
12620
|
+
|
|
12621
|
+
var spinner = /*#__PURE__*/Object.freeze({
|
|
12622
|
+
__proto__: null
|
|
12623
|
+
});
|
|
12624
|
+
|
|
12625
|
+
var tooltip = /*#__PURE__*/Object.freeze({
|
|
12626
|
+
__proto__: null
|
|
12627
|
+
});
|
|
12628
|
+
|
|
12629
|
+
var formControl = /*#__PURE__*/Object.freeze({
|
|
12630
|
+
__proto__: null
|
|
12631
|
+
});
|
|
12632
|
+
|
|
12633
|
+
var dropdown = /*#__PURE__*/Object.freeze({
|
|
12634
|
+
__proto__: null
|
|
12635
|
+
});
|
|
12636
|
+
|
|
12637
|
+
var divider = /*#__PURE__*/Object.freeze({
|
|
12638
|
+
__proto__: null
|
|
12639
|
+
});
|
|
12640
|
+
|
|
12641
|
+
var badge = /*#__PURE__*/Object.freeze({
|
|
12642
|
+
__proto__: null
|
|
12643
|
+
});
|
|
12644
|
+
|
|
12645
|
+
var select = /*#__PURE__*/Object.freeze({
|
|
12646
|
+
__proto__: null
|
|
12647
|
+
});
|
|
12648
|
+
|
|
12649
|
+
var form = /*#__PURE__*/Object.freeze({
|
|
12650
|
+
__proto__: null
|
|
12651
|
+
});
|
|
12652
|
+
|
|
12653
|
+
var check = /*#__PURE__*/Object.freeze({
|
|
12654
|
+
__proto__: null
|
|
12655
|
+
});
|
|
12656
|
+
|
|
12657
|
+
var chipGroup = /*#__PURE__*/Object.freeze({
|
|
12658
|
+
__proto__: null
|
|
12659
|
+
});
|
|
12660
|
+
|
|
12661
|
+
var chip = /*#__PURE__*/Object.freeze({
|
|
12662
|
+
__proto__: null
|
|
12663
|
+
});
|
|
12664
|
+
|
|
12665
|
+
var popover = /*#__PURE__*/Object.freeze({
|
|
12666
|
+
__proto__: null
|
|
12667
|
+
});
|
|
12668
|
+
|
|
12669
|
+
var emptyState = /*#__PURE__*/Object.freeze({
|
|
12670
|
+
__proto__: null
|
|
12671
|
+
});
|
|
12672
|
+
|
|
12673
|
+
var inlineEdit = /*#__PURE__*/Object.freeze({
|
|
12674
|
+
__proto__: null
|
|
12675
|
+
});
|
|
12676
|
+
|
|
12677
|
+
var table = /*#__PURE__*/Object.freeze({
|
|
12678
|
+
__proto__: null
|
|
12679
|
+
});
|
|
12680
|
+
|
|
12681
|
+
var tableGrid = /*#__PURE__*/Object.freeze({
|
|
12682
|
+
__proto__: null
|
|
12683
|
+
});
|
|
12684
|
+
|
|
12685
|
+
var tableTreeView = /*#__PURE__*/Object.freeze({
|
|
12686
|
+
__proto__: null
|
|
12687
|
+
});
|
|
12688
|
+
|
|
12689
|
+
var tableScrollable = /*#__PURE__*/Object.freeze({
|
|
12690
|
+
__proto__: null
|
|
12691
|
+
});
|
|
12692
|
+
|
|
12587
12693
|
exports.ActionsColumn = ActionsColumn;
|
|
12588
12694
|
exports.BodyCell = BodyCell;
|
|
12589
12695
|
exports.BodyWrapper = BodyWrapper;
|