@qualtrics/ui-react 2.23.1-alpha.2 → 2.24.1-alpha.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 +14 -0
- package/dist/__shared/cjs/{index-d609f942.js → index-0ac65a5b.js} +4 -4
- package/dist/__shared/cjs/{index-da3cbfe3.js → index-e9223791.js} +314 -309
- package/dist/components/Accordion/Accordion2.js +4 -4
- package/dist/components/Banner/Banner.css.ts.vanilla.js +1 -1
- package/dist/components/Button/Button.js +4 -4
- package/dist/components/ButtonGroup/ButtonGroup2.js +4 -4
- package/dist/components/Checkbox/Check.js +1 -1
- package/dist/components/Checkbox/Checkbox2.js +4 -4
- package/dist/components/Checkbox/VisualCheckbox.js +2 -2
- package/dist/components/Checkbox/VisualCheckbox2.js +4 -4
- package/dist/components/ColorPicker/ColorPicker2.js +4 -4
- package/dist/components/Combobox/Combobox2.js +4 -4
- package/dist/components/ConfigPane/ConfigPane2.js +4 -4
- package/dist/components/Divider/Divider2.js +4 -4
- package/dist/components/Dropdown/Dropdown2.js +4 -4
- package/dist/components/Dropdown/DropdownButton.js +2 -1
- package/dist/components/FilePicker/FilePicker2.js +4 -4
- package/dist/components/FormField/Caption.js +4 -4
- package/dist/components/FormField/FormField2.js +4 -4
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +4 -4
- package/dist/components/IconButton/IconButton.js +3 -3
- package/dist/components/IconButton/IconButton2.js +5 -5
- package/dist/components/InlineInput/InlineInput2.js +4 -4
- package/dist/components/Input/Input2.js +4 -4
- package/dist/components/InputGroup/InputGroup2.js +4 -4
- package/dist/components/Label/Label2.js +4 -4
- package/dist/components/Link/Link2.js +4 -4
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +4 -4
- package/dist/components/LogicEditor/ConditionContainer.js +4 -1
- package/dist/components/LogicEditor/LogicEditor2.js +4 -4
- package/dist/components/Modal/Modal2.js +4 -4
- package/dist/components/NewMenu/NewMenu.js +4 -4
- package/dist/components/NumberStepper/NumberStepper2.js +4 -4
- package/dist/components/PageLayout/PageLayout.js +4 -4
- package/dist/components/Pagination/Pagination2.js +4 -4
- package/dist/components/Popover/Popover2.js +4 -4
- package/dist/components/QuickSearch/QuickSearch2.js +4 -4
- package/dist/components/Radio/Radio2.js +4 -4
- package/dist/components/SearchInput/SearchInput2.js +4 -4
- package/dist/components/SidebarNav/SidebarNav2.js +4 -4
- package/dist/components/Slider/Slider2.js +4 -4
- package/dist/components/Switch/Switch2.js +4 -4
- package/dist/components/Table/Table2.js +4 -4
- package/dist/components/Tabs/Tabs2.js +4 -4
- package/dist/components/Tooltip/Tooltip2.js +4 -4
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +4 -4
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +4 -4
- package/dist/components/deprecated_Tabs/Tabs2.js +4 -4
- package/dist/components/deprecated_Toolbar/Toolbar2.js +4 -4
- package/dist/hooks/useOverlay/useOverlay2.js +4 -4
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +4 -4
- package/dist/icons/Icon.js +4 -4
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +49 -53
- package/dist/next/AdvancedTable/AdvancedTable2.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +21 -27
- package/dist/next/AdvancedTable/AdvancedTableRow.js +1 -3
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +10 -15
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +4 -4
- package/dist/next/Combobox/Combobox2.js +4 -4
- package/dist/next/Drawer/Drawer2.js +4 -4
- package/dist/next/FilterAnchor/FilterAnchor2.js +4 -4
- package/dist/next/Input/Input2.js +4 -4
- package/dist/next/Menu/Menu2.js +4 -4
- package/dist/next/Menu/usePaneSearch.js +9 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +4 -4
- package/dist/next/SplitButton/SplitButton2.js +4 -4
- package/dist/next/TimePicker/TimePicker2.js +4 -4
- package/dist/next/ToggleButton/styles.js +4 -4
- package/dist/next/index.js +129 -146
- package/dist/utils/Flyout/Flyout2.js +4 -4
- package/dist/utils/Popper/Popper2.js +1 -1
- package/next/package.json +1 -1
- package/package.json +2 -2
|
@@ -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 = {"tooltip":"
|
|
5
|
-
var stylesheet=".
|
|
6
|
-
if(typeof
|
|
3
|
+
var css_248z = "._nrXnx{position:absolute;z-index:2000;max-width:240px;padding:8px 16px;color:#fff;text-align:center;text-decoration:none;background-color:#222;border-radius:4px;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);font-size:14px;opacity:0;pointer-events:none;overflow-wrap:break-word;border:1px solid #898989}._nrXnx._qh2gd{color:#32363a;background-color:#fff}._aUj3d{opacity:1;pointer-events:all}._JF7iC,._JF7iC>div{position:absolute;width:8px;height:8px;background:inherit}._JF7iC{visibility:hidden;z-index:2000}._JF7iC>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._JF7iC{bottom:-4px}[data-popper-placement^=top]>._JF7iC>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._JF7iC{left:-5px}[data-popper-placement^=right]>._JF7iC>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._JF7iC{top:-5px}[data-popper-placement^=bottom]>._JF7iC>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._JF7iC{right:-4px}[data-popper-placement^=left]>._JF7iC>div{border-bottom-color:transparent;border-left-color:transparent}._SneRS{position:absolute}[data-popper-placement^=top]>._SneRS{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._SneRS{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._SneRS{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._SneRS{top:0;right:-13px;width:17px;height:100%}";
|
|
4
|
+
var styles = {"tooltip":"_nrXnx","lightTheme":"_qh2gd","visible":"_aUj3d","arrow":"_JF7iC","offsetBackplate":"_SneRS"};
|
|
5
|
+
var stylesheet="._nrXnx{position:absolute;z-index:2000;max-width:240px;padding:8px 16px;color:#fff;text-align:center;text-decoration:none;background-color:#222;border-radius:4px;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);font-size:14px;opacity:0;pointer-events:none;overflow-wrap:break-word;border:1px solid #898989}._nrXnx._qh2gd{color:#32363a;background-color:#fff}._aUj3d{opacity:1;pointer-events:all}._JF7iC,._JF7iC>div{position:absolute;width:8px;height:8px;background:inherit}._JF7iC{visibility:hidden;z-index:2000}._JF7iC>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._JF7iC{bottom:-4px}[data-popper-placement^=top]>._JF7iC>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._JF7iC{left:-5px}[data-popper-placement^=right]>._JF7iC>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._JF7iC{top:-5px}[data-popper-placement^=bottom]>._JF7iC>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._JF7iC{right:-4px}[data-popper-placement^=left]>._JF7iC>div{border-bottom-color:transparent;border-left-color:transparent}._SneRS{position:absolute}[data-popper-placement^=top]>._SneRS{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._SneRS{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._SneRS{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._SneRS{top:0;right:-13px;width:17px;height:100%}";
|
|
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 = {"colorPickerBtnColor":"
|
|
5
|
-
var stylesheet=".
|
|
6
|
-
if(typeof
|
|
3
|
+
var css_248z = "._ku9zN{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._smFgq{margin-right:-12px;margin-left:4px}._cC5sQ{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._8poru{margin:8px 8px 0;display:flex}._Q5wkb,._y1XNs{margin-left:4px}._dHeY0{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._z4-os{margin:0 4px 4px 0}._z4-os:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._3WnmV{margin:4px 8px 8px}._ZC53c{position:relative;width:96px;height:96px;outline:0}._ZC53c.focus-visible ._-73zQ,._ZC53c:focus-visible ._-73zQ{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._HfK83{background:linear-gradient(90deg,#fff,transparent)}._a8gN4,._HfK83{position:absolute;top:0;right:0;bottom:0;left:0}._a8gN4{background:linear-gradient(0deg,#000,transparent)}._-73zQ{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}._qU5y6{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}._qU5y6.focus-visible ._UHV2D,._qU5y6:focus-visible ._UHV2D{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._UHV2D{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)}._zQQ2-{position:relative;width:16px;height:96px}._D8LYH{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._D8LYH,._XJJlA{position:absolute}._XJJlA{top:0;right:0;bottom:0;left:0;outline:0}._XJJlA.focus-visible ._D8LYH,._XJJlA:focus-visible ._D8LYH{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._5NOPP{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}._g2rLq{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._g2rLq.focus-visible,._g2rLq:focus-visible{outline:none}._g2rLq.focus-visible,._g2rLq:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._KJxQP{display:flex}._KJxQP ._NQqGh{position:relative;flex-shrink:0;width:26px;height:26px}._KJxQP ._H43VT{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._KJxQP ._Zlxxg{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
4
|
+
var styles = {"colorPickerBtnColor":"_ku9zN","colorPickerBtnIcon":"_smFgq","colorPicker":"_cC5sQ","colorPickerSliderContainer":"_8poru","colorPickerHue":"_y1XNs","colorPickerAlpha":"_Q5wkb","colorPickerSwatches":"_dHeY0","colorPickerSwatch":"_z4-os","colorPickerHex":"_3WnmV","saturation":"_ZC53c","saturationCircle":"_-73zQ","saturationWhite":"_HfK83","saturationBlack":"_a8gN4","hue":"_qU5y6","hueSlider":"_UHV2D","alpha":"_zQQ2-","alphaSlider":"_D8LYH","alphaGradient":"_XJJlA","alphaCheckerboard":"_5NOPP","swatch":"_g2rLq","hex":"_KJxQP","hexSwatch":"_NQqGh","hexSwatchColor":"_H43VT","hexInput":"_Zlxxg"};
|
|
5
|
+
var stylesheet="._ku9zN{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._smFgq{margin-right:-12px;margin-left:4px}._cC5sQ{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._8poru{margin:8px 8px 0;display:flex}._Q5wkb,._y1XNs{margin-left:4px}._dHeY0{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._z4-os{margin:0 4px 4px 0}._z4-os:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._3WnmV{margin:4px 8px 8px}._ZC53c{position:relative;width:96px;height:96px;outline:0}._ZC53c.focus-visible ._-73zQ,._ZC53c:focus-visible ._-73zQ{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._HfK83{background:linear-gradient(90deg,#fff,transparent)}._a8gN4,._HfK83{position:absolute;top:0;right:0;bottom:0;left:0}._a8gN4{background:linear-gradient(0deg,#000,transparent)}._-73zQ{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}._qU5y6{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}._qU5y6.focus-visible ._UHV2D,._qU5y6:focus-visible ._UHV2D{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._UHV2D{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)}._zQQ2-{position:relative;width:16px;height:96px}._D8LYH{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._D8LYH,._XJJlA{position:absolute}._XJJlA{top:0;right:0;bottom:0;left:0;outline:0}._XJJlA.focus-visible ._D8LYH,._XJJlA:focus-visible ._D8LYH{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._5NOPP{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}._g2rLq{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._g2rLq.focus-visible,._g2rLq:focus-visible{outline:none}._g2rLq.focus-visible,._g2rLq:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._KJxQP{display:flex}._KJxQP ._NQqGh{position:relative;flex-shrink:0;width:26px;height:26px}._KJxQP ._H43VT{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._KJxQP ._Zlxxg{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
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=".
|
|
6
|
-
if(typeof
|
|
3
|
+
var css_248z = "._cRIuT{display:inline-flex}._iGR8y{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}._iGR8y:hover:not(._CyR4q){cursor:pointer;background:#f5f5f5}._iGR8y._-P-RE{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._iGR8y._CyR4q{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._iGR8y._CyR4q>svg{opacity:.4}._iGR8y::-webkit-inner-spin-button,._iGR8y::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._iGR8y:focus{z-index:0;border:none;border-radius:4px}._iGR8y:focus:not(._-P-RE){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._daon2,._iGR8y:focus:not(._CyR4q){background:#fafafa}._daon2{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}._daon2:hover:not(._CyR4q){cursor:pointer;background:#f5f5f5}._daon2:active:not(._CyR4q){background:#e5e5e5}._daon2._CyR4q{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._daon2._CyR4q>svg{opacity:.4}._iFnRr{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}._iFnRr:hover:not(._CyR4q){cursor:pointer;background:#f5f5f5}._iFnRr:active:not(._CyR4q){background:#e5e5e5}._iFnRr._CyR4q{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._iFnRr._CyR4q>svg{opacity:.4}._rz4NS{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
|
|
4
|
+
var styles = {"numberStepperContainer":"_cRIuT","numberStepperInput":"_iGR8y","disabled":"_CyR4q","invalid":"_-P-RE","decrementBtn":"_daon2","incrementBtn":"_iFnRr","inputValueAlert":"_rz4NS"};
|
|
5
|
+
var stylesheet="._cRIuT{display:inline-flex}._iGR8y{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}._iGR8y:hover:not(._CyR4q){cursor:pointer;background:#f5f5f5}._iGR8y._-P-RE{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._iGR8y._CyR4q{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._iGR8y._CyR4q>svg{opacity:.4}._iGR8y::-webkit-inner-spin-button,._iGR8y::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._iGR8y:focus{z-index:0;border:none;border-radius:4px}._iGR8y:focus:not(._-P-RE){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._daon2,._iGR8y:focus:not(._CyR4q){background:#fafafa}._daon2{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}._daon2:hover:not(._CyR4q){cursor:pointer;background:#f5f5f5}._daon2:active:not(._CyR4q){background:#e5e5e5}._daon2._CyR4q{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._daon2._CyR4q>svg{opacity:.4}._iFnRr{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}._iFnRr:hover:not(._CyR4q){cursor:pointer;background:#f5f5f5}._iFnRr:active:not(._CyR4q){background:#e5e5e5}._iFnRr._CyR4q{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._iFnRr._CyR4q>svg{opacity:.4}._rz4NS{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
|
|
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=".
|
|
6
|
-
if(typeof
|
|
3
|
+
var css_248z = "._cBSws{display:block}._O-BA0{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._YCXvE{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}._YCXvE:hover{color:#32363a}._YCXvE:focus{outline:none}._YCXvE._na5iE{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._uIy7k{padding-top:32px}._uIy7k._UDxeZ{display:none}._YCXvE.focus-visible,._YCXvE:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"tabs":"_cBSws","bar":"_O-BA0","tab":"_YCXvE","active":"_na5iE","panel":"_uIy7k","inactive":"_UDxeZ"};
|
|
5
|
+
var stylesheet="._cBSws{display:block}._O-BA0{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._YCXvE{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}._YCXvE:hover{color:#32363a}._YCXvE:focus{outline:none}._YCXvE._na5iE{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._uIy7k{padding-top:32px}._uIy7k._UDxeZ{display:none}._YCXvE.focus-visible,._YCXvE:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
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=".
|
|
6
|
-
if(typeof
|
|
3
|
+
var css_248z = "._FSHfC,._Xl5m0{display:flex}._Xl5m0{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._64D8G{width:69px;min-width:auto;max-width:none}._rEp-Y{width:100%}._Irz8g{margin-bottom:12px;background-color:transparent!important}._Irz8g:hover{background-color:rgba(11,110,208,.08)!important}._Irz8g:hover>svg{fill:#085caf}._Irz8g:hover>span{color:#085caf}._Irz8g:active{background-color:rgba(11,110,208,.12)!important}._Irz8g:active>svg{fill:#0854a1}._Irz8g:active>span{color:#0854a1}._Irz8g._yhsLC{background-color:rgba(11,110,208,.08)!important}._Irz8g._yhsLC>svg{fill:#0b6ed0}._Irz8g._yhsLC>span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._Irz8g._yhsLC:hover{background-color:rgba(11,110,208,.08)!important}._Irz8g._yhsLC:hover>svg{fill:#085caf}._Irz8g._yhsLC:hover>span{color:#085caf}._Irz8g._yhsLC:active{background-color:rgba(11,110,208,.12)!important}._Irz8g._yhsLC:active>svg{fill:#0854a1}._Irz8g._yhsLC:active>span{color:#0854a1}._X8S9K{border-radius:6px}._X8S9K>._q9iml{display:block;fill:#515559}._VwsPP{margin-top:auto;margin-bottom:0}._hjiNO{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._hjiNO:hover>._7HL-U{opacity:1}._a3kTz{width:0;border-width:0;padding:0}._FNZJe{border-radius:4px;min-width:100%;min-height:100%;outline:none}._wj7DB{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}._7HL-U{opacity:0}._7HL-U:hover,._hxKqr,._wj7DB._Bosy4._Bosy4{opacity:1}._wj7DB._jSOFo._jSOFo{opacity:0}._wj7DB>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._wj7DB>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._wj7DB>span:hover>svg{fill:#fff}._wj7DB>span:active{background-color:#0854a1;border-color:#0854a1}._wj7DB>span:active>svg{fill:#fff}._wj7DB>span>svg{fill:#515559;border-radius:50%}._FNZJe._g6zmm{display:none!important}._gHLFo{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._nxcpg{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._V0yDr{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._cfq2s{fill:#515559}._GVQQE{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._FNZJe.focus-visible,._FNZJe:focus-visible,._gHLFo.focus-visible,._gHLFo:focus-visible,._V0yDr.focus-visible,._V0yDr:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._wj7DB.focus-visible,._wj7DB:focus-visible{border-color:#0a3f88}._wj7DB:active>span{background-color:#0854a1;border-color:#0854a1}._wj7DB:active>span>svg{fill:#fff}._7HL-U.focus-visible,._7HL-U:focus-visible{opacity:1}";
|
|
4
|
+
var styles = {"toolbar":"_FSHfC","toolbarNav":"_Xl5m0","toolbarNavCollapsed":"_64D8G","toolbarTabs":"_rEp-Y","toolbarTab":"_Irz8g","selected":"_yhsLC","toolbarTabIconButton":"_X8S9K","icon":"_q9iml","tabsExpandCollapseButton":"_VwsPP","toolbarPanels":"_hjiNO","toolbarPanelExpandCollapseButtonDefaultHidden":"_7HL-U","toolbarPanelsCollapsed":"_a3kTz","toolbarPanel":"_FNZJe","toolbarPanelExpandCollapseButton":"_wj7DB","toolbarPanelExpandCollapseButtonDefaultShown":"_hxKqr","overrideShow":"_Bosy4","overrideHide":"_jSOFo","notSelected":"_g6zmm","buttonWithLabel":"_gHLFo","buttonWithLabelLabel":"_nxcpg","iconButtonWithLabel":"_V0yDr","iconButtonWithLabelIcon":"_cfq2s","iconButtonWithLabelLabel":"_GVQQE"};
|
|
5
|
+
var stylesheet="._FSHfC,._Xl5m0{display:flex}._Xl5m0{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._64D8G{width:69px;min-width:auto;max-width:none}._rEp-Y{width:100%}._Irz8g{margin-bottom:12px;background-color:transparent!important}._Irz8g:hover{background-color:rgba(11,110,208,.08)!important}._Irz8g:hover>svg{fill:#085caf}._Irz8g:hover>span{color:#085caf}._Irz8g:active{background-color:rgba(11,110,208,.12)!important}._Irz8g:active>svg{fill:#0854a1}._Irz8g:active>span{color:#0854a1}._Irz8g._yhsLC{background-color:rgba(11,110,208,.08)!important}._Irz8g._yhsLC>svg{fill:#0b6ed0}._Irz8g._yhsLC>span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._Irz8g._yhsLC:hover{background-color:rgba(11,110,208,.08)!important}._Irz8g._yhsLC:hover>svg{fill:#085caf}._Irz8g._yhsLC:hover>span{color:#085caf}._Irz8g._yhsLC:active{background-color:rgba(11,110,208,.12)!important}._Irz8g._yhsLC:active>svg{fill:#0854a1}._Irz8g._yhsLC:active>span{color:#0854a1}._X8S9K{border-radius:6px}._X8S9K>._q9iml{display:block;fill:#515559}._VwsPP{margin-top:auto;margin-bottom:0}._hjiNO{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._hjiNO:hover>._7HL-U{opacity:1}._a3kTz{width:0;border-width:0;padding:0}._FNZJe{border-radius:4px;min-width:100%;min-height:100%;outline:none}._wj7DB{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}._7HL-U{opacity:0}._7HL-U:hover,._hxKqr,._wj7DB._Bosy4._Bosy4{opacity:1}._wj7DB._jSOFo._jSOFo{opacity:0}._wj7DB>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._wj7DB>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._wj7DB>span:hover>svg{fill:#fff}._wj7DB>span:active{background-color:#0854a1;border-color:#0854a1}._wj7DB>span:active>svg{fill:#fff}._wj7DB>span>svg{fill:#515559;border-radius:50%}._FNZJe._g6zmm{display:none!important}._gHLFo{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._nxcpg{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._V0yDr{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._cfq2s{fill:#515559}._GVQQE{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._FNZJe.focus-visible,._FNZJe:focus-visible,._gHLFo.focus-visible,._gHLFo:focus-visible,._V0yDr.focus-visible,._V0yDr:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._wj7DB.focus-visible,._wj7DB:focus-visible{border-color:#0a3f88}._wj7DB:active>span{background-color:#0854a1;border-color:#0854a1}._wj7DB:active>span>svg{fill:#fff}._7HL-U.focus-visible,._7HL-U:focus-visible{opacity:1}";
|
|
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=".
|
|
6
|
-
if(typeof
|
|
3
|
+
var css_248z = "._ONJwP{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}._OHof8{visibility:hidden}";
|
|
4
|
+
var styles = {"overlay":"_ONJwP","hidden":"_OHof8"};
|
|
5
|
+
var stylesheet="._ONJwP{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}._OHof8{visibility:hidden}";
|
|
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=".
|
|
6
|
-
if(typeof
|
|
3
|
+
var css_248z = "._1B4Gz{position:absolute;top:-10000px;left:-10000px}";
|
|
4
|
+
var classes = {"ariaLiveElement":"_1B4Gz"};
|
|
5
|
+
var stylesheet="._1B4Gz{position:absolute;top:-10000px;left:-10000px}";
|
|
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=".
|
|
6
|
-
if(typeof
|
|
3
|
+
var css_248z = "._PSW-y{flex-shrink:0}";
|
|
4
|
+
var styles = {"icon":"_PSW-y"};
|
|
5
|
+
var stylesheet="._PSW-y{flex-shrink:0}";
|
|
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 };
|
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-0ac65a5b.js');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
package/dist/index.d.ts
CHANGED
|
@@ -1929,9 +1929,9 @@ export declare const Switch: React_2.ForwardRefExoticComponent<SwitchProps & Rea
|
|
|
1929
1929
|
|
|
1930
1930
|
export declare const SwitchField: React_2.ForwardRefExoticComponent<SwitchFieldProps & React_2.RefAttributes<HTMLLabelElement>>;
|
|
1931
1931
|
|
|
1932
|
-
export declare interface SwitchFieldProps extends Omit<React_2.AllHTMLAttributes<HTMLLabelElement>, 'onChange'> {
|
|
1932
|
+
export declare interface SwitchFieldProps extends Omit<React_2.AllHTMLAttributes<HTMLLabelElement>, 'label' | 'onChange'> {
|
|
1933
1933
|
id?: string;
|
|
1934
|
-
label:
|
|
1934
|
+
label: React_2.ReactNode;
|
|
1935
1935
|
className?: string;
|
|
1936
1936
|
checked?: boolean;
|
|
1937
1937
|
defaultChecked?: boolean;
|
package/dist/index.es.js
CHANGED
|
@@ -101,6 +101,6 @@ export { default as deprecated_ToolbarPanel } from './components/deprecated_Tool
|
|
|
101
101
|
|
|
102
102
|
/* eslint-disable camelcase */
|
|
103
103
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
104
|
-
const version = '2.
|
|
104
|
+
const version = '2.24.1-alpha.0';
|
|
105
105
|
|
|
106
106
|
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-e9223791.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
|
-
require('./__shared/cjs/index-
|
|
8
|
+
require('./__shared/cjs/index-0ac65a5b.js');
|
|
9
9
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
10
10
|
require('react-popper');
|
|
11
11
|
require('@popperjs/core');
|
|
@@ -19,7 +19,7 @@ require('throttle-debounce');
|
|
|
19
19
|
|
|
20
20
|
/* eslint-disable camelcase */
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
22
|
-
const version = '2.
|
|
22
|
+
const version = '2.24.1-alpha.0';
|
|
23
23
|
|
|
24
24
|
exports.Accordion = index.Accordion;
|
|
25
25
|
exports.AccordionHeader = index.AccordionHeader;
|
|
@@ -79,7 +79,15 @@ const AdvancedTable = _ref => {
|
|
|
79
79
|
// and the internal row transforms cause infinite state updates using a standard default assignment
|
|
80
80
|
const stableDefaultArray = useMemo(() => [], []);
|
|
81
81
|
const rowsProp = rowsPropExternal !== null && rowsPropExternal !== void 0 ? rowsPropExternal : stableDefaultArray;
|
|
82
|
-
const
|
|
82
|
+
const rows = useMemo(() => {
|
|
83
|
+
let filteredRows = [];
|
|
84
|
+
rowsProp.forEach((row, i) => {
|
|
85
|
+
filteredRows = filteredRows.concat(mapExternalRowToInternalRows(row, rowsProp.length + 1, i + 1) // add 1 to account for table header
|
|
86
|
+
);
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
return filteredRows;
|
|
90
|
+
}, [rowsProp]);
|
|
83
91
|
const rowActionsColumnConfigId = useId();
|
|
84
92
|
let rowActionsColumnConfig;
|
|
85
93
|
const columnConfigs = useMemo(() => [...externalColumnConfigs],
|
|
@@ -227,8 +235,6 @@ const AdvancedTable = _ref => {
|
|
|
227
235
|
const [dropTarget, setDropTarget] = useState('');
|
|
228
236
|
const [dropTargetSide, setDropTargetSide] = useState();
|
|
229
237
|
const [lastToggledRowId, setLastToggledRowId] = useState('');
|
|
230
|
-
// Enables disabling row hover styles when hovering on the checkbox. Needed since a CSS parent selector doesn't exist.
|
|
231
|
-
const [isCheckboxHovered, setIsCheckboxHovered] = useState(false);
|
|
232
238
|
|
|
233
239
|
// Enables using Set.prototype.has() vs Array.prototype.includes() for better performance at scale
|
|
234
240
|
const [checkedRowIdsSet, setCheckedRowIdsSet] = useState(new Set(checkedRowIds));
|
|
@@ -238,38 +244,6 @@ const AdvancedTable = _ref => {
|
|
|
238
244
|
selectedSortOption,
|
|
239
245
|
setCurrentPage
|
|
240
246
|
});
|
|
241
|
-
const mapExternalRowToInternalRows = useCallback(function (row, depthSize, depthIndex, parentId) {
|
|
242
|
-
let depth = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
243
|
-
let mappedRows = [];
|
|
244
|
-
const hasChildRows = !!row.childRows && row.childRows.length > 0;
|
|
245
|
-
mappedRows.push({
|
|
246
|
-
id: row.id,
|
|
247
|
-
data: row.data,
|
|
248
|
-
hasChildRows,
|
|
249
|
-
parentId,
|
|
250
|
-
depth,
|
|
251
|
-
depthSize,
|
|
252
|
-
depthIndex,
|
|
253
|
-
isExpanded: row.isExpanded,
|
|
254
|
-
rowProps: row.unsafe_rowProps,
|
|
255
|
-
rowPropReference: row
|
|
256
|
-
});
|
|
257
|
-
if (row.isExpanded && row.childRows !== undefined && hasChildRows) {
|
|
258
|
-
row.childRows.forEach((child, i) => {
|
|
259
|
-
mappedRows = mappedRows.concat(mapExternalRowToInternalRows(child, row.childRows !== undefined ? row.childRows.length : 0, i, row.id, depth + 1));
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
return mappedRows;
|
|
263
|
-
}, []);
|
|
264
|
-
useEffect(() => {
|
|
265
|
-
let filteredRows = [];
|
|
266
|
-
rowsProp.forEach((row, i) => {
|
|
267
|
-
filteredRows = filteredRows.concat(mapExternalRowToInternalRows(row, rowsProp.length + 1, i + 1) // add 1 to account for table header
|
|
268
|
-
);
|
|
269
|
-
});
|
|
270
|
-
|
|
271
|
-
setRows(filteredRows);
|
|
272
|
-
}, [rowsProp, mapExternalRowToInternalRows]);
|
|
273
247
|
useEffect(() => {
|
|
274
248
|
setCheckedRowIdsSet(new Set(checkedRowIds));
|
|
275
249
|
}, [checkedRowIds]);
|
|
@@ -565,8 +539,7 @@ const AdvancedTable = _ref => {
|
|
|
565
539
|
e.stopPropagation(); // prevent onRowSelect
|
|
566
540
|
e.preventDefault();
|
|
567
541
|
updateExpandedRowIds(rowIndex);
|
|
568
|
-
}
|
|
569
|
-
onFocus: onRowFocus(rowIndex, minColumnIndex)
|
|
542
|
+
}
|
|
570
543
|
});
|
|
571
544
|
const getExpandableRowsSpacer = function (width, inHeader) {
|
|
572
545
|
let children = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
@@ -576,7 +549,8 @@ const AdvancedTable = _ref => {
|
|
|
576
549
|
}),
|
|
577
550
|
style: {
|
|
578
551
|
width
|
|
579
|
-
}
|
|
552
|
+
},
|
|
553
|
+
role: "presentation"
|
|
580
554
|
}, children);
|
|
581
555
|
};
|
|
582
556
|
const getCellProps = (columnConfig, columnIndex, data, rowIndex, rowId, depth) => {
|
|
@@ -614,10 +588,15 @@ const AdvancedTable = _ref => {
|
|
|
614
588
|
ref: createRef(rowIndex, columnIndex)
|
|
615
589
|
};
|
|
616
590
|
};
|
|
617
|
-
return /*#__PURE__*/React__default.createElement(
|
|
618
|
-
backend: HTML5Backend
|
|
619
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
591
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
620
592
|
className: styles.advancedTable,
|
|
593
|
+
ref: tableRef
|
|
594
|
+
}, /*#__PURE__*/React__default.createElement(DndProvider, {
|
|
595
|
+
backend: HTML5Backend,
|
|
596
|
+
options: {
|
|
597
|
+
rootElement: tableRef.current
|
|
598
|
+
}
|
|
599
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
621
600
|
role: hasExpandableRows ? 'treegrid' : 'grid',
|
|
622
601
|
"aria-multiselectable": hasExpandableRows && hasCheckboxColumn ? true : undefined,
|
|
623
602
|
"aria-rowcount": rows ? rows.length + 1 : 0,
|
|
@@ -625,8 +604,7 @@ const AdvancedTable = _ref => {
|
|
|
625
604
|
"aria-labelledby": ariaLabelledBy,
|
|
626
605
|
"aria-label": ariaLabel,
|
|
627
606
|
"aria-describedby": ariaDescribedBy,
|
|
628
|
-
"data-testid": dataTestId
|
|
629
|
-
ref: tableRef
|
|
607
|
+
"data-testid": dataTestId
|
|
630
608
|
}, dragSource && !disableUserPinnableColumns && !disableUserReorderableColumns ? /*#__PURE__*/React__default.createElement(AdvancedTableDragPreview, {
|
|
631
609
|
tableRef: tableRef,
|
|
632
610
|
columnHeaderRefs: cellRefs.current[-1]
|
|
@@ -663,7 +641,6 @@ const AdvancedTable = _ref => {
|
|
|
663
641
|
state: checkedRowIds.length === totalRowsCountWithExpansion ? 'true' : checkedRowIds.length === 0 ? 'false' : 'mixed',
|
|
664
642
|
isRowFocused: headerRowIndex === focusedRowIndex,
|
|
665
643
|
onClick: handleColumnHeaderCheckboxToggle,
|
|
666
|
-
onFocus: onRowFocus(headerRowIndex, minColumnIndex),
|
|
667
644
|
variant: "header"
|
|
668
645
|
}), hasExpandableRows && pinnedColumnConfigs.length ? getExpandableRowsSpacer("".concat(widthBufferWidth, "px"), true) : undefined, pinnedColumnConfigs.map((columnConfigs, i) => {
|
|
669
646
|
const props = getColumnHeaderProps(columnConfigs, i, true);
|
|
@@ -682,11 +659,10 @@ const AdvancedTable = _ref => {
|
|
|
682
659
|
depth = 0,
|
|
683
660
|
depthSize,
|
|
684
661
|
depthIndex,
|
|
685
|
-
rowPropReference,
|
|
686
662
|
parentId,
|
|
687
|
-
rowProps
|
|
663
|
+
rowProps,
|
|
664
|
+
hasChildRows
|
|
688
665
|
} = row;
|
|
689
|
-
const hasChildRows = rowPropReference.childRows && rowPropReference.childRows.length > 0;
|
|
690
666
|
const paginatedRowIndex = getPaginatedRowIndex(rowIndex);
|
|
691
667
|
const onSelect = e => {
|
|
692
668
|
e.preventDefault(); // stops event from triggering on new target when focus is changed during onSelect
|
|
@@ -706,12 +682,12 @@ const AdvancedTable = _ref => {
|
|
|
706
682
|
"aria-rowindex": hasExpandableRows ? undefined : paginatedRowIndex + 2 // aria-rowindex is one-indexed + the column headers row is the first row in the table
|
|
707
683
|
,
|
|
708
684
|
|
|
685
|
+
"aria-expanded": hasChildRows ? !!isExpanded : undefined,
|
|
709
686
|
"data-testid": dataTestId && rowId ? "".concat(dataTestId, "-row-").concat(rowId) : undefined,
|
|
710
687
|
hasOnRowSelect: hasOnRowSelect,
|
|
711
688
|
isFocusable: hasFocusableRows,
|
|
712
689
|
isFocused: paginatedRowIndex === focusedRowIndex && minColumnIndex === focusedColumnIndex,
|
|
713
690
|
isSelected: selectedRowId === rowId,
|
|
714
|
-
isCheckboxHovered: isCheckboxHovered,
|
|
715
691
|
onKeyDown: onRowKeyDown,
|
|
716
692
|
onFocus: onRowFocus(paginatedRowIndex, minColumnIndex),
|
|
717
693
|
onClick: e => onSelect(e),
|
|
@@ -735,10 +711,7 @@ const AdvancedTable = _ref => {
|
|
|
735
711
|
} else {
|
|
736
712
|
singleUpdateCheckedRowIds(paginatedRowIndex);
|
|
737
713
|
}
|
|
738
|
-
}
|
|
739
|
-
onMouseEnter: () => setIsCheckboxHovered(true),
|
|
740
|
-
onMouseLeave: () => setIsCheckboxHovered(false),
|
|
741
|
-
onFocus: onRowFocus(paginatedRowIndex, minColumnIndex)
|
|
714
|
+
}
|
|
742
715
|
}), hasExpandableRows && pinnedColumnConfigs.length ? getExpandableRowsSpacer("".concat(widthBufferWidth * (depth + 1), "px"), false, hasChildRows ? getAdvancedTableRowExpandButton(rowId, isExpanded, rowIndex) : undefined) : undefined, pinnedColumnConfigs.map((c, i) => {
|
|
743
716
|
const props = getCellProps(c, i, data, paginatedRowIndex, rowId, depth);
|
|
744
717
|
return /*#__PURE__*/React__default.createElement(AdvancedTableCell, _extends({}, props, {
|
|
@@ -755,7 +728,7 @@ const AdvancedTable = _ref => {
|
|
|
755
728
|
"aria-colindex": i + 1 // aria-colindex is one-indexed
|
|
756
729
|
}));
|
|
757
730
|
}));
|
|
758
|
-
})), rowsPerPage ? /*#__PURE__*/React__default.createElement(AdvancedTablePagination, {
|
|
731
|
+
}))), rowsPerPage ? /*#__PURE__*/React__default.createElement(AdvancedTablePagination, {
|
|
759
732
|
rowsPerPage: rowsPerPage,
|
|
760
733
|
onPageChange: onPageChange,
|
|
761
734
|
ariaLabel: paginationAriaLabel,
|
|
@@ -916,5 +889,28 @@ function useFocusState(_ref8) {
|
|
|
916
889
|
cellRefs
|
|
917
890
|
};
|
|
918
891
|
}
|
|
892
|
+
function mapExternalRowToInternalRows(row, depthSize, depthIndex, parentId) {
|
|
893
|
+
let depth = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
894
|
+
let mappedRows = [];
|
|
895
|
+
const hasChildRows = !!row.childRows && row.childRows.length > 0;
|
|
896
|
+
mappedRows.push({
|
|
897
|
+
id: row.id,
|
|
898
|
+
data: row.data,
|
|
899
|
+
hasChildRows,
|
|
900
|
+
parentId,
|
|
901
|
+
depth,
|
|
902
|
+
depthSize,
|
|
903
|
+
depthIndex,
|
|
904
|
+
isExpanded: row.isExpanded,
|
|
905
|
+
rowProps: row.unsafe_rowProps,
|
|
906
|
+
rowPropReference: row
|
|
907
|
+
});
|
|
908
|
+
if (row.isExpanded && row.childRows !== undefined && hasChildRows) {
|
|
909
|
+
row.childRows.forEach((child, i) => {
|
|
910
|
+
mappedRows = mappedRows.concat(mapExternalRowToInternalRows(child, row.childRows !== undefined ? row.childRows.length : 0, i, row.id, depth + 1));
|
|
911
|
+
});
|
|
912
|
+
}
|
|
913
|
+
return mappedRows;
|
|
914
|
+
}
|
|
919
915
|
|
|
920
916
|
export { AdvancedTable };
|