@patternfly/react-table 4.71.19 → 4.71.22
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.css +81 -79
- package/dist/umd/react-table.js +333 -228
- package/dist/umd/react-table.min.css +4 -2
- 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,
|
|
@@ -4164,7 +4169,7 @@
|
|
|
4164
4169
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4165
4170
|
ref, // Types of Ref are different for React.FC 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, {
|
|
@@ -4317,7 +4322,8 @@
|
|
|
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,7 +4398,7 @@
|
|
|
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
|
|
|
@@ -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",
|
|
@@ -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));
|
|
@@ -5383,7 +5393,7 @@
|
|
|
5383
5393
|
'aria-haspopup': (variant !== SelectVariant.checkbox && 'listbox') || null
|
|
5384
5394
|
};
|
|
5385
5395
|
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(
|
|
5396
|
+
!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
5397
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5388
5398
|
onClick: event => {
|
|
5389
5399
|
onToggle(!isOpen, event);
|
|
@@ -5392,9 +5402,9 @@
|
|
|
5392
5402
|
}
|
|
5393
5403
|
}, onKeyDown: this.onKeyDown, disabled: isDisabled }),
|
|
5394
5404
|
children,
|
|
5395
|
-
React__namespace.createElement("span", { className: css(
|
|
5405
|
+
React__namespace.createElement("span", { className: css(styles$6.selectToggleArrow) },
|
|
5396
5406
|
React__namespace.createElement(CaretDownIcon$1, null)))),
|
|
5397
|
-
isTypeahead && (React__namespace.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css(
|
|
5407
|
+
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
5408
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5399
5409
|
onClick: event => {
|
|
5400
5410
|
if (!isDisabled) {
|
|
@@ -5405,7 +5415,7 @@
|
|
|
5405
5415
|
}
|
|
5406
5416
|
}, onKeyDown: this.onKeyDown }),
|
|
5407
5417
|
children,
|
|
5408
|
-
React__namespace.createElement("button", Object.assign({}, toggleProps, { type: type, className: css(
|
|
5418
|
+
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
5419
|
onToggle(!isOpen, event);
|
|
5410
5420
|
if (isOpen) {
|
|
5411
5421
|
onClose();
|
|
@@ -5414,7 +5424,7 @@
|
|
|
5414
5424
|
} }, ((variant === SelectVariant.typeahead || variant === SelectVariant.typeaheadMulti) && {
|
|
5415
5425
|
tabIndex: -1
|
|
5416
5426
|
}), { disabled: isDisabled }),
|
|
5417
|
-
React__namespace.createElement(CaretDownIcon$1, { className: css(
|
|
5427
|
+
React__namespace.createElement(CaretDownIcon$1, { className: css(styles$6.selectToggleArrow) }))))));
|
|
5418
5428
|
}
|
|
5419
5429
|
}
|
|
5420
5430
|
SelectToggle.displayName = 'SelectToggle';
|
|
@@ -5437,7 +5447,8 @@
|
|
|
5437
5447
|
onClickTypeaheadToggleButton: () => { }
|
|
5438
5448
|
};
|
|
5439
5449
|
|
|
5440
|
-
|
|
5450
|
+
Promise.resolve().then(function () { return chipGroup; });
|
|
5451
|
+
var styles$5 = {
|
|
5441
5452
|
"chipGroup": "pf-c-chip-group",
|
|
5442
5453
|
"chipGroupClose": "pf-c-chip-group__close",
|
|
5443
5454
|
"chipGroupLabel": "pf-c-chip-group__label",
|
|
@@ -5449,7 +5460,8 @@
|
|
|
5449
5460
|
}
|
|
5450
5461
|
};
|
|
5451
5462
|
|
|
5452
|
-
|
|
5463
|
+
Promise.resolve().then(function () { return chip; });
|
|
5464
|
+
var styles$4 = {
|
|
5453
5465
|
"badge": "pf-c-badge",
|
|
5454
5466
|
"button": "pf-c-button",
|
|
5455
5467
|
"chip": "pf-c-chip",
|
|
@@ -5468,8 +5480,8 @@
|
|
|
5468
5480
|
this.renderOverflowChip = () => {
|
|
5469
5481
|
const { children, className, onClick, ouiaId } = this.props;
|
|
5470
5482
|
const Component = this.props.component;
|
|
5471
|
-
return (React__namespace.createElement(Component, Object.assign({ onClick: onClick, className: css(
|
|
5472
|
-
React__namespace.createElement("span", { className: css(
|
|
5483
|
+
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)),
|
|
5484
|
+
React__namespace.createElement("span", { className: css(styles$4.chipText) }, children)));
|
|
5473
5485
|
};
|
|
5474
5486
|
this.renderChip = (randomId) => {
|
|
5475
5487
|
const { children, tooltipPosition } = this.props;
|
|
@@ -5491,8 +5503,8 @@
|
|
|
5491
5503
|
renderInnerChip(id) {
|
|
5492
5504
|
const { children, className, onClick, closeBtnAriaLabel, isReadOnly, component, ouiaId } = this.props;
|
|
5493
5505
|
const Component = component;
|
|
5494
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(
|
|
5495
|
-
React__namespace.createElement("span", { ref: this.span, className: css(
|
|
5506
|
+
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)),
|
|
5507
|
+
React__namespace.createElement("span", { ref: this.span, className: css(styles$4.chipText), id: id }, children),
|
|
5496
5508
|
!isReadOnly && (React__namespace.createElement(Button, { onClick: onClick, variant: "plain", "aria-label": closeBtnAriaLabel, id: `remove_${id}`, "aria-labelledby": `remove_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
5497
5509
|
React__namespace.createElement(TimesIcon$1, { "aria-hidden": "true" })))));
|
|
5498
5510
|
}
|
|
@@ -5537,8 +5549,8 @@
|
|
|
5537
5549
|
const { categoryName, tooltipPosition } = this.props;
|
|
5538
5550
|
const { isTooltipVisible } = this.state;
|
|
5539
5551
|
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(
|
|
5552
|
+
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$5.chipGroupLabel) },
|
|
5553
|
+
React__namespace.createElement("span", { id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(styles$5.chipGroupLabel), id: id }, categoryName));
|
|
5542
5554
|
}
|
|
5543
5555
|
render() {
|
|
5544
5556
|
const _a = this.props, { categoryName, children, className, isClosable, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, onOverflowChipClick, numChips, expandedText, collapsedText, ouiaId,
|
|
@@ -5555,17 +5567,17 @@
|
|
|
5555
5567
|
const chipArray = !isOpen
|
|
5556
5568
|
? React__namespace.Children.toArray(children).slice(0, numChips)
|
|
5557
5569
|
: React__namespace.Children.toArray(children);
|
|
5558
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(
|
|
5559
|
-
React__namespace.createElement("div", { className: css(
|
|
5570
|
+
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)),
|
|
5571
|
+
React__namespace.createElement("div", { className: css(styles$5.chipGroupMain) },
|
|
5560
5572
|
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(
|
|
5573
|
+
React__namespace.createElement("ul", Object.assign({ className: css(styles$5.chipGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
|
|
5574
|
+
chipArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$5.chipGroupListItem), key: i }, child))),
|
|
5575
|
+
numChildren > numChips && (React__namespace.createElement("li", { className: css(styles$5.chipGroupListItem) },
|
|
5564
5576
|
React__namespace.createElement(Chip, { isOverflowChip: true, onClick: event => {
|
|
5565
5577
|
this.toggleCollapse();
|
|
5566
5578
|
onOverflowChipClick(event);
|
|
5567
5579
|
}, component: "button" }, isOpen ? expandedText : collapsedTextResult))))),
|
|
5568
|
-
isClosable && (React__namespace.createElement("div", { className: css(
|
|
5580
|
+
isClosable && (React__namespace.createElement("div", { className: css(styles$5.chipGroupClose) },
|
|
5569
5581
|
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
5582
|
React__namespace.createElement(TimesCircleIcon$1, { "aria-hidden": "true" }))))));
|
|
5571
5583
|
};
|
|
@@ -6249,7 +6261,7 @@
|
|
|
6249
6261
|
}
|
|
6250
6262
|
}
|
|
6251
6263
|
const hasOnClear = onClear !== Select.defaultProps.onClear;
|
|
6252
|
-
const clearBtn = (React__namespace.createElement("button", { className: css(
|
|
6264
|
+
const clearBtn = (React__namespace.createElement("button", { className: css(buttonStyles.button, buttonStyles.modifiers.plain, styles$6.selectToggleClear), onClick: e => {
|
|
6253
6265
|
this.clearSelection(e);
|
|
6254
6266
|
onClear(e);
|
|
6255
6267
|
e.stopPropagation();
|
|
@@ -6266,8 +6278,8 @@
|
|
|
6266
6278
|
}
|
|
6267
6279
|
if (hasInlineFilter) {
|
|
6268
6280
|
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(
|
|
6281
|
+
React__namespace.createElement("div", { key: "inline-filter", className: css(styles$6.selectMenuSearch) },
|
|
6282
|
+
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
6283
|
if (event.key === KeyTypes.ArrowUp) {
|
|
6272
6284
|
this.handleMenuKeys(0, 0, 'up');
|
|
6273
6285
|
event.preventDefault();
|
|
@@ -6369,46 +6381,46 @@
|
|
|
6369
6381
|
}
|
|
6370
6382
|
}
|
|
6371
6383
|
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(
|
|
6384
|
+
const menuContainer = footer ? React__namespace.createElement("div", { className: css(styles$6.selectMenu) },
|
|
6373
6385
|
" ",
|
|
6374
6386
|
innerMenu,
|
|
6375
6387
|
" ") : innerMenu;
|
|
6376
|
-
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(
|
|
6377
|
-
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(
|
|
6388
|
+
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));
|
|
6389
|
+
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
6390
|
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(
|
|
6391
|
+
customContent && (React__namespace.createElement("div", { className: css(styles$6.selectToggleWrapper) },
|
|
6392
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$6.selectToggleIcon) }, toggleIcon),
|
|
6393
|
+
React__namespace.createElement("span", { className: css(styles$6.selectToggleText) }, placeholderText))),
|
|
6382
6394
|
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(
|
|
6395
|
+
React__namespace.createElement("div", { className: css(styles$6.selectToggleWrapper) },
|
|
6396
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$6.selectToggleIcon) }, toggleIcon),
|
|
6397
|
+
React__namespace.createElement("span", { className: css(styles$6.selectToggleText) }, this.getDisplay(selections[0], 'node') || placeholderText || childPlaceholderText)),
|
|
6386
6398
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
6387
6399
|
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(
|
|
6400
|
+
React__namespace.createElement("div", { className: css(styles$6.selectToggleWrapper) },
|
|
6401
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$6.selectToggleIcon) }, toggleIcon),
|
|
6402
|
+
React__namespace.createElement("span", { className: css(styles$6.selectToggleText) }, placeholderText),
|
|
6403
|
+
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React__namespace.createElement("div", { className: css(styles$6.selectToggleBadge) },
|
|
6404
|
+
React__namespace.createElement("span", { className: css(badgeStyles.badge, badgeStyles.modifiers.read) }, this.generateSelectedBadge())))),
|
|
6393
6405
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
6394
6406
|
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(
|
|
6407
|
+
React__namespace.createElement("div", { className: css(styles$6.selectToggleWrapper) },
|
|
6408
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$6.selectToggleIcon) }, toggleIcon),
|
|
6409
|
+
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
6410
|
? typeaheadInputValue
|
|
6399
6411
|
: this.getDisplay(selections[0], 'text') || '', type: "text", onClick: this.onClick, onChange: this.onChange, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef })),
|
|
6400
6412
|
hasOnClear && (selections[0] || typeaheadInputValue) && clearBtn)),
|
|
6401
6413
|
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(
|
|
6414
|
+
React__namespace.createElement("div", { className: css(styles$6.selectToggleWrapper) },
|
|
6415
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$6.selectToggleIcon) }, toggleIcon),
|
|
6404
6416
|
selections && Array.isArray(selections) && selections.length > 0 && selectedChips,
|
|
6405
|
-
React__namespace.createElement("input", { className: css(
|
|
6417
|
+
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
6418
|
hasOnClear && ((selections && selections.length > 0) || typeaheadInputValue) && clearBtn)),
|
|
6407
|
-
validated === ValidatedOptions.success && (React__namespace.createElement("span", { className: css(
|
|
6419
|
+
validated === ValidatedOptions.success && (React__namespace.createElement("span", { className: css(styles$6.selectToggleStatusIcon) },
|
|
6408
6420
|
React__namespace.createElement(CheckCircleIcon$1, { "aria-hidden": "true" }))),
|
|
6409
|
-
validated === ValidatedOptions.error && (React__namespace.createElement("span", { className: css(
|
|
6421
|
+
validated === ValidatedOptions.error && (React__namespace.createElement("span", { className: css(styles$6.selectToggleStatusIcon) },
|
|
6410
6422
|
React__namespace.createElement(ExclamationCircleIcon$1, { "aria-hidden": "true" }))),
|
|
6411
|
-
validated === ValidatedOptions.warning && (React__namespace.createElement("span", { className: css(
|
|
6423
|
+
validated === ValidatedOptions.warning && (React__namespace.createElement("span", { className: css(styles$6.selectToggleStatusIcon) },
|
|
6412
6424
|
React__namespace.createElement(ExclamationTriangleIcon$1, { "aria-hidden": "true" })))),
|
|
6413
6425
|
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
6414
6426
|
const getParentElement = () => {
|
|
@@ -6506,11 +6518,11 @@
|
|
|
6506
6518
|
checkedProps.defaultChecked = defaultChecked;
|
|
6507
6519
|
}
|
|
6508
6520
|
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(
|
|
6521
|
+
return (React__namespace.createElement("div", { className: css(checkStyles.check, !label && checkStyles.modifiers.standalone, className) },
|
|
6522
|
+
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))),
|
|
6523
|
+
label && (React__namespace.createElement("label", { className: css(checkStyles.checkLabel, isDisabled && checkStyles.modifiers.disabled), htmlFor: props.id }, label)),
|
|
6524
|
+
description && React__namespace.createElement("span", { className: css(checkStyles.checkDescription) }, description),
|
|
6525
|
+
body && React__namespace.createElement("span", { className: css(checkStyles.checkBody) }, body)));
|
|
6514
6526
|
}
|
|
6515
6527
|
}
|
|
6516
6528
|
Checkbox.displayName = 'Checkbox';
|
|
@@ -6523,7 +6535,8 @@
|
|
|
6523
6535
|
ouiaSafe: true
|
|
6524
6536
|
};
|
|
6525
6537
|
|
|
6526
|
-
|
|
6538
|
+
Promise.resolve().then(function () { return popover; });
|
|
6539
|
+
var styles$3 = {
|
|
6527
6540
|
"button": "pf-c-button",
|
|
6528
6541
|
"modifiers": {
|
|
6529
6542
|
"noPadding": "pf-m-no-padding",
|
|
@@ -6562,25 +6575,25 @@
|
|
|
6562
6575
|
|
|
6563
6576
|
const PopoverContent = (_a) => {
|
|
6564
6577
|
var { className = null, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
6565
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(
|
|
6578
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$3.popoverContent, className) }, props), children));
|
|
6566
6579
|
};
|
|
6567
6580
|
PopoverContent.displayName = 'PopoverContent';
|
|
6568
6581
|
|
|
6569
6582
|
const PopoverBody = (_a) => {
|
|
6570
6583
|
var { children, id, className } = _a, props = __rest$1(_a, ["children", "id", "className"]);
|
|
6571
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(
|
|
6584
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$3.popoverBody, className), id: id }, props), children));
|
|
6572
6585
|
};
|
|
6573
6586
|
PopoverBody.displayName = 'PopoverBody';
|
|
6574
6587
|
|
|
6575
6588
|
const PopoverHeaderIcon = (_a) => {
|
|
6576
6589
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6577
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(
|
|
6590
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$3.popoverTitleIcon, className) }, props), children));
|
|
6578
6591
|
};
|
|
6579
6592
|
PopoverHeaderIcon.displayName = 'PopoverHeaderIcon';
|
|
6580
6593
|
|
|
6581
6594
|
const PopoverHeaderText = (_a) => {
|
|
6582
6595
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6583
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(
|
|
6596
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$3.popoverTitleText, className) }, props), children));
|
|
6584
6597
|
};
|
|
6585
6598
|
PopoverHeaderText.displayName = 'PopoverHeaderText';
|
|
6586
6599
|
|
|
@@ -6588,7 +6601,7 @@
|
|
|
6588
6601
|
var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = __rest$1(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
|
|
6589
6602
|
const HeadingLevel = titleHeadingLevel;
|
|
6590
6603
|
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(
|
|
6604
|
+
React__namespace.createElement(HeadingLevel, { className: css(styles$3.popoverTitle, icon && styles$3.modifiers.icon) },
|
|
6592
6605
|
icon && React__namespace.createElement(PopoverHeaderIcon, null, icon),
|
|
6593
6606
|
alertSeverityVariant && alertSeverityScreenReaderText && (React__namespace.createElement("span", { className: "pf-u-screen-reader" }, alertSeverityScreenReaderText)),
|
|
6594
6607
|
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 +6610,7 @@
|
|
|
6597
6610
|
|
|
6598
6611
|
const PopoverFooter = (_a) => {
|
|
6599
6612
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6600
|
-
return (React__namespace.createElement("footer", Object.assign({ className: css(
|
|
6613
|
+
return (React__namespace.createElement("footer", Object.assign({ className: css(styles$3.popoverFooter, className) }, props), children));
|
|
6601
6614
|
};
|
|
6602
6615
|
PopoverFooter.displayName = 'PopoverFooter';
|
|
6603
6616
|
|
|
@@ -6618,7 +6631,7 @@
|
|
|
6618
6631
|
|
|
6619
6632
|
const PopoverArrow = (_a) => {
|
|
6620
6633
|
var { className = '' } = _a, props = __rest$1(_a, ["className"]);
|
|
6621
|
-
return React__namespace.createElement("div", Object.assign({ className: css(
|
|
6634
|
+
return React__namespace.createElement("div", Object.assign({ className: css(styles$3.popoverArrow, className) }, props));
|
|
6622
6635
|
};
|
|
6623
6636
|
PopoverArrow.displayName = 'PopoverArrow';
|
|
6624
6637
|
|
|
@@ -6653,11 +6666,11 @@
|
|
|
6653
6666
|
PopoverPosition["rightEnd"] = "right-end";
|
|
6654
6667
|
})(PopoverPosition || (PopoverPosition = {}));
|
|
6655
6668
|
const alertStyle = {
|
|
6656
|
-
default:
|
|
6657
|
-
info:
|
|
6658
|
-
success:
|
|
6659
|
-
warning:
|
|
6660
|
-
danger:
|
|
6669
|
+
default: styles$3.modifiers.default,
|
|
6670
|
+
info: styles$3.modifiers.info,
|
|
6671
|
+
success: styles$3.modifiers.success,
|
|
6672
|
+
warning: styles$3.modifiers.warning,
|
|
6673
|
+
danger: styles$3.modifiers.danger
|
|
6661
6674
|
};
|
|
6662
6675
|
const Popover = (_a) => {
|
|
6663
6676
|
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 +6734,18 @@
|
|
|
6721
6734
|
}, 0);
|
|
6722
6735
|
};
|
|
6723
6736
|
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':
|
|
6737
|
+
top: styles$3.modifiers.top,
|
|
6738
|
+
bottom: styles$3.modifiers.bottom,
|
|
6739
|
+
left: styles$3.modifiers.left,
|
|
6740
|
+
right: styles$3.modifiers.right,
|
|
6741
|
+
'top-start': styles$3.modifiers.topLeft,
|
|
6742
|
+
'top-end': styles$3.modifiers.topRight,
|
|
6743
|
+
'bottom-start': styles$3.modifiers.bottomLeft,
|
|
6744
|
+
'bottom-end': styles$3.modifiers.bottomRight,
|
|
6745
|
+
'left-start': styles$3.modifiers.leftTop,
|
|
6746
|
+
'left-end': styles$3.modifiers.leftBottom,
|
|
6747
|
+
'right-start': styles$3.modifiers.rightTop,
|
|
6748
|
+
'right-end': styles$3.modifiers.rightBottom
|
|
6736
6749
|
};
|
|
6737
6750
|
const hasCustomMinWidth = minWidth !== popoverMinWidth.value;
|
|
6738
6751
|
const hasCustomMaxWidth = maxWidth !== popoverMaxWidth.value;
|
|
@@ -6808,7 +6821,7 @@
|
|
|
6808
6821
|
}
|
|
6809
6822
|
return node;
|
|
6810
6823
|
}
|
|
6811
|
-
}, preventScrollOnDeactivate: true, className: css(
|
|
6824
|
+
}, 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
6825
|
minWidth: hasCustomMinWidth ? minWidth : null,
|
|
6813
6826
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
6814
6827
|
opacity,
|
|
@@ -6851,7 +6864,8 @@
|
|
|
6851
6864
|
|
|
6852
6865
|
var GripVerticalIcon$1 = GripVerticalIcon;
|
|
6853
6866
|
|
|
6854
|
-
|
|
6867
|
+
Promise.resolve().then(function () { return emptyState; });
|
|
6868
|
+
var styles$2 = {
|
|
6855
6869
|
"button": "pf-c-button",
|
|
6856
6870
|
"emptyState": "pf-c-empty-state",
|
|
6857
6871
|
"emptyStateBody": "pf-c-empty-state__body",
|
|
@@ -6881,19 +6895,22 @@
|
|
|
6881
6895
|
})(EmptyStateVariant || (EmptyStateVariant = {}));
|
|
6882
6896
|
const EmptyState = (_a) => {
|
|
6883
6897
|
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(
|
|
6898
|
+
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),
|
|
6899
|
+
React__namespace.createElement("div", { className: css(styles$2.emptyStateContent) }, children)));
|
|
6886
6900
|
};
|
|
6887
6901
|
EmptyState.displayName = 'EmptyState';
|
|
6888
6902
|
|
|
6903
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6904
|
+
|
|
6889
6905
|
const Bullseye = (_a) => {
|
|
6890
6906
|
var { children = null, className = '', component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
6891
6907
|
const Component = component;
|
|
6892
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(
|
|
6908
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$c.bullseye, className) }, props), children));
|
|
6893
6909
|
};
|
|
6894
6910
|
Bullseye.displayName = 'Bullseye';
|
|
6895
6911
|
|
|
6896
|
-
|
|
6912
|
+
Promise.resolve().then(function () { return inlineEdit; });
|
|
6913
|
+
var inlineStyles = {
|
|
6897
6914
|
"button": "pf-c-button",
|
|
6898
6915
|
"inlineEdit": "pf-c-inline-edit",
|
|
6899
6916
|
"inlineEditAction": "pf-c-inline-edit__action",
|
|
@@ -6916,7 +6933,8 @@
|
|
|
6916
6933
|
}
|
|
6917
6934
|
};
|
|
6918
6935
|
|
|
6919
|
-
|
|
6936
|
+
Promise.resolve().then(function () { return table; });
|
|
6937
|
+
var styles$1 = {
|
|
6920
6938
|
"button": "pf-c-button",
|
|
6921
6939
|
"modifiers": {
|
|
6922
6940
|
"hidden": "pf-m-hidden",
|
|
@@ -6995,7 +7013,8 @@
|
|
|
6995
7013
|
"tableToggleIcon": "pf-c-table__toggle-icon"
|
|
6996
7014
|
};
|
|
6997
7015
|
|
|
6998
|
-
|
|
7016
|
+
Promise.resolve().then(function () { return tableGrid; });
|
|
7017
|
+
var stylesGrid = {
|
|
6999
7018
|
"button": "pf-c-button",
|
|
7000
7019
|
"modifiers": {
|
|
7001
7020
|
"grid": "pf-m-grid",
|
|
@@ -7027,7 +7046,8 @@
|
|
|
7027
7046
|
"tableToggleIcon": "pf-c-table__toggle-icon"
|
|
7028
7047
|
};
|
|
7029
7048
|
|
|
7030
|
-
|
|
7049
|
+
Promise.resolve().then(function () { return tableTreeView; });
|
|
7050
|
+
var stylesTreeView = {
|
|
7031
7051
|
"dropdown": "pf-c-dropdown",
|
|
7032
7052
|
"modifiers": {
|
|
7033
7053
|
"treeView": "pf-m-tree-view",
|
|
@@ -7197,9 +7217,9 @@
|
|
|
7197
7217
|
};
|
|
7198
7218
|
}, [tableRef, tableRef.current]);
|
|
7199
7219
|
const ouiaProps = useOUIAProps('Table', ouiaId, ouiaSafe);
|
|
7200
|
-
const grid = (_b =
|
|
7220
|
+
const grid = (_b = stylesGrid.modifiers) === null || _b === void 0 ? void 0 : _b[toCamel(gridBreakPoint || '').replace(/-?2xl/, '_2xl')];
|
|
7201
7221
|
const breakPointPrefix = `treeView${gridBreakPoint.charAt(0).toUpperCase() + gridBreakPoint.slice(1)}`;
|
|
7202
|
-
const treeGrid = (_c =
|
|
7222
|
+
const treeGrid = (_c = stylesTreeView.modifiers) === null || _c === void 0 ? void 0 : _c[toCamel(breakPointPrefix || '').replace(/-?2xl/, '_2xl')];
|
|
7203
7223
|
const handleKeys = (event) => {
|
|
7204
7224
|
if (isNested ||
|
|
7205
7225
|
!(tableRef && tableRef.current && tableRef.current.classList.contains('pf-m-tree-view')) || // implements roving tab-index to tree tables only
|
|
@@ -7216,21 +7236,21 @@
|
|
|
7216
7236
|
const getFocusableElement = (element) => element.querySelectorAll('button:not(:disabled), input:not(:disabled), a:not(:disabled)')[0];
|
|
7217
7237
|
handleArrows(event, rows, (element) => element === activeElement.closest('tr'), getFocusableElement, ['button', 'input', 'a'], undefined, false, true, false);
|
|
7218
7238
|
};
|
|
7219
|
-
return (React__namespace.createElement("table", Object.assign({ "aria-label": ariaLabel, role: role, className: css(className,
|
|
7239
|
+
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
7240
|
};
|
|
7221
7241
|
const TableComposable = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TableComposableBase, Object.assign({}, props, { innerRef: ref }))));
|
|
7222
7242
|
TableComposable.displayName = 'TableComposable';
|
|
7223
7243
|
|
|
7224
7244
|
const TheadBase = (_a) => {
|
|
7225
7245
|
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 &&
|
|
7246
|
+
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
7247
|
};
|
|
7228
7248
|
const Thead = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TheadBase, Object.assign({}, props, { innerRef: ref }))));
|
|
7229
7249
|
Thead.displayName = 'Thead';
|
|
7230
7250
|
|
|
7231
7251
|
const TbodyBase = (_a) => {
|
|
7232
7252
|
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 &&
|
|
7253
|
+
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
7254
|
};
|
|
7235
7255
|
const Tbody = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TbodyBase, Object.assign({}, props, { innerRef: ref }))));
|
|
7236
7256
|
Tbody.displayName = 'Tbody';
|
|
@@ -7247,12 +7267,13 @@
|
|
|
7247
7267
|
}
|
|
7248
7268
|
};
|
|
7249
7269
|
}
|
|
7250
|
-
return (React__namespace.createElement("tr", Object.assign({ className: css(className, isExpanded !== undefined &&
|
|
7270
|
+
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
7271
|
};
|
|
7252
7272
|
const Tr = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TrBase, Object.assign({}, props, { innerRef: ref }))));
|
|
7253
7273
|
Tr.displayName = 'Tr';
|
|
7254
7274
|
|
|
7255
|
-
|
|
7275
|
+
Promise.resolve().then(function () { return tableScrollable; });
|
|
7276
|
+
var styles = {
|
|
7256
7277
|
"modifiers": {
|
|
7257
7278
|
"borderRight": "pf-m-border-right",
|
|
7258
7279
|
"borderLeft": "pf-m-border-left",
|
|
@@ -7303,14 +7324,14 @@
|
|
|
7303
7324
|
}
|
|
7304
7325
|
onMouseEnterProp(event);
|
|
7305
7326
|
};
|
|
7306
|
-
const text = (React__namespace.createElement(Component, Object.assign({ onMouseEnter: onMouseEnter, className: css(className, wrapModifier &&
|
|
7327
|
+
const text = (React__namespace.createElement(Component, Object.assign({ onMouseEnter: onMouseEnter, className: css(className, wrapModifier && styles$1.modifiers[wrapModifier], styles$1.tableText) }, props), children));
|
|
7307
7328
|
return tooltip !== '' ? (React__namespace.createElement(Tooltip, Object.assign({ content: tooltip, isVisible: true }, tooltipProps), text)) : (text);
|
|
7308
7329
|
};
|
|
7309
7330
|
TableText.displayName = 'TableText';
|
|
7310
7331
|
|
|
7311
|
-
const HeaderCellInfoWrapper = ({ children, info, className, variant = 'tooltip', popoverProps, tooltipProps, ariaLabel }) => (React__namespace.createElement("div", { className: css(
|
|
7332
|
+
const HeaderCellInfoWrapper = ({ children, info, className, variant = 'tooltip', popoverProps, tooltipProps, ariaLabel }) => (React__namespace.createElement("div", { className: css(styles$1.tableColumnHelp, className) },
|
|
7312
7333
|
typeof children === 'string' ? React__namespace.createElement(TableText, null, children) : children,
|
|
7313
|
-
React__namespace.createElement("span", { className: css(
|
|
7334
|
+
React__namespace.createElement("span", { className: css(styles$1.tableColumnHelpAction) }, variant === 'tooltip' ? (React__namespace.createElement(Tooltip, Object.assign({ content: info }, tooltipProps),
|
|
7314
7335
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": ariaLabel || (typeof info === 'string' && info) || 'More info' },
|
|
7315
7336
|
React__namespace.createElement(HelpIcon$1, { noVerticalAlign: true })))) : (React__namespace.createElement(Popover, Object.assign({ bodyContent: info }, popoverProps),
|
|
7316
7337
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": ariaLabel || (typeof info === 'string' && info) || 'More info' },
|
|
@@ -7319,7 +7340,7 @@
|
|
|
7319
7340
|
|
|
7320
7341
|
const info = ({ tooltip, tooltipProps, popover, popoverProps, className, ariaLabel }) => {
|
|
7321
7342
|
const infoObj = (value) => ({
|
|
7322
|
-
className:
|
|
7343
|
+
className: styles$1.modifiers.help,
|
|
7323
7344
|
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
7345
|
});
|
|
7325
7346
|
return infoObj;
|
|
@@ -7378,17 +7399,17 @@
|
|
|
7378
7399
|
else {
|
|
7379
7400
|
SortedByIcon = ArrowsAltVIcon$1;
|
|
7380
7401
|
}
|
|
7381
|
-
return (React__namespace.createElement("button", Object.assign({}, props, { type: type, className: css(className,
|
|
7382
|
-
React__namespace.createElement("div", { className: css(className,
|
|
7402
|
+
return (React__namespace.createElement("button", Object.assign({}, props, { type: type, className: css(className, styles$1.tableButton), onClick: event => onSort && onSort(event) }),
|
|
7403
|
+
React__namespace.createElement("div", { className: css(className, styles$1.tableButtonContent) },
|
|
7383
7404
|
React__namespace.createElement(TableText, null, children),
|
|
7384
|
-
React__namespace.createElement("span", { className: css(
|
|
7405
|
+
React__namespace.createElement("span", { className: css(styles$1.tableSortIndicator) },
|
|
7385
7406
|
React__namespace.createElement(SortedByIcon, null)))));
|
|
7386
7407
|
};
|
|
7387
7408
|
SortColumn.displayName = 'SortColumn';
|
|
7388
7409
|
|
|
7389
7410
|
const sortableFavorites = (sort) => () => sortable(React__namespace.createElement(StarIcon$1, { "aria-hidden": true }), {
|
|
7390
7411
|
columnIndex: sort.columnIndex,
|
|
7391
|
-
className:
|
|
7412
|
+
className: styles$1.modifiers.favorite,
|
|
7392
7413
|
ariaLabel: 'Sort favorites',
|
|
7393
7414
|
column: {
|
|
7394
7415
|
extraParams: {
|
|
@@ -7420,7 +7441,7 @@
|
|
|
7420
7441
|
onSort && onSort(event, columnIndex, reversedDirection, extraData);
|
|
7421
7442
|
}
|
|
7422
7443
|
return {
|
|
7423
|
-
className: css(
|
|
7444
|
+
className: css(styles$1.tableSort, isSortedBy && styles$1.modifiers.selected, className),
|
|
7424
7445
|
'aria-sort': isSortedBy ? `${sortBy.direction}ending` : 'none',
|
|
7425
7446
|
children: (React__namespace.createElement(SortColumn, { isSortedBy: isSortedBy, sortDirection: isSortedBy ? sortBy.direction : '', onSort: sortClicked, "aria-label": ariaLabel }, label))
|
|
7426
7447
|
};
|
|
@@ -7476,7 +7497,7 @@
|
|
|
7476
7497
|
})), (rowData &&
|
|
7477
7498
|
(rowData.disableCheckbox || rowData.disableSelection) && {
|
|
7478
7499
|
disabled: true,
|
|
7479
|
-
className:
|
|
7500
|
+
className: checkStyles.checkInput
|
|
7480
7501
|
})), (!rowData && isHeaderSelectDisabled && { disabled: true }));
|
|
7481
7502
|
let selectName = 'check-all';
|
|
7482
7503
|
if (rowId !== -1 && selectVariant === exports.RowSelectVariant.checkbox) {
|
|
@@ -7486,7 +7507,7 @@
|
|
|
7486
7507
|
selectName = 'radioGroup';
|
|
7487
7508
|
}
|
|
7488
7509
|
return {
|
|
7489
|
-
className: css(
|
|
7510
|
+
className: css(styles$1.tableCheck),
|
|
7490
7511
|
component: 'td',
|
|
7491
7512
|
isVisible: !rowData || !rowData.fullWidth,
|
|
7492
7513
|
children: (React__namespace.createElement(SelectColumn, Object.assign({}, customProps, { selectVariant: selectVariant, onSelect: selectClick, name: selectName }), label))
|
|
@@ -7496,8 +7517,8 @@
|
|
|
7496
7517
|
const CollapseColumn = (_a) => {
|
|
7497
7518
|
var { className = '', children = null, isOpen, onToggle } = _a, props = __rest$2(_a, ["className", "children", "isOpen", "onToggle"]);
|
|
7498
7519
|
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(
|
|
7520
|
+
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 }),
|
|
7521
|
+
React__namespace.createElement("div", { className: css(styles$1.tableToggleIcon) },
|
|
7501
7522
|
React__namespace.createElement(AngleDownIcon$1, null)))),
|
|
7502
7523
|
children));
|
|
7503
7524
|
};
|
|
@@ -7505,7 +7526,7 @@
|
|
|
7505
7526
|
|
|
7506
7527
|
const ExpandableRowContent = (_a) => {
|
|
7507
7528
|
var { children = null } = _a, props = __rest$2(_a, ["children"]);
|
|
7508
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(
|
|
7529
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$1.tableExpandableRowContent) }), children));
|
|
7509
7530
|
};
|
|
7510
7531
|
ExpandableRowContent.displayName = 'ExpandableRowContent';
|
|
7511
7532
|
|
|
@@ -7536,7 +7557,7 @@
|
|
|
7536
7557
|
onCollapse && onCollapse(event, rowIndex, open, rowData, extraData);
|
|
7537
7558
|
}
|
|
7538
7559
|
return {
|
|
7539
|
-
className: ((rowData === null || rowData === void 0 ? void 0 : rowData.isOpen) !== undefined || rowId === -1) && css(
|
|
7560
|
+
className: ((rowData === null || rowData === void 0 ? void 0 : rowData.isOpen) !== undefined || rowId === -1) && css(styles$1.tableToggle),
|
|
7540
7561
|
isVisible: !(rowData === null || rowData === void 0 ? void 0 : rowData.fullWidth),
|
|
7541
7562
|
children: (React__namespace.createElement(CollapseColumn, Object.assign({ "aria-labelledby": `${rowLabeledBy}${rowId} ${expandId}${rowId}`, onToggle: onToggle, id: expandId + rowId }, customProps), value))
|
|
7542
7563
|
};
|
|
@@ -7548,13 +7569,13 @@
|
|
|
7548
7569
|
// todo: rewrite this logic, it is not type safe
|
|
7549
7570
|
colSpan: !rowData.cells || rowData.cells.length === 1 ? colSpan + !!rowData.fullWidth : 1,
|
|
7550
7571
|
id: contentId + rowIndex + (columnIndex ? '-' + columnIndex : ''),
|
|
7551
|
-
className: rowData.noPadding && css(
|
|
7572
|
+
className: rowData.noPadding && css(styles$1.modifiers.noPadding)
|
|
7552
7573
|
};
|
|
7553
7574
|
return expandedRowFormatter;
|
|
7554
7575
|
};
|
|
7555
7576
|
|
|
7556
7577
|
const cellWidth = (width) => () => ({
|
|
7557
|
-
className: css(
|
|
7578
|
+
className: css(styles$1.modifiers[typeof width === 'number' ? `width_${width}` : `width${capitalize(width)}`])
|
|
7558
7579
|
});
|
|
7559
7580
|
|
|
7560
7581
|
const visibilityModifiers = [
|
|
@@ -7571,10 +7592,10 @@
|
|
|
7571
7592
|
'visibleOn_2xl'
|
|
7572
7593
|
];
|
|
7573
7594
|
const Visibility = visibilityModifiers
|
|
7574
|
-
.filter(key =>
|
|
7595
|
+
.filter(key => styles$1.modifiers[key])
|
|
7575
7596
|
.reduce((acc, curr) => {
|
|
7576
7597
|
const key2 = curr.replace('_2xl', '2Xl');
|
|
7577
|
-
acc[key2] =
|
|
7598
|
+
acc[key2] = styles$1.modifiers[curr];
|
|
7578
7599
|
return acc;
|
|
7579
7600
|
}, {});
|
|
7580
7601
|
const classNames = (...classes) => () => ({
|
|
@@ -10248,7 +10269,7 @@
|
|
|
10248
10269
|
// selectable adds this but we don't want it
|
|
10249
10270
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10250
10271
|
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 &&
|
|
10272
|
+
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
10273
|
style: Object.assign({ '--pf-c-table__sticky-column--MinWidth': stickyMinWidth ? stickyMinWidth : undefined, '--pf-c-table__sticky-column--Left': stickyLeftOffset ? stickyLeftOffset : undefined }, props.style)
|
|
10253
10274
|
})), transformedChildren));
|
|
10254
10275
|
const canDefault = tooltip === '' ? typeof children === 'string' : true;
|
|
@@ -10328,7 +10349,7 @@
|
|
|
10328
10349
|
children: (React__namespace.createElement(ActionsColumn, { items: resolvedActions, dropdownPosition: dropdownPosition, dropdownDirection: dropdownDirection, isDisabled: resolvedIsDisabled, rowData: rowData, extraData: extraData, actionsToggle: actionsToggle }, label))
|
|
10329
10350
|
}
|
|
10330
10351
|
: {};
|
|
10331
|
-
return Object.assign({ className: css(
|
|
10352
|
+
return Object.assign({ className: css(styles$1.tableAction), style: { paddingRight: 0 }, isVisible: true }, renderProps);
|
|
10332
10353
|
};
|
|
10333
10354
|
|
|
10334
10355
|
const compoundExpand = (value, { rowIndex, columnIndex, rowData, column, property }) => {
|
|
@@ -10351,8 +10372,8 @@
|
|
|
10351
10372
|
onExpand && onExpand(event, rowIndex, columnIndex, props.isOpen, rowData, extraData);
|
|
10352
10373
|
}
|
|
10353
10374
|
return {
|
|
10354
|
-
className: css(
|
|
10355
|
-
children: props.isOpen !== undefined && (React__namespace.createElement("button", { type: "button", className: css(
|
|
10375
|
+
className: css(styles$1.tableCompoundExpansionToggle, props.isOpen && styles$1.modifiers.expanded),
|
|
10376
|
+
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
10377
|
React__namespace.createElement(TableText, null, title)))
|
|
10357
10378
|
};
|
|
10358
10379
|
};
|
|
@@ -10394,7 +10415,7 @@
|
|
|
10394
10415
|
}
|
|
10395
10416
|
const additionalProps = rowData.favoritesProps || {};
|
|
10396
10417
|
return {
|
|
10397
|
-
className: css(
|
|
10418
|
+
className: css(styles$1.tableFavorite, rowData && rowData.favorited && styles$1.modifiers.favorited),
|
|
10398
10419
|
isVisible: !rowData || !rowData.fullWidth,
|
|
10399
10420
|
children: (React__namespace.createElement(FavoritesCell, Object.assign({ rowIndex: rowIndex, onFavorite: favoritesClick, isFavorited: rowData && rowData.favorited }, additionalProps)))
|
|
10400
10421
|
};
|
|
@@ -10431,8 +10452,8 @@
|
|
|
10431
10452
|
const treeRow = (onCollapse, onCheckChange, onToggleRowDetails) => (value, { rowIndex, rowData }) => {
|
|
10432
10453
|
const { isExpanded, isDetailsExpanded, 'aria-level': level, 'aria-setsize': setsize, toggleAriaLabel, checkAriaLabel, showDetailsAriaLabel, isChecked, checkboxId, icon } = rowData.props;
|
|
10433
10454
|
const content = value.title || value;
|
|
10434
|
-
const text = (React__namespace.createElement("div", { className: css(
|
|
10435
|
-
icon && (React__namespace.createElement("span", { className: css(
|
|
10455
|
+
const text = (React__namespace.createElement("div", { className: css(stylesTreeView.tableTreeViewText), key: "tree-view-text" },
|
|
10456
|
+
icon && (React__namespace.createElement("span", { className: css(stylesTreeView.tableTreeViewIcon), key: "tree-view-text-icon" }, icon)),
|
|
10436
10457
|
React__namespace.createElement("span", { className: "pf-c-table__text", key: "table-text" }, content)));
|
|
10437
10458
|
const onChange = (isChecked, event) => {
|
|
10438
10459
|
onCheckChange(event, isChecked, rowIndex, content, rowData);
|
|
@@ -10440,15 +10461,15 @@
|
|
|
10440
10461
|
return {
|
|
10441
10462
|
component: 'th',
|
|
10442
10463
|
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(
|
|
10464
|
+
children: level !== undefined ? (React__namespace.createElement("div", { className: css(stylesTreeView.tableTreeViewMain) },
|
|
10465
|
+
setsize > 0 && (React__namespace.createElement("span", { className: css(stylesTreeView.tableToggle), key: "table-toggle" },
|
|
10466
|
+
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}` },
|
|
10467
|
+
React__namespace.createElement("div", { className: css(stylesTreeView.tableToggleIcon) },
|
|
10447
10468
|
React__namespace.createElement(AngleDownIcon$1, { "aria-hidden": "true" }))))),
|
|
10448
|
-
!!onCheckChange && (React__namespace.createElement("span", { className: css(
|
|
10469
|
+
!!onCheckChange && (React__namespace.createElement("span", { className: css(stylesTreeView.tableCheck), key: "table-check" },
|
|
10449
10470
|
React__namespace.createElement(Checkbox, { id: checkboxId || `checkbox_${rowIndex}`, "aria-label": checkAriaLabel || `Row ${rowIndex} checkbox`, isChecked: isChecked, onChange: onChange }))),
|
|
10450
10471
|
text,
|
|
10451
|
-
!!onToggleRowDetails && (React__namespace.createElement("span", { className: css(
|
|
10472
|
+
!!onToggleRowDetails && (React__namespace.createElement("span", { className: css(stylesTreeView.tableTreeViewDetailsToggle), key: "view-details-toggle" },
|
|
10452
10473
|
React__namespace.createElement(Button, { variant: "plain", "aria-expanded": isDetailsExpanded, "aria-label": showDetailsAriaLabel || 'Show row details', onClick: event => onToggleRowDetails && onToggleRowDetails(event, rowIndex, content, rowData) },
|
|
10453
10474
|
React__namespace.createElement("span", { className: "pf-c-table__details-toggle-icon" },
|
|
10454
10475
|
React__namespace.createElement(EllipsisHIcon$1, { "aria-hidden": true }))))))) : (text)
|
|
@@ -10559,7 +10580,7 @@
|
|
|
10559
10580
|
isVisible = null, children: mergedChildren = null, className: mergedClassName = '', component: MergedComponent = component } = merged, mergedProps = __rest$2(merged, ["isVisible", "children", "className", "component"]);
|
|
10560
10581
|
const treeTableTitleCell = (className && className.includes('pf-c-table__tree-view-title-cell')) ||
|
|
10561
10582
|
(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 &&
|
|
10583
|
+
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
10584
|
};
|
|
10564
10585
|
const Td = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TdBase, Object.assign({}, props, { innerRef: ref }))));
|
|
10565
10586
|
Td.displayName = 'Td';
|
|
@@ -11953,14 +11974,14 @@
|
|
|
11953
11974
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
11954
11975
|
saveAriaLabel, cancelAriaLabel, editAriaLabel } = _a, props = __rest$2(_a, ["onClick", "className", "editing", "valid", "saveAriaLabel", "cancelAriaLabel", "editAriaLabel"]);
|
|
11955
11976
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
11956
|
-
React__namespace.createElement("div", { className: css(
|
|
11957
|
-
React__namespace.createElement("div", { className: css(
|
|
11977
|
+
React__namespace.createElement("div", { className: css(inlineStyles.inlineEditGroup, inlineStyles.modifiers.iconGroup, 'pf-m-action-group') },
|
|
11978
|
+
React__namespace.createElement("div", { className: css(inlineStyles.inlineEditAction) },
|
|
11958
11979
|
React__namespace.createElement(Button, Object.assign({ "aria-label": saveAriaLabel }, props, { onClick: e => onClick(e, 'save'), variant: "plain" }),
|
|
11959
11980
|
React__namespace.createElement(CheckIcon$1, null))),
|
|
11960
|
-
React__namespace.createElement("div", { className: css(
|
|
11981
|
+
React__namespace.createElement("div", { className: css(inlineStyles.inlineEditAction) },
|
|
11961
11982
|
React__namespace.createElement(Button, Object.assign({ "aria-label": cancelAriaLabel }, props, { onClick: e => onClick(e, 'cancel'), variant: "plain" }),
|
|
11962
11983
|
React__namespace.createElement(TimesIcon$1, null)))),
|
|
11963
|
-
React__namespace.createElement("div", { className: css(
|
|
11984
|
+
React__namespace.createElement("div", { className: css(inlineStyles.inlineEditAction, inlineStyles.modifiers.enableEditable) },
|
|
11964
11985
|
React__namespace.createElement(Button, Object.assign({ "aria-label": editAriaLabel }, props, { onClick: e => onClick(e, 'edit'), variant: "plain" }),
|
|
11965
11986
|
React__namespace.createElement(PencilAltIcon$1, null)))));
|
|
11966
11987
|
};
|
|
@@ -12028,7 +12049,7 @@
|
|
|
12028
12049
|
return result;
|
|
12029
12050
|
}
|
|
12030
12051
|
return {
|
|
12031
|
-
className:
|
|
12052
|
+
className: styles$1.tableInlineEditAction,
|
|
12032
12053
|
component: 'td',
|
|
12033
12054
|
isVisible: true,
|
|
12034
12055
|
children: (React__namespace.createElement(EditColumn, { saveAriaLabel: (rowData && rowData.rowSaveBtnAriaLabel && rowData.rowSaveBtnAriaLabel(rowIndex)) ||
|
|
@@ -12039,19 +12060,19 @@
|
|
|
12039
12060
|
};
|
|
12040
12061
|
|
|
12041
12062
|
const breakWord = () => ({
|
|
12042
|
-
className:
|
|
12063
|
+
className: styles$1.modifiers.breakWord
|
|
12043
12064
|
});
|
|
12044
12065
|
const fitContent = () => ({
|
|
12045
|
-
className:
|
|
12066
|
+
className: styles$1.modifiers.fitContent
|
|
12046
12067
|
});
|
|
12047
12068
|
const nowrap = () => ({
|
|
12048
|
-
className:
|
|
12069
|
+
className: styles$1.modifiers.nowrap
|
|
12049
12070
|
});
|
|
12050
12071
|
const truncate = () => ({
|
|
12051
|
-
className:
|
|
12072
|
+
className: styles$1.modifiers.truncate
|
|
12052
12073
|
});
|
|
12053
12074
|
const wrappable = () => ({
|
|
12054
|
-
className:
|
|
12075
|
+
className: styles$1.modifiers.wrap
|
|
12055
12076
|
});
|
|
12056
12077
|
|
|
12057
12078
|
const textCenter = () => ({ textCenter: true });
|
|
@@ -12313,13 +12334,13 @@
|
|
|
12313
12334
|
|
|
12314
12335
|
const OuterScrollContainer = (_a) => {
|
|
12315
12336
|
var { children, className } = _a, props = __rest$2(_a, ["children", "className"]);
|
|
12316
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(className,
|
|
12337
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(className, styles.scrollOuterWrapper) }, props), children));
|
|
12317
12338
|
};
|
|
12318
12339
|
OuterScrollContainer.displayName = 'OuterScrollContainer';
|
|
12319
12340
|
|
|
12320
12341
|
const InnerScrollContainer = (_a) => {
|
|
12321
12342
|
var { children, className } = _a, props = __rest$2(_a, ["children", "className"]);
|
|
12322
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(className,
|
|
12343
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(className, styles.scrollInnerWrapper) }, props), children));
|
|
12323
12344
|
};
|
|
12324
12345
|
InnerScrollContainer.displayName = 'InnerScrollContainer';
|
|
12325
12346
|
|
|
@@ -12328,7 +12349,7 @@
|
|
|
12328
12349
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12329
12350
|
rowProps, row } = _a, props = __rest$2(_a, ["className", "rowProps", "row"]);
|
|
12330
12351
|
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 &&
|
|
12352
|
+
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
12353
|
};
|
|
12333
12354
|
TreeRowWrapper.displayName = 'TreeRowWrapper';
|
|
12334
12355
|
|
|
@@ -12405,7 +12426,7 @@
|
|
|
12405
12426
|
caption && React__namespace.createElement("caption", null, caption),
|
|
12406
12427
|
children)));
|
|
12407
12428
|
if (onRowEdit) {
|
|
12408
|
-
return React__namespace.createElement("form", { className: css(
|
|
12429
|
+
return React__namespace.createElement("form", { className: css(inlineStyles.inlineEdit) }, table);
|
|
12409
12430
|
}
|
|
12410
12431
|
return table;
|
|
12411
12432
|
}
|
|
@@ -12558,20 +12579,20 @@
|
|
|
12558
12579
|
};
|
|
12559
12580
|
const select = (React__namespace.createElement(Select, Object.assign({}, props.editableSelectProps, { onSelect: onSelectHandler }, (clearSelection && { onClear }), { isOpen: isOpen, onToggle: onToggle, selections: selections }), options));
|
|
12560
12581
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
12561
|
-
React__namespace.createElement("div", { className:
|
|
12562
|
-
React__namespace.createElement("div", { className:
|
|
12582
|
+
React__namespace.createElement("div", { className: inlineStyles.inlineEditValue }, Array.isArray(value) ? value.join(', ') : value),
|
|
12583
|
+
React__namespace.createElement("div", { className: inlineStyles.inlineEditInput },
|
|
12563
12584
|
select,
|
|
12564
|
-
React__namespace.createElement("div", { className: css(
|
|
12585
|
+
React__namespace.createElement("div", { className: css(formStyles.formHelperText, formStyles.modifiers.error), "aria-live": "polite" }, props.errorText))));
|
|
12565
12586
|
};
|
|
12566
12587
|
EditableSelectInputCell.displayName = 'EditableSelectInputCell';
|
|
12567
12588
|
|
|
12568
12589
|
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:
|
|
12590
|
+
React__namespace.createElement("div", { className: inlineStyles.inlineEditValue }, value),
|
|
12591
|
+
React__namespace.createElement("div", { className: inlineStyles.inlineEditInput },
|
|
12571
12592
|
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
12593
|
handleTextInputChange(newValue, event, rowIndex, cellIndex);
|
|
12573
12594
|
}, "aria-label": inputAriaLabel }),
|
|
12574
|
-
React__namespace.createElement("div", { className: css(
|
|
12595
|
+
React__namespace.createElement("div", { className: css(formStyles.formHelperText, formStyles.modifiers.error), "aria-live": "polite" }, props.errorText))));
|
|
12575
12596
|
EditableTextCell.displayName = 'EditableTextCell';
|
|
12576
12597
|
|
|
12577
12598
|
const ContextHeader = (_a) => {
|
|
@@ -12584,6 +12605,90 @@
|
|
|
12584
12605
|
};
|
|
12585
12606
|
TableHeader.displayName = 'TableHeader';
|
|
12586
12607
|
|
|
12608
|
+
var bullseye = /*#__PURE__*/Object.freeze({
|
|
12609
|
+
__proto__: null
|
|
12610
|
+
});
|
|
12611
|
+
|
|
12612
|
+
var title = /*#__PURE__*/Object.freeze({
|
|
12613
|
+
__proto__: null
|
|
12614
|
+
});
|
|
12615
|
+
|
|
12616
|
+
var button = /*#__PURE__*/Object.freeze({
|
|
12617
|
+
__proto__: null
|
|
12618
|
+
});
|
|
12619
|
+
|
|
12620
|
+
var spinner = /*#__PURE__*/Object.freeze({
|
|
12621
|
+
__proto__: null
|
|
12622
|
+
});
|
|
12623
|
+
|
|
12624
|
+
var tooltip = /*#__PURE__*/Object.freeze({
|
|
12625
|
+
__proto__: null
|
|
12626
|
+
});
|
|
12627
|
+
|
|
12628
|
+
var formControl = /*#__PURE__*/Object.freeze({
|
|
12629
|
+
__proto__: null
|
|
12630
|
+
});
|
|
12631
|
+
|
|
12632
|
+
var dropdown = /*#__PURE__*/Object.freeze({
|
|
12633
|
+
__proto__: null
|
|
12634
|
+
});
|
|
12635
|
+
|
|
12636
|
+
var divider = /*#__PURE__*/Object.freeze({
|
|
12637
|
+
__proto__: null
|
|
12638
|
+
});
|
|
12639
|
+
|
|
12640
|
+
var badge = /*#__PURE__*/Object.freeze({
|
|
12641
|
+
__proto__: null
|
|
12642
|
+
});
|
|
12643
|
+
|
|
12644
|
+
var select = /*#__PURE__*/Object.freeze({
|
|
12645
|
+
__proto__: null
|
|
12646
|
+
});
|
|
12647
|
+
|
|
12648
|
+
var form = /*#__PURE__*/Object.freeze({
|
|
12649
|
+
__proto__: null
|
|
12650
|
+
});
|
|
12651
|
+
|
|
12652
|
+
var check = /*#__PURE__*/Object.freeze({
|
|
12653
|
+
__proto__: null
|
|
12654
|
+
});
|
|
12655
|
+
|
|
12656
|
+
var chipGroup = /*#__PURE__*/Object.freeze({
|
|
12657
|
+
__proto__: null
|
|
12658
|
+
});
|
|
12659
|
+
|
|
12660
|
+
var chip = /*#__PURE__*/Object.freeze({
|
|
12661
|
+
__proto__: null
|
|
12662
|
+
});
|
|
12663
|
+
|
|
12664
|
+
var popover = /*#__PURE__*/Object.freeze({
|
|
12665
|
+
__proto__: null
|
|
12666
|
+
});
|
|
12667
|
+
|
|
12668
|
+
var emptyState = /*#__PURE__*/Object.freeze({
|
|
12669
|
+
__proto__: null
|
|
12670
|
+
});
|
|
12671
|
+
|
|
12672
|
+
var inlineEdit = /*#__PURE__*/Object.freeze({
|
|
12673
|
+
__proto__: null
|
|
12674
|
+
});
|
|
12675
|
+
|
|
12676
|
+
var table = /*#__PURE__*/Object.freeze({
|
|
12677
|
+
__proto__: null
|
|
12678
|
+
});
|
|
12679
|
+
|
|
12680
|
+
var tableGrid = /*#__PURE__*/Object.freeze({
|
|
12681
|
+
__proto__: null
|
|
12682
|
+
});
|
|
12683
|
+
|
|
12684
|
+
var tableTreeView = /*#__PURE__*/Object.freeze({
|
|
12685
|
+
__proto__: null
|
|
12686
|
+
});
|
|
12687
|
+
|
|
12688
|
+
var tableScrollable = /*#__PURE__*/Object.freeze({
|
|
12689
|
+
__proto__: null
|
|
12690
|
+
});
|
|
12691
|
+
|
|
12587
12692
|
exports.ActionsColumn = ActionsColumn;
|
|
12588
12693
|
exports.BodyCell = BodyCell;
|
|
12589
12694
|
exports.BodyWrapper = BodyWrapper;
|