@qualtrics/ui-react 2.27.0 → 2.28.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 +12 -0
- package/dist/__shared/cjs/{index-e6893573.js → index-0c005184.js} +3 -3
- package/dist/__shared/cjs/{index-88aa3bce.js → index-2ad33b44.js} +239 -193
- 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/Checkbox/VisualCheckbox2.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/Dropdown2.js +3 -3
- 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/ConditionSet.js +3 -4
- package/dist/components/LogicEditor/Controls.js +66 -48
- package/dist/components/LogicEditor/LogicEditor.js +34 -8
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/LogicEditor/utils.js +4 -1
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- 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/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/TimeDropdown.js +9 -3
- package/dist/next/TimePicker/TimePicker.js +1 -1
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +48 -42
- package/dist/utils/Flyout/Flyout2.js +3 -3
- 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 = {"spinnerContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Ces1m{position:relative;display:inline-block}._Ces1m._yh8UY{min-height:20px;min-width:20px}._Ces1m._Z0yPb{min-height:25px;min-width:25px}._Ces1m._tK7sl{min-height:40px;min-width:40px}._Ces1m._WZpC0{min-height:64px;min-width:64px}._Ces1m ._ycO7I{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._Ces1m ._ycO7I._QNXPO{visibility:hidden}._Ces1m ._ycO7I div{position:absolute;transform:rotate(20deg)}._Ces1m ._ycO7I div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_ycO7I .9s linear infinite}._Ces1m ._ycO7I div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._Ces1m ._ycO7I div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._Ces1m ._ycO7I div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._Ces1m ._ycO7I div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._Ces1m ._ycO7I div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._Ces1m ._ycO7I div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._Ces1m ._ycO7I div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._Ces1m ._ycO7I div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._Ces1m ._ycO7I div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._Ces1m ._ycO7I div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._Ces1m ._WZpC0 div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._Ces1m ._yh8UY div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._Ces1m ._Z0yPb div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._Ces1m ._5FipC div div:nth-child(-n+9):after{background:#fff}._Ces1m ._agOTa{width:100%;height:100%}._Ces1m ._agOTa._2jxRw{pointer-events:none}._Ces1m ._agOTa._QNXPO{opacity:0}._Ces1m ._agOTa._bVCtS{opacity:.5}@keyframes _ycO7I{0%{opacity:1}to{opacity:0}}";
|
|
4
|
+
var styles = {"spinnerContainer":"_Ces1m","xs":"_yh8UY","small":"_Z0yPb","medium":"_tK7sl","large":"_WZpC0","spinnerComponent":"_ycO7I","hide":"_QNXPO","inverted":"_5FipC","spinnerContent":"_agOTa","disablePointerEvents":"_2jxRw","fade":"_bVCtS"};
|
|
5
|
+
var stylesheet="._Ces1m{position:relative;display:inline-block}._Ces1m._yh8UY{min-height:20px;min-width:20px}._Ces1m._Z0yPb{min-height:25px;min-width:25px}._Ces1m._tK7sl{min-height:40px;min-width:40px}._Ces1m._WZpC0{min-height:64px;min-width:64px}._Ces1m ._ycO7I{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._Ces1m ._ycO7I._QNXPO{visibility:hidden}._Ces1m ._ycO7I div{position:absolute;transform:rotate(20deg)}._Ces1m ._ycO7I div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_ycO7I .9s linear infinite}._Ces1m ._ycO7I div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._Ces1m ._ycO7I div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._Ces1m ._ycO7I div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._Ces1m ._ycO7I div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._Ces1m ._ycO7I div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._Ces1m ._ycO7I div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._Ces1m ._ycO7I div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._Ces1m ._ycO7I div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._Ces1m ._ycO7I div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._Ces1m ._ycO7I div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._Ces1m ._WZpC0 div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._Ces1m ._yh8UY div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._Ces1m ._Z0yPb div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._Ces1m ._5FipC div div:nth-child(-n+9):after{background:#fff}._Ces1m ._agOTa{width:100%;height:100%}._Ces1m ._agOTa._2jxRw{pointer-events:none}._Ces1m ._agOTa._QNXPO{opacity:0}._Ces1m ._agOTa._bVCtS{opacity:.5}@keyframes _ycO7I{0%{opacity:1}to{opacity: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 };
|
|
@@ -89,14 +89,13 @@ const ConditionSet = function ConditionSet(_ref) {
|
|
|
89
89
|
}
|
|
90
90
|
return getSubDataTestId(rootDataTestId, "".concat(prefix, "-").concat(indices.join('-')));
|
|
91
91
|
}, [fixedSet, rootDataTestId]);
|
|
92
|
-
function renderControls(itemType, itemPosition, itemLevel,
|
|
92
|
+
function renderControls(itemType, itemPosition, itemLevel, itemId) {
|
|
93
93
|
return /*#__PURE__*/React__default.createElement(Controls, {
|
|
94
94
|
handleNewLogicItem: handleNewLogicItem,
|
|
95
95
|
itemType: itemType,
|
|
96
96
|
parent: itemPosition.parent,
|
|
97
97
|
itemIndex: itemPosition.index,
|
|
98
98
|
itemLevel: itemLevel,
|
|
99
|
-
numberOfSetItems: numberOfSetItems,
|
|
100
99
|
itemId: itemId,
|
|
101
100
|
"data-testid": getDataTestId('condition-actions', itemPosition)
|
|
102
101
|
});
|
|
@@ -130,7 +129,7 @@ const ConditionSet = function ConditionSet(_ref) {
|
|
|
130
129
|
position: conditionPosition,
|
|
131
130
|
condition: item,
|
|
132
131
|
firstFocusableElementRef: fixedSet && firstFocusableElementRef && i === 0 ? firstFocusableElementRef : undefined,
|
|
133
|
-
conditionControls: !readOnly ? renderControls(LOGIC_TYPE_CONDITION, conditionPosition, level + 1,
|
|
132
|
+
conditionControls: !readOnly ? renderControls(LOGIC_TYPE_CONDITION, conditionPosition, level + 1, item.id) : undefined
|
|
134
133
|
}));
|
|
135
134
|
}
|
|
136
135
|
if (item.logicType === LOGIC_TYPE_SET) {
|
|
@@ -172,7 +171,7 @@ const ConditionSet = function ConditionSet(_ref) {
|
|
|
172
171
|
}), /*#__PURE__*/React__default.createElement(DropdownOption, {
|
|
173
172
|
value: SET_VALUE_ALL,
|
|
174
173
|
label: String(translations.all)
|
|
175
|
-
}))), !readOnly && renderControls(LOGIC_TYPE_SET, position, level, value.
|
|
174
|
+
}))), !readOnly && renderControls(LOGIC_TYPE_SET, position, level, value.id)), /*#__PURE__*/React__default.createElement("div", {
|
|
176
175
|
role: "group",
|
|
177
176
|
ref: conditionRef
|
|
178
177
|
}, renderSetChildren()));
|
|
@@ -22,7 +22,6 @@ const Controls = function Controls(_ref) {
|
|
|
22
22
|
itemIndex,
|
|
23
23
|
itemLevel,
|
|
24
24
|
itemId,
|
|
25
|
-
numberOfSetItems,
|
|
26
25
|
'data-testid': dataTestId
|
|
27
26
|
} = _ref;
|
|
28
27
|
const {
|
|
@@ -32,63 +31,82 @@ const Controls = function Controls(_ref) {
|
|
|
32
31
|
defaultSetValue,
|
|
33
32
|
maxNestedSets,
|
|
34
33
|
maxConditions,
|
|
35
|
-
controlsRef
|
|
34
|
+
controlsRef,
|
|
35
|
+
numberOfItems,
|
|
36
|
+
setNumberOfItems
|
|
36
37
|
} = useLogicEditorContext();
|
|
38
|
+
const canAddNewCondition = useMemo(() => !maxConditions || numberOfItems < maxConditions, [maxConditions, numberOfItems]);
|
|
37
39
|
const canAddNewSet = useMemo(() => {
|
|
40
|
+
// Need to have space for two conditions to add a new set, since
|
|
41
|
+
// adding a set automatically adds a condition below.
|
|
42
|
+
if (maxConditions && numberOfItems >= maxConditions - 1) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
38
45
|
// If "insert condition set below" is clicked on a logic item's control, it's added at the same level.
|
|
39
46
|
// If "insert condition set below" is clicked on a logic set's control, it's added a level deeper.
|
|
40
47
|
const levelOfNewSet = itemType === LOGIC_TYPE_CONDITION ? itemLevel : itemLevel + 1;
|
|
41
48
|
return !fixedSet && levelOfNewSet <= maxNestedSets;
|
|
42
|
-
}, [fixedSet, itemLevel, maxNestedSets, itemType]);
|
|
49
|
+
}, [fixedSet, itemLevel, maxNestedSets, itemType, maxConditions, numberOfItems]);
|
|
43
50
|
const indexOfNewItem = useMemo(() => itemType === LOGIC_TYPE_SET ? 0 : itemIndex + 1, [itemType, itemIndex]);
|
|
44
|
-
const menu = useMemo(() =>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
const menu = useMemo(() => {
|
|
52
|
+
const isRootMenu = itemLevel === 0 && !fixedSet;
|
|
53
|
+
const menuHasNoOptions = isRootMenu && !canAddNewCondition;
|
|
54
|
+
return /*#__PURE__*/React__default.createElement(Menu, {
|
|
55
|
+
anchor: /*#__PURE__*/React__default.createElement(IconButton, {
|
|
56
|
+
"aria-label": translations.conditionActions,
|
|
57
|
+
className: styles.controls,
|
|
58
|
+
"data-testid": dataTestId,
|
|
59
|
+
style: {
|
|
60
|
+
visibility: menuHasNoOptions ? 'hidden' : undefined
|
|
61
|
+
}
|
|
62
|
+
}, /*#__PURE__*/React__default.createElement(EllipsisHorizontalIcon, null)),
|
|
63
|
+
ref: node => {
|
|
64
|
+
if (node) {
|
|
65
|
+
controlsRef.current.set(itemId, node);
|
|
66
|
+
setNumberOfItems(controlsRef.current.size);
|
|
67
|
+
} else {
|
|
68
|
+
controlsRef.current.delete(itemId);
|
|
69
|
+
setNumberOfItems(controlsRef.current.size);
|
|
70
|
+
}
|
|
55
71
|
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
},
|
|
72
|
+
}, canAddNewCondition && /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
73
|
+
value: "add-condition",
|
|
74
|
+
onSelect: () => handleNewLogicItem(newCondition(), indexOfNewItem)
|
|
75
|
+
}, /*#__PURE__*/React__default.createElement(AddItemIcon, {
|
|
76
|
+
"aria-hidden": "true"
|
|
77
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
78
|
+
className: styles.controlMenuItem
|
|
79
|
+
}, translations.insertConditionBelow)), canAddNewSet && /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
80
|
+
value: "add-set",
|
|
81
|
+
onSelect: () => handleNewLogicItem(newConditionSet(defaultSetValue), indexOfNewItem)
|
|
82
|
+
}, /*#__PURE__*/React__default.createElement(FilterIcon, {
|
|
83
|
+
"aria-hidden": "true"
|
|
84
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
85
|
+
className: styles.controlMenuItem
|
|
86
|
+
}, translations.insertSetBelow)), (fixedSet && numberOfItems > 1 || !fixedSet && itemLevel > 0) && /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
87
|
+
value: "delete",
|
|
88
|
+
onSelect: e => {
|
|
89
|
+
onDelete({
|
|
90
|
+
parent,
|
|
91
|
+
index: itemIndex
|
|
92
|
+
});
|
|
93
|
+
// We want to move focus to the previous control
|
|
94
|
+
// item when this one is deleted, so we need to
|
|
95
|
+
// prevent Menu's default focus behavior
|
|
96
|
+
e.preventDefault();
|
|
97
|
+
}
|
|
98
|
+
}, /*#__PURE__*/React__default.createElement(RemoveItemIcon, {
|
|
99
|
+
"aria-hidden": "true"
|
|
100
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
101
|
+
className: styles.controlMenuItem
|
|
102
|
+
}, translations.delete)));
|
|
103
|
+
}, [
|
|
88
104
|
// context
|
|
89
|
-
translations, fixedSet, onDelete, defaultSetValue,
|
|
105
|
+
translations, fixedSet, onDelete, defaultSetValue, controlsRef, numberOfItems, setNumberOfItems,
|
|
90
106
|
// props
|
|
91
|
-
handleNewLogicItem, parent, itemIndex, itemLevel, itemId,
|
|
107
|
+
handleNewLogicItem, parent, itemIndex, itemLevel, itemId, dataTestId,
|
|
108
|
+
// variables in scope
|
|
109
|
+
canAddNewSet, canAddNewCondition, indexOfNewItem]);
|
|
92
110
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
93
111
|
className: classNames({
|
|
94
112
|
[styles.conditionControlsContainer]: itemType === LOGIC_TYPE_CONDITION
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default, { useMemo, useState, useCallback, useRef } from 'react';
|
|
2
|
+
import React__default, { useMemo, useState, useCallback, useRef, useEffect } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import styles from './LogicEditor2.js';
|
|
5
5
|
import ConditionSet from './ConditionSet.js';
|
|
@@ -48,14 +48,33 @@ const LogicEditor = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
48
48
|
return newState;
|
|
49
49
|
});
|
|
50
50
|
}, [onChange]);
|
|
51
|
+
const controlsRef = useRef(new Map());
|
|
52
|
+
const [numberOfItems, setNumberOfItems] = useState(controlsRef.current.size);
|
|
53
|
+
const itemToFocusId = useRef(null);
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
// Must be in a useEffect instead of event handlers to ensure `focus` is called
|
|
56
|
+
// _after_ the root condition control menu is possibly added back into view
|
|
57
|
+
if (itemToFocusId.current !== null) {
|
|
58
|
+
var _controlsRef$current$;
|
|
59
|
+
(_controlsRef$current$ = controlsRef.current.get(itemToFocusId.current)) === null || _controlsRef$current$ === void 0 || _controlsRef$current$.focus();
|
|
60
|
+
itemToFocusId.current = null;
|
|
61
|
+
}
|
|
62
|
+
}, [numberOfItems]);
|
|
51
63
|
const handleNewLogicItem = useCallback((item, position) => {
|
|
64
|
+
var _position$parent;
|
|
65
|
+
const numberOfItemsBeingAdded = item.logicType === 'set' ? 2 : 1;
|
|
66
|
+
const willReachMaxCondiitons = numberOfItems + numberOfItemsBeingAdded === maxConditions;
|
|
67
|
+
const focusIsOnRootNode = position.index === 0 && ((_position$parent = position.parent) === null || _position$parent === void 0 ? void 0 : _position$parent.parent) === undefined;
|
|
68
|
+
if (focusIsOnRootNode && willReachMaxCondiitons) {
|
|
69
|
+
itemToFocusId.current = item.id;
|
|
70
|
+
}
|
|
52
71
|
update(prevState => {
|
|
53
72
|
const newState = shallowCopy(prevState);
|
|
54
73
|
const parent = getParentSet(newState, position);
|
|
55
74
|
parent.conditions.splice(position.index, 0, item);
|
|
56
75
|
return newState;
|
|
57
76
|
});
|
|
58
|
-
}, [update]);
|
|
77
|
+
}, [update, numberOfItems, maxConditions]);
|
|
59
78
|
const handleSetChange = (newSetValue, position) => {
|
|
60
79
|
update(prevState => {
|
|
61
80
|
const rootState = shallowCopy(prevState);
|
|
@@ -77,23 +96,28 @@ const LogicEditor = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
77
96
|
return newState;
|
|
78
97
|
});
|
|
79
98
|
};
|
|
80
|
-
const controlsRef = useRef({});
|
|
81
99
|
const handleDelete = useCallback(position => {
|
|
100
|
+
let previousItemId;
|
|
82
101
|
update(prevState => {
|
|
83
|
-
|
|
102
|
+
previousItemId = getPreviousItemId(prevState, position, fixedSet);
|
|
84
103
|
const newState = shallowCopy(prevState);
|
|
85
104
|
const parent = getParentSet(newState, position);
|
|
86
105
|
parent.conditions.splice(position.index, 1);
|
|
87
106
|
|
|
88
107
|
// If the last condition in a set was deleted, also delete the set.
|
|
89
108
|
if (parent.conditions.length === 0) {
|
|
90
|
-
previousItemId = getPreviousItemId(newState, position.parent);
|
|
109
|
+
previousItemId = getPreviousItemId(newState, position.parent, fixedSet);
|
|
91
110
|
getParentSet(newState, position.parent).conditions.splice(position.parent.index, 1);
|
|
92
111
|
}
|
|
93
|
-
|
|
112
|
+
if (previousItemId === null) {
|
|
113
|
+
// May be null if first item in fixedSet editor is deleted.
|
|
114
|
+
// In this case focus the new first item in the editor.
|
|
115
|
+
previousItemId = newState.conditions[0].id;
|
|
116
|
+
}
|
|
94
117
|
return newState;
|
|
95
118
|
});
|
|
96
|
-
|
|
119
|
+
itemToFocusId.current = previousItemId;
|
|
120
|
+
}, [update, fixedSet]);
|
|
97
121
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
|
98
122
|
role: "group",
|
|
99
123
|
className: classes,
|
|
@@ -113,7 +137,9 @@ const LogicEditor = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
113
137
|
maxConditions,
|
|
114
138
|
readOnly,
|
|
115
139
|
rootDataTestId: dataTestId,
|
|
116
|
-
controlsRef
|
|
140
|
+
controlsRef,
|
|
141
|
+
numberOfItems,
|
|
142
|
+
setNumberOfItems
|
|
117
143
|
}
|
|
118
144
|
}, /*#__PURE__*/React__default.createElement(ConditionSet, {
|
|
119
145
|
value: state,
|
|
@@ -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 = {"set":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Xy-4X{width:100%}._2wHOX{display:flex;align-items:center}._ppbqQ{display:flex;flex-wrap:wrap;grid-gap:4px}._ppbqQ._GMsHF :nth-last-child(2){margin-right:42px}._Puy0g{position:relative;padding-left:32px;padding-top:16px}._6GRo3 ._Puy0g{padding-top:0;padding-left:16px}._6GRo3 ._Puy0g+._Puy0g{margin-top:16px}._SDRLv{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._6GRo3 ._Puy0g:first-of-type ._SDRLv{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._6GRo3 ._SDRLv{top:-16px;left:0}._6GRo3 ._Puy0g:not(:first-of-type):not(:last-of-type) ._SDRLv{border-bottom-left-radius:0}._BhKLd{margin-left:-46px}._6ZvSw{margin:0 2px 0 4px}._6ZvSw.focus-visible,._6ZvSw:focus-visible{outline-width:2px}._e4jrX{margin-left:4px}";
|
|
4
|
+
var styles = {"set":"_Xy-4X","setWrapper":"_2wHOX","condition":"_ppbqQ","readOnly":"_GMsHF","branch":"_Puy0g","fixedSet":"_6GRo3","connection":"_SDRLv","conditionControlsContainer":"_BhKLd","controls":"_6ZvSw","controlMenuItem":"_e4jrX"};
|
|
5
|
+
var stylesheet="._Xy-4X{width:100%}._2wHOX{display:flex;align-items:center}._ppbqQ{display:flex;flex-wrap:wrap;grid-gap:4px}._ppbqQ._GMsHF :nth-last-child(2){margin-right:42px}._Puy0g{position:relative;padding-left:32px;padding-top:16px}._6GRo3 ._Puy0g{padding-top:0;padding-left:16px}._6GRo3 ._Puy0g+._Puy0g{margin-top:16px}._SDRLv{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._6GRo3 ._Puy0g:first-of-type ._SDRLv{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._6GRo3 ._SDRLv{top:-16px;left:0}._6GRo3 ._Puy0g:not(:first-of-type):not(:last-of-type) ._SDRLv{border-bottom-left-radius:0}._BhKLd{margin-left:-46px}._6ZvSw{margin:0 2px 0 4px}._6ZvSw.focus-visible,._6ZvSw:focus-visible{outline-width:2px}._e4jrX{margin-left:4px}";
|
|
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 };
|
|
@@ -111,9 +111,12 @@ function walkToRoot(position) {
|
|
|
111
111
|
}
|
|
112
112
|
return root;
|
|
113
113
|
}
|
|
114
|
-
function getPreviousItemId(conditionRoot, position) {
|
|
114
|
+
function getPreviousItemId(conditionRoot, position, fixedSet) {
|
|
115
115
|
const parentSet = getParentSet(conditionRoot, position);
|
|
116
116
|
if (position.index === 0) {
|
|
117
|
+
if (fixedSet) {
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
117
120
|
// The previous item is the parent
|
|
118
121
|
return parentSet.id;
|
|
119
122
|
}
|
|
@@ -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 = {"backdrop":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._4VHFo{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._3PWeW,._4VHFo{display:flex;overflow:auto}._3PWeW{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._-Y4xq)._LgYKN{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-Y4xq)._LgYKN{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._-Y4xq)._U2UkL{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-Y4xq)._U2UkL{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._-Y4xq)._U2UkL{max-width:700px}}:not(._-Y4xq)._MRQZF{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-Y4xq)._MRQZF{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._-Y4xq)._MRQZF{max-width:700px}}@media screen and (min-width:1024px){:not(._-Y4xq)._MRQZF{max-width:1000px}}:not(._-Y4xq)._0oy5j{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-Y4xq)._0oy5j{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._-Y4xq)._0oy5j{max-width:700px}}@media screen and (min-width:1024px){:not(._-Y4xq)._0oy5j{max-width:1000px}}@media screen and (min-width:1632px){:not(._-Y4xq)._0oy5j{max-width:1600px;max-height:calc(100vh - 32px)}}._-Y4xq{min-width:200px;width:calc(100% - 48px)}._-Y4xq,._-Y4xq._LgYKN{max-height:calc(100vh - 80px)}._-Y4xq._LgYKN{max-width:480px;border-radius:8px}._-Y4xq._U2UkL{max-width:700px}._-Y4xq._MRQZF{max-width:1000px}._-Y4xq._0oy5j{max-width:1600px;max-height:calc(100vh - 32px)}._lD-NA{height:calc(100vh - 80px)}@media screen and (max-width:479px){._lD-NA{height:100vh}}@media screen and (min-width:1632px){._lD-NA{height:calc(100vh - 32px)}}._3HJRI{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._6gZr6{padding-right:64px}._SxI35{position:absolute;top:14px;right:14px}._tNnBp{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._3J-Y3,._tNnBp{padding:20px 24px}._3J-Y3{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._3J-Y3>*{margin:0 4px}._3J-Y3>:first-child{margin-left:0}._3J-Y3>:last-child{margin-right:0}@keyframes _ktqQJ{0%{opacity:0}}._ktqQJ{animation:_ktqQJ ease-in both;animation-duration:.2s}@keyframes _gQw0I{to{opacity:0}}._gQw0I{animation:_gQw0I ease-out both;animation-duration:.2s}@keyframes _JX9gU{0%{transform:scale3d(.7,.7,.7);opacity:0}}._JX9gU{animation:_JX9gU both;animation-duration:.2s}@keyframes _X2U9R{to{transform:scale3d(.7,.7,.7);opacity:0}}._X2U9R{animation:_X2U9R both;animation-duration:.2s}";
|
|
4
|
+
var styles = {"backdrop":"_4VHFo","modal":"_3PWeW","responsive":"_-Y4xq","dialogSmall":"_LgYKN","dialogMedium":"_U2UkL","dialogLarge":"_MRQZF","dialogExtraLarge":"_0oy5j","growToMaxHeight":"_lD-NA","modalHeader":"_3HJRI","modalHeaderWithCloseButton":"_6gZr6","modalHeaderCloseButton":"_SxI35","modalBody":"_tNnBp","modalFooter":"_3J-Y3","fadeEnter":"_ktqQJ","fadeLeave":"_gQw0I","zoomEnter":"_JX9gU","zoomLeave":"_X2U9R"};
|
|
5
|
+
var stylesheet="._4VHFo{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._3PWeW,._4VHFo{display:flex;overflow:auto}._3PWeW{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._-Y4xq)._LgYKN{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-Y4xq)._LgYKN{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._-Y4xq)._U2UkL{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-Y4xq)._U2UkL{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._-Y4xq)._U2UkL{max-width:700px}}:not(._-Y4xq)._MRQZF{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-Y4xq)._MRQZF{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._-Y4xq)._MRQZF{max-width:700px}}@media screen and (min-width:1024px){:not(._-Y4xq)._MRQZF{max-width:1000px}}:not(._-Y4xq)._0oy5j{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-Y4xq)._0oy5j{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._-Y4xq)._0oy5j{max-width:700px}}@media screen and (min-width:1024px){:not(._-Y4xq)._0oy5j{max-width:1000px}}@media screen and (min-width:1632px){:not(._-Y4xq)._0oy5j{max-width:1600px;max-height:calc(100vh - 32px)}}._-Y4xq{min-width:200px;width:calc(100% - 48px)}._-Y4xq,._-Y4xq._LgYKN{max-height:calc(100vh - 80px)}._-Y4xq._LgYKN{max-width:480px;border-radius:8px}._-Y4xq._U2UkL{max-width:700px}._-Y4xq._MRQZF{max-width:1000px}._-Y4xq._0oy5j{max-width:1600px;max-height:calc(100vh - 32px)}._lD-NA{height:calc(100vh - 80px)}@media screen and (max-width:479px){._lD-NA{height:100vh}}@media screen and (min-width:1632px){._lD-NA{height:calc(100vh - 32px)}}._3HJRI{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._6gZr6{padding-right:64px}._SxI35{position:absolute;top:14px;right:14px}._tNnBp{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._3J-Y3,._tNnBp{padding:20px 24px}._3J-Y3{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._3J-Y3>*{margin:0 4px}._3J-Y3>:first-child{margin-left:0}._3J-Y3>:last-child{margin-right:0}@keyframes _ktqQJ{0%{opacity:0}}._ktqQJ{animation:_ktqQJ ease-in both;animation-duration:.2s}@keyframes _gQw0I{to{opacity:0}}._gQw0I{animation:_gQw0I ease-out both;animation-duration:.2s}@keyframes _JX9gU{0%{transform:scale3d(.7,.7,.7);opacity:0}}._JX9gU{animation:_JX9gU both;animation-duration:.2s}@keyframes _X2U9R{to{transform:scale3d(.7,.7,.7);opacity:0}}._X2U9R{animation:_X2U9R both;animation-duration:.2s}";
|
|
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 = {"menuBtn":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._VKo2a._VKo2a{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._VKo2a._VKo2a,._VKo2a._VKo2a ._v5E9M{display:inline-flex;align-items:center}._VKo2a._VKo2a ._v5E9M{overflow:hidden;text-overflow:ellipsis}._VKo2a._VKo2a._cg9ip{min-height:26px;height:26px}._VKo2a._VKo2a._m4jsi{color:#32363a}._VKo2a._VKo2a:hover:not([aria-disabled=true]){background-color:#f5f5f5}._VKo2a._VKo2a:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._VKo2a._VKo2a[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._VKo2a._VKo2a[aria-disabled=true]>svg{fill:#515559;opacity:.4}._VKo2a._VKo2a[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._VKo2a._VKo2a._wd4-H{padding-left:0}._VKo2a._VKo2a._-h-wD{margin-top:4px}._VKo2a._VKo2a ._inihk{fill:#515559}._VKo2a._VKo2a ._inihk._cg9ip{top:0}._VKo2a._VKo2a ._inihk._U2--p{transform:rotate(-180deg)}._J8jxu{margin:0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._J8jxu::-webkit-scrollbar,._J8jxu::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._J8jxu::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._J8jxu::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._J8jxu:hover::-webkit-scrollbar,._J8jxu:hover::-webkit-scrollbar-thumb,._J8jxu[focus-within]::-webkit-scrollbar,._J8jxu[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._J8jxu:focus-within::-webkit-scrollbar,._J8jxu:focus-within::-webkit-scrollbar-thumb,._J8jxu:hover::-webkit-scrollbar,._J8jxu:hover::-webkit-scrollbar-thumb{visibility:visible}._o2wJb{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._o2wJb[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._o2wJb._PvrkW{background-color:#efefef}._o2wJb._pSJMA{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._o2wJb._m4jsi{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._o2wJb._m4jsi._PvrkW{background-color:#e4effa}._o2wJb._2--CH{cursor:default}._o2wJb:active:not(._oVhtl):not(._m4jsi):not([aria-disabled=true]):not(._2--CH){background-color:#e8e9e9}._oVhtl{padding-right:32px}._oVhtl ._inihk{position:absolute;top:8px;right:3px;fill:#515559}._NJB5-{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:-webkit-sticky;position:sticky;top:0;z-index:20;background-color:#fff}._3lOt-{position:absolute;top:13px;left:13px}._xiasZ._xiasZ{padding-left:32px}._gtsE-{margin:2px 12px 2px 0;flex-shrink:0}._gtsE-._A86J1>svg{border-color:#0b6ed0}._drIEa{display:flex;justify-self:center;margin:8px}";
|
|
4
|
+
var styles = {"menuBtn":"_VKo2a","menuBtnLabel":"_v5E9M","small":"_cg9ip","selected":"_m4jsi","unlabelledButton":"_wd4-H","formLabelled":"_-h-wD","rightIcon":"_inihk","open":"_U2--p","contentPane":"_J8jxu","menuItem":"_o2wJb","active":"_PvrkW","focus":"_pSJMA","noMenuItems":"_2--CH","subMenu":"_oVhtl","searchBox":"_NJB5-","searchBoxIcon":"_3lOt-","searchBoxInput":"_xiasZ","checkbox":"_gtsE-","highlighted":"_A86J1","menuSpinner":"_drIEa"};
|
|
5
|
+
var stylesheet="._VKo2a._VKo2a{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._VKo2a._VKo2a,._VKo2a._VKo2a ._v5E9M{display:inline-flex;align-items:center}._VKo2a._VKo2a ._v5E9M{overflow:hidden;text-overflow:ellipsis}._VKo2a._VKo2a._cg9ip{min-height:26px;height:26px}._VKo2a._VKo2a._m4jsi{color:#32363a}._VKo2a._VKo2a:hover:not([aria-disabled=true]){background-color:#f5f5f5}._VKo2a._VKo2a:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._VKo2a._VKo2a[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._VKo2a._VKo2a[aria-disabled=true]>svg{fill:#515559;opacity:.4}._VKo2a._VKo2a[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._VKo2a._VKo2a._wd4-H{padding-left:0}._VKo2a._VKo2a._-h-wD{margin-top:4px}._VKo2a._VKo2a ._inihk{fill:#515559}._VKo2a._VKo2a ._inihk._cg9ip{top:0}._VKo2a._VKo2a ._inihk._U2--p{transform:rotate(-180deg)}._J8jxu{margin:0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._J8jxu::-webkit-scrollbar,._J8jxu::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._J8jxu::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._J8jxu::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._J8jxu:hover::-webkit-scrollbar,._J8jxu:hover::-webkit-scrollbar-thumb,._J8jxu[focus-within]::-webkit-scrollbar,._J8jxu[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._J8jxu:focus-within::-webkit-scrollbar,._J8jxu:focus-within::-webkit-scrollbar-thumb,._J8jxu:hover::-webkit-scrollbar,._J8jxu:hover::-webkit-scrollbar-thumb{visibility:visible}._o2wJb{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._o2wJb[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._o2wJb._PvrkW{background-color:#efefef}._o2wJb._pSJMA{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._o2wJb._m4jsi{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._o2wJb._m4jsi._PvrkW{background-color:#e4effa}._o2wJb._2--CH{cursor:default}._o2wJb:active:not(._oVhtl):not(._m4jsi):not([aria-disabled=true]):not(._2--CH){background-color:#e8e9e9}._oVhtl{padding-right:32px}._oVhtl ._inihk{position:absolute;top:8px;right:3px;fill:#515559}._NJB5-{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:-webkit-sticky;position:sticky;top:0;z-index:20;background-color:#fff}._3lOt-{position:absolute;top:13px;left:13px}._xiasZ._xiasZ{padding-left:32px}._gtsE-{margin:2px 12px 2px 0;flex-shrink:0}._gtsE-._A86J1>svg{border-color:#0b6ed0}._drIEa{display:flex;justify-self:center;margin:8px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"numberStepperContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._DGAmj{display:inline-flex;width:127px}._7H3l9{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}._7H3l9:hover:not(._sCJLY){cursor:pointer;background:#f5f5f5}._7H3l9._BAgNG{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._7H3l9._sCJLY{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._7H3l9._sCJLY>svg{opacity:.4}._7H3l9::-webkit-inner-spin-button,._7H3l9::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._7H3l9:focus{z-index:0;border:none;border-radius:4px}._7H3l9:focus:not(._BAgNG){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._7H3l9:focus:not(._sCJLY),._So3Tv{background:#fafafa}._So3Tv{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}._So3Tv:hover:not(._sCJLY){cursor:pointer;background:#f5f5f5}._So3Tv:active:not(._sCJLY){background:#e5e5e5}._So3Tv._sCJLY{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._So3Tv._sCJLY>svg{opacity:.4}._VFkeR{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}._VFkeR:hover:not(._sCJLY){cursor:pointer;background:#f5f5f5}._VFkeR:active:not(._sCJLY){background:#e5e5e5}._VFkeR._sCJLY{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._VFkeR._sCJLY>svg{opacity:.4}";
|
|
4
|
+
var styles = {"numberStepperContainer":"_DGAmj","numberStepperInput":"_7H3l9","disabled":"_sCJLY","invalid":"_BAgNG","decrementBtn":"_So3Tv","incrementBtn":"_VFkeR"};
|
|
5
|
+
var stylesheet="._DGAmj{display:inline-flex;width:127px}._7H3l9{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}._7H3l9:hover:not(._sCJLY){cursor:pointer;background:#f5f5f5}._7H3l9._BAgNG{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._7H3l9._sCJLY{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._7H3l9._sCJLY>svg{opacity:.4}._7H3l9::-webkit-inner-spin-button,._7H3l9::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._7H3l9:focus{z-index:0;border:none;border-radius:4px}._7H3l9:focus:not(._BAgNG){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._7H3l9:focus:not(._sCJLY),._So3Tv{background:#fafafa}._So3Tv{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}._So3Tv:hover:not(._sCJLY){cursor:pointer;background:#f5f5f5}._So3Tv:active:not(._sCJLY){background:#e5e5e5}._So3Tv._sCJLY{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._So3Tv._sCJLY>svg{opacity:.4}._VFkeR{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}._VFkeR:hover:not(._sCJLY){cursor:pointer;background:#f5f5f5}._VFkeR:active:not(._sCJLY){background:#e5e5e5}._VFkeR._sCJLY{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._VFkeR._sCJLY>svg{opacity:.4}";
|
|
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 = {"pageContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._KObxD{height:100vh;width:100vw;display:grid;grid-template-rows:auto 1fr;grid-template-columns:auto auto 1fr;grid-template-areas:\"pageHeader pageHeader pageHeader\" \"sidebarNav configPane mainContent\"}._fPiBG{grid-area:pageHeader}._LZqy8{grid-area:mainContent;height:100%;overflow:auto}";
|
|
4
|
+
var styles = {"pageContainer":"_KObxD","pageHeader":"_fPiBG","mainContent":"_LZqy8"};
|
|
5
|
+
var stylesheet="._KObxD{height:100vh;width:100vw;display:grid;grid-template-rows:auto 1fr;grid-template-columns:auto auto 1fr;grid-template-areas:\"pageHeader pageHeader pageHeader\" \"sidebarNav configPane mainContent\"}._fPiBG{grid-area:pageHeader}._LZqy8{grid-area:mainContent;height:100%;overflow:auto}";
|
|
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 = {"pagination":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._TWqLy{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._UeeT7{margin-right:8px}._CrERD{margin-left:8px}._8fWY7{margin:-10px -15px}._6g3y5{width:100%;text-align:center}";
|
|
4
|
+
var styles = {"pagination":"_TWqLy","previousButton":"_UeeT7","nextButton":"_CrERD","btnIcon":"_8fWY7","input":"_6g3y5"};
|
|
5
|
+
var stylesheet="._TWqLy{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._UeeT7{margin-right:8px}._CrERD{margin-left:8px}._8fWY7{margin:-10px -15px}._6g3y5{width:100%;text-align:center}";
|
|
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 = {"popover":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._z8lnV{position:absolute;z-index:1000;background-color:#fff;border-radius:4px;display:inline-block;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);border:1px solid #898989}._z8lnV:focus{outline:none}._ZRSZ8,._ZRSZ8>div{position:absolute;width:8px;height:8px;background:inherit}._ZRSZ8{visibility:hidden;z-index:1000}._ZRSZ8>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._ZRSZ8{bottom:-4px}[data-popper-placement^=top]>._ZRSZ8>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._ZRSZ8{left:-5px}[data-popper-placement^=right]>._ZRSZ8>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._ZRSZ8{top:-5px}[data-popper-placement^=bottom]>._ZRSZ8>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._ZRSZ8{right:-4px}[data-popper-placement^=left]>._ZRSZ8>div{border-bottom-color:transparent;border-left-color:transparent}";
|
|
4
|
+
var styles = {"popover":"_z8lnV","arrow":"_ZRSZ8"};
|
|
5
|
+
var stylesheet="._z8lnV{position:absolute;z-index:1000;background-color:#fff;border-radius:4px;display:inline-block;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);border:1px solid #898989}._z8lnV:focus{outline:none}._ZRSZ8,._ZRSZ8>div{position:absolute;width:8px;height:8px;background:inherit}._ZRSZ8{visibility:hidden;z-index:1000}._ZRSZ8>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._ZRSZ8{bottom:-4px}[data-popper-placement^=top]>._ZRSZ8>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._ZRSZ8{left:-5px}[data-popper-placement^=right]>._ZRSZ8>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._ZRSZ8{top:-5px}[data-popper-placement^=bottom]>._ZRSZ8>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._ZRSZ8{right:-4px}[data-popper-placement^=left]>._ZRSZ8>div{border-bottom-color:transparent;border-left-color:transparent}";
|
|
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 = {"loadingSpinner":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._BcRVo{display:flex;height:32px}";
|
|
4
|
+
var styles = {"loadingSpinner":"_BcRVo"};
|
|
5
|
+
var stylesheet="._BcRVo{display:flex;height:32px}";
|
|
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 = {"radio":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._BwJgs{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._BwJgs,._Xrz8t{cursor:pointer;height:16px;width:16px}._Xrz8t{position:absolute;opacity:0;z-index:10}._Xrz8t:checked~._KfJEt>._Qb--x{fill-opacity:1}._Xrz8t:checked:enabled~._KfJEt{border-color:transparent;background-color:#0b6ed0}._Xrz8t:checked:enabled~._KfJEt>._Qb--x{fill:#fff}._Xrz8t:checked:enabled:hover~._KfJEt{background-color:#085caf}._Xrz8t:not(:checked):enabled:hover~._KfJEt{border-color:#0b6ed0}._Xrz8t:disabled{cursor:not-allowed}._Xrz8t:disabled~._KfJEt{opacity:.4}._Xrz8t:checked~._KfJEt:after{content:\"\"}._hjmIL{color:#32363a;display:flex;align-items:center;cursor:pointer}._OxnKN{cursor:auto;color:hsla(0,0%,53.7%,.4)}._nuNtz{margin-right:12px;flex-shrink:0}._KfJEt{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0;border-radius:50%;background-color:transparent!important;border-color:#898989!important}._Qb--x{fill:#0b6ed0;fill-opacity:0}._KfJEt:after{position:absolute;z-index:0;background-color:#0b6ed0;border-radius:50%;height:10px;width:10px;top:2px;left:2px}._d-lbk{border:none;padding:0;margin:0}._1sA2b{padding:0;margin:0 0 14px;color:#01213f}._Xrz8t.focus-visible~._KfJEt,._Xrz8t:focus-visible~._KfJEt{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"radio":"_BwJgs","input":"_Xrz8t","check":"_KfJEt","checkIcon":"_Qb--x","label":"_hjmIL","labelDisabled":"_OxnKN","wrappedInput":"_nuNtz","radioGroup":"_d-lbk","legend":"_1sA2b"};
|
|
5
|
+
var stylesheet="._BwJgs{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._BwJgs,._Xrz8t{cursor:pointer;height:16px;width:16px}._Xrz8t{position:absolute;opacity:0;z-index:10}._Xrz8t:checked~._KfJEt>._Qb--x{fill-opacity:1}._Xrz8t:checked:enabled~._KfJEt{border-color:transparent;background-color:#0b6ed0}._Xrz8t:checked:enabled~._KfJEt>._Qb--x{fill:#fff}._Xrz8t:checked:enabled:hover~._KfJEt{background-color:#085caf}._Xrz8t:not(:checked):enabled:hover~._KfJEt{border-color:#0b6ed0}._Xrz8t:disabled{cursor:not-allowed}._Xrz8t:disabled~._KfJEt{opacity:.4}._Xrz8t:checked~._KfJEt:after{content:\"\"}._hjmIL{color:#32363a;display:flex;align-items:center;cursor:pointer}._OxnKN{cursor:auto;color:hsla(0,0%,53.7%,.4)}._nuNtz{margin-right:12px;flex-shrink:0}._KfJEt{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0;border-radius:50%;background-color:transparent!important;border-color:#898989!important}._Qb--x{fill:#0b6ed0;fill-opacity:0}._KfJEt:after{position:absolute;z-index:0;background-color:#0b6ed0;border-radius:50%;height:10px;width:10px;top:2px;left:2px}._d-lbk{border:none;padding:0;margin:0}._1sA2b{padding:0;margin:0 0 14px;color:#01213f}._Xrz8t.focus-visible~._KfJEt,._Xrz8t:focus-visible~._KfJEt{border-color:#0b6ed0;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 = {"searchInput":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._eTCoc{display:inline-block;position:relative}._XJGOB._XJGOB{padding-left:36px;padding-right:36px;width:100%}._XJGOB._XJGOB:disabled+._LiWsR{fill-opacity:.6}._LiWsR{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._LiWsR._F-ySo{z-index:20}._7kQk0{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._7kQk0:hover{cursor:pointer}._7kQk0:hover>._YOFHD{fill:#32363a}._7kQk0:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._YOFHD{fill:#515559}";
|
|
4
|
+
var styles = {"searchInput":"_eTCoc","searchInputInput":"_XJGOB","searchInputSearchIcon":"_LiWsR","usedWithinInputGroup":"_F-ySo","searchInputClearButton":"_7kQk0","searchInputClearButtonIcon":"_YOFHD"};
|
|
5
|
+
var stylesheet="._eTCoc{display:inline-block;position:relative}._XJGOB._XJGOB{padding-left:36px;padding-right:36px;width:100%}._XJGOB._XJGOB:disabled+._LiWsR{fill-opacity:.6}._LiWsR{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._LiWsR._F-ySo{z-index:20}._7kQk0{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._7kQk0:hover{cursor:pointer}._7kQk0:hover>._YOFHD{fill:#32363a}._7kQk0:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._YOFHD{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 };
|