@mcurros2/microm 1.1.237-0 → 1.1.239-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/dist/index.js CHANGED
@@ -4590,10 +4590,14 @@ var $hAMyt = parcelRequire("hAMyt");
4590
4590
  var $OciKL = parcelRequire("OciKL");
4591
4591
  const $95e2e1bafd0c20d6$var$defaultProps = {
4592
4592
  validationContainer: (0, $b4te3$mantinecore.Group),
4593
- autoTrim: true
4593
+ autoTrim: true,
4594
+ autoMaxWidth: {
4595
+ columnLenghtLessThanOrEqual: 20,
4596
+ maxWidth: '20rem'
4597
+ }
4594
4598
  };
4595
4599
  const $95e2e1bafd0c20d6$export$2c73285ae9390cec = /*#__PURE__*/ (0, $b4te3$react.forwardRef)(function TextField(props, ref) {
4596
- const { column: column, entityForm: entityForm, validate: validate, validationContainer: validationContainer, maw: maw, required: required, requiredMessage: requiredMessage, maxLength: maxLength, readOnly: readOnly, label: label, placeholder: placeholder, description: description, withAsterisk: withAsterisk, autoFocus: autoFocus, onBlur: onBlur, onChange: onChange, onFocus: onFocus, transform: transform, autoTrim: autoTrim, iconWidth: iconWidth, ...others } = (0, $b4te3$mantinecore.useComponentDefaultProps)('TextField', $95e2e1bafd0c20d6$var$defaultProps, props);
4600
+ const { column: column, entityForm: entityForm, validate: validate, validationContainer: validationContainer, maw: maw, required: required, requiredMessage: requiredMessage, maxLength: maxLength, readOnly: readOnly, label: label, placeholder: placeholder, description: description, withAsterisk: withAsterisk, autoFocus: autoFocus, onBlur: onBlur, onChange: onChange, onFocus: onFocus, transform: transform, autoTrim: autoTrim, iconWidth: iconWidth, autoMaxWidth: autoMaxWidth, ...others } = (0, $b4te3$mantinecore.useComponentDefaultProps)('TextField', $95e2e1bafd0c20d6$var$defaultProps, props);
4597
4601
  (0, $hAMyt.useFieldConfiguration)({
4598
4602
  entityForm: entityForm,
4599
4603
  column: column,
@@ -4643,7 +4647,7 @@ const $95e2e1bafd0c20d6$export$2c73285ae9390cec = /*#__PURE__*/ (0, $b4te3$react
4643
4647
  label: label ?? column.prompt,
4644
4648
  placeholder: placeholder ?? column.placeholder,
4645
4649
  description: showDescription ? description ?? column.description : '',
4646
- maw: maw ?? (column.length <= 20 ? '10rem' : undefined),
4650
+ maw: maw ?? (column.length <= autoMaxWidth.columnLenghtLessThanOrEqual ? autoMaxWidth.maxWidth : undefined),
4647
4651
  maxLength: maxLength ?? (column.length || undefined),
4648
4652
  readOnly: entityForm.formMode === 'view' ? true : readOnly,
4649
4653
  "data-autofocus": autoFocus,
@@ -4779,10 +4783,14 @@ var $4H7ea = parcelRequire("4H7ea");
4779
4783
  parcelRequire("dC9fs");
4780
4784
  var $hAMyt = parcelRequire("hAMyt");
4781
4785
  const $9dfe1d3e4dcf7b26$var$defaultProps = {
4782
- validationContainer: (0, $b4te3$mantinecore.Group)
4786
+ validationContainer: (0, $b4te3$mantinecore.Group),
4787
+ autoMaxWidth: {
4788
+ columnLenghtLessThanOrEqual: 20,
4789
+ maxWidth: '20rem'
4790
+ }
4783
4791
  };
4784
4792
  function $9dfe1d3e4dcf7b26$export$65ed9482db2257fa(props) {
4785
- const { column: column, loading: loading, entityForm: entityForm, maw: maw, required: required, maxLength: maxLength, disabled: disabled, disableOnLoading: disableOnLoading, label: label, validationContainer: validationContainer, validate: validate, requiredMessage: requiredMessage, description: description, readOnly: readOnly, withAsterisk: withAsterisk, ...others } = (0, $b4te3$mantinecore.useComponentDefaultProps)('PasswordField', $9dfe1d3e4dcf7b26$var$defaultProps, props);
4793
+ const { column: column, loading: loading, entityForm: entityForm, maw: maw, required: required, maxLength: maxLength, disabled: disabled, disableOnLoading: disableOnLoading, label: label, validationContainer: validationContainer, validate: validate, requiredMessage: requiredMessage, description: description, readOnly: readOnly, withAsterisk: withAsterisk, autoMaxWidth: autoMaxWidth, ...others } = (0, $b4te3$mantinecore.useComponentDefaultProps)('PasswordField', $9dfe1d3e4dcf7b26$var$defaultProps, props);
4786
4794
  (0, $hAMyt.useFieldConfiguration)({
4787
4795
  entityForm: entityForm,
4788
4796
  column: column,
@@ -4798,7 +4806,7 @@ function $9dfe1d3e4dcf7b26$export$65ed9482db2257fa(props) {
4798
4806
  withAsterisk: withAsterisk ?? (!readOnly && !(entityForm.formMode === 'view') && (required ?? !column.hasFlag((0, $4H7ea.EntityColumnFlags).nullable))),
4799
4807
  label: label ?? column.prompt,
4800
4808
  description: showDescription ? description ?? column.description : '',
4801
- maw: maw ?? (column.length <= 20 ? '10rem' : undefined),
4809
+ maw: maw ?? (column.length <= autoMaxWidth.columnLenghtLessThanOrEqual ? autoMaxWidth.maxWidth : undefined),
4802
4810
  maxLength: maxLength ?? column.length,
4803
4811
  readOnly: entityForm.formMode === 'view' ? true : readOnly,
4804
4812
  disabled: disableOnLoading ? loading : disabled,