@decisiv/ui-components 2.0.1-alpha.225 → 2.0.1-alpha.227
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/lib/atoms/OptionsList/index.d.ts.map +1 -1
- package/lib/atoms/OptionsList/index.js +9 -5
- package/lib/atoms/OptionsList/index.test.js +5 -1
- package/lib/atoms/OptionsList/schema.d.ts.map +1 -1
- package/lib/atoms/OptionsList/schema.js +3 -1
- package/lib/atoms/OptionsList/types.d.ts +1 -0
- package/lib/atoms/OptionsList/types.d.ts.map +1 -1
- package/lib/atoms/OptionsList/utils.d.ts +0 -1
- package/lib/atoms/OptionsList/utils.d.ts.map +1 -1
- package/lib/atoms/OptionsList/utils.js +2 -32
- package/lib/components/Combobox/Target.d.ts.map +1 -1
- package/lib/components/Combobox/Target.js +3 -0
- package/lib/components/Combobox/index.d.ts.map +1 -1
- package/lib/components/Combobox/index.js +4 -2
- package/lib/components/Combobox/types.d.ts +2 -0
- package/lib/components/Combobox/types.d.ts.map +1 -1
- package/lib/components/SearchInput/index.js +2 -1
- package/lib/components/Wizard/index.d.ts +2 -1
- package/lib/components/Wizard/index.d.ts.map +1 -1
- package/lib/components/Wizard/index.js +6 -4
- package/lib/components/Wizard/index.test.js +236 -16
- package/lib/components/Wizard/schema.d.ts.map +1 -1
- package/lib/components/Wizard/schema.js +4 -1
- package/lib/providers/ConfigProvider/utils/translations.d.ts +2 -0
- package/lib/providers/ConfigProvider/utils/translations.d.ts.map +1 -1
- package/lib/providers/ConfigProvider/utils/translations.js +2 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atoms/OptionsList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KASN,MAAM,OAAO,CAAC;AAqBf,OAAO,EAEL,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atoms/OptionsList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KASN,MAAM,OAAO,CAAC;AAqBf,OAAO,EAEL,gBAAgB,EAQjB,MAAM,SAAS,CAAC;AAoBjB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AA+iBrC,QAAA,MAAM,2BAA2B,2FAA0B,CAAC;AAmC5D,eAAe,2BAA2B,CAAC"}
|
|
@@ -154,7 +154,11 @@ function OptionsList(props, forwardedRef) {
|
|
|
154
154
|
maxWidth = props.maxWidth,
|
|
155
155
|
maxHeight = props.maxHeight,
|
|
156
156
|
pointerEvents = props.pointerEvents,
|
|
157
|
-
enableVirtualization = props.enableVirtualization
|
|
157
|
+
enableVirtualization = props.enableVirtualization,
|
|
158
|
+
_props$getItemHeight = props.getItemHeight,
|
|
159
|
+
getItemHeight = _props$getItemHeight === void 0 ? function (_item, _size) {
|
|
160
|
+
return 48;
|
|
161
|
+
} : _props$getItemHeight;
|
|
158
162
|
var initialIds = selectedIdsProp || defaultSelected;
|
|
159
163
|
|
|
160
164
|
var _useState = (0, _react.useState)(null),
|
|
@@ -176,13 +180,13 @@ function OptionsList(props, forwardedRef) {
|
|
|
176
180
|
}, [items, useVirtualization]); // Get item size for VariableSizeList
|
|
177
181
|
|
|
178
182
|
var getItemSize = (0, _react.useCallback)(function (index) {
|
|
179
|
-
return
|
|
180
|
-
}, [flattenedItems, size]); // Calculate total height for the list
|
|
183
|
+
return getItemHeight(flattenedItems[index], size);
|
|
184
|
+
}, [flattenedItems, size, getItemHeight]); // Calculate total height for the list
|
|
181
185
|
|
|
182
186
|
var totalHeight = (0, _react.useMemo)(function () {
|
|
183
187
|
if (!useVirtualization) return 0;
|
|
184
188
|
var calculated = flattenedItems.reduce(function (acc, item) {
|
|
185
|
-
return acc +
|
|
189
|
+
return acc + getItemHeight(item, size);
|
|
186
190
|
}, 0); // If maxHeight is explicitly provided, use it
|
|
187
191
|
|
|
188
192
|
if (maxHeight && typeof maxHeight === 'string') {
|
|
@@ -200,7 +204,7 @@ function OptionsList(props, forwardedRef) {
|
|
|
200
204
|
}
|
|
201
205
|
|
|
202
206
|
return defaultMax;
|
|
203
|
-
}, [flattenedItems, size, maxHeight, useVirtualization]);
|
|
207
|
+
}, [flattenedItems, size, maxHeight, useVirtualization, getItemHeight]);
|
|
204
208
|
var updateSelectionAndTriggerChange = (0, _react.useCallback)(function (ids) {
|
|
205
209
|
// Only toggle if we are "uncontrolled"
|
|
206
210
|
selectedIdsProp === undefined && selectable && setSelectedIds(ids);
|
|
@@ -104,7 +104,10 @@ describe('OptionsList', function () {
|
|
|
104
104
|
describe('virtualization', function () {
|
|
105
105
|
it('renders with virtualization enabled', function () {
|
|
106
106
|
var _render = render(_react.default.createElement(_.default, _extends({}, defaultProps, {
|
|
107
|
-
enableVirtualization: true
|
|
107
|
+
enableVirtualization: true,
|
|
108
|
+
getItemHeight: function getItemHeight(item) {
|
|
109
|
+
return item.type === 'category-header' ? 40 : 48;
|
|
110
|
+
}
|
|
108
111
|
})), {
|
|
109
112
|
wrapper: wrapper
|
|
110
113
|
}),
|
|
@@ -113,6 +116,7 @@ describe('OptionsList', function () {
|
|
|
113
116
|
|
|
114
117
|
var listContainer = container.querySelector('[style*="overflow"]');
|
|
115
118
|
expect(listContainer).toBeTruthy();
|
|
119
|
+
expect(container).toMatchSnapshot();
|
|
116
120
|
});
|
|
117
121
|
it('renders without virtualization by default', function () {
|
|
118
122
|
var _render2 = render(_react.default.createElement(_.default, defaultProps), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/atoms/OptionsList/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/atoms/OptionsList/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAA2C,CAAC;AAsFxD,eAAe,MAAM,CAAC"}
|
|
@@ -42,7 +42,9 @@ schema.makePropTypes = function () {
|
|
|
42
42
|
role: _reactDesc.PropTypes.string.description('The role assigned to the list.').defaultValue('listbox'),
|
|
43
43
|
itemRole: _reactDesc.PropTypes.string.description('The role assigned to each item in the list.').defaultValue('option'),
|
|
44
44
|
size: _reactDesc.PropTypes.oneOf(['small', 'medium']).description('Defines the size of the OptionList').defaultValue('small'),
|
|
45
|
-
onDragEnd: _reactDesc.PropTypes.func.description("If present, enables Drag-and-Drop sorting. This function will be called after the order of rows changes when a row is dragged and dropped. It is called with 2 arguments: the index from where it's dragged, and the index to where it's dropped. If there are grouped rows then each argument is an array where the first element is the group index and the second the row index inside the group. See below for function signature.")
|
|
45
|
+
onDragEnd: _reactDesc.PropTypes.func.description("If present, enables Drag-and-Drop sorting. This function will be called after the order of rows changes when a row is dragged and dropped. It is called with 2 arguments: the index from where it's dragged, and the index to where it's dropped. If there are grouped rows then each argument is an array where the first element is the group index and the second the row index inside the group. See below for function signature."),
|
|
46
|
+
enableVirtualization: _reactDesc.PropTypes.bool.description('Enables virtualization of the options list for better performance with large datasets. When enabled, only visible items are rendered. For accurate virtualization, you should also provide the getItemHeight prop.'),
|
|
47
|
+
getItemHeight: _reactDesc.PropTypes.func.description('Function that returns the height in pixels for each item. When enableVirtualization is true, this should be provided to avoid relying on the internal default. Called with (item, size) and should return the height as a number.')
|
|
46
48
|
};
|
|
47
49
|
};
|
|
48
50
|
|
|
@@ -94,6 +94,7 @@ export interface OptionsListProps extends OptionsListDimensions {
|
|
|
94
94
|
pointerEvents?: string;
|
|
95
95
|
onDragEnd?: (from: number | number[], to: number | number[]) => void;
|
|
96
96
|
enableVirtualization?: boolean;
|
|
97
|
+
getItemHeight?: (item: FlattenedItem, size: Size) => number;
|
|
97
98
|
}
|
|
98
99
|
export declare type OptionsListContainerRef = HTMLUListElement;
|
|
99
100
|
export interface StyledCategoryProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atoms/Opt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Q,SAAS;IAChD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAMD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,QAAQ,GAAG,iBAAiB,CAAC;IACnC,YAAY,EAAE,IAAI,CAAC;CACpB;AAKD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3B,IAAI,EAAE;QACJ,cAAc,EAAE,aAAa,EAAE,CAAC;QAChC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,YAAY,EAAE,OAAO,CAAC;QACtB,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;KAC1B,CAAC;CACH"}
|
|
@@ -7,5 +7,4 @@ export declare const ensureItemIsVisible: (container: HTMLUListElement | null, i
|
|
|
7
7
|
} | undefined) => void;
|
|
8
8
|
export declare const isLink: (item: Option) => item is LinkOption;
|
|
9
9
|
export declare const flattenItems: (items: Item[]) => FlattenedItem[];
|
|
10
|
-
export declare const getItemHeight: (flattenedItem: FlattenedItem, size?: "small" | "medium") => number;
|
|
11
10
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/atoms/OptionsList/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE5E,eAAO,MAAM,KAAK,wBAAgD,CAAC;AAEnE,eAAO,MAAM,UAAU,kCACuB,CAAC;AAE/C,eAAO,MAAM,WAAW,qEAWvB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;sBA+B/B,CAAC;AAEF,eAAO,MAAM,MAAM,sCACgB,CAAC;AAepC,eAAO,MAAM,YAAY,oCA+BxB,CAAC
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/atoms/OptionsList/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE5E,eAAO,MAAM,KAAK,wBAAgD,CAAC;AAEnE,eAAO,MAAM,UAAU,kCACuB,CAAC;AAE/C,eAAO,MAAM,WAAW,qEAWvB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;sBA+B/B,CAAC;AAEF,eAAO,MAAM,MAAM,sCACgB,CAAC;AAepC,eAAO,MAAM,YAAY,oCA+BxB,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.flattenItems = exports.isLink = exports.ensureItemIsVisible = exports.sanitizeIds = exports.isCategory = exports.getId = void 0;
|
|
7
7
|
|
|
8
8
|
var _castArray = _interopRequireDefault(require("lodash/castArray"));
|
|
9
9
|
|
|
@@ -120,35 +120,5 @@ var flattenItems = function flattenItems(items) {
|
|
|
120
120
|
});
|
|
121
121
|
return flattened;
|
|
122
122
|
};
|
|
123
|
-
/**
|
|
124
|
-
* Calculate item height based on type and size for virtualization
|
|
125
|
-
*
|
|
126
|
-
* Heights are based on the styled-components padding values:
|
|
127
|
-
* - Options (small): 5px top + 5px bottom padding + ~25px content = ~35px
|
|
128
|
-
* - Options (medium): 10px top + 10px bottom padding + ~25px content = ~45px
|
|
129
|
-
* - Categories (small): 15px top + 7px bottom padding + ~20px content = ~42px
|
|
130
|
-
* - Categories (medium): 15px top + 10px bottom padding + ~25px content = ~50px
|
|
131
|
-
* - Options with labelDetails: Add ~20px extra height
|
|
132
|
-
*/
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
exports.flattenItems = flattenItems;
|
|
136
|
-
|
|
137
|
-
var getItemHeight = function getItemHeight(flattenedItem) {
|
|
138
|
-
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'small';
|
|
139
|
-
var type = flattenedItem.type,
|
|
140
|
-
item = flattenedItem.item;
|
|
141
|
-
|
|
142
|
-
if (type === 'category-header') {
|
|
143
|
-
// Category headers are taller
|
|
144
|
-
return size === 'medium' ? 50 : 42;
|
|
145
|
-
} // Regular option
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
var baseHeight = size === 'medium' ? 45 : 35; // Check if option has labelDetails (secondary text) which adds height
|
|
149
|
-
|
|
150
|
-
var hasLabelDetails = 'labelDetails' in item && item.labelDetails;
|
|
151
|
-
return hasLabelDetails ? baseHeight + 20 : baseHeight;
|
|
152
|
-
};
|
|
153
123
|
|
|
154
|
-
exports.
|
|
124
|
+
exports.flattenItems = flattenItems;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Target.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Target.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAO,sBAAsB,EAAc,MAAM,OAAO,CAAC;AAkBvE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Target.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Target.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAO,sBAAsB,EAAc,MAAM,OAAO,CAAC;AAkBvE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA+LtC,QAAA,MAAM,aAAa,EAAE,sBAAsB,CACzC,gBAAgB,EAChB,WAAW,CACS,CAAC;AAGvB,eAAe,aAAa,CAAC"}
|
|
@@ -134,6 +134,9 @@ function Target(_ref, ref) {
|
|
|
134
134
|
})), hasExpandIndicator && _react.default.createElement(ExpandedIndicatorContainer, {
|
|
135
135
|
disabled: disabled
|
|
136
136
|
}, _react.default.createElement(_Button.default, {
|
|
137
|
+
"aria-label": translate(undefined, isPopoverVisible ? 'combobox.collapseButtonLabel' : 'combobox.expandButtonLabel', {
|
|
138
|
+
label: inputFieldLabel
|
|
139
|
+
}),
|
|
137
140
|
disabled: disabled,
|
|
138
141
|
style: {
|
|
139
142
|
padding: 0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.tsx"],"names":[],"mappings":"AASA,OAAc,EAGZ,sBAAsB,EAQvB,MAAM,OAAO,CAAC;AA2Bf,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAQ,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.tsx"],"names":[],"mappings":"AASA,OAAc,EAGZ,sBAAsB,EAQvB,MAAM,OAAO,CAAC;AA2Bf,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAQ,MAAM,SAAS,CAAC;AAgnBhE,QAAA,MAAM,eAAe,EAAE,sBAAsB,CAC3C,gBAAgB,EAChB,aAAa,CACS,CAAC;AAOzB,eAAe,eAAe,CAAC"}
|
|
@@ -127,7 +127,8 @@ function Combobox(props, ref) {
|
|
|
127
127
|
pointerEvents = props.pointerEvents,
|
|
128
128
|
externalIsPopoverVisible = props.isPopoverVisible,
|
|
129
129
|
externalListRef = props.listRef,
|
|
130
|
-
enableVirtualization = props.enableVirtualization
|
|
130
|
+
enableVirtualization = props.enableVirtualization,
|
|
131
|
+
getItemHeight = props.getItemHeight;
|
|
131
132
|
|
|
132
133
|
var _useCombobox = (0, _useCombobox2.default)(props),
|
|
133
134
|
getInputFieldProps = _useCombobox.getInputFieldProps,
|
|
@@ -607,7 +608,8 @@ function Combobox(props, ref) {
|
|
|
607
608
|
renderOptionLabel: renderOptionLabel,
|
|
608
609
|
zIndex: zIndex,
|
|
609
610
|
pointerEvents: pointerEvents,
|
|
610
|
-
enableVirtualization: enableVirtualization
|
|
611
|
+
enableVirtualization: enableVirtualization,
|
|
612
|
+
getItemHeight: getItemHeight
|
|
611
613
|
}));
|
|
612
614
|
}));
|
|
613
615
|
}
|
|
@@ -3,6 +3,7 @@ import { BaseInputFieldProps } from '../../atoms/InputField';
|
|
|
3
3
|
import { ActionHandler } from '../Tag/types';
|
|
4
4
|
import { PopoverProps } from '../Popover/types';
|
|
5
5
|
import { Items, DropdownListProps } from '../DropdownList';
|
|
6
|
+
import { FlattenedItem, Size } from '../../atoms/OptionsList/types';
|
|
6
7
|
export declare type ComboboxInputRef = HTMLInputElement;
|
|
7
8
|
declare type Variant = 'async' | 'sync';
|
|
8
9
|
interface TOnChangeMeta {
|
|
@@ -13,6 +14,7 @@ export interface ComboboxProps extends Omit<React.InputHTMLAttributes<ComboboxIn
|
|
|
13
14
|
defaultInputValue?: string;
|
|
14
15
|
defaultValue?: string;
|
|
15
16
|
enableVirtualization?: boolean;
|
|
17
|
+
getItemHeight?: (item: FlattenedItem, size: Size) => number;
|
|
16
18
|
inputValue?: string;
|
|
17
19
|
isPopoverVisible?: boolean;
|
|
18
20
|
multiple?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE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AK,aAAa,GAAG,SAAS,CAAC;IAC1D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,EAAE,MAAM,IAAI,CAAC;CACpC"}
|
|
@@ -169,7 +169,8 @@ function SearchInput(_ref) {
|
|
|
169
169
|
})), !(0, _isEmpty.default)(warningMessage) && _react.default.createElement(_styles.WarningMessage, {
|
|
170
170
|
intent: "warning"
|
|
171
171
|
}, warningMessage), _react.default.createElement(_HelpMessage.default, {
|
|
172
|
-
helpMessage: helpMessage
|
|
172
|
+
helpMessage: helpMessage,
|
|
173
|
+
contentLength: value.length
|
|
173
174
|
}));
|
|
174
175
|
}
|
|
175
176
|
|
|
@@ -14,7 +14,8 @@ export interface WizardProps extends Pick<ModalProps, 'id' | 'visible' | 'zIndex
|
|
|
14
14
|
steps: Step[];
|
|
15
15
|
activeStep: number;
|
|
16
16
|
submitButtonProps?: ButtonProps;
|
|
17
|
-
|
|
17
|
+
cancelButtonProps?: ButtonProps;
|
|
18
|
+
onCancel?: ModalProps['onClose'];
|
|
18
19
|
renderActions?: (context: {
|
|
19
20
|
step: Step;
|
|
20
21
|
stepIndex: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Wizard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAO1D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAa5C,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,mBAAmB,CAAC,EAAE,WAAW,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X,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,OAAO,CAAC;QACrB,UAAU,EAAE,OAAO,CAAC;QACpB,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC;KACjC,KAAK,KAAK,CAAC,SAAS,CAAC;CACvB;AA8ID,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,eAQ1D;kBARQ,YAAY;;;;AAiBrB,eAAe,YAAY,CAAC"}
|
|
@@ -61,6 +61,7 @@ var Wizard = function Wizard(_ref) {
|
|
|
61
61
|
wizardTitle = _ref.title,
|
|
62
62
|
currentStepNumber = _ref.activeStep,
|
|
63
63
|
submitButtonProps = _ref.submitButtonProps,
|
|
64
|
+
cancelButtonProps = _ref.cancelButtonProps,
|
|
64
65
|
_ref$size = _ref.size,
|
|
65
66
|
size = _ref$size === void 0 ? 'normal' : _ref$size,
|
|
66
67
|
steps = _ref.steps,
|
|
@@ -103,13 +104,14 @@ var Wizard = function Wizard(_ref) {
|
|
|
103
104
|
text: translate('Back', 'wizard.actions.back'),
|
|
104
105
|
kind: "secondary",
|
|
105
106
|
icon: _ArrowLeft.default
|
|
106
|
-
}, previousButtonProps))), _react.default.createElement(_.Button, {
|
|
107
|
+
}, previousButtonProps))), (onCancel || cancelButtonProps) && _react.default.createElement(_.Button, _extends({
|
|
107
108
|
text: translate('Cancel', 'wizard.actions.cancel'),
|
|
108
109
|
kind: "secondary",
|
|
109
110
|
variant: "ghost",
|
|
110
|
-
onClick: onCancel
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
onClick: onCancel,
|
|
112
|
+
disabled: cancelButtonProps ? !cancelButtonProps.onClick : !onCancel
|
|
113
|
+
}, cancelButtonProps)));
|
|
114
|
+
}, [breakpoint, showSubmit, translate, submitButtonProps, showNext, nextButtonProps, showPrevious, previousButtonProps, onCancel, cancelButtonProps]);
|
|
113
115
|
return _react.default.createElement(_ResponsiveModalWrapper.default, {
|
|
114
116
|
id: id,
|
|
115
117
|
size: sizeMapping[size],
|
|
@@ -59,6 +59,9 @@ describe('Wizard', function () {
|
|
|
59
59
|
title: "Wizard Title",
|
|
60
60
|
visible: true,
|
|
61
61
|
activeStep: 1,
|
|
62
|
+
onCancel: function onCancel() {
|
|
63
|
+
return null;
|
|
64
|
+
},
|
|
62
65
|
submitButtonProps: {
|
|
63
66
|
onClick: function onClick() {
|
|
64
67
|
return null;
|
|
@@ -395,6 +398,223 @@ describe('Wizard', function () {
|
|
|
395
398
|
expect(onCancelMock).toHaveBeenCalled();
|
|
396
399
|
});
|
|
397
400
|
});
|
|
401
|
+
describe('cancelButtonProps', function () {
|
|
402
|
+
var steps = [{
|
|
403
|
+
title: 'First Step',
|
|
404
|
+
content: _react.default.createElement(StepContent, {
|
|
405
|
+
text: "Step 1 Content"
|
|
406
|
+
})
|
|
407
|
+
}, {
|
|
408
|
+
title: 'Second Step',
|
|
409
|
+
content: _react.default.createElement(StepContent, {
|
|
410
|
+
text: "Step 2 Content"
|
|
411
|
+
})
|
|
412
|
+
}, {
|
|
413
|
+
title: 'Third Step',
|
|
414
|
+
content: _react.default.createElement(StepContent, {
|
|
415
|
+
text: "Step 3 Content"
|
|
416
|
+
})
|
|
417
|
+
}];
|
|
418
|
+
it('passes additional props to the cancel button', function () {
|
|
419
|
+
var _render10 = render(_react.default.createElement(_.default, {
|
|
420
|
+
title: "Wizard Title",
|
|
421
|
+
visible: true,
|
|
422
|
+
activeStep: 1,
|
|
423
|
+
submitButtonProps: {
|
|
424
|
+
onClick: function onClick() {
|
|
425
|
+
return null;
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
steps: steps,
|
|
429
|
+
cancelButtonProps: {
|
|
430
|
+
disabled: true
|
|
431
|
+
}
|
|
432
|
+
})),
|
|
433
|
+
getByRole = _render10.getByRole;
|
|
434
|
+
|
|
435
|
+
var modal = getByRole('dialog');
|
|
436
|
+
expect(modal).toBeInTheDocument();
|
|
437
|
+
expect((0, _react2.within)(modal).getByText(/cancel/i, {
|
|
438
|
+
selector: 'button'
|
|
439
|
+
})).toBeDisabled();
|
|
440
|
+
});
|
|
441
|
+
it('allows overriding the cancel button text', function () {
|
|
442
|
+
var _render11 = render(_react.default.createElement(_.default, {
|
|
443
|
+
title: "Wizard Title",
|
|
444
|
+
visible: true,
|
|
445
|
+
activeStep: 1,
|
|
446
|
+
submitButtonProps: {
|
|
447
|
+
onClick: function onClick() {
|
|
448
|
+
return null;
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
steps: steps,
|
|
452
|
+
cancelButtonProps: {
|
|
453
|
+
text: 'Dismiss'
|
|
454
|
+
}
|
|
455
|
+
})),
|
|
456
|
+
getByRole = _render11.getByRole;
|
|
457
|
+
|
|
458
|
+
var modal = getByRole('dialog');
|
|
459
|
+
expect(modal).toBeInTheDocument();
|
|
460
|
+
expect((0, _react2.within)(modal).getByText(/dismiss/i, {
|
|
461
|
+
selector: 'button'
|
|
462
|
+
})).toBeInTheDocument();
|
|
463
|
+
});
|
|
464
|
+
it('allows overriding onClick, replacing onCancel', function () {
|
|
465
|
+
var onCancelMock = jest.fn();
|
|
466
|
+
var cancelButtonOnClickMock = jest.fn();
|
|
467
|
+
|
|
468
|
+
var _render12 = render(_react.default.createElement(_.default, {
|
|
469
|
+
title: "Wizard Title",
|
|
470
|
+
visible: true,
|
|
471
|
+
onCancel: onCancelMock,
|
|
472
|
+
activeStep: 1,
|
|
473
|
+
submitButtonProps: {
|
|
474
|
+
onClick: function onClick() {
|
|
475
|
+
return null;
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
steps: steps,
|
|
479
|
+
cancelButtonProps: {
|
|
480
|
+
onClick: cancelButtonOnClickMock
|
|
481
|
+
}
|
|
482
|
+
})),
|
|
483
|
+
getByRole = _render12.getByRole;
|
|
484
|
+
|
|
485
|
+
var modal = getByRole('dialog');
|
|
486
|
+
expect(modal).toBeInTheDocument();
|
|
487
|
+
|
|
488
|
+
_react2.fireEvent.click((0, _react2.within)(modal).getByText(/cancel/i, {
|
|
489
|
+
selector: 'button'
|
|
490
|
+
}));
|
|
491
|
+
|
|
492
|
+
expect(cancelButtonOnClickMock).toHaveBeenCalled();
|
|
493
|
+
expect(onCancelMock).not.toHaveBeenCalled();
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
describe('when onCancel is not provided', function () {
|
|
497
|
+
var steps = [{
|
|
498
|
+
title: 'First Step',
|
|
499
|
+
content: _react.default.createElement(StepContent, {
|
|
500
|
+
text: "Step 1 Content"
|
|
501
|
+
})
|
|
502
|
+
}, {
|
|
503
|
+
title: 'Second Step',
|
|
504
|
+
content: _react.default.createElement(StepContent, {
|
|
505
|
+
text: "Step 2 Content"
|
|
506
|
+
})
|
|
507
|
+
}, {
|
|
508
|
+
title: 'Third Step',
|
|
509
|
+
content: _react.default.createElement(StepContent, {
|
|
510
|
+
text: "Step 3 Content"
|
|
511
|
+
})
|
|
512
|
+
}];
|
|
513
|
+
it('does not render the Cancel button when neither onCancel nor cancelButtonProps are provided', function () {
|
|
514
|
+
var _render13 = render(_react.default.createElement(_.default, {
|
|
515
|
+
title: "Wizard Title",
|
|
516
|
+
visible: true,
|
|
517
|
+
activeStep: 1,
|
|
518
|
+
submitButtonProps: {
|
|
519
|
+
onClick: function onClick() {
|
|
520
|
+
return null;
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
steps: steps
|
|
524
|
+
})),
|
|
525
|
+
getByRole = _render13.getByRole;
|
|
526
|
+
|
|
527
|
+
var modal = getByRole('dialog');
|
|
528
|
+
expect(modal).toBeInTheDocument();
|
|
529
|
+
expect((0, _react2.within)(modal).queryByText(/cancel/i, {
|
|
530
|
+
selector: 'button'
|
|
531
|
+
})).not.toBeInTheDocument();
|
|
532
|
+
});
|
|
533
|
+
it('does not call onCancel when Esc is pressed', function () {
|
|
534
|
+
var onCancelMock = jest.fn();
|
|
535
|
+
render(_react.default.createElement(_.default, {
|
|
536
|
+
title: "Wizard Title",
|
|
537
|
+
visible: true,
|
|
538
|
+
activeStep: 1,
|
|
539
|
+
submitButtonProps: {
|
|
540
|
+
onClick: function onClick() {
|
|
541
|
+
return null;
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
steps: steps
|
|
545
|
+
}));
|
|
546
|
+
|
|
547
|
+
_react2.fireEvent.keyDown(document, {
|
|
548
|
+
key: 'Escape'
|
|
549
|
+
});
|
|
550
|
+
|
|
551
|
+
expect(onCancelMock).not.toHaveBeenCalled();
|
|
552
|
+
});
|
|
553
|
+
it('renders the Cancel button (disabled) when cancelButtonProps is provided without onClick', function () {
|
|
554
|
+
var _render14 = render(_react.default.createElement(_.default, {
|
|
555
|
+
title: "Wizard Title",
|
|
556
|
+
visible: true,
|
|
557
|
+
activeStep: 1,
|
|
558
|
+
submitButtonProps: {
|
|
559
|
+
onClick: function onClick() {
|
|
560
|
+
return null;
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
steps: steps,
|
|
564
|
+
cancelButtonProps: {
|
|
565
|
+
text: 'Cancel'
|
|
566
|
+
}
|
|
567
|
+
})),
|
|
568
|
+
getByRole = _render14.getByRole;
|
|
569
|
+
|
|
570
|
+
var modal = getByRole('dialog');
|
|
571
|
+
expect(modal).toBeInTheDocument();
|
|
572
|
+
expect((0, _react2.within)(modal).getByText(/cancel/i, {
|
|
573
|
+
selector: 'button'
|
|
574
|
+
})).toBeDisabled();
|
|
575
|
+
});
|
|
576
|
+
});
|
|
577
|
+
describe('when only onCancel is provided', function () {
|
|
578
|
+
var steps = [{
|
|
579
|
+
title: 'First Step',
|
|
580
|
+
content: _react.default.createElement(StepContent, {
|
|
581
|
+
text: "Step 1 Content"
|
|
582
|
+
})
|
|
583
|
+
}, {
|
|
584
|
+
title: 'Second Step',
|
|
585
|
+
content: _react.default.createElement(StepContent, {
|
|
586
|
+
text: "Step 2 Content"
|
|
587
|
+
})
|
|
588
|
+
}, {
|
|
589
|
+
title: 'Third Step',
|
|
590
|
+
content: _react.default.createElement(StepContent, {
|
|
591
|
+
text: "Step 3 Content"
|
|
592
|
+
})
|
|
593
|
+
}];
|
|
594
|
+
it('renders the Cancel button in an enabled state', function () {
|
|
595
|
+
var onCancelMock = jest.fn();
|
|
596
|
+
|
|
597
|
+
var _render15 = render(_react.default.createElement(_.default, {
|
|
598
|
+
title: "Wizard Title",
|
|
599
|
+
visible: true,
|
|
600
|
+
onCancel: onCancelMock,
|
|
601
|
+
activeStep: 1,
|
|
602
|
+
submitButtonProps: {
|
|
603
|
+
onClick: function onClick() {
|
|
604
|
+
return null;
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
steps: steps
|
|
608
|
+
})),
|
|
609
|
+
getByRole = _render15.getByRole;
|
|
610
|
+
|
|
611
|
+
var modal = getByRole('dialog');
|
|
612
|
+
expect(modal).toBeInTheDocument();
|
|
613
|
+
expect((0, _react2.within)(modal).getByText(/cancel/i, {
|
|
614
|
+
selector: 'button'
|
|
615
|
+
})).toBeEnabled();
|
|
616
|
+
});
|
|
617
|
+
});
|
|
398
618
|
describe('Continue action', function () {
|
|
399
619
|
it('doesnt render the button if nextButtonProps is not provided to the step', function () {
|
|
400
620
|
var steps = [{
|
|
@@ -414,7 +634,7 @@ describe('Wizard', function () {
|
|
|
414
634
|
})
|
|
415
635
|
}];
|
|
416
636
|
|
|
417
|
-
var
|
|
637
|
+
var _render16 = render(_react.default.createElement(_.default, {
|
|
418
638
|
title: "Wizard Title",
|
|
419
639
|
visible: true,
|
|
420
640
|
activeStep: 1,
|
|
@@ -425,7 +645,7 @@ describe('Wizard', function () {
|
|
|
425
645
|
},
|
|
426
646
|
steps: steps
|
|
427
647
|
})),
|
|
428
|
-
getByRole =
|
|
648
|
+
getByRole = _render16.getByRole;
|
|
429
649
|
|
|
430
650
|
var modal = getByRole('dialog');
|
|
431
651
|
expect(modal).toBeInTheDocument();
|
|
@@ -456,7 +676,7 @@ describe('Wizard', function () {
|
|
|
456
676
|
}
|
|
457
677
|
}];
|
|
458
678
|
|
|
459
|
-
var
|
|
679
|
+
var _render17 = render(_react.default.createElement(_.default, {
|
|
460
680
|
title: "Wizard Title",
|
|
461
681
|
visible: true,
|
|
462
682
|
activeStep: steps.length,
|
|
@@ -467,7 +687,7 @@ describe('Wizard', function () {
|
|
|
467
687
|
},
|
|
468
688
|
steps: steps
|
|
469
689
|
})),
|
|
470
|
-
getByRole =
|
|
690
|
+
getByRole = _render17.getByRole;
|
|
471
691
|
|
|
472
692
|
var modal = getByRole('dialog');
|
|
473
693
|
expect(modal).toBeInTheDocument();
|
|
@@ -500,7 +720,7 @@ describe('Wizard', function () {
|
|
|
500
720
|
})
|
|
501
721
|
}];
|
|
502
722
|
it('calls the onClick from the continueProps of the active step', function () {
|
|
503
|
-
var
|
|
723
|
+
var _render18 = render(_react.default.createElement(_.default, {
|
|
504
724
|
title: "Wizard Title",
|
|
505
725
|
visible: true,
|
|
506
726
|
activeStep: 1,
|
|
@@ -511,7 +731,7 @@ describe('Wizard', function () {
|
|
|
511
731
|
},
|
|
512
732
|
steps: steps
|
|
513
733
|
})),
|
|
514
|
-
getByRole =
|
|
734
|
+
getByRole = _render18.getByRole;
|
|
515
735
|
|
|
516
736
|
var modal = getByRole('dialog');
|
|
517
737
|
expect(modal).toBeInTheDocument();
|
|
@@ -550,7 +770,7 @@ describe('Wizard', function () {
|
|
|
550
770
|
})
|
|
551
771
|
}];
|
|
552
772
|
|
|
553
|
-
var
|
|
773
|
+
var _render19 = render(_react.default.createElement(_.default, {
|
|
554
774
|
title: "Wizard Title",
|
|
555
775
|
visible: true,
|
|
556
776
|
activeStep: 2,
|
|
@@ -561,7 +781,7 @@ describe('Wizard', function () {
|
|
|
561
781
|
},
|
|
562
782
|
steps: steps
|
|
563
783
|
})),
|
|
564
|
-
getByRole =
|
|
784
|
+
getByRole = _render19.getByRole;
|
|
565
785
|
|
|
566
786
|
var modal = getByRole('dialog');
|
|
567
787
|
expect(modal).toBeInTheDocument();
|
|
@@ -592,7 +812,7 @@ describe('Wizard', function () {
|
|
|
592
812
|
})
|
|
593
813
|
}];
|
|
594
814
|
|
|
595
|
-
var
|
|
815
|
+
var _render20 = render(_react.default.createElement(_.default, {
|
|
596
816
|
title: "Wizard Title",
|
|
597
817
|
visible: true,
|
|
598
818
|
activeStep: 1,
|
|
@@ -603,7 +823,7 @@ describe('Wizard', function () {
|
|
|
603
823
|
},
|
|
604
824
|
steps: steps
|
|
605
825
|
})),
|
|
606
|
-
getByRole =
|
|
826
|
+
getByRole = _render20.getByRole;
|
|
607
827
|
|
|
608
828
|
var modal = getByRole('dialog');
|
|
609
829
|
expect(modal).toBeInTheDocument();
|
|
@@ -637,7 +857,7 @@ describe('Wizard', function () {
|
|
|
637
857
|
}
|
|
638
858
|
}];
|
|
639
859
|
it('calls the onClick from the continueProps of the active step', function () {
|
|
640
|
-
var
|
|
860
|
+
var _render21 = render(_react.default.createElement(_.default, {
|
|
641
861
|
title: "Wizard Title",
|
|
642
862
|
visible: true,
|
|
643
863
|
activeStep: 2,
|
|
@@ -648,7 +868,7 @@ describe('Wizard', function () {
|
|
|
648
868
|
},
|
|
649
869
|
steps: steps
|
|
650
870
|
})),
|
|
651
|
-
getByRole =
|
|
871
|
+
getByRole = _render21.getByRole;
|
|
652
872
|
|
|
653
873
|
var modal = getByRole('dialog');
|
|
654
874
|
expect(modal).toBeInTheDocument();
|
|
@@ -683,7 +903,7 @@ describe('Wizard', function () {
|
|
|
683
903
|
it('doesnt render if im not in the last step', function () {
|
|
684
904
|
var submitCallbackMock = jest.fn();
|
|
685
905
|
|
|
686
|
-
var
|
|
906
|
+
var _render22 = render(_react.default.createElement(_.default, {
|
|
687
907
|
title: "Wizard Title",
|
|
688
908
|
visible: true,
|
|
689
909
|
activeStep: 1,
|
|
@@ -692,7 +912,7 @@ describe('Wizard', function () {
|
|
|
692
912
|
},
|
|
693
913
|
steps: steps
|
|
694
914
|
})),
|
|
695
|
-
getByRole =
|
|
915
|
+
getByRole = _render22.getByRole;
|
|
696
916
|
|
|
697
917
|
var modal = getByRole('dialog');
|
|
698
918
|
expect((0, _react2.within)(modal).queryByText(/submit/i)).not.toBeInTheDocument();
|
|
@@ -700,7 +920,7 @@ describe('Wizard', function () {
|
|
|
700
920
|
it('renders if im in the last step', function () {
|
|
701
921
|
var submitCallbackMock = jest.fn();
|
|
702
922
|
|
|
703
|
-
var
|
|
923
|
+
var _render23 = render(_react.default.createElement(_.default, {
|
|
704
924
|
title: "Wizard Title",
|
|
705
925
|
visible: true,
|
|
706
926
|
activeStep: steps.length,
|
|
@@ -709,7 +929,7 @@ describe('Wizard', function () {
|
|
|
709
929
|
},
|
|
710
930
|
steps: steps
|
|
711
931
|
})),
|
|
712
|
-
getByRole =
|
|
932
|
+
getByRole = _render23.getByRole;
|
|
713
933
|
|
|
714
934
|
var modal = getByRole('dialog');
|
|
715
935
|
expect((0, _react2.within)(modal).getByText(/submit/i)).toBeInTheDocument();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Wizard/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Wizard/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAAsC,CAAC;AAsDnD,eAAe,MAAM,CAAC"}
|
|
@@ -15,7 +15,7 @@ schema.propTypes = {
|
|
|
15
15
|
id: _reactDesc.PropTypes.string.description('A unique identifier for the modal.'),
|
|
16
16
|
size: _reactDesc.PropTypes.oneOf(['normal', 'extraLarge']).description('Define the max width size of the modal').defaultValue('normal'),
|
|
17
17
|
title: _reactDesc.PropTypes.string.description('The text for rendering in the H2 at the top of the modal').isRequired,
|
|
18
|
-
onCancel: _reactDesc.PropTypes.func.description('The event handler called
|
|
18
|
+
onCancel: _reactDesc.PropTypes.func.description('The event handler called when the Cancel button is clicked or the Esc key is pressed. If not provided, the Cancel button will be disabled and pressing Esc will not close the modal.'),
|
|
19
19
|
visible: _reactDesc.PropTypes.bool.description('A boolean value used to control whether the modal is visible or not').defaultValue('false'),
|
|
20
20
|
zIndex: _reactDesc.PropTypes.number.description('Sets the z-index value for the modal & overlay.'),
|
|
21
21
|
activeStep: _reactDesc.PropTypes.number.description('The currently active step in the wizard. This has to be handled by the user').isRequired,
|
|
@@ -33,6 +33,9 @@ schema.propTypes = {
|
|
|
33
33
|
submitButtonProps: _reactDesc.PropTypes.shape({
|
|
34
34
|
onClick: _reactDesc.PropTypes.func.isRequired
|
|
35
35
|
}).description('the props to pass to the submit button, this button is rendered by default in the last stesp'),
|
|
36
|
+
cancelButtonProps: _reactDesc.PropTypes.shape({
|
|
37
|
+
onClick: _reactDesc.PropTypes.func
|
|
38
|
+
}).description('The props to pass to the cancel button. These props are spread after the defaults, so they can override the default text, kind, variant, and onClick.'),
|
|
36
39
|
renderActions: _reactDesc.PropTypes.func.description('Function to render custom action buttons. It receives an object with the current step, step index, isFirstStep, isLastStep and the default actions as parameters')
|
|
37
40
|
};
|
|
38
41
|
var _default = schema;
|
|
@@ -24,6 +24,8 @@ declare const translations: {
|
|
|
24
24
|
};
|
|
25
25
|
combobox: {
|
|
26
26
|
readonly clearButtonLabel: "Clear {label} value";
|
|
27
|
+
readonly collapseButtonLabel: "Collapse {label}";
|
|
28
|
+
readonly expandButtonLabel: "Expand {label}";
|
|
27
29
|
readonly loading: "Loading...";
|
|
28
30
|
readonly noMatches: "No Matches Found";
|
|
29
31
|
readonly noMatchesMessage: "Try removing or editing some of your criteria or search for different words.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/translations.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/translations.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8JR,CAAC;AAEX,oBAAY,YAAY,GAAG,OAAO,YAAY,CAAC;AAE/C,eAAe,YAAY,CAAC"}
|
|
@@ -30,6 +30,8 @@ var translations = {
|
|
|
30
30
|
},
|
|
31
31
|
combobox: {
|
|
32
32
|
clearButtonLabel: 'Clear {label} value',
|
|
33
|
+
collapseButtonLabel: 'Collapse {label}',
|
|
34
|
+
expandButtonLabel: 'Expand {label}',
|
|
33
35
|
loading: 'Loading...',
|
|
34
36
|
noMatches: 'No Matches Found',
|
|
35
37
|
noMatchesMessage: 'Try removing or editing some of your criteria or search for different words.'
|