@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.
@@ -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 && (jsx("span", { className: "LuiTextInput-error", style: { paddingLeft: 0 }, children: props.error })), props.helpText && !props.error && jsx("span", { className: "FormError-helpText", children: props.helpText })] }));
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({ selectedRows, value, subComponentValue });
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:#beb9b4;line-height:48px;position:absolute;right:14px;top:0}";
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) => {