@patternfly/react-table 4.41.0 → 4.43.2
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 +38 -0
- package/dist/esm/components/Table/base/provider.d.ts +5 -5
- package/dist/esm/components/Table/base/types.d.ts +5 -5
- package/dist/esm/components/TableComposable/InnerScrollContainer.d.ts +9 -0
- package/dist/esm/components/TableComposable/InnerScrollContainer.d.ts.map +1 -0
- package/dist/esm/components/TableComposable/InnerScrollContainer.js +10 -0
- package/dist/esm/components/TableComposable/InnerScrollContainer.js.map +1 -0
- package/dist/esm/components/TableComposable/OuterScrollContainer.d.ts +9 -0
- package/dist/esm/components/TableComposable/OuterScrollContainer.d.ts.map +1 -0
- package/dist/esm/components/TableComposable/OuterScrollContainer.js +10 -0
- package/dist/esm/components/TableComposable/OuterScrollContainer.js.map +1 -0
- package/dist/esm/components/TableComposable/TableComposable.d.ts +3 -1
- package/dist/esm/components/TableComposable/TableComposable.d.ts.map +1 -1
- package/dist/esm/components/TableComposable/TableComposable.js +12 -2
- package/dist/esm/components/TableComposable/TableComposable.js.map +1 -1
- package/dist/esm/components/TableComposable/Th.d.ts +11 -1
- package/dist/esm/components/TableComposable/Th.d.ts.map +1 -1
- package/dist/esm/components/TableComposable/Th.js +5 -2
- package/dist/esm/components/TableComposable/Th.js.map +1 -1
- package/dist/esm/components/TableComposable/Thead.d.ts +3 -1
- package/dist/esm/components/TableComposable/Thead.d.ts.map +1 -1
- package/dist/esm/components/TableComposable/Thead.js +2 -2
- package/dist/esm/components/TableComposable/Thead.js.map +1 -1
- package/dist/esm/components/TableComposable/Tr.d.ts +3 -1
- package/dist/esm/components/TableComposable/Tr.d.ts.map +1 -1
- package/dist/esm/components/TableComposable/Tr.js +2 -2
- package/dist/esm/components/TableComposable/Tr.js.map +1 -1
- package/dist/esm/components/TableComposable/index.d.ts +2 -0
- package/dist/esm/components/TableComposable/index.d.ts.map +1 -1
- package/dist/esm/components/TableComposable/index.js +2 -0
- package/dist/esm/components/TableComposable/index.js.map +1 -1
- package/dist/js/components/Table/base/provider.d.ts +5 -5
- package/dist/js/components/Table/base/types.d.ts +5 -5
- package/dist/js/components/TableComposable/InnerScrollContainer.d.ts +9 -0
- package/dist/js/components/TableComposable/InnerScrollContainer.d.ts.map +1 -0
- package/dist/js/components/TableComposable/InnerScrollContainer.js +14 -0
- package/dist/js/components/TableComposable/InnerScrollContainer.js.map +1 -0
- package/dist/js/components/TableComposable/OuterScrollContainer.d.ts +9 -0
- package/dist/js/components/TableComposable/OuterScrollContainer.d.ts.map +1 -0
- package/dist/js/components/TableComposable/OuterScrollContainer.js +14 -0
- package/dist/js/components/TableComposable/OuterScrollContainer.js.map +1 -0
- package/dist/js/components/TableComposable/TableComposable.d.ts +3 -1
- package/dist/js/components/TableComposable/TableComposable.d.ts.map +1 -1
- package/dist/js/components/TableComposable/TableComposable.js +12 -2
- package/dist/js/components/TableComposable/TableComposable.js.map +1 -1
- package/dist/js/components/TableComposable/Th.d.ts +11 -1
- package/dist/js/components/TableComposable/Th.d.ts.map +1 -1
- package/dist/js/components/TableComposable/Th.js +5 -2
- package/dist/js/components/TableComposable/Th.js.map +1 -1
- package/dist/js/components/TableComposable/Thead.d.ts +3 -1
- package/dist/js/components/TableComposable/Thead.d.ts.map +1 -1
- package/dist/js/components/TableComposable/Thead.js +2 -2
- package/dist/js/components/TableComposable/Thead.js.map +1 -1
- package/dist/js/components/TableComposable/Tr.d.ts +3 -1
- package/dist/js/components/TableComposable/Tr.d.ts.map +1 -1
- package/dist/js/components/TableComposable/Tr.js +2 -2
- package/dist/js/components/TableComposable/Tr.js.map +1 -1
- package/dist/js/components/TableComposable/index.d.ts +2 -0
- package/dist/js/components/TableComposable/index.d.ts.map +1 -1
- package/dist/js/components/TableComposable/index.js +2 -0
- package/dist/js/components/TableComposable/index.js.map +1 -1
- package/dist/umd/react-table.css +497 -90
- package/dist/umd/react-table.js +247 -208
- package/dist/umd/react-table.min.css +497 -90
- package/dist/umd/react-table.min.js +3 -3
- package/package.json +6 -6
- package/src/components/TableComposable/InnerScrollContainer.tsx +22 -0
- package/src/components/TableComposable/OuterScrollContainer.tsx +22 -0
- package/src/components/TableComposable/TableComposable.tsx +11 -0
- package/src/components/TableComposable/Th.tsx +26 -0
- package/src/components/TableComposable/Thead.tsx +12 -1
- package/src/components/TableComposable/Tr.tsx +5 -1
- package/src/components/TableComposable/examples/ComposableTable.md +1106 -0
- package/src/components/TableComposable/index.ts +2 -0
package/dist/umd/react-table.js
CHANGED
|
@@ -3331,11 +3331,11 @@
|
|
|
3331
3331
|
};
|
|
3332
3332
|
};
|
|
3333
3333
|
|
|
3334
|
-
var _default$
|
|
3334
|
+
var _default$k = {
|
|
3335
3335
|
"bullseye": "pf-l-bullseye"
|
|
3336
3336
|
};
|
|
3337
3337
|
|
|
3338
|
-
var _default$
|
|
3338
|
+
var _default$j = {
|
|
3339
3339
|
"modifiers": {
|
|
3340
3340
|
"4xl": "pf-m-4xl",
|
|
3341
3341
|
"3xl": "pf-m-3xl",
|
|
@@ -3369,11 +3369,11 @@
|
|
|
3369
3369
|
const Title = (_a) => {
|
|
3370
3370
|
var { className = '', children = '', headingLevel: HeadingLevel, size = headingLevelSizeMap[HeadingLevel], ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["className", "children", "headingLevel", "size", "ouiaId", "ouiaSafe"]);
|
|
3371
3371
|
const ouiaProps = useOUIAProps(Title.displayName, ouiaId, ouiaSafe);
|
|
3372
|
-
return (React__namespace.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(_default$
|
|
3372
|
+
return (React__namespace.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(_default$j.title, size && _default$j.modifiers[size], className) }), children));
|
|
3373
3373
|
};
|
|
3374
3374
|
Title.displayName = 'Title';
|
|
3375
3375
|
|
|
3376
|
-
var _default$
|
|
3376
|
+
var _default$i = {
|
|
3377
3377
|
"button": "pf-c-button",
|
|
3378
3378
|
"buttonIcon": "pf-c-button__icon",
|
|
3379
3379
|
"buttonProgress": "pf-c-button__progress",
|
|
@@ -3403,7 +3403,7 @@
|
|
|
3403
3403
|
"spinner": "pf-c-spinner"
|
|
3404
3404
|
};
|
|
3405
3405
|
|
|
3406
|
-
var _default$
|
|
3406
|
+
var _default$h = {
|
|
3407
3407
|
"modifiers": {
|
|
3408
3408
|
"sm": "pf-m-sm",
|
|
3409
3409
|
"md": "pf-m-md",
|
|
@@ -3429,10 +3429,10 @@
|
|
|
3429
3429
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3430
3430
|
className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', isSVG = false, diameter } = _a, props = __rest$1(_a, ["className", "size", 'aria-valuetext', "isSVG", "diameter"]);
|
|
3431
3431
|
const Component = isSVG ? 'svg' : 'span';
|
|
3432
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(_default$
|
|
3433
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
3434
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
3435
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
3432
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(_default$h.spinner, _default$h.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText }, (isSVG && { viewBox: '0 0 100 100' }), (diameter && { style: { '--pf-c-spinner--diameter': diameter } }), props), isSVG ? (React__namespace.createElement("circle", { className: _default$h.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3433
|
+
React__namespace.createElement("span", { className: css(_default$h.spinnerClipper) }),
|
|
3434
|
+
React__namespace.createElement("span", { className: css(_default$h.spinnerLeadBall) }),
|
|
3435
|
+
React__namespace.createElement("span", { className: css(_default$h.spinnerTailBall) })))));
|
|
3436
3436
|
};
|
|
3437
3437
|
Spinner.displayName = 'Spinner';
|
|
3438
3438
|
|
|
@@ -3473,12 +3473,12 @@
|
|
|
3473
3473
|
return 0;
|
|
3474
3474
|
}
|
|
3475
3475
|
};
|
|
3476
|
-
return (React__namespace.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isDisabled || isAriaDisabled, "aria-label": ariaLabel, className: css(_default$
|
|
3477
|
-
isLoading && (React__namespace.createElement("span", { className: css(_default$
|
|
3476
|
+
return (React__namespace.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isDisabled || isAriaDisabled, "aria-label": ariaLabel, className: css(_default$i.button, _default$i.modifiers[variant], isBlock && _default$i.modifiers.block, isDisabled && _default$i.modifiers.disabled, isAriaDisabled && _default$i.modifiers.ariaDisabled, isActive && _default$i.modifiers.active, isInline && variant === ButtonVariant.link && _default$i.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && _default$i.modifiers.danger, isLoading !== null && _default$i.modifiers.progress, isLoading && _default$i.modifiers.inProgress, isSmall && _default$i.modifiers.small, isLarge && _default$i.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : null, ref: innerRef }, ouiaProps),
|
|
3477
|
+
isLoading && (React__namespace.createElement("span", { className: css(_default$i.buttonProgress) },
|
|
3478
3478
|
React__namespace.createElement(Spinner, { size: spinnerSize.md, "aria-valuetext": spinnerAriaValueText }))),
|
|
3479
|
-
variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React__namespace.createElement("span", { className: css(_default$
|
|
3479
|
+
variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React__namespace.createElement("span", { className: css(_default$i.buttonIcon, _default$i.modifiers.start) }, icon)),
|
|
3480
3480
|
children,
|
|
3481
|
-
variant !== ButtonVariant.plain && icon && iconPosition === 'right' && (React__namespace.createElement("span", { className: css(_default$
|
|
3481
|
+
variant !== ButtonVariant.plain && icon && iconPosition === 'right' && (React__namespace.createElement("span", { className: css(_default$i.buttonIcon, _default$i.modifiers.end) }, icon))));
|
|
3482
3482
|
};
|
|
3483
3483
|
const Button = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(ButtonBase, Object.assign({ innerRef: ref }, props))));
|
|
3484
3484
|
Button.displayName = 'Button';
|
|
@@ -3615,7 +3615,7 @@
|
|
|
3615
3615
|
|
|
3616
3616
|
var ExclamationTriangleIcon$1 = ExclamationTriangleIcon;
|
|
3617
3617
|
|
|
3618
|
-
var _default$
|
|
3618
|
+
var _default$g = {
|
|
3619
3619
|
"modifiers": {
|
|
3620
3620
|
"top": "pf-m-top",
|
|
3621
3621
|
"topLeft": "pf-m-top-left",
|
|
@@ -3638,13 +3638,13 @@
|
|
|
3638
3638
|
|
|
3639
3639
|
const TooltipContent = (_a) => {
|
|
3640
3640
|
var { className, children, isLeftAligned } = _a, props = __rest$1(_a, ["className", "children", "isLeftAligned"]);
|
|
3641
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(_default$
|
|
3641
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(_default$g.tooltipContent, isLeftAligned && _default$g.modifiers.textAlignLeft, className) }, props), children));
|
|
3642
3642
|
};
|
|
3643
3643
|
TooltipContent.displayName = 'TooltipContent';
|
|
3644
3644
|
|
|
3645
3645
|
const TooltipArrow = (_a) => {
|
|
3646
3646
|
var { className } = _a, props = __rest$1(_a, ["className"]);
|
|
3647
|
-
return React__namespace.createElement("div", Object.assign({ className: css(_default$
|
|
3647
|
+
return React__namespace.createElement("div", Object.assign({ className: css(_default$g.tooltipArrow, className) }, props));
|
|
3648
3648
|
};
|
|
3649
3649
|
TooltipArrow.displayName = 'TooltipArrow';
|
|
3650
3650
|
|
|
@@ -3736,13 +3736,13 @@
|
|
|
3736
3736
|
}, exitDelay);
|
|
3737
3737
|
};
|
|
3738
3738
|
const positionModifiers = {
|
|
3739
|
-
top: _default$
|
|
3740
|
-
bottom: _default$
|
|
3741
|
-
left: _default$
|
|
3742
|
-
right: _default$
|
|
3739
|
+
top: _default$g.modifiers.top,
|
|
3740
|
+
bottom: _default$g.modifiers.bottom,
|
|
3741
|
+
left: _default$g.modifiers.left,
|
|
3742
|
+
right: _default$g.modifiers.right
|
|
3743
3743
|
};
|
|
3744
3744
|
const hasCustomMaxWidth = maxWidth !== tooltipMaxWidth.value;
|
|
3745
|
-
const content = (React__namespace.createElement("div", Object.assign({ className: css(_default$
|
|
3745
|
+
const content = (React__namespace.createElement("div", Object.assign({ className: css(_default$g.tooltip, className), role: "tooltip", id: id, style: {
|
|
3746
3746
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
3747
3747
|
opacity,
|
|
3748
3748
|
transition: getOpacityTransition(animationDuration)
|
|
@@ -3775,7 +3775,7 @@
|
|
|
3775
3775
|
};
|
|
3776
3776
|
Tooltip.displayName = 'Tooltip';
|
|
3777
3777
|
|
|
3778
|
-
var _default$
|
|
3778
|
+
var _default$f = {
|
|
3779
3779
|
"formControl": "pf-c-form-control",
|
|
3780
3780
|
"modifiers": {
|
|
3781
3781
|
"success": "pf-m-success",
|
|
@@ -3791,7 +3791,7 @@
|
|
|
3791
3791
|
}
|
|
3792
3792
|
};
|
|
3793
3793
|
|
|
3794
|
-
var _default$
|
|
3794
|
+
var _default$e = {
|
|
3795
3795
|
"badge": "pf-c-badge",
|
|
3796
3796
|
"check": "pf-c-check",
|
|
3797
3797
|
"divider": "pf-c-divider",
|
|
@@ -3812,13 +3812,14 @@
|
|
|
3812
3812
|
"menu": "pf-c-menu",
|
|
3813
3813
|
"modifiers": {
|
|
3814
3814
|
"fullHeight": "pf-m-full-height",
|
|
3815
|
+
"expanded": "pf-m-expanded",
|
|
3815
3816
|
"action": "pf-m-action",
|
|
3816
3817
|
"disabled": "pf-m-disabled",
|
|
3817
3818
|
"plain": "pf-m-plain",
|
|
3818
3819
|
"splitButton": "pf-m-split-button",
|
|
3819
|
-
"active": "pf-m-active",
|
|
3820
|
-
"expanded": "pf-m-expanded",
|
|
3821
3820
|
"primary": "pf-m-primary",
|
|
3821
|
+
"active": "pf-m-active",
|
|
3822
|
+
"secondary": "pf-m-secondary",
|
|
3822
3823
|
"top": "pf-m-top",
|
|
3823
3824
|
"alignRight": "pf-m-align-right",
|
|
3824
3825
|
"alignLeft": "pf-m-align-left",
|
|
@@ -3971,12 +3972,12 @@
|
|
|
3971
3972
|
return (React__namespace.createElement(DropdownArrowContext.Provider, { value: {
|
|
3972
3973
|
keyHandler: this.childKeyHandler,
|
|
3973
3974
|
sendRef: this.sendRef
|
|
3974
|
-
} }, component === 'div' ? (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React__namespace.createElement("div", { className: css(menuClass, position === DropdownPosition.right && _default$
|
|
3975
|
+
} }, component === 'div' ? (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React__namespace.createElement("div", { className: css(menuClass, position === DropdownPosition.right && _default$e.modifiers.alignRight, formatBreakpointMods(alignments, _default$e, 'align-'), className), hidden: !isOpen, onClick: event => onSelect && onSelect(event), ref: setMenuComponentRef }, children)))) : ((isGrouped && (React__namespace.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
3975
3976
|
const MenuComponent = (menuComponent || 'div');
|
|
3976
|
-
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === DropdownPosition.right && _default$
|
|
3977
|
+
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === DropdownPosition.right && _default$e.modifiers.alignRight, formatBreakpointMods(alignments, _default$e, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
3977
3978
|
}))) || (React__namespace.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
3978
3979
|
const MenuComponent = (menuComponent || component);
|
|
3979
|
-
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === DropdownPosition.right && _default$
|
|
3980
|
+
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === DropdownPosition.right && _default$e.modifiers.alignRight, formatBreakpointMods(alignments, _default$e, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
3980
3981
|
})))));
|
|
3981
3982
|
}
|
|
3982
3983
|
}
|
|
@@ -3991,7 +3992,7 @@
|
|
|
3991
3992
|
isGrouped: false,
|
|
3992
3993
|
setMenuComponentRef: null
|
|
3993
3994
|
};
|
|
3994
|
-
DropdownMenu.validToggleClasses = [_default$
|
|
3995
|
+
DropdownMenu.validToggleClasses = [_default$e.dropdownToggle, _default$e.dropdownToggleButton];
|
|
3995
3996
|
DropdownMenu.focusFirstRef = (refCollection) => {
|
|
3996
3997
|
if (refCollection && refCollection[0] && refCollection[0].focus) {
|
|
3997
3998
|
setTimeout(() => refCollection[0].focus());
|
|
@@ -4043,8 +4044,8 @@
|
|
|
4043
4044
|
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ baseClass, baseComponent, id: contextId, ouiaId, ouiaComponentType, ouiaSafe, alignments }) => {
|
|
4044
4045
|
const BaseComponent = baseComponent;
|
|
4045
4046
|
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));
|
|
4046
|
-
const popperContainer = (React__namespace.createElement("div", { className: css(baseClass, direction === DropdownDirection.up && _default$
|
|
4047
|
-
const mainContainer = (React__namespace.createElement(BaseComponent, Object.assign({}, props, { className: css(baseClass, direction === DropdownDirection.up && _default$
|
|
4047
|
+
const popperContainer = (React__namespace.createElement("div", { className: css(baseClass, direction === DropdownDirection.up && _default$e.modifiers.top, position === DropdownPosition.right && _default$e.modifiers.alignRight, isOpen && _default$e.modifiers.expanded, className) }, isOpen && menuContainer));
|
|
4048
|
+
const mainContainer = (React__namespace.createElement(BaseComponent, Object.assign({}, props, { className: css(baseClass, direction === DropdownDirection.up && _default$e.modifiers.top, position === DropdownPosition.right && _default$e.modifiers.alignRight, isOpen && _default$e.modifiers.expanded, isFullHeight && _default$e.modifiers.fullHeight, className), ref: this.baseComponentRef }, getOUIAProps(ouiaComponentType, ouiaId, ouiaSafe)),
|
|
4048
4049
|
React__namespace.Children.map(toggle, oneToggle => React__namespace.cloneElement(oneToggle, {
|
|
4049
4050
|
parentRef: this.baseComponentRef,
|
|
4050
4051
|
getMenuRef: this.getMenuComponentRef,
|
|
@@ -4089,7 +4090,7 @@
|
|
|
4089
4090
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4090
4091
|
ref, // Types of Ref are different for React.FC vs React.Component
|
|
4091
4092
|
ouiaId, ouiaSafe, alignments, contextProps } = _a, props = __rest$1(_a, ["onSelect", "ref", "ouiaId", "ouiaSafe", "alignments", "contextProps"]);
|
|
4092
|
-
return (React__namespace.createElement(DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass: _default$
|
|
4093
|
+
return (React__namespace.createElement(DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass: _default$e.dropdownToggleText, toggleIconClass: _default$e.dropdownToggleImage, toggleIndicatorClass: _default$e.dropdownToggleIcon, menuClass: _default$e.dropdownMenu, itemClass: _default$e.dropdownMenuItem, toggleClass: _default$e.dropdownToggle, baseClass: _default$e.dropdown, baseComponent: 'div', sectionClass: _default$e.dropdownGroup, sectionTitleClass: _default$e.dropdownGroupTitle, sectionComponent: 'section', disabledClass: _default$e.modifiers.disabled, plainTextClass: _default$e.modifiers.text, ouiaId: useOUIAId(Dropdown.displayName, ouiaId), ouiaSafe, ouiaComponentType: Dropdown.displayName, alignments }, contextProps) },
|
|
4093
4094
|
React__namespace.createElement(DropdownWithContext, Object.assign({}, props))));
|
|
4094
4095
|
};
|
|
4095
4096
|
Dropdown.displayName = 'Dropdown';
|
|
@@ -4163,7 +4164,7 @@
|
|
|
4163
4164
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4164
4165
|
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"]);
|
|
4165
4166
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
4166
|
-
let classes = css(icon && _default$
|
|
4167
|
+
let classes = css(icon && _default$e.modifiers.icon, isAriaDisabled && _default$e.modifiers.ariaDisabled, className);
|
|
4167
4168
|
if (component === 'a') {
|
|
4168
4169
|
additionalProps['aria-disabled'] = isDisabled || isAriaDisabled;
|
|
4169
4170
|
}
|
|
@@ -4178,17 +4179,17 @@
|
|
|
4178
4179
|
const renderDefaultComponent = (tag) => {
|
|
4179
4180
|
const Component = tag;
|
|
4180
4181
|
const componentContent = description ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4181
|
-
React__namespace.createElement("div", { className: _default$
|
|
4182
|
-
icon && React__namespace.createElement("span", { className: css(_default$
|
|
4182
|
+
React__namespace.createElement("div", { className: _default$e.dropdownMenuItemMain },
|
|
4183
|
+
icon && React__namespace.createElement("span", { className: css(_default$e.dropdownMenuItemIcon) }, icon),
|
|
4183
4184
|
children),
|
|
4184
|
-
React__namespace.createElement("div", { className: _default$
|
|
4185
|
-
icon && React__namespace.createElement("span", { className: css(_default$
|
|
4185
|
+
React__namespace.createElement("div", { className: _default$e.dropdownMenuItemDescription }, description))) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4186
|
+
icon && React__namespace.createElement("span", { className: css(_default$e.dropdownMenuItemIcon) }, icon),
|
|
4186
4187
|
children));
|
|
4187
4188
|
return (React__namespace.createElement(Component, Object.assign({}, additionalProps, (isDisabled || isAriaDisabled ? preventedEvents(inoperableEvents) : null), { href: href, ref: this.ref, className: classes, id: componentID }), componentContent));
|
|
4188
4189
|
};
|
|
4189
4190
|
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, itemClass, disabledClass, plainTextClass }) => {
|
|
4190
4191
|
if (this.props.role !== 'separator') {
|
|
4191
|
-
classes = css(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description && _default$
|
|
4192
|
+
classes = css(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description && _default$e.modifiers.description);
|
|
4192
4193
|
}
|
|
4193
4194
|
if (customChild) {
|
|
4194
4195
|
return React__namespace.cloneElement(customChild, {
|
|
@@ -4242,7 +4243,7 @@
|
|
|
4242
4243
|
};
|
|
4243
4244
|
DropdownItem.displayName = 'DropdownItem';
|
|
4244
4245
|
|
|
4245
|
-
var _default$
|
|
4246
|
+
var _default$d = {
|
|
4246
4247
|
"divider": "pf-c-divider",
|
|
4247
4248
|
"modifiers": {
|
|
4248
4249
|
"hidden": "pf-m-hidden",
|
|
@@ -4317,7 +4318,7 @@
|
|
|
4317
4318
|
const Divider = (_a) => {
|
|
4318
4319
|
var { className, component = DividerVariant.hr, isVertical = false, inset } = _a, props = __rest$1(_a, ["className", "component", "isVertical", "inset"]);
|
|
4319
4320
|
const Component = component;
|
|
4320
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(_default$
|
|
4321
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(_default$d.divider, isVertical && _default$d.modifiers.vertical, formatBreakpointMods(inset, _default$d), className) }, (component !== 'hr' && { role: 'separator' }), props)));
|
|
4321
4322
|
};
|
|
4322
4323
|
Divider.displayName = 'Divider';
|
|
4323
4324
|
|
|
@@ -4407,7 +4408,7 @@
|
|
|
4407
4408
|
isActive, bubbleEvent, onEnter, parentRef, getMenuRef,
|
|
4408
4409
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
4409
4410
|
id, type } = _a, props = __rest$1(_a, ["className", "children", "isOpen", "isDisabled", "isPlain", "isPrimary", "isSplitButton", "onToggle", 'aria-haspopup', "isActive", "bubbleEvent", "onEnter", "parentRef", "getMenuRef", "id", "type"]);
|
|
4410
|
-
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? _default$
|
|
4411
|
+
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? _default$e.dropdownToggleButton : toggleClass || _default$e.dropdownToggle, isActive && _default$e.modifiers.active, isPlain && _default$e.modifiers.plain, isPrimary && _default$e.modifiers.primary, className), type: type || 'button', onClick: event => onToggle(!isOpen, event), "aria-expanded": isOpen, "aria-haspopup": ariaHasPopup, onKeyDown: event => this.onKeyDown(event), disabled: isDisabled }), children))));
|
|
4411
4412
|
}
|
|
4412
4413
|
}
|
|
4413
4414
|
Toggle.displayName = 'Toggle';
|
|
@@ -4424,7 +4425,7 @@
|
|
|
4424
4425
|
bubbleEvent: false
|
|
4425
4426
|
};
|
|
4426
4427
|
|
|
4427
|
-
var _default$
|
|
4428
|
+
var _default$c = {
|
|
4428
4429
|
"badge": "pf-c-badge",
|
|
4429
4430
|
"modifiers": {
|
|
4430
4431
|
"read": "pf-m-read",
|
|
@@ -4621,7 +4622,7 @@
|
|
|
4621
4622
|
if (customIconDimensions) {
|
|
4622
4623
|
customIconStyle.backgroundSize = customIconDimensions;
|
|
4623
4624
|
}
|
|
4624
|
-
return (React__namespace.createElement("input", Object.assign({}, props, { onFocus: this.onFocus, onBlur: this.onBlur, className: css(_default$
|
|
4625
|
+
return (React__namespace.createElement("input", Object.assign({}, props, { onFocus: this.onFocus, onBlur: this.onBlur, className: css(_default$f.formControl, validated === ValidatedOptions.success && _default$f.modifiers.success, validated === ValidatedOptions.warning && _default$f.modifiers.warning, ((iconVariant && iconVariant !== 'search') || customIconUrl) && _default$f.modifiers.icon, iconVariant && _default$f.modifiers[iconVariant], className), onChange: this.handleChange, type: type, value: 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))));
|
|
4625
4626
|
}
|
|
4626
4627
|
}
|
|
4627
4628
|
TextInputBase.displayName = 'TextInputBase';
|
|
@@ -4640,7 +4641,7 @@
|
|
|
4640
4641
|
const TextInput = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TextInputBase, Object.assign({}, props, { innerRef: ref }))));
|
|
4641
4642
|
TextInput.displayName = 'TextInput';
|
|
4642
4643
|
|
|
4643
|
-
var _default$
|
|
4644
|
+
var _default$b = {
|
|
4644
4645
|
"check": "pf-c-check",
|
|
4645
4646
|
"checkLabel": "pf-c-check__label",
|
|
4646
4647
|
"chipGroup": "pf-c-chip-group",
|
|
@@ -4711,7 +4712,7 @@
|
|
|
4711
4712
|
|
|
4712
4713
|
var TimesCircleIcon$1 = TimesCircleIcon;
|
|
4713
4714
|
|
|
4714
|
-
var _default$
|
|
4715
|
+
var _default$a = {
|
|
4715
4716
|
"form": "pf-c-form",
|
|
4716
4717
|
"formActions": "pf-c-form__actions",
|
|
4717
4718
|
"formFieldGroup": "pf-c-form__field-group",
|
|
@@ -4758,7 +4759,7 @@
|
|
|
4758
4759
|
}
|
|
4759
4760
|
};
|
|
4760
4761
|
|
|
4761
|
-
var _default$
|
|
4762
|
+
var _default$9 = {
|
|
4762
4763
|
"check": "pf-c-check",
|
|
4763
4764
|
"checkBody": "pf-c-check__body",
|
|
4764
4765
|
"checkDescription": "pf-c-check__description",
|
|
@@ -4882,26 +4883,26 @@
|
|
|
4882
4883
|
console.error('Please provide an id to use the favorites feature.');
|
|
4883
4884
|
}
|
|
4884
4885
|
const generatedId = id || getUniqueId('select-option');
|
|
4885
|
-
const favoriteButton = (onFavorite) => (React__namespace.createElement("button", { className: css(_default$
|
|
4886
|
+
const favoriteButton = (onFavorite) => (React__namespace.createElement("button", { className: css(_default$b.selectMenuItem, _default$b.modifiers.action, _default$b.modifiers.favoriteAction), "aria-label": isFavorite ? ariaIsFavoriteLabel : ariaIsNotFavoriteLabel, onClick: () => {
|
|
4886
4887
|
onFavorite(generatedId.replace('favorite-', ''), isFavorite);
|
|
4887
4888
|
}, onKeyDown: event => {
|
|
4888
4889
|
this.onKeyDown(event, 1, () => onFavorite(generatedId.replace('favorite-', '')));
|
|
4889
4890
|
}, ref: this.favoriteRef },
|
|
4890
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
4891
|
+
React__namespace.createElement("span", { className: css(_default$b.selectMenuItemActionIcon) },
|
|
4891
4892
|
React__namespace.createElement(StarIcon$1, null))));
|
|
4892
|
-
const itemDisplay = itemCount ? (React__namespace.createElement("span", { className: css(_default$
|
|
4893
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
4894
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
4893
|
+
const itemDisplay = itemCount ? (React__namespace.createElement("span", { className: css(_default$b.selectMenuItemRow) },
|
|
4894
|
+
React__namespace.createElement("span", { className: css(_default$b.selectMenuItemText) }, children || (value && value.toString && value.toString())),
|
|
4895
|
+
React__namespace.createElement("span", { className: css(_default$b.selectMenuItemCount) }, itemCount))) : (children || value.toString());
|
|
4895
4896
|
const onViewMoreClick = (event) => {
|
|
4896
4897
|
// Set the index for the next item to focus after view more clicked, then call view more callback
|
|
4897
4898
|
setViewMoreNextIndex();
|
|
4898
4899
|
onClick(event);
|
|
4899
4900
|
};
|
|
4900
4901
|
return (React__namespace.createElement(SelectConsumer, null, ({ onSelect, onClose, variant, inputIdPrefix, onFavorite }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4901
|
-
variant !== SelectVariant.checkbox && (React__namespace.createElement("li", { id: generatedId, role: "presentation", className: css(isLoading && _default$
|
|
4902
|
+
variant !== SelectVariant.checkbox && (React__namespace.createElement("li", { id: generatedId, role: "presentation", className: css(isLoading && _default$b.selectListItem, !isLoad && !isLoading && _default$b.selectMenuWrapper, isFavorite && _default$b.modifiers.favorite, isFocused && _default$b.modifiers.focus, isLoading && _default$b.modifiers.loading), ref: this.liRef },
|
|
4902
4903
|
isLoading && children,
|
|
4903
4904
|
!isLoading && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4904
|
-
React__namespace.createElement(Component, Object.assign({}, props, { className: css(_default$
|
|
4905
|
+
React__namespace.createElement(Component, Object.assign({}, props, { className: css(_default$b.selectMenuItem, isLoad && _default$b.modifiers.load, isSelected && _default$b.modifiers.selected, isDisabled && _default$b.modifiers.disabled, description && _default$b.modifiers.description, isFavorite !== null && _default$b.modifiers.link, className), onClick: (event) => {
|
|
4905
4906
|
if (isLoad) {
|
|
4906
4907
|
onViewMoreClick(event);
|
|
4907
4908
|
event.stopPropagation();
|
|
@@ -4915,36 +4916,36 @@
|
|
|
4915
4916
|
this.onKeyDown(event, 0);
|
|
4916
4917
|
}, type: "button" }),
|
|
4917
4918
|
description && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4918
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
4919
|
+
React__namespace.createElement("span", { className: css(_default$b.selectMenuItemMain) },
|
|
4919
4920
|
itemDisplay,
|
|
4920
|
-
isSelected && (React__namespace.createElement("span", { className: css(_default$
|
|
4921
|
+
isSelected && (React__namespace.createElement("span", { className: css(_default$b.selectMenuItemIcon) },
|
|
4921
4922
|
React__namespace.createElement(CheckIcon$1, { "aria-hidden": true })))),
|
|
4922
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
4923
|
+
React__namespace.createElement("span", { className: css(_default$b.selectMenuItemDescription) }, description))),
|
|
4923
4924
|
!description && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4924
4925
|
itemDisplay,
|
|
4925
|
-
isSelected && (React__namespace.createElement("span", { className: css(_default$
|
|
4926
|
+
isSelected && (React__namespace.createElement("span", { className: css(_default$b.selectMenuItemIcon) },
|
|
4926
4927
|
React__namespace.createElement(CheckIcon$1, { "aria-hidden": true })))))),
|
|
4927
4928
|
isFavorite !== null && id && favoriteButton(onFavorite))))),
|
|
4928
|
-
variant === SelectVariant.checkbox && isLoad && (React__namespace.createElement("button", { className: css(_default$
|
|
4929
|
+
variant === SelectVariant.checkbox && isLoad && (React__namespace.createElement("button", { className: css(_default$b.selectMenuItem, _default$b.modifiers.load, isFocused && _default$b.modifiers.focus, className), onKeyDown: (event) => {
|
|
4929
4930
|
this.onKeyDown(event, 0, undefined, true);
|
|
4930
4931
|
}, onClick: (event) => {
|
|
4931
4932
|
onViewMoreClick(event);
|
|
4932
4933
|
event.stopPropagation();
|
|
4933
4934
|
}, ref: this.ref }, children || (value && value.toString && value.toString()))),
|
|
4934
|
-
variant === SelectVariant.checkbox && isLoading && (React__namespace.createElement("div", { className: css(_default$
|
|
4935
|
-
variant === SelectVariant.checkbox && !isNoResultsOption && !isLoading && !isLoad && (React__namespace.createElement("label", Object.assign({}, props, { className: css(_default$
|
|
4935
|
+
variant === SelectVariant.checkbox && isLoading && (React__namespace.createElement("div", { className: css(_default$b.selectListItem, isLoading && _default$b.modifiers.loading, className) }, children)),
|
|
4936
|
+
variant === SelectVariant.checkbox && !isNoResultsOption && !isLoading && !isLoad && (React__namespace.createElement("label", Object.assign({}, props, { className: css(_default$9.check, _default$b.selectMenuItem, isDisabled && _default$b.modifiers.disabled, description && _default$b.modifiers.description, className), onKeyDown: (event) => {
|
|
4936
4937
|
this.onKeyDown(event, 0, undefined, true);
|
|
4937
4938
|
} }),
|
|
4938
|
-
React__namespace.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css(_default$
|
|
4939
|
+
React__namespace.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css(_default$9.checkInput), type: "checkbox", onChange: event => {
|
|
4939
4940
|
if (!isDisabled) {
|
|
4940
4941
|
onClick(event);
|
|
4941
4942
|
onSelect(event, value);
|
|
4942
4943
|
}
|
|
4943
4944
|
}, ref: this.ref, checked: isChecked || false, disabled: isDisabled }),
|
|
4944
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
4945
|
-
description && React__namespace.createElement("div", { className: css(_default$
|
|
4945
|
+
React__namespace.createElement("span", { className: css(_default$9.checkLabel, isDisabled && _default$b.modifiers.disabled) }, itemDisplay),
|
|
4946
|
+
description && React__namespace.createElement("div", { className: css(_default$9.checkDescription) }, description))),
|
|
4946
4947
|
variant === SelectVariant.checkbox && isNoResultsOption && !isLoading && !isLoad && (React__namespace.createElement("div", null,
|
|
4947
|
-
React__namespace.createElement(Component, Object.assign({}, props, { className: css(_default$
|
|
4948
|
+
React__namespace.createElement(Component, Object.assign({}, props, { className: css(_default$b.selectMenuItem, isSelected && _default$b.modifiers.selected, isDisabled && _default$b.modifiers.disabled, className), role: "option", "aria-selected": isSelected || null, ref: this.ref, onKeyDown: (event) => {
|
|
4948
4949
|
this.onKeyDown(event, 0, undefined, true);
|
|
4949
4950
|
}, type: "button" }), itemDisplay)))))));
|
|
4950
4951
|
}
|
|
@@ -4973,8 +4974,8 @@
|
|
|
4973
4974
|
|
|
4974
4975
|
const SelectGroup = (_a) => {
|
|
4975
4976
|
var { children = [], className = '', label = '', titleId = '' } = _a, props = __rest$1(_a, ["children", "className", "label", "titleId"]);
|
|
4976
|
-
return (React__namespace.createElement(SelectConsumer, null, ({ variant }) => (React__namespace.createElement("div", Object.assign({}, props, { className: css(_default$
|
|
4977
|
-
React__namespace.createElement("div", { className: css(_default$
|
|
4977
|
+
return (React__namespace.createElement(SelectConsumer, null, ({ variant }) => (React__namespace.createElement("div", Object.assign({}, props, { className: css(_default$b.selectMenuGroup, className) }),
|
|
4978
|
+
React__namespace.createElement("div", { className: css(_default$b.selectMenuGroupTitle), id: titleId, "aria-hidden": true }, label),
|
|
4978
4979
|
variant === SelectVariant.checkbox ? children : React__namespace.createElement("ul", { role: "listbox" }, children)))));
|
|
4979
4980
|
};
|
|
4980
4981
|
SelectGroup.displayName = 'SelectGroup';
|
|
@@ -5047,7 +5048,7 @@
|
|
|
5047
5048
|
}
|
|
5048
5049
|
return React__namespace.cloneElement(group, {
|
|
5049
5050
|
titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
|
|
5050
|
-
children: group.props.children ? (React__namespace.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: css(_default$
|
|
5051
|
+
children: group.props.children ? (React__namespace.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: css(_default$b.selectMenuFieldset) }, React__namespace.Children.map(group.props.children, (option) => option.type === Divider
|
|
5051
5052
|
? option
|
|
5052
5053
|
: React__namespace.cloneElement(option, {
|
|
5053
5054
|
isChecked: this.checkForValue(option.props.value, checked),
|
|
@@ -5073,7 +5074,7 @@
|
|
|
5073
5074
|
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"]);
|
|
5074
5075
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5075
5076
|
let Component = 'div';
|
|
5076
|
-
const variantProps = Object.assign({ ref: innerRef, className: css(!footer ? _default$
|
|
5077
|
+
const variantProps = Object.assign({ ref: innerRef, className: css(!footer ? _default$b.selectMenu : 'pf-c-select__menu-list', position === SelectPosition.right && _default$b.modifiers.alignRight, className) }, (maxHeight && { style: { maxHeight, overflow: 'auto' } }));
|
|
5077
5078
|
const extendedChildren = () => variant === SelectVariant.checkbox
|
|
5078
5079
|
? this.extendCheckboxChildren(children)
|
|
5079
5080
|
: this.extendChildren(inputIdPrefix);
|
|
@@ -5082,10 +5083,10 @@
|
|
|
5082
5083
|
}
|
|
5083
5084
|
else if (hasInlineFilter) {
|
|
5084
5085
|
if (React__namespace.Children.count(children) === 0) {
|
|
5085
|
-
variantProps.children = React__namespace.createElement("fieldset", { className: css(_default$
|
|
5086
|
+
variantProps.children = React__namespace.createElement("fieldset", { className: css(_default$b.selectMenuFieldset) });
|
|
5086
5087
|
}
|
|
5087
5088
|
else {
|
|
5088
|
-
variantProps.children = (React__namespace.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: css(_default$
|
|
5089
|
+
variantProps.children = (React__namespace.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: css(_default$a.formFieldset) },
|
|
5089
5090
|
children.shift(),
|
|
5090
5091
|
extendedChildren()));
|
|
5091
5092
|
}
|
|
@@ -5101,7 +5102,7 @@
|
|
|
5101
5102
|
}
|
|
5102
5103
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5103
5104
|
React__namespace.createElement(Component, Object.assign({}, variantProps, props)),
|
|
5104
|
-
footer && (React__namespace.createElement("div", { className: css(_default$
|
|
5105
|
+
footer && (React__namespace.createElement("div", { className: css(_default$b.selectMenuFooter), ref: footerRef }, footer))));
|
|
5105
5106
|
}
|
|
5106
5107
|
render() {
|
|
5107
5108
|
return React__namespace.createElement(SelectConsumer, null, context => this.renderSelectMenu(context));
|
|
@@ -5255,7 +5256,7 @@
|
|
|
5255
5256
|
'aria-haspopup': (variant !== SelectVariant.checkbox && 'listbox') || null
|
|
5256
5257
|
};
|
|
5257
5258
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5258
|
-
!isTypeahead && (React__namespace.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: css(_default$
|
|
5259
|
+
!isTypeahead && (React__namespace.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: css(_default$b.selectToggle, hasPlaceholderStyle && _default$b.modifiers.placeholder, isDisabled && _default$b.modifiers.disabled, isPlain && _default$b.modifiers.plain, isActive && _default$b.modifiers.active, className), "aria-label": ariaLabel,
|
|
5259
5260
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5260
5261
|
onClick: _event => {
|
|
5261
5262
|
onToggle(!isOpen);
|
|
@@ -5264,9 +5265,9 @@
|
|
|
5264
5265
|
}
|
|
5265
5266
|
}, onKeyDown: this.onKeyDown, disabled: isDisabled }),
|
|
5266
5267
|
children,
|
|
5267
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
5268
|
+
React__namespace.createElement("span", { className: css(_default$b.selectToggleArrow) },
|
|
5268
5269
|
React__namespace.createElement(CaretDownIcon$1, null)))),
|
|
5269
|
-
isTypeahead && (React__namespace.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css(_default$
|
|
5270
|
+
isTypeahead && (React__namespace.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css(_default$b.selectToggle, hasPlaceholderStyle && _default$b.modifiers.placeholder, isDisabled && _default$b.modifiers.disabled, isPlain && _default$b.modifiers.plain, isTypeahead && _default$b.modifiers.typeahead, className),
|
|
5270
5271
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5271
5272
|
onClick: _event => {
|
|
5272
5273
|
if (!isDisabled) {
|
|
@@ -5274,7 +5275,7 @@
|
|
|
5274
5275
|
}
|
|
5275
5276
|
}, onKeyDown: this.onKeyDown }),
|
|
5276
5277
|
children,
|
|
5277
|
-
React__namespace.createElement("button", Object.assign({}, toggleProps, { type: type, className: css(_default$
|
|
5278
|
+
React__namespace.createElement("button", Object.assign({}, toggleProps, { type: type, className: css(_default$i.button, _default$b.selectToggleButton, _default$b.modifiers.plain), "aria-label": ariaLabel, onClick: _event => {
|
|
5278
5279
|
onToggle(!isOpen);
|
|
5279
5280
|
if (isOpen) {
|
|
5280
5281
|
onClose();
|
|
@@ -5283,7 +5284,7 @@
|
|
|
5283
5284
|
} }, ((variant === SelectVariant.typeahead || variant === SelectVariant.typeaheadMulti) && {
|
|
5284
5285
|
tabIndex: -1
|
|
5285
5286
|
}), { disabled: isDisabled }),
|
|
5286
|
-
React__namespace.createElement(CaretDownIcon$1, { className: css(_default$
|
|
5287
|
+
React__namespace.createElement(CaretDownIcon$1, { className: css(_default$b.selectToggleArrow) }))))));
|
|
5287
5288
|
}
|
|
5288
5289
|
}
|
|
5289
5290
|
SelectToggle.displayName = 'SelectToggle';
|
|
@@ -5306,7 +5307,7 @@
|
|
|
5306
5307
|
onClickTypeaheadToggleButton: () => { }
|
|
5307
5308
|
};
|
|
5308
5309
|
|
|
5309
|
-
var _default$
|
|
5310
|
+
var _default$8 = {
|
|
5310
5311
|
"chipGroup": "pf-c-chip-group",
|
|
5311
5312
|
"chipGroupClose": "pf-c-chip-group__close",
|
|
5312
5313
|
"chipGroupLabel": "pf-c-chip-group__label",
|
|
@@ -5318,7 +5319,7 @@
|
|
|
5318
5319
|
}
|
|
5319
5320
|
};
|
|
5320
5321
|
|
|
5321
|
-
var _default$
|
|
5322
|
+
var _default$7 = {
|
|
5322
5323
|
"badge": "pf-c-badge",
|
|
5323
5324
|
"button": "pf-c-button",
|
|
5324
5325
|
"chip": "pf-c-chip",
|
|
@@ -5337,8 +5338,8 @@
|
|
|
5337
5338
|
this.renderOverflowChip = () => {
|
|
5338
5339
|
const { children, className, onClick, ouiaId } = this.props;
|
|
5339
5340
|
const Component = this.props.component;
|
|
5340
|
-
return (React__namespace.createElement(Component, Object.assign({ onClick: onClick, className: css(_default$
|
|
5341
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
5341
|
+
return (React__namespace.createElement(Component, Object.assign({ onClick: onClick, className: css(_default$7.chip, _default$7.modifiers.overflow, className) }, (this.props.component === 'button' ? { type: 'button' } : {}), getOUIAProps('OverflowChip', ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
5342
|
+
React__namespace.createElement("span", { className: css(_default$7.chipText) }, children)));
|
|
5342
5343
|
};
|
|
5343
5344
|
this.renderChip = (randomId) => {
|
|
5344
5345
|
const { children, tooltipPosition } = this.props;
|
|
@@ -5360,8 +5361,8 @@
|
|
|
5360
5361
|
renderInnerChip(id) {
|
|
5361
5362
|
const { children, className, onClick, closeBtnAriaLabel, isReadOnly, component, ouiaId } = this.props;
|
|
5362
5363
|
const Component = component;
|
|
5363
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(_default$
|
|
5364
|
-
React__namespace.createElement("span", { ref: this.span, className: css(_default$
|
|
5364
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(_default$7.chip, className) }, (this.state.isTooltipVisible && { tabIndex: 0 }), getOUIAProps(Chip.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
5365
|
+
React__namespace.createElement("span", { ref: this.span, className: css(_default$7.chipText), id: id }, children),
|
|
5365
5366
|
!isReadOnly && (React__namespace.createElement(Button, { onClick: onClick, variant: "plain", "aria-label": closeBtnAriaLabel, id: `remove_${id}`, "aria-labelledby": `remove_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
5366
5367
|
React__namespace.createElement(TimesIcon$1, { "aria-hidden": "true" })))));
|
|
5367
5368
|
}
|
|
@@ -5406,8 +5407,8 @@
|
|
|
5406
5407
|
const { categoryName, tooltipPosition } = this.props;
|
|
5407
5408
|
const { isTooltipVisible } = this.state;
|
|
5408
5409
|
return isTooltipVisible ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: categoryName },
|
|
5409
|
-
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(_default$
|
|
5410
|
-
React__namespace.createElement("span", { "aria-hidden": "true" }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(_default$
|
|
5410
|
+
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(_default$8.chipGroupLabel), id: id, "aria-label": categoryName },
|
|
5411
|
+
React__namespace.createElement("span", { "aria-hidden": "true" }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(_default$8.chipGroupLabel), "aria-hidden": "true", id: id }, categoryName));
|
|
5411
5412
|
}
|
|
5412
5413
|
render() {
|
|
5413
5414
|
const _a = this.props, { categoryName, children, className, isClosable, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, onOverflowChipClick, numChips, expandedText, collapsedText, ouiaId,
|
|
@@ -5424,17 +5425,17 @@
|
|
|
5424
5425
|
const chipArray = !isOpen
|
|
5425
5426
|
? React__namespace.Children.toArray(children).slice(0, numChips)
|
|
5426
5427
|
: React__namespace.Children.toArray(children);
|
|
5427
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(_default$
|
|
5428
|
-
React__namespace.createElement("div", { className: css(_default$
|
|
5428
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(_default$8.chipGroup, className, categoryName && _default$8.modifiers.category) }, getOUIAProps(ChipGroup.displayName, ouiaId)),
|
|
5429
|
+
React__namespace.createElement("div", { className: css(_default$8.chipGroupMain) },
|
|
5429
5430
|
categoryName && this.renderLabel(id),
|
|
5430
|
-
React__namespace.createElement("ul", Object.assign({ className: css(_default$
|
|
5431
|
-
chipArray.map((child, i) => (React__namespace.createElement("li", { className: css(_default$
|
|
5432
|
-
numChildren > numChips && (React__namespace.createElement("li", { className: css(_default$
|
|
5431
|
+
React__namespace.createElement("ul", Object.assign({ className: css(_default$8.chipGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
|
|
5432
|
+
chipArray.map((child, i) => (React__namespace.createElement("li", { className: css(_default$8.chipGroupListItem), key: i }, child))),
|
|
5433
|
+
numChildren > numChips && (React__namespace.createElement("li", { className: css(_default$8.chipGroupListItem) },
|
|
5433
5434
|
React__namespace.createElement(Chip, { isOverflowChip: true, onClick: event => {
|
|
5434
5435
|
this.toggleCollapse();
|
|
5435
5436
|
onOverflowChipClick(event);
|
|
5436
5437
|
}, component: "button" }, isOpen ? expandedText : collapsedTextResult))))),
|
|
5437
|
-
isClosable && (React__namespace.createElement("div", { className: css(_default$
|
|
5438
|
+
isClosable && (React__namespace.createElement("div", { className: css(_default$8.chipGroupClose) },
|
|
5438
5439
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
5439
5440
|
React__namespace.createElement(TimesCircleIcon$1, { "aria-hidden": "true" }))))));
|
|
5440
5441
|
};
|
|
@@ -5959,7 +5960,7 @@
|
|
|
5959
5960
|
}
|
|
5960
5961
|
}
|
|
5961
5962
|
const hasOnClear = onClear !== Select.defaultProps.onClear;
|
|
5962
|
-
const clearBtn = (React__namespace.createElement("button", { className: css(_default$
|
|
5963
|
+
const clearBtn = (React__namespace.createElement("button", { className: css(_default$i.button, _default$i.modifiers.plain, _default$b.selectToggleClear), onClick: e => {
|
|
5963
5964
|
this.clearSelection(e);
|
|
5964
5965
|
onClear(e);
|
|
5965
5966
|
}, "aria-label": clearSelectionsAriaLabel, type: "button", disabled: isDisabled, ref: this.clearRef, onKeyDown: event => {
|
|
@@ -5975,8 +5976,8 @@
|
|
|
5975
5976
|
}
|
|
5976
5977
|
if (hasInlineFilter) {
|
|
5977
5978
|
const filterBox = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5978
|
-
React__namespace.createElement("div", { key: "inline-filter", className: css(_default$
|
|
5979
|
-
React__namespace.createElement("input", { key: "inline-filter-input", type: "search", className: css(_default$
|
|
5979
|
+
React__namespace.createElement("div", { key: "inline-filter", className: css(_default$b.selectMenuSearch) },
|
|
5980
|
+
React__namespace.createElement("input", { key: "inline-filter-input", type: "search", className: css(_default$f.formControl, _default$f.modifiers.search), onChange: this.onChange, placeholder: inlineFilterPlaceholderText, onKeyDown: event => {
|
|
5980
5981
|
if (event.key === KeyTypes.ArrowUp) {
|
|
5981
5982
|
this.handleMenuKeys(0, 0, 'up');
|
|
5982
5983
|
event.preventDefault();
|
|
@@ -6061,46 +6062,46 @@
|
|
|
6061
6062
|
}
|
|
6062
6063
|
}
|
|
6063
6064
|
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));
|
|
6064
|
-
const menuContainer = footer ? React__namespace.createElement("div", { className: css(_default$
|
|
6065
|
+
const menuContainer = footer ? React__namespace.createElement("div", { className: css(_default$b.selectMenu) },
|
|
6065
6066
|
" ",
|
|
6066
6067
|
innerMenu,
|
|
6067
6068
|
" ") : innerMenu;
|
|
6068
|
-
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(_default$
|
|
6069
|
-
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(_default$
|
|
6069
|
+
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(_default$b.select, isOpen && _default$b.modifiers.expanded, validated === ValidatedOptions.success && _default$b.modifiers.success, validated === ValidatedOptions.warning && _default$b.modifiers.warning, validated === ValidatedOptions.error && _default$b.modifiers.invalid, direction === SelectDirection.up && _default$b.modifiers.top, className) }, (width && { style: { width } }), (validated !== ValidatedOptions.default && { 'aria-describedby': ariaDescribedby }), (validated !== ValidatedOptions.default && { 'aria-invalid': ariaInvalid })), isOpen && menuContainer));
|
|
6070
|
+
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(_default$b.select, isOpen && _default$b.modifiers.expanded, validated === ValidatedOptions.success && _default$b.modifiers.success, validated === ValidatedOptions.warning && _default$b.modifiers.warning, validated === ValidatedOptions.error && _default$b.modifiers.invalid, direction === SelectDirection.up && _default$b.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 })),
|
|
6070
6071
|
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, isDisabled: isDisabled, hasClearButton: hasOnClear, hasFooter: footer !== undefined, onClickTypeaheadToggleButton: this.onClickTypeaheadToggleButton }),
|
|
6071
|
-
customContent && (React__namespace.createElement("div", { className: css(_default$
|
|
6072
|
-
toggleIcon && React__namespace.createElement("span", { className: css(_default$
|
|
6073
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
6072
|
+
customContent && (React__namespace.createElement("div", { className: css(_default$b.selectToggleWrapper) },
|
|
6073
|
+
toggleIcon && React__namespace.createElement("span", { className: css(_default$b.selectToggleIcon) }, toggleIcon),
|
|
6074
|
+
React__namespace.createElement("span", { className: css(_default$b.selectToggleText) }, placeholderText))),
|
|
6074
6075
|
variant === SelectVariant.single && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6075
|
-
React__namespace.createElement("div", { className: css(_default$
|
|
6076
|
-
toggleIcon && React__namespace.createElement("span", { className: css(_default$
|
|
6077
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
6076
|
+
React__namespace.createElement("div", { className: css(_default$b.selectToggleWrapper) },
|
|
6077
|
+
toggleIcon && React__namespace.createElement("span", { className: css(_default$b.selectToggleIcon) }, toggleIcon),
|
|
6078
|
+
React__namespace.createElement("span", { className: css(_default$b.selectToggleText) }, this.getDisplay(selections[0], 'node') || placeholderText || childPlaceholderText)),
|
|
6078
6079
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
6079
6080
|
variant === SelectVariant.checkbox && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6080
|
-
React__namespace.createElement("div", { className: css(_default$
|
|
6081
|
-
toggleIcon && React__namespace.createElement("span", { className: css(_default$
|
|
6082
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
6083
|
-
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React__namespace.createElement("div", { className: css(_default$
|
|
6084
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
6081
|
+
React__namespace.createElement("div", { className: css(_default$b.selectToggleWrapper) },
|
|
6082
|
+
toggleIcon && React__namespace.createElement("span", { className: css(_default$b.selectToggleIcon) }, toggleIcon),
|
|
6083
|
+
React__namespace.createElement("span", { className: css(_default$b.selectToggleText) }, placeholderText),
|
|
6084
|
+
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React__namespace.createElement("div", { className: css(_default$b.selectToggleBadge) },
|
|
6085
|
+
React__namespace.createElement("span", { className: css(_default$c.badge, _default$c.modifiers.read) }, this.generateSelectedBadge())))),
|
|
6085
6086
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
6086
6087
|
variant === SelectVariant.typeahead && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6087
|
-
React__namespace.createElement("div", { className: css(_default$
|
|
6088
|
-
toggleIcon && React__namespace.createElement("span", { className: css(_default$
|
|
6089
|
-
React__namespace.createElement("input", { className: css(_default$
|
|
6088
|
+
React__namespace.createElement("div", { className: css(_default$b.selectToggleWrapper) },
|
|
6089
|
+
toggleIcon && React__namespace.createElement("span", { className: css(_default$b.selectToggleIcon) }, toggleIcon),
|
|
6090
|
+
React__namespace.createElement("input", { className: css(_default$f.formControl, _default$b.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-typeahead`, "aria-label": typeAheadAriaLabel, placeholder: placeholderText, value: typeaheadInputValue !== null
|
|
6090
6091
|
? typeaheadInputValue
|
|
6091
6092
|
: this.getDisplay(selections[0], 'text') || '', type: "text", onClick: this.onClick, onChange: this.onChange, autoComplete: "off", disabled: isDisabled, ref: this.inputRef })),
|
|
6092
6093
|
hasOnClear && (selections[0] || typeaheadInputValue) && clearBtn)),
|
|
6093
6094
|
variant === SelectVariant.typeaheadMulti && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6094
|
-
React__namespace.createElement("div", { className: css(_default$
|
|
6095
|
-
toggleIcon && React__namespace.createElement("span", { className: css(_default$
|
|
6095
|
+
React__namespace.createElement("div", { className: css(_default$b.selectToggleWrapper) },
|
|
6096
|
+
toggleIcon && React__namespace.createElement("span", { className: css(_default$b.selectToggleIcon) }, toggleIcon),
|
|
6096
6097
|
selections && Array.isArray(selections) && selections.length > 0 && selectedChips,
|
|
6097
|
-
React__namespace.createElement("input", { className: css(_default$
|
|
6098
|
+
React__namespace.createElement("input", { className: css(_default$f.formControl, _default$b.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: "off", disabled: isDisabled, ref: this.inputRef })),
|
|
6098
6099
|
hasOnClear && ((selections && selections.length > 0) || typeaheadInputValue) && clearBtn)),
|
|
6099
|
-
validated === ValidatedOptions.success && (React__namespace.createElement("span", { className: css(_default$
|
|
6100
|
+
validated === ValidatedOptions.success && (React__namespace.createElement("span", { className: css(_default$b.selectToggleStatusIcon) },
|
|
6100
6101
|
React__namespace.createElement(CheckCircleIcon$1, { "aria-hidden": "true" }))),
|
|
6101
|
-
validated === ValidatedOptions.error && (React__namespace.createElement("span", { className: css(_default$
|
|
6102
|
+
validated === ValidatedOptions.error && (React__namespace.createElement("span", { className: css(_default$b.selectToggleStatusIcon) },
|
|
6102
6103
|
React__namespace.createElement(ExclamationCircleIcon$1, { "aria-hidden": "true" }))),
|
|
6103
|
-
validated === ValidatedOptions.warning && (React__namespace.createElement("span", { className: css(_default$
|
|
6104
|
+
validated === ValidatedOptions.warning && (React__namespace.createElement("span", { className: css(_default$b.selectToggleStatusIcon) },
|
|
6104
6105
|
React__namespace.createElement(ExclamationTriangleIcon$1, { "aria-hidden": "true" })))),
|
|
6105
6106
|
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
6106
6107
|
const getParentElement = () => {
|
|
@@ -6188,11 +6189,11 @@
|
|
|
6188
6189
|
checkedProps.defaultChecked = defaultChecked;
|
|
6189
6190
|
}
|
|
6190
6191
|
checkedProps.checked = checkedProps.checked === null ? false : checkedProps.checked;
|
|
6191
|
-
return (React__namespace.createElement("div", { className: css(_default$
|
|
6192
|
-
React__namespace.createElement("input", Object.assign({}, props, { className: css(_default$
|
|
6193
|
-
label && (React__namespace.createElement("label", { className: css(_default$
|
|
6194
|
-
description && React__namespace.createElement("span", { className: css(_default$
|
|
6195
|
-
body && React__namespace.createElement("span", { className: css(_default$
|
|
6192
|
+
return (React__namespace.createElement("div", { className: css(_default$9.check, !label && _default$9.modifiers.standalone, className) },
|
|
6193
|
+
React__namespace.createElement("input", Object.assign({}, props, { className: css(_default$9.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))),
|
|
6194
|
+
label && (React__namespace.createElement("label", { className: css(_default$9.checkLabel, isDisabled && _default$9.modifiers.disabled), htmlFor: props.id }, label)),
|
|
6195
|
+
description && React__namespace.createElement("span", { className: css(_default$9.checkDescription) }, description),
|
|
6196
|
+
body && React__namespace.createElement("span", { className: css(_default$9.checkBody) }, body)));
|
|
6196
6197
|
}
|
|
6197
6198
|
}
|
|
6198
6199
|
Checkbox.displayName = 'Checkbox';
|
|
@@ -6231,7 +6232,7 @@
|
|
|
6231
6232
|
|
|
6232
6233
|
var GripVerticalIcon$1 = GripVerticalIcon;
|
|
6233
6234
|
|
|
6234
|
-
var _default$
|
|
6235
|
+
var _default$6 = {
|
|
6235
6236
|
"button": "pf-c-button",
|
|
6236
6237
|
"modifiers": {
|
|
6237
6238
|
"noPadding": "pf-m-no-padding",
|
|
@@ -6270,13 +6271,13 @@
|
|
|
6270
6271
|
|
|
6271
6272
|
const PopoverContent = (_a) => {
|
|
6272
6273
|
var { className = null, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
6273
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(_default$
|
|
6274
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(_default$6.popoverContent, className) }, props), children));
|
|
6274
6275
|
};
|
|
6275
6276
|
PopoverContent.displayName = 'PopoverContent';
|
|
6276
6277
|
|
|
6277
6278
|
const PopoverBody = (_a) => {
|
|
6278
6279
|
var { children, id } = _a, props = __rest$1(_a, ["children", "id"]);
|
|
6279
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(_default$
|
|
6280
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(_default$6.popoverBody), id: id }, props), children));
|
|
6280
6281
|
};
|
|
6281
6282
|
PopoverBody.displayName = 'PopoverBody';
|
|
6282
6283
|
|
|
@@ -6288,7 +6289,7 @@
|
|
|
6288
6289
|
|
|
6289
6290
|
const PopoverFooter = (_a) => {
|
|
6290
6291
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6291
|
-
return (React__namespace.createElement("footer", Object.assign({ className: css(_default$
|
|
6292
|
+
return (React__namespace.createElement("footer", Object.assign({ className: css(_default$6.popoverFooter, className) }, props), children));
|
|
6292
6293
|
};
|
|
6293
6294
|
PopoverFooter.displayName = 'PopoverFooter';
|
|
6294
6295
|
|
|
@@ -6309,7 +6310,7 @@
|
|
|
6309
6310
|
|
|
6310
6311
|
const PopoverArrow = (_a) => {
|
|
6311
6312
|
var { className = '' } = _a, props = __rest$1(_a, ["className"]);
|
|
6312
|
-
return React__namespace.createElement("div", Object.assign({ className: css(_default$
|
|
6313
|
+
return React__namespace.createElement("div", Object.assign({ className: css(_default$6.popoverArrow, className) }, props));
|
|
6313
6314
|
};
|
|
6314
6315
|
PopoverArrow.displayName = 'PopoverArrow';
|
|
6315
6316
|
|
|
@@ -6405,18 +6406,18 @@
|
|
|
6405
6406
|
}, 0);
|
|
6406
6407
|
};
|
|
6407
6408
|
const positionModifiers = {
|
|
6408
|
-
top: _default$
|
|
6409
|
-
bottom: _default$
|
|
6410
|
-
left: _default$
|
|
6411
|
-
right: _default$
|
|
6412
|
-
'top-start': _default$
|
|
6413
|
-
'top-end': _default$
|
|
6414
|
-
'bottom-start': _default$
|
|
6415
|
-
'bottom-end': _default$
|
|
6416
|
-
'left-start': _default$
|
|
6417
|
-
'left-end': _default$
|
|
6418
|
-
'right-start': _default$
|
|
6419
|
-
'right-end': _default$
|
|
6409
|
+
top: _default$6.modifiers.top,
|
|
6410
|
+
bottom: _default$6.modifiers.bottom,
|
|
6411
|
+
left: _default$6.modifiers.left,
|
|
6412
|
+
right: _default$6.modifiers.right,
|
|
6413
|
+
'top-start': _default$6.modifiers.topLeft,
|
|
6414
|
+
'top-end': _default$6.modifiers.topRight,
|
|
6415
|
+
'bottom-start': _default$6.modifiers.bottomLeft,
|
|
6416
|
+
'bottom-end': _default$6.modifiers.bottomRight,
|
|
6417
|
+
'left-start': _default$6.modifiers.leftTop,
|
|
6418
|
+
'left-end': _default$6.modifiers.leftBottom,
|
|
6419
|
+
'right-start': _default$6.modifiers.rightTop,
|
|
6420
|
+
'right-end': _default$6.modifiers.rightBottom
|
|
6420
6421
|
};
|
|
6421
6422
|
const hasCustomMinWidth = minWidth !== popoverMinWidth.value;
|
|
6422
6423
|
const hasCustomMaxWidth = maxWidth !== popoverMaxWidth.value;
|
|
@@ -6512,7 +6513,7 @@
|
|
|
6512
6513
|
}
|
|
6513
6514
|
return node;
|
|
6514
6515
|
}
|
|
6515
|
-
}, preventScrollOnDeactivate: true, className: css(_default$
|
|
6516
|
+
}, preventScrollOnDeactivate: true, className: css(_default$6.popover, hasNoPadding && _default$6.modifiers.noPadding, hasAutoWidth && _default$6.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: {
|
|
6516
6517
|
minWidth: hasCustomMinWidth ? minWidth : null,
|
|
6517
6518
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
6518
6519
|
opacity,
|
|
@@ -6529,7 +6530,7 @@
|
|
|
6529
6530
|
};
|
|
6530
6531
|
Popover.displayName = 'Popover';
|
|
6531
6532
|
|
|
6532
|
-
var _default$
|
|
6533
|
+
var _default$5 = {
|
|
6533
6534
|
"button": "pf-c-button",
|
|
6534
6535
|
"emptyState": "pf-c-empty-state",
|
|
6535
6536
|
"emptyStateBody": "pf-c-empty-state__body",
|
|
@@ -6559,12 +6560,12 @@
|
|
|
6559
6560
|
})(EmptyStateVariant || (EmptyStateVariant = {}));
|
|
6560
6561
|
const EmptyState = (_a) => {
|
|
6561
6562
|
var { children, className = '', variant = EmptyStateVariant.full, isFullHeight } = _a, props = __rest$1(_a, ["children", "className", "variant", "isFullHeight"]);
|
|
6562
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(_default$
|
|
6563
|
-
React__namespace.createElement("div", { className: css(_default$
|
|
6563
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(_default$5.emptyState, variant === 'xs' && _default$5.modifiers.xs, variant === 'small' && _default$5.modifiers.sm, variant === 'large' && _default$5.modifiers.lg, variant === 'xl' && _default$5.modifiers.xl, isFullHeight && _default$5.modifiers.fullHeight, className) }, props),
|
|
6564
|
+
React__namespace.createElement("div", { className: css(_default$5.emptyStateContent) }, children)));
|
|
6564
6565
|
};
|
|
6565
6566
|
EmptyState.displayName = 'EmptyState';
|
|
6566
6567
|
|
|
6567
|
-
var _default$
|
|
6568
|
+
var _default$4 = {
|
|
6568
6569
|
"button": "pf-c-button",
|
|
6569
6570
|
"inlineEdit": "pf-c-inline-edit",
|
|
6570
6571
|
"inlineEditAction": "pf-c-inline-edit__action",
|
|
@@ -6590,11 +6591,11 @@
|
|
|
6590
6591
|
const Bullseye = (_a) => {
|
|
6591
6592
|
var { children = null, className = '', component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
6592
6593
|
const Component = component;
|
|
6593
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(_default$
|
|
6594
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(_default$k.bullseye, className) }, props), children));
|
|
6594
6595
|
};
|
|
6595
6596
|
Bullseye.displayName = 'Bullseye';
|
|
6596
6597
|
|
|
6597
|
-
var _default$
|
|
6598
|
+
var _default$3 = {
|
|
6598
6599
|
"button": "pf-c-button",
|
|
6599
6600
|
"modifiers": {
|
|
6600
6601
|
"hidden": "pf-m-hidden",
|
|
@@ -6670,7 +6671,7 @@
|
|
|
6670
6671
|
"tableToggleIcon": "pf-c-table__toggle-icon"
|
|
6671
6672
|
};
|
|
6672
6673
|
|
|
6673
|
-
var _default$
|
|
6674
|
+
var _default$2 = {
|
|
6674
6675
|
"button": "pf-c-button",
|
|
6675
6676
|
"modifiers": {
|
|
6676
6677
|
"grid": "pf-m-grid",
|
|
@@ -6702,7 +6703,7 @@
|
|
|
6702
6703
|
"tableToggleIcon": "pf-c-table__toggle-icon"
|
|
6703
6704
|
};
|
|
6704
6705
|
|
|
6705
|
-
var _default = {
|
|
6706
|
+
var _default$1 = {
|
|
6706
6707
|
"dropdown": "pf-c-dropdown",
|
|
6707
6708
|
"modifiers": {
|
|
6708
6709
|
"treeView": "pf-m-tree-view",
|
|
@@ -6856,7 +6857,7 @@
|
|
|
6856
6857
|
|
|
6857
6858
|
const TableComposableBase = (_a) => {
|
|
6858
6859
|
var _b, _c;
|
|
6859
|
-
var { children, className, variant, borders = true, isStickyHeader = false, gridBreakPoint = exports.TableGridBreakpoint.gridMd, 'aria-label': ariaLabel, role = 'grid', innerRef, ouiaId, ouiaSafe = true, isTreeTable = false, isNested = false } = _a, props = __rest$2(_a, ["children", "className", "variant", "borders", "isStickyHeader", "gridBreakPoint", 'aria-label', "role", "innerRef", "ouiaId", "ouiaSafe", "isTreeTable", "isNested"]);
|
|
6860
|
+
var { children, className, variant, borders = true, isStickyHeader = false, gridBreakPoint = exports.TableGridBreakpoint.gridMd, 'aria-label': ariaLabel, role = 'grid', innerRef, ouiaId, ouiaSafe = true, isTreeTable = false, isNested = false, nestedHeaderColumnSpans } = _a, props = __rest$2(_a, ["children", "className", "variant", "borders", "isStickyHeader", "gridBreakPoint", 'aria-label', "role", "innerRef", "ouiaId", "ouiaSafe", "isTreeTable", "isNested", "nestedHeaderColumnSpans"]);
|
|
6860
6861
|
const tableRef = innerRef || React__namespace.useRef(null);
|
|
6861
6862
|
React__namespace.useEffect(() => {
|
|
6862
6863
|
document.addEventListener('keydown', handleKeys);
|
|
@@ -6870,9 +6871,9 @@
|
|
|
6870
6871
|
};
|
|
6871
6872
|
}, [tableRef, tableRef.current]);
|
|
6872
6873
|
const ouiaProps = useOUIAProps('Table', ouiaId, ouiaSafe);
|
|
6873
|
-
const grid = (_b = _default$
|
|
6874
|
+
const grid = (_b = _default$2.modifiers) === null || _b === void 0 ? void 0 : _b[toCamel(gridBreakPoint || '').replace(/-?2xl/, '_2xl')];
|
|
6874
6875
|
const breakPointPrefix = `treeView${gridBreakPoint.charAt(0).toUpperCase() + gridBreakPoint.slice(1)}`;
|
|
6875
|
-
const treeGrid = (_c = _default.modifiers) === null || _c === void 0 ? void 0 : _c[toCamel(breakPointPrefix || '').replace(/-?2xl/, '_2xl')];
|
|
6876
|
+
const treeGrid = (_c = _default$1.modifiers) === null || _c === void 0 ? void 0 : _c[toCamel(breakPointPrefix || '').replace(/-?2xl/, '_2xl')];
|
|
6876
6877
|
const handleKeys = (event) => {
|
|
6877
6878
|
if (isNested ||
|
|
6878
6879
|
!(tableRef && tableRef.current && tableRef.current.classList.contains('pf-m-tree-view')) || // implements roving tab-index to tree tables only
|
|
@@ -6889,27 +6890,37 @@
|
|
|
6889
6890
|
const getFocusableElement = (element) => element.querySelectorAll('button:not(:disabled), input:not(:disabled), a:not(:disabled)')[0];
|
|
6890
6891
|
handleArrows(event, rows, (element) => element === activeElement.closest('tr'), getFocusableElement, ['button', 'input', 'a'], undefined, false, true, false);
|
|
6891
6892
|
};
|
|
6892
|
-
return (React__namespace.createElement("table", Object.assign({ "aria-label": ariaLabel, role: role, className: css(className, _default$
|
|
6893
|
+
return (React__namespace.createElement("table", Object.assign({ "aria-label": ariaLabel, role: role, className: css(className, _default$3.table, isTreeTable ? treeGrid : grid, _default$3.modifiers[variant], !borders && _default$3.modifiers.noBorderRows, isStickyHeader && _default$3.modifiers.stickyHeader, isTreeTable && _default$1.modifiers.treeView, isNested && 'pf-m-nested'), ref: tableRef }, (isTreeTable && { role: 'treegrid' }), ouiaProps, props),
|
|
6894
|
+
nestedHeaderColumnSpans &&
|
|
6895
|
+
nestedHeaderColumnSpans.map((span, index) => {
|
|
6896
|
+
if (span === 1) {
|
|
6897
|
+
return React__namespace.createElement("col", { key: index });
|
|
6898
|
+
}
|
|
6899
|
+
else {
|
|
6900
|
+
return React__namespace.createElement("colgroup", { key: index, span: span });
|
|
6901
|
+
}
|
|
6902
|
+
}),
|
|
6903
|
+
children));
|
|
6893
6904
|
};
|
|
6894
6905
|
const TableComposable = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TableComposableBase, Object.assign({}, props, { innerRef: ref }))));
|
|
6895
6906
|
TableComposable.displayName = 'TableComposable';
|
|
6896
6907
|
|
|
6897
6908
|
const TheadBase = (_a) => {
|
|
6898
|
-
var { children, className, noWrap = false, innerRef } = _a, props = __rest$2(_a, ["children", "className", "noWrap", "innerRef"]);
|
|
6899
|
-
return (React__namespace.createElement("thead", Object.assign({ className: css(className, noWrap && _default$
|
|
6909
|
+
var { children, className, noWrap = false, innerRef, hasNestedHeader } = _a, props = __rest$2(_a, ["children", "className", "noWrap", "innerRef", "hasNestedHeader"]);
|
|
6910
|
+
return (React__namespace.createElement("thead", Object.assign({ className: css(className, noWrap && _default$3.modifiers.nowrap, hasNestedHeader && _default$3.modifiers.nestedColumnHeader), ref: innerRef }, props), children));
|
|
6900
6911
|
};
|
|
6901
6912
|
const Thead = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TheadBase, Object.assign({}, props, { innerRef: ref }))));
|
|
6902
6913
|
Thead.displayName = 'Thead';
|
|
6903
6914
|
|
|
6904
6915
|
const TbodyBase = (_a) => {
|
|
6905
6916
|
var { children, className, isExpanded, innerRef } = _a, props = __rest$2(_a, ["children", "className", "isExpanded", "innerRef"]);
|
|
6906
|
-
return (React__namespace.createElement("tbody", Object.assign({ role: "rowgroup", className: css(className, isExpanded && _default$
|
|
6917
|
+
return (React__namespace.createElement("tbody", Object.assign({ role: "rowgroup", className: css(className, isExpanded && _default$3.modifiers.expanded), ref: innerRef }, props), children));
|
|
6907
6918
|
};
|
|
6908
6919
|
const Tbody = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TbodyBase, Object.assign({}, props, { innerRef: ref }))));
|
|
6909
6920
|
Tbody.displayName = 'Tbody';
|
|
6910
6921
|
|
|
6911
6922
|
const TrBase = (_a) => {
|
|
6912
|
-
var { children, className, isExpanded, isEditable, isHidden = false, isHoverable = false, isRowSelected = false, innerRef, ouiaId, ouiaSafe = true, onRowClick } = _a, props = __rest$2(_a, ["children", "className", "isExpanded", "isEditable", "isHidden", "isHoverable", "isRowSelected", "innerRef", "ouiaId", "ouiaSafe", "onRowClick"]);
|
|
6923
|
+
var { children, className, isExpanded, isEditable, isHidden = false, isHoverable = false, isRowSelected = false, innerRef, ouiaId, ouiaSafe = true, resetOffset = false, onRowClick } = _a, props = __rest$2(_a, ["children", "className", "isExpanded", "isEditable", "isHidden", "isHoverable", "isRowSelected", "innerRef", "ouiaId", "ouiaSafe", "resetOffset", "onRowClick"]);
|
|
6913
6924
|
const ouiaProps = useOUIAProps('TableRow', ouiaId, ouiaSafe);
|
|
6914
6925
|
let onKeyDown = null;
|
|
6915
6926
|
if (onRowClick) {
|
|
@@ -6920,11 +6931,23 @@
|
|
|
6920
6931
|
}
|
|
6921
6932
|
};
|
|
6922
6933
|
}
|
|
6923
|
-
return (React__namespace.createElement("tr", Object.assign({ className: css(className, isExpanded !== undefined && _default$
|
|
6934
|
+
return (React__namespace.createElement("tr", Object.assign({ className: css(className, isExpanded !== undefined && _default$3.tableExpandableRow, isExpanded && _default$3.modifiers.expanded, isEditable && _default$4.modifiers.inlineEditable, isHoverable && _default$3.modifiers.hoverable, isRowSelected && _default$3.modifiers.selected, resetOffset && _default$3.modifiers.firstCellOffsetReset), hidden: isHidden || (isExpanded !== undefined && !isExpanded) }, (isHoverable && { tabIndex: 0 }), { ref: innerRef }, (onRowClick && { onClick: onRowClick, onKeyDown }), ouiaProps, props), children));
|
|
6924
6935
|
};
|
|
6925
6936
|
const Tr = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TrBase, Object.assign({}, props, { innerRef: ref }))));
|
|
6926
6937
|
Tr.displayName = 'Tr';
|
|
6927
6938
|
|
|
6939
|
+
var _default = {
|
|
6940
|
+
"modifiers": {
|
|
6941
|
+
"borderRight": "pf-m-border-right",
|
|
6942
|
+
"borderLeft": "pf-m-border-left",
|
|
6943
|
+
"stickyHeader": "pf-m-sticky-header"
|
|
6944
|
+
},
|
|
6945
|
+
"scrollInnerWrapper": "pf-c-scroll-inner-wrapper",
|
|
6946
|
+
"scrollOuterWrapper": "pf-c-scroll-outer-wrapper",
|
|
6947
|
+
"table": "pf-c-table",
|
|
6948
|
+
"tableStickyColumn": "pf-c-table__sticky-column"
|
|
6949
|
+
};
|
|
6950
|
+
|
|
6928
6951
|
const HelpIconConfig = {
|
|
6929
6952
|
name: 'HelpIcon',
|
|
6930
6953
|
height: 1024,
|
|
@@ -6964,14 +6987,14 @@
|
|
|
6964
6987
|
}
|
|
6965
6988
|
onMouseEnterProp(event);
|
|
6966
6989
|
};
|
|
6967
|
-
const text = (React__namespace.createElement(Component, Object.assign({ onMouseEnter: onMouseEnter, className: css(className, wrapModifier && _default$
|
|
6990
|
+
const text = (React__namespace.createElement(Component, Object.assign({ onMouseEnter: onMouseEnter, className: css(className, wrapModifier && _default$3.modifiers[wrapModifier], _default$3.tableText) }, props), children));
|
|
6968
6991
|
return tooltip !== '' ? (React__namespace.createElement(Tooltip, Object.assign({ content: tooltip, isVisible: true }, tooltipProps), text)) : (text);
|
|
6969
6992
|
};
|
|
6970
6993
|
TableText.displayName = 'TableText';
|
|
6971
6994
|
|
|
6972
|
-
const HeaderCellInfoWrapper = ({ children, info, className, variant = 'tooltip', popoverProps, tooltipProps, ariaLabel }) => (React__namespace.createElement("div", { className: css(_default$
|
|
6995
|
+
const HeaderCellInfoWrapper = ({ children, info, className, variant = 'tooltip', popoverProps, tooltipProps, ariaLabel }) => (React__namespace.createElement("div", { className: css(_default$3.tableColumnHelp, className) },
|
|
6973
6996
|
typeof children === 'string' ? React__namespace.createElement(TableText, null, children) : children,
|
|
6974
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
6997
|
+
React__namespace.createElement("span", { className: css(_default$3.tableColumnHelpAction) }, variant === 'tooltip' ? (React__namespace.createElement(Tooltip, Object.assign({ content: info }, tooltipProps),
|
|
6975
6998
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": ariaLabel || (typeof info === 'string' && info) || 'More info' },
|
|
6976
6999
|
React__namespace.createElement(HelpIcon$1, { noVerticalAlign: true })))) : (React__namespace.createElement(Popover, Object.assign({ bodyContent: info }, popoverProps),
|
|
6977
7000
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": ariaLabel || (typeof info === 'string' && info) || 'More info' },
|
|
@@ -6980,7 +7003,7 @@
|
|
|
6980
7003
|
|
|
6981
7004
|
const info = ({ tooltip, tooltipProps, popover, popoverProps, className, ariaLabel }) => {
|
|
6982
7005
|
const infoObj = (value) => ({
|
|
6983
|
-
className: _default$
|
|
7006
|
+
className: _default$3.modifiers.help,
|
|
6984
7007
|
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))
|
|
6985
7008
|
});
|
|
6986
7009
|
return infoObj;
|
|
@@ -7039,17 +7062,17 @@
|
|
|
7039
7062
|
else {
|
|
7040
7063
|
SortedByIcon = ArrowsAltVIcon$1;
|
|
7041
7064
|
}
|
|
7042
|
-
return (React__namespace.createElement("button", Object.assign({}, props, { type: type, className: css(className, _default$
|
|
7043
|
-
React__namespace.createElement("div", { className: css(className, _default$
|
|
7065
|
+
return (React__namespace.createElement("button", Object.assign({}, props, { type: type, className: css(className, _default$3.tableButton), onClick: event => onSort && onSort(event) }),
|
|
7066
|
+
React__namespace.createElement("div", { className: css(className, _default$3.tableButtonContent) },
|
|
7044
7067
|
React__namespace.createElement(TableText, null, children),
|
|
7045
|
-
React__namespace.createElement("span", { className: css(_default$
|
|
7068
|
+
React__namespace.createElement("span", { className: css(_default$3.tableSortIndicator) },
|
|
7046
7069
|
React__namespace.createElement(SortedByIcon, null)))));
|
|
7047
7070
|
};
|
|
7048
7071
|
SortColumn.displayName = 'SortColumn';
|
|
7049
7072
|
|
|
7050
7073
|
const sortableFavorites = (sort) => () => sortable(React__namespace.createElement(StarIcon$1, { "aria-hidden": true }), {
|
|
7051
7074
|
columnIndex: sort.columnIndex,
|
|
7052
|
-
className: _default$
|
|
7075
|
+
className: _default$3.modifiers.favorite,
|
|
7053
7076
|
ariaLabel: 'Sort favorites',
|
|
7054
7077
|
column: {
|
|
7055
7078
|
extraParams: {
|
|
@@ -7081,7 +7104,7 @@
|
|
|
7081
7104
|
onSort && onSort(event, columnIndex, reversedDirection, extraData);
|
|
7082
7105
|
}
|
|
7083
7106
|
return {
|
|
7084
|
-
className: css(_default$
|
|
7107
|
+
className: css(_default$3.tableSort, isSortedBy && _default$3.modifiers.selected, className),
|
|
7085
7108
|
'aria-sort': isSortedBy ? `${sortBy.direction}ending` : 'none',
|
|
7086
7109
|
children: (React__namespace.createElement(SortColumn, { isSortedBy: isSortedBy, sortDirection: isSortedBy ? sortBy.direction : '', onSort: sortClicked, "aria-label": ariaLabel }, label))
|
|
7087
7110
|
};
|
|
@@ -7136,7 +7159,7 @@
|
|
|
7136
7159
|
})), (rowData &&
|
|
7137
7160
|
(rowData.disableCheckbox || rowData.disableSelection) && {
|
|
7138
7161
|
disabled: true,
|
|
7139
|
-
className: _default$
|
|
7162
|
+
className: _default$9.checkInput
|
|
7140
7163
|
})), (!rowData && isHeaderSelectDisabled && { disabled: true }));
|
|
7141
7164
|
let selectName = 'check-all';
|
|
7142
7165
|
if (rowId !== -1 && selectVariant === exports.RowSelectVariant.checkbox) {
|
|
@@ -7146,7 +7169,7 @@
|
|
|
7146
7169
|
selectName = 'radioGroup';
|
|
7147
7170
|
}
|
|
7148
7171
|
return {
|
|
7149
|
-
className: css(_default$
|
|
7172
|
+
className: css(_default$3.tableCheck),
|
|
7150
7173
|
component: 'td',
|
|
7151
7174
|
isVisible: !rowData || !rowData.fullWidth,
|
|
7152
7175
|
children: (React__namespace.createElement(SelectColumn, Object.assign({}, customProps, { selectVariant: selectVariant, onSelect: selectClick, name: selectName }), label))
|
|
@@ -7154,7 +7177,7 @@
|
|
|
7154
7177
|
};
|
|
7155
7178
|
|
|
7156
7179
|
const cellWidth = (width) => () => ({
|
|
7157
|
-
className: css(_default$
|
|
7180
|
+
className: css(_default$3.modifiers[typeof width === 'number' ? `width_${width}` : `width${capitalize(width)}`])
|
|
7158
7181
|
});
|
|
7159
7182
|
|
|
7160
7183
|
const visibilityModifiers = [
|
|
@@ -7171,10 +7194,10 @@
|
|
|
7171
7194
|
'visibleOn_2xl'
|
|
7172
7195
|
];
|
|
7173
7196
|
const Visibility = visibilityModifiers
|
|
7174
|
-
.filter(key => _default$
|
|
7197
|
+
.filter(key => _default$3.modifiers[key])
|
|
7175
7198
|
.reduce((acc, curr) => {
|
|
7176
7199
|
const key2 = curr.replace('_2xl', '2Xl');
|
|
7177
|
-
acc[key2] = _default$
|
|
7200
|
+
acc[key2] = _default$3.modifiers[curr];
|
|
7178
7201
|
return acc;
|
|
7179
7202
|
}, {});
|
|
7180
7203
|
const classNames = (...classes) => () => ({
|
|
@@ -9774,7 +9797,7 @@
|
|
|
9774
9797
|
}
|
|
9775
9798
|
|
|
9776
9799
|
const ThBase = (_a) => {
|
|
9777
|
-
var { children, className, component = 'th', dataLabel, scope = 'col', textCenter = false, sort = null, modifier, select = null, tooltip = '', onMouseEnter: onMouseEnterProp = () => { }, width, visibility, innerRef, info: infoProps } = _a, props = __rest$2(_a, ["children", "className", "component", "dataLabel", "scope", "textCenter", "sort", "modifier", "select", "tooltip", "onMouseEnter", "width", "visibility", "innerRef", "info"]);
|
|
9800
|
+
var { children, className, component = 'th', dataLabel, scope = 'col', textCenter = false, sort = null, modifier, select = null, tooltip = '', onMouseEnter: onMouseEnterProp = () => { }, width, visibility, innerRef, info: infoProps, isStickyColumn = false, hasRightBorder = false, stickyMinWidth = '120px', stickyLeftOffset, isSubheader = false } = _a, props = __rest$2(_a, ["children", "className", "component", "dataLabel", "scope", "textCenter", "sort", "modifier", "select", "tooltip", "onMouseEnter", "width", "visibility", "innerRef", "info", "isStickyColumn", "hasRightBorder", "stickyMinWidth", "stickyLeftOffset", "isSubheader"]);
|
|
9778
9801
|
const [showTooltip, setShowTooltip] = React__namespace.useState(false);
|
|
9779
9802
|
const onMouseEnter = (event) => {
|
|
9780
9803
|
if (event.target.offsetWidth < event.target.scrollWidth) {
|
|
@@ -9837,7 +9860,9 @@
|
|
|
9837
9860
|
// selectable adds this but we don't want it
|
|
9838
9861
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9839
9862
|
isVisible = null, className: mergedClassName = '', component: MergedComponent = component } = merged, mergedProps = __rest$2(merged, ["children", "isVisible", "className", "component"]);
|
|
9840
|
-
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 && _default$
|
|
9863
|
+
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 && _default$3.modifiers.center, isSubheader && _default$3.tableSubhead, isStickyColumn && _default.tableStickyColumn, hasRightBorder && _default.modifiers.borderRight, modifier && _default$3.modifiers[modifier], mergedClassName) }, mergedProps, props, (isStickyColumn && {
|
|
9864
|
+
style: Object.assign({ '--pf-c-table__sticky-column--MinWidth': stickyMinWidth ? stickyMinWidth : undefined, '--pf-c-table__sticky-column--Left': stickyLeftOffset ? stickyLeftOffset : undefined }, props.style)
|
|
9865
|
+
})), transformedChildren));
|
|
9841
9866
|
const canDefault = tooltip === '' ? typeof children === 'string' : true;
|
|
9842
9867
|
return tooltip !== null && canDefault && showTooltip ? (React__namespace.createElement(Tooltip, { content: tooltip || (tooltip === '' && children), isVisible: true }, cell)) : (cell);
|
|
9843
9868
|
};
|
|
@@ -9915,14 +9940,14 @@
|
|
|
9915
9940
|
children: (React__namespace.createElement(ActionsColumn, { items: resolvedActions, dropdownPosition: dropdownPosition, dropdownDirection: dropdownDirection, isDisabled: resolvedIsDisabled, rowData: rowData, extraData: extraData, actionsToggle: actionsToggle }, label))
|
|
9916
9941
|
}
|
|
9917
9942
|
: {};
|
|
9918
|
-
return Object.assign({ className: css(_default$
|
|
9943
|
+
return Object.assign({ className: css(_default$3.tableAction), style: { width: 'auto', paddingRight: 0 }, isVisible: true }, renderProps);
|
|
9919
9944
|
};
|
|
9920
9945
|
|
|
9921
9946
|
const CollapseColumn = (_a) => {
|
|
9922
9947
|
var { className = '', children = null, isOpen, onToggle } = _a, props = __rest$2(_a, ["className", "children", "isOpen", "onToggle"]);
|
|
9923
9948
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
9924
|
-
isOpen !== undefined && (React__namespace.createElement(Button, Object.assign({ className: css(className, isOpen && _default$
|
|
9925
|
-
React__namespace.createElement("div", { className: css(_default$
|
|
9949
|
+
isOpen !== undefined && (React__namespace.createElement(Button, Object.assign({ className: css(className, isOpen && _default$3.modifiers.expanded) }, props, { variant: "plain", "aria-label": "Details", onClick: onToggle, "aria-expanded": isOpen }),
|
|
9950
|
+
React__namespace.createElement("div", { className: css(_default$3.tableToggleIcon) },
|
|
9926
9951
|
React__namespace.createElement(AngleDownIcon$1, null)))),
|
|
9927
9952
|
children));
|
|
9928
9953
|
};
|
|
@@ -9930,7 +9955,7 @@
|
|
|
9930
9955
|
|
|
9931
9956
|
const ExpandableRowContent = (_a) => {
|
|
9932
9957
|
var { children = null } = _a, props = __rest$2(_a, ["children"]);
|
|
9933
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(_default$
|
|
9958
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(_default$3.tableExpandableRowContent) }), children));
|
|
9934
9959
|
};
|
|
9935
9960
|
ExpandableRowContent.displayName = 'ExpandableRowContent';
|
|
9936
9961
|
|
|
@@ -9950,7 +9975,7 @@
|
|
|
9950
9975
|
onCollapse && onCollapse(event, rowIndex, rowData && !rowData.isOpen, rowData, extraData);
|
|
9951
9976
|
}
|
|
9952
9977
|
return {
|
|
9953
|
-
className: rowData.isOpen !== undefined && css(_default$
|
|
9978
|
+
className: rowData.isOpen !== undefined && css(_default$3.tableToggle),
|
|
9954
9979
|
isVisible: !rowData.fullWidth,
|
|
9955
9980
|
children: (React__namespace.createElement(CollapseColumn, { "aria-labelledby": `${rowLabeledBy}${rowIndex} ${expandId}${rowIndex}`, onToggle: onToggle, id: expandId + rowIndex, isOpen: rowData && rowData.isOpen }, value))
|
|
9956
9981
|
};
|
|
@@ -9962,7 +9987,7 @@
|
|
|
9962
9987
|
// todo: rewrite this logic, it is not type safe
|
|
9963
9988
|
colSpan: !rowData.cells || rowData.cells.length === 1 ? colSpan + !!rowData.fullWidth : 1,
|
|
9964
9989
|
id: contentId + rowIndex + (columnIndex ? '-' + columnIndex : ''),
|
|
9965
|
-
className: rowData.noPadding && css(_default$
|
|
9990
|
+
className: rowData.noPadding && css(_default$3.modifiers.noPadding)
|
|
9966
9991
|
};
|
|
9967
9992
|
return expandedRowFormatter;
|
|
9968
9993
|
};
|
|
@@ -9987,8 +10012,8 @@
|
|
|
9987
10012
|
onExpand && onExpand(event, rowIndex, columnIndex, props.isOpen, rowData, extraData);
|
|
9988
10013
|
}
|
|
9989
10014
|
return {
|
|
9990
|
-
className: css(_default$
|
|
9991
|
-
children: props.isOpen !== undefined && (React__namespace.createElement("button", { type: "button", className: css(_default$
|
|
10015
|
+
className: css(_default$3.tableCompoundExpansionToggle, props.isOpen && _default$3.modifiers.expanded),
|
|
10016
|
+
children: props.isOpen !== undefined && (React__namespace.createElement("button", { type: "button", className: css(_default$3.tableButton), onClick: onToggle, "aria-expanded": props.isOpen, "aria-controls": props.ariaControls },
|
|
9992
10017
|
React__namespace.createElement(TableText, null, title)))
|
|
9993
10018
|
};
|
|
9994
10019
|
};
|
|
@@ -10030,7 +10055,7 @@
|
|
|
10030
10055
|
}
|
|
10031
10056
|
const additionalProps = rowData.favoritesProps || {};
|
|
10032
10057
|
return {
|
|
10033
|
-
className: css(_default$
|
|
10058
|
+
className: css(_default$3.tableFavorite, rowData && rowData.favorited && _default$3.modifiers.favorited),
|
|
10034
10059
|
isVisible: !rowData || !rowData.fullWidth,
|
|
10035
10060
|
children: (React__namespace.createElement(FavoritesCell, Object.assign({ rowIndex: rowIndex, onFavorite: favoritesClick, isFavorited: rowData && rowData.favorited }, additionalProps)))
|
|
10036
10061
|
};
|
|
@@ -10067,8 +10092,8 @@
|
|
|
10067
10092
|
const treeRow = (onCollapse, onCheckChange, onToggleRowDetails) => (value, { rowIndex, rowData }) => {
|
|
10068
10093
|
const { isExpanded, isDetailsExpanded, 'aria-level': level, 'aria-setsize': setsize, toggleAriaLabel, checkAriaLabel, showDetailsAriaLabel, isChecked, checkboxId, icon } = rowData.props;
|
|
10069
10094
|
const content = value.title || value;
|
|
10070
|
-
const text = (React__namespace.createElement("div", { className: css(_default.tableTreeViewText), key: "tree-view-text" },
|
|
10071
|
-
icon && (React__namespace.createElement("span", { className: css(_default.tableTreeViewIcon), key: "tree-view-text-icon" }, icon)),
|
|
10095
|
+
const text = (React__namespace.createElement("div", { className: css(_default$1.tableTreeViewText), key: "tree-view-text" },
|
|
10096
|
+
icon && (React__namespace.createElement("span", { className: css(_default$1.tableTreeViewIcon), key: "tree-view-text-icon" }, icon)),
|
|
10072
10097
|
React__namespace.createElement("span", { className: "pf-c-table__text", key: "table-text" }, content)));
|
|
10073
10098
|
const onChange = (isChecked, event) => {
|
|
10074
10099
|
onCheckChange(event, isChecked, rowIndex, content, rowData);
|
|
@@ -10076,15 +10101,15 @@
|
|
|
10076
10101
|
return {
|
|
10077
10102
|
component: 'th',
|
|
10078
10103
|
className: 'pf-c-table__tree-view-title-cell',
|
|
10079
|
-
children: level !== undefined ? (React__namespace.createElement("div", { className: css(_default.tableTreeViewMain) },
|
|
10080
|
-
setsize > 0 && (React__namespace.createElement("span", { className: css(_default.tableToggle), key: "table-toggle" },
|
|
10081
|
-
React__namespace.createElement(Button, { variant: "plain", onClick: event => onCollapse && onCollapse(event, rowIndex, content, rowData), className: css(isExpanded && _default$
|
|
10082
|
-
React__namespace.createElement("div", { className: css(_default.tableToggleIcon) },
|
|
10104
|
+
children: level !== undefined ? (React__namespace.createElement("div", { className: css(_default$1.tableTreeViewMain) },
|
|
10105
|
+
setsize > 0 && (React__namespace.createElement("span", { className: css(_default$1.tableToggle), key: "table-toggle" },
|
|
10106
|
+
React__namespace.createElement(Button, { variant: "plain", onClick: event => onCollapse && onCollapse(event, rowIndex, content, rowData), className: css(isExpanded && _default$3.modifiers.expanded), "aria-expanded": isExpanded, "aria-label": toggleAriaLabel || `${isExpanded ? 'Collapse' : 'Expand'} row ${rowIndex}` },
|
|
10107
|
+
React__namespace.createElement("div", { className: css(_default$1.tableToggleIcon) },
|
|
10083
10108
|
React__namespace.createElement(AngleDownIcon$1, { "aria-hidden": "true" }))))),
|
|
10084
|
-
!!onCheckChange && (React__namespace.createElement("span", { className: css(_default.tableCheck), key: "table-check" },
|
|
10109
|
+
!!onCheckChange && (React__namespace.createElement("span", { className: css(_default$1.tableCheck), key: "table-check" },
|
|
10085
10110
|
React__namespace.createElement(Checkbox, { id: checkboxId || `checkbox_${rowIndex}`, "aria-label": checkAriaLabel || `Row ${rowIndex} checkbox`, isChecked: isChecked, onChange: onChange }))),
|
|
10086
10111
|
text,
|
|
10087
|
-
!!onToggleRowDetails && (React__namespace.createElement("span", { className: css(_default.tableTreeViewDetailsToggle), key: "view-details-toggle" },
|
|
10112
|
+
!!onToggleRowDetails && (React__namespace.createElement("span", { className: css(_default$1.tableTreeViewDetailsToggle), key: "view-details-toggle" },
|
|
10088
10113
|
React__namespace.createElement(Button, { variant: "plain", "aria-expanded": isDetailsExpanded, "aria-label": showDetailsAriaLabel || 'Show row details', onClick: event => onToggleRowDetails && onToggleRowDetails(event, rowIndex, content, rowData) },
|
|
10089
10114
|
React__namespace.createElement("span", { className: "pf-c-table__details-toggle-icon" },
|
|
10090
10115
|
React__namespace.createElement(EllipsisHIcon$1, { "aria-hidden": true }))))))) : (text)
|
|
@@ -10194,7 +10219,7 @@
|
|
|
10194
10219
|
isVisible = null, children: mergedChildren = null, className: mergedClassName = '', component: MergedComponent = component } = merged, mergedProps = __rest$2(merged, ["isVisible", "children", "className", "component"]);
|
|
10195
10220
|
const treeTableTitleCell = (className && className.includes('pf-c-table__tree-view-title-cell')) ||
|
|
10196
10221
|
(mergedClassName && mergedClassName.includes('pf-c-table__tree-view-title-cell'));
|
|
10197
|
-
return (React__namespace.createElement(MergedComponent, Object.assign({}, (!treeTableTitleCell && { 'data-label': dataLabel }), { className: css(className, textCenter && _default$
|
|
10222
|
+
return (React__namespace.createElement(MergedComponent, Object.assign({}, (!treeTableTitleCell && { 'data-label': dataLabel }), { className: css(className, textCenter && _default$3.modifiers.center, noPadding && _default$3.modifiers.noPadding, _default$3.modifiers[modifier], draggableParams && _default$3.tableDraggable, mergedClassName), ref: innerRef }, mergedProps, props), mergedChildren || children));
|
|
10198
10223
|
};
|
|
10199
10224
|
const Td = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TdBase, Object.assign({}, props, { innerRef: ref }))));
|
|
10200
10225
|
Td.displayName = 'Td';
|
|
@@ -11588,14 +11613,14 @@
|
|
|
11588
11613
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
11589
11614
|
saveAriaLabel, cancelAriaLabel, editAriaLabel } = _a, props = __rest$2(_a, ["onClick", "className", "editing", "valid", "saveAriaLabel", "cancelAriaLabel", "editAriaLabel"]);
|
|
11590
11615
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
11591
|
-
React__namespace.createElement("div", { className: css(_default$
|
|
11592
|
-
React__namespace.createElement("div", { className: css(_default$
|
|
11616
|
+
React__namespace.createElement("div", { className: css(_default$4.inlineEditGroup, _default$4.modifiers.iconGroup, 'pf-m-action-group') },
|
|
11617
|
+
React__namespace.createElement("div", { className: css(_default$4.inlineEditAction) },
|
|
11593
11618
|
React__namespace.createElement(Button, Object.assign({ "aria-label": saveAriaLabel }, props, { onClick: e => onClick(e, 'save'), variant: "plain" }),
|
|
11594
11619
|
React__namespace.createElement(CheckIcon$1, null))),
|
|
11595
|
-
React__namespace.createElement("div", { className: css(_default$
|
|
11620
|
+
React__namespace.createElement("div", { className: css(_default$4.inlineEditAction) },
|
|
11596
11621
|
React__namespace.createElement(Button, Object.assign({ "aria-label": cancelAriaLabel }, props, { onClick: e => onClick(e, 'cancel'), variant: "plain" }),
|
|
11597
11622
|
React__namespace.createElement(TimesIcon$1, null)))),
|
|
11598
|
-
React__namespace.createElement("div", { className: css(_default$
|
|
11623
|
+
React__namespace.createElement("div", { className: css(_default$4.inlineEditAction, _default$4.modifiers.enableEditable) },
|
|
11599
11624
|
React__namespace.createElement(Button, Object.assign({ "aria-label": editAriaLabel }, props, { onClick: e => onClick(e, 'edit'), variant: "plain" }),
|
|
11600
11625
|
React__namespace.createElement(PencilAltIcon$1, null)))));
|
|
11601
11626
|
};
|
|
@@ -11663,7 +11688,7 @@
|
|
|
11663
11688
|
return result;
|
|
11664
11689
|
}
|
|
11665
11690
|
return {
|
|
11666
|
-
className: _default$
|
|
11691
|
+
className: _default$3.tableInlineEditAction,
|
|
11667
11692
|
component: 'td',
|
|
11668
11693
|
isVisible: true,
|
|
11669
11694
|
children: (React__namespace.createElement(EditColumn, { saveAriaLabel: (rowData && rowData.rowSaveBtnAriaLabel && rowData.rowSaveBtnAriaLabel(rowIndex)) ||
|
|
@@ -11674,19 +11699,19 @@
|
|
|
11674
11699
|
};
|
|
11675
11700
|
|
|
11676
11701
|
const breakWord = () => ({
|
|
11677
|
-
className: _default$
|
|
11702
|
+
className: _default$3.modifiers.breakWord
|
|
11678
11703
|
});
|
|
11679
11704
|
const fitContent = () => ({
|
|
11680
|
-
className: _default$
|
|
11705
|
+
className: _default$3.modifiers.fitContent
|
|
11681
11706
|
});
|
|
11682
11707
|
const nowrap = () => ({
|
|
11683
|
-
className: _default$
|
|
11708
|
+
className: _default$3.modifiers.nowrap
|
|
11684
11709
|
});
|
|
11685
11710
|
const truncate = () => ({
|
|
11686
|
-
className: _default$
|
|
11711
|
+
className: _default$3.modifiers.truncate
|
|
11687
11712
|
});
|
|
11688
11713
|
const wrappable = () => ({
|
|
11689
|
-
className: _default$
|
|
11714
|
+
className: _default$3.modifiers.wrap
|
|
11690
11715
|
});
|
|
11691
11716
|
|
|
11692
11717
|
const textCenter = () => ({ textCenter: true });
|
|
@@ -11946,12 +11971,24 @@
|
|
|
11946
11971
|
};
|
|
11947
11972
|
Caption.displayName = 'Caption';
|
|
11948
11973
|
|
|
11974
|
+
const OuterScrollContainer = (_a) => {
|
|
11975
|
+
var { children, className } = _a, props = __rest$2(_a, ["children", "className"]);
|
|
11976
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(className, _default.scrollOuterWrapper) }, props), children));
|
|
11977
|
+
};
|
|
11978
|
+
OuterScrollContainer.displayName = 'OuterScrollContainer';
|
|
11979
|
+
|
|
11980
|
+
const InnerScrollContainer = (_a) => {
|
|
11981
|
+
var { children, className } = _a, props = __rest$2(_a, ["children", "className"]);
|
|
11982
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(className, _default.scrollInnerWrapper) }, props), children));
|
|
11983
|
+
};
|
|
11984
|
+
InnerScrollContainer.displayName = 'InnerScrollContainer';
|
|
11985
|
+
|
|
11949
11986
|
const TreeRowWrapper = (_a) => {
|
|
11950
11987
|
var { className,
|
|
11951
11988
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11952
11989
|
rowProps, row } = _a, props = __rest$2(_a, ["className", "rowProps", "row"]);
|
|
11953
11990
|
const { 'aria-level': level, 'aria-posinset': posinset, 'aria-setsize': setsize, isExpanded, isDetailsExpanded, isHidden } = row.props;
|
|
11954
|
-
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 && _default$
|
|
11991
|
+
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 && _default$3.modifiers.expanded, isDetailsExpanded && _default$1.modifiers.treeViewDetailsExpanded) }, props)));
|
|
11955
11992
|
};
|
|
11956
11993
|
TreeRowWrapper.displayName = 'TreeRowWrapper';
|
|
11957
11994
|
|
|
@@ -12019,7 +12056,7 @@
|
|
|
12019
12056
|
caption && React__namespace.createElement("caption", null, caption),
|
|
12020
12057
|
children)));
|
|
12021
12058
|
if (onRowEdit) {
|
|
12022
|
-
return React__namespace.createElement("form", { className: css(_default$
|
|
12059
|
+
return React__namespace.createElement("form", { className: css(_default$4.inlineEdit) }, table);
|
|
12023
12060
|
}
|
|
12024
12061
|
return table;
|
|
12025
12062
|
}
|
|
@@ -12165,20 +12202,20 @@
|
|
|
12165
12202
|
};
|
|
12166
12203
|
const select = (React__namespace.createElement(Select, Object.assign({}, props.editableSelectProps, { onSelect: onSelectHandler }, (clearSelection && { onClear }), { isOpen: isOpen, onToggle: onToggle, selections: selections }), options));
|
|
12167
12204
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
12168
|
-
React__namespace.createElement("div", { className: _default$
|
|
12169
|
-
React__namespace.createElement("div", { className: _default$
|
|
12205
|
+
React__namespace.createElement("div", { className: _default$4.inlineEditValue }, Array.isArray(value) ? value.join(', ') : value),
|
|
12206
|
+
React__namespace.createElement("div", { className: _default$4.inlineEditInput },
|
|
12170
12207
|
select,
|
|
12171
|
-
React__namespace.createElement("div", { className: css(_default$
|
|
12208
|
+
React__namespace.createElement("div", { className: css(_default$a.formHelperText, _default$a.modifiers.error), "aria-live": "polite" }, props.errorText))));
|
|
12172
12209
|
};
|
|
12173
12210
|
EditableSelectInputCell.displayName = 'EditableSelectInputCell';
|
|
12174
12211
|
|
|
12175
12212
|
const EditableTextCell = ({ value, rowIndex, cellIndex, props, handleTextInputChange, inputAriaLabel, isDisabled = false }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
12176
|
-
React__namespace.createElement("div", { className: _default$
|
|
12177
|
-
React__namespace.createElement("div", { className: _default$
|
|
12213
|
+
React__namespace.createElement("div", { className: _default$4.inlineEditValue }, value),
|
|
12214
|
+
React__namespace.createElement("div", { className: _default$4.inlineEditInput },
|
|
12178
12215
|
React__namespace.createElement(TextInput, { isDisabled: isDisabled, value: props.editableValue !== undefined ? props.editableValue : value, validated: props.isValid !== false ? 'default' : 'error', type: "text", onChange: (newValue, event) => {
|
|
12179
12216
|
handleTextInputChange(newValue, event, rowIndex, cellIndex);
|
|
12180
12217
|
}, "aria-label": inputAriaLabel }),
|
|
12181
|
-
React__namespace.createElement("div", { className: css(_default$
|
|
12218
|
+
React__namespace.createElement("div", { className: css(_default$a.formHelperText, _default$a.modifiers.error), "aria-live": "polite" }, props.errorText))));
|
|
12182
12219
|
EditableTextCell.displayName = 'EditableTextCell';
|
|
12183
12220
|
|
|
12184
12221
|
const ContextHeader = (_a) => {
|
|
@@ -12203,6 +12240,8 @@
|
|
|
12203
12240
|
exports.FavoritesCell = FavoritesCell;
|
|
12204
12241
|
exports.HeaderCell = HeaderCell;
|
|
12205
12242
|
exports.HeaderCellInfoWrapper = HeaderCellInfoWrapper;
|
|
12243
|
+
exports.InnerScrollContainer = InnerScrollContainer;
|
|
12244
|
+
exports.OuterScrollContainer = OuterScrollContainer;
|
|
12206
12245
|
exports.RowWrapper = RowWrapper;
|
|
12207
12246
|
exports.SelectColumn = SelectColumn;
|
|
12208
12247
|
exports.SortColumn = SortColumn;
|