@linzjs/step-ag-grid 22.2.4 → 22.3.0
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/README.md +0 -1
- package/dist/src/components/gridForm/GridFormDropDown.d.ts +7 -6
- package/dist/src/components/gridPopoverEdit/GridButton.d.ts +2 -2
- package/dist/src/components/gridPopoverEdit/GridEditBoolean.d.ts +2 -2
- package/dist/src/components/gridPopoverEdit/GridPopoverEditDropDown.d.ts +1 -1
- package/dist/step-ag-grid.cjs.js +10 -5
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +10 -5
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/gridForm/GridFormDropDown.tsx +14 -8
- package/src/components/gridPopoverEdit/GridButton.tsx +3 -3
- package/src/components/gridPopoverEdit/GridEditBoolean.tsx +2 -6
- package/src/components/gridPopoverEdit/GridPopoverEditDropDown.ts +3 -3
- package/src/lui/FormError.scss +22 -4
- package/src/lui/FormError.tsx +5 -3
- package/src/lui/TextInputFormatted.scss +3 -1
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -3348,11 +3348,11 @@ function styleInject(css, ref) {
|
|
|
3348
3348
|
}
|
|
3349
3349
|
}
|
|
3350
3350
|
|
|
3351
|
-
var css_248z$2 = ".FormError-helpText{color:#6b6966;font-size:.75rem;font-weight:400}";
|
|
3351
|
+
var css_248z$2 = ".FormError{display:flex}.FormError-helpText{color:#6b6966;font-size:.75rem;font-weight:400}.FormError-text-icon{margin-right:4px;margin-top:4px}.FormError-error{align-items:center;color:#2a292c;font-size:14px;font-weight:600;padding-left:0}";
|
|
3352
3352
|
styleInject(css_248z$2);
|
|
3353
3353
|
|
|
3354
3354
|
const FormError = (props) => {
|
|
3355
|
-
return (jsxs(Fragment, { children: [props.error && (
|
|
3355
|
+
return (jsxs(Fragment, { children: [props.error && (jsxs("div", { className: "FormError", children: [jsx(LuiIcon, { alt: "error", name: "ic_error", className: "FormError-text-icon", size: "sm", status: "error" }), jsx("span", { className: "FormError-error", children: props.error })] })), props.helpText && !props.error && jsx("span", { className: "FormError-helpText", children: props.helpText })] }));
|
|
3356
3356
|
};
|
|
3357
3357
|
|
|
3358
3358
|
function escapeStringRegexp(string) {
|
|
@@ -3585,7 +3585,12 @@ const GridFormDropDown = (props) => {
|
|
|
3585
3585
|
(subComponentValue !== undefined && subComponentInitialValue.current !== JSON.stringify(subComponentValue));
|
|
3586
3586
|
if (hasChanged) {
|
|
3587
3587
|
if (props.onSelectedItem) {
|
|
3588
|
-
await props.onSelectedItem({
|
|
3588
|
+
await props.onSelectedItem({
|
|
3589
|
+
selectedRows,
|
|
3590
|
+
selectedRowIds: selectedRows.map((row) => row.id),
|
|
3591
|
+
value,
|
|
3592
|
+
subComponentValue,
|
|
3593
|
+
});
|
|
3589
3594
|
}
|
|
3590
3595
|
else {
|
|
3591
3596
|
selectedRows.forEach((row) => (row[field] = value));
|
|
@@ -3651,7 +3656,7 @@ const GridFormDropDown = (props) => {
|
|
|
3651
3656
|
if (selectedItem === null) {
|
|
3652
3657
|
if (props.onSelectFilter) {
|
|
3653
3658
|
const { onSelectFilter } = props;
|
|
3654
|
-
await onSelectFilter({ selectedRows, value: filter });
|
|
3659
|
+
await onSelectFilter({ selectedRows, selectedRowIds: selectedRows.map((row) => row.id), value: filter });
|
|
3655
3660
|
return true;
|
|
3656
3661
|
}
|
|
3657
3662
|
else {
|
|
@@ -3728,7 +3733,7 @@ const GridFormDropDown = (props) => {
|
|
|
3728
3733
|
})] }) })] }));
|
|
3729
3734
|
};
|
|
3730
3735
|
|
|
3731
|
-
var css_248z$1 = ".LuiTextInput.GridLuiTextInput{margin-bottom:0}.LuiTextInput-formatted{color:#
|
|
3736
|
+
var css_248z$1 = ".LuiTextInput.GridLuiTextInput{margin-bottom:0}.LuiTextInput-formatted{color:#6b6966;line-height:48px;position:absolute;right:14px;top:0}";
|
|
3732
3737
|
styleInject(css_248z$1);
|
|
3733
3738
|
|
|
3734
3739
|
const TextInputFormatted = (props) => {
|