@carbon/ibm-products 2.43.2-canary.233 → 2.43.2-canary.235
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +53 -19
- 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.css +31 -18
- 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/ConditionBuilder.js +26 -20
- package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts +6 -2
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +11 -8
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +36 -18
- package/es/node_modules/@carbon/icon-helpers/es/index.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilder.js +26 -20
- package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts +6 -2
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +11 -8
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +35 -17
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +3 -3
- package/package.json +9 -9
@@ -47,7 +47,8 @@ var componentName = 'ConditionBuilder';
|
|
47
47
|
var ConditionBuilder = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
48
48
|
var className = _ref.className,
|
49
49
|
inputConfig = _ref.inputConfig,
|
50
|
-
|
50
|
+
_ref$startConditionLa = _ref.startConditionLabel,
|
51
|
+
startConditionLabel = _ref$startConditionLa === void 0 ? 'Add Condition' : _ref$startConditionLa,
|
51
52
|
popOverSearchThreshold = _ref.popOverSearchThreshold,
|
52
53
|
getOptions = _ref.getOptions,
|
53
54
|
initialState = _ref.initialState,
|
@@ -146,27 +147,32 @@ ConditionBuilder.propTypes = {
|
|
146
147
|
*/
|
147
148
|
getOptions: PropTypes.func,
|
148
149
|
/**
|
149
|
-
* Optional prop if you want to pass a saved condition state.
|
150
|
-
*
|
150
|
+
* Optional prop if you want to pass a saved condition state, pass as "initialState.state".
|
151
|
+
* "initialState.enabledDefault" will populate the builder with the provided initial state before clicking Add Condition button.
|
152
|
+
*
|
153
|
+
* This state should respect the structure of condition state that is available in getConditionState callback
|
151
154
|
*/
|
152
155
|
/**@ts-ignore */
|
153
156
|
initialState: PropTypes.shape({
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
157
|
+
state: PropTypes.shape({
|
158
|
+
groups: PropTypes.arrayOf(PropTypes.shape({
|
159
|
+
groupOperator: PropTypes.string,
|
160
|
+
statement: PropTypes.string,
|
161
|
+
conditions: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
|
162
|
+
property: PropTypes.string,
|
163
|
+
operator: PropTypes.string,
|
164
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.shape({
|
165
|
+
id: PropTypes.string,
|
166
|
+
label: PropTypes.string
|
167
|
+
})), PropTypes.shape({
|
168
|
+
id: PropTypes.string,
|
169
|
+
label: PropTypes.string
|
170
|
+
})])
|
171
|
+
}), PropTypes.object]))
|
172
|
+
})),
|
173
|
+
operator: PropTypes.string
|
174
|
+
}),
|
175
|
+
enabledDefault: PropTypes.bool
|
170
176
|
}),
|
171
177
|
/**
|
172
178
|
* This is a mandatory prop that defines the input to the condition builder.
|
@@ -199,7 +205,7 @@ ConditionBuilder.propTypes = {
|
|
199
205
|
/**
|
200
206
|
* Provide a label to the button that starts condition builder
|
201
207
|
*/
|
202
|
-
startConditionLabel: PropTypes.string
|
208
|
+
startConditionLabel: PropTypes.string,
|
203
209
|
/**
|
204
210
|
* Optional prop, if you need to pass translations to the texts on the component instead of the defined defaults.
|
205
211
|
* This callback function will receive the message id and you need to return the corresponding text for that id.
|
@@ -122,17 +122,21 @@ export type Action = {
|
|
122
122
|
export type variantsType = 'Non-Hierarchical' | 'Hierarchical';
|
123
123
|
export type ConditionBuilderProps = {
|
124
124
|
inputConfig: inputConfig;
|
125
|
-
initialState?:
|
125
|
+
initialState?: InitialState;
|
126
126
|
getActionsState?: (state: Action[] | undefined) => void;
|
127
127
|
getConditionState: (state: ConditionBuilderState | undefined) => void;
|
128
128
|
getOptions?: (state: ConditionBuilderState, condition: Condition) => Promise<Option[]>;
|
129
129
|
actions?: Action[];
|
130
130
|
className?: string;
|
131
131
|
popOverSearchThreshold: number;
|
132
|
-
startConditionLabel
|
132
|
+
startConditionLabel?: string;
|
133
133
|
variant?: 'Non-Hierarchical' | 'Hierarchical';
|
134
134
|
translateWithId: (id: string) => string;
|
135
135
|
};
|
136
|
+
export type InitialState = {
|
137
|
+
state: ConditionBuilderState;
|
138
|
+
enabledDefault?: boolean;
|
139
|
+
};
|
136
140
|
export interface ConditionBuilderContextInputProps extends PropsWithChildren {
|
137
141
|
children?: ReactNode;
|
138
142
|
inputConfig?: inputConfig;
|
@@ -5,12 +5,12 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
import PropTypes from 'prop-types';
|
8
|
-
import { Action, ConditionBuilderState } from '../ConditionBuilder.types';
|
8
|
+
import { Action, ConditionBuilderState, InitialState } from '../ConditionBuilder.types';
|
9
9
|
interface ConditionBuilderContentProps {
|
10
10
|
startConditionLabel: string;
|
11
11
|
getConditionState: (state: ConditionBuilderState) => void;
|
12
12
|
getActionsState?: (state: Action[]) => void;
|
13
|
-
initialState?:
|
13
|
+
initialState?: InitialState;
|
14
14
|
actions?: Action[];
|
15
15
|
}
|
16
16
|
declare const ConditionBuilderContent: {
|
@@ -35,12 +35,15 @@ declare const ConditionBuilderContent: {
|
|
35
35
|
* Optional prop if the condition building need to start from a predefined initial state
|
36
36
|
*/
|
37
37
|
initialState: PropTypes.Requireable<PropTypes.InferProps<{
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
38
|
+
state: PropTypes.Requireable<PropTypes.InferProps<{
|
39
|
+
groups: PropTypes.Requireable<(PropTypes.InferProps<{
|
40
|
+
groupOperator: PropTypes.Requireable<string>;
|
41
|
+
statement: PropTypes.Requireable<string>;
|
42
|
+
conditions: PropTypes.Requireable<(object | null | undefined)[]>;
|
43
|
+
}> | null | undefined)[]>;
|
44
|
+
operator: PropTypes.Requireable<string>;
|
45
|
+
}>>;
|
46
|
+
enabledDefault: PropTypes.Requireable<boolean>;
|
44
47
|
}>>;
|
45
48
|
startConditionLabel: PropTypes.Validator<string>;
|
46
49
|
};
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, toConsumableArray as _toConsumableArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
-
import React__default, { useContext, useState, useEffect, useCallback } from 'react';
|
9
|
+
import React__default, { useContext, useRef, useState, useEffect, useCallback } from 'react';
|
10
10
|
import PropTypes from '../../../node_modules/prop-types/index.js';
|
11
11
|
import { Button, Section, Heading } from '@carbon/react';
|
12
12
|
import { Add, TextNewLine } from '@carbon/react/icons';
|
@@ -33,6 +33,7 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
|
|
33
33
|
setRootState = _useContext.setRootState,
|
34
34
|
variant = _useContext.variant,
|
35
35
|
actionState = _useContext.actionState;
|
36
|
+
var initialConditionState = useRef(initialState !== null && initialState !== void 0 && initialState.state ? JSON.parse(JSON.stringify(initialState === null || initialState === void 0 ? void 0 : initialState.state)) : null);
|
36
37
|
var _useState = useState(false),
|
37
38
|
_useState2 = _slicedToArray(_useState, 2),
|
38
39
|
isConditionBuilderActive = _useState2[0],
|
@@ -69,10 +70,24 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
|
|
69
70
|
getActionsState === null || getActionsState === void 0 || getActionsState(actionState !== null && actionState !== void 0 ? actionState : []);
|
70
71
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
71
72
|
}, [actionState]);
|
73
|
+
useEffect(function () {
|
74
|
+
if (initialState !== null && initialState !== void 0 && initialState.enabledDefault) {
|
75
|
+
setRootState === null || setRootState === void 0 || setRootState(initialConditionState.current);
|
76
|
+
initialConditionState.current = null;
|
77
|
+
}
|
78
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
79
|
+
}, [initialState]);
|
72
80
|
var onStartConditionBuilder = function onStartConditionBuilder() {
|
81
|
+
var _initialConditionStat;
|
73
82
|
//when add condition button is clicked.
|
74
83
|
setIsConditionBuilderActive(true);
|
75
|
-
|
84
|
+
if (initialConditionState !== null && initialConditionState !== void 0 && (_initialConditionStat = initialConditionState.current) !== null && _initialConditionStat !== void 0 && (_initialConditionStat = _initialConditionStat.groups) !== null && _initialConditionStat !== void 0 && _initialConditionStat.length) {
|
85
|
+
setRootState === null || setRootState === void 0 || setRootState(initialConditionState.current);
|
86
|
+
initialConditionState.current = null;
|
87
|
+
} else {
|
88
|
+
setRootState === null || setRootState === void 0 || setRootState(emptyState); //here we can set an empty skeleton object for an empty condition builder,
|
89
|
+
}
|
90
|
+
|
76
91
|
//or we can even pre-populate some existing builder and continue editing
|
77
92
|
};
|
78
93
|
var _onRemove = useCallback(function (groupId) {
|
@@ -208,22 +223,25 @@ ConditionBuilderContent.propTypes = {
|
|
208
223
|
* Optional prop if the condition building need to start from a predefined initial state
|
209
224
|
*/
|
210
225
|
initialState: PropTypes.shape({
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
226
|
+
state: PropTypes.shape({
|
227
|
+
groups: PropTypes.arrayOf(PropTypes.shape({
|
228
|
+
groupOperator: PropTypes.string,
|
229
|
+
statement: PropTypes.string,
|
230
|
+
conditions: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
|
231
|
+
property: PropTypes.string,
|
232
|
+
operator: PropTypes.string,
|
233
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.shape({
|
234
|
+
id: PropTypes.string,
|
235
|
+
label: PropTypes.string
|
236
|
+
})), PropTypes.shape({
|
237
|
+
id: PropTypes.string,
|
238
|
+
label: PropTypes.string
|
239
|
+
})])
|
240
|
+
}), PropTypes.object]))
|
241
|
+
})),
|
242
|
+
operator: PropTypes.string
|
243
|
+
}),
|
244
|
+
enabledDefault: PropTypes.bool
|
227
245
|
}),
|
228
246
|
/* Provide a label to the button that starts condition builder
|
229
247
|
*/
|
@@ -42,8 +42,8 @@ function _objectWithoutProperties(e, t) {
|
|
42
42
|
r,
|
43
43
|
i = _objectWithoutPropertiesLoose(e, t);
|
44
44
|
if (Object.getOwnPropertySymbols) {
|
45
|
-
var
|
46
|
-
for (r = 0; r <
|
45
|
+
var s = Object.getOwnPropertySymbols(e);
|
46
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
47
47
|
}
|
48
48
|
return i;
|
49
49
|
}
|
@@ -51,7 +51,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
51
51
|
if (null == r) return {};
|
52
52
|
var t = {};
|
53
53
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
54
|
-
if (e.
|
54
|
+
if (e.includes(n)) continue;
|
55
55
|
t[n] = r[n];
|
56
56
|
}
|
57
57
|
return t;
|
@@ -56,7 +56,8 @@ var componentName = 'ConditionBuilder';
|
|
56
56
|
exports.ConditionBuilder = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
57
57
|
var className = _ref.className,
|
58
58
|
inputConfig = _ref.inputConfig,
|
59
|
-
|
59
|
+
_ref$startConditionLa = _ref.startConditionLabel,
|
60
|
+
startConditionLabel = _ref$startConditionLa === void 0 ? 'Add Condition' : _ref$startConditionLa,
|
60
61
|
popOverSearchThreshold = _ref.popOverSearchThreshold,
|
61
62
|
getOptions = _ref.getOptions,
|
62
63
|
initialState = _ref.initialState,
|
@@ -155,27 +156,32 @@ exports.ConditionBuilder.propTypes = {
|
|
155
156
|
*/
|
156
157
|
getOptions: index["default"].func,
|
157
158
|
/**
|
158
|
-
* Optional prop if you want to pass a saved condition state.
|
159
|
-
*
|
159
|
+
* Optional prop if you want to pass a saved condition state, pass as "initialState.state".
|
160
|
+
* "initialState.enabledDefault" will populate the builder with the provided initial state before clicking Add Condition button.
|
161
|
+
*
|
162
|
+
* This state should respect the structure of condition state that is available in getConditionState callback
|
160
163
|
*/
|
161
164
|
/**@ts-ignore */
|
162
165
|
initialState: index["default"].shape({
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
166
|
+
state: index["default"].shape({
|
167
|
+
groups: index["default"].arrayOf(index["default"].shape({
|
168
|
+
groupOperator: index["default"].string,
|
169
|
+
statement: index["default"].string,
|
170
|
+
conditions: index["default"].arrayOf(index["default"].oneOfType([index["default"].shape({
|
171
|
+
property: index["default"].string,
|
172
|
+
operator: index["default"].string,
|
173
|
+
value: index["default"].oneOfType([index["default"].string, index["default"].arrayOf(index["default"].shape({
|
174
|
+
id: index["default"].string,
|
175
|
+
label: index["default"].string
|
176
|
+
})), index["default"].shape({
|
177
|
+
id: index["default"].string,
|
178
|
+
label: index["default"].string
|
179
|
+
})])
|
180
|
+
}), index["default"].object]))
|
181
|
+
})),
|
182
|
+
operator: index["default"].string
|
183
|
+
}),
|
184
|
+
enabledDefault: index["default"].bool
|
179
185
|
}),
|
180
186
|
/**
|
181
187
|
* This is a mandatory prop that defines the input to the condition builder.
|
@@ -208,7 +214,7 @@ exports.ConditionBuilder.propTypes = {
|
|
208
214
|
/**
|
209
215
|
* Provide a label to the button that starts condition builder
|
210
216
|
*/
|
211
|
-
startConditionLabel: index["default"].string
|
217
|
+
startConditionLabel: index["default"].string,
|
212
218
|
/**
|
213
219
|
* Optional prop, if you need to pass translations to the texts on the component instead of the defined defaults.
|
214
220
|
* This callback function will receive the message id and you need to return the corresponding text for that id.
|
@@ -122,17 +122,21 @@ export type Action = {
|
|
122
122
|
export type variantsType = 'Non-Hierarchical' | 'Hierarchical';
|
123
123
|
export type ConditionBuilderProps = {
|
124
124
|
inputConfig: inputConfig;
|
125
|
-
initialState?:
|
125
|
+
initialState?: InitialState;
|
126
126
|
getActionsState?: (state: Action[] | undefined) => void;
|
127
127
|
getConditionState: (state: ConditionBuilderState | undefined) => void;
|
128
128
|
getOptions?: (state: ConditionBuilderState, condition: Condition) => Promise<Option[]>;
|
129
129
|
actions?: Action[];
|
130
130
|
className?: string;
|
131
131
|
popOverSearchThreshold: number;
|
132
|
-
startConditionLabel
|
132
|
+
startConditionLabel?: string;
|
133
133
|
variant?: 'Non-Hierarchical' | 'Hierarchical';
|
134
134
|
translateWithId: (id: string) => string;
|
135
135
|
};
|
136
|
+
export type InitialState = {
|
137
|
+
state: ConditionBuilderState;
|
138
|
+
enabledDefault?: boolean;
|
139
|
+
};
|
136
140
|
export interface ConditionBuilderContextInputProps extends PropsWithChildren {
|
137
141
|
children?: ReactNode;
|
138
142
|
inputConfig?: inputConfig;
|
package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
import PropTypes from 'prop-types';
|
8
|
-
import { Action, ConditionBuilderState } from '../ConditionBuilder.types';
|
8
|
+
import { Action, ConditionBuilderState, InitialState } from '../ConditionBuilder.types';
|
9
9
|
interface ConditionBuilderContentProps {
|
10
10
|
startConditionLabel: string;
|
11
11
|
getConditionState: (state: ConditionBuilderState) => void;
|
12
12
|
getActionsState?: (state: Action[]) => void;
|
13
|
-
initialState?:
|
13
|
+
initialState?: InitialState;
|
14
14
|
actions?: Action[];
|
15
15
|
}
|
16
16
|
declare const ConditionBuilderContent: {
|
@@ -35,12 +35,15 @@ declare const ConditionBuilderContent: {
|
|
35
35
|
* Optional prop if the condition building need to start from a predefined initial state
|
36
36
|
*/
|
37
37
|
initialState: PropTypes.Requireable<PropTypes.InferProps<{
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
38
|
+
state: PropTypes.Requireable<PropTypes.InferProps<{
|
39
|
+
groups: PropTypes.Requireable<(PropTypes.InferProps<{
|
40
|
+
groupOperator: PropTypes.Requireable<string>;
|
41
|
+
statement: PropTypes.Requireable<string>;
|
42
|
+
conditions: PropTypes.Requireable<(object | null | undefined)[]>;
|
43
|
+
}> | null | undefined)[]>;
|
44
|
+
operator: PropTypes.Requireable<string>;
|
45
|
+
}>>;
|
46
|
+
enabledDefault: PropTypes.Requireable<boolean>;
|
44
47
|
}>>;
|
45
48
|
startConditionLabel: PropTypes.Validator<string>;
|
46
49
|
};
|
@@ -41,6 +41,7 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
|
|
41
41
|
setRootState = _useContext.setRootState,
|
42
42
|
variant = _useContext.variant,
|
43
43
|
actionState = _useContext.actionState;
|
44
|
+
var initialConditionState = React.useRef(initialState !== null && initialState !== void 0 && initialState.state ? JSON.parse(JSON.stringify(initialState === null || initialState === void 0 ? void 0 : initialState.state)) : null);
|
44
45
|
var _useState = React.useState(false),
|
45
46
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
46
47
|
isConditionBuilderActive = _useState2[0],
|
@@ -77,10 +78,24 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
|
|
77
78
|
getActionsState === null || getActionsState === void 0 || getActionsState(actionState !== null && actionState !== void 0 ? actionState : []);
|
78
79
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
79
80
|
}, [actionState]);
|
81
|
+
React.useEffect(function () {
|
82
|
+
if (initialState !== null && initialState !== void 0 && initialState.enabledDefault) {
|
83
|
+
setRootState === null || setRootState === void 0 || setRootState(initialConditionState.current);
|
84
|
+
initialConditionState.current = null;
|
85
|
+
}
|
86
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
87
|
+
}, [initialState]);
|
80
88
|
var onStartConditionBuilder = function onStartConditionBuilder() {
|
89
|
+
var _initialConditionStat;
|
81
90
|
//when add condition button is clicked.
|
82
91
|
setIsConditionBuilderActive(true);
|
83
|
-
|
92
|
+
if (initialConditionState !== null && initialConditionState !== void 0 && (_initialConditionStat = initialConditionState.current) !== null && _initialConditionStat !== void 0 && (_initialConditionStat = _initialConditionStat.groups) !== null && _initialConditionStat !== void 0 && _initialConditionStat.length) {
|
93
|
+
setRootState === null || setRootState === void 0 || setRootState(initialConditionState.current);
|
94
|
+
initialConditionState.current = null;
|
95
|
+
} else {
|
96
|
+
setRootState === null || setRootState === void 0 || setRootState(ConditionBuilderProvider.emptyState); //here we can set an empty skeleton object for an empty condition builder,
|
97
|
+
}
|
98
|
+
|
84
99
|
//or we can even pre-populate some existing builder and continue editing
|
85
100
|
};
|
86
101
|
var _onRemove = React.useCallback(function (groupId) {
|
@@ -216,22 +231,25 @@ ConditionBuilderContent.propTypes = {
|
|
216
231
|
* Optional prop if the condition building need to start from a predefined initial state
|
217
232
|
*/
|
218
233
|
initialState: index["default"].shape({
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
234
|
+
state: index["default"].shape({
|
235
|
+
groups: index["default"].arrayOf(index["default"].shape({
|
236
|
+
groupOperator: index["default"].string,
|
237
|
+
statement: index["default"].string,
|
238
|
+
conditions: index["default"].arrayOf(index["default"].oneOfType([index["default"].shape({
|
239
|
+
property: index["default"].string,
|
240
|
+
operator: index["default"].string,
|
241
|
+
value: index["default"].oneOfType([index["default"].string, index["default"].arrayOf(index["default"].shape({
|
242
|
+
id: index["default"].string,
|
243
|
+
label: index["default"].string
|
244
|
+
})), index["default"].shape({
|
245
|
+
id: index["default"].string,
|
246
|
+
label: index["default"].string
|
247
|
+
})])
|
248
|
+
}), index["default"].object]))
|
249
|
+
})),
|
250
|
+
operator: index["default"].string
|
251
|
+
}),
|
252
|
+
enabledDefault: index["default"].bool
|
235
253
|
}),
|
236
254
|
/* Provide a label to the button that starts condition builder
|
237
255
|
*/
|
@@ -46,8 +46,8 @@ function _objectWithoutProperties(e, t) {
|
|
46
46
|
r,
|
47
47
|
i = _objectWithoutPropertiesLoose(e, t);
|
48
48
|
if (Object.getOwnPropertySymbols) {
|
49
|
-
var
|
50
|
-
for (r = 0; r <
|
49
|
+
var s = Object.getOwnPropertySymbols(e);
|
50
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
51
51
|
}
|
52
52
|
return i;
|
53
53
|
}
|
@@ -55,7 +55,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
55
55
|
if (null == r) return {};
|
56
56
|
var t = {};
|
57
57
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
58
|
-
if (e.
|
58
|
+
if (e.includes(n)) continue;
|
59
59
|
t[n] = r[n];
|
60
60
|
}
|
61
61
|
return t;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products",
|
3
3
|
"description": "Carbon for IBM Products",
|
4
|
-
"version": "2.43.2-canary.
|
4
|
+
"version": "2.43.2-canary.235+0ac76692a",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -96,7 +96,7 @@
|
|
96
96
|
"dependencies": {
|
97
97
|
"@babel/runtime": "^7.23.9",
|
98
98
|
"@carbon/feature-flags": "^0.22.0",
|
99
|
-
"@carbon/ibm-products-styles": "^2.
|
99
|
+
"@carbon/ibm-products-styles": "^2.39.1-canary.245+0ac76692a",
|
100
100
|
"@carbon/telemetry": "^0.1.0",
|
101
101
|
"@dnd-kit/core": "^6.0.8",
|
102
102
|
"@dnd-kit/modifiers": "^7.0.0",
|
@@ -111,14 +111,14 @@
|
|
111
111
|
"react-window": "^1.8.10"
|
112
112
|
},
|
113
113
|
"peerDependencies": {
|
114
|
-
"@carbon/grid": "^11.
|
115
|
-
"@carbon/layout": "^11.
|
116
|
-
"@carbon/motion": "^11.
|
117
|
-
"@carbon/react": "^1.
|
118
|
-
"@carbon/themes": "^11.
|
119
|
-
"@carbon/type": "^11.
|
114
|
+
"@carbon/grid": "^11.27.0",
|
115
|
+
"@carbon/layout": "^11.26.0",
|
116
|
+
"@carbon/motion": "^11.22.0",
|
117
|
+
"@carbon/react": "^1.66.0",
|
118
|
+
"@carbon/themes": "^11.40.0",
|
119
|
+
"@carbon/type": "^11.31.0",
|
120
120
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
121
121
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
122
122
|
},
|
123
|
-
"gitHead": "
|
123
|
+
"gitHead": "0ac76692a6eeb85655ca64ca9189297708e26bd9"
|
124
124
|
}
|