@carbon/ibm-products 2.43.2-canary.2 → 2.43.2-canary.22
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +35 -3
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +35 -3
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +35 -3
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +23 -21
- package/es/components/ConditionBuilder/ConditionBuilder.js +67 -20
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +15 -0
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +129 -0
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +6 -4
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +5 -1
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +16 -4
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -11
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +36 -32
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +0 -1
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +7 -2
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +6 -1
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +18 -10
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +39 -36
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +12 -10
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +24 -16
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +19 -4
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +13 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +109 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.d.ts → ItemOptionForValueField.d.ts} +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.js → ItemOptionForValueField.js} +58 -33
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +4 -6
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +14 -5
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +1 -2
- package/es/components/ConditionBuilder/utils/util.d.ts +1 -0
- package/es/components/ConditionBuilder/utils/util.js +16 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +29 -16
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +9 -1
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +18 -2
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +8 -0
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +17 -6
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +4 -1
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.d.ts +3 -1
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +15 -3
- package/es/components/DataSpreadsheet/types/index.d.ts +1 -1
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +34 -2
- package/es/components/Datagrid/Datagrid/Datagrid.js +2 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +6 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +3 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +6 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +21 -16
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +21 -3
- package/es/components/Datagrid/types/index.d.ts +18 -4
- package/es/components/Datagrid/useActionsColumn.d.ts +8 -1
- package/es/components/Datagrid/useActionsColumn.js +7 -6
- package/es/components/Datagrid/useColumnRightAlign.d.ts +8 -1
- package/es/components/Datagrid/useColumnRightAlign.js +4 -3
- package/es/components/Datagrid/useInlineEdit.d.ts +8 -1
- package/es/components/Datagrid/useInlineEdit.js +13 -3
- package/es/components/Datagrid/useNestedRows.js +27 -9
- package/es/components/Decorator/Decorator.js +2 -1
- package/es/components/DecoratorBase/DecoratorBase.js +3 -5
- package/es/components/DecoratorDualButton/DecoratorDualButton.js +2 -1
- package/es/components/DecoratorLink/DecoratorLink.js +2 -1
- package/es/components/DecoratorSingleButton/DecoratorSingleButton.js +2 -1
- package/es/components/Tearsheet/Tearsheet.d.ts +8 -1
- package/es/components/Tearsheet/Tearsheet.js +9 -1
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +11 -0
- package/es/components/Tearsheet/TearsheetNarrow.js +12 -0
- package/es/components/Tearsheet/TearsheetShell.d.ts +10 -0
- package/es/components/Tearsheet/TearsheetShell.js +17 -3
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +23 -21
- package/lib/components/ConditionBuilder/ConditionBuilder.js +67 -20
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +15 -0
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +137 -0
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +6 -3
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +5 -1
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +16 -4
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -11
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +36 -32
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +0 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +7 -2
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +6 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +18 -10
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +39 -36
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +12 -10
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +23 -15
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +20 -5
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +13 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +117 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.d.ts → ItemOptionForValueField.d.ts} +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.js → ItemOptionForValueField.js} +56 -31
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +4 -6
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +14 -4
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +1 -2
- package/lib/components/ConditionBuilder/utils/util.d.ts +1 -0
- package/lib/components/ConditionBuilder/utils/util.js +17 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +29 -16
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +9 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +18 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +8 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +17 -6
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +4 -1
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.d.ts +3 -1
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +15 -3
- package/lib/components/DataSpreadsheet/types/index.d.ts +1 -1
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +34 -2
- package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +6 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +3 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +6 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +21 -16
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +21 -3
- package/lib/components/Datagrid/types/index.d.ts +18 -4
- package/lib/components/Datagrid/useActionsColumn.d.ts +8 -1
- package/lib/components/Datagrid/useActionsColumn.js +7 -6
- package/lib/components/Datagrid/useColumnRightAlign.d.ts +8 -1
- package/lib/components/Datagrid/useColumnRightAlign.js +4 -3
- package/lib/components/Datagrid/useInlineEdit.d.ts +8 -1
- package/lib/components/Datagrid/useInlineEdit.js +13 -3
- package/lib/components/Datagrid/useNestedRows.js +27 -9
- package/lib/components/Decorator/Decorator.js +2 -1
- package/lib/components/DecoratorBase/DecoratorBase.js +3 -5
- package/lib/components/DecoratorDualButton/DecoratorDualButton.js +2 -1
- package/lib/components/DecoratorLink/DecoratorLink.js +2 -1
- package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +2 -1
- package/lib/components/Tearsheet/Tearsheet.d.ts +8 -1
- package/lib/components/Tearsheet/Tearsheet.js +9 -1
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +11 -0
- package/lib/components/Tearsheet/TearsheetNarrow.js +12 -0
- package/lib/components/Tearsheet/TearsheetShell.d.ts +10 -0
- package/lib/components/Tearsheet/TearsheetShell.js +16 -2
- package/package.json +3 -3
- package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +9 -1
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +26 -1
- package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +1 -0
- package/scss/components/StatusIcon/_status-icon.scss +4 -4
- package/scss/components/StringFormatter/_string-formatter.scss +2 -2
- package/scss/components/UserProfileImage/_user-profile-image.scss +6 -2
- package/telemetry.yml +1 -0
- package/es/components/ConditionBuilder/utils/checkForHoldingKey.d.ts +0 -1
- package/es/components/ConditionBuilder/utils/checkForHoldingKey.js +0 -16
- package/lib/components/ConditionBuilder/utils/checkForHoldingKey.d.ts +0 -1
- package/lib/components/ConditionBuilder/utils/checkForHoldingKey.js +0 -20
@@ -1,38 +1,41 @@
|
|
1
1
|
export namespace translationsObject {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
2
|
+
namespace en {
|
3
|
+
let _if: string;
|
4
|
+
export { _if as if };
|
5
|
+
export let excl_if: string;
|
6
|
+
export let and: string;
|
7
|
+
export let or: string;
|
8
|
+
export let is: string;
|
9
|
+
export let greater: string;
|
10
|
+
export let greater_equal: string;
|
11
|
+
export let lower: string;
|
12
|
+
export let lower_equal: string;
|
13
|
+
export let starts_with: string;
|
14
|
+
export let ends_with: string;
|
15
|
+
export let contains: string;
|
16
|
+
export let one_of: string;
|
17
|
+
export let before: string;
|
18
|
+
export let after: string;
|
19
|
+
export let between: string;
|
20
|
+
export let add_condition: string;
|
21
|
+
export let add_condition_group: string;
|
22
|
+
export let add_subgroup: string;
|
23
|
+
export let condition: string;
|
24
|
+
export let property: string;
|
25
|
+
export let operator: string;
|
26
|
+
export let value: string;
|
27
|
+
export let connector: string;
|
28
|
+
export let condition_row: string;
|
29
|
+
export let remove_condition: string;
|
30
|
+
export let add_condition_row: string;
|
31
|
+
export let start: string;
|
32
|
+
export let end: string;
|
33
|
+
export let clear_search: string;
|
34
|
+
export let actions: string;
|
35
|
+
export let then: string;
|
36
|
+
export let remove_action: string;
|
37
|
+
export let add_action: string;
|
38
|
+
export let invalid_text: string;
|
39
|
+
export let text_invalid_number: string;
|
40
|
+
}
|
38
41
|
}
|
@@ -12,24 +12,24 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
12
12
|
var translationsObject = {
|
13
13
|
en: {
|
14
14
|
if: 'if',
|
15
|
-
|
15
|
+
excl_if: 'excl.if',
|
16
16
|
and: 'and',
|
17
17
|
or: 'or',
|
18
18
|
is: 'is',
|
19
19
|
greater: 'is greater than',
|
20
|
-
|
20
|
+
greater_equal: 'is greater than or equal to',
|
21
21
|
lower: 'is lower than',
|
22
|
-
|
23
|
-
|
24
|
-
|
22
|
+
lower_equal: 'is lower than or equal to',
|
23
|
+
starts_with: 'starts with',
|
24
|
+
ends_with: 'ends with',
|
25
25
|
contains: 'contains',
|
26
|
-
|
26
|
+
one_of: 'is one of',
|
27
27
|
before: 'is before',
|
28
28
|
after: 'is after',
|
29
29
|
between: 'is between',
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
add_condition: 'Add condition',
|
31
|
+
add_condition_group: 'Add condition group',
|
32
|
+
add_subgroup: 'Add subgroup',
|
33
33
|
condition: 'Condition',
|
34
34
|
property: 'Property',
|
35
35
|
operator: 'Operator',
|
@@ -44,7 +44,9 @@ var translationsObject = {
|
|
44
44
|
actions: 'Actions',
|
45
45
|
then: 'then',
|
46
46
|
remove_action: 'Remove Action',
|
47
|
-
add_action: 'Add action'
|
47
|
+
add_action: 'Add action',
|
48
|
+
invalid_text: 'Incomplete',
|
49
|
+
text_invalid_number: 'Invalid number, must be 0 or greater'
|
48
50
|
}
|
49
51
|
};
|
50
52
|
|
@@ -17,7 +17,7 @@ export namespace ConditionBuilderItem {
|
|
17
17
|
let className: PropTypes.Requireable<string>;
|
18
18
|
let condition: PropTypes.Requireable<object>;
|
19
19
|
let config: PropTypes.Requireable<object>;
|
20
|
-
let label: PropTypes.Requireable<NonNullable<string |
|
20
|
+
let label: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
|
21
21
|
let popOverClassName: PropTypes.Requireable<string>;
|
22
22
|
let renderIcon: PropTypes.Requireable<object>;
|
23
23
|
let showToolTip: PropTypes.Requireable<boolean>;
|
@@ -35,19 +35,26 @@ var ConditionBuilderItem = function ConditionBuilderItem(_ref) {
|
|
35
35
|
config = _ref.config,
|
36
36
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
37
37
|
var contentRef = React.useRef(null);
|
38
|
-
var _useState = React.useState(
|
38
|
+
var _useState = React.useState(false),
|
39
39
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
40
|
-
|
41
|
-
|
42
|
-
var
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
40
|
+
open = _useState2[0],
|
41
|
+
setOpen = _useState2[1];
|
42
|
+
var getPropertyDetails = function getPropertyDetails() {
|
43
|
+
if (label === 'INVALID') {
|
44
|
+
return {
|
45
|
+
propertyLabel: DataConfigs.translateWithId('invalid_text'),
|
46
|
+
isInvalid: true
|
47
|
+
};
|
48
|
+
}
|
47
49
|
var propertyId = rest['data-name'] == 'valueField' && type ? DataConfigs.valueRenderers[type](label, config) : label;
|
48
|
-
|
49
|
-
|
50
|
-
|
50
|
+
return {
|
51
|
+
isInvalid: false,
|
52
|
+
propertyLabel: DataConfigs.translateWithId(propertyId)
|
53
|
+
};
|
54
|
+
};
|
55
|
+
var _getPropertyDetails = getPropertyDetails(),
|
56
|
+
propertyLabel = _getPropertyDetails.propertyLabel,
|
57
|
+
isInvalid = _getPropertyDetails.isInvalid;
|
51
58
|
React.useEffect(function () {
|
52
59
|
/**
|
53
60
|
* rest['data-name'] holds the current field name
|
@@ -59,7 +66,7 @@ var ConditionBuilderItem = function ConditionBuilderItem(_ref) {
|
|
59
66
|
if (condition.popoverToOpen && currentField !== condition.popoverToOpen) {
|
60
67
|
// close the previous popover
|
61
68
|
setOpen(false);
|
62
|
-
} else if (currentField == 'valueField' && type == 'option' && condition.operator !== '
|
69
|
+
} else if (currentField == 'valueField' && type == 'option' && condition.operator !== 'one_of') {
|
63
70
|
//close the current popover if the field is valueField and is a single select dropdown. For all other inputs ,popover need to be open on value changes.
|
64
71
|
setOpen(false);
|
65
72
|
}
|
@@ -92,7 +99,7 @@ var ConditionBuilderItem = function ConditionBuilderItem(_ref) {
|
|
92
99
|
setOpen(false);
|
93
100
|
}
|
94
101
|
}, /*#__PURE__*/React__default["default"].createElement(ConditionBuilderButton.ConditionBuilderButton, _rollupPluginBabelHelpers["extends"]({
|
95
|
-
label: propertyLabel !== null && propertyLabel !== void 0 ? propertyLabel : DataConfigs.translateWithId('
|
102
|
+
label: propertyLabel !== null && propertyLabel !== void 0 ? propertyLabel : DataConfigs.translateWithId('add_condition'),
|
96
103
|
hideLabel: !label ? true : false,
|
97
104
|
onClick: function onClick() {
|
98
105
|
children ? setOpen(!open) : null;
|
@@ -101,7 +108,8 @@ var ConditionBuilderItem = function ConditionBuilderItem(_ref) {
|
|
101
108
|
"aria-haspopup": true,
|
102
109
|
"aria-expanded": open,
|
103
110
|
renderIcon: renderIcon ? renderIcon : label == undefined ? icons.Add : null,
|
104
|
-
showToolTip: showToolTip
|
111
|
+
showToolTip: showToolTip,
|
112
|
+
isInvalid: isInvalid
|
105
113
|
}, rest)), /*#__PURE__*/React__default["default"].createElement(react.PopoverContent, {
|
106
114
|
className: "".concat(DataConfigs.blockClass, "__item__content"),
|
107
115
|
role: "dialog",
|
@@ -133,7 +141,7 @@ ConditionBuilderItem.propTypes = {
|
|
133
141
|
/**
|
134
142
|
* text to be displayed in the field
|
135
143
|
*/
|
136
|
-
label: index["default"].oneOfType([index["default"].string, index["default"].array]),
|
144
|
+
label: index["default"].oneOfType([index["default"].string, index["default"].array, index["default"].object]),
|
137
145
|
/**
|
138
146
|
* class name for popover
|
139
147
|
*/
|
@@ -11,14 +11,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
12
12
|
var React = require('react');
|
13
13
|
var react = require('@carbon/react');
|
14
|
-
var settings = require('../../../../settings.js');
|
15
14
|
var index = require('../../../../node_modules/prop-types/index.js');
|
15
|
+
var DataConfigs = require('../../ConditionBuilderContext/DataConfigs.js');
|
16
16
|
|
17
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
18
18
|
|
19
19
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
20
20
|
|
21
|
-
var blockClass = "".concat(settings.pkg.prefix, "--condition-builder");
|
22
21
|
var ConditionBuilderItemNumber = function ConditionBuilderItemNumber(_ref) {
|
23
22
|
var _conditionState$prope;
|
24
23
|
var conditionState = _ref.conditionState,
|
@@ -26,18 +25,34 @@ var ConditionBuilderItemNumber = function ConditionBuilderItemNumber(_ref) {
|
|
26
25
|
onChange = _ref.onChange;
|
27
26
|
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
28
27
|
var value = _ref2.value;
|
29
|
-
|
28
|
+
if (checkIfValid(value)) {
|
29
|
+
var _config$unit;
|
30
|
+
onChange("".concat(value, " ").concat((_config$unit = config.unit) !== null && _config$unit !== void 0 ? _config$unit : ''));
|
31
|
+
} else {
|
32
|
+
onChange('INVALID');
|
33
|
+
}
|
34
|
+
};
|
35
|
+
var checkIfValid = function checkIfValid(value) {
|
36
|
+
if (value > config.max || value < config.min) {
|
37
|
+
return false;
|
38
|
+
}
|
39
|
+
return true;
|
40
|
+
};
|
41
|
+
var getDefaultValue = function getDefaultValue() {
|
42
|
+
var _conditionState$value;
|
43
|
+
return (_conditionState$value = conditionState.value) === null || _conditionState$value === void 0 || (_conditionState$value = _conditionState$value.split(' ')) === null || _conditionState$value === void 0 ? void 0 : _conditionState$value[0];
|
30
44
|
};
|
31
45
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
32
|
-
className: "".concat(blockClass, "__item-number")
|
46
|
+
className: "".concat(DataConfigs.blockClass, "__item-number")
|
33
47
|
}, /*#__PURE__*/React__default["default"].createElement(react.NumberInput, {
|
34
48
|
label: conditionState.property,
|
35
49
|
hideLabel: true,
|
50
|
+
defaultValue: getDefaultValue(),
|
36
51
|
id: (_conditionState$prope = conditionState.property) === null || _conditionState$prope === void 0 ? void 0 : _conditionState$prope.replace(/\s/g, ''),
|
37
|
-
value: conditionState.value ? conditionState.value.split(' ')[0] : conditionState.value,
|
38
52
|
min: config.min,
|
39
53
|
max: config.max,
|
40
54
|
step: config.step,
|
55
|
+
invalidText: DataConfigs.translateWithId('text_invalid_number'),
|
41
56
|
allowEmpty: true,
|
42
57
|
onChange: onChangeHandler
|
43
58
|
}));
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export function ItemOption({ conditionState, config, onChange }: {
|
2
|
+
conditionState?: {} | undefined;
|
3
|
+
config?: {} | undefined;
|
4
|
+
onChange: any;
|
5
|
+
}): import("react/jsx-runtime").JSX.Element | undefined;
|
6
|
+
export namespace ItemOption {
|
7
|
+
namespace propTypes {
|
8
|
+
let conditionState: PropTypes.Requireable<object>;
|
9
|
+
let config: PropTypes.Requireable<object>;
|
10
|
+
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,117 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
'use strict';
|
9
|
+
|
10
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
11
|
+
|
12
|
+
var _rollupPluginBabelHelpers = require('../../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
|
+
var React = require('react');
|
14
|
+
var react = require('@carbon/react');
|
15
|
+
var icons = require('@carbon/react/icons');
|
16
|
+
var index = require('../../../../node_modules/prop-types/index.js');
|
17
|
+
var ConditionBuilderProvider = require('../../ConditionBuilderContext/ConditionBuilderProvider.js');
|
18
|
+
var DataConfigs = require('../../ConditionBuilderContext/DataConfigs.js');
|
19
|
+
|
20
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
21
|
+
|
22
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
23
|
+
|
24
|
+
var ItemOption = function ItemOption(_ref) {
|
25
|
+
var _ref$conditionState = _ref.conditionState,
|
26
|
+
conditionState = _ref$conditionState === void 0 ? {} : _ref$conditionState,
|
27
|
+
_ref$config = _ref.config,
|
28
|
+
config = _ref$config === void 0 ? {} : _ref$config,
|
29
|
+
onChange = _ref.onChange;
|
30
|
+
var _useContext = React.useContext(ConditionBuilderProvider.ConditionBuilderContext),
|
31
|
+
popOverSearchThreshold = _useContext.popOverSearchThreshold;
|
32
|
+
var contentRef = React.useRef();
|
33
|
+
var allOptions = config.options;
|
34
|
+
var _useState = React.useState(''),
|
35
|
+
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
36
|
+
searchValue = _useState2[0],
|
37
|
+
setSearchValue = _useState2[1];
|
38
|
+
var selection = conditionState.value;
|
39
|
+
var filteredItems = allOptions === null || allOptions === void 0 ? void 0 : allOptions.filter(function (opt) {
|
40
|
+
return opt.label.toLowerCase().includes(searchValue.toLowerCase());
|
41
|
+
});
|
42
|
+
React.useEffect(function () {
|
43
|
+
//this will focus the first input field in the popover
|
44
|
+
|
45
|
+
if (contentRef.current) {
|
46
|
+
var firstFocusableElement = contentRef.current.querySelector('input, button,li');
|
47
|
+
if (firstFocusableElement) {
|
48
|
+
firstFocusableElement.focus();
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}, [allOptions]);
|
52
|
+
var onClickHandler = function onClickHandler(evt, option) {
|
53
|
+
onChange(option.id, evt);
|
54
|
+
};
|
55
|
+
var onSearchChangeHandler = function onSearchChangeHandler(evt) {
|
56
|
+
var value = evt.target.value;
|
57
|
+
setSearchValue(value);
|
58
|
+
};
|
59
|
+
var getAriaLabel = function getAriaLabel() {
|
60
|
+
return conditionState.label ? conditionState.label : conditionState.property ? conditionState.property : DataConfigs.translateWithId('property');
|
61
|
+
};
|
62
|
+
if (!allOptions) {
|
63
|
+
return;
|
64
|
+
}
|
65
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
66
|
+
className: "".concat(DataConfigs.blockClass, "__item-option"),
|
67
|
+
ref: contentRef
|
68
|
+
}, allOptions.length > popOverSearchThreshold && /*#__PURE__*/React__default["default"].createElement("div", {
|
69
|
+
className: "".concat(DataConfigs.blockClass, "__item-option__search")
|
70
|
+
}, /*#__PURE__*/React__default["default"].createElement(react.Search, {
|
71
|
+
size: "sm",
|
72
|
+
labelText: DataConfigs.translateWithId('clear_search'),
|
73
|
+
closeButtonLabelText: DataConfigs.translateWithId('clear_search'),
|
74
|
+
onChange: onSearchChangeHandler
|
75
|
+
})), /*#__PURE__*/React__default["default"].createElement("ul", {
|
76
|
+
"aria-label": getAriaLabel(),
|
77
|
+
role: "listbox"
|
78
|
+
}, filteredItems === null || filteredItems === void 0 ? void 0 : filteredItems.map(function (option) {
|
79
|
+
var isSelected = selection === option.id;
|
80
|
+
var Icon = option.icon;
|
81
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
82
|
+
tabIndex: 0,
|
83
|
+
key: option.id,
|
84
|
+
role: "option",
|
85
|
+
"aria-selected": isSelected,
|
86
|
+
className: "".concat(DataConfigs.blockClass, "__item-option__option"),
|
87
|
+
onKeyUp: function onKeyUp() {
|
88
|
+
return false;
|
89
|
+
},
|
90
|
+
onClick: function onClick(evt) {
|
91
|
+
return onClickHandler(evt, option);
|
92
|
+
}
|
93
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
94
|
+
className: "".concat(DataConfigs.blockClass, "__item-option__option-content")
|
95
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
96
|
+
className: "".concat(DataConfigs.blockClass, "__item-option__option-label")
|
97
|
+
}, Icon && /*#__PURE__*/React__default["default"].createElement(Icon, null), option.label), isSelected && /*#__PURE__*/React__default["default"].createElement(icons.Checkmark, {
|
98
|
+
className: "".concat(DataConfigs.blockClass, "__checkmark")
|
99
|
+
})));
|
100
|
+
})));
|
101
|
+
};
|
102
|
+
ItemOption.propTypes = {
|
103
|
+
/**
|
104
|
+
* current condition object
|
105
|
+
*/
|
106
|
+
conditionState: index["default"].object,
|
107
|
+
/**
|
108
|
+
* current config object that this property is part of
|
109
|
+
*/
|
110
|
+
config: index["default"].object,
|
111
|
+
/**
|
112
|
+
* callback to update state oin date change
|
113
|
+
*/
|
114
|
+
onChange: index["default"].func
|
115
|
+
};
|
116
|
+
|
117
|
+
exports.ItemOption = ItemOption;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
export function
|
1
|
+
export function ItemOptionForValueField({ conditionState, config, onChange, }: {
|
2
2
|
conditionState?: {} | undefined;
|
3
3
|
config?: {} | undefined;
|
4
4
|
onChange: any;
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
6
|
-
export namespace
|
6
|
+
export namespace ItemOptionForValueField {
|
7
7
|
namespace propTypes {
|
8
8
|
let conditionState: PropTypes.Requireable<object>;
|
9
9
|
let config: PropTypes.Requireable<object>;
|
@@ -21,28 +21,51 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
21
21
|
|
22
22
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
23
23
|
|
24
|
-
var _CheckboxCheckedFille, _Checkbox
|
25
|
-
var
|
24
|
+
var _SelectSkeleton, _CheckboxCheckedFille, _Checkbox;
|
25
|
+
var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
26
26
|
var _ref$conditionState = _ref.conditionState,
|
27
27
|
conditionState = _ref$conditionState === void 0 ? {} : _ref$conditionState,
|
28
28
|
_ref$config = _ref.config,
|
29
29
|
config = _ref$config === void 0 ? {} : _ref$config,
|
30
30
|
onChange = _ref.onChange;
|
31
|
-
var multiSelectable = conditionState.operator === '
|
31
|
+
var multiSelectable = conditionState.operator === 'one_of';
|
32
32
|
var _useContext = React.useContext(ConditionBuilderProvider.ConditionBuilderContext),
|
33
33
|
popOverSearchThreshold = _useContext.popOverSearchThreshold,
|
34
|
-
getOptions = _useContext.getOptions
|
34
|
+
getOptions = _useContext.getOptions,
|
35
|
+
rootState = _useContext.rootState;
|
36
|
+
var contentRef = React.useRef();
|
35
37
|
var _useState = React.useState(config.options),
|
36
38
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
37
39
|
allOptions = _useState2[0],
|
38
40
|
setAllOptions = _useState2[1];
|
39
|
-
var _useState3 = React.useState(
|
41
|
+
var _useState3 = React.useState(''),
|
40
42
|
_useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
|
41
|
-
|
42
|
-
|
43
|
+
searchValue = _useState4[0],
|
44
|
+
setSearchValue = _useState4[1];
|
45
|
+
var filteredItems = allOptions === null || allOptions === void 0 ? void 0 : allOptions.filter(function (opt) {
|
46
|
+
return opt.label.toLowerCase().includes(searchValue.toLowerCase());
|
47
|
+
});
|
43
48
|
var selection = Array.isArray(conditionState.value) ? conditionState.value : conditionState.value !== undefined ? [conditionState.value] : [];
|
44
|
-
var contentRef = React.useRef();
|
45
49
|
React.useEffect(function () {
|
50
|
+
// if(rest['data-name'] == 'valueField'){
|
51
|
+
// const fetchData = async () => {
|
52
|
+
// const response = await config.options(conditionState);
|
53
|
+
// if (
|
54
|
+
// response?.length > 0 &&
|
55
|
+
// Object.keys(response[0]).includes('label') &&
|
56
|
+
// Object.keys(response[0]).includes('id')
|
57
|
+
// ) {
|
58
|
+
// setAllOptions(response);
|
59
|
+
// setFilteredItems(response);
|
60
|
+
// }
|
61
|
+
// };
|
62
|
+
|
63
|
+
// fetchData(); // Call the async method
|
64
|
+
// }else{
|
65
|
+
// setAllOptions(config.options);
|
66
|
+
// setFilteredItems(config.options);
|
67
|
+
// }
|
68
|
+
|
46
69
|
if (!allOptions && getOptions) {
|
47
70
|
var fetchData = /*#__PURE__*/function () {
|
48
71
|
var _ref2 = _rollupPluginBabelHelpers.asyncToGenerator( /*#__PURE__*/_rollupPluginBabelHelpers.regeneratorRuntime().mark(function _callee() {
|
@@ -51,12 +74,11 @@ var ConditionBuilderItemOption = function ConditionBuilderItemOption(_ref) {
|
|
51
74
|
while (1) switch (_context.prev = _context.next) {
|
52
75
|
case 0:
|
53
76
|
_context.next = 2;
|
54
|
-
return getOptions(conditionState);
|
77
|
+
return getOptions(rootState, conditionState);
|
55
78
|
case 2:
|
56
79
|
response = _context.sent;
|
57
80
|
if ((response === null || response === void 0 ? void 0 : response.length) > 0 && Object.keys(response[0]).includes('label') && Object.keys(response[0]).includes('id')) {
|
58
81
|
setAllOptions(response);
|
59
|
-
setFilteredItems(response);
|
60
82
|
}
|
61
83
|
case 4:
|
62
84
|
case "end":
|
@@ -76,46 +98,47 @@ var ConditionBuilderItemOption = function ConditionBuilderItemOption(_ref) {
|
|
76
98
|
//this will focus the first input field in the popover
|
77
99
|
|
78
100
|
if (contentRef.current) {
|
79
|
-
var
|
80
|
-
|
81
|
-
|
101
|
+
var firstFocusableElement = contentRef.current.querySelector('input, button,li');
|
102
|
+
if (firstFocusableElement) {
|
103
|
+
firstFocusableElement.focus();
|
104
|
+
}
|
82
105
|
}
|
83
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
84
106
|
}, [allOptions]);
|
85
107
|
var handleSelectAll = function handleSelectAll(evt) {
|
86
108
|
if (evt.currentTarget.dataset.selectedAll == 'false') {
|
87
109
|
onChange(undefined);
|
88
110
|
} else {
|
89
|
-
onChange(allOptions
|
90
|
-
return op.id;
|
91
|
-
}));
|
111
|
+
onChange(allOptions);
|
92
112
|
}
|
93
113
|
};
|
94
114
|
var onSearchChangeHandler = function onSearchChangeHandler(evt) {
|
95
115
|
var value = evt.target.value;
|
96
|
-
|
97
|
-
return opt.label.toLowerCase().includes(value.toLowerCase());
|
98
|
-
});
|
99
|
-
setFilteredItems(_filteredItems);
|
116
|
+
setSearchValue(value);
|
100
117
|
};
|
101
118
|
var onClickHandler = function onClickHandler(evt, option, isSelected) {
|
102
119
|
if (multiSelectable) {
|
103
120
|
if (isSelected) {
|
104
121
|
var items = selection.filter(function (v) {
|
105
|
-
return v !== option.id;
|
122
|
+
return v.id !== option.id;
|
106
123
|
});
|
107
124
|
onChange(items.length > 0 ? items : undefined, evt);
|
108
125
|
} else {
|
109
|
-
onChange([].concat(_rollupPluginBabelHelpers.toConsumableArray(selection), [option
|
126
|
+
onChange([].concat(_rollupPluginBabelHelpers.toConsumableArray(selection), [option]), evt);
|
110
127
|
}
|
111
128
|
} else {
|
112
|
-
onChange(option
|
129
|
+
onChange(option, evt);
|
113
130
|
}
|
114
131
|
};
|
115
|
-
|
132
|
+
var getAriaLabel = function getAriaLabel() {
|
133
|
+
return conditionState.label ? conditionState.label : conditionState.property ? conditionState.property : DataConfigs.translateWithId('property');
|
134
|
+
};
|
135
|
+
if (!allOptions) {
|
136
|
+
return _SelectSkeleton || (_SelectSkeleton = /*#__PURE__*/React__default["default"].createElement(react.SelectSkeleton, null));
|
137
|
+
}
|
138
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
116
139
|
className: "".concat(DataConfigs.blockClass, "__item-option"),
|
117
140
|
ref: contentRef
|
118
|
-
},
|
141
|
+
}, allOptions.length > popOverSearchThreshold && /*#__PURE__*/React__default["default"].createElement("div", {
|
119
142
|
className: "".concat(DataConfigs.blockClass, "__item-option__search")
|
120
143
|
}, /*#__PURE__*/React__default["default"].createElement(react.Search, {
|
121
144
|
size: "sm",
|
@@ -131,11 +154,13 @@ var ConditionBuilderItemOption = function ConditionBuilderItemOption(_ref) {
|
|
131
154
|
onClick: handleSelectAll,
|
132
155
|
className: "".concat(DataConfigs.blockClass, "__selectAll-button")
|
133
156
|
}, selection.length == 0 ? 'Select all' : 'Deselect all')), /*#__PURE__*/React__default["default"].createElement("ul", {
|
134
|
-
"aria-label":
|
157
|
+
"aria-label": getAriaLabel(),
|
135
158
|
role: "listbox",
|
136
159
|
"data-multi-select": multiSelectable
|
137
160
|
}, filteredItems === null || filteredItems === void 0 ? void 0 : filteredItems.map(function (option) {
|
138
|
-
var isSelected = selection.
|
161
|
+
var isSelected = selection.map(function (option) {
|
162
|
+
return option.id;
|
163
|
+
}).includes(option.id);
|
139
164
|
var Icon = option.icon;
|
140
165
|
return /*#__PURE__*/React__default["default"].createElement("li", {
|
141
166
|
tabIndex: 0,
|
@@ -162,9 +187,9 @@ var ConditionBuilderItemOption = function ConditionBuilderItemOption(_ref) {
|
|
162
187
|
}, Icon && /*#__PURE__*/React__default["default"].createElement(Icon, null), option.label), isSelected && /*#__PURE__*/React__default["default"].createElement(icons.Checkmark, {
|
163
188
|
className: "".concat(DataConfigs.blockClass, "__checkmark")
|
164
189
|
}))));
|
165
|
-
})))
|
190
|
+
})));
|
166
191
|
};
|
167
|
-
|
192
|
+
ItemOptionForValueField.propTypes = {
|
168
193
|
/**
|
169
194
|
* current condition object
|
170
195
|
*/
|
@@ -179,4 +204,4 @@ ConditionBuilderItemOption.propTypes = {
|
|
179
204
|
onChange: index["default"].func
|
180
205
|
};
|
181
206
|
|
182
|
-
exports.
|
207
|
+
exports.ItemOptionForValueField = ItemOptionForValueField;
|
@@ -16,12 +16,12 @@ var index = require('../../../node_modules/prop-types/index.js');
|
|
16
16
|
var cx = require('classnames');
|
17
17
|
var DataConfigs = require('../ConditionBuilderContext/DataConfigs.js');
|
18
18
|
var ConditionBuilderItem = require('../ConditionBuilderItem/ConditionBuilderItem.js');
|
19
|
-
var ConditionBuilderItemOption = require('../ConditionBuilderItem/ConditionBuilderItemOption/ConditionBuilderItemOption.js');
|
20
19
|
var util = require('../utils/util.js');
|
21
20
|
var ConditionConnector = require('../ConditionBuilderConnector/ConditionConnector.js');
|
22
21
|
var ConditionBuilderProvider = require('../ConditionBuilderContext/ConditionBuilderProvider.js');
|
23
22
|
var uuidv4 = require('../../../global/js/utils/uuidv4.js');
|
24
23
|
var ConditionPreview = require('../ConditionPreview/ConditionPreview.js');
|
24
|
+
var ItemOption = require('../ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js');
|
25
25
|
|
26
26
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
27
27
|
|
@@ -29,7 +29,6 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
29
29
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
30
30
|
|
31
31
|
var _ConditionPreview, _ConditionPreview2;
|
32
|
-
|
33
32
|
/**
|
34
33
|
*
|
35
34
|
* state - this is the current group that is being rendered . This can be a inner group or outer group
|
@@ -94,7 +93,6 @@ var ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
|
|
94
93
|
var addConditionSubGroupHandler = function addConditionSubGroupHandler(conditionIndex) {
|
95
94
|
onChange(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, group), {}, {
|
96
95
|
conditions: [].concat(_rollupPluginBabelHelpers.toConsumableArray(group.conditions.slice(0, conditionIndex + 1)), [{
|
97
|
-
groupSeparateOperator: null,
|
98
96
|
groupOperator: 'and',
|
99
97
|
statement: 'if',
|
100
98
|
conditions: [{
|
@@ -187,7 +185,7 @@ var ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
|
|
187
185
|
"data-name": "connectorField",
|
188
186
|
popOverClassName: "".concat(DataConfigs.blockClass, "__gap"),
|
189
187
|
className: "".concat(DataConfigs.blockClass, "__statement-button")
|
190
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
188
|
+
}, /*#__PURE__*/React__default["default"].createElement(ItemOption.ItemOption, {
|
191
189
|
conditionState: {
|
192
190
|
value: group.statement,
|
193
191
|
label: DataConfigs.translateWithId('condition')
|
@@ -223,7 +221,7 @@ var ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
|
|
223
221
|
onRemoveHandler(eachCondition.id, e);
|
224
222
|
},
|
225
223
|
conditionBuilderRef: conditionBuilderRef
|
226
|
-
})) : /*#__PURE__*/React__default["default"].createElement(ConditionBlock["default"], {
|
224
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(ConditionBlock["default"], {
|
227
225
|
conjunction: conditionIndex > 0 ? group.groupOperator : undefined,
|
228
226
|
aria: {
|
229
227
|
level: aria.level + 1,
|
@@ -253,7 +251,7 @@ var ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
|
|
253
251
|
},
|
254
252
|
hideConditionPreviewHandler: hideConditionPreviewHandler,
|
255
253
|
isLastCondition: isLastCondition
|
256
|
-
}), conditionIndex == showConditionSubGroupPreview && (_ConditionPreview || (_ConditionPreview = /*#__PURE__*/React__default["default"].createElement(ConditionPreview["default"], {
|
254
|
+
})), conditionIndex == showConditionSubGroupPreview && (_ConditionPreview || (_ConditionPreview = /*#__PURE__*/React__default["default"].createElement(ConditionPreview["default"], {
|
257
255
|
previewType: "subGroup"
|
258
256
|
}))), conditionIndex == showConditionPreview && (_ConditionPreview2 || (_ConditionPreview2 = /*#__PURE__*/React__default["default"].createElement(ConditionPreview["default"], {
|
259
257
|
previewType: "condition"
|