@linzjs/step-ag-grid 32.2.0 → 32.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.
@@ -63207,13 +63207,22 @@ const TextInputFormatted = (props) => {
63207
63207
  type: "text",
63208
63208
  spellCheck: true,
63209
63209
  defaultValue: props.value,
63210
- ...omit(props, ["error", "value", "helpText", "formatted", "className", "allowTabToSave"]),
63210
+ ...omit(props, [
63211
+ "error",
63212
+ "value",
63213
+ "helpText",
63214
+ "formatted",
63215
+ "className",
63216
+ "allowTabToSave",
63217
+ "validationSummary"
63218
+ ]),
63211
63219
  className: "LuiTextInput-input",
63212
63220
  onMouseEnter: (e) => {
63213
63221
  e.currentTarget.focus();
63214
63222
  props.onMouseEnter?.(e);
63215
63223
  },
63216
- "data-allowtabtosave": props.allowTabToSave
63224
+ "data-allowtabtosave": props.allowTabToSave,
63225
+ "data-validationsummary": props.validationSummary
63217
63226
  }
63218
63227
  ),
63219
63228
  /* @__PURE__ */ jsx("span", { className: "LuiTextInput-formatted", children: props.formatted })
@@ -63406,6 +63415,24 @@ const TextInputValidator = (props, value, data, context) => {
63406
63415
  }
63407
63416
  return null;
63408
63417
  };
63418
+ const textInputValidatorPropsToSummary = (props) => {
63419
+ const parts = [];
63420
+ if (props.required) parts.push("required");
63421
+ if (props.maxLength != null) parts.push(`maxLength=${props.maxLength}`);
63422
+ if (props.maxBytes != null) parts.push(`maxBytes=${props.maxBytes}`);
63423
+ if (props.invalid) parts.push("invalid");
63424
+ const nf = props.numberFormat;
63425
+ if (nf) {
63426
+ if (nf.precision != null) parts.push(`precision=${nf.precision}`);
63427
+ if (nf.scale != null) parts.push(`scale=${nf.scale}`);
63428
+ if (nf.gtMin != null) parts.push(`gtMin=${nf.gtMin}`);
63429
+ if (nf.geMin != null) parts.push(`geMin=${nf.geMin}`);
63430
+ if (nf.ltMax != null) parts.push(`ltMax=${nf.ltMax}`);
63431
+ if (nf.leMax != null) parts.push(`leMax=${nf.leMax}`);
63432
+ if (nf.notZero) parts.push("notZero");
63433
+ }
63434
+ return parts.join(",");
63435
+ };
63409
63436
 
63410
63437
  const GridFormInlineTextInput = (props) => {
63411
63438
  const { onSave } = props;
@@ -64131,7 +64158,8 @@ const GridFormSubComponentTextInput = (props) => {
64131
64158
  helpText,
64132
64159
  placeholder: props.placeholder,
64133
64160
  style: { width: "100%" },
64134
- allowTabToSave: true
64161
+ allowTabToSave: true,
64162
+ validationSummary: textInputValidatorPropsToSummary(props)
64135
64163
  }
64136
64164
  );
64137
64165
  };
@@ -64212,7 +64240,8 @@ const GridFormTextInput = (props) => {
64212
64240
  formatted: props.units,
64213
64241
  style: { width: props.width ?? 240 },
64214
64242
  placeholder: props.placeholder ?? "Type here",
64215
- helpText
64243
+ helpText,
64244
+ validationSummary: textInputValidatorPropsToSummary(props)
64216
64245
  }
64217
64246
  ) })
64218
64247
  );
@@ -65477,5 +65506,5 @@ const useDeferredPromise = () => {
65477
65506
  };
65478
65507
  };
65479
65508
 
65480
- export { ActionButton, CancelPromise, ComponentLoadingWrapper, ControlledMenu, Editor, FocusableItem, FormError, GenericCellEditorComponentWrapper, Grid, GridButton, GridCell, GridCellBearingValueFormatter, GridCellFiller, GridCellFillerColId, GridCellMultiEditor, GridCellMultiSelectClassRules, GridCellRenderer, GridContext, GridContextProvider, GridEditBoolean, GridFilterButtons, GridFilterColumnsMultiSelect, GridFilterColumnsToggle, GridFilterDownloadCsvButton, GridFilterHeaderIconButton, GridFilterQuick, GridFilters, GridFormDropDown, GridFormEditBearing, GridFormInlineTextInput, GridFormMessage, GridFormMultiSelect, GridFormMultiSelectGrid, GridFormPopoverMenu, GridFormSubComponentTextArea, GridFormSubComponentTextInput, GridFormTextArea, GridFormTextInput, GridIcon, GridInlineTextInput, GridLoadableCell, GridNoRowsOverlay, GridNoRowsOverlayFr, GridPopoutEditMultiSelect, GridPopoutEditMultiSelectGrid, GridPopoverContext, GridPopoverContextProvider, GridPopoverEditBearing, GridPopoverEditBearingCorrection, GridPopoverEditBearingCorrectionEditorParams, GridPopoverEditBearingEditorParams, GridPopoverEditDropDown, GridPopoverMenu, GridPopoverMessage, GridPopoverTextArea, GridPopoverTextInput, GridRenderPopoutMenuCell, GridSubComponentContext, GridUpdatingContext, GridUpdatingContextProvider, GridWrapper, Menu, MenuButton, MenuDivider, MenuGroup, MenuHeader, MenuHeaderItem, MenuHeaderString, MenuItem, MenuRadioGroup, MenuSeparator, MenuSeparatorString, PopoutMenuSeparator, SubMenu, TextAreaInput, TextInputFormatted, TextInputValidator, agGridSelectRowColId, bearingCorrectionRangeValidator, bearingCorrectionValueFormatter, bearingNumberParser, bearingRangeValidator, bearingStringValidator, bearingValueFormatter, colStateFlexed, colStateId, colStateNotFlexed, compareNaturalInsensitive, convertDDToDMS, createCheckboxMultiFilterParams, defaultValueFormatter, downloadCsvUseValueFormattersProcessCellCallback, findParentWithClass, fnOrVar, generateFilterGetter, hasParentClass, isFloat, isGridCellFiller, isNotEmpty, primitiveToSelectOption, reorderRows, sanitiseFileName, stringByteLengthIsInvalid, suppressCellKeyboardEvents, textMatch, useDeferredPromise, useGridContext, useGridContextMenu, useGridFilter, useGridPopoverContext, useGridPopoverHook, useMenuState, usePostSortRowsHook, wait, waitForCondition };
65509
+ export { ActionButton, CancelPromise, ComponentLoadingWrapper, ControlledMenu, Editor, FocusableItem, FormError, GenericCellEditorComponentWrapper, Grid, GridButton, GridCell, GridCellBearingValueFormatter, GridCellFiller, GridCellFillerColId, GridCellMultiEditor, GridCellMultiSelectClassRules, GridCellRenderer, GridContext, GridContextProvider, GridEditBoolean, GridFilterButtons, GridFilterColumnsMultiSelect, GridFilterColumnsToggle, GridFilterDownloadCsvButton, GridFilterHeaderIconButton, GridFilterQuick, GridFilters, GridFormDropDown, GridFormEditBearing, GridFormInlineTextInput, GridFormMessage, GridFormMultiSelect, GridFormMultiSelectGrid, GridFormPopoverMenu, GridFormSubComponentTextArea, GridFormSubComponentTextInput, GridFormTextArea, GridFormTextInput, GridIcon, GridInlineTextInput, GridLoadableCell, GridNoRowsOverlay, GridNoRowsOverlayFr, GridPopoutEditMultiSelect, GridPopoutEditMultiSelectGrid, GridPopoverContext, GridPopoverContextProvider, GridPopoverEditBearing, GridPopoverEditBearingCorrection, GridPopoverEditBearingCorrectionEditorParams, GridPopoverEditBearingEditorParams, GridPopoverEditDropDown, GridPopoverMenu, GridPopoverMessage, GridPopoverTextArea, GridPopoverTextInput, GridRenderPopoutMenuCell, GridSubComponentContext, GridUpdatingContext, GridUpdatingContextProvider, GridWrapper, Menu, MenuButton, MenuDivider, MenuGroup, MenuHeader, MenuHeaderItem, MenuHeaderString, MenuItem, MenuRadioGroup, MenuSeparator, MenuSeparatorString, PopoutMenuSeparator, SubMenu, TextAreaInput, TextInputFormatted, TextInputValidator, agGridSelectRowColId, bearingCorrectionRangeValidator, bearingCorrectionValueFormatter, bearingNumberParser, bearingRangeValidator, bearingStringValidator, bearingValueFormatter, colStateFlexed, colStateId, colStateNotFlexed, compareNaturalInsensitive, convertDDToDMS, createCheckboxMultiFilterParams, defaultValueFormatter, downloadCsvUseValueFormattersProcessCellCallback, findParentWithClass, fnOrVar, generateFilterGetter, hasParentClass, isFloat, isGridCellFiller, isNotEmpty, primitiveToSelectOption, reorderRows, sanitiseFileName, stringByteLengthIsInvalid, suppressCellKeyboardEvents, textInputValidatorPropsToSummary, textMatch, useDeferredPromise, useGridContext, useGridContextMenu, useGridFilter, useGridPopoverContext, useGridPopoverHook, useMenuState, usePostSortRowsHook, wait, waitForCondition };
65481
65510
  //# sourceMappingURL=step-ag-grid.esm.js.map