@linzjs/step-ag-grid 7.11.11 → 7.11.13
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/dist/step-ag-grid.esm.js
CHANGED
|
@@ -2724,13 +2724,8 @@ var Grid = function (params) {
|
|
|
2724
2724
|
if (!gridReady || !params.autoSelectFirstRow || hasSelectedFirstItem.current || !params.rowData)
|
|
2725
2725
|
return;
|
|
2726
2726
|
hasSelectedFirstItem.current = true;
|
|
2727
|
-
if (isNotEmpty(params.rowData)) {
|
|
2728
|
-
|
|
2729
|
-
params.setExternalSelectedItems([params.rowData[0]]);
|
|
2730
|
-
}
|
|
2731
|
-
else {
|
|
2732
|
-
selectRowsById([params.rowData[0].id]);
|
|
2733
|
-
}
|
|
2727
|
+
if (isNotEmpty(params.rowData) && isEmpty(params.externalSelectedItems)) {
|
|
2728
|
+
selectRowsById([params.rowData[0].id]);
|
|
2734
2729
|
}
|
|
2735
2730
|
}, [gridReady, params, params.autoSelectFirstRow, params.rowData, selectRowsById]);
|
|
2736
2731
|
/**
|
|
@@ -3367,7 +3362,7 @@ var GridFormDropDown = function (props) {
|
|
|
3367
3362
|
var ref = _a.ref;
|
|
3368
3363
|
return (jsxs("div", __assign({ style: { display: "flex", flexDirection: "column", width: "100%" } }, { children: [jsx("input", { className: "LuiTextInput-input", ref: ref, type: "text", placeholder: (_b = props.filterPlaceholder) !== null && _b !== void 0 ? _b : "Placeholder", "data-testid": "filteredMenu-free-text-input", defaultValue: filter, "data-allowtabtosave": true, "data-disableenterautosave": !props.onSelectFilter &&
|
|
3369
3364
|
!(filteredValues && filteredValues.length === 1 && !filteredValues[0].subComponent), onChange: function (e) { return setFilter(e.target.value); } }), props.filterHelpText && isNotEmpty(filter) && (jsx(FormError, { error: null, helpText: props.filterHelpText }))] })));
|
|
3370
|
-
} })), jsx(MenuDivider, {}, "$$divider_filter")] }))), jsx(ComponentLoadingWrapper, __assign({ loading: !options, className: "GridFormDropDown-options" }, { children: jsxs(Fragment$1, { children: [options && filteredValues && isEmpty(filteredValues) && (jsx(MenuItem, __assign({ className: "GridPopoverEditDropDown-noOptions" }, { children: "No Options" }), "".concat(fieldToString(field), "-empty"))), options === null || options === void 0 ? void 0 : options.map(function (item, index) {
|
|
3365
|
+
} })), jsx(MenuDivider, {}, "$$divider_filter")] }))), jsx(ComponentLoadingWrapper, __assign({ loading: !options, className: "GridFormDropDown-options" }, { children: jsxs(Fragment$1, { children: [options && (isEmpty(options) || (filteredValues && isEmpty(filteredValues))) && (jsx(MenuItem, __assign({ className: "GridPopoverEditDropDown-noOptions" }, { children: "No Options" }), "".concat(fieldToString(field), "-empty"))), options === null || options === void 0 ? void 0 : options.map(function (item, index) {
|
|
3371
3366
|
var _a;
|
|
3372
3367
|
return item.value === MenuSeparatorString ? (jsx(MenuDivider, {}, "$$divider_".concat(index))) : item.value === MenuHeaderString ? (jsx(MenuHeader, { children: item.label }, "$$header_".concat(index))) : ((!filteredValues || filteredValues.includes(item)) && (jsxs("div", { children: [jsxs(MenuItem, __assign({ disabled: !!item.disabled, title: item.disabled && typeof item.disabled !== "boolean" ? item.disabled : "", value: item.value, onFocus: function () {
|
|
3373
3368
|
setSelectedItem(item);
|