@linzjs/step-ag-grid 2.4.2 → 2.4.3
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/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/src/components/gridForm/GridFormSubComponentTextInput.d.ts +2 -1
- package/dist/step-ag-grid.esm.js +6 -2
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/gridForm/GridFormSubComponentTextInput.tsx +12 -1
package/dist/index.js
CHANGED
|
@@ -3661,10 +3661,11 @@ var GridPopoverTextInput = function (colDef, params) {
|
|
|
3661
3661
|
};
|
|
3662
3662
|
|
|
3663
3663
|
var GridFormSubComponentTextInput = function (_a) {
|
|
3664
|
-
var keyDown = _a.keyDown, placeholder = _a.placeholder, setValue = _a.setValue;
|
|
3664
|
+
var keyDown = _a.keyDown, placeholder = _a.placeholder, setValue = _a.setValue, className = _a.className;
|
|
3665
3665
|
var placeholderText = placeholder || "Other...";
|
|
3666
|
+
var inputClass = className || "";
|
|
3666
3667
|
var _b = react.useState(""), inputValue = _b[0], setInputValue = _b[1];
|
|
3667
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(TextInputFormatted, { value: inputValue, onChange: function (e) {
|
|
3668
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(TextInputFormatted, { className: inputClass, value: inputValue, onChange: function (e) {
|
|
3668
3669
|
var value = e.target.value;
|
|
3669
3670
|
setValue(value);
|
|
3670
3671
|
setInputValue(value);
|
|
@@ -3675,6 +3676,9 @@ var GridFormSubComponentTextInput = function (_a) {
|
|
|
3675
3676
|
if (document.activeElement != e.currentTarget) {
|
|
3676
3677
|
e.currentTarget.focus();
|
|
3677
3678
|
}
|
|
3679
|
+
},
|
|
3680
|
+
style: {
|
|
3681
|
+
width: "100%"
|
|
3678
3682
|
}
|
|
3679
3683
|
} }) }));
|
|
3680
3684
|
};
|