@qualtrics/ui-react 2.36.0 → 2.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/dist/__shared/cjs/{index-7baed296.js → index-73d9e179.js} +11 -3
- package/dist/__shared/cjs/{index-52d9f519.js → index-91e58b5f.js} +170 -150
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane.js +1 -4
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +3 -0
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +27 -11
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/IconTypes.js +3 -1
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/ZoomInIcon.js +6 -0
- package/dist/icons/components/ZoomOutIcon.js +6 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.es.js +2 -0
- package/dist/icons/index.js +3 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +20 -14
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +2 -0
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +2 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/FormFieldWrapper.js +2 -0
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Hooks/usePaneSearch.js +2 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuItem.js +4 -4
- package/dist/next/Menu/MenuPane.js +21 -13
- package/dist/next/Menu/MenuSearch.js +3 -1
- package/dist/next/Menu/SubMenu.js +8 -8
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +2 -1
- package/dist/next/index.js +98 -80
- package/dist/translations-en.js +1 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +5 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"colorPickerBtnColor":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._yr1mt{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._V4i-B{margin-right:-12px;margin-left:4px}._FcOHg{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._B2DHs{margin:8px 8px 0;display:flex}._G0Nqq,._hG8Fn{margin-left:4px}._J2zmk{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._S9y5i{margin:0 4px 4px 0}._S9y5i:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._Norqp{margin:4px 8px 8px}._i5D54{position:relative;width:96px;height:96px;outline:0}._i5D54.focus-visible ._OpdL7,._i5D54:focus-visible ._OpdL7{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._6uQpD{background:linear-gradient(90deg,#fff,transparent)}._0QA2m,._6uQpD{position:absolute;top:0;right:0;bottom:0;left:0}._0QA2m{background:linear-gradient(0deg,#000,transparent)}._OpdL7{position:absolute;border:2px solid #fff;border-radius:5px;height:8px;width:8px;margin:0 0 -4px -4px;box-shadow:0 0 1px 1px rgba(0,0,0,.4),inset 0 0 1px #000}._XeLvu{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}._XeLvu.focus-visible ._vA2OU,._XeLvu:focus-visible ._vA2OU{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._vA2OU{width:16px;height:4px;background:#fff;border-radius:50%;position:absolute;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._-aK02{position:relative;width:16px;height:96px}._7cb-H{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._7cb-H,._tPfmL{position:absolute}._tPfmL{top:0;right:0;bottom:0;left:0;outline:0}._tPfmL.focus-visible ._7cb-H,._tPfmL:focus-visible ._7cb-H{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._gbWKe{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(45deg,#d9dadb 25%,transparent 0),linear-gradient(-45deg,#d9dadb 25%,transparent 0),linear-gradient(45deg,transparent 75%,#d9dadb 0),linear-gradient(-45deg,transparent 75%,#d9dadb 0);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}._qJ-Sv{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._qJ-Sv.focus-visible,._qJ-Sv:focus-visible{outline:none}._qJ-Sv.focus-visible,._qJ-Sv:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._af9jC{display:flex}._af9jC ._B9Tss{position:relative;flex-shrink:0;width:26px;height:26px}._af9jC ._hr5iX{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._af9jC ._-sReo{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
4
|
+
var styles = {"colorPickerBtnColor":"_yr1mt","colorPickerBtnIcon":"_V4i-B","colorPicker":"_FcOHg","colorPickerSliderContainer":"_B2DHs","colorPickerHue":"_G0Nqq","colorPickerAlpha":"_hG8Fn","colorPickerSwatches":"_J2zmk","colorPickerSwatch":"_S9y5i","colorPickerHex":"_Norqp","saturation":"_i5D54","saturationCircle":"_OpdL7","saturationWhite":"_6uQpD","saturationBlack":"_0QA2m","hue":"_XeLvu","hueSlider":"_vA2OU","alpha":"_-aK02","alphaSlider":"_7cb-H","alphaGradient":"_tPfmL","alphaCheckerboard":"_gbWKe","swatch":"_qJ-Sv","hex":"_af9jC","hexSwatch":"_B9Tss","hexSwatchColor":"_hr5iX","hexInput":"_-sReo"};
|
|
5
|
+
var stylesheet="._yr1mt{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._V4i-B{margin-right:-12px;margin-left:4px}._FcOHg{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._B2DHs{margin:8px 8px 0;display:flex}._G0Nqq,._hG8Fn{margin-left:4px}._J2zmk{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._S9y5i{margin:0 4px 4px 0}._S9y5i:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._Norqp{margin:4px 8px 8px}._i5D54{position:relative;width:96px;height:96px;outline:0}._i5D54.focus-visible ._OpdL7,._i5D54:focus-visible ._OpdL7{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._6uQpD{background:linear-gradient(90deg,#fff,transparent)}._0QA2m,._6uQpD{position:absolute;top:0;right:0;bottom:0;left:0}._0QA2m{background:linear-gradient(0deg,#000,transparent)}._OpdL7{position:absolute;border:2px solid #fff;border-radius:5px;height:8px;width:8px;margin:0 0 -4px -4px;box-shadow:0 0 1px 1px rgba(0,0,0,.4),inset 0 0 1px #000}._XeLvu{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}._XeLvu.focus-visible ._vA2OU,._XeLvu:focus-visible ._vA2OU{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._vA2OU{width:16px;height:4px;background:#fff;border-radius:50%;position:absolute;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._-aK02{position:relative;width:16px;height:96px}._7cb-H{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._7cb-H,._tPfmL{position:absolute}._tPfmL{top:0;right:0;bottom:0;left:0;outline:0}._tPfmL.focus-visible ._7cb-H,._tPfmL:focus-visible ._7cb-H{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._gbWKe{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(45deg,#d9dadb 25%,transparent 0),linear-gradient(-45deg,#d9dadb 25%,transparent 0),linear-gradient(45deg,transparent 75%,#d9dadb 0),linear-gradient(-45deg,transparent 75%,#d9dadb 0);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}._qJ-Sv{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._qJ-Sv.focus-visible,._qJ-Sv:focus-visible{outline:none}._qJ-Sv.focus-visible,._qJ-Sv:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._af9jC{display:flex}._af9jC ._B9Tss{position:relative;flex-shrink:0;width:26px;height:26px}._af9jC ._hr5iX{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._af9jC ._-sReo{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"numberStepperContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2Tl1U{display:inline-flex}._8KmSU{color:#32363a;background:#fafafa;outline:none;text-align:center;padding:0 12px;min-width:55px;width:100%;font-size:14px;border:1px solid #898989;border-radius:0;-moz-appearance:textfield}._8KmSU:hover:not(._FAulD){cursor:pointer;background:#f5f5f5}._8KmSU._3tL50{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._8KmSU._FAulD{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._8KmSU._FAulD>svg{opacity:.4}._8KmSU::-webkit-inner-spin-button,._8KmSU::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._8KmSU:focus{z-index:0;border:none;border-radius:4px}._8KmSU:focus:not(._3tL50){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._6OIHj,._8KmSU:focus:not(._FAulD){background:#fafafa}._6OIHj{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;fill:#515559;outline:none;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._6OIHj:hover:not(._FAulD){cursor:pointer;background:#f5f5f5}._6OIHj:active:not(._FAulD){background:#e5e5e5}._6OIHj._FAulD{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._6OIHj._FAulD>svg{opacity:.4}._hxjHN{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;background:#fafafa;fill:#515559;outline:none;border-radius:0 4px 4px 0;border:1px solid #898989;border-left-width:0}._hxjHN:hover:not(._FAulD){cursor:pointer;background:#f5f5f5}._hxjHN:active:not(._FAulD){background:#e5e5e5}._hxjHN._FAulD{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._hxjHN._FAulD>svg{opacity:.4}._xGXEj{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
|
|
4
|
+
var styles = {"numberStepperContainer":"_2Tl1U","numberStepperInput":"_8KmSU","disabled":"_FAulD","invalid":"_3tL50","decrementBtn":"_6OIHj","incrementBtn":"_hxjHN","inputValueAlert":"_xGXEj"};
|
|
5
|
+
var stylesheet="._2Tl1U{display:inline-flex}._8KmSU{color:#32363a;background:#fafafa;outline:none;text-align:center;padding:0 12px;min-width:55px;width:100%;font-size:14px;border:1px solid #898989;border-radius:0;-moz-appearance:textfield}._8KmSU:hover:not(._FAulD){cursor:pointer;background:#f5f5f5}._8KmSU._3tL50{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._8KmSU._FAulD{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._8KmSU._FAulD>svg{opacity:.4}._8KmSU::-webkit-inner-spin-button,._8KmSU::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._8KmSU:focus{z-index:0;border:none;border-radius:4px}._8KmSU:focus:not(._3tL50){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._6OIHj,._8KmSU:focus:not(._FAulD){background:#fafafa}._6OIHj{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;fill:#515559;outline:none;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._6OIHj:hover:not(._FAulD){cursor:pointer;background:#f5f5f5}._6OIHj:active:not(._FAulD){background:#e5e5e5}._6OIHj._FAulD{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._6OIHj._FAulD>svg{opacity:.4}._hxjHN{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;background:#fafafa;fill:#515559;outline:none;border-radius:0 4px 4px 0;border:1px solid #898989;border-left-width:0}._hxjHN:hover:not(._FAulD){cursor:pointer;background:#f5f5f5}._hxjHN:active:not(._FAulD){background:#e5e5e5}._hxjHN._FAulD{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._hxjHN._FAulD>svg{opacity:.4}._xGXEj{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"tabs":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._mr0tr{display:block}._oAQc4{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._U-YSs{color:#6a6d70;cursor:pointer;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border-bottom:1px solid transparent;border-radius:1px}._U-YSs:hover{color:#32363a}._U-YSs:focus{outline:none}._U-YSs._GWdth{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._bfCrg{padding-top:32px}._bfCrg._Q9Ito{display:none}._U-YSs.focus-visible,._U-YSs:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"tabs":"_mr0tr","bar":"_oAQc4","tab":"_U-YSs","active":"_GWdth","panel":"_bfCrg","inactive":"_Q9Ito"};
|
|
5
|
+
var stylesheet="._mr0tr{display:block}._oAQc4{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._U-YSs{color:#6a6d70;cursor:pointer;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border-bottom:1px solid transparent;border-radius:1px}._U-YSs:hover{color:#32363a}._U-YSs:focus{outline:none}._U-YSs._GWdth{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._bfCrg{padding-top:32px}._bfCrg._Q9Ito{display:none}._U-YSs.focus-visible,._U-YSs:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"toolbar":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._-WcFc,._wWDoR{display:flex}._wWDoR{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._4BNQV{width:69px;min-width:auto;max-width:none}._piK0O{width:100%}._kZ-dX{margin-bottom:12px;background-color:transparent!important}._kZ-dX:hover{background-color:rgba(11,110,208,.08)!important}._kZ-dX:hover>svg{fill:#085caf}._kZ-dX:hover>span{color:#085caf}._kZ-dX:active{background-color:rgba(11,110,208,.12)!important}._kZ-dX:active>svg{fill:#0854a1}._kZ-dX:active>span{color:#0854a1}._kZ-dX._QWUES{background-color:rgba(11,110,208,.08)!important}._kZ-dX._QWUES>svg{fill:#0b6ed0}._kZ-dX._QWUES>span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._kZ-dX._QWUES:hover{background-color:rgba(11,110,208,.08)!important}._kZ-dX._QWUES:hover>svg{fill:#085caf}._kZ-dX._QWUES:hover>span{color:#085caf}._kZ-dX._QWUES:active{background-color:rgba(11,110,208,.12)!important}._kZ-dX._QWUES:active>svg{fill:#0854a1}._kZ-dX._QWUES:active>span{color:#0854a1}._zb-WA{border-radius:6px}._zb-WA>._nbqNx{display:block;fill:#515559}._KaS-z{margin-top:auto;margin-bottom:0}._UC-Nn{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._UC-Nn:hover>._nL1yV{opacity:1}._qQPsZ{width:0;border-width:0;padding:0}._ttmyd{border-radius:4px;min-width:100%;min-height:100%;outline:none}._mpRt6{width:36px;height:36px;position:absolute;top:48px;right:-18px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10}._nL1yV{opacity:0}._mpRt6._Zdfh9._Zdfh9,._nL1yV:hover,._wy5cR{opacity:1}._mpRt6._XDYU4._XDYU4{opacity:0}._mpRt6>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._mpRt6>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._mpRt6>span:hover>svg{fill:#fff}._mpRt6>span:active{background-color:#0854a1;border-color:#0854a1}._mpRt6>span:active>svg{fill:#fff}._mpRt6>span>svg{fill:#515559;border-radius:50%}._ttmyd._mdvGS{display:none!important}._t5J7L{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._eMKUO{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._FWRJD{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._GMryl{fill:#515559}._r0pMB{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._FWRJD.focus-visible,._FWRJD:focus-visible,._t5J7L.focus-visible,._t5J7L:focus-visible,._ttmyd.focus-visible,._ttmyd:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._mpRt6.focus-visible,._mpRt6:focus-visible{border-color:#0a3f88}._mpRt6:active>span{background-color:#0854a1;border-color:#0854a1}._mpRt6:active>span>svg{fill:#fff}._nL1yV.focus-visible,._nL1yV:focus-visible{opacity:1}";
|
|
4
|
+
var styles = {"toolbar":"_-WcFc","toolbarNav":"_wWDoR","toolbarNavCollapsed":"_4BNQV","toolbarTabs":"_piK0O","toolbarTab":"_kZ-dX","selected":"_QWUES","toolbarTabIconButton":"_zb-WA","icon":"_nbqNx","tabsExpandCollapseButton":"_KaS-z","toolbarPanels":"_UC-Nn","toolbarPanelExpandCollapseButtonDefaultHidden":"_nL1yV","toolbarPanelsCollapsed":"_qQPsZ","toolbarPanel":"_ttmyd","toolbarPanelExpandCollapseButton":"_mpRt6","toolbarPanelExpandCollapseButtonDefaultShown":"_wy5cR","overrideShow":"_Zdfh9","overrideHide":"_XDYU4","notSelected":"_mdvGS","buttonWithLabel":"_t5J7L","buttonWithLabelLabel":"_eMKUO","iconButtonWithLabel":"_FWRJD","iconButtonWithLabelIcon":"_GMryl","iconButtonWithLabelLabel":"_r0pMB"};
|
|
5
|
+
var stylesheet="._-WcFc,._wWDoR{display:flex}._wWDoR{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._4BNQV{width:69px;min-width:auto;max-width:none}._piK0O{width:100%}._kZ-dX{margin-bottom:12px;background-color:transparent!important}._kZ-dX:hover{background-color:rgba(11,110,208,.08)!important}._kZ-dX:hover>svg{fill:#085caf}._kZ-dX:hover>span{color:#085caf}._kZ-dX:active{background-color:rgba(11,110,208,.12)!important}._kZ-dX:active>svg{fill:#0854a1}._kZ-dX:active>span{color:#0854a1}._kZ-dX._QWUES{background-color:rgba(11,110,208,.08)!important}._kZ-dX._QWUES>svg{fill:#0b6ed0}._kZ-dX._QWUES>span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._kZ-dX._QWUES:hover{background-color:rgba(11,110,208,.08)!important}._kZ-dX._QWUES:hover>svg{fill:#085caf}._kZ-dX._QWUES:hover>span{color:#085caf}._kZ-dX._QWUES:active{background-color:rgba(11,110,208,.12)!important}._kZ-dX._QWUES:active>svg{fill:#0854a1}._kZ-dX._QWUES:active>span{color:#0854a1}._zb-WA{border-radius:6px}._zb-WA>._nbqNx{display:block;fill:#515559}._KaS-z{margin-top:auto;margin-bottom:0}._UC-Nn{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._UC-Nn:hover>._nL1yV{opacity:1}._qQPsZ{width:0;border-width:0;padding:0}._ttmyd{border-radius:4px;min-width:100%;min-height:100%;outline:none}._mpRt6{width:36px;height:36px;position:absolute;top:48px;right:-18px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10}._nL1yV{opacity:0}._mpRt6._Zdfh9._Zdfh9,._nL1yV:hover,._wy5cR{opacity:1}._mpRt6._XDYU4._XDYU4{opacity:0}._mpRt6>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._mpRt6>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._mpRt6>span:hover>svg{fill:#fff}._mpRt6>span:active{background-color:#0854a1;border-color:#0854a1}._mpRt6>span:active>svg{fill:#fff}._mpRt6>span>svg{fill:#515559;border-radius:50%}._ttmyd._mdvGS{display:none!important}._t5J7L{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._eMKUO{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._FWRJD{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._GMryl{fill:#515559}._r0pMB{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._FWRJD.focus-visible,._FWRJD:focus-visible,._t5J7L.focus-visible,._t5J7L:focus-visible,._ttmyd.focus-visible,._ttmyd:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._mpRt6.focus-visible,._mpRt6:focus-visible{border-color:#0a3f88}._mpRt6:active>span{background-color:#0854a1;border-color:#0854a1}._mpRt6:active>span>svg{fill:#fff}._nL1yV.focus-visible,._nL1yV:focus-visible{opacity:1}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"overlay":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._YC7z7{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._GDJnr{visibility:hidden}._a-8vm{position:fixed}";
|
|
4
|
+
var styles = {"overlay":"_YC7z7","hidden":"_GDJnr","anchoredToBody":"_a-8vm"};
|
|
5
|
+
var stylesheet="._YC7z7{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._GDJnr{visibility:hidden}._a-8vm{position:fixed}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var classes = {"ariaLiveElement":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._6K-OR{position:absolute;top:-10000px;left:-10000px}";
|
|
4
|
+
var classes = {"ariaLiveElement":"_6K-OR"};
|
|
5
|
+
var stylesheet="._6K-OR{position:absolute;top:-10000px;left:-10000px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { classes as default, stylesheet };
|
package/dist/icons/Icon.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"icon":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._zvFjH{flex-shrink:0}";
|
|
4
|
+
var styles = {"icon":"_zvFjH"};
|
|
5
|
+
var stylesheet="._zvFjH{flex-shrink:0}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import createIconComponent from '../createIconComponent.js';
|
|
2
|
+
|
|
3
|
+
/* THIS FILE IS AUTO-GENERATED */
|
|
4
|
+
var ZoomInIcon = /*#__PURE__*/createIconComponent('ZoomIn', '<path d="M11 7.25C11.4142 7.25 11.75 7.58579 11.75 8V10.25H14C14.4142 10.25 14.75 10.5858 14.75 11C14.75 11.4142 14.4142 11.75 14 11.75H11.75V14C11.75 14.4142 11.4142 14.75 11 14.75C10.5858 14.75 10.25 14.4142 10.25 14V11.75H8C7.58579 11.75 7.25 11.4142 7.25 11C7.25 10.5858 7.58579 10.25 8 10.25H10.25V8C10.25 7.58579 10.5858 7.25 11 7.25Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.6342 17.6949C15.112 18.9773 13.1462 19.75 11 19.75C6.16751 19.75 2.25 15.8325 2.25 11C2.25 6.16751 6.16751 2.25 11 2.25C15.8325 2.25 19.75 6.16751 19.75 11C19.75 13.1462 18.9773 15.112 17.6949 16.6342L21.5303 20.4697C21.8232 20.7626 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L16.6342 17.6949ZM3.75 11C3.75 6.99594 6.99594 3.75 11 3.75C15.0041 3.75 18.25 6.99594 18.25 11C18.25 12.9606 17.4718 14.7394 16.2073 16.0444C16.1767 16.0669 16.1474 16.092 16.1197 16.1197C16.092 16.1474 16.0669 16.1767 16.0444 16.2073C14.7395 17.4717 12.9606 18.25 11 18.25C6.99594 18.25 3.75 15.0041 3.75 11Z"/>');
|
|
5
|
+
|
|
6
|
+
export { ZoomInIcon as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import createIconComponent from '../createIconComponent.js';
|
|
2
|
+
|
|
3
|
+
/* THIS FILE IS AUTO-GENERATED */
|
|
4
|
+
var ZoomOutIcon = /*#__PURE__*/createIconComponent('ZoomOut', '<path d="M8 10.25C7.58579 10.25 7.25 10.5858 7.25 11C7.25 11.4142 7.58579 11.75 8 11.75H14C14.4142 11.75 14.75 11.4142 14.75 11C14.75 10.5858 14.4142 10.25 14 10.25H8Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11 19.75C13.1462 19.75 15.112 18.9773 16.6342 17.6949L20.4697 21.5303C20.7626 21.8232 21.2374 21.8232 21.5303 21.5303C21.8232 21.2374 21.8232 20.7626 21.5303 20.4697L17.6949 16.6342C18.9773 15.112 19.75 13.1462 19.75 11C19.75 6.16751 15.8325 2.25 11 2.25C6.16751 2.25 2.25 6.16751 2.25 11C2.25 15.8325 6.16751 19.75 11 19.75ZM11 3.75C6.99594 3.75 3.75 6.99594 3.75 11C3.75 15.0041 6.99594 18.25 11 18.25C12.9606 18.25 14.7395 17.4717 16.0444 16.2073C16.0669 16.1767 16.092 16.1474 16.1197 16.1197C16.1474 16.092 16.1767 16.0669 16.2073 16.0444C17.4718 14.7394 18.25 12.9606 18.25 11C18.25 6.99594 15.0041 3.75 11 3.75Z"/>');
|
|
5
|
+
|
|
6
|
+
export { ZoomOutIcon as default };
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -1047,4 +1047,8 @@ export declare const WorkflowsIcon: ForwardRefExoticComponent<NamedIconsProps &
|
|
|
1047
1047
|
|
|
1048
1048
|
export declare const WorkingFromHomeIcon: ForwardRefExoticComponent<NamedIconsProps & RefAttributes<SVGSVGElement>>;
|
|
1049
1049
|
|
|
1050
|
+
export declare const ZoomInIcon: ForwardRefExoticComponent<NamedIconsProps & RefAttributes<SVGSVGElement>>;
|
|
1051
|
+
|
|
1052
|
+
export declare const ZoomOutIcon: ForwardRefExoticComponent<NamedIconsProps & RefAttributes<SVGSVGElement>>;
|
|
1053
|
+
|
|
1050
1054
|
export { }
|
package/dist/icons/index.es.js
CHANGED
|
@@ -512,5 +512,7 @@ export { default as WidgetsIcon } from './components/WidgetsIcon.js';
|
|
|
512
512
|
export { default as WifiIcon } from './components/WifiIcon.js';
|
|
513
513
|
export { default as WorkflowsIcon } from './components/WorkflowsIcon.js';
|
|
514
514
|
export { default as WorkingFromHomeIcon } from './components/WorkingFromHomeIcon.js';
|
|
515
|
+
export { default as ZoomInIcon } from './components/ZoomInIcon.js';
|
|
516
|
+
export { default as ZoomOutIcon } from './components/ZoomOutIcon.js';
|
|
515
517
|
|
|
516
518
|
/* THIS FILE IS AUTO-GENERATED */
|
package/dist/icons/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var icons_index = require('../__shared/cjs/index-
|
|
5
|
+
var icons_index = require('../__shared/cjs/index-73d9e179.js');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
|
@@ -523,3 +523,5 @@ exports.WidgetsIcon = icons_index.WidgetsIcon;
|
|
|
523
523
|
exports.WifiIcon = icons_index.WifiIcon;
|
|
524
524
|
exports.WorkflowsIcon = icons_index.WorkflowsIcon;
|
|
525
525
|
exports.WorkingFromHomeIcon = icons_index.WorkingFromHomeIcon;
|
|
526
|
+
exports.ZoomInIcon = icons_index.ZoomInIcon;
|
|
527
|
+
exports.ZoomOutIcon = icons_index.ZoomOutIcon;
|
package/dist/index.d.ts
CHANGED
|
@@ -1847,6 +1847,8 @@ export declare const IconTypes: {
|
|
|
1847
1847
|
readonly Wifi: "Wifi";
|
|
1848
1848
|
readonly Workflows: "Workflows";
|
|
1849
1849
|
readonly WorkingFromHome: "WorkingFromHome";
|
|
1850
|
+
readonly ZoomIn: "ZoomIn";
|
|
1851
|
+
readonly ZoomOut: "ZoomOut";
|
|
1850
1852
|
};
|
|
1851
1853
|
|
|
1852
1854
|
export declare const InlineInput: React_2.ForwardRefExoticComponent<InlineInputProps & React_2.RefAttributes<HTMLSpanElement>>;
|
package/dist/index.es.js
CHANGED
|
@@ -102,6 +102,6 @@ export { default as deprecated_ToolbarPanel } from './components/deprecated_Tool
|
|
|
102
102
|
|
|
103
103
|
/* eslint-disable camelcase */
|
|
104
104
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
105
|
-
const version = '2.
|
|
105
|
+
const version = '2.38.0';
|
|
106
106
|
|
|
107
107
|
export { version };
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./__shared/cjs/index-
|
|
5
|
+
var index = require('./__shared/cjs/index-91e58b5f.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
|
-
require('./__shared/cjs/index-
|
|
8
|
+
require('./__shared/cjs/index-73d9e179.js');
|
|
9
9
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
10
10
|
require('react-popper');
|
|
11
11
|
require('@popperjs/core');
|
|
@@ -21,7 +21,7 @@ require('throttle-debounce');
|
|
|
21
21
|
|
|
22
22
|
/* eslint-disable camelcase */
|
|
23
23
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
24
|
-
const version = '2.
|
|
24
|
+
const version = '2.38.0';
|
|
25
25
|
|
|
26
26
|
exports.Accordion = index.Accordion;
|
|
27
27
|
exports.AccordionHeader = index.AccordionHeader;
|
|
@@ -37,7 +37,7 @@ import useLatest from '../../hooks/useLatest/useLatest.js';
|
|
|
37
37
|
import wrapAround from '../../utils/wrapAround/wrapAround.js';
|
|
38
38
|
|
|
39
39
|
const AdvancedTable = _ref => {
|
|
40
|
-
var _ref8;
|
|
40
|
+
var _ref8, _ref9;
|
|
41
41
|
let {
|
|
42
42
|
columnConfigs: externalColumnConfigs,
|
|
43
43
|
rows: rowsPropExternal,
|
|
@@ -326,13 +326,13 @@ const AdvancedTable = _ref => {
|
|
|
326
326
|
const columnHeaderCheckboxState = useMemo(() => {
|
|
327
327
|
const visibleRows = paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows;
|
|
328
328
|
const checkedRows = visibleRows.filter(row => getCheckboxStateForRow(row) === true);
|
|
329
|
+
if (!checkedRows.length) {
|
|
330
|
+
return false;
|
|
331
|
+
}
|
|
329
332
|
if (checkedRows.length === visibleRows.length) {
|
|
330
333
|
return true;
|
|
331
334
|
}
|
|
332
|
-
|
|
333
|
-
return 'mixed';
|
|
334
|
-
}
|
|
335
|
-
return false;
|
|
335
|
+
return 'mixed';
|
|
336
336
|
}, [checkedRowIdsSet, paginatedRows, rows]);
|
|
337
337
|
const handleColumnHeaderCheckboxToggle = () => {
|
|
338
338
|
setLastToggledRowId('');
|
|
@@ -472,6 +472,7 @@ const AdvancedTable = _ref => {
|
|
|
472
472
|
break;
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
|
+
const getColumnHeaderTestId = id => dataTestId && id ? "".concat(dataTestId, "-").concat(id) : undefined;
|
|
475
476
|
const getColumnHeaderProps = (columnConfig, columnIndex, isPinned) => {
|
|
476
477
|
var _columnWidths$id;
|
|
477
478
|
const rowIndex = headerRowIndex;
|
|
@@ -486,7 +487,7 @@ const AdvancedTable = _ref => {
|
|
|
486
487
|
return {
|
|
487
488
|
id,
|
|
488
489
|
isRowActionMenuColumn,
|
|
489
|
-
'data-testid':
|
|
490
|
+
'data-testid': getColumnHeaderTestId(id),
|
|
490
491
|
label: headerLabel,
|
|
491
492
|
width: (_columnWidths$id = columnWidths[id]) !== null && _columnWidths$id !== void 0 ? _columnWidths$id : width,
|
|
492
493
|
widthBuffer: columnIndex === 0 && maxRowDepth > 0 ? columnWidthBuffers[0] : undefined,
|
|
@@ -650,8 +651,10 @@ const AdvancedTable = _ref => {
|
|
|
650
651
|
className: classNames(styles.pinnedContainer, styles.advancedTableRowChild),
|
|
651
652
|
ref: createPinnedContainerRef(headerRowIndex)
|
|
652
653
|
}, hasCheckboxColumn && /*#__PURE__*/React__default.createElement(AdvancedTableCheckbox, {
|
|
654
|
+
"data-testid": getColumnHeaderTestId('CheckboxColumnHeader'),
|
|
653
655
|
state: columnHeaderCheckboxState,
|
|
654
656
|
isRowFocused: headerRowIndex === focusedRowIndex,
|
|
657
|
+
isDisabled: !((_ref8 = paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows) !== null && _ref8 !== void 0 ? _ref8 : []).length,
|
|
655
658
|
onClick: handleColumnHeaderCheckboxToggle,
|
|
656
659
|
variant: "header"
|
|
657
660
|
}), hasExpandableRows && pinnedColumnConfigs.length ? getExpandableRowsSpacer("".concat(widthBufferWidth, "px"), true) : undefined, pinnedColumnConfigs.map((columnConfigs, i) => {
|
|
@@ -663,7 +666,7 @@ const AdvancedTable = _ref => {
|
|
|
663
666
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
664
667
|
role: "rowgroup",
|
|
665
668
|
className: styles.advancedTableRowGroup
|
|
666
|
-
}, ((
|
|
669
|
+
}, ((_ref9 = paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows) !== null && _ref9 !== void 0 ? _ref9 : []).map((row, rowIndex) => {
|
|
667
670
|
const {
|
|
668
671
|
id: rowId,
|
|
669
672
|
data,
|
|
@@ -691,11 +694,13 @@ const AdvancedTable = _ref => {
|
|
|
691
694
|
onSelect(e);
|
|
692
695
|
}
|
|
693
696
|
};
|
|
697
|
+
const rowDataTestId = dataTestId && rowId ? "".concat(dataTestId, "-row-").concat(rowId) : undefined;
|
|
698
|
+
const checkboxDataTestId = rowDataTestId && "".concat(rowDataTestId, "-Checkbox");
|
|
694
699
|
return /*#__PURE__*/React__default.createElement(AdvancedTableRow, _extends({}, rowProps, {
|
|
695
700
|
"aria-rowindex": hasExpandableRows ? undefined : paginatedRowIndex + 2 // aria-rowindex is one-indexed + the column headers row is the first row in the table
|
|
696
701
|
,
|
|
697
702
|
"aria-expanded": hasChildRows ? !!isExpanded : undefined,
|
|
698
|
-
"data-testid":
|
|
703
|
+
"data-testid": rowDataTestId,
|
|
699
704
|
hasOnRowSelect: hasOnRowSelect,
|
|
700
705
|
isFocusable: hasFocusableRows,
|
|
701
706
|
isFocused: paginatedRowIndex === focusedRowIndex && minColumnIndex === focusedColumnIndex,
|
|
@@ -715,6 +720,7 @@ const AdvancedTable = _ref => {
|
|
|
715
720
|
className: classNames(styles.pinnedContainer, styles.advancedTableRowChild),
|
|
716
721
|
ref: createPinnedContainerRef(paginatedRowIndex)
|
|
717
722
|
}, hasCheckboxColumn && /*#__PURE__*/React__default.createElement(AdvancedTableCheckbox, {
|
|
723
|
+
"data-testid": checkboxDataTestId,
|
|
718
724
|
state: getCheckboxStateForRow(row),
|
|
719
725
|
isRowFocused: paginatedRowIndex === focusedRowIndex,
|
|
720
726
|
onClick: e => {
|
|
@@ -753,13 +759,13 @@ const AdvancedTable = _ref => {
|
|
|
753
759
|
};
|
|
754
760
|
|
|
755
761
|
// TODO: move hook to separate file
|
|
756
|
-
function useSortedRows(
|
|
762
|
+
function useSortedRows(_ref10) {
|
|
757
763
|
let {
|
|
758
764
|
columnConfigs,
|
|
759
765
|
onRowsChange,
|
|
760
766
|
selectedSortOption,
|
|
761
767
|
setCurrentPage
|
|
762
|
-
} =
|
|
768
|
+
} = _ref10;
|
|
763
769
|
const columnConfigsRef = useLatest(columnConfigs);
|
|
764
770
|
const onRowsChangeRef = useLatest(onRowsChange);
|
|
765
771
|
useDidUpdate(() => {
|
|
@@ -768,10 +774,10 @@ function useSortedRows(_ref9) {
|
|
|
768
774
|
columnId,
|
|
769
775
|
index
|
|
770
776
|
} = selectedSortOption;
|
|
771
|
-
const sort = (_columnConfigsRef$cur = columnConfigsRef.current.find(
|
|
777
|
+
const sort = (_columnConfigsRef$cur = columnConfigsRef.current.find(_ref11 => {
|
|
772
778
|
let {
|
|
773
779
|
id
|
|
774
|
-
} =
|
|
780
|
+
} = _ref11;
|
|
775
781
|
return id === columnId;
|
|
776
782
|
})) === null || _columnConfigsRef$cur === void 0 || (_columnConfigsRef$cur = _columnConfigsRef$cur.sortOptions) === null || _columnConfigsRef$cur === void 0 || (_columnConfigsRef$cur = _columnConfigsRef$cur[index]) === null || _columnConfigsRef$cur === void 0 ? void 0 : _columnConfigsRef$cur.sort;
|
|
777
783
|
if (typeof sort === 'function' && onRowsChangeRef.current) {
|
|
@@ -782,7 +788,7 @@ function useSortedRows(_ref9) {
|
|
|
782
788
|
}
|
|
783
789
|
|
|
784
790
|
// TODO: move hook to separate file
|
|
785
|
-
function useFocusState(
|
|
791
|
+
function useFocusState(_ref12) {
|
|
786
792
|
let {
|
|
787
793
|
headerRowIndex,
|
|
788
794
|
maxRowIndex,
|
|
@@ -792,7 +798,7 @@ function useFocusState(_ref11) {
|
|
|
792
798
|
pinnedUnpinnedColumnOrder,
|
|
793
799
|
tableRef,
|
|
794
800
|
currentPage
|
|
795
|
-
} =
|
|
801
|
+
} = _ref12;
|
|
796
802
|
const cellRefs = useRef({});
|
|
797
803
|
const pinnedContainersRef = useRef({});
|
|
798
804
|
const [focusedRowIndex, setFocusedRowIndex] = useState(headerRowIndex);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"advancedTable":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._ihnFy{overflow:auto;position:relative;max-width:100%;max-height:100%}._ihnFy,._yhNIb{background-color:#fff}._yhNIb{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._6DRoW{margin-bottom:4px}._YZiNE{position:-webkit-sticky;position:sticky;top:0;z-index:100}._WmdVQ{display:flex}._WmdVQ:focus{outline:none}._WmdVQ.focus-visible ._o2b6D:after,._WmdVQ:focus-visible ._o2b6D:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._WmdVQ.focus-visible ._o2b6D:last-of-type:after,._WmdVQ:focus-visible ._o2b6D:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._WmdVQ.focus-visible ._o2b6D:first-of-type:after,._WmdVQ:focus-visible ._o2b6D:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._WmdVQ.focus-visible ._o2b6D._vOJCT:after,._WmdVQ:focus-visible ._o2b6D._vOJCT:after{right:-3px;bottom:1px}._Vv88B{padding-right:3px}._NDahX{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._0vWQK{display:flex}._0vWQK._mijZr ._btD-k,._0vWQK._mijZr ._o2b6D{cursor:pointer}._0vWQK._CSIH7 ._btD-k,._0vWQK._CSIH7 ._o2b6D{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._0vWQK._CSIH7 ._btD-k._vOJCT,._0vWQK._CSIH7 ._o2b6D._vOJCT{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._0vWQK._CSIH7 ._btD-k._vOJCT ._-os75,._0vWQK._CSIH7 ._btD-k._vOJCT ._btD-k,._0vWQK._CSIH7 ._btD-k._vOJCT ._qAzUM,._0vWQK._CSIH7 ._o2b6D._vOJCT ._-os75,._0vWQK._CSIH7 ._o2b6D._vOJCT ._btD-k,._0vWQK._CSIH7 ._o2b6D._vOJCT ._qAzUM{background-color:rgba(11,110,208,.08)}._0vWQK._mijZr:hover:not(._CSIH7) ._btD-k,._0vWQK._mijZr:hover:not(._CSIH7) ._o2b6D{background-color:#f9f9f9}._0vWQK._mijZr:active:not(._CSIH7):not(._0vWQK._mijZr:active:not(._CSIH7):has(._qAzUM:active)) ._btD-k,._0vWQK._mijZr:active:not(._CSIH7):not(._0vWQK._mijZr:active:not(._CSIH7):has(._qAzUM:active)) ._o2b6D{background-color:#f3f3f3}._0vWQK:focus{outline:none}._0vWQK.focus-visible ._o2b6D:after,._0vWQK:focus-visible ._o2b6D:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._0vWQK.focus-visible ._o2b6D:last-of-type:after,._0vWQK:focus-visible ._o2b6D:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._0vWQK.focus-visible ._o2b6D:first-of-type:after,._0vWQK:focus-visible ._o2b6D:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._0vWQK.focus-visible ._o2b6D._vOJCT:after,._0vWQK:focus-visible ._o2b6D._vOJCT:after{right:-3px;bottom:0}._0vWQK:last-of-type:focus{outline:none}._0vWQK:last-of-type.focus-visible ._o2b6D:after,._0vWQK:last-of-type:focus-visible ._o2b6D:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._0vWQK:last-of-type.focus-visible ._o2b6D:last-of-type:after,._0vWQK:last-of-type:focus-visible ._o2b6D:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._0vWQK:last-of-type.focus-visible ._o2b6D:first-of-type:after,._0vWQK:last-of-type:focus-visible ._o2b6D:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._0vWQK:last-of-type.focus-visible ._o2b6D._vOJCT:after,._0vWQK:last-of-type:focus-visible ._o2b6D._vOJCT:after{right:-3px;bottom:1px}._0vWQK:last-of-type ._-os75:focus{outline:none}._0vWQK:last-of-type ._-os75._clDjD.focus-visible:after,._0vWQK:last-of-type ._-os75._clDjD:focus-visible:after,._0vWQK:last-of-type ._-os75.focus-visible:after,._0vWQK:last-of-type ._-os75:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._0vWQK:first-of-type:focus{outline:none}._0vWQK:first-of-type.focus-visible ._o2b6D:after,._0vWQK:first-of-type:focus-visible ._o2b6D:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._0vWQK:first-of-type.focus-visible ._o2b6D:last-of-type:after,._0vWQK:first-of-type:focus-visible ._o2b6D:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._0vWQK:first-of-type.focus-visible ._o2b6D:first-of-type:after,._0vWQK:first-of-type:focus-visible ._o2b6D:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._0vWQK:first-of-type.focus-visible ._o2b6D._vOJCT:after,._0vWQK:first-of-type:focus-visible ._o2b6D._vOJCT:after{right:-3px;bottom:0}._0vWQK:first-of-type ._-os75:focus{outline:none}._0vWQK:first-of-type ._-os75._clDjD.focus-visible:after,._0vWQK:first-of-type ._-os75._clDjD:focus-visible:after,._0vWQK:first-of-type ._-os75.focus-visible:after,._0vWQK:first-of-type ._-os75:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._nGuhE{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._nGuhE._6e8i7{flex-grow:1}._nGuhE._CuvLu{cursor:pointer}._nGuhE._CuvLu:hover:not(._cry2Y){background-color:#f9f9f9;border-bottom-color:#6a6d70}._nGuhE._CuvLu:active:not(._cry2Y){background-color:#f3f3f3}._nGuhE._89E0D:not(._cry2Y){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._nGuhE._cry2Y{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._nGuhE ._wH96H{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._nGuhE ._wH96H._a-0-V{left:-1px}._nGuhE ._wH96H._uwUbc{right:0}._nGuhE ._Wvehq{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._nGuhE ._Wvehq._a-0-V{left:-2px}._nGuhE ._Wvehq._uwUbc{right:-1px}._nGuhE:first-of-type ._a-0-V._wH96H{left:0;width:2px;border-left:1px solid #fff}._nGuhE:first-of-type ._a-0-V._Wvehq{left:0}._nGuhE:last-of-type ._uwUbc._wH96H{right:0;width:2px;border-right:1px solid #fff}._nGuhE:last-of-type ._uwUbc._Wvehq{right:0}._nGuhE ._SJEXS{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._nGuhE ._SJEXS ._Hsh38{position:absolute;width:2px;right:2px;top:0;bottom:0}._nGuhE ._SJEXS ._Hsh38._uYrde{background-color:#0a6ed1}._nGuhE ._SJEXS:hover ._Hsh38:not(._uYrde){background-color:#d9d9d9}._nGuhE ._5ezNV{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._nGuhE ._5ezNV._pTi69{flex-direction:row-reverse;justify-content:flex-start}._nGuhE ._5ezNV._pTi69 ._EqStZ{margin:1px 7px 1px 1px}._nGuhE ._5ezNV ._nWX0A{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._nGuhE ._5ezNV ._EqStZ{margin:1px 1px 1px 7px;flex-shrink:0}._nGuhE ._fpQyR{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._nGuhE ._5ov83{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._nGuhE:focus{outline:none}._nGuhE._clDjD.focus-visible:after,._nGuhE._clDjD:focus-visible:after,._nGuhE.focus-visible:after,._nGuhE:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._VEN0J{margin-right:6px}._vOJCT{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._vOJCT[focus-within]{z-index:30}._vOJCT:focus-within{z-index:30}._-os75{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._-os75 ._KcNVf{width:100%;padding:12px 12px 11px;overflow:hidden}._-os75._cry2Y{background-color:#efefef;border-bottom-color:#dfdfe1}._-os75._6e8i7{flex-grow:1}._-os75:focus{outline:none}._-os75._clDjD.focus-visible:after,._-os75._clDjD:focus-visible:after,._-os75.focus-visible:after,._-os75:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._btD-k{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._btD-k._Mo5Y0{border-bottom-color:#d9d9d9;background-color:#fff}._qAzUM{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._qAzUM._Mo5Y0{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._qAzUM:focus input~span,._qAzUM:hover input~span{border-color:#0b6ed0}._a2e-M{justify-content:flex-start}._WfD13{justify-content:center;text-align:center}._pTi69{justify-content:flex-end;text-align:right}._lCwlC{display:none}._NFPQ-{opacity:0;height:0;width:0;overflow:hidden}._eXsi7,._NFPQ-{position:absolute}._eXsi7{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._-qb1x{max-width:250px;min-width:150px!important}";
|
|
4
|
+
var styles = {"advancedTable":"_ihnFy","advancedTablePaginationContainer":"_yhNIb","advancedTablePagination":"_6DRoW","advancedTableColumnHeadersRowGroup":"_YZiNE","advancedTableColumnHeaders":"_WmdVQ","advancedTableRowChild":"_o2b6D","pinnedContainer":"_vOJCT","advancedTableRowGroup":"_Vv88B","advancedTableRowRestrictedWidth":"_NDahX","advancedTableRow":"_0vWQK","hasRowAction":"_mijZr","advancedTableExpandRowSpacer":"_btD-k","isSelected":"_CSIH7","advancedTableCheckbox":"_qAzUM","advancedTableCell":"_-os75","showFocusRing":"_clDjD","advancedTableColumnHeader":"_nGuhE","fillRemainingSpace":"_6e8i7","isSortable":"_CuvLu","isDragging":"_cry2Y","isSorted":"_89E0D","dropTargetLine":"_wH96H","dropTargetLeft":"_a-0-V","dropTargetRight":"_uwUbc","dropTargetMarker":"_Wvehq","resizeHandle":"_SJEXS","resizeLine":"_Hsh38","isResizing":"_uYrde","advancedTableColumnHeaderLabel":"_5ezNV","rightAligned":"_pTi69","sortIcon":"_EqStZ","advancedTableColumnHeaderLabelText":"_nWX0A","advancedTableColumnHeaderMenu":"_fpQyR","advancedTableColumnHeaderMenuHiddenAnchor":"_5ov83","advancedTableColumnHeaderMenuItemIcon":"_VEN0J","advancedTableCellContainer":"_KcNVf","header":"_Mo5Y0","leftAligned":"_a2e-M","centerAligned":"_WfD13","hiddenDescription":"_lCwlC","hiddenLiveRegion":"_NFPQ-","dragPreview":"_eXsi7","rowActionMenuPane":"_-qb1x"};
|
|
5
|
+
var stylesheet="._ihnFy{overflow:auto;position:relative;max-width:100%;max-height:100%}._ihnFy,._yhNIb{background-color:#fff}._yhNIb{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._6DRoW{margin-bottom:4px}._YZiNE{position:-webkit-sticky;position:sticky;top:0;z-index:100}._WmdVQ{display:flex}._WmdVQ:focus{outline:none}._WmdVQ.focus-visible ._o2b6D:after,._WmdVQ:focus-visible ._o2b6D:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._WmdVQ.focus-visible ._o2b6D:last-of-type:after,._WmdVQ:focus-visible ._o2b6D:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._WmdVQ.focus-visible ._o2b6D:first-of-type:after,._WmdVQ:focus-visible ._o2b6D:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._WmdVQ.focus-visible ._o2b6D._vOJCT:after,._WmdVQ:focus-visible ._o2b6D._vOJCT:after{right:-3px;bottom:1px}._Vv88B{padding-right:3px}._NDahX{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._0vWQK{display:flex}._0vWQK._mijZr ._btD-k,._0vWQK._mijZr ._o2b6D{cursor:pointer}._0vWQK._CSIH7 ._btD-k,._0vWQK._CSIH7 ._o2b6D{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._0vWQK._CSIH7 ._btD-k._vOJCT,._0vWQK._CSIH7 ._o2b6D._vOJCT{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._0vWQK._CSIH7 ._btD-k._vOJCT ._-os75,._0vWQK._CSIH7 ._btD-k._vOJCT ._btD-k,._0vWQK._CSIH7 ._btD-k._vOJCT ._qAzUM,._0vWQK._CSIH7 ._o2b6D._vOJCT ._-os75,._0vWQK._CSIH7 ._o2b6D._vOJCT ._btD-k,._0vWQK._CSIH7 ._o2b6D._vOJCT ._qAzUM{background-color:rgba(11,110,208,.08)}._0vWQK._mijZr:hover:not(._CSIH7) ._btD-k,._0vWQK._mijZr:hover:not(._CSIH7) ._o2b6D{background-color:#f9f9f9}._0vWQK._mijZr:active:not(._CSIH7):not(._0vWQK._mijZr:active:not(._CSIH7):has(._qAzUM:active)) ._btD-k,._0vWQK._mijZr:active:not(._CSIH7):not(._0vWQK._mijZr:active:not(._CSIH7):has(._qAzUM:active)) ._o2b6D{background-color:#f3f3f3}._0vWQK:focus{outline:none}._0vWQK.focus-visible ._o2b6D:after,._0vWQK:focus-visible ._o2b6D:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._0vWQK.focus-visible ._o2b6D:last-of-type:after,._0vWQK:focus-visible ._o2b6D:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._0vWQK.focus-visible ._o2b6D:first-of-type:after,._0vWQK:focus-visible ._o2b6D:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._0vWQK.focus-visible ._o2b6D._vOJCT:after,._0vWQK:focus-visible ._o2b6D._vOJCT:after{right:-3px;bottom:0}._0vWQK:last-of-type:focus{outline:none}._0vWQK:last-of-type.focus-visible ._o2b6D:after,._0vWQK:last-of-type:focus-visible ._o2b6D:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._0vWQK:last-of-type.focus-visible ._o2b6D:last-of-type:after,._0vWQK:last-of-type:focus-visible ._o2b6D:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._0vWQK:last-of-type.focus-visible ._o2b6D:first-of-type:after,._0vWQK:last-of-type:focus-visible ._o2b6D:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._0vWQK:last-of-type.focus-visible ._o2b6D._vOJCT:after,._0vWQK:last-of-type:focus-visible ._o2b6D._vOJCT:after{right:-3px;bottom:1px}._0vWQK:last-of-type ._-os75:focus{outline:none}._0vWQK:last-of-type ._-os75._clDjD.focus-visible:after,._0vWQK:last-of-type ._-os75._clDjD:focus-visible:after,._0vWQK:last-of-type ._-os75.focus-visible:after,._0vWQK:last-of-type ._-os75:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._0vWQK:first-of-type:focus{outline:none}._0vWQK:first-of-type.focus-visible ._o2b6D:after,._0vWQK:first-of-type:focus-visible ._o2b6D:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._0vWQK:first-of-type.focus-visible ._o2b6D:last-of-type:after,._0vWQK:first-of-type:focus-visible ._o2b6D:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._0vWQK:first-of-type.focus-visible ._o2b6D:first-of-type:after,._0vWQK:first-of-type:focus-visible ._o2b6D:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._0vWQK:first-of-type.focus-visible ._o2b6D._vOJCT:after,._0vWQK:first-of-type:focus-visible ._o2b6D._vOJCT:after{right:-3px;bottom:0}._0vWQK:first-of-type ._-os75:focus{outline:none}._0vWQK:first-of-type ._-os75._clDjD.focus-visible:after,._0vWQK:first-of-type ._-os75._clDjD:focus-visible:after,._0vWQK:first-of-type ._-os75.focus-visible:after,._0vWQK:first-of-type ._-os75:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._nGuhE{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._nGuhE._6e8i7{flex-grow:1}._nGuhE._CuvLu{cursor:pointer}._nGuhE._CuvLu:hover:not(._cry2Y){background-color:#f9f9f9;border-bottom-color:#6a6d70}._nGuhE._CuvLu:active:not(._cry2Y){background-color:#f3f3f3}._nGuhE._89E0D:not(._cry2Y){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._nGuhE._cry2Y{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._nGuhE ._wH96H{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._nGuhE ._wH96H._a-0-V{left:-1px}._nGuhE ._wH96H._uwUbc{right:0}._nGuhE ._Wvehq{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._nGuhE ._Wvehq._a-0-V{left:-2px}._nGuhE ._Wvehq._uwUbc{right:-1px}._nGuhE:first-of-type ._a-0-V._wH96H{left:0;width:2px;border-left:1px solid #fff}._nGuhE:first-of-type ._a-0-V._Wvehq{left:0}._nGuhE:last-of-type ._uwUbc._wH96H{right:0;width:2px;border-right:1px solid #fff}._nGuhE:last-of-type ._uwUbc._Wvehq{right:0}._nGuhE ._SJEXS{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._nGuhE ._SJEXS ._Hsh38{position:absolute;width:2px;right:2px;top:0;bottom:0}._nGuhE ._SJEXS ._Hsh38._uYrde{background-color:#0a6ed1}._nGuhE ._SJEXS:hover ._Hsh38:not(._uYrde){background-color:#d9d9d9}._nGuhE ._5ezNV{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._nGuhE ._5ezNV._pTi69{flex-direction:row-reverse;justify-content:flex-start}._nGuhE ._5ezNV._pTi69 ._EqStZ{margin:1px 7px 1px 1px}._nGuhE ._5ezNV ._nWX0A{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._nGuhE ._5ezNV ._EqStZ{margin:1px 1px 1px 7px;flex-shrink:0}._nGuhE ._fpQyR{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._nGuhE ._5ov83{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._nGuhE:focus{outline:none}._nGuhE._clDjD.focus-visible:after,._nGuhE._clDjD:focus-visible:after,._nGuhE.focus-visible:after,._nGuhE:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._VEN0J{margin-right:6px}._vOJCT{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._vOJCT[focus-within]{z-index:30}._vOJCT:focus-within{z-index:30}._-os75{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._-os75 ._KcNVf{width:100%;padding:12px 12px 11px;overflow:hidden}._-os75._cry2Y{background-color:#efefef;border-bottom-color:#dfdfe1}._-os75._6e8i7{flex-grow:1}._-os75:focus{outline:none}._-os75._clDjD.focus-visible:after,._-os75._clDjD:focus-visible:after,._-os75.focus-visible:after,._-os75:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._btD-k{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._btD-k._Mo5Y0{border-bottom-color:#d9d9d9;background-color:#fff}._qAzUM{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._qAzUM._Mo5Y0{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._qAzUM:focus input~span,._qAzUM:hover input~span{border-color:#0b6ed0}._a2e-M{justify-content:flex-start}._WfD13{justify-content:center;text-align:center}._pTi69{justify-content:flex-end;text-align:right}._lCwlC{display:none}._NFPQ-{opacity:0;height:0;width:0;overflow:hidden}._eXsi7,._NFPQ-{position:absolute}._eXsi7{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._-qb1x{max-width:250px;min-width:150px!important}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -10,6 +10,7 @@ import useScreenReaderAnnouncement from '../../hooks/useScreenReaderAnnouncement
|
|
|
10
10
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
11
11
|
const AdvancedTableCheckbox = _ref => {
|
|
12
12
|
let {
|
|
13
|
+
'data-testid': dataTestId,
|
|
13
14
|
state,
|
|
14
15
|
onClick,
|
|
15
16
|
variant = 'cell',
|
|
@@ -35,6 +36,7 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
35
36
|
}
|
|
36
37
|
}, [isRowFocused, announceToScreenReader, label]);
|
|
37
38
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
39
|
+
"data-testid": dataTestId,
|
|
38
40
|
onClick: onClick,
|
|
39
41
|
className: classNames(styles.advancedTableCheckbox, className, {
|
|
40
42
|
[styles.header]: variant === 'header'
|
|
@@ -248,9 +248,9 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
248
248
|
"aria-colindex": columnIndex + 1 // aria-colindex is one-indexed
|
|
249
249
|
,
|
|
250
250
|
"aria-sort": isSortable ? isSorted ? selectedSortOption.direction : 'none' : undefined,
|
|
251
|
+
onClick: isSortable ? handleClick : undefined,
|
|
251
252
|
onKeyDown: handleKeyDown,
|
|
252
253
|
onFocus: onFocus,
|
|
253
|
-
onClick: isSortable ? handleClick : undefined,
|
|
254
254
|
tabIndex: isFocused ? 0 : -1,
|
|
255
255
|
className: classNames(styles.advancedTableColumnHeader, {
|
|
256
256
|
[styles.advancedTableRowChild]: !isPinned,
|
|
@@ -266,6 +266,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
266
266
|
},
|
|
267
267
|
ref: mergeRefs(columnHeaderRef, dragRef, dropRef, ref)
|
|
268
268
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
269
|
+
role: isSortable ? 'button' : undefined,
|
|
269
270
|
className: classNames(styles.advancedTableColumnHeaderLabel, {
|
|
270
271
|
[styles.leftAligned]: alignment === 'left',
|
|
271
272
|
[styles.centerAligned]: alignment === 'center',
|