@qualtrics/ui-react 2.45.0 → 2.46.1
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 +24 -0
- package/dist/__shared/cjs/{index-f8b54e99.js → index-36ce50e9.js} +3 -3
- package/dist/__shared/cjs/{index-c817066f.js → index-5c3434da.js} +142 -136
- 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/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +5 -1
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +3 -1
- 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/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/Tooltip.js +1 -1
- 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/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 +59 -65
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +32 -17
- package/dist/next/Chat/ChatInput.js +6 -4
- 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/InputField.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu2.js +3 -3
- 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/Tooltip/Tooltip.js +6 -4
- package/dist/next/index.d.ts +20 -7
- package/dist/next/index.js +136 -126
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/next/package.json +1 -1
- package/package.json +1 -1
|
@@ -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 = "._G1JLb{display:block}._t9B2C{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._eD-by{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}._eD-by:hover{color:#32363a}._eD-by:focus{outline:none}._eD-by._XO9hh{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._YR7XK{padding-top:32px}._YR7XK._SE5bD{display:none}._eD-by.focus-visible,._eD-by:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"tabs":"_G1JLb","bar":"_t9B2C","tab":"_eD-by","active":"_XO9hh","panel":"_YR7XK","inactive":"_SE5bD"};
|
|
5
|
+
var stylesheet="._G1JLb{display:block}._t9B2C{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._eD-by{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}._eD-by:hover{color:#32363a}._eD-by:focus{outline:none}._eD-by._XO9hh{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._YR7XK{padding-top:32px}._YR7XK._SE5bD{display:none}._eD-by.focus-visible,._eD-by: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 = "._nNNy9,._Xzu-0{display:flex}._nNNy9{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._c4X64{width:69px;min-width:auto;max-width:none}._CZTh4{width:100%}._LVWuJ{margin-bottom:12px;background-color:transparent!important}._LVWuJ:hover{background-color:rgba(11,110,208,.08)!important}._LVWuJ:hover>svg{fill:#085caf}._LVWuJ:hover>span{color:#085caf}._LVWuJ:active{background-color:rgba(11,110,208,.12)!important}._LVWuJ:active>svg{fill:#0854a1}._LVWuJ:active>span{color:#0854a1}._LVWuJ._GF6xy{background-color:rgba(11,110,208,.08)!important}._LVWuJ._GF6xy>svg{fill:#0b6ed0}._LVWuJ._GF6xy>span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._LVWuJ._GF6xy:hover{background-color:rgba(11,110,208,.08)!important}._LVWuJ._GF6xy:hover>svg{fill:#085caf}._LVWuJ._GF6xy:hover>span{color:#085caf}._LVWuJ._GF6xy:active{background-color:rgba(11,110,208,.12)!important}._LVWuJ._GF6xy:active>svg{fill:#0854a1}._LVWuJ._GF6xy:active>span{color:#0854a1}._a5ewD{border-radius:6px}._a5ewD>._fea0r{display:block;fill:#515559}._T2YXJ{margin-top:auto;margin-bottom:0}._a-ESX{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._a-ESX:hover>._4ruG9{opacity:1}._kSxxj{width:0;border-width:0;padding:0}._ZmKqF{border-radius:4px;min-width:100%;min-height:100%;outline:none}._evbG-{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}._4ruG9{opacity:0}._4ruG9:hover,._evbG-._TzAC5._TzAC5,._pDtLK{opacity:1}._evbG-._HNkz5._HNkz5{opacity:0}._evbG->span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._evbG->span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._evbG->span:hover>svg{fill:#fff}._evbG->span:active{background-color:#0854a1;border-color:#0854a1}._evbG->span:active>svg{fill:#fff}._evbG->span>svg{fill:#515559;border-radius:50%}._ZmKqF._NmMmY{display:none!important}._rSCmb{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._IcMPA{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._vH7Rc{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._gLJhO{fill:#515559}._2ZGLk{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._rSCmb.focus-visible,._rSCmb:focus-visible,._vH7Rc.focus-visible,._vH7Rc:focus-visible,._ZmKqF.focus-visible,._ZmKqF:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._evbG-.focus-visible,._evbG-:focus-visible{border-color:#0a3f88}._evbG-:active>span{background-color:#0854a1;border-color:#0854a1}._evbG-:active>span>svg{fill:#fff}._4ruG9.focus-visible,._4ruG9:focus-visible{opacity:1}";
|
|
4
|
+
var styles = {"toolbar":"_Xzu-0","toolbarNav":"_nNNy9","toolbarNavCollapsed":"_c4X64","toolbarTabs":"_CZTh4","toolbarTab":"_LVWuJ","selected":"_GF6xy","toolbarTabIconButton":"_a5ewD","icon":"_fea0r","tabsExpandCollapseButton":"_T2YXJ","toolbarPanels":"_a-ESX","toolbarPanelExpandCollapseButtonDefaultHidden":"_4ruG9","toolbarPanelsCollapsed":"_kSxxj","toolbarPanel":"_ZmKqF","toolbarPanelExpandCollapseButton":"_evbG-","toolbarPanelExpandCollapseButtonDefaultShown":"_pDtLK","overrideShow":"_TzAC5","overrideHide":"_HNkz5","notSelected":"_NmMmY","buttonWithLabel":"_rSCmb","buttonWithLabelLabel":"_IcMPA","iconButtonWithLabel":"_vH7Rc","iconButtonWithLabelIcon":"_gLJhO","iconButtonWithLabelLabel":"_2ZGLk"};
|
|
5
|
+
var stylesheet="._nNNy9,._Xzu-0{display:flex}._nNNy9{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._c4X64{width:69px;min-width:auto;max-width:none}._CZTh4{width:100%}._LVWuJ{margin-bottom:12px;background-color:transparent!important}._LVWuJ:hover{background-color:rgba(11,110,208,.08)!important}._LVWuJ:hover>svg{fill:#085caf}._LVWuJ:hover>span{color:#085caf}._LVWuJ:active{background-color:rgba(11,110,208,.12)!important}._LVWuJ:active>svg{fill:#0854a1}._LVWuJ:active>span{color:#0854a1}._LVWuJ._GF6xy{background-color:rgba(11,110,208,.08)!important}._LVWuJ._GF6xy>svg{fill:#0b6ed0}._LVWuJ._GF6xy>span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._LVWuJ._GF6xy:hover{background-color:rgba(11,110,208,.08)!important}._LVWuJ._GF6xy:hover>svg{fill:#085caf}._LVWuJ._GF6xy:hover>span{color:#085caf}._LVWuJ._GF6xy:active{background-color:rgba(11,110,208,.12)!important}._LVWuJ._GF6xy:active>svg{fill:#0854a1}._LVWuJ._GF6xy:active>span{color:#0854a1}._a5ewD{border-radius:6px}._a5ewD>._fea0r{display:block;fill:#515559}._T2YXJ{margin-top:auto;margin-bottom:0}._a-ESX{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._a-ESX:hover>._4ruG9{opacity:1}._kSxxj{width:0;border-width:0;padding:0}._ZmKqF{border-radius:4px;min-width:100%;min-height:100%;outline:none}._evbG-{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}._4ruG9{opacity:0}._4ruG9:hover,._evbG-._TzAC5._TzAC5,._pDtLK{opacity:1}._evbG-._HNkz5._HNkz5{opacity:0}._evbG->span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._evbG->span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._evbG->span:hover>svg{fill:#fff}._evbG->span:active{background-color:#0854a1;border-color:#0854a1}._evbG->span:active>svg{fill:#fff}._evbG->span>svg{fill:#515559;border-radius:50%}._ZmKqF._NmMmY{display:none!important}._rSCmb{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._IcMPA{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._vH7Rc{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._gLJhO{fill:#515559}._2ZGLk{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._rSCmb.focus-visible,._rSCmb:focus-visible,._vH7Rc.focus-visible,._vH7Rc:focus-visible,._ZmKqF.focus-visible,._ZmKqF:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._evbG-.focus-visible,._evbG-:focus-visible{border-color:#0a3f88}._evbG-:active>span{background-color:#0854a1;border-color:#0854a1}._evbG-:active>span>svg{fill:#fff}._4ruG9.focus-visible,._4ruG9: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 = "._-QTJc{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}._yUlWn{visibility:hidden}._EyPtL{position:fixed}._Gt802{overflow:hidden!important}";
|
|
4
|
+
var styles = {"overlay":"_-QTJc","hidden":"_yUlWn","anchoredToBody":"_EyPtL","blockedScroll":"_Gt802"};
|
|
5
|
+
var stylesheet="._-QTJc{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}._yUlWn{visibility:hidden}._EyPtL{position:fixed}._Gt802{overflow:hidden!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 };
|
|
@@ -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 = "._sLZEG{position:absolute;top:-10000px;left:-10000px}";
|
|
4
|
+
var classes = {"ariaLiveElement":"_sLZEG"};
|
|
5
|
+
var stylesheet="._sLZEG{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 = "._P9z1a{flex-shrink:0}";
|
|
4
|
+
var styles = {"icon":"_P9z1a"};
|
|
5
|
+
var stylesheet="._P9z1a{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 };
|
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-36ce50e9.js');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
package/dist/index.d.ts
CHANGED
|
@@ -3253,8 +3253,8 @@ export declare interface TooltipProps extends Omit<React_2.AllHTMLAttributes<HTM
|
|
|
3253
3253
|
* @defaultValue false
|
|
3254
3254
|
*/
|
|
3255
3255
|
isArrowRemoved?: boolean;
|
|
3256
|
-
/** Themes the tooltip to a light color.
|
|
3257
|
-
* @defaultValue
|
|
3256
|
+
/** Themes the tooltip to a light color. We recommend using tooltip with lightTheme set to true. This property will be **deprecated** in the next major version.
|
|
3257
|
+
* @defaultValue false
|
|
3258
3258
|
*/
|
|
3259
3259
|
lightTheme?: boolean;
|
|
3260
3260
|
/** The z-index of the tooltip content.
|
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.46.1';
|
|
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-5c3434da.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
|
-
require('./__shared/cjs/index-
|
|
8
|
+
require('./__shared/cjs/index-36ce50e9.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.46.1';
|
|
25
25
|
|
|
26
26
|
exports.Accordion = index.Accordion;
|
|
27
27
|
exports.AccordionHeader = index.AccordionHeader;
|
|
@@ -113,63 +113,64 @@ const AdvancedTable = _ref => {
|
|
|
113
113
|
if (currentPage > pageCount) setCurrentPage(Math.max(pageCount, 1));
|
|
114
114
|
}
|
|
115
115
|
}, [rows, rowsPerPage, paginatedRows, currentPage]);
|
|
116
|
+
const renderRowActionCellContent = useCallback(_ref2 => {
|
|
117
|
+
let {
|
|
118
|
+
rowIndex,
|
|
119
|
+
isEditing,
|
|
120
|
+
focusCell,
|
|
121
|
+
focusableElementRef,
|
|
122
|
+
rowId
|
|
123
|
+
} = _ref2;
|
|
124
|
+
const rowDataTestId = getRowTestId(dataTestId, rowId);
|
|
125
|
+
const rowActionMenuDataTestId = getSubDataTestId(rowDataTestId, 'RowActionMenu');
|
|
126
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
127
|
+
value: 0
|
|
128
|
+
}, /*#__PURE__*/React__default.createElement(DropdownButton, null, /*#__PURE__*/React__default.createElement(IconButton, {
|
|
129
|
+
"aria-label": rowActionsButtonAriaLabel,
|
|
130
|
+
tabIndex: isEditing ? 0 : -1,
|
|
131
|
+
ref: focusableElementRef,
|
|
132
|
+
onKeyDown: e => {
|
|
133
|
+
if (e.key === 'Escape') {
|
|
134
|
+
focusCell();
|
|
135
|
+
e.preventDefault(); // Prevent Safari from exiting full-screen mode
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"data-testid": getSubDataTestId(rowDataTestId, 'RowActionButton')
|
|
139
|
+
}, /*#__PURE__*/React__default.createElement(EllipsisHorizontalIcon, null))), /*#__PURE__*/React__default.createElement(DropdownList, {
|
|
140
|
+
className: styles.rowActionMenuPane,
|
|
141
|
+
placement: rowActionsPlacement,
|
|
142
|
+
"data-testid": rowActionMenuDataTestId
|
|
143
|
+
}, !rows ? [] : rowActions === null || rowActions === void 0 ? void 0 : rowActions.map((actionGroup, groupIndex) => {
|
|
144
|
+
var _actionGroup$actions;
|
|
145
|
+
const row = rows[rowIndex];
|
|
146
|
+
const actions = !row ? [] : (_actionGroup$actions = actionGroup.actions) === null || _actionGroup$actions === void 0 ? void 0 : _actionGroup$actions.map((action, actionIndex) => /*#__PURE__*/React__default.createElement(DropdownOption
|
|
147
|
+
// React Docs: "We don't recommend using indexes for keys if the order of items may change." These will not change; the alternative is to require an id from the consumer.
|
|
148
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
149
|
+
, {
|
|
150
|
+
key: "".concat(groupIndex, "-").concat(actionIndex),
|
|
151
|
+
disabled: typeof action.isDisabled === 'function' ? action.isDisabled(row && row.rowPropReference) : action.isDisabled,
|
|
152
|
+
onSelect: () => action.action(row && row.rowPropReference),
|
|
153
|
+
value: "",
|
|
154
|
+
label: "",
|
|
155
|
+
"data-testid": action.actionId && getSubDataTestId(rowActionMenuDataTestId, "action-".concat(action.actionId))
|
|
156
|
+
}, typeof action.label === 'function' ? action.label(row.rowPropReference) : action.label));
|
|
157
|
+
if (actionGroup.header) {
|
|
158
|
+
return /*#__PURE__*/React__default.createElement(DropdownHeader
|
|
159
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
160
|
+
, {
|
|
161
|
+
key: groupIndex,
|
|
162
|
+
title: actionGroup.header
|
|
163
|
+
}, actions);
|
|
164
|
+
}
|
|
165
|
+
return actions;
|
|
166
|
+
})));
|
|
167
|
+
}, [dataTestId, rowActions, rowActionsButtonAriaLabel, rowActionsPlacement, rows]);
|
|
116
168
|
if (rowActions && columnConfigs[columnConfigs.length - 1].id !== rowActionsColumnConfigId) {
|
|
117
169
|
rowActionsColumnConfig = {
|
|
118
170
|
id: rowActionsColumnConfigId,
|
|
119
171
|
width: '44px',
|
|
120
172
|
alignment: 'center',
|
|
121
|
-
renderCellContent:
|
|
122
|
-
let {
|
|
123
|
-
rowIndex,
|
|
124
|
-
isEditing,
|
|
125
|
-
focusCell,
|
|
126
|
-
focusableElementRef,
|
|
127
|
-
rowId
|
|
128
|
-
} = _ref2;
|
|
129
|
-
const rowDataTestId = getRowTestId(dataTestId, rowId);
|
|
130
|
-
const rowActionMenuDataTestId = getSubDataTestId(rowDataTestId, 'RowActionMenu');
|
|
131
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
132
|
-
value: 0
|
|
133
|
-
}, /*#__PURE__*/React__default.createElement(DropdownButton, null, /*#__PURE__*/React__default.createElement(IconButton, {
|
|
134
|
-
"aria-label": rowActionsButtonAriaLabel,
|
|
135
|
-
tabIndex: isEditing ? 0 : -1,
|
|
136
|
-
ref: focusableElementRef,
|
|
137
|
-
onKeyDown: e => {
|
|
138
|
-
if (e.key === 'Escape') {
|
|
139
|
-
focusCell();
|
|
140
|
-
e.preventDefault(); // Prevent Safari from exiting full-screen mode
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
"data-testid": getSubDataTestId(rowDataTestId, 'RowActionButton')
|
|
144
|
-
}, /*#__PURE__*/React__default.createElement(EllipsisHorizontalIcon, null))), /*#__PURE__*/React__default.createElement(DropdownList, {
|
|
145
|
-
className: styles.rowActionMenuPane,
|
|
146
|
-
placement: rowActionsPlacement,
|
|
147
|
-
"data-testid": rowActionMenuDataTestId
|
|
148
|
-
}, !rows ? [] : rowActions === null || rowActions === void 0 ? void 0 : rowActions.map((actionGroup, groupIndex) => {
|
|
149
|
-
var _actionGroup$actions;
|
|
150
|
-
const row = rows[rowIndex];
|
|
151
|
-
const actions = !row ? [] : (_actionGroup$actions = actionGroup.actions) === null || _actionGroup$actions === void 0 ? void 0 : _actionGroup$actions.map((action, actionIndex) => /*#__PURE__*/React__default.createElement(DropdownOption
|
|
152
|
-
// React Docs: "We don't recommend using indexes for keys if the order of items may change." These will not change; the alternative is to require an id from the consumer.
|
|
153
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
154
|
-
, {
|
|
155
|
-
key: "".concat(groupIndex, "-").concat(actionIndex),
|
|
156
|
-
disabled: typeof action.isDisabled === 'function' ? action.isDisabled(row && row.rowPropReference) : action.isDisabled,
|
|
157
|
-
onSelect: () => action.action(row && row.rowPropReference),
|
|
158
|
-
value: "",
|
|
159
|
-
label: "",
|
|
160
|
-
"data-testid": action.actionId && getSubDataTestId(rowActionMenuDataTestId, "action-".concat(action.actionId))
|
|
161
|
-
}, typeof action.label === 'function' ? action.label(row.rowPropReference) : action.label));
|
|
162
|
-
if (actionGroup.header) {
|
|
163
|
-
return /*#__PURE__*/React__default.createElement(DropdownHeader
|
|
164
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
165
|
-
, {
|
|
166
|
-
key: groupIndex,
|
|
167
|
-
title: actionGroup.header
|
|
168
|
-
}, actions);
|
|
169
|
-
}
|
|
170
|
-
return actions;
|
|
171
|
-
})));
|
|
172
|
-
},
|
|
173
|
+
renderCellContent: renderRowActionCellContent,
|
|
173
174
|
headerLabel: ''
|
|
174
175
|
};
|
|
175
176
|
columnConfigs.push(rowActionsColumnConfig);
|
|
@@ -577,17 +578,6 @@ const AdvancedTable = _ref => {
|
|
|
577
578
|
const value = data[columnId];
|
|
578
579
|
return {
|
|
579
580
|
value,
|
|
580
|
-
setValue: newValue => {
|
|
581
|
-
const updatedRow = {
|
|
582
|
-
...rowPropReference,
|
|
583
|
-
data: {
|
|
584
|
-
...rowPropReference.data,
|
|
585
|
-
[columnId]: newValue
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
const newRows = getExternalRowsWithUpdatedRow(rowsProp, rowId, depth, updatedRow);
|
|
589
|
-
onRowsChange === null || onRowsChange === void 0 || onRowsChange(newRows);
|
|
590
|
-
},
|
|
591
581
|
renderCellContent,
|
|
592
582
|
isCellContentInteractive,
|
|
593
583
|
width: (_columnWidths$columnI = columnWidths[columnId]) !== null && _columnWidths$columnI !== void 0 ? _columnWidths$columnI : width,
|
|
@@ -603,7 +593,11 @@ const AdvancedTable = _ref => {
|
|
|
603
593
|
onKeyDown: onKeyDown(rowIndex),
|
|
604
594
|
isDragging: columnId === dragSource,
|
|
605
595
|
key: columnId,
|
|
606
|
-
ref: createRef(rowIndex, columnIndex)
|
|
596
|
+
ref: createRef(rowIndex, columnIndex),
|
|
597
|
+
rowPropReference,
|
|
598
|
+
rowsProp,
|
|
599
|
+
depth,
|
|
600
|
+
onRowsChange
|
|
607
601
|
};
|
|
608
602
|
};
|
|
609
603
|
|
|
@@ -965,4 +959,4 @@ function getExternalRowsWithUpdatedRow(extRows, rowId, depth, updatedRow) {
|
|
|
965
959
|
});
|
|
966
960
|
}
|
|
967
961
|
|
|
968
|
-
export { AdvancedTable };
|
|
962
|
+
export { AdvancedTable, getExternalRowsWithUpdatedRow };
|
|
@@ -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 = "._8pnr-{overflow:auto;position:relative;max-width:100%;max-height:100%}._8pnr-,._QdX9-{background-color:#fff}._QdX9-{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._fC8k3{margin-bottom:4px}._8oS7-{position:-webkit-sticky;position:sticky;top:0;z-index:100}._Aukpa{display:flex}._Aukpa:focus{outline:none}._Aukpa.focus-visible ._cvKwp:after,._Aukpa:focus-visible ._cvKwp: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}._Aukpa.focus-visible ._cvKwp:last-of-type:after,._Aukpa:focus-visible ._cvKwp:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._Aukpa.focus-visible ._cvKwp:first-of-type:after,._Aukpa:focus-visible ._cvKwp:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._Aukpa.focus-visible ._cvKwp._1REoQ:after,._Aukpa:focus-visible ._cvKwp._1REoQ:after{right:-3px;bottom:1px}._8DLlD{padding-right:3px}._TcD-M{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._Xwdn1{display:flex}._Xwdn1._GtATN ._cvKwp,._Xwdn1._GtATN ._l2ku3{cursor:pointer}._Xwdn1._dKedg ._cvKwp,._Xwdn1._dKedg ._l2ku3{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._Xwdn1._dKedg ._cvKwp._1REoQ,._Xwdn1._dKedg ._l2ku3._1REoQ{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._Xwdn1._dKedg ._cvKwp._1REoQ ._ds3M9,._Xwdn1._dKedg ._cvKwp._1REoQ ._l2ku3,._Xwdn1._dKedg ._cvKwp._1REoQ ._sW9u9,._Xwdn1._dKedg ._l2ku3._1REoQ ._ds3M9,._Xwdn1._dKedg ._l2ku3._1REoQ ._l2ku3,._Xwdn1._dKedg ._l2ku3._1REoQ ._sW9u9{background-color:rgba(11,110,208,.08)}._Xwdn1._GtATN:hover:not(._dKedg) ._cvKwp,._Xwdn1._GtATN:hover:not(._dKedg) ._l2ku3{background-color:#f9f9f9}._Xwdn1._GtATN:active:not(._dKedg):not(._Xwdn1._GtATN:active:not(._dKedg):has(._sW9u9:active)) ._cvKwp,._Xwdn1._GtATN:active:not(._dKedg):not(._Xwdn1._GtATN:active:not(._dKedg):has(._sW9u9:active)) ._l2ku3{background-color:#f3f3f3}._Xwdn1:focus{outline:none}._Xwdn1.focus-visible ._cvKwp:after,._Xwdn1:focus-visible ._cvKwp: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}._Xwdn1.focus-visible ._cvKwp:last-of-type:after,._Xwdn1:focus-visible ._cvKwp:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._Xwdn1.focus-visible ._cvKwp:first-of-type:after,._Xwdn1:focus-visible ._cvKwp:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._Xwdn1.focus-visible ._cvKwp._1REoQ:after,._Xwdn1:focus-visible ._cvKwp._1REoQ:after{right:-3px;bottom:0}._Xwdn1:last-of-type:focus{outline:none}._Xwdn1:last-of-type.focus-visible ._cvKwp:after,._Xwdn1:last-of-type:focus-visible ._cvKwp: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}._Xwdn1:last-of-type.focus-visible ._cvKwp:last-of-type:after,._Xwdn1:last-of-type:focus-visible ._cvKwp:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._Xwdn1:last-of-type.focus-visible ._cvKwp:first-of-type:after,._Xwdn1:last-of-type:focus-visible ._cvKwp:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._Xwdn1:last-of-type.focus-visible ._cvKwp._1REoQ:after,._Xwdn1:last-of-type:focus-visible ._cvKwp._1REoQ:after{right:-3px;bottom:1px}._Xwdn1:last-of-type ._ds3M9:focus{outline:none}._Xwdn1:last-of-type ._ds3M9._aRG8q.focus-visible:after,._Xwdn1:last-of-type ._ds3M9._aRG8q:focus-visible:after,._Xwdn1:last-of-type ._ds3M9.focus-visible:after,._Xwdn1:last-of-type ._ds3M9: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}._Xwdn1:first-of-type:focus{outline:none}._Xwdn1:first-of-type.focus-visible ._cvKwp:after,._Xwdn1:first-of-type:focus-visible ._cvKwp: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}._Xwdn1:first-of-type.focus-visible ._cvKwp:last-of-type:after,._Xwdn1:first-of-type:focus-visible ._cvKwp:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._Xwdn1:first-of-type.focus-visible ._cvKwp:first-of-type:after,._Xwdn1:first-of-type:focus-visible ._cvKwp:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._Xwdn1:first-of-type.focus-visible ._cvKwp._1REoQ:after,._Xwdn1:first-of-type:focus-visible ._cvKwp._1REoQ:after{right:-3px;bottom:0}._Xwdn1:first-of-type ._ds3M9:focus{outline:none}._Xwdn1:first-of-type ._ds3M9._aRG8q.focus-visible:after,._Xwdn1:first-of-type ._ds3M9._aRG8q:focus-visible:after,._Xwdn1:first-of-type ._ds3M9.focus-visible:after,._Xwdn1:first-of-type ._ds3M9: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}._-CExH{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}._-CExH._7bKVZ{flex-grow:1}._-CExH._jnUU0{cursor:pointer}._-CExH._jnUU0:hover:not(._r1rW4){background-color:#f9f9f9;border-bottom-color:#6a6d70}._-CExH._jnUU0:active:not(._r1rW4){background-color:#f3f3f3}._-CExH._kESfM:not(._r1rW4){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._-CExH._r1rW4{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._-CExH ._TcvkN{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._-CExH ._TcvkN._O9EEt{left:-1px}._-CExH ._TcvkN._-LGk7{right:0}._-CExH ._d2Mcb{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._-CExH ._d2Mcb._O9EEt{left:-2px}._-CExH ._d2Mcb._-LGk7{right:-1px}._-CExH:first-of-type ._O9EEt._TcvkN{left:0;width:2px;border-left:1px solid #fff}._-CExH:first-of-type ._O9EEt._d2Mcb{left:0}._-CExH:last-of-type ._-LGk7._TcvkN{right:0;width:2px;border-right:1px solid #fff}._-CExH:last-of-type ._-LGk7._d2Mcb{right:0}._-CExH ._3eIul{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._-CExH ._3eIul ._LhZvx{position:absolute;width:2px;right:2px;top:0;bottom:0}._-CExH ._3eIul ._LhZvx._jJcuy{background-color:#0a6ed1}._-CExH ._3eIul:hover ._LhZvx:not(._jJcuy){background-color:#d9d9d9}._-CExH ._O1lQk{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._-CExH ._O1lQk._xilee{flex-direction:row-reverse;justify-content:flex-start}._-CExH ._O1lQk._xilee ._vL-yC{margin:1px 7px 1px 1px}._-CExH ._O1lQk ._hwIMV{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._-CExH ._O1lQk ._vL-yC{margin:1px 1px 1px 7px;flex-shrink:0}._-CExH ._WH-US{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._-CExH ._PUjVN{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._-CExH:focus{outline:none}._-CExH._aRG8q.focus-visible:after,._-CExH._aRG8q:focus-visible:after,._-CExH.focus-visible:after,._-CExH: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}._gGK5T{margin-right:6px}._1REoQ{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._1REoQ[focus-within]{z-index:30}._1REoQ:focus-within{z-index:30}._ds3M9{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}._ds3M9 ._M23HQ{width:100%;padding:12px 12px 11px;overflow:hidden}._ds3M9._r1rW4{background-color:#efefef;border-bottom-color:#dfdfe1}._ds3M9._7bKVZ{flex-grow:1}._ds3M9:focus{outline:none}._ds3M9._aRG8q.focus-visible:after,._ds3M9._aRG8q:focus-visible:after,._ds3M9.focus-visible:after,._ds3M9: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}._l2ku3{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._l2ku3._RCgH3{border-bottom-color:#d9d9d9;background-color:#fff}._sW9u9{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}._sW9u9._RCgH3{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._sW9u9:focus input~span,._sW9u9:hover input~span{border-color:#0b6ed0}._Cyp76{justify-content:flex-start}._ntCSd{justify-content:center;text-align:center}._xilee{justify-content:flex-end;text-align:right}._vffUR{display:none}._3p74m{opacity:0;height:0;width:0;overflow:hidden}._3p74m,._jeXZp{position:absolute}._jeXZp{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._P9j-e{max-width:250px;min-width:150px!important}";
|
|
4
|
+
var styles = {"advancedTable":"_8pnr-","advancedTablePaginationContainer":"_QdX9-","advancedTablePagination":"_fC8k3","advancedTableColumnHeadersRowGroup":"_8oS7-","advancedTableColumnHeaders":"_Aukpa","advancedTableRowChild":"_cvKwp","pinnedContainer":"_1REoQ","advancedTableRowGroup":"_8DLlD","advancedTableRowRestrictedWidth":"_TcD-M","advancedTableRow":"_Xwdn1","hasRowAction":"_GtATN","advancedTableExpandRowSpacer":"_l2ku3","isSelected":"_dKedg","advancedTableCheckbox":"_sW9u9","advancedTableCell":"_ds3M9","showFocusRing":"_aRG8q","advancedTableColumnHeader":"_-CExH","fillRemainingSpace":"_7bKVZ","isSortable":"_jnUU0","isDragging":"_r1rW4","isSorted":"_kESfM","dropTargetLine":"_TcvkN","dropTargetLeft":"_O9EEt","dropTargetRight":"_-LGk7","dropTargetMarker":"_d2Mcb","resizeHandle":"_3eIul","resizeLine":"_LhZvx","isResizing":"_jJcuy","advancedTableColumnHeaderLabel":"_O1lQk","rightAligned":"_xilee","sortIcon":"_vL-yC","advancedTableColumnHeaderLabelText":"_hwIMV","advancedTableColumnHeaderMenu":"_WH-US","advancedTableColumnHeaderMenuHiddenAnchor":"_PUjVN","advancedTableColumnHeaderMenuItemIcon":"_gGK5T","advancedTableCellContainer":"_M23HQ","header":"_RCgH3","leftAligned":"_Cyp76","centerAligned":"_ntCSd","hiddenDescription":"_vffUR","hiddenLiveRegion":"_3p74m","dragPreview":"_jeXZp","rowActionMenuPane":"_P9j-e"};
|
|
5
|
+
var stylesheet="._8pnr-{overflow:auto;position:relative;max-width:100%;max-height:100%}._8pnr-,._QdX9-{background-color:#fff}._QdX9-{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._fC8k3{margin-bottom:4px}._8oS7-{position:-webkit-sticky;position:sticky;top:0;z-index:100}._Aukpa{display:flex}._Aukpa:focus{outline:none}._Aukpa.focus-visible ._cvKwp:after,._Aukpa:focus-visible ._cvKwp: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}._Aukpa.focus-visible ._cvKwp:last-of-type:after,._Aukpa:focus-visible ._cvKwp:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._Aukpa.focus-visible ._cvKwp:first-of-type:after,._Aukpa:focus-visible ._cvKwp:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._Aukpa.focus-visible ._cvKwp._1REoQ:after,._Aukpa:focus-visible ._cvKwp._1REoQ:after{right:-3px;bottom:1px}._8DLlD{padding-right:3px}._TcD-M{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._Xwdn1{display:flex}._Xwdn1._GtATN ._cvKwp,._Xwdn1._GtATN ._l2ku3{cursor:pointer}._Xwdn1._dKedg ._cvKwp,._Xwdn1._dKedg ._l2ku3{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._Xwdn1._dKedg ._cvKwp._1REoQ,._Xwdn1._dKedg ._l2ku3._1REoQ{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._Xwdn1._dKedg ._cvKwp._1REoQ ._ds3M9,._Xwdn1._dKedg ._cvKwp._1REoQ ._l2ku3,._Xwdn1._dKedg ._cvKwp._1REoQ ._sW9u9,._Xwdn1._dKedg ._l2ku3._1REoQ ._ds3M9,._Xwdn1._dKedg ._l2ku3._1REoQ ._l2ku3,._Xwdn1._dKedg ._l2ku3._1REoQ ._sW9u9{background-color:rgba(11,110,208,.08)}._Xwdn1._GtATN:hover:not(._dKedg) ._cvKwp,._Xwdn1._GtATN:hover:not(._dKedg) ._l2ku3{background-color:#f9f9f9}._Xwdn1._GtATN:active:not(._dKedg):not(._Xwdn1._GtATN:active:not(._dKedg):has(._sW9u9:active)) ._cvKwp,._Xwdn1._GtATN:active:not(._dKedg):not(._Xwdn1._GtATN:active:not(._dKedg):has(._sW9u9:active)) ._l2ku3{background-color:#f3f3f3}._Xwdn1:focus{outline:none}._Xwdn1.focus-visible ._cvKwp:after,._Xwdn1:focus-visible ._cvKwp: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}._Xwdn1.focus-visible ._cvKwp:last-of-type:after,._Xwdn1:focus-visible ._cvKwp:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._Xwdn1.focus-visible ._cvKwp:first-of-type:after,._Xwdn1:focus-visible ._cvKwp:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._Xwdn1.focus-visible ._cvKwp._1REoQ:after,._Xwdn1:focus-visible ._cvKwp._1REoQ:after{right:-3px;bottom:0}._Xwdn1:last-of-type:focus{outline:none}._Xwdn1:last-of-type.focus-visible ._cvKwp:after,._Xwdn1:last-of-type:focus-visible ._cvKwp: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}._Xwdn1:last-of-type.focus-visible ._cvKwp:last-of-type:after,._Xwdn1:last-of-type:focus-visible ._cvKwp:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._Xwdn1:last-of-type.focus-visible ._cvKwp:first-of-type:after,._Xwdn1:last-of-type:focus-visible ._cvKwp:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._Xwdn1:last-of-type.focus-visible ._cvKwp._1REoQ:after,._Xwdn1:last-of-type:focus-visible ._cvKwp._1REoQ:after{right:-3px;bottom:1px}._Xwdn1:last-of-type ._ds3M9:focus{outline:none}._Xwdn1:last-of-type ._ds3M9._aRG8q.focus-visible:after,._Xwdn1:last-of-type ._ds3M9._aRG8q:focus-visible:after,._Xwdn1:last-of-type ._ds3M9.focus-visible:after,._Xwdn1:last-of-type ._ds3M9: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}._Xwdn1:first-of-type:focus{outline:none}._Xwdn1:first-of-type.focus-visible ._cvKwp:after,._Xwdn1:first-of-type:focus-visible ._cvKwp: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}._Xwdn1:first-of-type.focus-visible ._cvKwp:last-of-type:after,._Xwdn1:first-of-type:focus-visible ._cvKwp:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._Xwdn1:first-of-type.focus-visible ._cvKwp:first-of-type:after,._Xwdn1:first-of-type:focus-visible ._cvKwp:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._Xwdn1:first-of-type.focus-visible ._cvKwp._1REoQ:after,._Xwdn1:first-of-type:focus-visible ._cvKwp._1REoQ:after{right:-3px;bottom:0}._Xwdn1:first-of-type ._ds3M9:focus{outline:none}._Xwdn1:first-of-type ._ds3M9._aRG8q.focus-visible:after,._Xwdn1:first-of-type ._ds3M9._aRG8q:focus-visible:after,._Xwdn1:first-of-type ._ds3M9.focus-visible:after,._Xwdn1:first-of-type ._ds3M9: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}._-CExH{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}._-CExH._7bKVZ{flex-grow:1}._-CExH._jnUU0{cursor:pointer}._-CExH._jnUU0:hover:not(._r1rW4){background-color:#f9f9f9;border-bottom-color:#6a6d70}._-CExH._jnUU0:active:not(._r1rW4){background-color:#f3f3f3}._-CExH._kESfM:not(._r1rW4){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._-CExH._r1rW4{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._-CExH ._TcvkN{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._-CExH ._TcvkN._O9EEt{left:-1px}._-CExH ._TcvkN._-LGk7{right:0}._-CExH ._d2Mcb{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._-CExH ._d2Mcb._O9EEt{left:-2px}._-CExH ._d2Mcb._-LGk7{right:-1px}._-CExH:first-of-type ._O9EEt._TcvkN{left:0;width:2px;border-left:1px solid #fff}._-CExH:first-of-type ._O9EEt._d2Mcb{left:0}._-CExH:last-of-type ._-LGk7._TcvkN{right:0;width:2px;border-right:1px solid #fff}._-CExH:last-of-type ._-LGk7._d2Mcb{right:0}._-CExH ._3eIul{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._-CExH ._3eIul ._LhZvx{position:absolute;width:2px;right:2px;top:0;bottom:0}._-CExH ._3eIul ._LhZvx._jJcuy{background-color:#0a6ed1}._-CExH ._3eIul:hover ._LhZvx:not(._jJcuy){background-color:#d9d9d9}._-CExH ._O1lQk{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._-CExH ._O1lQk._xilee{flex-direction:row-reverse;justify-content:flex-start}._-CExH ._O1lQk._xilee ._vL-yC{margin:1px 7px 1px 1px}._-CExH ._O1lQk ._hwIMV{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._-CExH ._O1lQk ._vL-yC{margin:1px 1px 1px 7px;flex-shrink:0}._-CExH ._WH-US{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._-CExH ._PUjVN{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._-CExH:focus{outline:none}._-CExH._aRG8q.focus-visible:after,._-CExH._aRG8q:focus-visible:after,._-CExH.focus-visible:after,._-CExH: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}._gGK5T{margin-right:6px}._1REoQ{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._1REoQ[focus-within]{z-index:30}._1REoQ:focus-within{z-index:30}._ds3M9{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}._ds3M9 ._M23HQ{width:100%;padding:12px 12px 11px;overflow:hidden}._ds3M9._r1rW4{background-color:#efefef;border-bottom-color:#dfdfe1}._ds3M9._7bKVZ{flex-grow:1}._ds3M9:focus{outline:none}._ds3M9._aRG8q.focus-visible:after,._ds3M9._aRG8q:focus-visible:after,._ds3M9.focus-visible:after,._ds3M9: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}._l2ku3{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._l2ku3._RCgH3{border-bottom-color:#d9d9d9;background-color:#fff}._sW9u9{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}._sW9u9._RCgH3{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._sW9u9:focus input~span,._sW9u9:hover input~span{border-color:#0b6ed0}._Cyp76{justify-content:flex-start}._ntCSd{justify-content:center;text-align:center}._xilee{justify-content:flex-end;text-align:right}._vffUR{display:none}._3p74m{opacity:0;height:0;width:0;overflow:hidden}._3p74m,._jeXZp{position:absolute}._jeXZp{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._P9j-e{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 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default, { forwardRef, useRef, useState } from 'react';
|
|
2
|
+
import React__default, { forwardRef, useRef, useState, useCallback, useMemo } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import styles from './AdvancedTable2.js';
|
|
5
5
|
import { Alignments } from './AdvancedTableTypes.js';
|
|
6
6
|
import '../../utils/index.js';
|
|
7
7
|
import useComputedWidth from './useComputedWidth.js';
|
|
8
|
+
import { getExternalRowsWithUpdatedRow } from './AdvancedTable.js';
|
|
8
9
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
9
10
|
|
|
10
11
|
const AdvancedTableCell = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
11
12
|
let {
|
|
12
13
|
value,
|
|
13
|
-
setValue,
|
|
14
14
|
renderCellContent,
|
|
15
15
|
isCellContentInteractive = true,
|
|
16
16
|
width,
|
|
@@ -27,6 +27,10 @@ const AdvancedTableCell = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
27
27
|
onFocus,
|
|
28
28
|
isDragging,
|
|
29
29
|
className,
|
|
30
|
+
rowPropReference,
|
|
31
|
+
rowsProp,
|
|
32
|
+
depth,
|
|
33
|
+
onRowsChange,
|
|
30
34
|
...rest
|
|
31
35
|
} = _ref;
|
|
32
36
|
const cellRef = useRef(null);
|
|
@@ -61,11 +65,32 @@ const AdvancedTableCell = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
61
65
|
setIsEditing(false);
|
|
62
66
|
}
|
|
63
67
|
} : undefined;
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
const setValue = useCallback(newValue => {
|
|
69
|
+
const updatedRow = {
|
|
70
|
+
...rowPropReference,
|
|
71
|
+
data: {
|
|
72
|
+
...rowPropReference.data,
|
|
73
|
+
[columnId]: newValue
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const newRows = getExternalRowsWithUpdatedRow(rowsProp, rowId, depth, updatedRow);
|
|
77
|
+
onRowsChange === null || onRowsChange === void 0 || onRowsChange(newRows);
|
|
78
|
+
}, [columnId, depth, onRowsChange, rowId, rowPropReference, rowsProp]);
|
|
68
79
|
const computedWidth = useComputedWidth(widthBuffer, width);
|
|
80
|
+
const cellContent = useMemo(() => typeof renderCellContent === 'function' ? renderCellContent({
|
|
81
|
+
value,
|
|
82
|
+
setValue,
|
|
83
|
+
focusCell: () => {
|
|
84
|
+
var _cellRef$current;
|
|
85
|
+
return (_cellRef$current = cellRef.current) === null || _cellRef$current === void 0 ? void 0 : _cellRef$current.focus();
|
|
86
|
+
},
|
|
87
|
+
focusableElementRef,
|
|
88
|
+
isEditing,
|
|
89
|
+
rowId,
|
|
90
|
+
columnId,
|
|
91
|
+
rowIndex,
|
|
92
|
+
columnIndex
|
|
93
|
+
}) : value, [columnId, columnIndex, isEditing, renderCellContent, rowId, rowIndex, setValue, value]);
|
|
69
94
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
|
70
95
|
role: "gridcell",
|
|
71
96
|
"data-testid": dataTestId,
|
|
@@ -87,17 +112,7 @@ const AdvancedTableCell = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
87
112
|
ref: mergeRefs(ref, cellRef)
|
|
88
113
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
89
114
|
className: styles.advancedTableCellContainer
|
|
90
|
-
},
|
|
91
|
-
value,
|
|
92
|
-
setValue,
|
|
93
|
-
focusCell,
|
|
94
|
-
focusableElementRef,
|
|
95
|
-
isEditing,
|
|
96
|
-
rowId,
|
|
97
|
-
columnId,
|
|
98
|
-
rowIndex,
|
|
99
|
-
columnIndex
|
|
100
|
-
}) : value));
|
|
115
|
+
}, cellContent));
|
|
101
116
|
});
|
|
102
117
|
|
|
103
118
|
export { AdvancedTableCell as default };
|
|
@@ -26,6 +26,7 @@ const ChatInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
26
26
|
onChange: externalOnChange,
|
|
27
27
|
'data-testid': dataTestId,
|
|
28
28
|
placeholderText,
|
|
29
|
+
id,
|
|
29
30
|
characterLimit: externalCharacterLimit,
|
|
30
31
|
helperText
|
|
31
32
|
} = _ref;
|
|
@@ -47,11 +48,11 @@ const ChatInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
47
48
|
const newValue = e.target.value;
|
|
48
49
|
setValue(newValue);
|
|
49
50
|
});
|
|
50
|
-
const helperIds = useId();
|
|
51
51
|
const {
|
|
52
52
|
isLoading,
|
|
53
53
|
chatInputRef
|
|
54
54
|
} = useChatContext();
|
|
55
|
+
const chatInputID = useId(id);
|
|
55
56
|
const sendMessageAndClearInput = () => {
|
|
56
57
|
if (!value || isDisabled || isLoading || isMaxCharactersExceeded) return;
|
|
57
58
|
onMessageSend === null || onMessageSend === void 0 || onMessageSend(value);
|
|
@@ -74,6 +75,7 @@ const ChatInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
74
75
|
text: value
|
|
75
76
|
})), /*#__PURE__*/React__default.createElement(Input, {
|
|
76
77
|
ref: mergeRefs(ref, chatInputRef),
|
|
78
|
+
id: "".concat(chatInputID, "-chat-input"),
|
|
77
79
|
multiline: true,
|
|
78
80
|
className: textArea,
|
|
79
81
|
onKeyDown: handleKeyDown,
|
|
@@ -81,7 +83,7 @@ const ChatInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
81
83
|
value: value,
|
|
82
84
|
onChange: handleChange,
|
|
83
85
|
"aria-label": inputLabel,
|
|
84
|
-
"aria-describedby": characterLimit && isMaxCharactersExceeded ? "".concat(
|
|
86
|
+
"aria-describedby": characterLimit && isMaxCharactersExceeded ? "".concat(chatInputID, "-error-text") : "".concat(chatInputID, "-helper-text"),
|
|
85
87
|
placeholder: inputLabel,
|
|
86
88
|
"data-testid": dataTestId ? "".concat(dataTestId, "-input") : undefined,
|
|
87
89
|
invalid: isMaxCharactersExceeded
|
|
@@ -99,14 +101,14 @@ const ChatInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
99
101
|
}, /*#__PURE__*/React__default.createElement(SendIcon, null)))), /*#__PURE__*/React__default.createElement("div", {
|
|
100
102
|
className: characterCountMessage
|
|
101
103
|
}, isMaxCharactersExceeded && /*#__PURE__*/React__default.createElement(ErrorText, {
|
|
102
|
-
id: "".concat(
|
|
104
|
+
id: "".concat(chatInputID, "-error-text"),
|
|
103
105
|
"data-testid": dataTestId && "".concat(dataTestId, "-input-error-text")
|
|
104
106
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
105
107
|
className: inputHelpInformationMessage
|
|
106
108
|
}, translate('chat.maxCharacterLimit')), /*#__PURE__*/React__default.createElement("span", {
|
|
107
109
|
className: inputHelpInformationCounter
|
|
108
110
|
}, value.length, " / ", characterLimit)), characterLimit && /*#__PURE__*/React__default.createElement(HelperText, {
|
|
109
|
-
id: "".concat(
|
|
111
|
+
id: "".concat(chatInputID, "-helper-text"),
|
|
110
112
|
"data-testid": dataTestId && "".concat(dataTestId, "-input-helper-text")
|
|
111
113
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
112
114
|
className: inputHelpInformationMessage
|
|
@@ -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 = {"collapsibleSearchInput":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._3DJf0{display:inline-block;width:36px;transition:width .25s ease-out}._LJlPd{width:100%}._ah-0j>input{padding-right:0!important}._mhOU2>svg{fill:#515559}";
|
|
4
|
+
var styles = {"collapsibleSearchInput":"_3DJf0","searchInput":"_LJlPd","searchInputCollapsed":"_ah-0j","iconButton":"_mhOU2"};
|
|
5
|
+
var stylesheet="._3DJf0{display:inline-block;width:36px;transition:width .25s ease-out}._LJlPd{width:100%}._ah-0j>input{padding-right:0!important}._mhOU2>svg{fill:#515559}";
|
|
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 };
|