@linzjs/step-ag-grid 17.4.8 → 17.4.10
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.cjs.js +11 -7
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +11 -7
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +7 -7
- package/src/lui/FormError.scss +1 -1
- package/src/lui/FormError.tsx +1 -1
- package/src/lui/TextInputFormatted.scss +1 -1
- package/src/lui/TextInputFormatted.tsx +7 -1
- package/src/stories/grid/FormTest.scss +4 -0
- package/src/utils/testUtil.ts +8 -3
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -3247,11 +3247,11 @@ function styleInject(css, ref) {
|
|
|
3247
3247
|
}
|
|
3248
3248
|
}
|
|
3249
3249
|
|
|
3250
|
-
var css_248z$2 = ".helpText{color:#6b6966;font-size:.75rem;font-weight:400}";
|
|
3250
|
+
var css_248z$2 = ".FormError-helpText{color:#6b6966;font-size:.75rem;font-weight:400}";
|
|
3251
3251
|
styleInject(css_248z$2);
|
|
3252
3252
|
|
|
3253
3253
|
const FormError = (props) => {
|
|
3254
|
-
return (jsxs(Fragment$1, { children: [props.error && (jsx("span", { className: "LuiTextInput-error", style: { paddingLeft: 0 }, children: props.error })), props.helpText && !props.error && jsx("span", { className: "helpText", children: props.helpText })] }));
|
|
3254
|
+
return (jsxs(Fragment$1, { children: [props.error && (jsx("span", { className: "LuiTextInput-error", style: { paddingLeft: 0 }, children: props.error })), props.helpText && !props.error && jsx("span", { className: "FormError-helpText", children: props.helpText })] }));
|
|
3255
3255
|
};
|
|
3256
3256
|
|
|
3257
3257
|
function escapeStringRegexp(string) {
|
|
@@ -3627,11 +3627,11 @@ const GridFormDropDown = (props) => {
|
|
|
3627
3627
|
})] }) })] }));
|
|
3628
3628
|
};
|
|
3629
3629
|
|
|
3630
|
-
var css_248z$1 = ".LuiTextInput{margin-bottom:0}.LuiTextInput-formatted{color:#beb9b4;line-height:48px;position:absolute;right:14px;top:0}";
|
|
3630
|
+
var css_248z$1 = ".LuiTextInput.GridLuiTextInput{margin-bottom:0}.LuiTextInput-formatted{color:#beb9b4;line-height:48px;position:absolute;right:14px;top:0}";
|
|
3631
3631
|
styleInject(css_248z$1);
|
|
3632
3632
|
|
|
3633
3633
|
const TextInputFormatted = (props) => {
|
|
3634
|
-
return (jsxs("div", { className: clsx("LuiTextInput Grid-popoverContainer", props.error && "hasError", props.className), children: [jsxs("span", { className: "LuiTextInput-inputWrapper", children: [jsx("input", { type: "text", spellCheck: true, defaultValue: props.value, ...omit(props, ["error", "value", "helpText", "formatted", "className", "allowTabToSave"]), className: "LuiTextInput-input", onMouseEnter: (e) => {
|
|
3634
|
+
return (jsxs("div", { className: clsx("LuiTextInput GridLuiTextInput Grid-popoverContainer", props.error && "hasError", props.className), children: [jsxs("span", { className: "LuiTextInput-inputWrapper", children: [jsx("input", { type: "text", spellCheck: true, defaultValue: props.value, ...omit(props, ["error", "value", "helpText", "formatted", "className", "allowTabToSave"]), className: "LuiTextInput-input", onMouseEnter: (e) => {
|
|
3635
3635
|
e.currentTarget.focus();
|
|
3636
3636
|
props.onMouseEnter && props.onMouseEnter(e);
|
|
3637
3637
|
}, "data-allowtabtosave": props.allowTabToSave }), jsx("span", { className: "LuiTextInput-formatted", children: props.formatted })] }), jsx(FormError, { error: props.error, helpText: props.helpText })] }));
|
|
@@ -25576,9 +25576,13 @@ const findRow = async (rowId, within) => {
|
|
|
25576
25576
|
let row;
|
|
25577
25577
|
await act(async () => {
|
|
25578
25578
|
row = await findQuick({ tagName: `.ag-center-cols-container div[row-id='${rowId}']:not(:empty)` }, within);
|
|
25579
|
-
|
|
25580
|
-
const
|
|
25581
|
-
|
|
25579
|
+
let combineChildren = [...row.children];
|
|
25580
|
+
const leftCols = queryQuick({ tagName: `.ag-pinned-left-cols-container div[row-id='${rowId}']` }, within);
|
|
25581
|
+
if (leftCols)
|
|
25582
|
+
combineChildren = [...leftCols.children, ...combineChildren];
|
|
25583
|
+
const rightCols = queryQuick({ tagName: `.ag-pinned-right-cols-container div[row-id='${rowId}']` }, within);
|
|
25584
|
+
if (rightCols)
|
|
25585
|
+
combineChildren = [...rightCols.children, ...combineChildren];
|
|
25582
25586
|
row.replaceChildren(...combineChildren);
|
|
25583
25587
|
});
|
|
25584
25588
|
return row;
|